diff --git a/nightly/assets/ActionSheet-T8MmQkkr.js b/nightly/assets/ActionSheet-BvLBMUcf.js similarity index 87% rename from nightly/assets/ActionSheet-T8MmQkkr.js rename to nightly/assets/ActionSheet-BvLBMUcf.js index ef386c31867..3ae46a3c811 100644 --- a/nightly/assets/ActionSheet-T8MmQkkr.js +++ b/nightly/assets/ActionSheet-BvLBMUcf.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-DPMpg7JG.js";import"./index-fq-A78mQ.js";import"./index-CENj-mYB.js";import{C as s}from"./ControlsWithNote-CMOOzFzV.js";import{D as c}from"./DocsHeader-hDdzbsP4.js";import{F as a}from"./CommandsAndQueries-DQjx50a7.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{C as h,D as e}from"./ActionSheet.stories-D6gDltbW.js";import"./iframe-22aYVeZH.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-CjthvP8A.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./slot-_4yKMUwC.js";import"./event-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./Button-BBQ8R6D6.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./i18n-defaults-BotoAXl7.js";import"./TagDesign-Dou_yO3g.js";import"./utils-BoSyhUrL.js";import"./main-C6oD7XT2.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BVNesCV8.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-C5CUzSoK.js";import"./Link-DZg2nJC9.js";import"./chunk-NUUEMKO5-U4f61DH3.js";import"./client-BzooOYO_.js";import"./copy-DL3IQ6be.js";import"./copy-1gorG9K6.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-DBMEQ9W3.js";import"./index-Coq7C81h.js";import"./I18nStore-MR5G_kEB.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Cn2MHtDd.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-OThGHqLA.js";import"./index-BdA_tfl3.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.js";import"./accept-lq3MKKgJ.js";import"./decline-1QUNcWHz.js";import"./delete-BQIb6saC.js";import"./i18n-defaults-BGhPckAt.js";import"./index-BMHmrs9e.js";import"./ResponsivePopover-B-t0Cbra.js";import"./Dialog-C8nnmLS4.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-Lnmk9LeD.js";import"./index-fq-A78mQ.js";import"./index-C3fFd07B.js";import{C as s}from"./ControlsWithNote-anxKGV6U.js";import{D as c}from"./DocsHeader-C8M0EJds.js";import{F as a}from"./CommandsAndQueries-Cvc-NSzh.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{C as h,D as e}from"./ActionSheet.stories-CZXaonp-.js";import"./iframe-Be8Bv2HM.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-CjthvP8A.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./slot-_4yKMUwC.js";import"./event-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./Button-BBQ8R6D6.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./i18n-defaults-BotoAXl7.js";import"./TagDesign-Dou_yO3g.js";import"./utils-y8u8HxGx.js";import"./main-C6oD7XT2.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BVNesCV8.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-C5CUzSoK.js";import"./Link-DZg2nJC9.js";import"./chunk-NUUEMKO5-Blno14Tx.js";import"./client-BzooOYO_.js";import"./copy-DL3IQ6be.js";import"./copy-1gorG9K6.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-DBMEQ9W3.js";import"./index-rDX7GLbX.js";import"./I18nStore-MR5G_kEB.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Cn2MHtDd.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-DPG7W1kp.js";import"./index-BdA_tfl3.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.js";import"./accept-lq3MKKgJ.js";import"./decline-1QUNcWHz.js";import"./delete-BQIb6saC.js";import"./i18n-defaults-BGhPckAt.js";import"./index-BMHmrs9e.js";import"./ResponsivePopover-B-t0Cbra.js";import"./Dialog-C8nnmLS4.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-D6gDltbW.js b/nightly/assets/ActionSheet.stories-CZXaonp-.js similarity index 86% rename from nightly/assets/ActionSheet.stories-D6gDltbW.js rename to nightly/assets/ActionSheet.stories-CZXaonp-.js index 8eab5d39f1b..09b5134fd41 100644 --- a/nightly/assets/ActionSheet.stories-D6gDltbW.js +++ b/nightly/assets/ActionSheet.stories-CZXaonp-.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-DEdD30eg.js";import{a as G,P as X,b as Y}from"./Popover-CTv0B5oi.js";import"./withWebComponent-CjthvP8A.js";import"./accept-lq3MKKgJ.js";import{d as K}from"./decline-1QUNcWHz.js";import"./delete-BQIb6saC.js";import{f as S}from"./Icon-BiQiH9AZ.js";import{p as M}from"./i18n-defaults-CdZCUmzZ.js";import{r as s}from"./index-RYns6xqu.js";import{B as I}from"./Button-BBQ8R6D6.js";import{d as p}from"./Keys-D1SxbTOd.js";import{u as F,a7 as Q,e as Z,a8 as ee}from"./i18n-defaults-BGhPckAt.js";import{u as te}from"./useStylesheet-CIcp3lSM.js";import{c as ne}from"./clsx-B-dksMZM.js";import{a as oe}from"./addCustomCSSWithScoping-Da--1kqg.js";import{a as ae,g as ie}from"./utils-GPKUbrfH.js";import{R as re}from"./index-BMHmrs9e.js";import{B as r}from"./index-OThGHqLA.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_actionSheet_189eg_1::part(content){padding:.1875rem .375rem}.ActionSheet_actionSheet_189eg_1 [ui5-button]{display:block;margin:var(--_ui5wcr-ButtonTopBottomPadding)}.ActionSheet_actionSheet_189eg_1 [ui5-button]:not([data-cancel-btn])::part(button){justify-content:flex-start}.ActionSheet_actionSheet_189eg_1::part(header){background:#0000;box-shadow:var(--_ui5wcr_ActionSheet_HeaderBoxShadow)}.ActionSheet_actionSheetMobile_189eg_20::part(content){padding:0!important}.ActionSheet_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}.ActionSheet_contentMobile_189eg_25>*{margin:.25rem 0}}"},A={actionSheet:"ActionSheet_actionSheet_189eg_1",actionSheetMobile:"ActionSheet_actionSheetMobile_189eg_20",contentMobile:"ActionSheet_contentMobile_189eg_25"};p()&&oe("ui5-responsive-popover",` +import{j as n}from"./jsx-runtime-DEdD30eg.js";import{a as G,P as X,b as Y}from"./Popover-CTv0B5oi.js";import"./withWebComponent-CjthvP8A.js";import"./accept-lq3MKKgJ.js";import{d as K}from"./decline-1QUNcWHz.js";import"./delete-BQIb6saC.js";import{f as S}from"./Icon-BiQiH9AZ.js";import{p as M}from"./i18n-defaults-CdZCUmzZ.js";import{r as s}from"./index-RYns6xqu.js";import{B as I}from"./Button-BBQ8R6D6.js";import{d as p}from"./Keys-D1SxbTOd.js";import{u as F,a7 as Q,e as Z,a8 as ee}from"./i18n-defaults-BGhPckAt.js";import{u as te}from"./useStylesheet-CIcp3lSM.js";import{c as ne}from"./clsx-B-dksMZM.js";import{a as oe}from"./addCustomCSSWithScoping-Da--1kqg.js";import{a as ae,g as ie}from"./utils-GPKUbrfH.js";import{R as re}from"./index-BMHmrs9e.js";import{B as r}from"./index-DPG7W1kp.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_actionSheet_189eg_1::part(content){padding:.1875rem .375rem}.ActionSheet_actionSheet_189eg_1 [ui5-button]{display:block;margin:var(--_ui5wcr-ButtonTopBottomPadding)}.ActionSheet_actionSheet_189eg_1 [ui5-button]:not([data-cancel-btn])::part(button){justify-content:flex-start}.ActionSheet_actionSheet_189eg_1::part(header){background:#0000;box-shadow:var(--_ui5wcr_ActionSheet_HeaderBoxShadow)}.ActionSheet_actionSheetMobile_189eg_20::part(content){padding:0!important}.ActionSheet_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}.ActionSheet_contentMobile_189eg_25>*{margin:.25rem 0}}"},A={actionSheet:"ActionSheet_actionSheet_189eg_1",actionSheetMobile:"ActionSheet_actionSheetMobile_189eg_20",contentMobile:"ActionSheet_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. **This event does not bubble.**\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. **This event does not bubble.**\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. **This event does not bubble.**",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. **This event does not bubble.**\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. **This event does not bubble.**\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. **This event does not bubble.**",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. **This event does not bubble.**\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. **This event does not bubble.**\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. **This event does not bubble.**",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. **This event does not bubble.**\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. **This event does not bubble.**\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. **This event does not bubble.**",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:G.Center,placement:X.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-CwUAuamp.js b/nightly/assets/AnalyticalCardHeader-sP_gSkiH.js similarity index 74% rename from nightly/assets/AnalyticalCardHeader-CwUAuamp.js rename to nightly/assets/AnalyticalCardHeader-sP_gSkiH.js index ad594d8ba75..e8e70e36c89 100644 --- a/nightly/assets/AnalyticalCardHeader-CwUAuamp.js +++ b/nightly/assets/AnalyticalCardHeader-sP_gSkiH.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-gNKGHFW7.js";import{C as s}from"./ControlsWithNote-CMOOzFzV.js";import{D as a}from"./DocsHeader-hDdzbsP4.js";import{F as c}from"./CommandsAndQueries-DQjx50a7.js";import"./index-CENj-mYB.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{S as x}from"./SubcomponentsSection-BVy4lpQe.js";import{ae as d,af as f,ag as j,ai as u}from"./index-DPMpg7JG.js";import"./withWebComponent-CjthvP8A.js";import"./person-placeholder-D8bKae9H.js";import"./Link-DZg2nJC9.js";import{N as i}from"./index-D6iI1iAa.js";import{C as h,D as m}from"./AnalyticalCardHeader.stories-LHYF-KQv.js";import"./index-fq-A78mQ.js";import"./slot-_4yKMUwC.js";import"./event-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./Button-BBQ8R6D6.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./i18n-defaults-BotoAXl7.js";import"./TagDesign-Dou_yO3g.js";import"./index-sbqOYYIm.js";import"./utils-BoSyhUrL.js";import"./main-C6oD7XT2.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BVNesCV8.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-C5CUzSoK.js";import"./chunk-NUUEMKO5-U4f61DH3.js";import"./iframe-22aYVeZH.js";import"../sb-preview/runtime.js";import"./client-BzooOYO_.js";import"./copy-DL3IQ6be.js";import"./copy-1gorG9K6.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-DBMEQ9W3.js";import"./index-Coq7C81h.js";import"./I18nStore-MR5G_kEB.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Cn2MHtDd.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-OThGHqLA.js";import"./index-BdA_tfl3.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./i18n-defaults-BGhPckAt.js";import"./index-BcPgEfiu.js";import"./LineChart-COFX4MDp.js";import"./ThemingParameters-DOkJX3Ed.js";import"./index-C-Zfmu7Z.js";import"./YAxisTicks-BzPYKrKr.js";import"./ChartContainer-zD1j3MXa.js";import"./debounce-BNez58WF.js";import"./tiny-invariant-CCoILDQG.js";import"./index-rNTiGNI1.js";import"./index-DSWkZP8z.js";import"./debounce-D7W5PopO.js";import"./useTooltipFormatter-D9qpLBSq.js";import"./staticProps-BB_T85kO.js";import"./ChartDataLabel-CBZuVJyZ.js";import"./useLongestYAxisLabel-C1h_aMfp.js";import"./react-content-loader.es-BcmDwNEo.js";import"./Line-BH4slNrW.js";import"./useIsRTL-DJgoVCsF.js";import"./directionChange-B4XYjAP3.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-CUzYxHdI.js";import{C as s}from"./ControlsWithNote-anxKGV6U.js";import{D as a}from"./DocsHeader-C8M0EJds.js";import{F as c}from"./CommandsAndQueries-Cvc-NSzh.js";import"./index-C3fFd07B.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{S as x}from"./SubcomponentsSection-BVy4lpQe.js";import{ae as d,af as f,ag as j,ai as u}from"./index-Lnmk9LeD.js";import"./withWebComponent-CjthvP8A.js";import"./person-placeholder-D8bKae9H.js";import"./Link-DZg2nJC9.js";import{N as i}from"./index-D6iI1iAa.js";import{C as h,D as m}from"./AnalyticalCardHeader.stories-Cd5YZQfL.js";import"./index-fq-A78mQ.js";import"./slot-_4yKMUwC.js";import"./event-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./Button-BBQ8R6D6.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./i18n-defaults-BotoAXl7.js";import"./TagDesign-Dou_yO3g.js";import"./index-sbqOYYIm.js";import"./utils-y8u8HxGx.js";import"./main-C6oD7XT2.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BVNesCV8.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-C5CUzSoK.js";import"./chunk-NUUEMKO5-Blno14Tx.js";import"./iframe-Be8Bv2HM.js";import"../sb-preview/runtime.js";import"./client-BzooOYO_.js";import"./copy-DL3IQ6be.js";import"./copy-1gorG9K6.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-DBMEQ9W3.js";import"./index-rDX7GLbX.js";import"./I18nStore-MR5G_kEB.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Cn2MHtDd.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-DPG7W1kp.js";import"./index-BdA_tfl3.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.js";import"./_baseUniq-18efwtne.js";import"./index-ar2LJKLv.js";import"./index-DrFu-skq.js";import"./i18n-defaults-BGhPckAt.js";import"./index-BcPgEfiu.js";import"./LineChart-15Mgt1g_.js";import"./ThemingParameters-DOkJX3Ed.js";import"./index-C-Zfmu7Z.js";import"./YAxisTicks-BgNbhI_2.js";import"./ChartContainer-B2OSI0Kb.js";import"./debounce-BNez58WF.js";import"./tiny-invariant-CCoILDQG.js";import"./index-rNTiGNI1.js";import"./index-DSWkZP8z.js";import"./debounce-D7W5PopO.js";import"./useTooltipFormatter-4wPybOwn.js";import"./staticProps-C08wKHQQ.js";import"./ChartDataLabel-NbAZHYMT.js";import"./useLongestYAxisLabel-Bfen3K8g.js";import"./react-content-loader.es-BcmDwNEo.js";import"./Line-qwFz8Z4H.js";import"./useIsRTL-DJgoVCsF.js";import"./directionChange-B4XYjAP3.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-LHYF-KQv.js b/nightly/assets/AnalyticalCardHeader.stories-Cd5YZQfL.js similarity index 96% rename from nightly/assets/AnalyticalCardHeader.stories-LHYF-KQv.js rename to nightly/assets/AnalyticalCardHeader.stories-Cd5YZQfL.js index e286787c795..3dca0911555 100644 --- a/nightly/assets/AnalyticalCardHeader.stories-LHYF-KQv.js +++ b/nightly/assets/AnalyticalCardHeader.stories-Cd5YZQfL.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DEdD30eg.js";import{L as l}from"./LineChart-COFX4MDp.js";import{C as d}from"./index-BmvVf3i2.js";import{A as i,N as a,V as t,D as u}from"./index-D6iI1iAa.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-15Mgt1g_.js";import{C as d}from"./index-BmvVf3i2.js";import{A as i,N as a,V as t,D as u}from"./index-D6iI1iAa.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))(mr||{});const Ct=new Proxy(mr,{get:(a,s)=>`var(${a[s]})`});var rn=(a=>(a.Default="Default",a.Smart="Smart",a.Grow="Grow",a))(rn||{}),Pa=(a=>(a.Row="Row",a.RowOnly="RowOnly",a.RowSelector="RowSelector",a))(Pa||{}),De=(a=>(a.None="None",a.Single="Single",a.Multiple="Multiple",a))(De||{}),Aa=(a=>(a.Expandable="Expandable",a.Visible="Visible",a.IncludeHeight="IncludeHeight",a.IncludeHeightExpandable="IncludeHeightExpandable",a))(Aa||{}),$e=(a=>(a.Fixed="Fixed",a.Auto="Auto",a.AutoWithEmptyRows="AutoWithEmptyRows",a.Interactive="Interactive",a))($e||{}),Le=(a=>(a.Begin="Begin",a.End="End",a.Left="Left",a.Right="Right",a.Center="Center",a.Initial="Initial",a))(Le||{}),kn=(a=>(a.Bottom="Bottom",a.Inherit="Inherit",a.Middle="Middle",a.Top="Top",a))(kn||{});const Gs=/\[/g,Fs=/]/g;function qs(a){return ci(a).map(s=>String(s).replace(".","_")).join(".").replace(Gs,".").replace(Fs,"").split(".")}function ci(a,s=[]){if(!Array.isArray(a))s.push(a);else for(let r=0;r{const l=qs(s);return Br.set(t,l),l})();let c;try{c=u.reduce((l,p)=>l[p],a)}catch{}return typeof c<"u"?c:r}const Os=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"]),fi=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 kn.Bottom:s.alignItems="flex-end";break;case kn.Middle:s.alignItems="center";break;case kn.Top:s.alignItems="flex-start";break}return s};function Ks(a,s){return a||(typeof document<"u"?parseInt(getComputedStyle(s.current??document.body).getPropertyValue("--_ui5wcr-AnalyticalTableRowHeight")||"44"):44)}function gr(a,s){return a.includes(".")?a.split(".").reduce((r,t)=>r==null?void 0:r[t],s):s.subRows||s[a]}function Js(a){const s=[],r=t=>{t.columns&&t.columns.length&&t.columns.map(r),s.push(t)};return r(a),s}const or="navigation-right-arrow",pi="filter";function en(a,s,r){let t=r.initialDeps??[],u;return()=>{var c,l,p,N;let m;r.key&&((c=r.debug)!=null&&c.call(r))&&(m=Date.now());const R=a();if(!(R.length!==t.length||R.some((M,H)=>t[H]!==M)))return u;t=R;let w;if(r.key&&((l=r.debug)!=null&&l.call(r))&&(w=Date.now()),u=s(...R),r.key&&((p=r.debug)!=null&&p.call(r))){const M=Math.round((Date.now()-m)*100)/100,H=Math.round((Date.now()-w)*100)/100,B=H/16,v=(y,T)=>{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))(mr||{});const Ct=new Proxy(mr,{get:(a,s)=>`var(${a[s]})`});var rn=(a=>(a.Default="Default",a.Smart="Smart",a.Grow="Grow",a))(rn||{}),Pa=(a=>(a.Row="Row",a.RowOnly="RowOnly",a.RowSelector="RowSelector",a))(Pa||{}),De=(a=>(a.None="None",a.Single="Single",a.Multiple="Multiple",a))(De||{}),Aa=(a=>(a.Expandable="Expandable",a.Visible="Visible",a.IncludeHeight="IncludeHeight",a.IncludeHeightExpandable="IncludeHeightExpandable",a))(Aa||{}),$e=(a=>(a.Fixed="Fixed",a.Auto="Auto",a.AutoWithEmptyRows="AutoWithEmptyRows",a.Interactive="Interactive",a))($e||{}),Le=(a=>(a.Begin="Begin",a.End="End",a.Left="Left",a.Right="Right",a.Center="Center",a.Initial="Initial",a))(Le||{}),kn=(a=>(a.Bottom="Bottom",a.Inherit="Inherit",a.Middle="Middle",a.Top="Top",a))(kn||{});const Gs=/\[/g,Fs=/]/g;function qs(a){return ci(a).map(s=>String(s).replace(".","_")).join(".").replace(Gs,".").replace(Fs,"").split(".")}function ci(a,s=[]){if(!Array.isArray(a))s.push(a);else for(let r=0;r{const l=qs(s);return Br.set(t,l),l})();let c;try{c=u.reduce((l,p)=>l[p],a)}catch{}return typeof c<"u"?c:r}const Os=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"]),fi=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 kn.Bottom:s.alignItems="flex-end";break;case kn.Middle:s.alignItems="center";break;case kn.Top:s.alignItems="flex-start";break}return s};function Ks(a,s){return a||(typeof document<"u"?parseInt(getComputedStyle(s.current??document.body).getPropertyValue("--_ui5wcr-AnalyticalTableRowHeight")||"44"):44)}function gr(a,s){return a.includes(".")?a.split(".").reduce((r,t)=>r==null?void 0:r[t],s):s.subRows||s[a]}function Js(a){const s=[],r=t=>{t.columns&&t.columns.length&&t.columns.map(r),s.push(t)};return r(a),s}const or="navigation-right-arrow",pi="filter";function en(a,s,r){let t=r.initialDeps??[],u;return()=>{var c,l,p,N;let m;r.key&&((c=r.debug)!=null&&c.call(r))&&(m=Date.now());const R=a();if(!(R.length!==t.length||R.some((M,H)=>t[H]!==M)))return u;t=R;let w;if(r.key&&((l=r.debug)!=null&&l.call(r))&&(w=Date.now()),u=s(...R),r.key&&((p=r.debug)!=null&&p.call(r))){const M=Math.round((Date.now()-m)*100)/100,H=Math.round((Date.now()-w)*100)/100,B=H/16,v=(y,T)=>{for(y=String(y);y.lengthMath.abs(a-s)<1,$s=(a,s,r)=>{let t;return function(...u){a.clearTimeout(t),t=a.setTimeout(()=>s.apply(this,u),r)}},Us=a=>a,Ys=a=>{const s=Math.max(a.startIndex-a.overscan,0),r=Math.min(a.endIndex+a.overscan,a.count-1),t=[];for(let u=s;u<=r;u++)t.push(u);return t},Xs=(a,s)=>{const r=a.scrollElement;if(!r)return;const t=a.targetWindow;if(!t)return;const u=l=>{const{width:p,height:N}=l;s({width:Math.round(p),height:Math.round(N)})};if(u(r.getBoundingClientRect()),!t.ResizeObserver)return()=>{};const c=new t.ResizeObserver(l=>{const p=l[0];if(p!=null&&p.borderBoxSize){const N=p.borderBoxSize[0];if(N){u({width:N.inlineSize,height:N.blockSize});return}}u(r.getBoundingClientRect())});return c.observe(r,{box:"border-box"}),()=>{c.unobserve(r)}},Ir={passive:!0},Zs=typeof window>"u"?!0:"onscrollend"in window,Qs=(a,s)=>{const r=a.scrollElement;if(!r)return;const t=a.targetWindow;if(!t)return;let u=0;const c=Zs?()=>{}:$s(t,()=>{s(u,!1)},a.options.isScrollingResetDelay),l=m=>()=>{const{horizontal:R,isRtl:k}=a.options;u=R?r.scrollLeft*(k&&-1||1):r.scrollTop,c(),s(u,m)},p=l(!0),N=l(!1);return N(),r.addEventListener("scroll",p,Ir),r.addEventListener("scrollend",N,Ir),()=>{r.removeEventListener("scroll",p),r.removeEventListener("scrollend",N)}},eo=(a,s,r)=>{if(s!=null&&s.borderBoxSize){const t=s.borderBoxSize[0];if(t)return Math.round(t[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(a.getBoundingClientRect()[r.options.horizontal?"width":"height"])},ao=(a,{adjustments:s=0,behavior:r},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:r})};class no{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 r=null;const t=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(u=>{u.forEach(c=>{this._measureElement(c.target,c)})}));return{disconnect:()=>{var u;(u=t())==null||u.disconnect(),r=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=r=>{Object.entries(r).forEach(([t,u])=>{typeof u>"u"&&delete r[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Us,rangeExtractor:Ys,onChange:()=>{},measureElement:eo,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...r}},this.notify=r=>{var t,u;(u=(t=this.options).onChange)==null||u.call(t,this,r)},this.maybeNotify=en(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{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(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;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=((r=this.scrollElement)==null?void 0:r.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=(r,t)=>{const u=new Map,c=new Map;for(let l=t-1;l>=0;l--){const p=r[l];if(u.has(p.lane))continue;const N=c.get(p.lane);if(N==null||p.end>N.end?c.set(p.lane,p):p.endl.end===p.end?l.index-p.index:l.end-p.end)[0]:void 0},this.getMeasurementOptions=en(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,t,u,c,l)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:t,scrollMargin:u,getItemKey:c,enabled:l}),{key:!1}),this.getMeasurements=en(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,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 N=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const m=this.measurementsCache.slice(0,N);for(let R=N;Rthis.options.debug}),this.calculateRange=en(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,t,u)=>this.range=r.length>0&&t>0?to({measurements:r,outerSize:t,scrollOffset:u}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=en(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,t,u,c)=>t===null?[]:r({startIndex:t.startIndex,endIndex:t.endIndex,overscan:u,count:c}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const t=this.options.indexAttribute,u=r.getAttribute(t);return u?parseInt(u,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(r,t)=>{const u=this.indexFromElement(r),c=this.measurementsCache[u];if(!c)return;const l=c.key,p=this.elementsCache.get(l);p!==r&&(p&&this.observer.unobserve(p),this.observer.observe(r),this.elementsCache.set(l,r)),r.isConnected&&this.resizeItem(u,this.options.measureElement(r,t,this))},this.resizeItem=(r,t)=>{const u=this.measurementsCache[r];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(!r){this.elementsCache.forEach((t,u)=>{t.isConnected||(this.observer.unobserve(t),this.elementsCache.delete(u))});return}this._measureElement(r,void 0)},this.getVirtualItems=en(()=>[this.getIndexes(),this.getMeasurements()],(r,t)=>{const u=[];for(let c=0,l=r.length;cthis.options.debug}),this.getVirtualItemForOffset=r=>{const t=this.getMeasurements();if(t.length!==0)return er(t[hi(0,t.length-1,u=>er(t[u]).start,r)])},this.getOffsetForAlignment=(r,t)=>{const u=this.getSize(),c=this.getScrollOffset();t==="auto"&&(r<=c?t="start":r>=c+u?t="end":t="start"),t==="start"?r=r:t==="end"?r=r-u:t==="center"&&(r=r-u/2);const l=this.options.horizontal?"scrollWidth":"scrollHeight",N=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[l]:this.scrollElement[l]:0)-u;return Math.max(Math.min(N,r),0)},this.getOffsetForIndex=(r,t="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const u=this.measurementsCache[r];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=(r,{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(r,t),{adjustments:void 0,behavior:u})},this.scrollToIndex=(r,{align:t="auto",behavior:u}={})=>{r=Math.max(0,Math.min(r,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(r,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(r))){const[m]=er(this.getOffsetForIndex(r,p));js(m,this.getScrollOffset())||this.scrollToIndex(r,{align:p,behavior:u})}else this.scrollToIndex(r,{align:p,behavior:u})}))},this.scrollBy=(r,{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()+r,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var r;const t=this.getMeasurements();let u;return t.length===0?u=this.options.paddingStart:u=this.options.lanes===1?((r=t[t.length-1])==null?void 0:r.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=(r,{adjustments:t,behavior:u})=>{this.options.scrollToFn(r,{behavior:u,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(s)}}const hi=(a,s,r,t)=>{for(;a<=s;){const u=(a+s)/2|0,c=r(u);if(ct)s=u-1;else return u}return a>0?a-1:0};function to({measurements:a,outerSize:s,scrollOffset:r}){const t=a.length-1,c=hi(0,t,p=>a[p].start,r);let l=c;for(;l({}),{})[1],r={...a,onChange:(u,c)=>{var l;c?as.flushSync(s):s(),(l=a.onChange)==null||l.call(a,u,c)}},[t]=I.useState(()=>new no(r));return t.setOptions(r),I.useEffect(()=>t._didMount(),[]),ro(()=>t._willUpdate()),t}function Hr(a){return io({observeElementRect:Xs,observeElementOffset:Qs,scrollToFn:ao,...a})}var yi={exports:{}},lr={exports:{}};(function(a,s){(function(r,t){t(s,I)})(Qi,function(r,t){function u(e,n,i,o,g,d,f){try{var b=e[d](f),C=b.value}catch(S){return void i(S)}b.done?n(C):Promise.resolve(C).then(o,g)}function c(e){return function(){var n=this,i=arguments;return new Promise(function(o,g){var d=e.apply(n,i);function f(C){u(d,o,g,f,b,"next",C)}function b(C){u(d,o,g,f,b,"throw",C)}f(void 0)})}}function l(){return(l=Object.assign||function(e){for(var n=1;n=0||(g[i]=e[i]);return g}function N(e){var n=function(i,o){if(typeof i!="object"||i===null)return i;var g=i[Symbol.toPrimitive];if(g!==void 0){var d=g.call(i,o);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}(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," ")},w={Cell:R,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function M(){for(var e=arguments.length,n=new Array(e),i=0;i(d=typeof d=="number"?d:1/0)){var f=g;g=d,d=f}return e.filter(function(b){return n.some(function(C){var S=b.values[C];return S>=g&&S<=d})})};Ha.autoRemove=function(e){return!e||typeof e[0]!="number"&&typeof e[1]!="number"};var wa=Object.freeze({__proto__:null,text:On,exactText:Kn,exactTextCase:he,includes:Jn,includesAll:jn,includesSome:Ie,includesValue:pn,exact:$a,equals:Ua,between:Ha});m.resetFilters="resetFilters",m.setFilter="setFilter",m.setAllFilters="setAllFilters";var q=function(e){e.stateReducers.push(Ca),e.useInstance.push(kt)};function Ca(e,n,i,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,b=o.filterTypes,C=f.find(function(z){return z.id===g});if(!C)throw new Error("React-Table: Could not find a column with id: "+g);var S=xe(C.filter,b||{},wa),E=e.filters.find(function(z){return z.id===g}),x=T(d,E&&E.value);return Ye(S.autoRemove,x,C)?l({},e,{filters:e.filters.filter(function(z){return z.id!==g})}):l({},e,E?{filters:e.filters.map(function(z){return z.id===g?{id:g,value:x}:z})}:{filters:[].concat(e.filters,[{id:g,value:x}])})}if(n.type===m.setAllFilters){var A=n.filters,P=o.allColumns,D=o.filterTypes;return l({},e,{filters:T(A,e.filters).filter(function(z){var G=P.find(function($){return $.id===z.id});return!Ye(xe(G.filter,D||{},wa).autoRemove,z.value,G)})})}}function kt(e){var n=e.data,i=e.rows,o=e.flatRows,g=e.rowsById,d=e.allColumns,f=e.filterTypes,b=e.manualFilters,C=e.defaultCanFilter,S=C!==void 0&&C,E=e.disableFilters,x=e.state.filters,A=e.dispatch,P=e.autoResetFilters,D=P===void 0||P,z=t.useCallback(function(O,ne){A({type:m.setFilter,columnId:O,filterValue:ne})},[A]),G=t.useCallback(function(O){A({type:m.setAllFilters,filters:O})},[A]);d.forEach(function(O){var ne=O.id,de=O.accessor,Z=O.defaultCanFilter,ee=O.disableFilters;O.canFilter=de?le(ee!==!0&&void 0,E!==!0&&void 0,!0):le(Z,S,!1),O.setFilter=function(te){return z(O.id,te)};var pe=x.find(function(te){return te.id===ne});O.filterValue=pe&&pe.value});var $=t.useMemo(function(){if(b||!x.length)return[i,o,g];var O=[],ne={};return[function de(Z,ee){ee===void 0&&(ee=0);var pe=Z;return(pe=x.reduce(function(te,fe){var ge=fe.id,ve=fe.value,U=d.find(function(Ne){return Ne.id===ge});if(!U)return te;ee===0&&(U.preFilteredRows=te);var me=xe(U.filter,f||{},wa);return me?(U.filteredRows=me(te,[ge],ve),U.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+U.id+"."),te)},Z)).forEach(function(te){O.push(te),ne[te.id]=te,te.subRows&&(te.subRows=te.subRows&&te.subRows.length>0?de(te.subRows,ee+1):te.subRows)}),pe}(i),O,ne]},[b,x,i,o,g,d,f]),oe=$[0],j=$[1],V=$[2];t.useMemo(function(){d.filter(function(O){return!x.find(function(ne){return ne.id===O.id})}).forEach(function(O){O.preFilteredRows=oe,O.filteredRows=oe})},[oe,x,d]);var re=_(D);W(function(){re()&&A({type:m.resetFilters})},[A,b?null:n]),Object.assign(e,{preFilteredRows:i,preFilteredFlatRows:o,preFilteredRowsById:g,filteredRows:oe,filteredFlatRows:j,filteredRowsById:V,rows:oe,flatRows:j,rowsById:V,setFilter:z,setAllFilters:G})}q.pluginName="useFilters",m.resetGlobalFilter="resetGlobalFilter",m.setGlobalFilter="setGlobalFilter";var $n=function(e){e.stateReducers.push(At),e.useInstance.push(Dt)};function At(e,n,i,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=xe(o.globalFilter,d||{},wa),b=T(g,e.globalFilter);return Ye(f.autoRemove,b)?(e.globalFilter,p(e,["globalFilter"])):l({},e,{globalFilter:b})}}function Dt(e){var n=e.data,i=e.rows,o=e.flatRows,g=e.rowsById,d=e.allColumns,f=e.filterTypes,b=e.globalFilter,C=e.manualGlobalFilter,S=e.state.globalFilter,E=e.dispatch,x=e.autoResetGlobalFilter,A=x===void 0||x,P=e.disableGlobalFilter,D=t.useCallback(function(V){E({type:m.setGlobalFilter,filterValue:V})},[E]),z=t.useMemo(function(){if(C||S===void 0)return[i,o,g];var V=[],re={},O=xe(b,f||{},wa);if(!O)return console.warn("Could not find a valid 'globalFilter' option."),i;d.forEach(function(de){var Z=de.disableGlobalFilter;de.canFilter=le(Z!==!0&&void 0,P!==!0&&void 0,!0)});var ne=d.filter(function(de){return de.canFilter===!0});return[function de(Z){return(Z=O(Z,ne.map(function(ee){return ee.id}),S)).forEach(function(ee){V.push(ee),re[ee.id]=ee,ee.subRows=ee.subRows&&ee.subRows.length?de(ee.subRows):ee.subRows}),Z}(i),V,re]},[C,S,b,f,d,i,o,g,P]),G=z[0],$=z[1],oe=z[2],j=_(A);W(function(){j()&&E({type:m.resetGlobalFilter})},[E,C?null:n]),Object.assign(e,{preGlobalFilteredRows:i,preGlobalFilteredFlatRows:o,preGlobalFilteredRowsById:g,globalFilteredRows:G,globalFilteredFlatRows:$,globalFilteredRowsById:oe,rows:G,flatRows:$,rowsById:oe,setGlobalFilter:D,disableGlobalFilter:P})}function hn(e,n){return n.reduce(function(i,o){return i+(typeof o=="number"?o:0)},0)}$n.pluginName="useGlobalFilter";var Ra=Object.freeze({__proto__:null,sum:hn,min:function(e){var n=e[0]||0;return e.forEach(function(i){typeof i=="number"&&(n=Math.min(n,i))}),n},max:function(e){var n=e[0]||0;return e.forEach(function(i){typeof i=="number"&&(n=Math.max(n,i))}),n},minMax:function(e){var n=e[0]||0,i=e[0]||0;return e.forEach(function(o){typeof o=="number"&&(n=Math.min(n,o),i=Math.max(i,o))}),n+".."+i},average:function(e){return hn(0,e)/e.length},median:function(e){if(!e.length)return null;var n=Math.floor(e.length/2),i=[].concat(e).sort(function(o,g){return o-g});return e.length%2!=0?i[n]:(i[n-1]+i[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}}),ea=[],ta={};m.resetGroupBy="resetGroupBy",m.setGroupBy="setGroupBy",m.toggleGroupBy="toggleGroupBy";var Ya=function(e){e.getGroupByToggleProps=[Xa],e.stateReducers.push(Un),e.visibleColumnsDeps.push(function(n,i){var o=i.instance;return[].concat(n,[o.state.groupBy])}),e.visibleColumns.push(Yn),e.useInstance.push(yn),e.prepareRow.push(Ke)};Ya.pluginName="useGroupBy";var Xa=function(e,n){var i=n.header;return[e,{onClick:i.canGroupBy?function(o){o.persist(),i.toggleGroupBy()}:void 0,style:{cursor:i.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function Un(e,n,i,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(b){return b!==g})})}}function Yn(e,n){var i=n.instance.state.groupBy,o=i.map(function(d){return e.find(function(f){return f.id===d})}).filter(Boolean),g=e.filter(function(d){return!i.includes(d.id)});return(e=[].concat(o,g)).forEach(function(d){d.isGrouped=i.includes(d.id),d.groupedIndex=i.indexOf(d.id)}),e}var Xn={};function yn(e){var n=e.data,i=e.rows,o=e.flatRows,g=e.rowsById,d=e.allColumns,f=e.flatHeaders,b=e.groupByFn,C=b===void 0?Zn:b,S=e.manualGroupBy,E=e.aggregations,x=E===void 0?Xn:E,A=e.plugins,P=e.state.groupBy,D=e.dispatch,z=e.autoResetGroupBy,G=z===void 0||z,$=e.disableGroupBy,oe=e.defaultCanGroupBy,j=e.getHooks;y(A,["useColumnOrder","useFilters"],"useGroupBy");var V=_(e);d.forEach(function(U){var me=U.accessor,Ne=U.defaultGroupBy,Ge=U.disableGroupBy;U.canGroupBy=me?le(U.canGroupBy,Ge!==!0&&void 0,$!==!0&&void 0,!0):le(U.canGroupBy,Ne,oe,!1),U.canGroupBy&&(U.toggleGroupBy=function(){return e.toggleGroupBy(U.id)}),U.Aggregated=U.Aggregated||U.Cell});var re=t.useCallback(function(U,me){D({type:m.toggleGroupBy,columnId:U,value:me})},[D]),O=t.useCallback(function(U){D({type:m.setGroupBy,value:U})},[D]);f.forEach(function(U){U.getGroupByToggleProps=H(j().getGroupByToggleProps,{instance:V(),header:U})});var ne=t.useMemo(function(){if(S||!P.length)return[i,o,g,ea,ta,o,g];var U=P.filter(function(He){return d.find(function(Na){return Na.id===He})}),me=[],Ne={},Ge=[],Q={},Re=[],Pe={},Fe=function He(Na,fa,br){if(fa===void 0&&(fa=0),fa===U.length)return Na.map(function(ht){return l({},ht,{depth:fa})});var Jt=U[fa],Ji=C(Na,Jt);return Object.entries(Ji).map(function(ht,ji){var wr=ht[0],yt=ht[1],vt=Jt+":"+wr,Cr=He(yt,fa+1,vt=br?br+">"+vt:vt),Rr=fa?we(yt,"leafRows"):yt,$i=function(aa,jt,Yi){var bt={};return d.forEach(function(Me){if(U.includes(Me.id))bt[Me.id]=jt[0]?jt[0].values[Me.id]:null;else{var Sr=typeof Me.aggregate=="function"?Me.aggregate:x[Me.aggregate]||Ra[Me.aggregate];if(Sr){var Xi=jt.map(function(wt){return wt.values[Me.id]}),Zi=aa.map(function(wt){var $t=wt.values[Me.id];if(!Yi&&Me.aggregateValue){var Nr=typeof Me.aggregateValue=="function"?Me.aggregateValue:x[Me.aggregateValue]||Ra[Me.aggregateValue];if(!Nr)throw console.info({column:Me}),new Error("React Table: Invalid column.aggregateValue option for column listed above");$t=Nr($t,wt,Me)}return $t});bt[Me.id]=Sr(Zi,Xi)}else{if(Me.aggregate)throw console.info({column:Me}),new Error("React Table: Invalid column.aggregate option for column listed above");bt[Me.id]=null}}}),bt}(Rr,yt,fa),Ui={id:vt,isGrouped:!0,groupByID:Jt,groupByVal:wr,values:$i,subRows:Cr,leafRows:Rr,depth:fa,index:ji};return Cr.forEach(function(aa){me.push(aa),Ne[aa.id]=aa,aa.isGrouped?(Ge.push(aa),Q[aa.id]=aa):(Re.push(aa),Pe[aa.id]=aa)}),Ui})}(i);return Fe.forEach(function(He){me.push(He),Ne[He.id]=He,He.isGrouped?(Ge.push(He),Q[He.id]=He):(Re.push(He),Pe[He.id]=He)}),[Fe,me,Ne,Ge,Q,Re,Pe]},[S,P,i,o,g,d,x,C]),de=ne[0],Z=ne[1],ee=ne[2],pe=ne[3],te=ne[4],fe=ne[5],ge=ne[6],ve=_(G);W(function(){ve()&&D({type:m.resetGroupBy})},[D,S?null:n]),Object.assign(e,{preGroupedRows:i,preGroupedFlatRow:o,preGroupedRowsById:g,groupedRows:de,groupedFlatRows:Z,groupedRowsById:ee,onlyGroupedFlatRows:pe,onlyGroupedRowsById:te,nonGroupedFlatRows:fe,nonGroupedRowsById:ge,rows:de,flatRows:Z,rowsById:ee,toggleGroupBy:re,setGroupBy:O})}function Ke(e){e.allCells.forEach(function(n){var i;n.isGrouped=n.column.isGrouped&&n.column.id===e.groupByID,n.isPlaceholder=!n.isGrouped&&n.column.isGrouped,n.isAggregated=!n.isGrouped&&!n.isPlaceholder&&((i=e.subRows)==null?void 0:i.length)})}function Zn(e,n){return e.reduce(function(i,o,g){var d=""+o.values[n];return i[d]=Array.isArray(i[d])?i[d]:[],i[d].push(o),i},{})}var Ae=/([0-9]+)/gm;function ze(e,n){return e===n?0:e>n?1:-1}function la(e,n,i){return[e.values[i],n.values[i]]}function Ta(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}var xa=Object.freeze({__proto__:null,alphanumeric:function(e,n,i){var o=la(e,n,i),g=o[0],d=o[1];for(g=Ta(g),d=Ta(d),g=g.split(Ae).filter(Boolean),d=d.split(Ae).filter(Boolean);g.length&&d.length;){var f=g.shift(),b=d.shift(),C=parseInt(f,10),S=parseInt(b,10),E=[C,S].sort();if(isNaN(E[0])){if(f>b)return 1;if(b>f)return-1}else{if(isNaN(E[1]))return isNaN(C)?-1:1;if(C>S)return 1;if(S>C)return-1}}return g.length-d.length},datetime:function(e,n,i){var o=la(e,n,i),g=o[0],d=o[1];return ze(g=g.getTime(),d=d.getTime())},basic:function(e,n,i){var o=la(e,n,i);return ze(o[0],o[1])},string:function(e,n,i){var o=la(e,n,i),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(),b=d.shift(),C=f.toLowerCase(),S=b.toLowerCase();if(C>S)return 1;if(S>C)return-1;if(f>b)return 1;if(b>f)return-1}return g.length-d.length},number:function(e,n,i){var o=la(e,n,i),g=o[0],d=o[1],f=/[^0-9.]/gi;return ze(g=Number(String(g).replace(f,"")),d=Number(String(d).replace(f,"")))}});m.resetSortBy="resetSortBy",m.setSortBy="setSortBy",m.toggleSortBy="toggleSortBy",m.clearSortBy="clearSortBy",w.sortType="alphanumeric",w.sortDescFirst=!1;var vn=function(e){e.getSortByToggleProps=[Et],e.stateReducers.push(Vt),e.useInstance.push(Wt)};vn.pluginName="useSortBy";var Et=function(e,n){var i=n.instance,o=n.column,g=i.isMultiSortEvent,d=g===void 0?function(f){return f.shiftKey}:g;return[e,{onClick:o.canSort?function(f){f.persist(),o.toggleSortBy(void 0,!i.disableMultiSort&&d(f))}:void 0,style:{cursor:o.canSort?"pointer":void 0},title:o.canSort?"Toggle SortBy":void 0}]};function Vt(e,n,i,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(V){return V.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,b=n.multi,C=o.allColumns,S=o.disableMultiSort,E=o.disableSortRemove,x=o.disableMultiRemove,A=o.maxMultiSortColCount,P=A===void 0?Number.MAX_SAFE_INTEGER:A,D=e.sortBy,z=C.find(function(V){return V.id===d}).sortDescFirst,G=D.find(function(V){return V.id===d}),$=D.findIndex(function(V){return V.id===d}),oe=f!=null,j=[];return(g=!S&&b?G?"toggle":"add":$!==D.length-1||D.length!==1?"replace":G?"toggle":"replace")!="toggle"||E||oe||b&&x||!(G&&G.desc&&!z||!G.desc&&z)||(g="remove"),g==="replace"?j=[{id:d,desc:oe?f:z}]:g==="add"?(j=[].concat(D,[{id:d,desc:oe?f:z}])).splice(0,j.length-P):g==="toggle"?j=D.map(function(V){return V.id===d?l({},V,{desc:oe?f:!G.desc}):V}):g==="remove"&&(j=D.filter(function(V){return V.id!==d})),l({},e,{sortBy:j})}}function Wt(e){var n=e.data,i=e.rows,o=e.flatRows,g=e.allColumns,d=e.orderByFn,f=d===void 0?Qn:d,b=e.sortTypes,C=e.manualSortBy,S=e.defaultCanSort,E=e.disableSortBy,x=e.flatHeaders,A=e.state.sortBy,P=e.dispatch,D=e.plugins,z=e.getHooks,G=e.autoResetSortBy,$=G===void 0||G;y(D,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var oe=t.useCallback(function(Z){P({type:m.setSortBy,sortBy:Z})},[P]),j=t.useCallback(function(Z,ee,pe){P({type:m.toggleSortBy,columnId:Z,desc:ee,multi:pe})},[P]),V=_(e);x.forEach(function(Z){var ee=Z.accessor,pe=Z.canSort,te=Z.disableSortBy,fe=Z.id,ge=ee?le(te!==!0&&void 0,E!==!0&&void 0,!0):le(S,pe,!1);Z.canSort=ge,Z.canSort&&(Z.toggleSortBy=function(U,me){return j(Z.id,U,me)},Z.clearSortBy=function(){P({type:m.clearSortBy,columnId:Z.id})}),Z.getSortByToggleProps=H(z().getSortByToggleProps,{instance:V(),column:Z});var ve=A.find(function(U){return U.id===fe});Z.isSorted=!!ve,Z.sortedIndex=A.findIndex(function(U){return U.id===fe}),Z.isSortedDesc=Z.isSorted?ve.desc:void 0});var re=t.useMemo(function(){if(C||!A.length)return[i,o];var Z=[],ee=A.filter(function(pe){return g.find(function(te){return te.id===pe.id})});return[function pe(te){var fe=f(te,ee.map(function(ge){var ve=g.find(function(Ne){return Ne.id===ge.id});if(!ve)throw new Error("React-Table: Could not find a column with id: "+ge.id+" while sorting");var U=ve.sortType,me=ye(U)||(b||{})[U]||xa[U];if(!me)throw new Error("React-Table: Could not find a valid sortType of '"+U+"' for column '"+ge.id+"'.");return function(Ne,Ge){return me(Ne,Ge,ge.id,ge.desc)}}),ee.map(function(ge){var ve=g.find(function(U){return U.id===ge.id});return ve&&ve.sortInverted?ge.desc:!ge.desc}));return fe.forEach(function(ge){Z.push(ge),ge.subRows&&ge.subRows.length!==0&&(ge.subRows=pe(ge.subRows))}),fe}(i),Z]},[C,A,i,o,g,f,b]),O=re[0],ne=re[1],de=_($);W(function(){de()&&P({type:m.resetSortBy})},[C?null:n]),Object.assign(e,{preSortedRows:i,preSortedFlatRows:o,sortedRows:O,sortedFlatRows:ne,rows:O,flatRows:ne,setSortBy:oe,toggleSortBy:j})}function Qn(e,n,i){return[].concat(e).sort(function(o,g){for(var d=0;de.pageIndex?b=g===-1?d.length>=e.pageSize:f-1),b?l({},e,{pageIndex:f}):e}if(n.type===m.setPageSize){var C=n.pageSize,S=e.pageSize*e.pageIndex;return l({},e,{pageIndex:Math.floor(S/C),pageSize:C})}}function Lt(e){var n=e.rows,i=e.autoResetPage,o=i===void 0||i,g=e.manualExpandedKey,d=g===void 0?"expanded":g,f=e.plugins,b=e.pageCount,C=e.paginateExpandedRows,S=C===void 0||C,E=e.expandSubRows,x=E===void 0||E,A=e.state,P=A.pageSize,D=A.pageIndex,z=A.expanded,G=A.globalFilter,$=A.filters,oe=A.groupBy,j=A.sortBy,V=e.dispatch,re=e.data,O=e.manualPagination;y(f,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var ne=_(o);W(function(){ne()&&V({type:m.resetPage})},[V,O?null:re,G,$,oe,j]);var de=O?b:Math.ceil(n.length/P),Z=t.useMemo(function(){return de>0?[].concat(new Array(de)).fill(null).map(function(me,Ne){return Ne}):[]},[de]),ee=t.useMemo(function(){var me;if(O)me=n;else{var Ne=P*D,Ge=Ne+P;me=n.slice(Ne,Ge)}return S?me:Be(me,{manualExpandedKey:d,expanded:z,expandSubRows:x})},[x,z,d,O,D,P,S,n]),pe=D>0,te=de===-1?ee.length>=P:D-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(i){return n({type:m.setColumnOrder,columnOrder:i})},[n])}ca.pluginName="useColumnOrder",w.canResize=!0,m.columnStartResizing="columnStartResizing",m.columnResizing="columnResizing",m.columnDoneResizing="columnDoneResizing",m.resetResize="resetResize";var fr=function(e){e.getResizerProps=[Ai],e.getHeaderProps.push({style:{position:"relative"}}),e.stateReducers.push(Di),e.useInstance.push(Vi),e.useInstanceBeforeDimensions.push(Ei)},Ai=function(e,n){var i=n.instance,o=n.header,g=i.dispatch,d=function(f,b){var C=!1;if(f.type==="touchstart"){if(f.touches&&f.touches.length>1)return;C=!0}var S,E,x=function(j){var V=[];return function re(O){O.columns&&O.columns.length&&O.columns.map(re),V.push(O)}(j),V}(b).map(function(j){return[j.id,j.totalWidth]}),A=C?Math.round(f.touches[0].clientX):f.clientX,P=function(){window.cancelAnimationFrame(S),S=null,g({type:m.columnDoneResizing})},D=function(){window.cancelAnimationFrame(S),S=null,g({type:m.columnResizing,clientX:E})},z=function(j){E=j,S||(S=window.requestAnimationFrame(D))},G={mouse:{moveEvent:"mousemove",moveHandler:function(j){return z(j.clientX)},upEvent:"mouseup",upHandler:function(j){document.removeEventListener("mousemove",G.mouse.moveHandler),document.removeEventListener("mouseup",G.mouse.upHandler),P()}},touch:{moveEvent:"touchmove",moveHandler:function(j){return j.cancelable&&(j.preventDefault(),j.stopPropagation()),z(j.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(j){document.removeEventListener(G.touch.moveEvent,G.touch.moveHandler),document.removeEventListener(G.touch.upEvent,G.touch.moveHandler),P()}}},$=C?G.touch:G.mouse,oe=!!function(){if(typeof Ee=="boolean")return Ee;var j=!1;try{var V={get passive(){return j=!0,!1}};window.addEventListener("test",null,V),window.removeEventListener("test",null,V)}catch{j=!1}return Ee=j}()&&{passive:!1};document.addEventListener($.moveEvent,$.moveHandler,oe),document.addEventListener($.upEvent,$.upHandler,oe),g({type:m.columnStartResizing,columnId:b.id,columnWidth:b.totalWidth,headerIdWidths:x,clientX:A})};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 i=n.clientX,o=n.columnId,g=n.columnWidth,d=n.headerIdWidths;return l({},e,{columnResizing:l({},e.columnResizing,{startX:i,headerIdWidths:d,columnWidth:g,isResizingColumn:o})})}if(n.type===m.columnResizing){var f=n.clientX,b=e.columnResizing,C=b.startX,S=b.columnWidth,E=b.headerIdWidths,x=(f-C)/S,A={};return(E===void 0?[]:E).forEach(function(P){var D=P[0],z=P[1];A[D]=Math.max(z+z*x,0)}),l({},e,{columnResizing:l({},e.columnResizing,{columnWidths:l({},e.columnResizing.columnWidths,{},A)})})}return n.type===m.columnDoneResizing?l({},e,{columnResizing:l({},e.columnResizing,{startX:null,isResizingColumn:null})}):void 0}fr.pluginName="useResizeColumns";var Ei=function(e){var n=e.flatHeaders,i=e.disableResizing,o=e.getHooks,g=e.state.columnResizing,d=_(e);n.forEach(function(f){var b=le(f.disableResizing!==!0&&void 0,i!==!0&&void 0,!0);f.canResize=b,f.width=g.columnWidths[f.id]||f.originalWidth||f.width,f.isResizing=g.isResizingColumn===f.id,b&&(f.getResizerProps=H(o().getResizerProps,{instance:d(),header:f}))})};function Vi(e){var n=e.plugins,i=e.dispatch,o=e.autoResetResize,g=o===void 0||o,d=e.columns;y(n,["useAbsoluteLayout"],"useResizeColumns");var f=_(g);W(function(){f()&&i({type:m.resetResize})},[d]);var b=t.useCallback(function(){return i({type:m.resetResize})},[i]);Object.assign(e,{resetResizing:b})}var Gt={position:"absolute",top:0},pr=function(e){e.getTableBodyProps.push(pt),e.getRowProps.push(pt),e.getHeaderGroupProps.push(pt),e.getFooterGroupProps.push(pt),e.getHeaderProps.push(function(n,i){var o=i.column;return[n,{style:l({},Gt,{left:o.totalLeft+"px",width:o.totalWidth+"px"})}]}),e.getCellProps.push(function(n,i){var o=i.cell;return[n,{style:l({},Gt,{left:o.column.totalLeft+"px",width:o.column.totalWidth+"px"})}]}),e.getFooterProps.push(function(n,i){var o=i.column;return[n,{style:l({},Gt,{left:o.totalLeft+"px",width:o.totalWidth+"px"})}]})};pr.pluginName="useAbsoluteLayout";var pt=function(e,n){return[e,{style:{position:"relative",width:n.instance.totalColumnsWidth+"px"}}]},Ft={display:"inline-block",boxSizing:"border-box"},qt=function(e,n){return[e,{style:{display:"flex",width:n.instance.totalColumnsWidth+"px"}}]},hr=function(e){e.getRowProps.push(qt),e.getHeaderGroupProps.push(qt),e.getFooterGroupProps.push(qt),e.getHeaderProps.push(function(n,i){var o=i.column;return[n,{style:l({},Ft,{width:o.totalWidth+"px"})}]}),e.getCellProps.push(function(n,i){var o=i.cell;return[n,{style:l({},Ft,{width:o.column.totalWidth+"px"})}]}),e.getFooterProps.push(function(n,i){var o=i.column;return[n,{style:l({},Ft,{width:o.totalWidth+"px"})}]})};function yr(e){e.getTableProps.push(Wi),e.getRowProps.push(Ot),e.getHeaderGroupProps.push(Ot),e.getFooterGroupProps.push(Ot),e.getHeaderProps.push(Li),e.getCellProps.push(zi),e.getFooterProps.push(Gi)}hr.pluginName="useBlockLayout",yr.pluginName="useFlexLayout";var Wi=function(e,n){return[e,{style:{minWidth:n.instance.totalColumnsMinWidth+"px"}}]},Ot=function(e,n){return[e,{style:{display:"flex",flex:"1 0 auto",minWidth:n.instance.totalColumnsMinWidth+"px"}}]},Li=function(e,n){var i=n.column;return[e,{style:{boxSizing:"border-box",flex:i.totalFlexWidth?i.totalFlexWidth+" 0 auto":void 0,minWidth:i.totalMinWidth+"px",width:i.totalWidth+"px"}}]},zi=function(e,n){var i=n.cell;return[e,{style:{boxSizing:"border-box",flex:i.column.totalFlexWidth+" 0 auto",minWidth:i.column.totalMinWidth+"px",width:i.column.totalWidth+"px"}}]},Gi=function(e,n){var i=n.column;return[e,{style:{boxSizing:"border-box",flex:i.totalFlexWidth?i.totalFlexWidth+" 0 auto":void 0,minWidth:i.totalMinWidth+"px",width:i.totalWidth+"px"}}]};function vr(e){e.stateReducers.push(Ki),e.getTableProps.push(Fi),e.getHeaderProps.push(qi),e.getRowProps.push(Oi)}m.columnStartResizing="columnStartResizing",m.columnResizing="columnResizing",m.columnDoneResizing="columnDoneResizing",m.resetResize="resetResize",vr.pluginName="useGridLayout";var Fi=function(e,n){var i=n.instance;return[e,{style:{display:"grid",gridTemplateColumns:i.visibleColumns.map(function(o){var g;return i.state.gridLayout.columnWidths[o.id]?i.state.gridLayout.columnWidths[o.id]+"px":(g=i.state.columnResizing)!=null&&g.isResizingColumn?i.state.gridLayout.startWidths[o.id]+"px":typeof o.width=="number"?o.width+"px":o.width}).join(" ")}}]},qi=function(e,n){var i=n.column;return[e,{id:"header-cell-"+i.id,style:{position:"sticky",gridColumn:"span "+i.totalVisibleHeaderCount}}]},Oi=function(e,n){var i=n.row;return i.isExpanded?[e,{style:{gridColumn:"1 / "+(i.cells.length+1)}}]:[e,{}]};function Ki(e,n,i,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=Kt(g);if(f!==void 0){var b=o.visibleColumns.reduce(function(V,re){var O;return l({},V,((O={})[re.id]=Kt(re.id),O))},{}),C=o.visibleColumns.reduce(function(V,re){var O;return l({},V,((O={})[re.id]=re.minWidth,O))},{}),S=o.visibleColumns.reduce(function(V,re){var O;return l({},V,((O={})[re.id]=re.maxWidth,O))},{}),E=d.map(function(V){var re=V[0];return[re,Kt(re)]});return l({},e,{gridLayout:l({},e.gridLayout,{startWidths:b,minWidths:C,maxWidths:S,headerIdGridWidths:E,columnWidth:f})})}return e}if(n.type===m.columnResizing){var x=n.clientX,A=e.columnResizing.startX,P=e.gridLayout,D=P.columnWidth,z=P.minWidths,G=P.maxWidths,$=P.headerIdGridWidths,oe=(x-A)/D,j={};return($===void 0?[]:$).forEach(function(V){var re=V[0],O=V[1];j[re]=Math.min(Math.max(z[re],O+O*oe),G[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 Kt(e){var n,i=(n=document.getElementById("header-cell-"+e))==null?void 0:n.offsetWidth;if(i!==void 0)return i}r._UNSTABLE_usePivotColumns=bn,r.actions=m,r.defaultColumn=w,r.defaultGroupByFn=Zn,r.defaultOrderByFn=Qn,r.defaultRenderer=R,r.emptyRenderer=k,r.ensurePluginOrder=y,r.flexRender=ae,r.functionalUpdate=T,r.loopHooks=v,r.makePropGetter=H,r.makeRenderer=L,r.reduceHooks=B,r.safeUseLayoutEffect=J,r.useAbsoluteLayout=pr,r.useAsyncDebounce=function(e,n){n===void 0&&(n=0);var i=t.useRef({}),o=_(e),g=_(n);return t.useCallback(function(){var d=c(regeneratorRuntime.mark(function f(){var b,C,S,E=arguments;return regeneratorRuntime.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:for(b=E.length,C=new Array(b),S=0;S1?n-1:0),o=1;o[role=columnheader]{border-inline-start:var(--_ui5wcr-AnalyticalTable-OuterCellBorder)}.ColumnHeader_thContainer_1aj9t_1:last-child>[role=columnheader]{border-inline-end:var(--_ui5wcr-AnalyticalTable-OuterCellBorder)}.ColumnHeader_verticalEndBorder_1aj9t_11:last-child>[role=columnheader]{border-inline-end:1px solid var(--sapList_BorderColor)}.ColumnHeader_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%}.ColumnHeader_header_1aj9t_15>span{overflow-x:hidden;overflow-y:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ColumnHeader_text_1aj9t_42{color:inherit;cursor:inherit;font-family:inherit;text-align:start;width:100%}.ColumnHeader_iconContainer_1aj9t_50{color:var(--sapContent_IconColor);display:flex;inset-inline-end:.5rem;position:absolute}.ColumnHeader_iconContainer_1aj9t_50>[ui5-icon]:not(:first-child){margin-inline-start:.125rem}.ColumnHeader_selectAllCheckBoxContainer_1aj9t_61{display:flex;justify-content:center}}"},ka={thContainer:"ColumnHeader_thContainer_1aj9t_1",verticalEndBorder:"ColumnHeader_verticalEndBorder_1aj9t_11",header:"ColumnHeader_header_1aj9t_15",text:"ColumnHeader_text_1aj9t_42",iconContainer:"ColumnHeader_iconContainer_1aj9t_50",selectAllCheckBoxContainer:"ColumnHeader_selectAllCheckBoxContainer_1aj9t_61"},Eo={packageName:"@ui5/webcomponents-react",fileName:"ColumnHeaderModal.module.css",content:"@layer ui5-webcomponents-react{.ColumnHeaderModal_popover_1cy5y_1{font-weight:400}.ColumnHeaderModal_popover_1cy5y_1::part(content){padding:0}.ColumnHeaderModal_filterIcon_1cy5y_9{color:var(--sapContent_NonInteractiveIconColor);padding-inline-end:.5rem}.ColumnHeaderModal_filterText_1cy5y_14{overflow:visible;padding-inline-end:.5rem}}"},ar={popover:"ColumnHeaderModal_popover_1cy5y_1",filterIcon:"ColumnHeaderModal_filterIcon_1cy5y_9",filterText:"ColumnHeaderModal_filterText_1cy5y_14"},Ea=a=>{const{column:s,onSort:r,onGroupBy:t,open:u,setPopoverOpen:c,isRtl:l,openerRef:p}=a;ma(Eo,Ea.displayName);const N=s.canFilter,m=s.canGroupBy,R=s.canSort,k=I.useRef(null),w=I.useRef(null),{Filter:M}=s,H=ur("@ui5/webcomponents-react"),B=H.getText(ns),v=H.getText(ts),y=H.getText(rs),T=H.getText(is),_=H.getText(ss),J=H.getText(os),W=I.useMemo(()=>{if(N)return{iconDimensions:`var(${_r("--_ui5_list_item_icon_size")})`,fontSize:`var(${_r("--_ui5_list_item_title_size")})`}},[N]),L=le=>{const ye=le.detail.item.getAttribute("data-sort");switch(ye){case"asc":s.toggleSortBy(!1,!!s.enableMultiSort),typeof r=="function"&&r(Je(le,{column:s,sortDirection:ye}));break;case"desc":s.toggleSortBy(!0,!!s.enableMultiSort),typeof r=="function"&&r(Je(le,{column:s,sortDirection:ye}));break;case"clear":s.clearSortBy(),typeof r=="function"&&r(Je(le,{column:s,sortDirection:ye}));break;case"group":const we=!s.isGrouped;s.toggleGroupBy(we),typeof t=="function"&&t(Je(le,{column:s,isGrouped:we}));break}c(!1)},ae=s.isSorted&&s.isSortedDesc===!1,K=s.isSorted&&s.isSortedDesc===!0,ue=le=>{Nt(le),c(!1)},F=()=>{var le,ye,we;(we=(ye=(le=w.current)==null?void 0:le.children)==null?void 0:ye[0])==null||we.focus()},X=(()=>{switch(s.hAlign){case Le.Begin:return l?pa.End:pa.Start;case Le.End:return l?pa.Start:pa.End;case Le.Left:return pa.Start;case Le.Right:return pa.End;case Le.Center:return pa.Center;default:return l?pa.End:pa.Start}})(),ie=le=>{le.key==="Enter"&&c(!1)},ce=le=>{le.key!=="Escape"&&Nt(le)};return I.useEffect(()=>{u&&k.current&&p.current&&customElements.whenDefined(Bs("ui5-popover")).then(()=>{k.current.opener=p.current})},[u]),h.jsx(Ts,{open:u,hideArrow:!0,horizontalAlign:X,placement:Ms.Bottom,ref:k,className:ar.popover,onClick:Nt,onClose:ue,onOpen:F,"data-component-name":"ATHeaderPopover",children:h.jsxs(Is,{onItemClick:L,ref:w,onKeyDown:ce,"data-component-name":"ATHeaderPopoverList",children:[ae&&h.jsx(Sn,{type:Qa.Active,icon:Pr,"data-sort":"clear",children:B}),R&&!ae&&h.jsx(Sn,{type:Qa.Active,icon:vi,"data-sort":"asc",children:v}),R&&!K&&h.jsx(Sn,{type:Qa.Active,icon:bi,"data-sort":"desc",children:y}),K&&h.jsx(Sn,{type:Qa.Active,icon:Pr,"data-sort":"clear",children:B}),N&&h.jsx(Hs,{type:Qa.Inactive,onKeyDown:ie,accessibleName:J,children:h.jsxs(sa,{alignItems:an.Center,children:[h.jsx(tn,{name:pi,className:ar.filterIcon,"aria-hidden":!0,style:{minWidth:W.iconDimensions,minHeight:W.iconDimensions}}),h.jsx(ia,{maxLines:1,className:ar.filterText,style:{fontSize:W.fontSize},children:J}),h.jsx(M,{column:s,popoverRef:k})]})}),m&&h.jsx(Sn,{type:Qa.Active,icon:ui,"data-sort":"group",children:s.isGrouped?_:T})]})})};Ea.displayName="ColumnHeaderModal";try{Ea.displayName="ColumnHeaderModal",Ea.__docgenInfo={description:"",displayName:"ColumnHeaderModal",props:{column:{defaultValue:null,description:"",name:"column",required:!0,type:{name:"AnalyticalTableColumnDefinition"}},onSort:{defaultValue:null,description:"",name:"onSort",required:!1,type:{name:"(e: CustomEvent<{ column: unknown; sortDirection: string; }>) => void"}},onGroupBy:{defaultValue:null,description:"",name:"onGroupBy",required:!1,type:{name:"(e: CustomEvent<{ column: unknown; isGrouped: boolean; }>) => void"}},open:{defaultValue:null,description:"",name:"open",required:!0,type:{name:"boolean"}},setPopoverOpen:{defaultValue:null,description:"",name:"setPopoverOpen",required:!0,type:{name:"(open: boolean) => void"}},isRtl:{defaultValue:null,description:"",name:"isRtl",required:!0,type:{name:"boolean"}},openerRef:{defaultValue:null,description:"",name:"openerRef",required:!0,type:{name:"MutableRefObject"}}}}}catch{}try{Ea.displayName="ColumnHeaderModal",Ea.__docgenInfo={description:"",displayName:"ColumnHeaderModal",props:{column:{defaultValue:null,description:"",name:"column",required:!0,type:{name:"AnalyticalTableColumnDefinition"}},onSort:{defaultValue:null,description:"",name:"onSort",required:!1,type:{name:"(e: CustomEvent<{ column: unknown; sortDirection: string; }>) => void"}},onGroupBy:{defaultValue:null,description:"",name:"onGroupBy",required:!1,type:{name:"(e: CustomEvent<{ column: unknown; isGrouped: boolean; }>) => void"}},open:{defaultValue:null,description:"",name:"open",required:!0,type:{name:"boolean"}},setPopoverOpen:{defaultValue:null,description:"",name:"setPopoverOpen",required:!0,type:{name:"(open: boolean) => void"}},isRtl:{defaultValue:null,description:"",name:"isRtl",required:!0,type:{name:"boolean"}},openerRef:{defaultValue:null,description:"",name:"openerRef",required:!0,type:{name:"MutableRefObject"}}}}}catch{}const Va=a=>{ma(Do,Va.displayName);const{id:s,children:r,column:t,columnId:u,className:c,style:l,onSort:p,onGroupBy:N,onDragEnter:m,onDragOver:R,onDragStart:k,onDrop:w,onDragEnd:M,headerTooltip:H,isDraggable:B,dragOver:v,role:y,virtualColumn:T,columnVirtualizer:_,isRtl:J,visibleColumnIndex:W,onClick:L,onKeyDown:ae,onKeyUp:K,isFiltered:ue,title:F,"aria-label":X,"aria-sort":ie,showVerticalEndBorder:ce}=a,le=T.index,[ye,we]=I.useState(!1),Be=I.useRef(null),xe=typeof r=="string",Ye=H||(xe?r:null),Xe=(()=>{let se=0;const je={};return t.hAlign&&(je.textAlign=t.hAlign.toLowerCase()),t.isSorted&&se++,t.isGrouped&&se++,ue&&se++,se===0||(se>0&&(se+=.625),je.marginInlineEnd=`${se}rem`),je})(),Ee=t.canGroupBy||t.canSort||t.canFilter,Ze=se=>{typeof L=="function"&&L(se),Ee&&we(!0)},na=J?{right:0,transform:`translateX(-${T.start}px)`}:{left:0,transform:`translateX(${T.start}px)`},ha=se=>{typeof ae=="function"&&ae(se),Ee&&se.code==="Enter"&&we(!0),se.code==="Space"&&se.preventDefault()},Qe=se=>{typeof K=="function"&&K(se),Ee&&se.code==="Space"&&!se.target.hasAttribute("ui5-li")&&we(!0)};return t?h.jsx("div",{ref:Be,className:da(ka.thContainer,ce&&ka.verticalEndBorder),style:{position:"absolute",insetBlockStart:0,width:`${T.size}px`,...na},children:h.jsxs("div",{ref:_.measureElement,"data-visible-column-index":W,"data-visible-row-index":0,"data-row-index":0,"data-column-index":le,tabIndex:-1,id:s,className:c,style:{...l,borderInlineStart:v?`3px solid ${dr.sapSelectedColor}`:void 0},"aria-haspopup":Ee?"menu":void 0,role:y,draggable:B,onDragEnter:m,onDragOver:R,onDragStart:k,onDrop:w,onDragEnd:M,"data-column-id":u,onClick:Ze,onKeyDown:ha,onKeyUp:Qe,"aria-label":X,"aria-sort":ie,title:F,children:[h.jsxs("div",{className:da(ka.header,u==="__ui5wcr__internal_selection_column"&&ka.selectAllCheckBoxContainer),"data-h-align":t.hAlign,"data-component-name":`AnalyticalTableHeaderContentContainer-${u}`,children:[xe?h.jsx(ia,{title:Ye,maxLines:1,style:Xe,className:ka.text,"data-component-name":`AnalyticalTableHeaderTextContentContainer-${u}`,children:r}):h.jsx("span",{title:Ye,style:Xe,className:ka.text,"data-component-name":`AnalyticalTableHeaderContentContainer-${u}`,children:r}),h.jsxs("div",{className:ka.iconContainer,"data-component-name":`AnalyticalTableHeaderIconsContainer-${u}`,children:[ue&&h.jsx(tn,{name:pi,"aria-hidden":!0}),t.isSorted&&h.jsx(tn,{name:t.isSortedDesc?bi:vi,"aria-hidden":!0}),t.isGrouped&&h.jsx(tn,{name:ui,"aria-hidden":!0})]})]}),Ee&&ye&&h.jsx(Ea,{isRtl:J,column:t,onSort:p,onGroupBy:N,openerRef:Be,open:ye,setPopoverOpen:we})]})}):null};Va.displayName="ColumnHeader";try{Va.displayName="ColumnHeader",Va.__docgenInfo={description:"",displayName:"ColumnHeader",props:{visibleColumnIndex:{defaultValue:null,description:"",name:"visibleColumnIndex",required:!0,type:{name:"number"}},onSort:{defaultValue:null,description:"",name:"onSort",required:!1,type:{name:"(e: CustomEvent<{ column: unknown; sortDirection: string; }>) => void"}},onGroupBy:{defaultValue:null,description:"",name:"onGroupBy",required:!1,type:{name:"(e: CustomEvent<{ column: unknown; isGrouped: boolean; }>) => void"}},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{Va.displayName="ColumnHeader",Va.__docgenInfo={description:"",displayName:"ColumnHeader",props:{visibleColumnIndex:{defaultValue:null,description:"",name:"visibleColumnIndex",required:!0,type:{name:"number"}},onSort:{defaultValue:null,description:"",name:"onSort",required:!1,type:{name:"(e: CustomEvent<{ column: unknown; sortDirection: string; }>) => void"}},onGroupBy:{defaultValue:null,description:"",name:"onGroupBy",required:!1,type:{name:"(e: CustomEvent<{ column: unknown; isGrouped: boolean; }>) => void"}},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 ln=I.forwardRef((a,s)=>{const{headerProps:r,headerGroup:t,onSort:u,onGroupByChanged:c,resizeInfo:l,isRtl:p,columnVirtualizer:N,uniqueId:m,showVerticalEndBorder:R}=a;ma(lo,"Resizer");const{key:k,...w}=r;return h.jsx("div",{...w,style:{width:`${N.getTotalSize()}px`},ref:s,"data-component-name":"AnalyticalTableHeaderRow",children:N.getVirtualItems().map((M,H)=>{const B=t.headers[M.index];if(!B)return null;const v=!B.disableResizing&&M.index+1===t.headers.length,y=p?{right:`${B.totalFlexWidth+B.totalLeft-(v?3:0)}px`,transform:"translateX(50%)"}:{left:`${B.totalFlexWidth+B.totalLeft-(v?3:0)}px`,transform:"translateX(-50%)"},{key:T,..._}=B.getHeaderProps();return h.jsxs(I.Fragment,{children:[B.canResize&&B.getResizerProps&&h.jsx("div",{...B.getResizerProps(),"data-resizer":!0,"data-component-name":"AnalyticalTableResizer",className:uo.resizer,style:y}),h.jsx(Va,{..._,showVerticalEndBorder:R,id:`${m}${(_==null?void 0:_.id)??""}`,columnId:_.id,visibleColumnIndex:H,onSort:u,onGroupBy:c,headerTooltip:B.headerTooltip,isDraggable:!B.disableDragAndDrop&&!l.isResizingColumn,virtualColumn:M,columnVirtualizer:N,isRtl:p,children:B.render("Header")})]},T)})},k)});ln.displayName="ColumnHeaderContainer";try{ln.displayName="ColumnHeaderContainer",ln.__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"}},onSort:{defaultValue:null,description:"",name:"onSort",required:!0,type:{name:"(e: CustomEvent<{ column: unknown; sortDirection: string; }>) => void"}},onGroupByChanged:{defaultValue:null,description:"",name:"onGroupByChanged",required:!0,type:{name:"(e: CustomEvent<{ column?: Record; isGrouped?: boolean; }>) => void"}},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{ln.displayName="ColumnHeaderContainer",ln.__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"}},onSort:{defaultValue:null,description:"",name:"onSort",required:!0,type:{name:"(e: CustomEvent<{ column: unknown; sortDirection: string; }>) => void"}},onGroupByChanged:{defaultValue:null,description:"",name:"onGroupByChanged",required:!0,type:{name:"(e: CustomEvent<{ column?: Record; isGrouped?: boolean; }>) => void"}},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 An=({column:a})=>{const s=I.useCallback(t=>{a.setFilter(t.target.value||void 0)},[a.setFilter]),r=t=>{t.key!=="Enter"&&Nt(t)};return h.jsx(xs,{onInput:s,value:a.filterValue??"",showClearIcon:!0,onKeyDown:r})};try{An.displayName="DefaultFilterComponent",An.__docgenInfo={description:"",displayName:"DefaultFilterComponent",props:{}}}catch{}try{An.displayName="DefaultFilterComponent",An.__docgenInfo={description:"",displayName:"DefaultFilterComponent",props:{}}}catch{}const Dn=({cell:{value:a="",isGrouped:s},column:r,row:t,webComponentsReactProperties:u})=>{let c=`${a??""}`;return s&&(c+=` (${t.subRows.length})`),h.jsx("span",{title:c,className:u.classes.tableText,"data-column-id-cell-text":r.id,children:c})};try{Dn.displayName="Cell",Dn.__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{Dn.displayName="Cell",Dn.__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 Vo={packageName:"@ui5/webcomponents-react",fileName:"Expandable.module.css",content:"@layer ui5-webcomponents-react{.Expandable_container_n3fi0_1{flex-shrink:0;height:var(--_ui5wcr-AnalyticalTableExpandButtonHeight);margin-inline-end:.125rem}.Expandable_icon_n3fi0_7{align-items:center;color:var(--sapContent_IconColor);display:flex;height:100%;width:100%}.Expandable_icon_n3fi0_7::part(root){height:var(--_ui5wcr-AnalyticalTableExpandIconHeight);padding:.375rem;width:var(--_ui5wcr-AnalyticalTableExpandIconHeight)}.Expandable_button_n3fi0_20{color:var(--sapTextColor);font-size:.75rem;height:100%}.Expandable_nonExpandableCellSpacer_n3fi0_26{flex-shrink:0;width:var(--_ui5wcr-AnalyticalTableExpandIndicatorWidth)}.Expandable_withExpandableButton_n3fi0_31{margin-inline-end:.5rem}}"},Nn={container:"Expandable_container_n3fi0_1",icon:"Expandable_icon_n3fi0_7",button:"Expandable_button_n3fi0_20",nonExpandableCellSpacer:"Expandable_nonExpandableCellSpacer_n3fi0_26",withExpandableButton:"Expandable_withExpandableButton_n3fi0_31"},Wo=a=>{switch(a){case 0:return"0px";case 1:return Ct.ui5WcrAnalyticalTableTreePaddingLevel1;case 2:return Ct.ui5WcrAnalyticalTableTreePaddingLevel2;case 3:return Ct.ui5WcrAnalyticalTableTreePaddingLevel3;default:return`calc(${Ct.ui5WcrAnalyticalTableTreePaddingLevel3} + ${a-3}rem * 0.5)`}},Wa=a=>{const{cell:s,row:r,column:t,visibleColumns:u,webComponentsReactProperties:c}=a,{renderRowSubComponent:l,alwaysShowSubComponent:p,translatableTexts:N}=c,m=As();ma(Vo,Wa.displayName);const R=m==="sap_horizon"||m==="sap_horizon_dark",w=u.filter(({id:v})=>v!=="__ui5wcr__internal_selection_column"&&v!=="__ui5wcr__internal_highlight_column"&&v!=="__ui5wcr__internal_navigation_column").findIndex(v=>v.id===t.id),M=Wo(r.depth),H=r.getToggleRowExpandedProps(),B=typeof l=="function"&&!!l(r)&&!p;return h.jsxs(h.Fragment,{children:[w===0&&h.jsx(h.Fragment,{children:r.canExpand||B?h.jsx("span",{title:r.isExpanded?N.collapseNodeA11yText:N.expandNodeA11yText,style:{...H.style,paddingInlineStart:M},className:Nn.container,"aria-expanded":r.isExpanded,"aria-label":r.isExpanded?N.collapseA11yText:N.expandA11yText,children:R?h.jsx(Da,{tabIndex:-1,icon:r.isExpanded?sr:or,design:ks.Transparent,onClick:H.onClick,className:Nn.button}):h.jsx(tn,{tabIndex:-1,onClick:H.onClick,mode:Ps.Interactive,name:r.isExpanded?sr:or,"data-component-name":"AnalyticalTableExpandIcon",className:Nn.icon})}):h.jsx("span",{style:{paddingInlineStart:M},"data-component-name":"AnalyticalTableNonExpandableCellSpacer",className:da(Nn.nonExpandableCellSpacer,R&&Nn.withExpandableButton)})}),s.render("Cell")]})};Wa.displayName="Expandable";try{Wa.displayName="Expandable",Wa.__docgenInfo={description:"",displayName:"Expandable",props:{}}}catch{}try{Wa.displayName="Expandable",Wa.__docgenInfo={description:"",displayName:"Expandable",props:{}}}catch{}const Lo={color:"var(--sapContent_IconColor)",height:"0.75rem",width:"0.75rem",padding:"0.625rem",display:"block"},En=a=>{const{cell:s,row:r,webComponentsReactProperties:t}=a,{translatableTexts:u}=t,c={};return s.column.hAlign&&(s.column.hAlign!==Le.Left||s.column.hAlign!==Le.Begin)&&(c.marginRight="auto"),h.jsxs(h.Fragment,{children:[h.jsx("span",{...r.getToggleRowExpandedProps({style:c,column:s.column}),title:r.isExpanded?u.collapseNodeA11yText:u.expandNodeA11yText,children:h.jsx(tn,{name:r.isExpanded?sr:or,style:Lo})}),s.render("Cell")]})};try{En.displayName="Grouped",En.__docgenInfo={description:"",displayName:"Grouped",props:{}}}catch{}try{En.displayName="Grouped",En.__docgenInfo={description:"",displayName:"Grouped",props:{}}}catch{}const zo={packageName:"@ui5/webcomponents-react",fileName:"PopIn.module.css",content:"@layer ui5-webcomponents-react{.PopIn_container_11kfy_1{width:100%}.PopIn_defaultCell_11kfy_5>:first-child{padding-block-start:.25rem}.PopIn_header_11kfy_9{color:var(--sapContent_LabelColor);height:16px}}"},nr={container:"PopIn_container_11kfy_1",defaultCell:"PopIn_defaultCell_11kfy_5",header:"PopIn_header_11kfy_9"},La=a=>{var l;const{state:s,contentToRender:r,cell:t,row:u,internalRowHeight:c}=a;return ma(zo,La.displayName),h.jsxs(sa,{direction:nn.Column,className:nr.container,children:[h.jsx(sa,{alignItems:r!=="Grouped"&&r!=="Expandable"?an.Start:an.Center,wrap:es.NoWrap,className:nr.defaultCell,style:{height:c},children:t.render(r)}),r!=="Grouped"&&((l=s.popInColumns)==null?void 0:l.map(p=>{var k;const N=u.allCells.find(w=>w.column.id===p.id),m=()=>p.column.PopInHeader?typeof p.column.PopInHeader=="function"?p.column.PopInHeader({...a,...N}):p.column.PopInHeader:typeof p.column.Header=="function"?Te.makeRenderer({...a,...N},p.column)(p.column.Header):p.column.Header,R=()=>{var w;if((w=p.column)!=null&&w.Cell){const M=p.column.Cell;return typeof M=="string"?h.jsx(ia,{maxLines:1,title:M,children:M}):Te.makeRenderer({...a,...N,isPopIn:!0},p.column)(p.column.Cell)}return N!=null&&N.value?h.jsx(ia,{maxLines:1,title:N.value,children:N.value}):null};return h.jsxs(sa,{direction:nn.Column,children:[((k=p.column)==null?void 0:k.Header)&&h.jsxs("div",{className:nr.header,children:[m(),":"]}),h.jsx("div",{style:{height:c},children:N&&R()})]},p.id)}))]})};La.displayName="PopIn";try{La.displayName="PopIn",La.__docgenInfo={description:"",displayName:"PopIn",props:{}}}catch{}try{La.displayName="PopIn",La.__docgenInfo={description:"",displayName:"PopIn",props:{}}}catch{}const Go=()=>null,sn=60,Fo={Filter:An,minWidth:sn,vAlign:kn.Middle,Grouped:En,Cell:Dn,Expandable:Wa,RepeatedValue:Go,PopIn:La},qo={packageName:"@ui5/webcomponents-react",fileName:"TablePlaceholder.module.css",content:"@layer ui5-webcomponents-react{@keyframes TablePlaceholder_placeholderShimmer_162vo_1{0%{background-position-x:100%}to{background-position-x:0}}.TablePlaceholder_animation_162vo_10{animation-duration:2s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:TablePlaceholder_placeholderShimmer_162vo_1;animation-timing-function:linear;background-image:var(--sapContent_Placeholderloading_Gradient);background-repeat:no-repeat;background-size:1000px 104px}.TablePlaceholder_row_162vo_21{align-items:center;display:flex;height:var(--_ui5wcr-AnalyticalTableRowHeight)}.TablePlaceholder_cellContainer_162vo_27{box-sizing:border-box;display:flex;padding-inline:.25rem}.TablePlaceholder_cell_162vo_27{border-radius:var(--sapElement_BorderCornerRadius);height:var(--sapFontSize);width:60%}}"},Rt={animation:"TablePlaceholder_animation_162vo_10",placeholderShimmer:"TablePlaceholder_placeholderShimmer_162vo_1",row:"TablePlaceholder_row_162vo_21",cellContainer:"TablePlaceholder_cellContainer_162vo_27",cell:"TablePlaceholder_cell_162vo_27"},Oo=a=>Array.from(Array(a).keys()),za=a=>{const{columns:s,rows:r=5,style:t}=a;return ma(qo,za.displayName),h.jsx("div",{style:{backgroundColor:dr.sapList_Background,width:"100%",...t},"data-component-name":"AnalyticalTableLoadingPlaceholder",children:Oo(r).map((u,c)=>h.jsx("div",{className:Rt.row,children:s.map(l=>h.jsx("div",{className:Rt.cellContainer,style:{width:l.totalWidth,...fi(l)},children:h.jsx("div",{className:da(Rt.cell,Rt.animation)})},`row${c}-${l.id}`))},`row-${c}`))})};za.displayName="TablePlaceholder";try{za.displayName="TablePlaceholder",za.__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{za.displayName="TablePlaceholder",za.__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 Vn=({noDataText:a,className:s,style:r})=>h.jsx("div",{className:s,style:r,children:a});try{Vn.displayName="DefaultNoDataComponent",Vn.__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{Vn.displayName="DefaultNoDataComponent",Vn.__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 Ko=(a,{cell:s,instance:r})=>{var T,_,J,W;const{column:t,row:u,value:c}=s,l=r.visibleColumns.findIndex(({id:L})=>L===t.id),{alwaysShowSubComponent:p,renderRowSubComponent:N,translatableTexts:m,selectionMode:R,selectionBehavior:k}=r.webComponentsReactProperties,w={"aria-colindex":l+1,role:"gridcell"},M=typeof N=="function"?N(u):void 0,H=u.canExpand||M&&!p,B=r.visibleColumns.filter(({id:L})=>L!=="__ui5wcr__internal_selection_column"&&L!=="__ui5wcr__internal_highlight_column"&&L!=="__ui5wcr__internal_navigation_column"),v=((T=B[0])==null?void 0:T.id)===t.id||((_=B[0])==null?void 0:_.accessor)===t.accessor;if(w["data-is-first-column"]=v,w["aria-label"]=t.headerLabel||(typeof t.Header=="string"?t.Header:""),w["aria-label"]&&(w["aria-label"]=`${w["aria-label"]} `),w["aria-label"]+=c||c===0?`${c} `:"",v&&H||u.isGrouped&&u.canExpand){w.onKeyDown=(W=(J=u.getToggleRowExpandedProps)==null?void 0:J.call(u))==null?void 0:W.onKeyDown;let L="";u.isGrouped&&(L+=m.groupedA11yText+","),u.isExpanded?(w["aria-expanded"]="true",L+=` ${m.collapseA11yText}`):(w["aria-expanded"]="false",L+=` ${m.expandA11yText}`),w["aria-label"]+=L}else(R!==De.None&&k!==Pa.RowSelector&&!u.isGrouped||t.id==="__ui5wcr__internal_selection_column")&&(u.isSelected?(w["aria-selected"]="true",w["aria-label"]+=` ${m.unselectA11yText}`):(w["aria-selected"]="false",w["aria-label"]+=` ${m.selectA11yText}`));const{cellLabel:y}=s.column;return typeof y=="function"&&(s.cellLabel=w["aria-label"],w["aria-label"]=y({cell:s,instance:r})),[a,w]},Jo=(a,{column:s,instance:r})=>{const{translatableTexts:t,selectionMode:u}=r.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===De.Multiple&&s.id==="__ui5wcr__internal_selection_column"&&(l["aria-label"]+=r.isAllRowsSelected?t.deselectAllA11yText:t.selectAllA11yText),[a,{isFiltered:c,...l}]},wi=a=>{a.getCellProps.push(Ko),a.getHeaderProps.push(Jo)};wi.pluginName="useA11y";const Ci=20,Tr=700,_a=18;function jo(a,s){return typeof a!="string"||typeof s!="string"?a||s||void 0:a.length>s.length?a:s}function Ri(a,s,r){return a.reduce((t,u)=>{var p;const c=(p=u.values)==null?void 0:p[s];let l=0;return c&&(l=on(c,r)+_a),t+l},0)/(a.length||1)}function on(a,s,r=!1){const t=r?"scaleModeHelperHeader":"scaleModeHelper",u=document.getElementById(`${t}-${s}`);return u?(u.textContent=`${a}`,u.scrollWidth):0}const $o=(a,{instance:{state:s,webComponentsReactProperties:r,visibleColumns:t,data:u,rows:c,columns:l}})=>{const p=!(u!=null&&u.length)&&r.loading,N=(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(w=>w.accessor===k||w.id===k)}),[t,l]);return[...a,N,m,t==null?void 0:t.length,!s.tableColResized&&s.tableClientWidth,s.hiddenColumns.length,r.scaleWidthMode,p]},Uo=(a,s,r)=>{const{rows:t,state:u,webComponentsReactProperties:c}=s,l=t.slice(0,Ci),{tableClientWidth:p}=u,N=a.filter(v=>(v.isVisible??!0)&&!r.includes(v.id??v.accessor)),m=N.reduce((v,y)=>{var W,L;const T=y.id??y.accessor;if(y.id==="__ui5wcr__internal_selection_column"||y.id==="__ui5wcr__internal_highlight_column"||y.id==="__ui5wcr__internal_navigation_column")return v[T]={headerPx:y.width||y.minWidth||60,contentPxAvg:0},v;let _,J;return(W=y.scaleWidthModeOptions)!=null&&W.cellString?J=on(y.scaleWidthModeOptions.cellString,c.uniqueId)+_a:J=Ri(l,T,c.uniqueId),(L=y.scaleWidthModeOptions)!=null&&L.headerString?_=Math.max(on(y.scaleWidthModeOptions.headerString,c.uniqueId,!0)+_a,60):_=typeof y.Header=="string"?Math.max(on(y.Header,c.uniqueId,!0)+_a,60):60,v[T]={headerPx:_,contentPxAvg:J},v},{});let R=0,k=0;const w=N.reduce((v,y)=>{const T=y.id??y.accessor,{contentPxAvg:_,headerPx:J}=m[T];if(_>J)return!y.minWidth&&!y.width?(R+=m[T].contentPxAvg,k++,v):v+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[T].headerDefinesWidth=!0,v+W}},0),M=p-w;let H=M;return N.map(v=>{const y=v.id??v.accessor,T=m[y];if(T&&!v.minWidth&&!v.width&&!T.headerDefinesWidth){let _;const{contentPxAvg:J,headerPx:W}=T;if(M>0){const L=J/R;_=Math.max(Math.min(M*L,J),W),H-=_}return{...v,nextWidth:_||W}}return v}).map(v=>{const y=v.id??v.accessor,T=m[y],{headerPx:_}=T;if(T&&!v.minWidth&&!v.width){let J=v.nextWidth||_;return H>0&&(J=J+H*(1/k)),{...v,width:J}}else return{...v,width:Math.max(v.width||0,60,_)}})},Yo=(a,{instance:s})=>{if(!s.state||!s.rows)return a;const{rows:r,state:t}=s,{hiddenColumns:u,tableClientWidth:c}=t,{scaleWidthMode:l,loading:p,uniqueId:N}=s.webComponentsReactProperties;if(a.length===0||!c||!rn[l])return a;const m=s.visibleColumns.map(v=>{const y=a.find(T=>T.id===v.id||T.accessor!==void 0&&v.id!==void 0&&T.accessor===v.id);return y||(y??!1)}).filter(Boolean);if(l===rn.Smart)return Uo(a,s,u);const R=()=>{const v=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,T=m.length;const _=v.map(W=>{const{width:L,minWidth:ae,maxWidth:K,accessor:ue}=W;if(L){const ce=ue!=="__ui5wcr__internal_highlight_column"&&ue!=="__ui5wcr__internal_selection_column"&&ue!=="__ui5wcr__internal_navigation_column"&&L<60?60:L;return y-=ce,T--,ce}const F=v.filter(ce=>ce.maxWidth),X=F.reduce((ce,le)=>ce+le.maxWidth,0),ie=v.filter(ce=>ce.minWidth&&!ce.maxWidth).reduce((ce,le)=>ce+le.minWidth,0);return ae>y/T?y-X>ie+(m.length-v.length)*60?ae>(y-X)/F.length?(y-=ae,T--,ae):!1:(y-=ae,T--,ae):KW+L,0);if(m.length>0&&c>0){if(m.length===_.length)return J/m.length;if(c>=J+T*sn)return(c-J)/T}return sn},k=s.data.length>0;if(l===rn.Default||!k&&p){const v=R();return a.map(y=>({...y,width:y.width??v}))}const w=r.slice(0,Ci),M=m.reduce((v,y)=>{var W,L;const T=y.id??y.accessor;if(y.id==="__ui5wcr__internal_selection_column"||y.id==="__ui5wcr__internal_highlight_column"||y.id==="__ui5wcr__internal_navigation_column")return v[T]={minHeaderWidth:y.width,fullWidth:y.width},v;const _=jo((W=y.scaleWidthModeOptions)==null?void 0:W.headerString,(L=y.scaleWidthModeOptions)==null?void 0:L.cellString);if(_){const ae=Math.max(on(_,N)+_a,60);return v[T]={minHeaderWidth:ae,fullWidth:ae},v}const J=typeof y.Header=="string"?on(y.Header,N,!0)+_a:sn;return v[T]={minHeaderWidth:J,fullWidth:Math.max(J,Ri(w,T,N))},v},{});let H=m.reduce((v,y)=>{const{minHeaderWidth:T,fullWidth:_}=M[y.id??y.accessor];return v+Math.max(y.minWidth||0,y.width||0,T||0,_)||0},0),B=c-H;if(B>0){let v=0;return H=m.reduce((y,T)=>{const _=Math.max(T.minWidth||0,T.width||0)||0;return _||v++,y+_},0),B=c-H,a.map(y=>{const T=(y.isVisible??!0)&&!u.includes(y.id??y.accessor),_=M[y.id??y.accessor];if(T&&_){const{minHeaderWidth:J}=_,W=B/v;return{...y,width:y.width??Math.min(W,Tr),minWidth:y.minWidth??J}}return y})}return a.map(v=>{const y=(v.isVisible??!0)&&!u.includes(v.id??v.accessor),T=M[v.id??v.accessor];if(y&&T){const{fullWidth:_}=T;return{...v,width:v.width??_,maxWidth:v.maxWidth??Tr}}return v})},Xo=a=>{a.columns.push(Yo),a.columnsDeps.push($o)};function Zo(a,{instance:s,header:r}){const{dispatch:t,virtualRowsRange:u,rows:c,webComponentsReactProperties:l}=s,{onAutoResize:p,tableRef:N,isTreeTable:m}=l,{autoResizable:R,id:k}=r;return!document||!N.current||!R||!c.length||!u?a:{...a,onDoubleClick:w=>{let M=Qo(k,u,N.current,m);M!==-1&&(M=M>sn?M:sn,typeof p=="function"&&p(Je(w,{columnId:k,width:M})),!w.defaultPrevented&&t({type:"AUTO_RESIZE",payload:{[k]:M}}))}}}function xr(a){let s=0;return Array.from(a.children).forEach(r=>{s+=r.scrollWidth}),s}function Qo(a,s,r,t){let u=0,c=null;function l(N,m,R){if(!N||R===0)return;const k=N.querySelector(`[data-column-id-cell="${m}"]`),w=k==null?void 0:k.querySelector(`[data-column-id-cell-text="${m}"]`);if(w)if(t&&(k!=null&&k.dataset.isFirstColumn)){const M=xr(k);u[a,{"data-column-id-cell":s}],un=a=>{a.getResizerProps.push(Zo),a.getCellProps.push(el)};un.pluginName="useAutoResize";try{un.displayName="useAutoResize",un.__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{un.displayName="useAutoResize",un.__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 al(a,{instance:{dispatch:s,state:r,columns:t,setColumnOrder:u,webComponentsReactProperties:c}}){const{columnOrder:l,columnResizing:p,isRtl:N,dndColumn:m}=r,{onColumnsReorder:R}=c;return[a,{onDragStart:v=>{if(p.isResizingColumn||!v.target.draggable){v.preventDefault();return}v.dataTransfer.setData("text",v.currentTarget.dataset.columnId)},onDragEnter:v=>{s({type:"COLUMN_DND_START",payload:v.currentTarget.dataset.columnId})},onDragOver:v=>{v.preventDefault()},onDragEnd:()=>{s({type:"COLUMN_DND_END"})},onDrop:v=>{s({type:"COLUMN_DND_END"});const y=v.currentTarget.dataset.columnId,T=v.dataTransfer.getData("text");if(y===T)return;const _=l.length>0?l:t.map(K=>kr(K)),J=_.findIndex(K=>K===y),W=_.findIndex(K=>K===T),L=[..._],ae=J>W?N?J:J-1:J;if(L.splice(ae,0,L.splice(W,1)[0]),u(L),typeof R=="function"){const K=L.map(ue=>t.find(F=>kr(F)===ue));R(Je(v,{columnsNewOrder:K,column:t[W]}))}},dragOver:m===a.id}]}function nl(a){a.getHeaderProps.push(al)}const tl=["visibleColumnIndex","columnIndex","rowIndex","visibleRowIndex"],tr=(a,s,r)=>{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=r?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 Si(a){return a.parentElement?a!=null&&a.parentElement.dataset.subcomponent?a.parentElement:Si(a.parentElement):null}const Ni=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:Ni(a.parentElement)},ra=(a,s)=>{a.current.tabIndex=-1,s&&(s.tabIndex=0,s.focus(),a.current=s)},St=(a,s)=>{ra(a,Si(s.target))},rl=(a,{instance:{webComponentsReactProperties:s,data:r,columns:t,state:u}})=>{const{showOverlay:c,tableRef:l}=s,p=I.useRef(null),N=r.length===0;I.useEffect(()=>{c&&p.current&&(p.current.tabIndex=-1,p.current=null)},[c]);const m=w=>{(w.target.tagName==="UI5-LI"||w.target.tagName==="UI5-LI-CUSTOM")&&(p.current=null)};I.useEffect(()=>{!c&&r&&t&&p.current&&l.current&&l.current.tabIndex!==0&&!l.current.contains(p.current)&&(p.current=null,l.current.tabIndex=0)},[r,t,c]);const R=I.useCallback(w=>{const{dataset:M}=w.target;if(M.emptyRowCell==="true"||M.hasOwnProperty("subcomponentActiveElement")||M.componentName==="ATHeaderPopoverList"||M.componentName==="ATHeaderPopover")return;if(w.target.dataset.subcomponent){w.target.tabIndex=0,w.target.focus(),p.current=w.target;return}const H=w.target.querySelector('div[data-column-index="0"][data-row-index="1"]');if(w.target.dataset.componentName==="AnalyticalTableContainer")if(w.target.tabIndex=-1,p.current){const{dataset:B}=p.current,v=parseInt(B.rowIndex??B.rowIndexSub,10),y=parseInt(B.columnIndex??B.columnIndexSub,10);w.target.querySelector(`div[data-column-index="${y}"][data-row-index="${v}"]`)||w.target.querySelector(`div[data-column-index-sub="${y}"][data-row-index-sub="${v}"]`)?(p.current.tabIndex=0,p.current.focus({preventScroll:!0})):tr(w.target,p,N)}else if(H){const B=w.target.querySelector('div[data-column-index]:not([data-column-id^="__ui5wcr__internal"][data-row-index="0"])');B.tabIndex=0,B.focus({preventScroll:!0}),p.current=B}else tr(w.target,p,N);else{const B=Ni(w.target);B?p.current=B:tr(l.current,p,N)}},[p.current,l.current,N]),k=I.useCallback(w=>{var B,v,y,T,_,J,W;const{isRtl:M}=u,H=w.target.dataset.hasOwnProperty("subcomponentActiveElement");if(!p.current&&tl.every(L=>Object.keys(w.target.dataset).includes(L))&&(p.current=w.target),p.current){const L=parseInt(p.current.dataset.columnIndex??"0",10),ae=parseInt(p.current.dataset.rowIndex??p.current.dataset.subcomponentRowIndex,10);switch(w.key){case"End":{w.preventDefault();const K=l.current.querySelector('div[data-component-name="AnalyticalTableHeaderRow"]').children,ue=Array.from(K).slice(0).reduceRight((X,ie,ce,le)=>{var we,Be;const ye=parseInt((Be=(we=ie.children)==null?void 0:we[0])==null?void 0:Be.dataset.columnIndex,10);return isNaN(ye)?0:(le.length=0,ye)},0),F=l.current.querySelector(`div[data-visible-column-index="${ue}"][data-row-index="${ae}"]`);ra(p,F);break}case"Home":{w.preventDefault();const K=l.current.querySelector(`div[data-visible-column-index="0"][data-row-index="${ae}"]`);ra(p,K);break}case"PageDown":{if(w.preventDefault(),p.current.dataset.rowIndex==="0"){const K=l.current.querySelector(`div[data-column-index="${L}"][data-row-index="${ae+1}"]`);ra(p,K)}else{const K=(v=(B=l.current.querySelector('div[data-component-name="AnalyticalTableBody"]'))==null?void 0:B.children)==null?void 0:v[0].children.length,ue=l.current.querySelector(`div[data-column-index="${L}"][data-visible-row-index="${K}"]`);ra(p,ue)}break}case"PageUp":{if(w.preventDefault(),p.current.dataset.rowIndex<="1"){const K=l.current.querySelector(`div[data-column-index="${L}"][data-row-index="0"]`);ra(p,K)}else{const K=l.current.querySelector(`div[data-column-index="${L}"][data-visible-row-index="1"]`);ra(p,K)}break}case"ArrowRight":{if(w.preventDefault(),H){St(p,w);return}const K=l.current.querySelector(`div[data-column-index="${L+(M?-1:1)}"][data-row-index="${ae}"]`);K&&(ra(p,K),K.scrollIntoView({block:"nearest"}));break}case"ArrowLeft":{if(w.preventDefault(),H){St(p,w);return}const K=l.current.querySelector(`div[data-column-index="${L-(M?-1:1)}"][data-row-index="${ae}"]`);K&&(ra(p,K),K.scrollIntoView({block:"nearest"}));break}case"ArrowDown":{if(w.preventDefault(),H){St(p,w);return}const K=p.current.parentElement,ue=(y=K==null?void 0:K.children)==null?void 0:y[0],F=(T=ue==null?void 0:ue.dataset)==null?void 0:T.subcomponent,X=l.current.querySelector(`div[data-column-index="${L}"][data-row-index="${ae+1}"]`);F&&!((J=(_=p.current)==null?void 0:_.dataset)!=null&&J.subcomponent)?(p.current.tabIndex=-1,ue.tabIndex=0,ue.dataset.rowIndexSub=`${ae}`,ue.dataset.columnIndexSub=`${L}`,ue.focus(),p.current=ue):X&&ra(p,X);break}case"ArrowUp":{if(w.preventDefault(),H){St(p,w);return}let K=ae-1;const ue=w.target.dataset.subcomponent;ue&&K++;const F=l.current.querySelector(`div[data-column-index="${L}"][data-row-index="${K}"]`),X=F==null?void 0:F.parentElement.children[0];((W=X==null?void 0:X.dataset)==null?void 0:W.subcomponent)&&!ue?(p.current.tabIndex=-1,X.dataset.rowIndexSub=`${ae-1}`,X.dataset.columnIndexSub=`${L}`,X.tabIndex=0,X.focus(),p.current=X):F&&ra(p,F);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 r=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:r,columnId:t,columnWidth:u,headerIdWidths:l}}const il=(a,{instance:{dispatch:s},column:r})=>[a,{onKeyDown:u=>{if(typeof a.onKeyDown=="function"&&a.onKeyDown(u),u.nativeEvent.shiftKey){if(u.key==="ArrowRight"){const c=Ar(u,r);s({type:Te.actions.columnStartResizing,...c}),s({type:Te.actions.columnResizing,clientX:c.clientX+16}),s({type:Te.actions.columnDoneResizing});return}if(u.key==="ArrowLeft"){const c=Ar(u,r);s({type:Te.actions.columnStartResizing,...c}),s({type:Te.actions.columnResizing,clientX:c.clientX-16}),s({type:Te.actions.columnDoneResizing});return}}}}],sl=a=>{a.getTableProps.push(rl),a.getHeaderProps.push(il)},ol=(a,{instance:{state:s}})=>[...a,s.tableClientWidth],ll=(a,{instance:s})=>{const{state:r,dispatch:t}=s,u=r.isScrollable?(r==null?void 0:r.tableClientWidth)+13:r==null?void 0:r.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))&&(l.hasOwnProperty("responsiveMinWidth")?!u||u>=l.responsiveMinWidth:!0))},ul=a=>{a.visibleColumns.push(ll),a.visibleColumnsDeps.push(ol)},dl=a=>({...a,onMouseDown:s=>{s.preventDefault(),a.onMouseDown(s)}}),_i=a=>{a.getResizerProps.push(dl)};_i.pluginName="useResizeColumnsConfig";const ml={width:"100%",height:"100%"},Dr={...Ds,...Es,None:void 0},gl=()=>h.jsx("div",{style:{width:"6px"}}),cl=a=>{const{cell:s,webComponentsReactProperties:r}=a,t=Dr[s==null?void 0:s.value]?r.classes[Dr[s.value].toLowerCase()]:void 0;return h.jsx("div",{style:ml,className:t,"data-component-name":"AnalyticalTableHighlightCell"})},fl=(a,{instance:{webComponentsReactProperties:s}})=>[...a,s.withRowHighlight,s.highlightField],pl=(a,{instance:s})=>[...a,s.webComponentsReactProperties.withRowHighlight],hl=(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"),yl=(a,{instance:s})=>{const{withRowHighlight:r,highlightField:t}=s.webComponentsReactProperties;return r?[{id:"__ui5wcr__internal_highlight_column",accessor:t,disableFilters:!0,disableSortBy:!0,disableGroupBy:!0,disableResizing:!0,disableDragAndDrop:!0,width:6,minWidth:6,maxWidth:6,Header:gl,Cell:cl},...a]:a},dn=a=>{a.columns.push(yl),a.columnsDeps.push(fl),a.visibleColumnsDeps.push(pl),a.visibleColumns.push(hl)};dn.pluginName="useRowHighlight";try{dn.displayName="useRowHighlight",dn.__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{dn.displayName="useRowHighlight",dn.__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=()=>h.jsx("div",{style:{width:"6px"}}),bl=a=>{const{isNavigatedCell:s,webComponentsReactProperties:r}=a;return s?h.jsx("div",{style:Er,className:r.classes.navigation,"data-component-name":"AnalyticalTableNavigatedCell"}):h.jsx("div",{style:Er})},wl=(a,{instance:{webComponentsReactProperties:s}})=>[...a,s.withNavigationHighlight],Cl=(a,{instance:s})=>[...a,s.webComponentsReactProperties.withNavigationHighlight],Rl=(a,{instance:{webComponentsReactProperties:s}})=>{if(!s.withNavigationHighlight)return a.filter(({id:t})=>t!=="__ui5wcr__internal_navigation_column");const r=a.find(({id:t})=>t==="__ui5wcr__internal_navigation_column");return[...a.filter(({id:t})=>t!=="__ui5wcr__internal_navigation_column"),r]},Sl=(a,{instance:s})=>{const{withNavigationHighlight:r}=s.webComponentsReactProperties;return r?[...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(Sl),a.columnsDeps.push(wl),a.visibleColumnsDeps.push(Cl),a.visibleColumns.push(Rl)};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 Pi={verticalAlign:"middle",pointerEvents:"none",display:"block"},Nl=a=>{const{getToggleAllRowsSelectedProps:s,webComponentsReactProperties:{selectionMode:r,translatableTexts:t,classes:u}}=a;if(r===De.Single)return null;const c=s();return h.jsxs(h.Fragment,{children:[h.jsx(gi,{...c,style:Pi,tabIndex:-1,onChange:void 0,checked:c.indeterminate?!0:c.checked,"aria-hidden":"true"}),h.jsx("span",{className:u.hiddenA11yText,children:t.selectAllText})]})},_l=({row:a,webComponentsReactProperties:{selectionMode:s}})=>s===De.Single||a.isGrouped?null:h.jsx(gi,{...a.getToggleRowSelectedProps(),tabIndex:-1,"aria-hidden":"true",style:Pi,"data-name":"internal_selection_column"});function Pl(a){return Object.keys(a).reduce((s,r)=>(s[r]=!0,s),{})}const Ml=(a,{instance:s})=>{const{webComponentsReactProperties:{onRowSelect:r,selectionMode:t,translatableTexts:{selectAllText:u,deselectAllText:c}},toggleAllRowsSelected:l,isAllRowsSelected:p,rowsById:N,preFilteredRowsById:m,dispatch:R,state:{filters:k,globalFilter:w}}=s,M={...a.style,cursor:"pointer",display:"flex",justifyContent:"center"},H=(k==null?void 0:k.length)>0||!!w,B=H?m:N;if(a.key==="header___ui5wcr__internal_selection_column"&&t===De.Multiple){const v=_=>{typeof a.onClick=="function"&&a.onClick(_),l(!p),typeof r=="function"&&(H?R({type:"SELECT_ROW_CB",payload:{event:_,row:void 0,selectAll:!0,fired:!0}}):r(Je(_,{rowsById:B,allRowsSelected:!p,selectedRowIds:p?{}:Pl(N)})))};return[a,{onClick:v,onKeyDown:_=>{typeof a.onKeyDown=="function"&&a.onKeyDown(_),(_.code==="Enter"||_.code==="Space")&&(_.preventDefault(),_.code==="Enter"&&v(_))},onKeyUp:_=>{typeof a.onKeyUp=="function"&&a.onKeyUp(_),_.code==="Space"&&(_.preventDefault(),v(_))},style:M,title:p?c:u}]}return a},Bl=(a,{instance:{webComponentsReactProperties:s}})=>[...a,s.selectionMode,s.selectionBehavior],Il=(a,{instance:s})=>[...a,s.webComponentsReactProperties.selectionMode,s.webComponentsReactProperties.selectionBehavior],Hl=(a,{instance:{webComponentsReactProperties:s}})=>s.selectionMode===De.None||s.selectionBehavior===Pa.RowOnly?a:[a.find(({id:t})=>t==="__ui5wcr__internal_selection_column"),...a.filter(({id:t})=>t!=="__ui5wcr__internal_selection_column")],Tl=(a,{instance:s})=>{const{webComponentsReactProperties:r}=s,{selectionMode:t,selectionBehavior:u,tableRef:c}=r;if(t===De.None||u===Pa.RowOnly)return a;const l=c.current&&parseInt(getComputedStyle(c.current).getPropertyValue(mr.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:Nl,Cell:_l},...a]},xl=(a,{cell:s})=>{if(s.column.id==="__ui5wcr__internal_selection_column"){const r={...a.style,cursor:"pointer",justifyContent:"center"};return[a,{style:r}]}return a},kl=(a,{instance:{webComponentsReactProperties:s}})=>{const{classes:r}=s;return[a,{className:r.checkBox,title:void 0}]},Al=(a,{instance:{webComponentsReactProperties:s}})=>{const{classes:r}=s;return[a,{className:r.checkBox,title:void 0}]},mn=a=>{a.getCellProps.push(xl),a.getHeaderProps.push(Ml),a.getToggleRowSelectedProps.push(Al),a.getToggleAllRowsSelectedProps.push(kl),a.columns.push(Tl),a.columnsDeps.push(Bl),a.visibleColumnsDeps.push(Il),a.visibleColumns.push(Hl)};mn.pluginName="useRowSelectionColumn";try{mn.displayName="useRowSelectionColumn",mn.__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{mn.displayName="useRowSelectionColumn",mn.__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 Mi=a=>{a.useControlledState.push((s,{instance:r})=>{const{selectedRowPayload:t,selectedRowIds:u,filters:c,globalFilter:l}=s,{rowsById:p,preFilteredRowsById:N,webComponentsReactProperties:m,dispatch:R}=r,k=(c==null?void 0:c.length)>0||!!l;return I.useEffect(()=>{if(t!=null&&t.fired){const{event:w,row:M,selectAll:H}=t,B=p[M==null?void 0:M.id],v=k?N:p;if(B||H){const y={row:B,rowsById:v,isSelected:B==null?void 0:B.isSelected,allRowsSelected:!1,selectedRowIds:u};if(m.selectionMode===De.Multiple&&(Object.keys(u).length===Object.keys(v).length&&(y.allRowsSelected=!0),H)){R({type:"SELECT_ROW_CB",payload:{event:w,row:B,selectAll:!1,fired:!1}}),m==null||m.onRowSelect(Je(w,{rowsById:y.rowsById,allRowsSelected:y.allRowsSelected,selectedRowIds:y.selectedRowIds}));return}R({type:"SELECT_ROW_CB",payload:{event:w,row:B,fired:!1}}),m==null||m.onRowSelect(Je(w,y))}}},[t==null?void 0:t.fired,p,m.selectionMode,u,k]),s})};Mi.pluginName="useSelectionChangeCallback";const Dl=(a,{row:s,instance:r})=>{const{webComponentsReactProperties:t,toggleRowSelected:u,selectedFlatRows:c,dispatch:l}=r,p=R=>{var v,y,T,_,J;const k=R.target.dataset.selectionCell==="true";if(((y=(v=R.target)==null?void 0:v.dataset)==null?void 0:y.name)!=="internal_selection_column"&&!(R.markerAllowTableRowSelection===!0||((T=R.nativeEvent)==null?void 0:T.markerAllowTableRowSelection)===!0)&&t.tagNamesWhichShouldNotSelectARow.has(Xt(R.target.tagName))||s.isGrouped)return;const{selectionBehavior:w,selectionMode:M,onRowSelect:H,onRowClick:B}=t;if(typeof B=="function"&&((J=(_=R.target)==null?void 0:_.dataset)==null?void 0:J.name)!=="internal_selection_column"&&B(Je(R,{row:s})),M!==De.None&&!(w===Pa.RowSelector&&!k)){if(M===De.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(Xt(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(Xt(R.target.tagName))||R.preventDefault(),p(R))},onClick:p}]},Bi=a=>{a.getRowProps.push(Dl)};Bi.pluginName="useSingleRowStateSelection";const El=(a,{instance:s})=>{const{classes:r}=s.webComponentsReactProperties;return[a,{className:r.tableHeaderRow}]},Vl=(a,{instance:s,column:r})=>{const t=r.canGroupBy||r.canSort||r.canFilter,{classes:u}=s.webComponentsReactProperties,c={width:r.totalWidth};return(r.id==="__ui5wcr__internal_highlight_column"||r.id==="__ui5wcr__internal_selection_column"||r.id==="__ui5wcr__internal_navigation_column")&&(c.padding=0),t&&(c.cursor="pointer"),[a,{className:u.th,column:r,style:c,id:r.id}]},Wl="data-is-selected",Ll=(a,{instance:s,row:r,userProps:t})=>{const{webComponentsReactProperties:u}=s,{classes:c,selectionBehavior:l,selectionMode:p,alternateRowColor:N,subRowsKey:m}=u;let R=c.tr;const k=[De.Single,De.Multiple].includes(p);(r.isGrouped||s.manualGroupBy&&r.cells.some(M=>M.column.isGrouped)&&gr(m,r.original)!=null)&&(R+=` ${c.tableGroupHeader}`),N&&t["aria-rowindex"]%2!==1&&(R+=` ${c.alternateRowColor}`);const w={className:R,role:"row"};return k&&(Pa.RowSelector!==l&&(w.className+=` ${c.trActive}`),r.isSelected&&(w[Wl]="")),[a,w]},zl=(a,{cell:{column:s},instance:r})=>{const{classes:t}=r.webComponentsReactProperties,u={width:`${s.totalWidth}px`,...fi(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}]},Ii=a=>{a.getHeaderGroupProps.push(El),a.getHeaderProps.push(Vl),a.getRowProps.push(Ll),a.getCellProps.push(zl)};Ii.pluginName="useStyling";const Gl=(a,s)=>{let r=I.useRef(null);a&&(r=a);const t=I.useRef({});return I.useEffect(()=>{r.current&&Object.assign(r.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}]}})}})},[]),[r,t]},Fl=(a,{row:s,instance:r,userProps:t})=>{const{manualGroupBy:u}=r,{onRowExpandChange:c,isTreeTable:l,renderRowSubComponent:p,alwaysShowSubComponent:N}=r.webComponentsReactProperties,m=(M,H=!0)=>{var v;H&&M.stopPropagation();let B=null;!l&&(!p||p&&N)&&(u?B=t.column:B=(v=s.cells.find(y=>y.column.id===s.groupByID))==null?void 0:v.column),typeof c=="function"&&c(Je(M,{row:s,column:B})),s.toggleRowExpanded()},R=M=>{if(M.code==="F4")M.preventDefault(),m(M,!1);else if(!M.shiftKey&&M.code==="Space"||M.key==="Enter"){if(M.target.hasAttribute("ui5-icon")||M.target.hasAttribute("ui5-button"))return;M.preventDefault(),m(M,!1)}},{title:k,...w}=a;return[w,{onClick:m,onKeyDown:R}]},Hi=a=>{a.getToggleRowExpandedProps.push(Fl)};Hi.pluginName="useToggleRowExpand";const ql=a=>{const s=a.visibleColumns.map(r=>r.totalWidth);Object.assign(a,{visibleColumnsWidth:s})},Ti=a=>{a.useInstance.push(ql)};Ti.pluginName="useVisibleColumnsWidth";const Ol={packageName:"@ui5/webcomponents-react",fileName:"VerticalScrollbar.module.css",content:"@layer ui5-webcomponents-react{.VerticalScrollbar_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)}.VerticalScrollbar_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}.VerticalScrollbar_bottomSection_1xpzy_20{background-color:var(--sapList_FooterBackground);border-inline-end:var(--_ui5wcr-AnalyticalTable-OuterBorderInline);box-sizing:border-box;flex-grow:1}}"},rr={headerSection:"VerticalScrollbar_headerSection_1xpzy_1",scrollbar:"VerticalScrollbar_scrollbar_1xpzy_11",bottomSection:"VerticalScrollbar_bottomSection_1xpzy_20"},Ga=I.forwardRef((a,s)=>{var H,B,v;const{internalRowHeight:r,tableRef:t,handleVerticalScrollBarScroll:u,tableBodyHeight:c,scrollContainerRef:l,nativeScrollbar:p,parentRef:N}=a,[m,R]=li(s),k=I.useRef(null);ma(Ol,Ga.displayName);const w=((H=t==null?void 0:t.current)==null?void 0:H.offsetWidth)!==((B=t==null?void 0:t.current)==null?void 0:B.scrollWidth);I.useEffect(()=>{const y=new ResizeObserver(([T])=>{R.current&&N.current&&T.target.getBoundingClientRect().height>0&&(R.current.scrollTop=N.current.scrollTop)});return k.current&&y.observe(k.current),()=>{y.disconnect()}},[]);const M=da(w&&rr.bottomSection);return h.jsxs(sa,{direction:nn.Column,style:{position:"relative"},"data-component-name":"AnalyticalTableVerticalScrollbarContainer",children:[h.jsx("div",{style:{height:`${r}px`},className:rr.headerSection}),h.jsx("div",{ref:m,style:{height:t.current?`${c}px`:"0"},onScroll:u,className:da(rr.scrollbar,p&&"ui5-content-native-scrollbars"),"data-component-name":"AnalyticalTableVerticalScrollbar",children:h.jsx("div",{ref:k,style:{height:`${(v=l.current)==null?void 0:v.scrollHeight}px`,width:"1px",backgroundColor:dr.sapList_Background}})}),h.jsx("div",{className:M})]})});Ga.displayName="VerticalScrollbar";try{Ga.displayName="VerticalScrollbar",Ga.__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{Ga.displayName="VerticalScrollbar",Ga.__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 gn=({virtualRow:a,className:s,children:r})=>h.jsx("div",{"data-empty-row":"true",className:s,style:{height:`${a.size}px`,transform:`translateY(${a.start}px)`,boxSizing:"border-box"},children:r},`empty_row_${a.index}`);try{gn.displayName="EmptyRow",gn.__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{gn.displayName="EmptyRow",gn.__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 Kl={packageName:"@ui5/webcomponents-react",fileName:"RowSubComponent.module.css",content:"@layer ui5-webcomponents-react{.RowSubComponent_subcomponent_1cs9q_1{position:absolute;width:100%}.RowSubComponent_subcomponent_1cs9q_1:focus{outline:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:calc(var(--sapContent_FocusWidth)*-1)}}"},Jl={subcomponent:"RowSubComponent_subcomponent_1cs9q_1"},Fa=a=>{var k,w;const{subComponentsHeight:s,virtualRow:r,dispatch:t,row:u,rowHeight:c,children:l,rows:p,alwaysShowSubComponent:N,rowIndex:m}=a,R=I.useRef(null);return ma(Kl,Fa.displayName),I.useEffect(()=>{var H,B;const M=new ResizeObserver(v=>{v.forEach(y=>{var _,J,W;const T=y.target.getBoundingClientRect();if(T){const L=Array.isArray(y.borderBoxSize)?y.borderBoxSize[0]:y.borderBoxSize,ae=(L==null?void 0:L.blockSize)??T.height;if(((_=s==null?void 0:s[r.index])==null?void 0:_.subComponentHeight)!==ae&&ae!==0)if(N&&s&&Object.keys(s).length===10){const K=Object.values(s).reduce((X,ie)=>{const ce=X==null?void 0:X[ie.subComponentHeight];return typeof ce=="number"?{...X,[ie.subComponentHeight]:ce+1}:{...X,[ie.subComponentHeight]:1}},{}),ue=Object.keys(K).reduce((X,ie)=>K[X]>K[ie]?X:ie),F=p.reduce((X,ie,ce)=>(X[ce]={subComponentHeight:parseInt(ue),rowId:ie.id},X),{});t({type:"SUB_COMPONENTS_HEIGHT",payload:{...F,...s}})}else t({type:"SUB_COMPONENTS_HEIGHT",payload:{...s,[r.index]:{subComponentHeight:ae,rowId:u.id}}});((J=s==null?void 0:s[r.index])==null?void 0:J.rowId)!=null&&((W=s==null?void 0:s[r.index])==null?void 0:W.rowId)!==u.id&&t({type:"SUB_COMPONENTS_HEIGHT",payload:{...s,[r.index]:{subComponentHeight:ae,rowId:u.id}}})}})});return(H=R.current)!=null&&H.firstChild&&M.observe((B=R.current)==null?void 0:B.firstChild),()=>{M.disconnect()}},[(k=R.current)==null?void 0:k.firstChild,s,u.id,(w=s==null?void 0:s[r.index])==null?void 0:w.subComponentHeight,r.index]),h.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 Ln=a=>{const{alternateRowColor:s,classes:r,prepareRow:t,rows:u,scrollToRef:c,isTreeTable:l,internalRowHeight:p,visibleColumns:N,renderRowSubComponent:m,popInRowHeight:R,markNavigatedRow:k,isRtl:w,alwaysShowSubComponent:M,dispatch:H,subComponentsHeight:B,columnVirtualizer:v,manualGroupBy:y,subRowsKey:T,scrollContainerRef:_,subComponentsBehavior:J,triggerScroll:W,rowVirtualizer:L}=a,ae=R!==p?R:p,K=I.useRef(null);c.current={...c.current,scrollToOffset:L.scrollToOffset,scrollToIndex:L.scrollToIndex},I.useEffect(()=>{W&&W.direction==="vertical"&&(W.type==="offset"?L.scrollToOffset(...W.args):L.scrollToIndex(...W.args))},[W]);const ue=I.useMemo(()=>N.filter(F=>F.id!=="__ui5wcr__internal_highlight_column"&&F.id!=="__ui5wcr__internal_selection_column"&&F.id!=="__ui5wcr__internal_navigation_column")[0],[N]);return h.jsx("div",{ref:_,"data-component-name":"AnalyticalTableBodyScrollableContainer",style:{position:"relative",height:`${L.getTotalSize()}px`,width:`${v.getTotalSize()}px`},children:L.getVirtualItems().map((F,X)=>{var Xe,Ee,Ze,na,ha,Qe;const ie=u[F.index],ce=F.index+1;if(!ie||ie.groupByVal==="undefined"){const se=s&&F.index%2!==0;if(!((Xe=K.current)!=null&&Xe.cells))return h.jsx(gn,{virtualRow:F,className:da(r.tr,se&&r.alternateRowColor)},`empty_row_${F.index}`);const je=K.current.cells;return h.jsx(gn,{virtualRow:F,className:da(r.tr,se&&r.alternateRowColor),children:v.getVirtualItems().map(Se=>{const Ma=je[Se.index].getCellProps(),{"aria-colindex":ga,"aria-selected":Ka,"aria-label":qe,tabIndex:Gn,...Ba}=Ma;return I.createElement("div",{...Ba,key:`${X}-${Ba.key}`,"data-empty-row-cell":"true",tabIndex:-1,"aria-hidden":!0,style:{...Ba.style,cursor:"unset",width:Se.size}})})},`empty_row_${F.index}`)}else K.current=ie;t(ie);const{key:le,...ye}=ie.getRowProps({"aria-rowindex":F.index+1,"data-virtual-row-index":F.index}),we=typeof k=="function"?k(ie):!1,Be=typeof m=="function"?m(ie):void 0;(!Be||J===Aa.IncludeHeightExpandable&&!ie.isExpanded)&&B&&((Ee=B==null?void 0:B[F.index])!=null&&Ee.subComponentHeight)&&H({type:"SUB_COMPONENTS_HEIGHT",payload:{...B,[F.index]:{subComponentHeight:0,rowId:ie.id}}});let xe=ae;m&&((Ze=u[F.index])!=null&&Ze.isExpanded||M)&&((na=B==null?void 0:B[F.index])==null?void 0:na.rowId)===((ha=u[F.index])==null?void 0:ha.id)&&(xe+=((Qe=B==null?void 0:B[F.index])==null?void 0:Qe.subComponentHeight)??0);const Ye=l&&m&&(ie.isExpanded||M)?se=>{L.measureElement(se)}:L.measureElement;return h.jsxs("div",{...ye,ref:Ye,style:{...ye.style??{},transform:`translateY(${F.start}px)`,position:"absolute",boxSizing:"border-box",height:`${xe}px`},children:[Be&&(ie.isExpanded||M)&&h.jsx(Fa,{subComponentsHeight:B,virtualRow:F,dispatch:H,row:ie,rowHeight:ae,rows:u,alwaysShowSubComponent:M,rowIndex:X+1,children:Be}),v.getVirtualItems().map((se,je)=>{const Se=ie.cells[se.index],Oa=w?{transform:`translateX(-${se.start}px)`,insertInlineStart:0}:{transform:`translateX(${se.start}px)`,insertInlineStart:0};if(!Se)return null;const{key:Ma,...ga}=Se.getCellProps(),Ka={...ga,"data-visible-column-index":je,"data-column-index":se.index,"data-visible-row-index":X+1,"data-row-index":ce,style:{...ga.style,position:"absolute",width:`${se.size}px`,top:0,height:`${ae}px`,...Oa}};let qe;return Se.column.id==="__ui5wcr__internal_highlight_column"||Se.column.id==="__ui5wcr__internal_selection_column"||Se.column.id==="__ui5wcr__internal_navigation_column"?qe="Cell":l||!M&&Be?qe="Expandable":Se.isGrouped||y&&Se.column.isGrouped&&gr(T,ie.original)!=null&&Se.value!==void 0?qe="Grouped":Se.isAggregated?qe="Aggregated":Se.isPlaceholder?qe="RepeatedValue":qe="Cell",h.jsx("div",{...Ka,"data-selection-cell":Se.column.id==="__ui5wcr__internal_selection_column",children:R!==p&&ue.id===Se.column.id?Se.render("PopIn",{contentToRender:qe,internalRowHeight:p}):Se.render(qe,we===!0?{isNavigatedCell:we}:{})},Ma)})]},le)})})};try{Ln.displayName="VirtualTableBody",Ln.__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: unknown) => 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{Ln.displayName="VirtualTableBody",Ln.__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: unknown) => 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 zn=a=>{const{tableBodyHeight:s,totalColumnsWidth:r,children:t,parentRef:u,classes:c,infiniteScroll:l,infiniteScrollThreshold:p,onLoadMore:N,rows:m,internalRowHeight:R,handleExternalScroll:k,visibleRows:w,popInRowHeight:M,rowCollapsedFlag:H,dispatch:B}=a,[v,y]=I.useState(!1);I.useEffect(()=>{u.current&&y(!0)},[u.current]);const T=m.length,_=I.useRef(0),J=I.useRef(new Set),W=I.useRef(T);I.useEffect(()=>{W.current>T&&(H?B({type:"ROW_COLLAPSED_FLAG",payload:!1}):(J.current.clear(),u.current.scrollTop=0,_.current=0)),W.current=T},[T,H]);const L=I.useCallback(ae=>{k(Je(ae,{rows:m,rowElements:ae.target.children[0].children}));const K=ae.target.scrollTop;if(_.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:"Record[]"}},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"}}}}}catch{}try{zn.displayName="VirtualTableBodyContainer",zn.__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:"Record[]"}},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"}}}}}catch{}const jl=(a,s,r,t)=>{const{payload:u}=s;if(a.isRtl&&s.type===Te.actions.columnResizing){const{clientX:c}=s,{startX:l,columnWidth:p,headerIdWidths:N}=a.columnResizing,R=(l-c)/p,k={};return N.forEach(([w,M])=>{k[w]=Math.max(M+M*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}},$l={minHeight:"1.5rem",display:"flex",alignItems:"center"},cn=I.forwardRef((a,s)=>{const{children:r,titleBarId:t}=a;return h.jsxs("div",{style:$l,ref:s,id:t,children:[typeof r=="string"&&h.jsx(Vs,{children:r}),I.isValidElement(r)&&r]})});cn.displayName="TitleBar";try{cn.displayName="TitleBar",cn.__docgenInfo={description:"",displayName:"TitleBar",props:{titleBarId:{defaultValue:null,description:"",name:"titleBarId",required:!0,type:{name:"string"}}}}}catch{}try{cn.displayName="TitleBar",cn.__docgenInfo={description:"",displayName:"TitleBar",props:{titleBarId:{defaultValue:null,description:"",name:"titleBarId",required:!0,type:{name:"string"}}}}}catch{}const Ul={packageName:"@ui5/webcomponents-react",fileName:"VerticalResizer.module.css",content:'@layer ui5-webcomponents-react{.VerticalResizer_container_dd6x7_1{box-sizing:border-box;cursor:row-resize;height:5px;overflow:hidden;position:relative;text-align:center}.VerticalResizer_container_dd6x7_1:hover{background-color:var(--sapContent_DragAndDropActiveColor);color:var(--sapHighlightTextColor)}.VerticalResizer_container_dd6x7_1:before{content:"⦁⦁⦁⦁";font-family:var(--sapFontFamily);font-size:10px;inset-block-start:0;line-height:5px;pointer-events:none;position:absolute}.VerticalResizer_resizer_dd6x7_25{background-color:var(--sapContent_DragAndDropActiveColor);height:5px;opacity:.5;position:absolute}}'},Vr={container:"VerticalResizer_container_dd6x7_1",resizer:"VerticalResizer_resizer_dd6x7_25"},ir=(a,s)=>a.type===s?!(a.touches&&a.touches.length>1):!1,qa=a=>{var ae,K,ue;const{analyticalTableRef:s,dispatch:r,extensionsHeight:t,internalRowHeight:u,hasPopInColumns:c,popInRowHeight:l,rowsLength:p,visibleRows:N,handleOnLoadMore:m}=a;ma(Ul,qa.displayName);const R=I.useRef(null),k=I.useRef(null),[w,M]=I.useState(void 0),[H,B]=I.useState(!1),[v,y]=I.useState(!1),T=ur("@ui5/webcomponents-react"),_=I.useCallback(F=>{F.preventDefault();const X=ir(F,"touchstart");R.current=X?Math.round(F.touches[0].pageY):F.pageY,y(X),B(!0)},[R.current,B]),J=I.useCallback(F=>{M(X=>({...X,top:ir(F,"touchmove")?Math.round(F.touches[0].pageY):F.pageY}))},[M]),W=I.useCallback(F=>{B(!1);const X=Math.floor((s.current.clientHeight+(ir(F,"touchend")?Math.round(F.changedTouches[0].pageY):F.pageY)-R.current-t-5)/l);c&&r({type:"INTERACTIVE_ROWS_HAVE_POPIN",payload:!0}),r({type:"VISIBLE_ROWS",payload:{visibleRows:X}})},[(ae=s.current)==null?void 0:ae.clientHeight,R.current,t,u,r]);I.useEffect(()=>{const F=()=>{v?(document.removeEventListener("touchmove",J),document.removeEventListener("touchend",W)):(document.removeEventListener("mouseup",W),document.removeEventListener("mousemove",J))};return H?v?(document.addEventListener("touchmove",J),document.addEventListener("touchend",W)):(document.addEventListener("mousemove",J),document.addEventListener("mouseup",W)):F(),()=>{F()}},[H]),I.useEffect(()=>{var ce,le,ye,we,Be,xe;const F=((le=(ce=k.current)==null?void 0:ce.getBoundingClientRect())==null?void 0:le.top)+window.scrollY,X=((we=(ye=k.current)==null?void 0:ye.getBoundingClientRect())==null?void 0:we.left)+window.scrollX,ie=(xe=(Be=k.current)==null?void 0:Be.getBoundingClientRect())==null?void 0:xe.width;!H&&F>0&&M({left:X,top:F,width:ie})},[(ue=(K=k.current)==null?void 0:K.getBoundingClientRect())==null?void 0:ue.top,H]),I.useEffect(()=>()=>{r({type:"WITH_POPIN",payload:!1})},[]);const L=I.useRef(!0);return I.useEffect(()=>{!L.current&&p<=N&&m({type:"tableGrow"}),L.current=!1},[p,N]),h.jsx("div",{className:Vr.container,ref:k,onMouseDown:_,onTouchStart:_,role:"separator",title:T.getText(ls),children:w&&H&&h.jsx("div",{className:Vr.resizer,style:{top:w.top,left:w.left,width:w.width}})})};qa.displayName="VerticalResizer";try{qa.displayName="VerticalResizer",qa.__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{qa.displayName="VerticalResizer",qa.__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 Yl={undefined:()=>{}},Xl=a=>a.offsetHeight,Ue=I.forwardRef((a,s)=>{var rt,it,st,ot,lt,ut,dt,mt,Cn,gt,ct;const{alternateRowColor:r,adjustTableHeightOnPopIn:t,className:u,columnOrder:c,columns:l,data:p,extension:N,filterable:m,globalFilterValue:R,groupBy:k,groupable:w,header:M,headerRowHeight:H,highlightField:B="status",infiniteScroll:v,infiniteScrollThreshold:y=20,isTreeTable:T,loading:_,loadingDelay:J,markNavigatedRow:W,minRows:L=5,noDataText:ae,overscanCount:K,overscanCountHorizontal:ue=5,retainColumnWidth:F,reactTableOptions:X,renderRowSubComponent:ie,rowHeight:ce,scaleWidthMode:le=rn.Default,scaleXFactor:ye,selectedRowIds:we,selectionBehavior:Be=Pa.Row,selectionMode:xe=De.None,showOverlay:Ye,sortable:Xe,style:Ee,subComponentsBehavior:Ze=Aa.Expandable,subRowsKey:na="subRows",tableHooks:ha=[],tableInstance:Qe,visibleRowCountMode:se=$e.Fixed,visibleRows:je=15,withNavigationHighlight:Se,withRowHighlight:Oa,onColumnsReorder:Ma,onGroup:ga,onLoadMore:Ka,onRowClick:qe,onRowExpandChange:Gn,onRowSelect:Ba,onSort:Mt,onTableScroll:Fn,onAutoResize:Bt,NoDataComponent:It=Vn,additionalEmptyRowsCount:qn=0,...Ht}=a;ma(oo,Ue.displayName);const Ia=Ze===Aa.Visible||Ze===Aa.IncludeHeight,ya=I.useId(),ke=ur("@ui5/webcomponents-react"),Ja=I.useRef(`titlebar-${ya}`).current,fn=I.useRef(`invalidTableText-${ya}`).current,Oe=I.useRef(null),oa=I.useRef(null),va=I.useRef(null),Tt=I.useCallback(Y=>gr(na,Y)||[],[na]),xt=ke.getText(us),ba=I.useRef(null),ja=I.useRef(null);ba.current=Te.useTable({columns:l,data:p,defaultColumn:Fo,getSubRows:Tt,stateReducer:jl,disableFilters:!m,disableSortBy:!Xe,disableGroupBy:T||!Ia&&ie?!0:!w,selectSubRows:!1,sortTypes:Yl,webComponentsReactProperties:{translatableTexts:{selectAllText:ke.getText(ds),deselectAllText:ke.getText(ms),expandA11yText:ke.getText(gs),collapseA11yText:ke.getText(cs),selectA11yText:ke.getText(fs),unselectA11yText:ke.getText(ps),expandNodeA11yText:ke.getText(hs),collapseNodeA11yText:ke.getText(ys),filteredA11yText:ke.getText(vs),groupedA11yText:ke.getText(bs),selectAllA11yText:ke.getText(ws),deselectAllA11yText:ke.getText(Cs)},tagNamesWhichShouldNotSelectARow:Os,tableRef:Oe,selectionMode:xe,selectionBehavior:Be,classes:We,onAutoResize:Bt,onRowSelect:Ba,onRowClick:qe,onRowExpandChange:Gn,isTreeTable:T,alternateRowColor:r,scaleWidthMode:le,loading:_,withRowHighlight:Oa,highlightField:B,withNavigationHighlight:Se,markNavigatedRow:W,renderRowSubComponent:ie,alwaysShowSubComponent:Ia,showOverlay:Ye,uniqueId:ya,subRowsKey:na,onColumnsReorder:Ma},...X},Te.useFilters,Te.useGlobalFilter,Te.useColumnOrder,Te.useGroupBy,Te.useSortBy,Te.useExpanded,Te.useRowSelect,Te.useResizeColumns,_i,mn,un,Bi,Mi,dn,Wn,Xo,Ii,Hi,wi,ul,Ti,sl,nl,...ha);const{getTableProps:On,headerGroups:Kn,rows:he,prepareRow:Jn,setColumnOrder:jn,dispatch:Ie,totalColumnsWidth:pn,visibleColumns:$a,visibleColumnsWidth:Ua,setGroupBy:Ha,setGlobalFilter:wa}=ba.current,q=ba.current.state,{triggerScroll:Ca}=q,kt=ke.getText(Rs),$n=ke.getText(Ss),At=ae??(((rt=q.filters)==null?void 0:rt.length)>0||q.globalFilter?$n:kt),[Dt,hn]=li(s),Ra=Ns(hn),ea=Hr({count:Ua.length,getScrollElement:()=>Oe.current,estimateSize:I.useCallback(Y=>Ua[Y],[Ua]),horizontal:!0,overscan:Ra?1/0:ue,indexAttribute:"data-column-index",measureElement:!ye||ye===1?Y=>Y.getBoundingClientRect().width:void 0}),[ta,Ya]=Gl(hn,Ie);oa.current&&(Ya.current={...Ya.current,horizontalScrollToOffset:ea.scrollToOffset,horizontalScrollToIndex:ea.scrollToIndex}),I.useEffect(()=>{Ca&&Ca.direction==="horizontal"&&(Ca.type==="offset"?ea.scrollToOffset(...Ca.args):ea.scrollToIndex(...Ca.args))},[Ca]);const Xa=!!ie&&(Ze===Aa.IncludeHeight||Ze===Aa.IncludeHeightExpandable)&&!!q.subComponentsHeight&&!!Object.keys(q.subComponentsHeight);Qe&&{}.hasOwnProperty.call(Qe,"current")&&(Qe.current=ba.current),typeof Qe=="function"&&Qe(ba.current);const Un=I.useRef(null),Yn=I.useRef(null),Xn=I.useRef(null),yn=(((it=Un.current)==null?void 0:it.offsetHeight)??0)+(((st=Yn.current)==null?void 0:st.offsetHeight)??0)+(((ot=Xn.current)==null?void 0:ot.offsetHeight)??0),Ke=Ks(ce,Oe),Zn=H??Ke,Ae=((lt=q==null?void 0:q.popInColumns)==null?void 0:lt.length)>0?Ke+q.popInColumns.length*(Ke+16):Ke,ze=q.visibleRows??je,la=I.useCallback(()=>{Oe.current&&Ie({type:"TABLE_RESIZE",payload:{tableClientWidth:!ye||ye===1?Oe.current.getBoundingClientRect().width:Oe.current.clientWidth}})},[Oe.current,ye]),Ta=I.useCallback(()=>{var Y,be,_e,Ce;if((se===$e.Auto||se===$e.AutoWithEmptyRows)&&((Y=ta.current)!=null&&Y.parentElement)){const Ve=(be=ta.current)==null?void 0:be.parentElement,ua=Ve&&getComputedStyle(Ve).position==="relative"&&((_e=ta.current)!=null&&_e.offsetTop)?(Ce=ta.current)==null?void 0:Ce.offsetTop:0,Sa=Ve==null?void 0:Ve.getBoundingClientRect().height,Rn=(Sa?Sa-ua:0)-yn;let ft=0;if(Xa){let ca=0,Za=0;for(;ca=Rn)break;ft++,Za++}Ie({type:"VISIBLE_ROWS",payload:{visibleRows:Math.max(1,ft)}})}else{const ca=Math.max(1,Math.floor(Rn/Ae));Ie({type:"VISIBLE_ROWS",payload:{visibleRows:ca}})}}},[(dt=(ut=ta.current)==null?void 0:ut.parentElement)==null?void 0:dt.getBoundingClientRect().height,(mt=ta.current)==null?void 0:mt.getBoundingClientRect().y,yn,Ae,se,Xa,q.subComponentsHeight]);I.useEffect(()=>{wa(R)},[R,wa]),I.useEffect(()=>{var Ve,ua;const Y=Mr(la,60),be=new ResizeObserver(Y);be.observe(Oe.current);const _e=Mr(Ta,60),Ce=new ResizeObserver(_e);return(Ve=ta.current)!=null&&Ve.parentElement&&Ce.observe((ua=ta.current)==null?void 0:ua.parentElement),()=>{_e.cancel(),Y.cancel(),be.disconnect(),Ce.disconnect()}},[la,Ta]),Yt(()=>{Ie({type:"IS_RTL",payload:{isRtl:Ra}})},[Ra]),Yt(()=>{la()},[la]),Yt(()=>{Ta()},[Ta]),I.useEffect(()=>{q.visibleRows!==void 0&&se===$e.Fixed&&Ie({type:"VISIBLE_ROWS",payload:{visibleRows:void 0}})},[se,q.visibleRows]),I.useEffect(()=>{k&&Ha(k)},[k,Ha]),I.useEffect(()=>{we&&Ie({type:"SET_SELECTED_ROW_IDS",payload:{selectedRowIds:we}})},[we]),I.useEffect(()=>{var Y;q!=null&&q.interactiveRowsHavePopIn&&(!(q!=null&&q.popInColumns)||((Y=q==null?void 0:q.popInColumns)==null?void 0:Y.length)===0)&&Ie({type:"WITH_POPIN",payload:!1})},[q==null?void 0:q.interactiveRowsHavePopIn,(Cn=q==null?void 0:q.popInColumns)==null?void 0:Cn.length]);const xa=I.useMemo(()=>{if(typeof q.bodyHeight=="number")return q.bodyHeight;let Y;se===$e.AutoWithEmptyRows?Y=ze:Y=he.length{const Y=he.lengthxa||he.length>Y}}:{type:"TABLE_SCROLLING_ENABLED",payload:{isScrollable:he.length>Y}})},[he.length,L,ze,Ae,xa]);const vn={height:`${xa}px`,width:pn?`${pn}px`:"100%"},Et=I.useCallback(Y=>{const{column:be,isGrouped:_e}=Y.detail;let Ce;_e?Ce=[...q.groupBy,be.id]:Ce=q.groupBy.filter(Ve=>Ve!==be.id),Ha(Ce),typeof ga=="function"&&ga(Je(Y,{column:be,groupedColumns:Ce}))},[q.groupBy,ga,Ha]);I.useEffect(()=>{(c==null?void 0:c.length)>0&&jn(c)},[c]);const Vt=I.useMemo(()=>{const Y={maxWidth:"100%",overflowX:"auto",display:"flex",flexDirection:"column"};return ce&&(Y["--_ui5wcr-AnalyticalTableRowHeight"]=`${ce}px`,Y["--_ui5wcr-AnalyticalTableHeaderRowHeight"]=`${ce}px`),H&&(Y["--_ui5wcr-AnalyticalTableHeaderRowHeight"]=`${H}px`),q.tableClientWidth>0?{...Y,...Ee}:{...Y,...Ee,visibility:"hidden"}},[q.tableClientWidth,Ee,ce,H]);I.useEffect(()=>{var Y;F&&((Y=q.columnResizing)!=null&&Y.isResizingColumn)&&q.tableColResized==null&&Ie({type:"TABLE_COL_RESIZED",payload:!0}),q.tableColResized&&!F&&Ie({type:"TABLE_COL_RESIZED",payload:void 0})},[q.columnResizing,F,q.tableColResized]);const Wt=Y=>{var _e;typeof Fn=="function"&&Fn(Y);const be=Y.currentTarget.scrollTop;if(va.current){const Ce=va.current.firstElementChild;Ce.offsetHeight!==((_e=ja.current)==null?void 0:_e.offsetHeight)&&(Ce.style.height=`${ja.current.offsetHeight}px`),va.current.scrollTop!==be&&(Y.currentTarget.isExternalVerticalScroll||(va.current.scrollTop=be,va.current.isExternalVerticalScroll=!0),Y.currentTarget.isExternalVerticalScroll=!1)}},Qn=I.useCallback(Y=>{oa.current&&!Y.currentTarget.isExternalVerticalScroll&&(oa.current.scrollTop=Y.currentTarget.scrollTop,oa.current.isExternalVerticalScroll=!0),Y.currentTarget.isExternalVerticalScroll=!1},[]);I.useEffect(()=>{ea.measure()},[ea,q.columnOrder,(gt=q.columnResizing)==null?void 0:gt.isResizingColumn,l]);const et=ea.getTotalSize(),at=q.tableClientWidth>et,Lt=da(We.table,Se&&We.hasNavigationIndicator,at&&We.showVerticalEndBorder,(u==null?void 0:u.includes("ui5-content-native-scrollbars"))&&"ui5-content-native-scrollbars"),bn=Y=>{const be=he.filter(_e=>_e.depth===0);Ka(Je(Y,{rowCount:be.length,totalRowCount:he.length}))},nt=K||Math.floor(je/2),wn=Ae!==Ke?Ae:Ke,zt=Math.max(L,he.length,se===$e.AutoWithEmptyRows?ze:0)+(q.isScrollable?0:qn),tt=Hr({count:zt,getScrollElement:()=>oa.current,estimateSize:I.useCallback(Y=>{var be,_e,Ce,Ve,ua,Sa;return ie&&((be=he[Y])!=null&&be.isExpanded||Ia)&&((Ce=(_e=q.subComponentsHeight)==null?void 0:_e[Y])==null?void 0:Ce.rowId)===((Ve=he[Y])==null?void 0:Ve.id)?wn+(((Sa=(ua=q.subComponentsHeight)==null?void 0:ua[Y])==null?void 0:Sa.subComponentHeight)??0):wn},[wn,he,ie,Ia,q.subComponentsHeight]),overscan:nt,measureElement:Xl,indexAttribute:"data-virtual-row-index"});return ba.current.virtualRowsRange=tt.range,h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:u,style:Vt,ref:Dt,...Ht,children:[M&&h.jsx(cn,{ref:Un,titleBarId:Ja,children:M}),N&&h.jsx("div",{ref:Yn,children:N}),h.jsxs(sa,{className:We.tableContainerWithScrollBar,"data-component-name":"AnalyticalTableContainerWithScrollbar",children:[_&&h.jsx(_s,{className:We.busyIndicator,active:!0,delay:J,"data-component-name":"AnalyticalTableBusyIndicator",children:h.jsx("span",{})}),Ye&&h.jsxs(h.Fragment,{children:[h.jsx("span",{id:fn,className:We.hiddenA11yText,"aria-hidden":!0,children:xt}),h.jsx("div",{tabIndex:0,"aria-labelledby":`${Ja} ${fn}`,role:"region","data-component-name":"AnalyticalTableOverlay",className:We.overlay})]}),h.jsxs("div",{"aria-labelledby":Ja,...On(),tabIndex:Ye?-1:0,role:"grid","aria-rowcount":he.length,"aria-colcount":$a.length,"data-per-page":ze,"aria-multiselectable":xe===De.Multiple,"data-component-name":"AnalyticalTableContainer",ref:Oe,className:Lt,children:[h.jsx("div",{className:We.tableHeaderBackgroundElement}),h.jsx("div",{className:We.tableBodyBackgroundElement}),Kn.map(Y=>{let be={};return Y.getHeaderGroupProps&&(be=Y.getHeaderGroupProps()),Oe.current&&h.jsx(ln,{ref:Xn,resizeInfo:q.columnResizing,headerProps:be,headerGroup:Y,onSort:Mt,onGroupByChanged:Et,isRtl:Ra,columnVirtualizer:ea,uniqueId:ya,showVerticalEndBorder:at},be.key)}),_&&(he==null?void 0:he.length)===0&&h.jsx(za,{columns:$a,rows:L,style:vn}),!_&&(he==null?void 0:he.length)===0&&h.jsx(It,{noDataText:At,className:We.noDataContainer,style:vn}),(he==null?void 0:he.length)>0&&Oe.current&&h.jsx(zn,{rowCollapsedFlag:q.rowCollapsed,dispatch:Ie,tableBodyHeight:xa,totalColumnsWidth:ea.getTotalSize(),parentRef:oa,classes:We,infiniteScroll:v,infiniteScrollThreshold:y,onLoadMore:bn,internalRowHeight:Ke,popInRowHeight:Ae,rows:he,handleExternalScroll:Wt,visibleRows:ze,children:h.jsx(Ln,{scrollContainerRef:ja,classes:We,prepareRow:Jn,rows:he,scrollToRef:Ya,isTreeTable:T,internalRowHeight:Ke,popInRowHeight:Ae,alternateRowColor:r,visibleColumns:$a,renderRowSubComponent:ie,alwaysShowSubComponent:Ia,markNavigatedRow:W,isRtl:Ra,subComponentsHeight:q.subComponentsHeight,dispatch:Ie,columnVirtualizer:ea,manualGroupBy:X==null?void 0:X.manualGroupBy,subRowsKey:na,subComponentsBehavior:Ze,triggerScroll:q.triggerScroll,rowVirtualizer:tt})})]}),(qn||q.isScrollable===void 0||q.isScrollable)&&h.jsx(Ga,{tableBodyHeight:xa,internalRowHeight:Zn,tableRef:Oe,handleVerticalScrollBarScroll:Qn,ref:va,scrollContainerRef:ja,parentRef:oa,nativeScrollbar:u==null?void 0:u.includes("ui5-content-native-scrollbars")})]}),se===$e.Interactive&&h.jsx(qa,{popInRowHeight:Ae,hasPopInColumns:((ct=q==null?void 0:q.popInColumns)==null?void 0:ct.length)>0,analyticalTableRef:ta,dispatch:Ie,extensionsHeight:yn,internalRowHeight:Ke,rowsLength:he.length,visibleRows:ze,handleOnLoadMore:bn})]}),h.jsx(ia,{"aria-hidden":"true",id:`scaleModeHelper-${ya}`,className:We.hiddenSmartColMeasure,"data-component-name":"AnalyticalTableScaleModeHelper",children:""}),h.jsx(ia,{"aria-hidden":"true",id:`scaleModeHelperHeader-${ya}`,className:da(We.hiddenSmartColMeasure,We.hiddenSmartColMeasureHeader),"data-component-name":"AnalyticalTableScaleModeHelperHeader",children:""})]})});Ue.displayName="AnalyticalTable";try{Ue.displayName="AnalyticalTable",Ue.__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:'"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.",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. +- __"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.",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. __Note:__ This prop is not supported for tree-tables. You can enable it by creating your own global-filter function. You can find out more about this in the [react-table v7 documentation](https://github.com/TanStack/table/blob/v7/docs/src/pages/docs/api/useGlobalFilter.md).`,name:"globalFilterValue",required:!1,type:{name:"string"}},reactTableOptions:{defaultValue:null,description:"Additional options which will be passed to [v7 react-table´s useTable hook](https://github.com/TanStack/table/blob/v7/docs/src/pages/docs/api/useTable.md#table-options)",name:"reactTableOptions",required:!1,type:{name:"Record"}},tableHooks:{defaultValue:{value:"`[]`"},description:"You can use this prop to add custom hooks to the table.",name:"tableHooks",required:!1,type:{name:"((hooks: ReactTableHooks) => void)[]"}},subRowsKey:{defaultValue:{value:'`"subRows"`'},description:"Defines the key for nested rows.\n\n__Note__: You can also specify deeply nested sub-rows with accessors like `values.subRows`.",name:"subRowsKey",required:!1,type:{name:"string"}},selectedRowIds:{defaultValue:null,description:"The key must consist of a valid `rowId` like `{ 2: true }` or `{ '0.2.0': true }` for nested rows.\n\n__Note:__ This prop updates the internal table state and must therefore be memoized!",name:"selectedRowIds",required:!1,type:{name:"Record"}},isTreeTable:{defaultValue:null,description:"Defines whether the table should act as tree-table.",name:"isTreeTable",required:!1,type:{name:"boolean"}},overscanCountHorizontal:{defaultValue:{value:"`5`"},description:"The amount of columns to load both behind and ahead of the current window range.",name:"overscanCountHorizontal",required:!1,type:{name:"number"}},overscanCount:{defaultValue:null,description:"The amount of rows to load both behind and ahead of the current window range.",name:"overscanCount",required:!1,type:{name:"number"}},renderRowSubComponent:{defaultValue:null,description:`Defines the subcomponent that should be displayed below each row. @@ -53,7 +53,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:'"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.",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. +- __"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.",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. __Note:__ This prop is not supported for tree-tables. You can enable it by creating your own global-filter function. You can find out more about this in the [react-table v7 documentation](https://github.com/TanStack/table/blob/v7/docs/src/pages/docs/api/useGlobalFilter.md).`,name:"globalFilterValue",required:!1,type:{name:"string"}},reactTableOptions:{defaultValue:null,description:"Additional options which will be passed to [v7 react-table´s useTable hook](https://github.com/TanStack/table/blob/v7/docs/src/pages/docs/api/useTable.md#table-options)",name:"reactTableOptions",required:!1,type:{name:"Record"}},tableHooks:{defaultValue:{value:"`[]`"},description:"You can use this prop to add custom hooks to the table.",name:"tableHooks",required:!1,type:{name:"((hooks: ReactTableHooks) => void)[]"}},subRowsKey:{defaultValue:{value:'`"subRows"`'},description:"Defines the key for nested rows.\n\n__Note__: You can also specify deeply nested sub-rows with accessors like `values.subRows`.",name:"subRowsKey",required:!1,type:{name:"string"}},selectedRowIds:{defaultValue:null,description:"The key must consist of a valid `rowId` like `{ 2: true }` or `{ '0.2.0': true }` for nested rows.\n\n__Note:__ This prop updates the internal table state and must therefore be memoized!",name:"selectedRowIds",required:!1,type:{name:"Record"}},isTreeTable:{defaultValue:null,description:"Defines whether the table should act as tree-table.",name:"isTreeTable",required:!1,type:{name:"boolean"}},overscanCountHorizontal:{defaultValue:{value:"`5`"},description:"The amount of columns to load both behind and ahead of the current window range.",name:"overscanCountHorizontal",required:!1,type:{name:"number"}},overscanCount:{defaultValue:null,description:"The amount of rows to load both behind and ahead of the current window range.",name:"overscanCount",required:!1,type:{name:"number"}},renderRowSubComponent:{defaultValue:null,description:`Defines the subcomponent that should be displayed below each row. diff --git a/nightly/assets/AnalyticalTableHooks-gcIZEHPY.js b/nightly/assets/AnalyticalTableHooks-DY3VSE8J.js similarity index 90% rename from nightly/assets/AnalyticalTableHooks-gcIZEHPY.js rename to nightly/assets/AnalyticalTableHooks-DY3VSE8J.js index 643b9ec28b3..e90bd95a241 100644 --- a/nightly/assets/AnalyticalTableHooks-gcIZEHPY.js +++ b/nightly/assets/AnalyticalTableHooks-DY3VSE8J.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-DPMpg7JG.js";import"./index-fq-A78mQ.js";import"./index-CENj-mYB.js";import"./TagDesign-Dou_yO3g.js";import"./index-RYns6xqu.js";import"./index-sbqOYYIm.js";import"./chunk-NUUEMKO5-U4f61DH3.js";import"./withWebComponent-CjthvP8A.js";import"./copy-1gorG9K6.js";import"./Button-BBQ8R6D6.js";import{I as m,F as n}from"./CommandsAndQueries-DQjx50a7.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{C as a}from"./AnalyticalTableHooks.stories-MN5D9o7x.js";import"./iframe-22aYVeZH.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-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./i18n-defaults-BotoAXl7.js";import"./client-BzooOYO_.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-Cn2MHtDd.js";import"./clsx-B-dksMZM.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-OThGHqLA.js";import"./index-C5CUzSoK.js";import"./Link-DZg2nJC9.js";import"./index-BVNesCV8.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.js";import"./index-Coq7C81h.js";import"./I18nStore-MR5G_kEB.js";import"./index-BdA_tfl3.js";import"./AnalyticalTable.stories-D17q3ht8.js";import"./delete-BQIb6saC.js";import"./List-CuZOmXHL.js";import"./ItemNavigation-Ch7UfbYX.js";import"./getNormalizedTarget-C4mxORXI.js";import"./debounce-TTkz9ISH.js";import"./TabbableElements-BJJu_CDc.js";import"./RadioButton-GgoeTXQS.js";import"./ValueState-Bg0UWejw.js";import"./CheckBox-CM06bEZZ.js";import"./accept-lq3MKKgJ.js";import"./slim-arrow-right-BCeUcVk3.js";import"./settings-DfoYexF-.js";import"./i18n-defaults-BGhPckAt.js";import"./useIsRTL-DJgoVCsF.js";import"./directionChange-B4XYjAP3.js";import"./index-C-Zfmu7Z.js";import"./index-DSWkZP8z.js";import"./filter-B5g1V2Sh.js";import"./group-2-DemfNELr.js";import"./navigation-down-arrow-BtIR6Rt3.js";import"./ThemingParameters-DOkJX3Ed.js";import"./index-BcPgEfiu.js";import"./decline-1QUNcWHz.js";import"./stopPropagation-BJWsenK5.js";import"./index-B5b5OmxX.js";import"./index-DxmbfeSE.js";import"./ListItemCustom-Brx2FXw-.js";import"./index-BAtkQ81r.js";import"./index-BxFMw-kn.js";import"./Input-6sdf0eUU.js";import"./ResponsivePopoverCommon.css-Qh3TzjNu.js";import"./ValueStateMessage.css-DAkvJc4l.js";import"./ResponsivePopover-B-t0Cbra.js";import"./Dialog-C8nnmLS4.js";import"./navigation-right-arrow-DEdY9Xs-.js";import"./useCurrentTheme-zrCFjvEM.js";import"./IndicationColor-LRWnbNUo.js";import"./index-6W66uapS.js";import"./index-Ddf3C_Fo.js";import"./debounce-D7W5PopO.js";import"./index-Bs_fAOAt.js";import"./Select-DS2opP_Q.js";import"./InvisibleMessage-BTp_iy0K.js";import"./slim-arrow-down-DK7S2bIh.js";import"./index-i3I--wX0.js";import"./Option-heJ2cx7d.js";import"./index-euKE0Jzf.js";import"./Token-CwB6dP0x.js";import"./ScrollEnablement-D2BUgX9P.js";import"./animate-DF-0g--S.js";import"./sys-cancel-Cgh-JI3p.js";import"./ToggleButton-B8ZjTcTC.js";import"./SuggestionItem-h3wZg5n0.js";import"./ComboBoxItem-CBqviSMA.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BNk3IrPx.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-Lnmk9LeD.js";import"./index-fq-A78mQ.js";import"./index-C3fFd07B.js";import"./TagDesign-Dou_yO3g.js";import"./index-RYns6xqu.js";import"./index-sbqOYYIm.js";import"./chunk-NUUEMKO5-Blno14Tx.js";import"./withWebComponent-CjthvP8A.js";import"./copy-1gorG9K6.js";import"./Button-BBQ8R6D6.js";import{I as m,F as n}from"./CommandsAndQueries-Cvc-NSzh.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{C as a}from"./AnalyticalTableHooks.stories-vDeOo8CY.js";import"./iframe-Be8Bv2HM.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-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./i18n-defaults-BotoAXl7.js";import"./client-BzooOYO_.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-Cn2MHtDd.js";import"./clsx-B-dksMZM.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-DPG7W1kp.js";import"./index-C5CUzSoK.js";import"./Link-DZg2nJC9.js";import"./index-BVNesCV8.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.js";import"./index-rDX7GLbX.js";import"./I18nStore-MR5G_kEB.js";import"./index-BdA_tfl3.js";import"./AnalyticalTable.stories-Cy7cBe-K.js";import"./delete-BQIb6saC.js";import"./List-CuZOmXHL.js";import"./ItemNavigation-Ch7UfbYX.js";import"./getNormalizedTarget-C4mxORXI.js";import"./debounce-TTkz9ISH.js";import"./TabbableElements-BJJu_CDc.js";import"./RadioButton-GgoeTXQS.js";import"./ValueState-Bg0UWejw.js";import"./CheckBox-CM06bEZZ.js";import"./accept-lq3MKKgJ.js";import"./slim-arrow-right-BCeUcVk3.js";import"./settings-DfoYexF-.js";import"./i18n-defaults-BGhPckAt.js";import"./useIsRTL-DJgoVCsF.js";import"./directionChange-B4XYjAP3.js";import"./index-C-Zfmu7Z.js";import"./index-DSWkZP8z.js";import"./filter-B5g1V2Sh.js";import"./group-2-DemfNELr.js";import"./navigation-down-arrow-BtIR6Rt3.js";import"./ThemingParameters-DOkJX3Ed.js";import"./index-BcPgEfiu.js";import"./decline-1QUNcWHz.js";import"./stopPropagation-BJWsenK5.js";import"./index-B5b5OmxX.js";import"./index-DxmbfeSE.js";import"./ListItemCustom-Brx2FXw-.js";import"./index-BAtkQ81r.js";import"./index-BxFMw-kn.js";import"./Input-6sdf0eUU.js";import"./ResponsivePopoverCommon.css-Qh3TzjNu.js";import"./ValueStateMessage.css-DAkvJc4l.js";import"./ResponsivePopover-B-t0Cbra.js";import"./Dialog-C8nnmLS4.js";import"./navigation-right-arrow-DEdY9Xs-.js";import"./useCurrentTheme-zrCFjvEM.js";import"./IndicationColor-LRWnbNUo.js";import"./index-6W66uapS.js";import"./index-Ddf3C_Fo.js";import"./debounce-D7W5PopO.js";import"./index-Bs_fAOAt.js";import"./Select-DS2opP_Q.js";import"./InvisibleMessage-BTp_iy0K.js";import"./slim-arrow-down-DK7S2bIh.js";import"./index-i3I--wX0.js";import"./Option-heJ2cx7d.js";import"./index-euKE0Jzf.js";import"./Token-CwB6dP0x.js";import"./ScrollEnablement-D2BUgX9P.js";import"./animate-DF-0g--S.js";import"./sys-cancel-Cgh-JI3p.js";import"./ToggleButton-B8ZjTcTC.js";import"./SuggestionItem-h3wZg5n0.js";import"./ComboBoxItem-CBqviSMA.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-CP819uGA.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-MN5D9o7x.js b/nightly/assets/AnalyticalTableHooks.stories-vDeOo8CY.js similarity index 99% rename from nightly/assets/AnalyticalTableHooks.stories-MN5D9o7x.js rename to nightly/assets/AnalyticalTableHooks.stories-vDeOo8CY.js index 4042bb48697..f16aa313f42 100644 --- a/nightly/assets/AnalyticalTableHooks.stories-MN5D9o7x.js +++ b/nightly/assets/AnalyticalTableHooks.stories-vDeOo8CY.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-D17q3ht8.js";import{I as ce}from"./Input-6sdf0eUU.js";import{r as h}from"./index-RYns6xqu.js";import{F as S,c as j,a as de}from"./index-Cn2MHtDd.js";import{b8 as ue}from"./i18n-defaults-BotoAXl7.js";import{u as me}from"./i18n-defaults-BGhPckAt.js";import{T as A}from"./index-BNk3IrPx.js";import{e as B}from"./index-C-Zfmu7Z.js";import{C as ee}from"./index-6W66uapS.js";import{B as H}from"./index-OThGHqLA.js";import{L as x}from"./index-Dns6Oz5_.js";import{I as ge}from"./index-BxFMw-kn.js";import{d as he}from"./debounce-D7W5PopO.js";import{T}from"./index-BdA_tfl3.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-Cy7cBe-K.js";import{I as ce}from"./Input-6sdf0eUU.js";import{r as h}from"./index-RYns6xqu.js";import{F as S,c as j,a as de}from"./index-Cn2MHtDd.js";import{b8 as ue}from"./i18n-defaults-BotoAXl7.js";import{u as me}from"./i18n-defaults-BGhPckAt.js";import{T as A}from"./index-CP819uGA.js";import{e as B}from"./index-C-Zfmu7Z.js";import{C as ee}from"./index-6W66uapS.js";import{B as H}from"./index-DPG7W1kp.js";import{L as x}from"./index-Dns6Oz5_.js";import{I as ge}from"./index-BxFMw-kn.js";import{d as he}from"./debounce-D7W5PopO.js";import{T}from"./index-BdA_tfl3.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-gNKGHFW7.js b/nightly/assets/ArgTypesWithNote-CUzYxHdI.js similarity index 76% rename from nightly/assets/ArgTypesWithNote-gNKGHFW7.js rename to nightly/assets/ArgTypesWithNote-CUzYxHdI.js index 03a03542189..710d8635c31 100644 --- a/nightly/assets/ArgTypesWithNote-gNKGHFW7.js +++ b/nightly/assets/ArgTypesWithNote-CUzYxHdI.js @@ -1 +1 @@ -import{j as t}from"./jsx-runtime-DEdD30eg.js";import{ah as e}from"./index-DPMpg7JG.js";import{M as a,a as p}from"./index-fq-A78mQ.js";import"./index-CENj-mYB.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-Lnmk9LeD.js";import{M as a,a as p}from"./index-fq-A78mQ.js";import"./index-C3fFd07B.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-Bj5IO4x8.js b/nightly/assets/Avatar-9JLfONQ2.js similarity index 81% rename from nightly/assets/Avatar-Bj5IO4x8.js rename to nightly/assets/Avatar-9JLfONQ2.js index d5cba41fbaf..4f67cbc9bd5 100644 --- a/nightly/assets/Avatar-Bj5IO4x8.js +++ b/nightly/assets/Avatar-9JLfONQ2.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-DPMpg7JG.js";import"./index-fq-A78mQ.js";import"./index-CENj-mYB.js";import{C as s}from"./ControlsWithNote-CMOOzFzV.js";import{D as a}from"./DocsHeader-hDdzbsP4.js";import{F as x}from"./CommandsAndQueries-DQjx50a7.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{C as f,D as m}from"./Avatar.stories-DuEnwsKw.js";import"./iframe-22aYVeZH.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-CjthvP8A.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./slot-_4yKMUwC.js";import"./event-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./Button-BBQ8R6D6.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./i18n-defaults-BotoAXl7.js";import"./TagDesign-Dou_yO3g.js";import"./utils-BoSyhUrL.js";import"./main-C6oD7XT2.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BVNesCV8.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-C5CUzSoK.js";import"./Link-DZg2nJC9.js";import"./chunk-NUUEMKO5-U4f61DH3.js";import"./client-BzooOYO_.js";import"./copy-DL3IQ6be.js";import"./copy-1gorG9K6.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-DBMEQ9W3.js";import"./index-Coq7C81h.js";import"./I18nStore-MR5G_kEB.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Cn2MHtDd.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-OThGHqLA.js";import"./index-BdA_tfl3.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.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-Lnmk9LeD.js";import"./index-fq-A78mQ.js";import"./index-C3fFd07B.js";import{C as s}from"./ControlsWithNote-anxKGV6U.js";import{D as a}from"./DocsHeader-C8M0EJds.js";import{F as x}from"./CommandsAndQueries-Cvc-NSzh.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{C as f,D as m}from"./Avatar.stories-DuEnwsKw.js";import"./iframe-Be8Bv2HM.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-CjthvP8A.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./slot-_4yKMUwC.js";import"./event-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./Button-BBQ8R6D6.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./i18n-defaults-BotoAXl7.js";import"./TagDesign-Dou_yO3g.js";import"./utils-y8u8HxGx.js";import"./main-C6oD7XT2.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BVNesCV8.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-C5CUzSoK.js";import"./Link-DZg2nJC9.js";import"./chunk-NUUEMKO5-Blno14Tx.js";import"./client-BzooOYO_.js";import"./copy-DL3IQ6be.js";import"./copy-1gorG9K6.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-DBMEQ9W3.js";import"./index-rDX7GLbX.js";import"./I18nStore-MR5G_kEB.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Cn2MHtDd.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-DPG7W1kp.js";import"./index-BdA_tfl3.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.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-B8svZqGK.js b/nightly/assets/AvatarGroup-7CBewSA-.js similarity index 82% rename from nightly/assets/AvatarGroup-B8svZqGK.js rename to nightly/assets/AvatarGroup-7CBewSA-.js index ba4fc1b4d77..33b28d53bc9 100644 --- a/nightly/assets/AvatarGroup-B8svZqGK.js +++ b/nightly/assets/AvatarGroup-7CBewSA-.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-DPMpg7JG.js";import"./index-fq-A78mQ.js";import"./index-CENj-mYB.js";import{C as s}from"./ControlsWithNote-CMOOzFzV.js";import{D as a}from"./DocsHeader-hDdzbsP4.js";import{F as x}from"./CommandsAndQueries-DQjx50a7.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{C as f,D as m}from"./AvatarGroup.stories-CSdvRjht.js";import"./iframe-22aYVeZH.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-CjthvP8A.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./slot-_4yKMUwC.js";import"./event-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./Button-BBQ8R6D6.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./i18n-defaults-BotoAXl7.js";import"./TagDesign-Dou_yO3g.js";import"./utils-BoSyhUrL.js";import"./main-C6oD7XT2.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BVNesCV8.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-C5CUzSoK.js";import"./Link-DZg2nJC9.js";import"./chunk-NUUEMKO5-U4f61DH3.js";import"./client-BzooOYO_.js";import"./copy-DL3IQ6be.js";import"./copy-1gorG9K6.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-DBMEQ9W3.js";import"./index-Coq7C81h.js";import"./I18nStore-MR5G_kEB.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Cn2MHtDd.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-OThGHqLA.js";import"./index-BdA_tfl3.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.js";import"./ItemNavigation-Ch7UfbYX.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-Lnmk9LeD.js";import"./index-fq-A78mQ.js";import"./index-C3fFd07B.js";import{C as s}from"./ControlsWithNote-anxKGV6U.js";import{D as a}from"./DocsHeader-C8M0EJds.js";import{F as x}from"./CommandsAndQueries-Cvc-NSzh.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{C as f,D as m}from"./AvatarGroup.stories-CSdvRjht.js";import"./iframe-Be8Bv2HM.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-CjthvP8A.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./slot-_4yKMUwC.js";import"./event-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./Button-BBQ8R6D6.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./i18n-defaults-BotoAXl7.js";import"./TagDesign-Dou_yO3g.js";import"./utils-y8u8HxGx.js";import"./main-C6oD7XT2.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BVNesCV8.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-C5CUzSoK.js";import"./Link-DZg2nJC9.js";import"./chunk-NUUEMKO5-Blno14Tx.js";import"./client-BzooOYO_.js";import"./copy-DL3IQ6be.js";import"./copy-1gorG9K6.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-DBMEQ9W3.js";import"./index-rDX7GLbX.js";import"./I18nStore-MR5G_kEB.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Cn2MHtDd.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-DPG7W1kp.js";import"./index-BdA_tfl3.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.js";import"./ItemNavigation-Ch7UfbYX.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-C0L5FxUs.js b/nightly/assets/Bar-Buryeghy.js similarity index 82% rename from nightly/assets/Bar-C0L5FxUs.js rename to nightly/assets/Bar-Buryeghy.js index 9ad93580a0d..fb12d8bb0bf 100644 --- a/nightly/assets/Bar-C0L5FxUs.js +++ b/nightly/assets/Bar-Buryeghy.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-DPMpg7JG.js";import"./index-fq-A78mQ.js";import"./index-CENj-mYB.js";import{C as s}from"./ControlsWithNote-CMOOzFzV.js";import{D as a}from"./DocsHeader-hDdzbsP4.js";import{F as x}from"./CommandsAndQueries-DQjx50a7.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{C as c,D as i,W as h}from"./Bar.stories-BDR0I1zk.js";import"./iframe-22aYVeZH.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-CjthvP8A.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./slot-_4yKMUwC.js";import"./event-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./Button-BBQ8R6D6.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./i18n-defaults-BotoAXl7.js";import"./TagDesign-Dou_yO3g.js";import"./utils-BoSyhUrL.js";import"./main-C6oD7XT2.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BVNesCV8.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-C5CUzSoK.js";import"./Link-DZg2nJC9.js";import"./chunk-NUUEMKO5-U4f61DH3.js";import"./client-BzooOYO_.js";import"./copy-DL3IQ6be.js";import"./copy-1gorG9K6.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-DBMEQ9W3.js";import"./index-Coq7C81h.js";import"./I18nStore-MR5G_kEB.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Cn2MHtDd.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-OThGHqLA.js";import"./index-BdA_tfl3.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.js";import"./BarDesign-BLoXVb05.js";import"./nav-back-lCSj6tEW.js";import"./index-BxFMw-kn.js";import"./Input-6sdf0eUU.js";import"./ValueState-Bg0UWejw.js";import"./ResponsivePopoverCommon.css-Qh3TzjNu.js";import"./ValueStateMessage.css-DAkvJc4l.js";import"./ResponsivePopover-B-t0Cbra.js";import"./Dialog-C8nnmLS4.js";import"./index-Ddf3C_Fo.js";import"./index-875yO5a-.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-Lnmk9LeD.js";import"./index-fq-A78mQ.js";import"./index-C3fFd07B.js";import{C as s}from"./ControlsWithNote-anxKGV6U.js";import{D as a}from"./DocsHeader-C8M0EJds.js";import{F as x}from"./CommandsAndQueries-Cvc-NSzh.js";import"./index-RYns6xqu.js";import"./WrappingType-CW8URInd.js";import"./Title-XDMvnQZn.js";import{C as c,D as i,W as h}from"./Bar.stories-B6gzYFvo.js";import"./iframe-Be8Bv2HM.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-CjthvP8A.js";import"./utils-GPKUbrfH.js";import"./useIsomorphicLayoutEffect-BErBnqdY.js";import"./slot-_4yKMUwC.js";import"./event-Dq0fpeHi.js";import"./i18nBundle-GWtZPJ2c.js";import"./decline-CmGSEmfo.js";import"./Icon-BiQiH9AZ.js";import"./Keys-D1SxbTOd.js";import"./parameters-bundle.css-Bga-3Zi8.js";import"./i18n-defaults-CdZCUmzZ.js";import"./information-OSvSoWlX.js";import"./alert-eD3USdjD.js";import"./class-map-DQ0L7MML.js";import"./Button-BBQ8R6D6.js";import"./AriaLabelHelper-C5uDZewF.js";import"./MarkedEvents-CAur0wxK.js";import"./willShowContent-CZcfsNXp.js";import"./Tooltips-BLqibUdf.js";import"./i18n-defaults-BotoAXl7.js";import"./TagDesign-Dou_yO3g.js";import"./utils-y8u8HxGx.js";import"./main-C6oD7XT2.js";import"./index-BAVmR9lv.js";import"./Tag-MIdNBUL-.js";import"./sys-help-2-DCOUH3lY.js";import"./index-BVNesCV8.js";import"./Popover-CTv0B5oi.js";import"./PopupsCommon.css-BCC2ARq6.js";import"./FocusableElements-Br0H5X9U.js";import"./isElementHidden-B4HqmI2E.js";import"./isElementClickable-0ACQ4G_A.js";import"./getActiveElement-kltGt_DR.js";import"./ResizeHandler-C_eCkGSS.js";import"./MediaRange-Bnzt26Xb.js";import"./style-map-nG21dhw_.js";import"./getEffectiveScrollbarStyle-C9nZ6DfS.js";import"./index-C5CUzSoK.js";import"./Link-DZg2nJC9.js";import"./chunk-NUUEMKO5-Blno14Tx.js";import"./client-BzooOYO_.js";import"./copy-DL3IQ6be.js";import"./copy-1gorG9K6.js";import"./clsx-B-dksMZM.js";import"./GitHub-Mark-DGRwmqGf.js";import"./TableOfContent-DBMEQ9W3.js";import"./index-rDX7GLbX.js";import"./I18nStore-MR5G_kEB.js";import"./useStylesheet-CIcp3lSM.js";import"./index-Cn2MHtDd.js";import"./index-Dns6Oz5_.js";import"./Label-CZSx-F1W.js";import"./index-DPG7W1kp.js";import"./index-BdA_tfl3.js";import"./addCustomCSSWithScoping-Da--1kqg.js";import"./index-BmvVf3i2.js";import"./BusyIndicator-CFbpjHZX.js";import"./index-p_JN0Moo.js";import"./index-C99ljWuN.js";import"./Avatar-Dvl2_7FY.js";import"./employee-LWQGcPo2.js";import"./BarDesign-BLoXVb05.js";import"./nav-back-lCSj6tEW.js";import"./index-BxFMw-kn.js";import"./Input-6sdf0eUU.js";import"./ValueState-Bg0UWejw.js";import"./ResponsivePopoverCommon.css-Qh3TzjNu.js";import"./ValueStateMessage.css-DAkvJc4l.js";import"./ResponsivePopover-B-t0Cbra.js";import"./Dialog-C8nnmLS4.js";import"./index-Ddf3C_Fo.js";import"./index-875yO5a-.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-BDR0I1zk.js b/nightly/assets/Bar.stories-B6gzYFvo.js similarity index 97% rename from nightly/assets/Bar.stories-BDR0I1zk.js rename to nightly/assets/Bar.stories-B6gzYFvo.js index b16c65d407f..bd13551b3e8 100644 --- a/nightly/assets/Bar.stories-BDR0I1zk.js +++ b/nightly/assets/Bar.stories-B6gzYFvo.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-BBQ8R6D6.js";import"./withWebComponent-CjthvP8A.js";import"./nav-back-lCSj6tEW.js";import{B as g}from"./index-OThGHqLA.js";import{I as h}from"./index-BxFMw-kn.js";import{L as x}from"./index-C5CUzSoK.js";import{T as f}from"./index-Ddf3C_Fo.js";import{B as m}from"./index-875yO5a-.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-BBQ8R6D6.js";import"./withWebComponent-CjthvP8A.js";import"./nav-back-lCSj6tEW.js";import{B as g}from"./index-DPG7W1kp.js";import{I as h}from"./index-BxFMw-kn.js";import{L as x}from"./index-C5CUzSoK.js";import{T as f}from"./index-Ddf3C_Fo.js";import{B as m}from"./index-875yO5a-.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 _J(o,e,t){return t?S`<${P("ui5-icon",e,t)} class="ui5-button-icon" name="${a(this.icon)}" mode="${a(this.iconMode)}" part="icon" ?show-tooltip=${this.showIconTooltip}>`:S``}function pJ(o,e,t){return t?S`<${P("ui5-icon",e,t)} class="ui5-button-end-icon" name="${a(this.endIcon)}" mode="${a(this.endIconMode)}" part="endIcon">`:S``}function hJ(o,e,t){return S``}var CA=dJ;c();u();d();j("@ui5/webcomponents-theming","sap_horizon",async()=>X);j("@ui5/webcomponents","sap_horizon",async()=>re);var mJ={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-2-0_button_base_min_width);height:var(--_ui5-v2-2-0_button_base_height);line-height:normal;font-family:var(--_ui5-v2-2-0_button_fontFamily);font-size:var(--sapFontSize);text-shadow:var(--_ui5-v2-2-0_button_text_shadow);border-radius:var(--_ui5-v2-2-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-2-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-2-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-2-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-2-0_button_base_min_width) - var(--_ui5-v2-2-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-2-0_button_focused_border);border-radius:var(--_ui5-v2-2-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-2-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-2-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-2-0_button_emphasized_focused_border_before);border-radius:var(--_ui5-v2-2-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-2-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-2-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-2-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-2-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-2-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-2-0_button_focused_inner_border_radius);border-bottom-right-radius:var(--_ui5-v2-2-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-2-0_button_focused_inner_border_radius);border-bottom-left-radius:var(--_ui5-v2-2-0_button_focused_inner_border_radius)} `},TA=mJ;var hi=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},df,SA=!1,uf=null,No=df=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=()=>{uf&&uf._setActiveState(!1)},SA||(document.addEventListener("mouseup",this._deactivate),SA=!0);let e=t=>{ja(t,"button"),!this.nonInteractive&&this._setActiveState(!0)};this._ontouchstart={handleEvent:e,passive:!0}}onEnterDOM(){ht()&&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(e){this.nonInteractive||(ja(e,"button"),this._isSubmit&&Ss(this),this._isReset&&Y6(this),Cc()&&this.getDomRef()?.focus())}_onmousedown(e){this.nonInteractive||(ja(e,"button"),this._setActiveState(!0),uf=this)}_ontouchend(e){this.disabled&&(e.preventDefault(),e.stopPropagation()),this.active&&this._setActiveState(!1),uf&&uf._setActiveState(!1)}_onmouseup(e){ja(e,"button")}_onkeydown(e){this._cancelAction=_5(e)||ho(e),ja(e,"button"),ve(e)||Be(e)?this._setActiveState(!0):this._cancelAction&&this._setActiveState(!1)}_onkeyup(e){this._cancelAction&&e.preventDefault(),ve(e)&&ja(e,"button"),(ve(e)||Be(e))&&this.active&&this._setActiveState(!1)}_onfocusout(){this.nonInteractive||this.active&&this._setActiveState(!1)}_onfocusin(e){this.nonInteractive||ja(e,"button")}_setActiveState(e){this.fireEvent("_active-state-change",null,!0)&&(this.active=e)}get _hasPopup(){return this.accessibilityAttributes.hasPopup}get hasButtonType(){return this.design!==wt.Default&&this.design!==wt.Transparent}get iconMode(){return this.icon?Ai.Decorative:""}get endIconMode(){return this.endIcon?Ai.Decorative:""}get isIconOnly(){return!jl(this.text)}static typeTextMappings(){return{Positive:Px,Negative:Rx,Emphasized:$x}}getDefaultTooltip(){if(d_())return z8(this.icon)}get buttonTypeText(){return df.i18nBundle.getText(df.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 d_()&&this.iconOnly&&!this.tooltip}get ariaLabelText(){return Dt(this)}get ariaDescribedbyText(){return this.hasButtonType?"ui5-button-hiddenText-type":void 0}get _isSubmit(){return this.type===Wy.Submit||this.submits}get _isReset(){return this.type===Wy.Reset}static async onDefine(){df.i18nBundle=await pe("@ui5/webcomponents")}};hi([E()],No.prototype,"design",void 0);hi([E({type:Boolean})],No.prototype,"disabled",void 0);hi([E()],No.prototype,"icon",void 0);hi([E()],No.prototype,"endIcon",void 0);hi([E({type:Boolean})],No.prototype,"submits",void 0);hi([E()],No.prototype,"tooltip",void 0);hi([E()],No.prototype,"accessibleName",void 0);hi([E()],No.prototype,"accessibleNameRef",void 0);hi([E({type:Object})],No.prototype,"accessibilityAttributes",void 0);hi([E()],No.prototype,"type",void 0);hi([E()],No.prototype,"accessibleRole",void 0);hi([E({type:Boolean})],No.prototype,"active",void 0);hi([E({type:Boolean})],No.prototype,"iconOnly",void 0);hi([E({type:Boolean})],No.prototype,"hasIcon",void 0);hi([E({type:Boolean})],No.prototype,"hasEndIcon",void 0);hi([E({type:Boolean})],No.prototype,"nonInteractive",void 0);hi([E({noAttribute:!0})],No.prototype,"buttonTitle",void 0);hi([E({type:Object})],No.prototype,"_iconSettings",void 0);hi([E({noAttribute:!0})],No.prototype,"forcedTabIndex",void 0);hi([E({type:Boolean})],No.prototype,"_isTouch",void 0);hi([E({type:Boolean,noAttribute:!0})],No.prototype,"_cancelAction",void 0);hi([oe({type:Node,default:!0})],No.prototype,"text",void 0);No=df=hi([K({tag:"ui5-button",formAssociated:!0,languageAware:!0,renderer:de,template:CA,styles:TA,dependencies:[De],shadowRootOptions:{delegatesFocus:!0}}),J("click"),J("_active-state-change")],No);No.define();var Ze=No;c();u();d();var qy;(function(o){o.XS="XS",o.S="S",o.M="M",o.L="L",o.XL="XL"})(qy||(qy={}));var cn=qy;c();u();d();var Gy;(function(o){o.Group="Group",o.Individual="Individual"})(Gy||(Gy={}));var As=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 xA=Ky;c();u();d();j("@ui5/webcomponents-theming","sap_horizon",async()=>X);j("@ui5/webcomponents","sap_horizon",async()=>re);var fJ={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-2-0_button_focused_border: var(--_ui5-v2-2-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-2-0_avatar_outline);outline-offset:var(--_ui5-v2-2-0_avatar_focus_offset);border-radius:var(--_ui5-v2-2-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-2-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-2-0_avatar_outline);outline-offset:var(--_ui5-v2-2-0_avatar_overflow_button_focus_offset)}.ui5-avatar-group-overflow-btn::part(button):focus-visible:after{outline:var(--_ui5-v2-2-0_avatar_outline);outline-offset:var(--_ui5-v2-2-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} `},IA=fJ;c();u();d();function vJ(o,e,t){return S`
${this._customOverflowButton?gJ.call(this,o,e,t):bJ.call(this,o,e,t)}
`}function gJ(o,e,t){return S``}function bJ(o,e,t){return t?S`<${P("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)}`:S`${a(this._overflowButtonText)}`}var kA=vJ;var Yp=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},Hu,AA="ui5-avatar-group-overflow-btn",yJ=`.${AA}`,wJ={[cn.XS]:{[As.Individual]:"0.0625rem",[As.Group]:"-0.5rem"},[cn.S]:{[As.Individual]:"0.125rem",[As.Group]:"-1.25rem"},[cn.M]:{[As.Individual]:"0.125rem",[As.Group]:"-1.625rem"},[cn.L]:{[As.Individual]:"0.125rem",[As.Group]:" -2rem"},[cn.XL]:{[As.Individual]:"0.25rem",[As.Group]:"-2.75rem"}},zu=Hu=class extends le{constructor(){super(),this.type="Group",this.accessibilityAttributes={},this._colorIndex=0,this._hiddenItems=0,this._itemNavigation=new Co(this,{getItemsCallback:()=>this._isGroup?[]:this.items.slice(0,this._hiddenStartIndex)}),this._onResizeHandler=this._onResize.bind(this)}static async onDefine(){Hu.i18nBundle=await pe("@ui5/webcomponents")}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?yx:bx,i=Hu.i18nBundle.getText(t);return i+=` ${Hu.i18nBundle.getText(gx,this._itemsCount-e,e)}`,this._isGroup?i+=` ${Hu.i18nBundle.getText(Sb)}`:i+=` ${Hu.i18nBundle.getText(wx)}`,i}get _overflowButtonAriaLabelText(){return this._isGroup?void 0:Hu.i18nBundle.getText(Sb)}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===As.Group}get _itemsCount(){return this.items.length}get _groupTabIndex(){return this._isGroup?"0":"-1"}get _overflowButton(){return this.shadowRoot.querySelector(yJ)}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(){ht()&&this.setAttribute("desktop",""),ze.register(this,this._onResizeHandler)}onExitDOM(){ze.deregister(this,this._onResizeHandler)}_onResize(){this._overflowItems()}_onkeydown(e){this._isGroup&&(Be(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(AA)||e===this._customOverflowButton;this.fireEvent("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",xA[`Accent${i}`]),(t!==this._itemsCount-1||this._customOverflowButton)&&(e.style.marginInlineEnd=wJ[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.fireEvent("overflow")}_getAriaHasPopup(){return this.accessibilityAttributes.hasPopup}};Yp([E()],zu.prototype,"type",void 0);Yp([E({type:Object})],zu.prototype,"accessibilityAttributes",void 0);Yp([E({noAttribute:!0})],zu.prototype,"_overflowButtonText",void 0);Yp([oe({type:HTMLElement,default:!0})],zu.prototype,"items",void 0);Yp([oe()],zu.prototype,"overflowButton",void 0);zu=Hu=Yp([K({tag:"ui5-avatar-group",renderer:de,template:kA,styles:IA,dependencies:[Ze]}),J("click",{detail:{targetRef:{type:HTMLElement},overflowButtonClicked:{type:Boolean}}}),J("overflow")],zu);zu.define();var CJ=te("ui5-avatar-group",["accessibilityAttributes","type"],[],["overflowButton"],["click","overflow"]);CJ.displayName="AvatarGroup";c();u();d();c();u();d();c();u();d();function TJ(o,e,t){return S``}var BA=TJ;c();u();d();j("@ui5/webcomponents-theming","sap_horizon",async()=>X);j("@ui5/webcomponents","sap_horizon",async()=>re);var SJ={packageName:"@ui5/webcomponents",fileName:"themes/Bar.css.ts",content:`:host{background-color:var(--sapPageHeader_Background);height:var(--_ui5-v2-2-0_bar_base_height);width:100%;box-shadow:var(--sapContent_HeaderShadow);display:block}.ui5-bar-root{display:flex;align-items:center;justify-content:space-between;height:inherit;width:inherit;background-color:inherit;box-shadow:inherit;border-radius:inherit}.ui5-bar-root .ui5-bar-startcontent-container{padding-inline-start:var(--_ui5-v2-2-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-2-0_bar-start-container-padding-start) + var(--_ui5-v2-2-0_bar-end-container-padding-end) + (2*var(--_ui5-v2-2-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-2-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-2-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-2-0_bar_subheader_height);margin-top:var(--_ui5-v2-2-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}