mateu-vaadin 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,8 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>AQUIELTITULODELAPAGINA</title>
8
- <link rel="stylesheet" href="./src/index.css" />
9
- <script type="module" src="./src/lumo.js"></script>
10
- <script type="module" src="./src/index.ts"></script>
8
+ <script type="module" crossorigin src="/assets/mateu-vaadin.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index.css">
11
10
  </head>
12
11
  <body>
13
12
 
@@ -18,7 +17,7 @@
18
17
  baseUrl="/declarative"
19
18
  baseUrl=""
20
19
  -->
21
- <mateu-ui baseUrl="/fluent"
20
+ <mateu-ui baseUrl=""
22
21
  config='{"tenantId": "1111","profile": "dev"}'
23
22
  style="width: 100%; height: 100vh;"
24
23
  >
@@ -0,0 +1,11 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ListItemStandardExpandableTextTemplate.js","assets/mateu-vaadin.js","assets/index.css"])))=>i.map(i=>d[i]);
2
+ import{f as ft,i as _t,p as _,d as D,a as S,s as d,m as T,l as m,y as ue,b as pe,c as Ve,B as be,e as qe,g as ve,h as Ie,t as Ue,j as l,k as p,n as mt,o as H,q as ge,r as se,G as bt,_ as vt,F as Q,K as ne,u as re,D as ae,P as le,v as Xe,W as Ye,Y as It,Z as wt,w as xt,x as Ke,z as yt,E as Dt,A as St,C as Me,T as Tt,H as Rt,L as Et,I as Ct,J as Bt,M as Lt,N as Mt,O as Ot,Q as At,R as zt,S as Ht,U as Oe,V as Ze,X as Je,$ as Pt,a0 as de,a1 as Qe,a2 as N,a3 as et,a4 as Ft,a5 as $t,a6 as kt,a7 as Nt,a8 as Gt,a9 as Ae,aa as ze,ab as He,ac as Pe,ad as Fe,ae as $,af as jt,ag as we,ah as tt,ai as it,aj as E,ak as Wt,al as ot,am as Vt,an as qt}from"./mateu-vaadin.js";const Ut=i=>i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function $e(i,e,t,o){return i.replaceAll(new RegExp(Ut(e),`${o?"i":""}g`),t)}function Xt(i,e){if(!i||!e)return i;const t=r=>{const[a,u]=r.split("");for(;i.indexOf(r)>=0||e.indexOf(r)>=0;)r=`${a}${r}${u}`;return r},o=t("12"),s=t("34");let n=ft($e(i,e,r=>`${o}${r}${s}`,!0));return[[o,"<b>"],[s,"</b>"]].forEach(([r,a])=>{n=$e(n,r,a,!1)}),n}const Yt=i=>{if(!i||i.hasAttribute("data-sap-no-tab-ref")||_t(i))return!1;const e=i.getAttribute("tabindex");if(e!=null)return parseInt(e)>=0;const t=i.nodeName.toLowerCase();return t==="a"||/^(input|select|textarea|button|object)$/.test(t)?!i.disabled:!1},Kt=i=>xe([...i.children]),xe=(i,e)=>{const t=e||[];return i&&i.forEach(o=>{if(o.nodeType===Node.TEXT_NODE||o.nodeType===Node.COMMENT_NODE)return;const s=o;if(!s.hasAttribute("data-sap-no-tab-ref"))if(Yt(s)&&t.push(s),s.tagName==="SLOT")xe(s.assignedNodes(),t);else{const n=s.shadowRoot?s.shadowRoot.children:s.children;xe([...n],t)}}),t};_("@ui5/webcomponents-theming","sap_horizon",async()=>D);_("@ui5/webcomponents","sap_horizon",async()=>S);const Zt=`:host{box-sizing:border-box;height:var(--_ui5-v2-13-2_list_item_base_height);background-color:var(--ui5-v2-13-2-listitem-background-color);border-bottom:.0625rem solid transparent}:host(:not([hidden])){display:block}:host([disabled]){opacity:var(--_ui5-v2-13-2-listitembase_disabled_opacity);pointer-events:none}:host([actionable]:not([disabled]):not([ui5-li-group-header])){cursor:pointer}:host([has-border]){border-bottom:var(--ui5-v2-13-2-listitem-border-bottom)}:host([selected]){background-color:var(--sapList_SelectionBackgroundColor);border-bottom:var(--ui5-v2-13-2-listitem-selected-border-bottom)}:host([selected]) .ui5-li-additional-text{text-shadow:var(--sapContent_TextShadow)}:host([actionable]:not([active]):not([selected]):not([ui5-li-group-header]):hover){background-color:var(--sapList_Hover_Background)}:host([actionable]:not([active]):not([selected]):not([ui5-li-group-header]):hover) .ui5-li-additional-text{text-shadow:var(--sapContent_TextShadow)}:host([actionable][selected]:not([active],[data-moving]):hover){background-color:var(--sapList_Hover_SelectionBackground)}:host([active][actionable]:not([data-moving])),:host([active][actionable][selected]:not([data-moving])){background-color:var(--sapList_Active_Background)}:host([desktop]:not([data-moving])) .ui5-li-root.ui5-li--focusable:focus:after,:host([desktop][focused]:not([data-moving])) .ui5-li-root.ui5-li--focusable:after,:host(:not([data-moving])) .ui5-li-root.ui5-li--focusable:focus-visible:after,:host([desktop]:not([data-moving])) .ui5-li-root .ui5-li-content:focus:after,:host([desktop][focused]:not([data-moving])) .ui5-li-root .ui5-li-content:after,:host(:not([data-moving])) .ui5-li-root .ui5-li-content:focus-visible:after{content:"";border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);position:absolute;inset:.125rem;pointer-events:none}.ui5-li-root{position:relative;display:flex;align-items:center;width:100%;height:100%;padding:var(--_ui5-v2-13-2_list_item_base_padding);box-sizing:border-box;background-color:inherit}.ui5-li-root.ui5-li--focusable{outline:none}.ui5-li-content{display:flex;align-items:center;flex:auto;overflow:hidden;max-width:100%;font-family:"72override",var(--sapFontFamily);color:var(--sapList_TextColor)}.ui5-li-content .ui5-li-title{color:var(--sapList_TextColor);font-size:var(--_ui5-v2-13-2_list_item_title_size)}.ui5-li-text-wrapper{display:flex;flex-direction:row;justify-content:space-between;flex:auto;min-width:1px;line-height:normal}
3
+ `;_("@ui5/webcomponents-theming","sap_horizon",async()=>D);_("@ui5/webcomponents","sap_horizon",async()=>S);const Jt=`[draggable=true]{cursor:grab!important}[draggable=true][data-moving]{cursor:grabbing!important;opacity:var(--sapContent_DisabledOpacity)}
4
+ `;var P=function(i,e,t,o){var s=arguments.length,n=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var a=i.length-1;a>=0;a--)(r=i[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n};let x=class extends pe{constructor(){super(...arguments),this.selected=!1,this.movable=!1,this.hasBorder=!1,this.disabled=!1,this.focused=!1,this.actionable=!1}onEnterDOM(){Ve()&&this.setAttribute("desktop","")}onBeforeRendering(){this.actionable=!0}_onfocusin(e){this.fireDecoratorEvent("request-tabindex-change",e),e.target===this.getFocusDomRef()&&this.fireDecoratorEvent("_focused",e)}_onkeydown(e){if(be(e))return this._handleTabNext(e);if(qe(e))return this._handleTabPrevious(e);this.getFocusDomRef().matches(":has(:focus-within)")||(this._isSpace(e)&&e.preventDefault(),this._isEnter(e)&&this.fireItemPress(e))}_onkeyup(e){this.getFocusDomRef().matches(":has(:focus-within)")||this._isSpace(e)&&this.fireItemPress(e)}_onclick(e){this.getFocusDomRef().matches(":has(:focus-within)")||this.fireItemPress(e)}_isSpace(e){return ve(e)}_isEnter(e){return Ie(e)}fireItemPress(e){this.disabled||!this._pressable||(Ie(e)&&e.preventDefault(),this.fireDecoratorEvent("_press",{item:this,selected:this.selected,key:e.key}))}_handleTabNext(e){this.shouldForwardTabAfter()&&(this.fireDecoratorEvent("forward-after")||e.preventDefault())}_handleTabPrevious(e){const t=e.target;this.shouldForwardTabBefore(t)&&this.fireDecoratorEvent("forward-before")}shouldForwardTabAfter(){const e=Kt(this.getFocusDomRef());return e.length===0||e[e.length-1]===Ue()}shouldForwardTabBefore(e){return this.getFocusDomRef()===e}get classes(){return{main:{"ui5-li-root":!0,"ui5-li--focusable":this._focusable}}}get _ariaDisabled(){return this.disabled?!0:void 0}get _focusable(){return!this.disabled}get _pressable(){return!0}get hasConfigurableMode(){return!1}get _effectiveTabIndex(){return this._focusable?this.selected?0:this.forcedTabIndex?parseInt(this.forcedTabIndex):void 0:-1}get isListItemBase(){return!0}};P([d({type:Boolean})],x.prototype,"selected",void 0);P([d({type:Boolean})],x.prototype,"movable",void 0);P([d({type:Boolean})],x.prototype,"hasBorder",void 0);P([d()],x.prototype,"forcedTabIndex",void 0);P([d({type:Boolean})],x.prototype,"disabled",void 0);P([d({type:Boolean})],x.prototype,"focused",void 0);P([d({type:Boolean})],x.prototype,"actionable",void 0);x=P([T({renderer:ue,styles:[Zt,Jt]}),m("request-tabindex-change",{bubbles:!0}),m("_press",{bubbles:!0}),m("_focused",{bubbles:!0}),m("forward-after",{bubbles:!0,cancelable:!0}),m("forward-before",{bubbles:!0})],x);const fe=x;function Qt(i,e){const t=i?.listItemContent||ei;return l("li",{part:"native-li","data-sap-focus-ref":!0,tabindex:this._effectiveTabIndex,class:this.classes.main,draggable:this.movable,role:e?.role,title:e?.title,onFocusIn:this._onfocusin,onKeyUp:this._onkeyup,onKeyDown:this._onkeydown,onClick:this._onclick,children:t.call(this)})}function ei(){return l("div",{part:"content",id:`${this._id}-content`,class:"ui5-li-content",children:l("div",{class:"ui5-li-text-wrapper",children:l("span",{part:"title",class:"ui5-li-title",children:l("slot",{})})})})}function ti(){return[Qt.call(this,{listItemContent:ii},{role:"option"})]}function ii(){return l("div",{part:"content",id:"content",class:"ui5-li-content",children:p("div",{class:"ui5-li-text-wrapper",children:[l("span",{part:"title",className:"ui5-li-title",dangerouslySetInnerHTML:{__html:this.markupText}}),this.additionalText&&l("span",{part:"additional-text",class:"ui5-li-additional-text",children:this.additionalText})]})})}_("@ui5/webcomponents-theming","sap_horizon",async()=>D);_("@ui5/webcomponents","sap_horizon",async()=>S);const oi=`:host([ui5-suggestion-item]){height:auto;min-height:var(--_ui5-v2-13-2_list_item_base_height)}:host([ui5-suggestion-item]) .ui5-li-root{min-height:var(--_ui5-v2-13-2_list_item_base_height)}:host([ui5-suggestion-item]) .ui5-li-content{padding-bottom:.5rem;padding-top:.5rem;box-sizing:border-box}
5
+ `;var _e=function(i,e,t,o){var s=arguments.length,n=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var a=i.length-1;a>=0;a--)(r=i[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n};let U=class extends fe{constructor(){super(...arguments),this.markupText=""}onEnterDOM(){Ve()&&this.setAttribute("desktop","")}get _effectiveTabIndex(){return-1}};_e([d()],U.prototype,"text",void 0);_e([d()],U.prototype,"additionalText",void 0);_e([d()],U.prototype,"markupText",void 0);U=_e([T({tag:"ui5-suggestion-item",template:ti,styles:[fe.styles,oi]})],U);U.define();const si=':host{justify-content:center;align-items:center;display:flex;color:var(--sapList_TextColor);background-color:var(--sapList_Background);font-family:"72override",var(--sapFontFamily);height:var(--sapElement_LineHeight);border-bottom:var(--sapList_BorderWidth) solid var(--sapList_BorderColor);opacity:.8;position:absolute;padding:0 1rem;top:-1000px;left:-1000px}',ni={key:"DRAG_DROP_MULTIPLE_TEXT",defaultText:"{0} items"},ke=2;let K=null,ee=null,Z=!1;const ye=new Set,Re=new Set,st=i=>{!i.dataTransfer||!(i.target instanceof HTMLElement)||(Re.has(i.target)||(ee=i.target),ri(i))},ri=async i=>{if(!K||!i.dataTransfer)return;const e=await K;document.body.appendChild(e),i.dataTransfer.setDragImage(e,0,0),requestAnimationFrame(()=>{e.remove()})},nt=()=>{ee=null,K=null},rt=()=>{ee=null,K=null},ai=i=>{ee=i},li=()=>ee,di=async i=>{const e=document.createElement("div"),t=await mt("@ui5/webcomponents-base"),o=e.attachShadow({mode:"open"}),s=new CSSStyleSheet;return s.replaceSync(si),o.adoptedStyleSheets=[s],o.textContent=t.getText(ni,i),e},hi=(i,e)=>{if(i<ke){console.warn(`Cannot start multiple drag with count ${i}. Minimum is ${ke}.`);return}K=di(i)},ci=()=>{Z||(document.body.addEventListener("dragstart",st),document.body.addEventListener("dragend",nt),document.body.addEventListener("drop",rt),Z=!0)},ui=()=>{document.body.removeEventListener("dragstart",st),document.body.removeEventListener("dragend",nt),document.body.removeEventListener("drop",rt),Z=!1},pi=i=>{ye.add(i),Z||ci()},gi=i=>{ye.delete(i),ye.size===0&&Z&&ui()},fi=i=>(Re.add(i),ai),_i=i=>{Re.delete(i)},M={subscribe:pi,unsubscribe:gi,addSelfManagedArea:fi,removeSelfManagedArea:_i,getDraggedElement:li,startMultipleDrag:hi};var f=(i=>(i.On="On",i.Before="Before",i.After="After",i))(f||{}),O=(i=>(i.Vertical="Vertical",i.Horizontal="Horizontal",i))(O||{});const Ne=(i,e,t,o)=>{const s=Math.abs(i-e),n=Math.abs(i-t),r=Math.abs(i-o),a=Math.min(s,n,r);let u=[];switch(a){case s:u=[f.Before];break;case n:u=[f.On,s<r?f.Before:f.After];break;case r:u=[f.After];break}return u},at=(i,e,t)=>{let o=Number.POSITIVE_INFINITY,s=null;for(let V=0;V<i.length;V++){const Be=i[V],{left:ct,width:ut,top:pt,height:gt}=Be.getBoundingClientRect();let me;t===O.Vertical?me=pt+gt/2:me=ct+ut/2;const Le=Math.abs(e-me);Le<o&&(o=Le,s=Be)}if(!s)return null;const{width:n,height:r,left:a,right:u,top:g,bottom:b}=s.getBoundingClientRect();let W;return t===O.Vertical?W=Ne(e,g,g+r/2,b):W=Ne(e,a,a+n/2,u),{element:s,placements:W}},Ge=(i,e)=>(e--,e<0?[]:[{element:i[e],placement:f.Before}]),je=(i,e)=>(e++,e>=i.length?[]:[{element:i[e],placement:f.After}]),lt={ArrowLeft:Ge,ArrowUp:Ge,ArrowRight:je,ArrowDown:je,Home:(i,e)=>i.slice(0,e).map(t=>({element:t,placement:f.Before})),End:(i,e)=>i.slice(e+1,i.length).reverse().map(t=>({element:t,placement:f.After}))},mi=(i,e,t)=>bi(t.key)?lt[t.key](i,i.indexOf(e)):[],bi=i=>i in lt;var De;(function(i){i.None="None",i.Normal="Normal"})(De||(De={}));const vi=De;function Ii(){return p("div",{part:"native-li",role:this.effectiveAccRole,tabindex:this.forcedTabIndex?parseInt(this.forcedTabIndex):void 0,class:{"ui5-ghli-root":!0,...this.classes.main},"aria-label":this.ariaLabelText,"aria-roledescription":this.groupHeaderText,onFocusIn:this._onfocusin,onKeyDown:this._onkeydown,children:[l("div",{id:`${this._id}-content`,class:"ui5-li-content",children:wi.call(this)}),this.hasSubItems&&l("slot",{name:"subItems"})]})}function wi(){return this.wrappingType===vi.Normal?this.expandableTextTemplate?.call(this,{className:"ui5-ghli-title",text:this._textContent,maxCharacters:this._maxCharacters,part:"title"}):l("span",{part:"title",class:"ui5-ghli-title",children:l("slot",{})})}_("@ui5/webcomponents-theming","sap_horizon",async()=>D);_("@ui5/webcomponents","sap_horizon",async()=>S);const xi=`.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{height:var(--_ui5-v2-13-2_group_header_list_item_height);background:var(--ui5-v2-13-2-group-header-listitem-background-color);color:var(--sapList_TableGroupHeaderTextColor)}:host([wrapping-type="Normal"]){height:auto}:host([has-border]){border-bottom:var(--sapList_BorderWidth) solid var(--sapList_GroupHeaderBorderColor)}:host([actionable]:not([disabled])){cursor:default}.ui5-li-root.ui5-ghli-root{padding-top:.5rem;color:currentColor;font-size:var(--sapFontHeader6Size);font-weight:400;line-height:2rem;margin:0}.ui5-ghli-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-family:var(--sapFontHeaderFamily)}.ui5-li-content{width:100%}
6
+ `;var Se;(function(i){i.Group="Group",i.ListItem="ListItem",i.MenuItem="MenuItem",i.TreeItem="TreeItem",i.Option="Option",i.None="None"})(Se||(Se={}));const Ee=Se;var F=function(i,e,t,o){var s=arguments.length,n=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var a=i.length-1;a>=0;a--)(r=i[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n},X;const yi=100,Di=300;let w=X=class extends fe{constructor(){super(...arguments),this.accessibleRole=Ee.ListItem,this.wrappingType="None",this.mediaRange="S"}get effectiveAccRole(){return se(this.accessibleRole)}get groupItem(){return!0}get _pressable(){return!1}get groupHeaderText(){return X.i18nBundle.getText(bt)}get defaultSlotText(){return this.textContent}get ariaLabelText(){return[this.textContent,this.accessibleName].filter(Boolean).join(" ")}get hasSubItems(){return this.subItems.length>0}onBeforeRendering(){super.onBeforeRendering(),this.wrappingType==="Normal"&&(X.ExpandableTextTemplate?this.expandableTextTemplate=X.ExpandableTextTemplate:vt(()=>import("./ListItemStandardExpandableTextTemplate.js"),__vite__mapDeps([0,1,2])).then(e=>{this.expandableTextTemplate=e.default}))}get _maxCharacters(){return this.mediaRange==="S"?yi:Di}get _textContent(){return this.defaultSlotText||this.groupHeaderText||""}};F([d()],w.prototype,"accessibleName",void 0);F([d()],w.prototype,"accessibleRole",void 0);F([d()],w.prototype,"wrappingType",void 0);F([d()],w.prototype,"mediaRange",void 0);F([d({noAttribute:!0})],w.prototype,"expandableTextTemplate",void 0);F([H()],w.prototype,"subItems",void 0);F([ge("@ui5/webcomponents")],w,"i18nBundle",void 0);w=X=F([T({tag:"ui5-li-group-header",languageAware:!0,template:Ii,styles:[fe.styles,xi]})],w);w.define();const dt=w;function Si(){return l("div",{class:{"ui5-di-rect":this.placement===f.On,"ui5-di-needle":this.placement!==f.On}})}_("@ui5/webcomponents-theming","sap_horizon",async()=>D);_("@ui5/webcomponents","sap_horizon",async()=>S);const Ti=`:host{position:absolute;pointer-events:none;z-index:99}:host([orientation="Vertical"]) .ui5-di-needle{width:.125rem;height:100%;inset-block:0;background:var(--sapContent_DragAndDropActiveColor)}:host([orientation="Vertical"]){margin-left:-.0625rem}:host([orientation="Horizontal"]) .ui5-di-needle{height:.125rem;width:100%;inset-inline:0;background:var(--sapContent_DragAndDropActiveColor)}:host([orientation="Horizontal"]){margin-top:-.0625rem}:host([orientation="Horizontal"][placement="Before"][first]){margin-top:.3125rem}:host([orientation="Horizontal"][placement="After"][last]){margin-top:-.3125rem}:host([orientation="Vertical"]) .ui5-di-needle:before{left:-.1875rem;content:"";position:absolute;width:.25rem;height:.25rem;border-radius:.25rem;border:.125rem solid var(--sapContent_DragAndDropActiveColor);background-color:#fff;pointer-events:none}:host([orientation="Horizontal"]) .ui5-di-needle:before{top:-.1875rem;content:"";position:absolute;width:.25rem;height:.25rem;border-radius:.25rem;border:.125rem solid var(--sapContent_DragAndDropActiveColor);background-color:#fff;pointer-events:none}:host .ui5-di-rect{border:.125rem solid var(--sapContent_DragAndDropActiveColor);position:absolute;inset:0}:host .ui5-di-rect:before{content:" ";position:absolute;inset:0;background:var(--sapContent_DragAndDropActiveColor);opacity:.05}
7
+ `;var te=function(i,e,t,o){var s=arguments.length,n=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var a=i.length-1;a>=0;a--)(r=i[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n};let A=class extends pe{get _positionProperty(){return this.orientation===O.Vertical?"left":"top"}constructor(){super(),this.targetReference=null,this.ownerReference=null,this.placement="Before",this.orientation="Vertical"}onAfterRendering(){if(!this.targetReference||!this.ownerReference){Object.assign(this.style,{display:"none"});return}const{left:e,width:t,right:o,top:s,bottom:n,height:r}=this.targetReference.getBoundingClientRect(),{top:a,height:u}=this.ownerReference.getBoundingClientRect(),g={display:"",[this._positionProperty]:"",width:"",height:""};let b=0,W=!1,V=!1;if(this.orientation===O.Vertical){switch(this.placement){case f.Before:b=e;break;case f.On:g.width=`${t}px`,b=e;break;case f.After:b=o;break}g.height=`${r}px`}if(this.orientation===O.Horizontal){switch(this.placement){case f.Before:b=s;break;case f.On:g.height=`${r}px`,b=s;break;case f.After:b=n;break}g.width=`${t}px`,b-=a,b<=0&&(V=!0),b>=u&&(W=!0)}g[this._positionProperty]=`${b}px`,this.toggleAttribute("first",V),this.toggleAttribute("last",W),Object.assign(this.style,g)}};te([d({type:Object})],A.prototype,"targetReference",void 0);te([d({type:Object})],A.prototype,"ownerReference",void 0);te([d()],A.prototype,"placement",void 0);te([d()],A.prototype,"orientation",void 0);A=te([T({tag:"ui5-drop-indicator",renderer:ue,styles:Ti,template:Si})],A);A.define();const Ce=A;function Ri(){return p(Q,{children:[this.hasHeader&&p(dt,{wrappingType:this.wrappingType,focused:this.focused,part:"header",accessibleRole:Ee.ListItem,children:[this.hasFormattedHeader?l("slot",{name:"header"}):this.headerText,l("div",{role:"list",slot:"subItems","aria-owns":`${this._id}-content`,"aria-label":this.headerText})]}),p("div",{class:"ui5-group-li-root",onDragEnter:this._ondragenter,onDragOver:this._ondragover,onDrop:this._ondrop,onDragLeave:this._ondragleave,id:`${this._id}-content`,children:[l("slot",{}),l(Ce,{orientation:"Horizontal",ownerReference:this})]})]})}_("@ui5/webcomponents-theming","sap_horizon",async()=>D);_("@ui5/webcomponents","sap_horizon",async()=>S);const Ei=`.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{height:var(--_ui5-v2-13-2_group_header_list_item_height);background:var(--ui5-v2-13-2-group-header-listitem-background-color);color:var(--sapList_TableGroupHeaderTextColor)}.ui5-group-li-root{width:100%;height:100%;position:relative;box-sizing:border-box;padding:0;margin:0;list-style-type:none}
8
+ `;var j=function(i,e,t,o){var s=arguments.length,n=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var a=i.length-1;a>=0;a--)(r=i[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n};let y=class extends pe{constructor(){super(...arguments),this.wrappingType="None",this.focused=!1}onEnterDOM(){M.subscribe(this)}onExitDOM(){M.unsubscribe(this)}get groupHeaderItem(){return this.shadowRoot.querySelector("[ui5-li-group-header]")}get hasHeader(){return!!this.headerText||this.hasFormattedHeader}get hasFormattedHeader(){return!!this.header.length}get isListItemGroup(){return!0}get dropIndicatorDOM(){return this.shadowRoot.querySelector("[ui5-drop-indicator]")}_ondragenter(e){e.preventDefault()}_ondragleave(e){e.relatedTarget instanceof Node&&this.shadowRoot.contains(e.relatedTarget)||(this.dropIndicatorDOM.targetReference=null)}_ondragover(e){const t=M.getDraggedElement();if(!(e.target instanceof HTMLElement)||!t)return;const o=at(this.items,e.clientY,O.Vertical);if(!o){this.dropIndicatorDOM.targetReference=null;return}let s=o.placements;o.element===t&&(s=s.filter(r=>r!==f.On)),s.some(r=>this.fireDecoratorEvent("move-over",{source:{element:t},destination:{element:o.element,placement:r}})?!1:(e.preventDefault(),this.dropIndicatorDOM.targetReference=o.element,this.dropIndicatorDOM.placement=r,!0))||(this.dropIndicatorDOM.targetReference=null)}_ondrop(e){e.preventDefault(),this.fireDecoratorEvent("move",{source:{element:M.getDraggedElement()},destination:{element:this.dropIndicatorDOM.targetReference,placement:this.dropIndicatorDOM.placement}}),this.dropIndicatorDOM.targetReference=null}};j([d()],y.prototype,"headerText",void 0);j([d()],y.prototype,"headerAccessibleName",void 0);j([H({default:!0,invalidateOnChildChange:!0,type:HTMLElement})],y.prototype,"items",void 0);j([d()],y.prototype,"wrappingType",void 0);j([d({type:Boolean})],y.prototype,"focused",void 0);j([H({type:HTMLElement})],y.prototype,"header",void 0);y=j([T({tag:"ui5-li-group",renderer:ue,languageAware:!0,template:Ri,styles:[Ei]}),m("move-over",{bubbles:!0,cancelable:!0}),m("move",{bubbles:!0})],y);y.define();const Ci=i=>"isListItemGroup"in i,Bi=y;function Li(i){const e=i?.items||Mi;return p("ul",{role:"group",class:"ui5-group-li-root",onDragEnter:this._ondragenter,onDragOver:this._ondragover,onDrop:this._ondrop,onDragLeave:this._ondragleave,children:[this.hasHeader&&l(dt,{focused:this.focused,part:"header",accessibleRole:Ee.Group,children:this.hasFormattedHeader?l("slot",{name:"header"}):this.headerText}),e.call(this),l(Ce,{orientation:"Horizontal",ownerReference:this})]})}function Mi(){return l("slot",{})}var ht=function(i,e,t,o){var s=arguments.length,n=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var a=i.length-1;a>=0;a--)(r=i[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n};let he=class extends Bi{};ht([H({default:!0,invalidateOnChildChange:!0,type:HTMLElement})],he.prototype,"items",void 0);he=ht([T({tag:"ui5-suggestion-item-group",template:Li})],he);he.define();var k=(i=>(i.Auto="Auto",i.Vertical="Vertical",i.Horizontal="Horizontal",i.Paging="Paging",i))(k||{}),q=(i=>(i.Static="Static",i.Cyclic="Cyclic",i))(q||{});class Oi{constructor(e,t){if(!e.isUI5Element)throw new Error("The root web component must be a UI5 Element instance");if(this.rootWebComponent=e,this.rootWebComponent.addEventListener("keydown",this._onkeydown.bind(this)),this._initBound=this._init.bind(this),this.rootWebComponent.attachComponentStateFinalized(this._initBound),typeof t.getItemsCallback!="function")throw new Error("getItemsCallback is required");this._getItems=t.getItemsCallback,this._currentIndex=t.currentIndex||0,this._rowSize=t.rowSize||1,this._behavior=t.behavior||q.Static,this._navigationMode=t.navigationMode||k.Auto,this._affectedPropertiesNames=t.affectedPropertiesNames||[],this._skipItemsSize=t.skipItemsSize||null}setCurrentItem(e){const t=this._getItems().indexOf(e);if(t===-1){console.warn("The provided item is not managed by ItemNavigation",e);return}this._currentIndex=t,this._applyTabIndex()}setRowSize(e){this._rowSize=e}_init(){this._getItems().forEach((e,t)=>{e.forcedTabIndex=t===this._currentIndex?"0":"-1"})}_onkeydown(e){if(!this._canNavigate())return;const t=this._navigationMode===k.Horizontal||this._navigationMode===k.Auto,o=this._navigationMode===k.Vertical||this._navigationMode===k.Auto,s=this.rootWebComponent.effectiveDir==="rtl";if(s&&ne(e)&&t)this._handleRight();else if(s&&re(e)&&t)this._handleLeft();else if(ne(e)&&t)this._handleLeft();else if(re(e)&&t)this._handleRight();else if(ae(e)&&o)this._handleUp();else if(le(e)&&o)this._handleDown();else if(Xe(e))this._handleHome();else if(Ye(e))this._handleEnd();else if(It(e))this._handlePageUp();else if(wt(e))this._handlePageDown();else return;e.preventDefault(),this._applyTabIndex(),this._focusCurrentItem()}_handleUp(){const e=this._getItems().length;if(this._currentIndex-this._rowSize>=0){this._currentIndex-=this._rowSize;return}if(this._behavior===q.Cyclic){const t=this._currentIndex%this._rowSize,o=t===0?this._rowSize-1:t-1,s=Math.ceil(e/this._rowSize);let n=o+(s-1)*this._rowSize;n>e-1&&(n-=this._rowSize),this._currentIndex=n}else this._currentIndex=0}_handleDown(){const e=this._getItems().length;if(this._currentIndex+this._rowSize<e){this._currentIndex+=this._rowSize;return}if(this._behavior===q.Cyclic){const t=(this._currentIndex%this._rowSize+1)%this._rowSize;this._currentIndex=t}else this._currentIndex=e-1}_handleLeft(){const e=this._getItems().length;if(this._currentIndex>0){this._currentIndex-=1;return}this._behavior===q.Cyclic&&(this._currentIndex=e-1)}_handleRight(){const e=this._getItems().length;if(this._currentIndex<e-1){this._currentIndex+=1;return}this._behavior===q.Cyclic&&(this._currentIndex=0)}_handleHome(){const e=this._rowSize>1?this._rowSize:this._getItems().length;this._currentIndex-=this._currentIndex%e}_handleEnd(){const e=this._rowSize>1?this._rowSize:this._getItems().length;this._currentIndex+=e-1-this._currentIndex%e}_handlePageUp(){this._rowSize>1||this._handlePageUpFlat()}_handlePageDown(){this._rowSize>1||this._handlePageDownFlat()}_handlePageUpFlat(){if(this._skipItemsSize===null){this._currentIndex-=this._currentIndex;return}this._currentIndex+1>this._skipItemsSize?this._currentIndex-=this._skipItemsSize:this._currentIndex-=this._currentIndex}_handlePageDownFlat(){if(this._skipItemsSize===null){this._currentIndex=this._getItems().length-1;return}this._getItems().length-this._currentIndex-1>this._skipItemsSize?this._currentIndex+=this._skipItemsSize:this._currentIndex=this._getItems().length-1}_applyTabIndex(){const e=this._getItems();for(let t=0;t<e.length;t++)e[t].forcedTabIndex=t===this._currentIndex?"0":"-1";this._affectedPropertiesNames.forEach(t=>{const o=this.rootWebComponent[t];this.rootWebComponent[t]=Array.isArray(o)?[...o]:{...o}})}_focusCurrentItem(){const e=this._getCurrentItem();e&&e.focus()}_canNavigate(){const e=this._getCurrentItem(),t=Ue();return e&&e===t}_getCurrentItem(){const e=this._getItems();if(!e.length)return;for(;this._currentIndex>=e.length;)this._currentIndex-=this._rowSize;this._currentIndex<0&&(this._currentIndex=0);const t=e[this._currentIndex];if(!t)return;if(xt(t))return t.getFocusDomRef();const o=this.rootWebComponent.getDomRef();if(o&&t.id)return o.querySelector(`[id="${t.id}"]`)}}function Ai(i,e,t,o,s={}){const n=M.getDraggedElement(),r={targetReference:null,placement:null};if(!n&&!s?.crossDnD)return r;const a=t.placements;return r.targetReference=i.target,a.some(u=>{const g=s.originalEvent?{originalEvent:i}:{};return e.fireDecoratorEvent("move-over",{...g,source:{element:n},destination:{element:o,placement:u}})?!1:(i.preventDefault(),r.targetReference=t.element,r.placement=u,!0)})||(r.targetReference=null),r}function zi(i,e,t,o,s={}){i.preventDefault();const n=M.getDraggedElement();if(!n&&s?.crossDnD)return;const r=s.originalEvent?{originalEvent:i}:{};e.fireDecoratorEvent("move",{...r,source:{element:n},destination:{element:t,placement:o}}),n?.focus()}const We=i=>{let e=i;return i.shadowRoot&&i.shadowRoot.activeElement&&(e=i.shadowRoot.activeElement),e};let oe=null;const Hi=(i,e)=>{oe&&clearTimeout(oe),oe=setTimeout(()=>{oe=null,i()},e)},Pi=i=>{const e=i.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)};var I;(function(i){i.None="None",i.Single="Single",i.SingleStart="SingleStart",i.SingleEnd="SingleEnd",i.SingleAuto="SingleAuto",i.Multiple="Multiple",i.Delete="Delete"})(I||(I={}));var Y;(function(i){i.Button="Button",i.Scroll="Scroll",i.None="None"})(Y||(Y={}));var J;(function(i){i.List="List",i.Menu="Menu",i.Tree="Tree",i.ListBox="ListBox"})(J||(J={}));var ce;(function(i){i.All="All",i.Inner="Inner",i.None="None"})(ce||(ce={}));function Fi(){return l("div",{class:"ui5-list-root",onFocusIn:this._onfocusin,onKeyDown:this._onkeydown,onDragEnter:this._ondragenter,onDragOver:this._ondragover,onDrop:this._ondrop,onDragLeave:this._ondragleave,"onui5-_close":this.onItemClose,"onui5-toggle":this.onItemToggle,"onui5-request-tabindex-change":this.onItemTabIndexChange,"onui5-_focused":this.onItemFocused,"onui5-forward-after":this.onForwardAfter,"onui5-forward-before":this.onForwardBefore,"onui5-selection-requested":this.onSelectionRequested,"onui5-focus-requested":this.onFocusRequested,"onui5-_press":this.onItemPress,children:p(Ke,{id:`${this._id}-busyIndicator`,delay:this.loadingDelay,active:this.showBusyIndicatorOverlay,class:"ui5-list-busy-indicator",children:[p("div",{class:"ui5-list-scroll-container",children:[this.header.length>0&&l("slot",{name:"header"}),this.shouldRenderH1&&l("header",{id:this.headerID,class:"ui5-list-header",children:this.headerText}),this.hasData&&l("div",{id:`${this._id}-before`,tabindex:0,role:"none",class:"ui5-list-focusarea"}),l("span",{id:`${this._id}-modeLabel`,class:"ui5-hidden-text",children:this.ariaLabelModeText}),p("ul",{id:`${this._id}-listUl`,class:"ui5-list-ul",role:this.listAccessibleRole,"aria-label":this.ariaLabelTxt,"aria-labelledby":this.ariaLabelledBy,"aria-description":this.ariaDescriptionText,children:[l("slot",{}),this.showNoDataText&&l("li",{tabindex:0,id:`${this._id}-nodata`,class:"ui5-list-nodata",role:"listitem",children:l("div",{id:`${this._id}-nodata-text`,class:"ui5-list-nodata-text",children:this.noDataText})})]}),this.growsWithButton&&$i.call(this),this.footerText&&l("footer",{id:`${this._id}-footer`,class:"ui5-list-footer",children:this.footerText}),this.hasData&&l("div",{id:`${this._id}-after`,tabindex:0,role:"none",class:"ui5-list-focusarea"}),l("span",{tabindex:-1,"aria-hidden":"true",class:"ui5-list-end-marker"})]}),l(Ce,{orientation:"Horizontal",ownerReference:this})]})})}function $i(){return l("div",{class:"ui5-growing-button",part:"growing-button",children:p("div",{id:`${this._id}-growing-btn`,role:"button",tabindex:0,part:"growing-button-inner",class:{"ui5-growing-button-inner":!0,"ui5-growing-button-inner-active":this._loadMoreActive},"aria-label":this.growingButtonAriaLabel,"aria-labelledby":this.growingButtonAriaLabelledBy,onClick:this._onLoadMoreClick,onKeyDown:this._onLoadMoreKeydown,onKeyUp:this._onLoadMoreKeyup,onMouseDown:this._onLoadMoreMousedown,onMouseUp:this._onLoadMoreMouseup,children:[this.loading&&l(Ke,{delay:this.loadingDelay,part:"growing-button-busy-indicator",class:"ui5-list-growing-button-busy-indicator",active:!0}),l("span",{id:`${this._id}-growingButton-text`,class:"ui5-growing-button-text","growing-button-text":!0,children:this._growingButtonText})]})})}_("@ui5/webcomponents-theming","sap_horizon",async()=>D);_("@ui5/webcomponents","sap_horizon",async()=>S);const ki=`.ui5-hidden-text{position:absolute;clip:rect(1px,1px,1px,1px);user-select:none;left:-1000px;top:-1000px;pointer-events:none;font-size:0}.ui5-growing-button{display:flex;align-items:center;padding:var(--_ui5-v2-13-2_load_more_padding);border-top:1px solid var(--sapList_BorderColor);border-bottom:var(--_ui5-v2-13-2_load_more_border-bottom);box-sizing:border-box;cursor:pointer;outline:none}.ui5-growing-button-inner{display:flex;align-items:center;justify-content:center;flex-direction:row;min-height:var(--_ui5-v2-13-2_load_more_text_height);width:100%;color:var(--sapButton_TextColor);background-color:var(--sapList_Background);border:var(--_ui5-v2-13-2_load_more_border);border-radius:var(--_ui5-v2-13-2_load_more_border_radius);box-sizing:border-box}.ui5-growing-button-inner:focus-visible{outline:var(--_ui5-v2-13-2_load_more_outline_width) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);outline-offset:-.125rem;border-color:transparent}.ui5-growing-button-inner:hover{background-color:var(--sapList_Hover_Background)}.ui5-growing-button-inner:active,.ui5-growing-button-inner.ui5-growing-button-inner--active{background-color:var(--sapList_Active_Background);border-color:var(--sapList_Active_Background)}.ui5-growing-button-inner:active>*,.ui5-growing-button-inner.ui5-growing-button-inner--active>*{color:var(--sapList_Active_TextColor)}.ui5-growing-button-text{text-align:center;font-family:"72override",var(--sapFontFamily);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}.ui5-growing-button-text{height:var(--_ui5-v2-13-2_load_more_text_height);padding:.875rem 1rem 1rem;font-size:var(--_ui5-v2-13-2_load_more_text_font_size);font-weight:700}:host([loading]) .ui5-list-growing-button-busy-indicator:not([_is-busy]){display:none}:host([loading]) .ui5-list-growing-button-busy-indicator[_is-busy]+.ui5-growing-button-text{padding-left:.5rem}:host(:not([hidden])){display:block;max-width:100%;width:100%;-webkit-tap-highlight-color:transparent}:host([indent]) .ui5-list-root{padding:2rem}:host([separators="None"]) .ui5-list-nodata{border-bottom:0}.ui5-list-root,.ui5-list-busy-indicator{width:100%;height:100%;position:relative;box-sizing:border-box}.ui5-list-scroll-container{overflow:auto;height:100%;width:100%}.ui5-list-ul{list-style-type:none;padding:0;margin:0}.ui5-list-ul:focus{outline:none}.ui5-list-focusarea{position:fixed}.ui5-list-header{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;font-size:var(--sapFontHeader4Size);font-family:"72override",var(--sapFontFamily);color:var(--sapGroup_TitleTextColor);height:3rem;line-height:3rem;padding:0 1rem;background-color:var(--sapGroup_TitleBackground);border-bottom:1px solid var(--sapGroup_TitleBorderColor)}.ui5-list-footer{height:2rem;box-sizing:border-box;-webkit-text-size-adjust:none;font-size:var(--sapFontSize);font-family:"72override",var(--sapFontFamily);line-height:2rem;background-color:var(--sapList_FooterBackground);color:var(--ui5-v2-13-2_list_footer_text_color);padding:0 1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ui5-list-nodata{list-style-type:none;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;color:var(--sapTextColor);background-color:var(--sapList_Background);border-bottom:1px solid var(--sapList_BorderColor);padding:0 1rem!important;outline:none;min-height:var(--_ui5-v2-13-2_list_no_data_height);font-size:var(--_ui5-v2-13-2_list_no_data_font_size);font-family:"72override",var(--sapFontFamily);position:relative}.ui5-list-nodata:focus:after{content:"";border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);position:absolute;inset:.125rem;pointer-events:none}.ui5-list-nodata-text{overflow:hidden;text-overflow:ellipsis;white-space:normal;margin:var(--_ui5-v2-13-2_list_item_content_vertical_offset) 0}:host([growing="Scroll"]) .ui5-list-end-marker{display:inline-block}
9
+ `,Ni=i=>{for(;i;){const{overflowY:e}=window.getComputedStyle(i);if(e==="auto"||e==="scroll")return i;i.parentNode instanceof ShadowRoot?i=i.parentNode.host:i=i.parentElement}return document.scrollingElement||document.documentElement};var c=function(i,e,t,o){var s=arguments.length,n=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var a=i.length-1;a>=0;a--)(r=i[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n},B;const Gi=250,ji=10;let h=B=class extends pe{constructor(){super(),this.indent=!1,this.selectionMode="None",this.separators="All",this.growing="None",this.loading=!1,this.loadingDelay=1e3,this.accessibilityAttributes={},this.accessibleRole="List",this._inViewport=!1,this._loadMoreActive=!1,this.mediaRange="S",this._previouslyFocusedItem=null,this._forwardingFocus=!1,this.listEndObserved=!1,this._itemNavigation=new Oi(this,{skipItemsSize:ji,navigationMode:k.Vertical,getItemsCallback:()=>this.getEnabledItems()}),this._handleResizeCallback=this._handleResize.bind(this),this.initialIntersection=!0,this._groupCount=0,this._groupItemCount=0,this.onItemFocusedBound=this.onItemFocused.bind(this),this.onForwardAfterBound=this.onForwardAfter.bind(this),this.onForwardBeforeBound=this.onForwardBefore.bind(this),this.onItemTabIndexChangeBound=this.onItemTabIndexChange.bind(this)}get listItems(){return this.getItems()}_updateAssociatedLabelsTexts(){this._associatedDescriptionRefTexts=yt(this),this._associatedLabelsRefTexts=Dt(this)}onEnterDOM(){St(this,this._updateAssociatedLabelsTexts.bind(this)),M.subscribe(this),Me.register(this.getDomRef(),this._handleResizeCallback)}onExitDOM(){Tt(this),this.unobserveListEnd(),Me.deregister(this.getDomRef(),this._handleResizeCallback),M.unsubscribe(this)}onBeforeRendering(){this.detachGroupHeaderEvents(),this.prepareListItems()}onAfterRendering(){this.attachGroupHeaderEvents(),this.growsOnScroll?this.observeListEnd():this.listEndObserved&&this.unobserveListEnd(),this.grows&&this.checkListInViewport()}attachGroupHeaderEvents(){this.getItems().forEach(e=>{e.hasAttribute("ui5-li-group-header")&&(e.addEventListener("ui5-_focused",this.onItemFocusedBound),e.addEventListener("ui5-forward-after",this.onForwardAfterBound),e.addEventListener("ui5-forward-before",this.onForwardBeforeBound))})}detachGroupHeaderEvents(){this.getItems().forEach(e=>{e.hasAttribute("ui5-li-group-header")&&(e.removeEventListener("ui5-_focused",this.onItemFocusedBound),e.removeEventListener("ui5-forward-after",this.onForwardAfterBound),e.removeEventListener("ui5-forward-before",this.onForwardBeforeBound))})}getFocusDomRef(){return this._itemNavigation._getCurrentItem()}get shouldRenderH1(){return!this.header.length&&this.headerText}get headerID(){return`${this._id}-header`}get modeLabelID(){return`${this._id}-modeLabel`}get listEndDOM(){return this.shadowRoot.querySelector(".ui5-list-end-marker")}get dropIndicatorDOM(){return this.shadowRoot.querySelector("[ui5-drop-indicator]")}get hasData(){return this.getItems().length!==0}get showBusyIndicatorOverlay(){return!this.growsWithButton&&this.loading}get showNoDataText(){return!this.hasData&&this.noDataText}get isDelete(){return this.selectionMode===I.Delete}get isSingleSelect(){return[I.Single,I.SingleStart,I.SingleEnd,I.SingleAuto].includes(this.selectionMode)}get isMultiple(){return this.selectionMode===I.Multiple}get ariaLabelledBy(){if(this.accessibleNameRef||this.accessibleName)return;const e=[];return(this.isMultiple||this.isSingleSelect||this.isDelete)&&e.push(this.modeLabelID),this.shouldRenderH1&&e.push(this.headerID),e.length?e.join(" "):void 0}get ariaLabelTxt(){return this._associatedLabelsRefTexts||Rt(this)}get ariaDescriptionText(){return this._associatedDescriptionRefTexts||Et(this)||this._getDescriptionForGroups()}get growingButtonAriaLabel(){return this.accessibilityAttributes.growingButton?.name}get growingButtonAriaLabelledBy(){return this.accessibilityAttributes.growingButton?.name?void 0:`${this._id}-growingButton-text`}get scrollContainer(){return this.shadowRoot.querySelector(".ui5-list-scroll-container")}hasGrowingComponent(){return this.growsOnScroll&&this.scrollContainer?this.scrollContainer.clientHeight!==this.scrollContainer.scrollHeight:this.growsWithButton}_getDescriptionForGroups(){let e="";return this._groupCount>0&&(this.accessibleRole===J.List?e=B.i18nBundle.getText(Ct,this._groupCount,this._groupItemCount):this.accessibleRole===J.ListBox&&(e=B.i18nBundle.getText(Bt,this._groupCount))),e}get ariaLabelModeText(){if(this.hasData){if(this.isMultiple)return B.i18nBundle.getText(Lt);if(this.isSingleSelect)return B.i18nBundle.getText(Mt);if(this.isDelete)return B.i18nBundle.getText(Ot)}return""}get grows(){return this.growing!==Y.None}get growsOnScroll(){return this.growing===Y.Scroll}get growsWithButton(){return this.growing===Y.Button}get _growingButtonText(){return this.growingButtonText||B.i18nBundle.getText(At)}get listAccessibleRole(){return se(this.accessibleRole)}get classes(){return{root:{"ui5-list-root":!0}}}prepareListItems(){const e=this.getItemsForProcessing();e.forEach((t,o)=>{const s=o===e.length-1,n=this.separators===ce.All||this.separators===ce.Inner&&!s;t.hasConfigurableMode&&(t._selectionMode=this.selectionMode),t.hasBorder=n,t.mediaRange=this.mediaRange})}async observeListEnd(){this.listEndObserved||(await zt(),this.getIntersectionObserver().observe(this.listEndDOM),this.listEndObserved=!0)}unobserveListEnd(){this.growingIntersectionObserver&&(this.growingIntersectionObserver.disconnect(),this.growingIntersectionObserver=null,this.listEndObserved=!1)}onInteresection(e){if(this.initialIntersection){this.initialIntersection=!1;return}e.forEach(t=>{t.isIntersecting&&Hi(this.loadMore.bind(this),Gi)})}onSelectionRequested(e){const t=this.getSelectedItems();let o=!1;this.selectionMode!==I.None&&this[`handle${this.selectionMode}`]&&(o=this[`handle${this.selectionMode}`](e.detail.item,!!e.detail.selected)),o&&!this.fireDecoratorEvent("selection-change",{selectedItems:this.getSelectedItems(),previouslySelectedItems:t,selectionComponentPressed:e.detail.selectionComponentPressed,targetItem:e.detail.item,key:e.detail.key})&&this._revertSelection(t)}handleSingle(e){return e.selected?!1:(this.deselectSelectedItems(),e.selected=!0,!0)}handleSingleStart(e){return this.handleSingle(e)}handleSingleEnd(e){return this.handleSingle(e)}handleSingleAuto(e){return this.handleSingle(e)}handleMultiple(e,t){return e.selected=t,!0}handleDelete(e){return this.fireDecoratorEvent("item-delete",{item:e}),!0}deselectSelectedItems(){this.getSelectedItems().forEach(e=>{e.selected=!1})}getSelectedItems(){return this.getItems().filter(e=>e.selected)}getEnabledItems(){return this.getItems().filter(e=>e._focusable)}getItems(){const e=[],t=this.getSlottedNodes("items");let o=0,s=0;return t.forEach(n=>{if(Ci(n)){const r=[n.groupHeaderItem,...n.items.filter(a=>a.assignedSlot)].filter(Boolean);e.push(...r),o++,s+=r.length-1}else n.assignedSlot&&e.push(n)}),this._groupCount=o,this._groupItemCount=s,e}getItemsForProcessing(){return this.getItems()}_revertSelection(e){this.getItems().forEach(t=>{const o=e.indexOf(t)!==-1,s=t.shadowRoot.querySelector(".ui5-li-multisel-cb"),n=t.shadowRoot.querySelector(".ui5-li-singlesel-radiobtn");t.selected=o,s?s.checked=o:n&&(n.checked=o)})}_onkeydown(e){if(Ye(e)){this._handleEnd(),e.preventDefault();return}if(Xe(e)){this._handleHome();return}if(le(e)){this._handleDown(),e.preventDefault();return}if(Ht(e)){this._moveItem(e.target,e);return}be(e)&&this._handleTabNext(e)}_moveItem(e,t){if(!e||!e.movable)return;const o=mi(this.items,e,t);if(!o.length)return;t.preventDefault();const s=o.find(({element:n,placement:r})=>!this.fireDecoratorEvent("move-over",{originalEvent:t,source:{element:e},destination:{element:n,placement:r}}));s&&(this.fireDecoratorEvent("move",{originalEvent:t,source:{element:e},destination:{element:s.element,placement:s.placement}}),e.focus())}_onLoadMoreKeydown(e){if(ve(e)&&(e.preventDefault(),this._loadMoreActive=!0),Ie(e)&&(this._onLoadMoreClick(),this._loadMoreActive=!0),be(e)&&this.focusAfterElement(),ae(e)){this._handleLodeMoreUp(e);return}qe(e)&&(this.getPreviouslyFocusedItem()?this.focusPreviouslyFocusedItem():this.focusFirstItem(),e.preventDefault())}_onLoadMoreKeyup(e){ve(e)&&this._onLoadMoreClick(),this._loadMoreActive=!1}_onLoadMoreMousedown(){this._loadMoreActive=!0}_onLoadMoreMouseup(){this._loadMoreActive=!1}_onLoadMoreClick(){this.loadMore()}_handleLodeMoreUp(e){if(this.getGrowingButton()===e.target){const o=this.getItems(),s=o[o.length-1];this.focusItem(s),e.preventDefault(),e.stopImmediatePropagation()}}checkListInViewport(){this._inViewport=Pi(this.getDomRef())}loadMore(){this.hasGrowingComponent()&&this.fireDecoratorEvent("load-more")}_handleResize(){this.checkListInViewport();const e=this.getBoundingClientRect().width;this.mediaRange=Oe.getCurrentRange(Oe.RANGESETS.RANGE_4STEPS,e)}_handleTabNext(e){We(e.target)}_handleHome(){this.growsWithButton&&this.focusFirstItem()}_handleEnd(){this.growsWithButton&&this._shouldFocusGrowingButton()}_handleDown(){this.growsWithButton&&this._shouldFocusGrowingButton()}_onfocusin(e){const t=We(e.target);if(this.isForwardElement(t)){if(!this.getPreviouslyFocusedItem()){this.growsWithButton&&this.isForwardAfterElement(t)?this.focusGrowingButton():this.focusFirstItem(),e.stopImmediatePropagation();return}if(!this.getForwardingFocus()){if(this.growsWithButton&&this.isForwardAfterElement(t)){this.focusGrowingButton(),e.stopImmediatePropagation();return}this.focusPreviouslyFocusedItem()}e.stopImmediatePropagation(),this.setForwardingFocus(!1)}}_ondragenter(e){e.preventDefault()}_ondragleave(e){e.relatedTarget instanceof Node&&this.shadowRoot.contains(e.relatedTarget)||(this.dropIndicatorDOM.targetReference=null)}_ondragover(e){if(!(e.target instanceof HTMLElement))return;const t=at(this.items,e.clientY,O.Vertical);if(!t){this.dropIndicatorDOM.targetReference=null;return}const{targetReference:o,placement:s}=Ai(e,this,t,t.element,{originalEvent:!0});this.dropIndicatorDOM.targetReference=o,this.dropIndicatorDOM.placement=s}_ondrop(e){if(!this.dropIndicatorDOM?.targetReference||!this.dropIndicatorDOM?.placement){e.preventDefault();return}zi(e,this,this.dropIndicatorDOM.targetReference,this.dropIndicatorDOM.placement,{originalEvent:!0}),this.dropIndicatorDOM.targetReference=null}isForwardElement(e){const t=e.id,o=this.getBeforeElement();return this._id===t||o&&o.id===t?!0:this.isForwardAfterElement(e)}isForwardAfterElement(e){const t=e.id,o=this.getAfterElement();return o&&o.id===t}onItemTabIndexChange(e){e.stopPropagation();const t=e.target;this._itemNavigation.setCurrentItem(t)}onItemFocused(e){const t=e.target;if(e.stopPropagation(),this._itemNavigation.setCurrentItem(t),this.fireDecoratorEvent("item-focused",{item:t}),this.selectionMode===I.SingleAuto){const o={item:t,selectionComponentPressed:!1,selected:!0,key:e.detail.key};this.onSelectionRequested({detail:o})}}onItemPress(e){const t=e.detail.item;if(this.fireDecoratorEvent("item-click",{item:t})&&this.selectionMode!==I.Delete){const o={item:t,selectionComponentPressed:!1,selected:!t.selected,key:e.detail.key};this.onSelectionRequested({detail:o})}}onItemClose(e){const t=e.target;(t?.hasAttribute("ui5-li-notification")||t?.hasAttribute("ui5-li-notification-group"))&&this.fireDecoratorEvent("item-close",{item:e.detail?.item})}onItemToggle(e){e.target?.isListItemBase&&this.fireDecoratorEvent("item-toggle",{item:e.detail.item})}onForwardBefore(e){this.setPreviouslyFocusedItem(e.target),this.focusBeforeElement(),e.stopPropagation()}onForwardAfter(e){this.setPreviouslyFocusedItem(e.target),this.growsWithButton?(this.focusGrowingButton(),e.preventDefault()):this.focusAfterElement(),e.stopPropagation()}focusBeforeElement(){this.setForwardingFocus(!0),this.getBeforeElement().focus()}focusAfterElement(){this.setForwardingFocus(!0),this.getAfterElement().focus()}focusGrowingButton(){const e=this.getGrowingButton();e&&e.focus()}_shouldFocusGrowingButton(){const t=this.getItems().length-1,o=this._itemNavigation._currentIndex;o!==-1&&o===t&&this.focusGrowingButton()}getGrowingButton(){return this.shadowRoot.querySelector(`[id="${this._id}-growing-btn"]`)}focusFirstItem(){const e=this.getFirstItem(t=>t._focusable);e&&e.focus()}focusPreviouslyFocusedItem(){const e=this.getPreviouslyFocusedItem();e&&e.focus()}focusFirstSelectedItem(){const e=this.getFirstItem(t=>t.selected&&t._focusable);e&&e.focus()}focusItem(e){this._itemNavigation.setCurrentItem(e),e.focus()}onFocusRequested(e){setTimeout(()=>{this.setPreviouslyFocusedItem(e.target),this.focusPreviouslyFocusedItem()},0)}setForwardingFocus(e){this._forwardingFocus=e}getForwardingFocus(){return this._forwardingFocus}setPreviouslyFocusedItem(e){this._previouslyFocusedItem=e}getPreviouslyFocusedItem(){return this._previouslyFocusedItem}getFirstItem(e){const t=this.getItems();let o=null;if(!e)return t.length?t[0]:null;for(let s=0;s<t.length;s++)if(e(t[s])){o=t[s];break}return o}getAfterElement(){return this._afterElement||(this._afterElement=this.shadowRoot.querySelector(`[id="${this._id}-after"]`)),this._afterElement}getBeforeElement(){return this._beforeElement||(this._beforeElement=this.shadowRoot.querySelector(`[id="${this._id}-before"]`)),this._beforeElement}getIntersectionObserver(){if(!this.growingIntersectionObserver){const e=this.scrollContainer||Ni(this.getDomRef());this.growingIntersectionObserver=new IntersectionObserver(this.onInteresection.bind(this),{root:e,rootMargin:"5px",threshold:1})}return this.growingIntersectionObserver}};c([d()],h.prototype,"headerText",void 0);c([d()],h.prototype,"footerText",void 0);c([d({type:Boolean})],h.prototype,"indent",void 0);c([d()],h.prototype,"selectionMode",void 0);c([d()],h.prototype,"noDataText",void 0);c([d()],h.prototype,"separators",void 0);c([d()],h.prototype,"growing",void 0);c([d()],h.prototype,"growingButtonText",void 0);c([d({type:Boolean})],h.prototype,"loading",void 0);c([d({type:Number})],h.prototype,"loadingDelay",void 0);c([d()],h.prototype,"accessibleName",void 0);c([d({type:Object})],h.prototype,"accessibilityAttributes",void 0);c([d()],h.prototype,"accessibleNameRef",void 0);c([d()],h.prototype,"accessibleDescription",void 0);c([d()],h.prototype,"accessibleDescriptionRef",void 0);c([d({noAttribute:!0})],h.prototype,"_associatedDescriptionRefTexts",void 0);c([d({noAttribute:!0})],h.prototype,"_associatedLabelsRefTexts",void 0);c([d()],h.prototype,"accessibleRole",void 0);c([d({type:Boolean})],h.prototype,"_inViewport",void 0);c([d({type:Boolean})],h.prototype,"_loadMoreActive",void 0);c([d()],h.prototype,"mediaRange",void 0);c([H({type:HTMLElement,default:!0,invalidateOnChildChange:!0})],h.prototype,"items",void 0);c([H()],h.prototype,"header",void 0);c([ge("@ui5/webcomponents")],h,"i18nBundle",void 0);h=B=c([T({tag:"ui5-list",fastNavigation:!0,renderer:ue,template:Fi,styles:[ki,Ze()]}),m("item-click",{bubbles:!0,cancelable:!0}),m("item-close",{bubbles:!0}),m("item-toggle",{bubbles:!0}),m("item-delete",{bubbles:!0}),m("selection-change",{bubbles:!0,cancelable:!0}),m("load-more",{bubbles:!0}),m("item-focused",{bubbles:!0}),m("move-over",{bubbles:!0,cancelable:!0}),m("move",{bubbles:!0})],h);h.define();const Wi="resize-corner",Vi="M384 160v32q0 12-10 22L182 406q-10 10-22 10h-32zM224 416l160-160v32q0 12-10 22l-96 96q-10 10-22 10h-32zm160-64v32q0 12-10 22t-22 10h-32z",qi=!1,Ui="SAP-icons-v4",Xi="@ui5/webcomponents-icons";Je(Wi,{pathData:Vi,ltr:qi,collection:Ui,packageName:Xi});const Yi="resize-corner",Ki="M282 416q-11 0-18.5-7.5T256 390t7-18l109-109q7-7 18-7t18.5 7.5T416 282t-7 18L300 409q-7 7-18 7zm-160 0q-11 0-18.5-7.5T96 390t7-18l269-269q7-7 18-7t18.5 7.5T416 122t-7 18L140 409q-7 7-18 7z",Zi=!1,Ji="SAP-icons-v5",Qi="@ui5/webcomponents-icons";Je(Yi,{pathData:Ki,ltr:Zi,collection:Ji,packageName:Qi});const eo="resize-corner";function to(){return Pt.call(this,{beforeContent:io,afterContent:oo})}function io(){return l(Q,{children:!!this._displayHeader&&l("header",{children:p("div",{class:"ui5-popup-header-root",id:"ui5-popup-header",role:"group","aria-describedby":this.effectiveAriaDescribedBy,"aria-roledescription":this.ariaRoleDescriptionHeaderText,tabIndex:this._headerTabIndex,onKeyDown:this._onDragOrResizeKeyDown,onMouseDown:this._onDragMouseDown,part:"header",children:[this.hasValueState&&l(de,{class:"ui5-dialog-value-state-icon",name:this._dialogStateIcon}),this.header.length?l("slot",{name:"header"}):l(Qe,{level:"H1",id:"ui5-popup-header-text",class:"ui5-popup-header-text",children:this.headerText}),this.resizable?this.draggable?l("span",{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextDraggableAndResizable}):l("span",{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextResizable}):this.draggable&&l("span",{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextDraggable})]})})})}function oo(){return p(Q,{children:[!!this.footer.length&&l("footer",{class:"ui5-popup-footer-root",part:"footer",children:l("slot",{name:"footer"})}),this._showResizeHandle&&l("div",{class:"ui5-popup-resize-handle",onMouseDown:this._onResizeMouseDown,children:l(de,{name:eo})})]})}_("@ui5/webcomponents-theming","sap_horizon",async()=>D);_("@ui5/webcomponents","sap_horizon",async()=>S);const so=`.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{min-width:20rem;min-height:6rem;max-height:94%;max-width:90%;flex-direction:column;box-shadow:var(--sapContent_Shadow3);border-radius:var(--sapElement_BorderCornerRadius)}:host([stretch]){width:90%;height:94%}:host([stretch][on-phone]){width:100%;height:100%;max-height:100%;max-width:100%;border-radius:0;min-width:0}:host([draggable]) .ui5-popup-header-root,:host([draggable]) ::slotted([slot="header"]){cursor:move}:host([draggable]) .ui5-popup-header-root *{cursor:auto}:host([draggable]) .ui5-popup-root{user-select:text}::slotted([slot="header"]){max-width:100%}.ui5-popup-root{display:flex;flex-direction:column;max-width:100vw}.ui5-popup-header-root{position:relative}.ui5-popup-header-root:before{content:"";position:absolute;inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;height:var(--_ui5-v2-13-2_dialog_header_state_line_height);background:var(--sapObjectHeader_BorderColor)}:host([state="Negative"]) .ui5-popup-header-root:before{background:var(--sapErrorBorderColor)}:host([state="Information"]) .ui5-popup-header-root:before{background:var(--sapInformationBorderColor)}:host([state="Positive"]) .ui5-popup-header-root:before{background:var(--sapSuccessBorderColor)}:host([state="Critical"]) .ui5-popup-header-root:before{background:var(--sapWarningBorderColor)}.ui5-dialog-value-state-icon{margin-inline-end:.5rem;flex-shrink:0}:host([state="Negative"]) .ui5-dialog-value-state-icon{color:var(--_ui5-v2-13-2_dialog_header_error_state_icon_color)}:host([state="Information"]) .ui5-dialog-value-state-icon{color:var(--_ui5-v2-13-2_dialog_header_information_state_icon_color)}:host([state="Positive"]) .ui5-dialog-value-state-icon{color:var(--_ui5-v2-13-2_dialog_header_success_state_icon_color)}:host([state="Critical"]) .ui5-dialog-value-state-icon{color:var(--_ui5-v2-13-2_dialog_header_warning_state_icon_color)}.ui5-popup-header-root{outline:none}:host([desktop]) .ui5-popup-header-root:focus:after,.ui5-popup-header-root:focus-visible:after{content:"";position:absolute;left:var(--_ui5-v2-13-2_dialog_header_focus_left_offset);bottom:var(--_ui5-v2-13-2_dialog_header_focus_bottom_offset);right:var(--_ui5-v2-13-2_dialog_header_focus_right_offset);top:var(--_ui5-v2-13-2_dialog_header_focus_top_offset);border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);border-radius:var(--_ui5-v2-13-2_dialog_header_border_radius) var(--_ui5-v2-13-2_dialog_header_border_radius) 0 0;pointer-events:none}:host([stretch]) .ui5-popup-content{width:100%;height:100%}.ui5-popup-content{min-height:var(--_ui5-v2-13-2_dialog_content_min_height);flex:1 1 auto}.ui5-popup-resize-handle{position:absolute;bottom:-.5rem;inset-inline-end:-.5rem;cursor:var(--_ui5-v2-13-2_dialog_resize_cursor);width:1.5rem;height:1.5rem;border-radius:50%}.ui5-popup-resize-handle [ui5-icon]{color:var(--sapButton_Lite_TextColor)}::slotted([slot="footer"]){height:var(--_ui5-v2-13-2_dialog_footer_height)}::slotted([slot="footer"][ui5-bar][design="Footer"]){border-top:none}::slotted([slot="header"][ui5-bar]){box-shadow:none}::slotted([slot="footer"][ui5-toolbar]){border:0}:host::backdrop{background-color:var(--_ui5-v2-13-2_popup_block_layer_background);opacity:var(--_ui5-v2-13-2_popup_block_layer_opacity)}.ui5-block-layer{display:block}
10
+ `;var R=function(i,e,t,o){var s=arguments.length,n=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var a=i.length-1;a>=0;a--)(r=i[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n},L;const C=16,no={[N.Negative]:"error",[N.Critical]:"alert",[N.Positive]:"sys-enter-2",[N.Information]:"information"};let v=L=class extends et{constructor(){super(),this.stretch=!1,this.draggable=!1,this.resizable=!1,this.state="None",this._draggedOrResized=!1,this._revertSize=()=>{Object.assign(this.style,{top:"",left:"",width:"",height:""})},this._screenResizeHandler=this._screenResize.bind(this),this._dragMouseMoveHandler=this._onDragMouseMove.bind(this),this._dragMouseUpHandler=this._onDragMouseUp.bind(this),this._resizeMouseMoveHandler=this._onResizeMouseMove.bind(this),this._resizeMouseUpHandler=this._onResizeMouseUp.bind(this),this._dragStartHandler=this._handleDragStart.bind(this)}static _isHeader(e){return e.classList.contains("ui5-popup-header-root")||e.getAttribute("slot")==="header"}get isModal(){return!0}get _ariaLabelledBy(){let e;return this.headerText&&!this._ariaLabel&&(e="ui5-popup-header-text"),e}get ariaRoleDescriptionHeaderText(){return this.resizable||this.draggable?L.i18nBundle.getText($t):void 0}get effectiveAriaDescribedBy(){return this.resizable||this.draggable?`${this._id}-descr`:void 0}get ariaDescribedByHeaderTextResizable(){return L.i18nBundle.getText(kt)}get ariaDescribedByHeaderTextDraggable(){return L.i18nBundle.getText(Nt)}get ariaDescribedByHeaderTextDraggableAndResizable(){return L.i18nBundle.getText(Gt)}get _displayHeader(){return this.header.length||this.headerText||this.draggable||this.resizable}get _movable(){return!this.stretch&&this.onDesktop&&(this.draggable||this.resizable)}get _headerTabIndex(){return this._movable?0:void 0}get _showResizeHandle(){return this.resizable&&this.onDesktop}get _minHeight(){let e=Number.parseInt(window.getComputedStyle(this.contentDOM).minHeight);const t=this._root.querySelector(".ui5-popup-header-root");t&&(e+=t.offsetHeight);const o=this._root.querySelector(".ui5-popup-footer-root");return o&&(e+=o.offsetHeight),e}get hasValueState(){return this.state!==N.None}get _dialogStateIcon(){return no[this.state]}get _role(){if(this.accessibleRole!==Ae.None)return this.state===N.Negative||this.state===N.Critical?se(Ae.AlertDialog):se(this.accessibleRole)}_show(){super._show(),this._center()}onBeforeRendering(){super.onBeforeRendering(),this._isRTL=this.effectiveDir==="rtl"}onEnterDOM(){super.onEnterDOM(),this._attachScreenResizeHandler(),this.addEventListener("dragstart",this._dragStartHandler)}onExitDOM(){super.onExitDOM(),this._detachScreenResizeHandler(),this.removeEventListener("dragstart",this._dragStartHandler)}_resize(){super._resize(),this._draggedOrResized||this._center()}_screenResize(){this._center()}_attachScreenResizeHandler(){this._screenResizeHandlerAttached||(window.addEventListener("resize",this._screenResizeHandler),this._screenResizeHandlerAttached=!0)}_detachScreenResizeHandler(){this._screenResizeHandlerAttached&&(window.removeEventListener("resize",this._screenResizeHandler),this._screenResizeHandlerAttached=!1)}_center(){const e=window.innerHeight-this.offsetHeight,t=window.innerWidth-this.offsetWidth;Object.assign(this.style,{top:`${Math.round(e/2)}px`,left:`${Math.round(t/2)}px`})}_onDragMouseDown(e){if(!this._movable||!this.draggable||!L._isHeader(e.target))return;const{top:t,left:o}=this.getBoundingClientRect(),{width:s,height:n}=window.getComputedStyle(this);Object.assign(this.style,{top:`${t}px`,left:`${o}px`,width:`${Math.round(Number.parseFloat(s)*100)/100}px`,height:`${Math.round(Number.parseFloat(n)*100)/100}px`}),this._x=e.clientX,this._y=e.clientY,this._draggedOrResized=!0,this._attachMouseDragHandlers()}_onDragMouseMove(e){e.preventDefault();const{clientX:t,clientY:o}=e,s=this._x-t,n=this._y-o,{left:r,top:a}=this.getBoundingClientRect();Object.assign(this.style,{left:`${Math.floor(r-s)}px`,top:`${Math.floor(a-n)}px`}),this._x=t,this._y=o}_onDragMouseUp(){delete this._x,delete this._y,this._detachMouseDragHandlers()}_onDragOrResizeKeyDown(e){if(!(!this._movable||!L._isHeader(e.target))){if(this.draggable&&[ae,le,ne,re].some(t=>t(e))){this._dragWithEvent(e);return}this.resizable&&[ze,He,Pe,Fe].some(t=>t(e))&&this._resizeWithEvent(e)}}_dragWithEvent(e){const{top:t,left:o,width:s,height:n}=this.getBoundingClientRect();let r=0,a="top";switch(!0){case ae(e):r=t-C,a="top";break;case le(e):r=t+C,a="top";break;case ne(e):r=o-C,a="left";break;case re(e):r=o+C,a="left";break}r=$(r,0,a==="left"?window.innerWidth-s:window.innerHeight-n),this.style[a]=`${r}px`}_resizeWithEvent(e){this._draggedOrResized=!0,this.addEventListener("ui5-before-close",this._revertSize,{once:!0});const{top:t,left:o}=this.getBoundingClientRect(),s=window.getComputedStyle(this),n=Number.parseFloat(s.minWidth),r=window.innerWidth-o,a=window.innerHeight-t;let u=Number.parseFloat(s.width),g=Number.parseFloat(s.height);switch(!0){case ze(e):g-=C;break;case He(e):g+=C;break;case Pe(e):u-=C;break;case Fe(e):u+=C;break}u=$(u,n,r),g=$(g,this._minHeight,a),Object.assign(this.style,{width:`${u}px`,height:`${g}px`})}_attachMouseDragHandlers(){window.addEventListener("mousemove",this._dragMouseMoveHandler),window.addEventListener("mouseup",this._dragMouseUpHandler)}_detachMouseDragHandlers(){window.removeEventListener("mousemove",this._dragMouseMoveHandler),window.removeEventListener("mouseup",this._dragMouseUpHandler)}_onResizeMouseDown(e){if(!this._movable||!this.resizable)return;e.preventDefault();const{top:t,left:o}=this.getBoundingClientRect(),{width:s,height:n,minWidth:r}=window.getComputedStyle(this);this._initialX=e.clientX,this._initialY=e.clientY,this._initialWidth=Number.parseFloat(s),this._initialHeight=Number.parseFloat(n),this._initialTop=t,this._initialLeft=o,this._minWidth=Number.parseFloat(r),this._cachedMinHeight=this._minHeight,Object.assign(this.style,{top:`${t}px`,left:`${o}px`}),this._draggedOrResized=!0,this._attachMouseResizeHandlers()}_onResizeMouseMove(e){const{clientX:t,clientY:o}=e;let s,n;this._isRTL?(s=$(this._initialWidth-(t-this._initialX),this._minWidth,this._initialLeft+this._initialWidth),n=$(this._initialLeft+(t-this._initialX),0,this._initialX+this._initialWidth-this._minWidth)):s=$(this._initialWidth+(t-this._initialX),this._minWidth,window.innerWidth-this._initialLeft);const r=$(this._initialHeight+(o-this._initialY),this._cachedMinHeight,window.innerHeight-this._initialTop);Object.assign(this.style,{height:`${r}px`,width:`${s}px`,left:n?`${n}px`:void 0})}_onResizeMouseUp(){delete this._initialX,delete this._initialY,delete this._initialWidth,delete this._initialHeight,delete this._initialTop,delete this._initialLeft,delete this._minWidth,delete this._cachedMinHeight,this._detachMouseResizeHandlers()}_handleDragStart(e){this.draggable&&e.preventDefault()}_attachMouseResizeHandlers(){window.addEventListener("mousemove",this._resizeMouseMoveHandler),window.addEventListener("mouseup",this._resizeMouseUpHandler),this.addEventListener("ui5-before-close",this._revertSize,{once:!0})}_detachMouseResizeHandlers(){window.removeEventListener("mousemove",this._resizeMouseMoveHandler),window.removeEventListener("mouseup",this._resizeMouseUpHandler)}};R([d()],v.prototype,"headerText",void 0);R([d({type:Boolean})],v.prototype,"stretch",void 0);R([d({type:Boolean})],v.prototype,"draggable",void 0);R([d({type:Boolean})],v.prototype,"resizable",void 0);R([d()],v.prototype,"state",void 0);R([H()],v.prototype,"header",void 0);R([H()],v.prototype,"footer",void 0);R([ge("@ui5/webcomponents")],v,"i18nBundle",void 0);v=L=R([T({tag:"ui5-dialog",template:to,styles:[et.styles,Ft,so,Ze()]})],v);v.define();const ro=v;function ao(){return this._isPhone?p(ro,{"root-element":!0,accessibleName:this.accessibleName,accessibleNameRef:this.accessibleNameRef,accessibleDescription:this.accessibleDescription,accessibleDescriptionRef:this.accessibleDescriptionRef,accessibleRole:this.accessibleRole,stretch:!0,preventInitialFocus:this.preventInitialFocus,preventFocusRestore:this.preventFocusRestore,initialFocus:this.initialFocus,onBeforeOpen:this._beforeDialogOpen,onOpen:this._afterDialogOpen,onBeforeClose:this._beforeDialogClose,onClose:this._afterDialogClose,exportparts:"content, header, footer",open:this.open,children:[!this._hideHeader&&l(Q,{children:this.header.length?l("slot",{slot:"header",name:"header"}):p("div",{class:this.classes.header,slot:"header",children:[this.headerText&&l(Qe,{level:"H1",wrappingType:"None",class:"ui5-popup-header-text ui5-responsive-popover-header-text",children:this.headerText}),!this._hideCloseButton&&l(we,{icon:tt,design:"Transparent",accessibleName:this._closeDialogAriaLabel,onClick:this._dialogCloseButtonClick})]})}),l("slot",{}),l("slot",{slot:"footer",name:"footer"})]}):jt.call(this)}_("@ui5/webcomponents-theming","sap_horizon",async()=>D);_("@ui5/webcomponents","sap_horizon",async()=>S);const lo=`:host{--_ui5-v2-13-2_input_width: 100%;min-width:6.25rem;min-height:2rem}:host([on-phone]){display:contents}.ui5-responsive-popover-header{height:var(--_ui5-v2-13-2-responsive_popover_header_height);display:flex;justify-content:var(--_ui5-v2-13-2_popup_header_prop_header_text_alignment);align-items:center;width:100%}.ui5-responsive-popover-header-text{width:calc(100% - var(--_ui5-v2-13-2_button_base_min_width))}.ui5-responsive-popover-header-no-title{justify-content:flex-end}
11
+ `;var ie=function(i,e,t,o){var s=arguments.length,n=s<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,e,t,o);else for(var a=i.length-1;a>=0;a--)(r=i[a])&&(n=(s<3?r(n):s>3?r(e,t,n):r(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n},Te;let z=Te=class extends it{constructor(){super(),this.contentOnlyOnDesktop=!1,this._hideHeader=!1,this._hideCloseButton=!1}async openPopup(){E()?this._dialog&&(this._dialog.open=!0):await super.openPopup()}async _show(){if(!E())return super._show()}_dialogCloseButtonClick(){this.closePopup()}closePopup(e=!1,t=!1,o=!1){E()?this._dialog?.closePopup(e,t,o):super.closePopup(e,t,o)}toggle(e){if(this.open){this.closePopup();return}this.opener=e,this.open=!0}get classes(){const e=super.classes;return e.header={"ui5-responsive-popover-header":!0,"ui5-responsive-popover-header-no-title":!this.headerText},e}get _dialog(){return this.shadowRoot.querySelector("[ui5-dialog]")}get contentDOM(){return E()?this._dialog.contentDOM:super.contentDOM}get _isPhone(){return E()}get _displayHeader(){return(E()||!this.contentOnlyOnDesktop)&&super._displayHeader}get _displayFooter(){return E()||!this.contentOnlyOnDesktop}get _closeDialogAriaLabel(){return Te.i18nBundle.getText(Wt)}_beforeDialogOpen(){this._opened=!0,this.open=!0,this.fireDecoratorEvent("before-open")}_afterDialogOpen(){this.fireDecoratorEvent("open")}_beforeDialogClose(e){this.fireDecoratorEvent("before-close",e.detail)}_afterDialogClose(){this._opened=!1,this.open=!1,this.fireDecoratorEvent("close")}get isModal(){return E()?this._dialog.isModal:super.isModal}};ie([d({type:Boolean})],z.prototype,"contentOnlyOnDesktop",void 0);ie([d({type:Boolean})],z.prototype,"_hideHeader",void 0);ie([d({type:Boolean})],z.prototype,"_hideCloseButton",void 0);ie([ge("@ui5/webcomponents")],z,"i18nBundle",void 0);z=Te=ie([T({tag:"ui5-responsive-popover",styles:[it.styles,lo],template:ao})],z);z.define();function ho(i){const e=i?.suggestionsList||co,t=i?.valueStateMessage,o=i?.valueStateMessageInputIcon;return p(z,{class:this.classes.popover,hideArrow:!0,preventFocusRestore:!0,preventInitialFocus:!0,placement:"Bottom",horizontalAlign:"Start",tabindex:-1,style:this.styles.suggestionsPopover,onOpen:this._afterOpenPicker,onClose:this._afterClosePicker,onScroll:this._scroll,open:this.open,opener:this,accessibleName:this._popupLabel,children:[this._isPhone&&p(Q,{children:[p("div",{slot:"header",class:"ui5-responsive-popover-header",children:[p("div",{class:"row",children:[l("span",{children:this._headerTitleText}),l(we,{class:"ui5-responsive-popover-close-btn",icon:tt,design:"Transparent",onClick:this._closePicker})]}),l("div",{class:"row",children:l("div",{class:"input-root-phone native-input-wrapper",children:l(ot,{class:"ui5-input-inner-phone",type:this.inputType,value:this.value,showClearIcon:this.showClearIcon,placeholder:this.placeholder,onInput:this._handleInput,onChange:this._handleChange})})})]}),this.hasValueStateMessage&&p("div",{class:this.classes.popoverValueState,style:this.styles.suggestionPopoverHeader,children:[l(de,{class:"ui5-input-value-state-message-icon",name:o?.call(this)}),this.open&&t?.call(this)]})]}),!this._isPhone&&this.hasValueStateMessage&&p("div",{slot:"header",class:{"ui5-responsive-popover-header":!0,...this.classes.popoverValueState},style:this.styles.suggestionPopoverHeader,children:[l(de,{class:"ui5-input-value-state-message-icon",name:o?.call(this)}),this.open&&t?.call(this)]}),e.call(this),this._isPhone&&l("div",{slot:"footer",class:"ui5-responsive-popover-footer",children:l(we,{design:"Transparent",onClick:this._closePicker,children:this._suggestionsOkButtonText})})]})}function co(){return l(h,{accessibleRole:J.ListBox,separators:this.suggestionSeparators,selectionMode:"Single",onMouseDown:this.onItemMouseDown,onItemClick:this._handleSuggestionItemPress,onSelectionChange:this._handleSelectionChange,children:l("slot",{})})}class G{get template(){return ho}constructor(e,t,o,s){this.component=e,this.slotName=t,this.handleFocus=s,this.highlight=o,this.selectedItemIndex=-1}onUp(e,t){e.preventDefault();const o=!this.isOpened&&this._hasValueState&&t===-1?0:t;return this._handleItemNavigation(!1,o),!0}onDown(e,t){e.preventDefault();const o=!this.isOpened&&this._hasValueState&&t===-1?0:t;return this._handleItemNavigation(!0,o),!0}onSpace(e){return this._isItemOnTarget()?(e.preventDefault(),this.onItemSelected(this._selectedItem,!0),!0):!1}onEnter(e){return this._isGroupItem?(e.preventDefault(),!1):this._isItemOnTarget()?(this.onItemSelected(this._selectedItem,!0),!0):!1}onPageUp(e){e.preventDefault();const t=this.selectedItemIndex-10>-1;return this._moveItemSelection(this.selectedItemIndex,t?this.selectedItemIndex-=10:this.selectedItemIndex=0),!0}onPageDown(e){e.preventDefault();const t=this._getItems();if(!t)return!0;const o=t.length-1,s=this.selectedItemIndex+10<=o;return this._moveItemSelection(this.selectedItemIndex,s?this.selectedItemIndex+=10:this.selectedItemIndex=o),!0}onHome(e){return e.preventDefault(),this._moveItemSelection(this.selectedItemIndex,this.selectedItemIndex=0),!0}onEnd(e){e.preventDefault();const t=this._getItems().length-1;return t&&this._moveItemSelection(this.selectedItemIndex,this.selectedItemIndex=t),!0}onTab(){return this._isItemOnTarget()?(this.onItemSelected(this._selectedItem,!0),!0):!1}toggle(e,t){(e!==void 0?e:!this.isOpened())?this._getComponent().open=!0:this.close(t.preventFocusRestore)}get _selectedItem(){return this._getNonGroupItems().find(e=>e.selected)}_isScrollable(){const e=this._getScrollContainer();return e.offsetHeight<e.scrollHeight}close(e=!1){const t=this._getItems()&&this._getItems()[this.selectedItemIndex];this._getComponent().open=!1;const o=this._getPicker();o.preventFocusRestore=e,o.open=!1,t&&t.focused&&(t.focused=!1)}updateSelectedItemPosition(e){this.selectedItemIndex=e}onItemSelected(e,t){const o=e,s=this._getNonGroupItems();o&&(this.accInfo={isGroup:o.hasAttribute("ui5-suggestion-item-group"),currentPos:s.indexOf(o)+1,listSize:s.length,itemText:o.text||"",additionalText:o.additionalText},this._getComponent().onItemSelected(o,t),this._getComponent().open=!1)}onItemSelect(e){this._getComponent().onItemSelect(e)}onItemPress(e){let t;const o=e.type==="ui5-item-click";o&&!e.detail.item.selected||this._handledPress&&!o||(o&&e.detail.item.selected?(t=e.detail.item,this._handledPress=!0):t=e.detail.selectedItems[0],this.onItemSelected(t,!1))}_onClose(){this._handledPress=!1}_isItemOnTarget(){return this.isOpened()&&this.selectedItemIndex!==null&&this.selectedItemIndex!==-1&&!this._isGroupItem}get _isGroupItem(){const e=this._getItems();return!e||!e[this.selectedItemIndex]?!1:e[this.selectedItemIndex].hasAttribute("ui5-suggestion-item-group")}isOpened(){return!!this._getPicker()?.open}_handleItemNavigation(e,t){this.selectedItemIndex=t,this._getItems().length&&(e?this._selectNextItem():this._selectPreviousItem())}_selectNextItem(){const e=this._getItems().length,t=this.selectedItemIndex;t!==-1&&t+1>e-1||this._moveItemSelection(t,++this.selectedItemIndex)}_selectPreviousItem(){const e=this._getItems(),t=this.selectedItemIndex;if(!(t===-1||t===null)){if(t-1<0){(e[t].hasAttribute("ui5-suggestion-item")||e[t].hasAttribute("ui5-suggestion-item-custom"))&&(e[t].selected=!1),e[t].focused=!1,this.component.focused=!0,this.component.hasSuggestionItemSelected=!1,this.selectedItemIndex-=1;return}this._moveItemSelection(t,--this.selectedItemIndex)}}_moveItemSelection(e,t){const o=this._getItems(),s=o[t],n=o[e],r=this._getNonGroupItems(),a=s.hasAttribute("ui5-suggestion-item-group");if(!s)return;this.component.focused=!1;const u=this._getItems()[this.selectedItemIndex];if(this.accInfo={isGroup:a,currentPos:o.indexOf(s)+1,itemText:(a?u.headerText:u.text)||""},(s.hasAttribute("ui5-suggestion-item")||s.hasAttribute("ui5-suggestion-item-custom"))&&(this.accInfo.additionalText=s.additionalText||"",this.accInfo.currentPos=r.indexOf(s)+1,this.accInfo.listSize=r.length),n&&(n.focused=!1),(n?.hasAttribute("ui5-suggestion-item")||n?.hasAttribute("ui5-suggestion-item-custom"))&&(n.selected=!1),s&&(s.focused=!0,a||(s.selected=!0),this.handleFocus&&s.focus()),this.component.hasSuggestionItemSelected=!0,this.onItemSelect(s),!this._isItemIntoView(s)){const g=this._isGroupItem?s.shadowRoot.querySelector("[ui5-li-group-header]"):s;this._scrollItemIntoView(g)}}_deselectItems(){this._getItems().forEach(t=>{t.hasAttribute("ui5-suggestion-item")&&(t.selected=!1),t.focused=!1})}_clearItemFocus(){const e=this._getItems().find(t=>t.focused);e&&(e.focused=!1)}_isItemIntoView(e){const t=e.getDomRef().getBoundingClientRect(),o=this._getComponent().getDomRef().getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight;let n=0;return this._hasValueState&&(n=this._getPicker().querySelector("[slot=header]").getBoundingClientRect().height),t.top+G.SCROLL_STEP<=s&&t.top>=o.top+n}_scrollItemIntoView(e){e.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}_getScrollContainer(){return this._scrollContainer||(this._scrollContainer=this._getPicker().shadowRoot.querySelector(".ui5-popup-content")),this._scrollContainer}_getItems(){return this._getComponent().getSlottedNodes("suggestionItems").flatMap(t=>t.hasAttribute("ui5-suggestion-item-group")?[t,...t.items]:[t])}_getNonGroupItems(){return this._getItems().filter(e=>!e.hasAttribute("ui5-suggestion-item-group"))}_getComponent(){return this.component}_getList(){return this._getPicker().querySelector("[ui5-list]")}_getListWidth(){return this._getList()?.offsetWidth}_getPicker(){return this._getComponent().shadowRoot.querySelector("[ui5-responsive-popover]")}get itemSelectionAnnounce(){if(!this.accInfo)return"";if(this.accInfo.isGroup)return`${G.i18nBundle.getText(Vt)} ${this.accInfo.itemText}`;const e=G.i18nBundle.getText(qt,this.accInfo.currentPos||0,this.accInfo.listSize||0);return`${this.accInfo.additionalText} ${e}`}hightlightInput(e,t){return Xt(e,t)}get _hasValueState(){return this.component.hasValueStateMessage}_clearSelectedSuggestionAndaccInfo(){this.accInfo=void 0,this.selectedItemIndex=0}}G.SCROLL_STEP=60;ot.SuggestionsClass=G;const xo=Object.freeze(Object.defineProperty({__proto__:null,default:G},Symbol.toStringTag,{value:"Module"}));export{xo as I,z as R};
@@ -0,0 +1,4 @@
1
+ import{j as c,k as v,F as g,p as f,d as E,a as A,s as n,o as B,q as I,m as P,y as L,b as C,ao as D,ap as N,aq as z,ar as M,a0 as O,l as F,c as j,as as $,at as X,au as H,H as K,av as q,aw as W,r as Y,h as U,g as R,ag as V,ax as Z,ay as G,az as J,aA as Q,aB as ee,aj as te}from"./mateu-vaadin.js";import{R as ie}from"./InputSuggestions.js";var T;(function(i){i.InPlace="InPlace",i.Popover="Popover"})(T||(T={}));const oe=T;var k;(function(i){i.Off="Off",i.On="On"})(k||(k={}));const ne=k;function re(){return c(g,{children:c("span",{children:this._renderEmptyIndicator?v(g,{children:[c("span",{className:"empty-indicator","aria-hidden":"true",children:this._emptyIndicatorSymbol}),c("span",{className:"empty-indicator-aria-label",children:this._emptyIndicatorAriaLabel})]}):c("slot",{})})})}f("@ui5/webcomponents-theming","sap_horizon",async()=>E);f("@ui5/webcomponents","sap_horizon",async()=>A);const se=`:host{max-width:100%;font-size:var(--sapFontSize);font-family:var(--sapFontFamily);color:var(--sapTextColor);line-height:normal;cursor:text;overflow:hidden}:host([max-lines="1"]){display:inline-block;text-overflow:ellipsis;white-space:nowrap}:host(:not([max-lines="1"])){display:-webkit-box;-webkit-line-clamp:var(--_ui5-v2-13-2_text_max_lines);line-clamp:var(--_ui5-v2-13-2_text_max_lines);-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.empty-indicator-aria-label{position:absolute!important;clip:rect(1px,1px,1px,1px);user-select:none;left:0;top:0;font-size:0}
2
+ `;var m=function(i,e,o,s){var a=arguments.length,t=a<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,o):s,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,e,o,s);else for(var p=i.length-1;p>=0;p--)(d=i[p])&&(t=(a<3?d(t):a>3?d(e,o,t):d(e,o))||t);return a>3&&t&&Object.defineProperty(e,o,t),t},b;let u=b=class extends C{constructor(){super(...arguments),this.maxLines=1/0,this.emptyIndicatorMode="Off"}onBeforeRendering(){this.style.setProperty(D("--_ui5_text_max_lines"),`${this.maxLines}`)}get hasText(){return N(this.text)}get _renderEmptyIndicator(){return!this.hasText&&this.emptyIndicatorMode===ne.On}get _emptyIndicatorAriaLabel(){return b.i18nBundle.getText(z)}get _emptyIndicatorSymbol(){return b.i18nBundle.getText(M)}};m([n({type:Number})],u.prototype,"maxLines",void 0);m([n()],u.prototype,"emptyIndicatorMode",void 0);m([B({type:Node,default:!0})],u.prototype,"text",void 0);m([I("@ui5/webcomponents")],u,"i18nBundle",void 0);u=b=m([P({tag:"ui5-text",renderer:L,template:re,styles:se})],u);u.define();const S=u;var w;(function(i){i.Default="Default",i.Subtle="Subtle",i.Emphasized="Emphasized"})(w||(w={}));const ae=w;function le(){return v("a",{part:"root",class:"ui5-link-root",role:this.effectiveAccRole,href:this.parsedRef,target:this.target,rel:this._rel,tabindex:this.effectiveTabIndex,title:this.tooltip,"aria-disabled":this.disabled,"aria-label":this.ariaLabelText,"aria-haspopup":this._hasPopup,"aria-expanded":this.accessibilityAttributes.expanded,"aria-current":this.accessibilityAttributes.current,"aria-description":this.ariaDescriptionText,onClick:this._onclick,onKeyDown:this._onkeydown,onKeyUp:this._onkeyup,children:[this.icon&&c(O,{class:"ui5-link-icon",name:this.icon,mode:"Decorative",part:"icon"}),c("span",{class:"ui5-link-text",children:c("slot",{})}),this.hasLinkType&&c("span",{class:"ui5-hidden-text",children:this.linkTypeText}),this.endIcon&&c(O,{class:"ui5-link-end-icon",name:this.endIcon,mode:"Decorative",part:"endIcon"})]})}f("@ui5/webcomponents-theming","sap_horizon",async()=>E);f("@ui5/webcomponents","sap_horizon",async()=>A);const ce=`.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-flex}:host{max-width:100%;color:var(--sapLinkColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);cursor:pointer;outline:none;text-decoration:var(--_ui5-v2-13-2_link_text_decoration);text-shadow:var(--sapContent_TextShadow);white-space:normal;overflow-wrap:break-word}:host(:hover){color:var(--sapLink_Hover_Color);text-decoration:var(--_ui5-v2-13-2_link_hover_text_decoration)}:host(:active){color:var(--sapLink_Active_Color);text-decoration:var(--_ui5-v2-13-2_link_active_text_decoration)}:host([disabled]){pointer-events:none}:host([disabled]) .ui5-link-root{text-shadow:none;outline:none;cursor:default;pointer-events:none;opacity:var(--sapContent_DisabledOpacity)}:host([design="Emphasized"]) .ui5-link-root{font-family:var(--sapFontBoldFamily)}:host([design="Subtle"]){color:var(--sapLink_SubtleColor);text-decoration:var(--_ui5-v2-13-2_link_subtle_text_decoration)}:host([design="Subtle"]:hover:not(:active)){color:var(--sapLink_SubtleColor);text-decoration:var(--_ui5-v2-13-2_link_subtle_text_decoration_hover)}:host([wrapping-type="None"]){white-space:nowrap;overflow-wrap:normal}.ui5-link-root{max-width:100%;display:inline-block;position:relative;overflow:hidden;text-overflow:ellipsis;outline:none;white-space:inherit;overflow-wrap:inherit;text-decoration:inherit;color:inherit}:host([wrapping-type="None"][end-icon]) .ui5-link-root{display:inline-flex;align-items:end}:host .ui5-link-root{outline-offset:-.0625rem;border-radius:var(--_ui5-v2-13-2_link_focus_border-radius)}.ui5-link-icon,.ui5-link-end-icon{color:inherit;flex-shrink:0}.ui5-link-icon{float:inline-start;margin-inline-end:.125rem}.ui5-link-end-icon{margin-inline-start:.125rem;vertical-align:bottom}.ui5-link-text{overflow:hidden;text-overflow:ellipsis}.ui5-link-root:focus-visible,:host([desktop]) .ui5-link-root:focus-within,:host([design="Subtle"]) .ui5-link-root:focus-visible,:host([design="Subtle"][desktop]) .ui5-link-root:focus-within{background-color:var(--_ui5-v2-13-2_link_focus_background_color);outline:var(--_ui5-v2-13-2_link_outline);border-radius:var(--_ui5-v2-13-2_link_focus_border-radius);text-shadow:none;color:var(--_ui5-v2-13-2_link_focus_color)}:host(:not([desktop])) .ui5-link-root:focus-visible,:host([desktop]:focus-within),:host([design="Subtle"][desktop]:focus-within){text-decoration:var(--_ui5-v2-13-2_link_focus_text_decoration)}:host([desktop]:hover:not(:active):focus-within),:host([design="Subtle"][desktop]:hover:not(:active):focus-within){color:var(--_ui5-v2-13-2_link_focused_hover_text_color);text-decoration:var(--_ui5-v2-13-2_link_focused_hover_text_decoration)}:host([interactive-area-size="Large"]) .ui5-link-root{line-height:var(--_ui5-v2-13-2_link_large_interactive_area_height)}:host([interactive-area-size="Large"])::part(icon),:host([interactive-area-size="Large"])::part(endIcon){height:var(--_ui5-v2-13-2_link_large_interactive_area_height)}
3
+ `;var l=function(i,e,o,s){var a=arguments.length,t=a<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,o):s,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,e,o,s);else for(var p=i.length-1;p>=0;p--)(d=i[p])&&(t=(a<3?d(t):a>3?d(e,o,t):d(e,o))||t);return a>3&&t&&Object.defineProperty(e,o,t),t},y;let r=y=class extends C{constructor(){super(),this.disabled=!1,this.design="Default",this.interactiveAreaSize="Normal",this.wrappingType="Normal",this.accessibleRole="Link",this.accessibilityAttributes={},this._dummyAnchor=document.createElement("a")}onEnterDOM(){j()&&this.setAttribute("desktop","")}onBeforeRendering(){const e=this.target!=="_self"&&this.href&&this._isCrossOrigin(this.href);this._rel=e?"noreferrer noopener":void 0}_isCrossOrigin(e){return this._dummyAnchor.href=e,!(this._dummyAnchor.hostname===$()&&this._dummyAnchor.port===X()&&this._dummyAnchor.protocol===H())}get effectiveTabIndex(){return this.forcedTabIndex?Number.parseInt(this.forcedTabIndex):this.disabled||!this.textContent?.length?-1:0}get ariaLabelText(){return K(this)}get hasLinkType(){return this.design!==ae.Default}static typeTextMappings(){return{Subtle:W,Emphasized:q}}get linkTypeText(){return y.i18nBundle.getText(y.typeTextMappings()[this.design])}get parsedRef(){return this.href&&this.href.length>0?this.href:void 0}get effectiveAccRole(){return Y(this.accessibleRole)}get ariaDescriptionText(){return this.accessibleDescription===""?void 0:this.accessibleDescription}get _hasPopup(){return this.accessibilityAttributes.hasPopup}_onclick(e){const{altKey:o,ctrlKey:s,metaKey:a,shiftKey:t}=e;e.stopImmediatePropagation(),this.fireDecoratorEvent("click",{altKey:o,ctrlKey:s,metaKey:a,shiftKey:t})||e.preventDefault()}_onkeydown(e){U(e)&&!this.href?(this._onclick(e),e.preventDefault()):R(e)&&e.preventDefault()}_onkeyup(e){if(R(e)&&(this._onclick(e),this.href&&!e.defaultPrevented)){const o=new MouseEvent("click");o.stopImmediatePropagation(),this.getDomRef().dispatchEvent(o)}}};l([n({type:Boolean})],r.prototype,"disabled",void 0);l([n()],r.prototype,"tooltip",void 0);l([n()],r.prototype,"href",void 0);l([n()],r.prototype,"target",void 0);l([n()],r.prototype,"design",void 0);l([n()],r.prototype,"interactiveAreaSize",void 0);l([n()],r.prototype,"wrappingType",void 0);l([n()],r.prototype,"accessibleName",void 0);l([n()],r.prototype,"accessibleNameRef",void 0);l([n()],r.prototype,"accessibleRole",void 0);l([n({type:Object})],r.prototype,"accessibilityAttributes",void 0);l([n()],r.prototype,"accessibleDescription",void 0);l([n()],r.prototype,"icon",void 0);l([n()],r.prototype,"endIcon",void 0);l([n({noAttribute:!0})],r.prototype,"_rel",void 0);l([n({noAttribute:!0})],r.prototype,"forcedTabIndex",void 0);l([I("@ui5/webcomponents")],r,"i18nBundle",void 0);r=y=l([P({tag:"ui5-link",languageAware:!0,renderer:L,template:le,styles:ce}),F("click",{bubbles:!0,cancelable:!0})],r);r.define();const de=r;function pe(){return v("div",{children:[c(S,{class:"ui5-exp-text-text",emptyIndicatorMode:this.emptyIndicatorMode,children:this._displayedText}),this._maxCharactersExceeded&&v(g,{children:[c("span",{class:"ui5-exp-text-ellipsis",children:this._ellipsisText}),c(de,{id:"toggle",class:"ui5-exp-text-toggle",accessibleRole:"Button",accessibleName:this._accessibleNameForToggle,accessibilityAttributes:this._accessibilityAttributesForToggle,onClick:this._handleToggleClick,children:this._textForToggle}),this._usePopover&&v(ie,{open:this._expanded,opener:"toggle",accessibleNameRef:"popover-text",contentOnlyOnDesktop:!0,_hideHeader:!0,class:"ui5-exp-text-popover",onClose:this._handlePopoverClose,children:[c(S,{id:"popover-text",children:this.text}),c("div",{slot:"footer",class:"ui5-exp-text-footer",children:c(V,{design:"Transparent",onClick:this._handleCloseButtonClick,children:this._closeButtonText})})]})]})]})}f("@ui5/webcomponents-theming","sap_horizon",async()=>E);f("@ui5/webcomponents","sap_horizon",async()=>A);const he=`:host{display:inline-block;font-family:var(--sapFontFamily);font-size:var(--sapFontSize);color:var(--sapTextColor)}:host([hidden]){display:none}.ui5-exp-text-text{display:inline}.ui5-exp-text-text,.ui5-exp-text-toggle{font-family:inherit;font-size:inherit}.ui5-exp-text-text,.ui5-exp-text-ellipsis{color:inherit}.ui5-exp-text-popover::part(content){padding-inline:1rem}.ui5-exp-text-footer{width:100%;display:flex;align-items:center;justify-content:flex-end}
4
+ `;var x=function(i,e,o,s){var a=arguments.length,t=a<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,o):s,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,e,o,s);else for(var p=i.length-1;p>=0;p--)(d=i[p])&&(t=(a<3?d(t):a>3?d(e,o,t):d(e,o))||t);return a>3&&t&&Object.defineProperty(e,o,t),t},_;let h=_=class extends C{constructor(){super(...arguments),this.maxCharacters=100,this.overflowMode="InPlace",this.emptyIndicatorMode="Off",this._expanded=!1}getFocusDomRef(){return this._usePopover?this.shadowRoot?.querySelector("[ui5-responsive-popover]"):this.shadowRoot?.querySelector("[ui5-link]")}get _displayedText(){return this._expanded&&!this._usePopover?this.text:this.text?.substring(0,this.maxCharacters)}get _maxCharactersExceeded(){return(this.text?.length||0)>this.maxCharacters}get _usePopover(){return this.overflowMode===oe.Popover}get _ellipsisText(){return this._expanded&&!this._usePopover?" ":"... "}get _textForToggle(){return this._expanded?_.i18nBundle.getText(Z):_.i18nBundle.getText(G)}get _closeButtonText(){return _.i18nBundle.getText(J)}get _accessibilityAttributesForToggle(){return this._usePopover?{expanded:this._expanded,hasPopup:"dialog"}:{expanded:this._expanded}}get _accessibleNameForToggle(){if(this._usePopover)return this._expanded?_.i18nBundle.getText(Q):_.i18nBundle.getText(ee)}_handlePopoverClose(){te()||(this._expanded=!1)}_handleToggleClick(){this._expanded=!this._expanded}_handleCloseButtonClick(e){this._expanded=!1,e.stopPropagation()}};x([n()],h.prototype,"text",void 0);x([n({type:Number})],h.prototype,"maxCharacters",void 0);x([n()],h.prototype,"overflowMode",void 0);x([n()],h.prototype,"emptyIndicatorMode",void 0);x([n({type:Boolean})],h.prototype,"_expanded",void 0);x([I("@ui5/webcomponents")],h,"i18nBundle",void 0);h=_=x([P({tag:"ui5-expandable-text",renderer:L,styles:he,template:pe})],h);h.define();function me(i){const{className:e,text:o,maxCharacters:s,part:a}=i;return c(h,{part:a,class:e,text:o,maxCharacters:s})}export{me as default};
@@ -0,0 +1 @@
1
+ :root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;min-width:320px;min-height:100vh}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}}