@platform-mesh/portal-ui-lib 0.36.2 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/621.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[621],{9621(q,R,l){l.d(R,{default:()=>Z});var _=l(8431);function p(n,u,e,t){return n.replaceAll(new RegExp((n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(u),(t?"i":"")+"g"),e)}var I=l(1934),g=l(1642),L=l(6136),f=l(6981),r=l(1892),H=l(9574);function M(){return(0,r.Y)("div",{part:"content",id:"content",class:"ui5-li-content",children:(0,r.FD)("div",{class:"ui5-li-text-wrapper",children:[(0,r.Y)("span",{part:"title",className:"ui5-li-title",dangerouslySetInnerHTML:{__html:this.markupText}}),this.additionalText&&(0,r.Y)("span",{part:"additional-text",class:"ui5-li-additional-text",children:this.additionalText})]})})}var v=l(467),S=l(8923),V=l(303),Y=l(5444);(0,S.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,v.A)(function*(){return V.A})),(0,S.Rh)("@ui5/webcomponents","sap_horizon",(0,v.A)(function*(){return Y.A}),"host");var d=function(n,u,e,t){var o,i=arguments.length,s=i<3?u:null===t?t=Object.getOwnPropertyDescriptor(u,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,u,e,t);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(i<3?o(s):i>3?o(u,e,s):o(u,e))||s);return i>3&&s&&Object.defineProperty(u,e,s),s};let c=class extends f.A{constructor(){super(...arguments),this.markupText=""}onEnterDOM(){(0,L.xl)()&&this.setAttribute("desktop","")}get _effectiveTabIndex(){return-1}};d([(0,g.A)()],c.prototype,"text",void 0),d([(0,g.A)()],c.prototype,"additionalText",void 0),d([(0,g.A)()],c.prototype,"markupText",void 0),c=d([(0,I.A)({tag:"ui5-suggestion-item",template:function F(){return[H.A.call(this,{listItemContent:M},{role:"option"})]},styles:[f.A.styles,":host([ui5-suggestion-item]){height:auto;min-height:var(--_ui5_list_item_base_height)}:host([ui5-suggestion-item]) .ui5-li-root{min-height:var(--_ui5_list_item_base_height)}:host([ui5-suggestion-item]) .ui5-li-content{padding-bottom:.5rem;padding-top:.5rem;box-sizing:border-box}\n"]})],c),c.define();var E=l(6993),N=l(6374),$=l(45),B=l(7601),z=l(897);function W(){return(0,r.Y)("slot",{})}var x=function(n,u,e,t){var o,i=arguments.length,s=i<3?u:null===t?t=Object.getOwnPropertyDescriptor(u,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,u,e,t);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(s=(i<3?o(s):i>3?o(u,e,s):o(u,e))||s);return i>3&&s&&Object.defineProperty(u,e,s),s};let m=class extends N.A{};x([(0,E.A)({default:!0,invalidateOnChildChange:!0,type:HTMLElement})],m.prototype,"items",void 0),m=x([(0,I.A)({tag:"ui5-suggestion-item-group",template:function j(n){const u=n?.items||W;return(0,r.FD)("ul",{role:"group",class:"ui5-group-li-root",onDragEnter:this._ondragenter,onDragOver:this._ondragover,onDrop:this._ondrop,onDragLeave:this._ondragleave,children:[this.hasHeader&&(0,r.Y)($.A,{focused:this.focused,part:"header",accessibleRole:z.A.Group,wrappingType:this.getGroupHeaderWrapping(),children:this.hasFormattedHeader?(0,r.Y)("slot",{name:"header"}):this.headerText}),u.call(this),(0,r.Y)(B.A,{orientation:"Horizontal",ownerReference:this})]})}})],m),m.define();var A=l(6745),T=l(8731),U=l(6157),K=l(2920),C=l(7778),X=l(9698);function J(n){const u=n?.suggestionsList||Q,e=n?.mobileHeader,t=n?.valueStateMessage,i=n?.valueStateMessageInputIcon;return(0,r.FD)(K.A,{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&&(0,r.Y)(r.FK,{children:(0,r.FD)("div",{slot:"header",class:"ui5-responsive-popover-header",children:[(0,r.Y)("div",{class:"row",children:(0,r.Y)("span",{children:this._headerTitleText})}),(0,r.Y)("div",{class:"row",children:(0,r.FD)("div",{class:"input-root-phone native-input-wrapper",children:[(0,r.Y)(A.A,{class:"ui5-input-inner-phone",type:this.inputType,value:this.value,showClearIcon:this.showClearIcon,placeholder:this.placeholder,onInput:this._handleInput}),e?.call(this)]})}),this.hasValueStateMessage&&(0,r.FD)("div",{class:this.classes.popoverValueState,style:this.styles.suggestionPopoverHeader,children:[(0,r.Y)(T.A,{class:"ui5-input-value-state-message-icon",name:i?.call(this)}),this.open&&t?.call(this)]})]})}),!this._isPhone&&this.hasValueStateMessage&&(0,r.FD)("div",{slot:"header",class:{"ui5-responsive-popover-header":!0,...this.classes.popoverValueState},style:this.styles.suggestionPopoverHeader,children:[(0,r.Y)(T.A,{class:"ui5-input-value-state-message-icon",name:i?.call(this)}),this.open&&t?.call(this)]}),this.showSuggestions&&u.call(this),this._isPhone&&(0,r.FD)("div",{slot:"footer",class:"ui5-responsive-popover-footer",children:[(0,r.Y)(C.A,{design:"Emphasized",onClick:this._confirmMobileValue,children:this._suggestionsOkButtonText}),(0,r.Y)(C.A,{class:"ui5-responsive-popover-close-btn",design:"Transparent",onClick:this._cancelMobileValue,children:this._suggestionsCancelButtonText})]})]})}function Q(){return(0,r.Y)(U.A,{accessibleRole:X.A.ListBox,separators:this.suggestionSeparators,selectionMode:"Single",onMouseDown:this.onItemMouseDown,onItemClick:this._handleSuggestionItemPress,onSelectionChange:this._handleSelectionChange,children:(0,r.Y)("slot",{})})}var P=l(5166);let b=(()=>{class n{get template(){return J}constructor(e,t,i,s){this.component=e,this.slotName=t,this.handleFocus=s,this.highlight=i,this.selectedItemIndex=-1}onUp(e,t){return e.preventDefault(),this._handleItemNavigation(!1,!this.isOpened&&this._hasValueState&&-1===t?0:t),!0}onDown(e,t){return e.preventDefault(),this._handleItemNavigation(!0,!this.isOpened&&this._hasValueState&&-1===t?0:t),!0}onSpace(e){return!!this._isItemOnTarget()&&(e.preventDefault(),this.onItemSelected(this._selectedItem,!0),!0)}onEnter(e){return this._isGroupItem?(e.preventDefault(),!1):!!this._isItemOnTarget()&&(this.onItemSelected(this._selectedItem,!0),!0)}onPageUp(e){return e.preventDefault(),this._moveItemSelection(this.selectedItemIndex,this.selectedItemIndex-10>-1?this.selectedItemIndex-=10:this.selectedItemIndex=0),!0}onPageDown(e){e.preventDefault();const t=this.visibleItems;if(!t)return!0;const i=t.length-1;return this._moveItemSelection(this.selectedItemIndex,this.selectedItemIndex+10<=i?this.selectedItemIndex+=10:this.selectedItemIndex=i),!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)}toggle(e,t){(void 0!==e?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 i=this._getPicker();i.preventFocusRestore=e,i.open=!1,t&&t.focused&&(t.focused=!1)}updateSelectedItemPosition(e){this.selectedItemIndex=e}onItemSelected(e,t){const i=e,s=this._getNonGroupItems();i&&(this.accInfo={isGroup:i.hasAttribute("ui5-suggestion-item-group"),currentPos:s.indexOf(i)+1,listSize:s.length,itemText:i.text||"",additionalText:i.additionalText},this._getComponent().onItemSelected(i,t),this._getComponent().open=!1)}onItemSelect(e){this._getComponent().onItemSelect(e)}onItemPress(e){let t;const i="ui5-item-click"===e.type;i&&!e.detail.item.selected||this._handledPress&&!i||(i&&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()&&null!==this.selectedItemIndex&&-1!==this.selectedItemIndex&&!this._isGroupItem}get _isGroupItem(){const e=this._getItems();return!(!e||!e[this.selectedItemIndex])&&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;-1!==t&&t+1>e-1||this._moveItemSelection(t,++this.selectedItemIndex)}_selectPreviousItem(){const e=this.visibleItems,t=this.selectedItemIndex;if(-1!==t&&null!==t){if(t-1<0)return(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,void(this.selectedItemIndex-=1);this._moveItemSelection(t,--this.selectedItemIndex)}}get visibleItems(){return this._getItems().filter(e=>!e.hidden)}_moveItemSelection(e,t){const i=this.visibleItems,s=i[t],o=i[e],a=this._getNonGroupItems(),h=s?.hasAttribute("ui5-suggestion-item-group");if(!s)return;this.component.focused=!1;const D=this.visibleItems[this.selectedItemIndex];if(this.accInfo={isGroup:h,currentPos:i.indexOf(s)+1,itemText:(h?D.headerText:D.text)||""},(s.hasAttribute("ui5-suggestion-item")||s.hasAttribute("ui5-suggestion-item-custom"))&&(this.accInfo.additionalText=s.additionalText||"",this.accInfo.currentPos=a.indexOf(s)+1,this.accInfo.listSize=a.length),o&&(o.focused=!1),(o?.hasAttribute("ui5-suggestion-item")||o?.hasAttribute("ui5-suggestion-item-custom"))&&(o.selected=!1),s&&(s.focused=!0,h||(s.selected=!0),this.handleFocus&&s.focus()),this.component.hasSuggestionItemSelected=!0,this.onItemSelect(s),!this._isItemIntoView(s)){const k=this._isGroupItem?s.shadowRoot.querySelector("[ui5-li-group-header]"):s;this._scrollItemIntoView(k)}}_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(),i=this._getComponent().getDomRef().getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight;let o=0;return this._hasValueState&&(o=this._getPicker().querySelector("[slot=header]").getBoundingClientRect().height),t.top+n.SCROLL_STEP<=s&&t.top>=i.top+o}_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`${n.i18nBundle.getText(P.Fr3)} ${this.accInfo.itemText}`;const e=n.i18nBundle.getText(P.piN,this.accInfo.currentPos||0,this.accInfo.listSize||0);return`${this.accInfo.additionalText} ${e}`.trim()}hightlightInput(e,t){return function y(n,u){if(!n||!u)return n;const e=o=>{const[a,h]=o.split("");for(;n.indexOf(o)>=0||u.indexOf(o)>=0;)o=`${a}${o}${h}`;return o},t=e("12"),i=e("34");let s=(0,_.A)(p(n,u,o=>`${t}${o}${i}`,!0));return[[t,"<b>"],[i,"</b>"]].forEach(([o,a])=>{s=p(s,o,a,!1)}),s}(e,t)}get _hasValueState(){return this.component.hasValueStateMessage}_clearSelectedSuggestionAndaccInfo(){this.accInfo=void 0,this.selectedItemIndex=0}}return n.SCROLL_STEP=60,n})();A.A.SuggestionsClass=b;const Z=b}}]);
package/assets/646.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[646],{646(N,T,e){e.d(T,{default:()=>O});var t=e(8),y=e(7966),C=e(5846),x=e(2802),A=e(6859),P=e(7956),b=e(9824),v=function(n){return n.InPlace="InPlace",n.Popover="Popover",n}(v||{});const F=v;var c=e(5166),f=e(4110),B=e(8305),R=e(7287),E=e(2920),g=e(467),m=e(4291),D=e(407),Y=e(5444);(0,m.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,g.A)(function*(){return D.A})),(0,m.Rh)("@ui5/webcomponents","sap_horizon",(0,g.A)(function*(){return Y.A}),"host");var a,r=function(n,s,l,d){var h,p=arguments.length,i=p<3?s:null===d?d=Object.getOwnPropertyDescriptor(s,l):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,s,l,d);else for(var u=n.length-1;u>=0;u--)(h=n[u])&&(i=(p<3?h(i):p>3?h(s,l,i):h(s,l))||i);return p>3&&i&&Object.defineProperty(s,l,i),i};let o=a=class extends y.A{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===F.Popover}get _ellipsisText(){return this._expanded&&!this._usePopover?" ":"... "}get _textForToggle(){return a.i18nBundle.getText(this._expanded?c.pcO:c.DXF)}get _closeButtonText(){return a.i18nBundle.getText(c.Qmg)}get _accessibilityAttributesForToggle(){return this._usePopover?{expanded:this._expanded,hasPopup:"dialog"}:{expanded:this._expanded}}get _accessibleNameForToggle(){if(this._usePopover)return a.i18nBundle.getText(this._expanded?c.C_7:c.Yz$)}_handlePopoverClose(){(0,b.tp)()||(this._expanded=!1)}_handleToggleClick(){this._expanded=!this._expanded}_handleCloseButtonClick(s){this._expanded=!1,s.stopPropagation()}};r([(0,x.A)()],o.prototype,"text",void 0),r([(0,x.A)({type:Number})],o.prototype,"maxCharacters",void 0),r([(0,x.A)()],o.prototype,"overflowMode",void 0),r([(0,x.A)()],o.prototype,"emptyIndicatorMode",void 0),r([(0,x.A)({type:Boolean})],o.prototype,"_expanded",void 0),r([(0,A.A)("@ui5/webcomponents")],o,"i18nBundle",void 0),o=a=r([(0,C.A)({tag:"ui5-expandable-text",renderer:P.A,styles:":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}\n",template:function I(){return(0,t.FD)("div",{children:[(0,t.Y)(f.A,{class:"ui5-exp-text-text",emptyIndicatorMode:this.emptyIndicatorMode,children:this._displayedText}),this._maxCharactersExceeded&&(0,t.FD)(t.FK,{children:[(0,t.Y)("span",{class:"ui5-exp-text-ellipsis",children:this._ellipsisText}),(0,t.Y)(B.A,{id:"toggle",class:"ui5-exp-text-toggle",accessibleRole:"Button",accessibleName:this._accessibleNameForToggle,accessibilityAttributes:this._accessibilityAttributesForToggle,onClick:this._handleToggleClick,children:this._textForToggle}),this._usePopover&&(0,t.FD)(E.A,{open:this._expanded,opener:"toggle",accessibleNameRef:"popover-text",contentOnlyOnDesktop:!0,_hideHeader:!0,class:"ui5-exp-text-popover",onClose:this._handlePopoverClose,children:[(0,t.Y)(f.A,{id:"popover-text",children:this.text}),(0,t.Y)("div",{slot:"footer",class:"ui5-exp-text-footer",children:(0,t.Y)(R.A,{design:"Transparent",onClick:this._handleCloseButtonClick,children:this._closeButtonText})})]})]})]})}})],o),o.define();const M=o;function O(n){const{className:s,text:l,maxCharacters:d,part:p}=n;return(0,t.Y)(M,{part:p,class:s,text:l,maxCharacters:d})}}}]);
1
+ "use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[646],{646(N,T,e){e.d(T,{default:()=>O});var t=e(1892),y=e(4381),C=e(1934),x=e(1642),A=e(3651),P=e(1834),b=e(6136),v=function(n){return n.InPlace="InPlace",n.Popover="Popover",n}(v||{});const F=v;var c=e(5166),f=e(4110),B=e(8305),R=e(7778),E=e(2920),g=e(467),m=e(8923),D=e(303),Y=e(5444);(0,m.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,g.A)(function*(){return D.A})),(0,m.Rh)("@ui5/webcomponents","sap_horizon",(0,g.A)(function*(){return Y.A}),"host");var a,r=function(n,s,l,d){var h,p=arguments.length,i=p<3?s:null===d?d=Object.getOwnPropertyDescriptor(s,l):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,s,l,d);else for(var u=n.length-1;u>=0;u--)(h=n[u])&&(i=(p<3?h(i):p>3?h(s,l,i):h(s,l))||i);return p>3&&i&&Object.defineProperty(s,l,i),i};let o=a=class extends y.A{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===F.Popover}get _ellipsisText(){return this._expanded&&!this._usePopover?" ":"... "}get _textForToggle(){return a.i18nBundle.getText(this._expanded?c.pcO:c.DXF)}get _closeButtonText(){return a.i18nBundle.getText(c.Qmg)}get _accessibilityAttributesForToggle(){return this._usePopover?{expanded:this._expanded,hasPopup:"dialog"}:{expanded:this._expanded}}get _accessibleNameForToggle(){if(this._usePopover)return a.i18nBundle.getText(this._expanded?c.C_7:c.Yz$)}_handlePopoverClose(){(0,b.tp)()||(this._expanded=!1)}_handleToggleClick(){this._expanded=!this._expanded}_handleCloseButtonClick(s){this._expanded=!1,s.stopPropagation()}};r([(0,x.A)()],o.prototype,"text",void 0),r([(0,x.A)({type:Number})],o.prototype,"maxCharacters",void 0),r([(0,x.A)()],o.prototype,"overflowMode",void 0),r([(0,x.A)()],o.prototype,"emptyIndicatorMode",void 0),r([(0,x.A)({type:Boolean})],o.prototype,"_expanded",void 0),r([(0,A.A)("@ui5/webcomponents")],o,"i18nBundle",void 0),o=a=r([(0,C.A)({tag:"ui5-expandable-text",renderer:P.A,styles:":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}\n",template:function I(){return(0,t.FD)("div",{children:[(0,t.Y)(f.A,{class:"ui5-exp-text-text",emptyIndicatorMode:this.emptyIndicatorMode,children:this._displayedText}),this._maxCharactersExceeded&&(0,t.FD)(t.FK,{children:[(0,t.Y)("span",{class:"ui5-exp-text-ellipsis",children:this._ellipsisText}),(0,t.Y)(B.A,{id:"toggle",class:"ui5-exp-text-toggle",accessibleRole:"Button",accessibleName:this._accessibleNameForToggle,accessibilityAttributes:this._accessibilityAttributesForToggle,onClick:this._handleToggleClick,children:this._textForToggle}),this._usePopover&&(0,t.FD)(E.A,{open:this._expanded,opener:"toggle",accessibleNameRef:"popover-text",contentOnlyOnDesktop:!0,_hideHeader:!0,class:"ui5-exp-text-popover",onClose:this._handlePopoverClose,children:[(0,t.Y)(f.A,{id:"popover-text",children:this.text}),(0,t.Y)("div",{slot:"footer",class:"ui5-exp-text-footer",children:(0,t.Y)(R.A,{design:"Transparent",onClick:this._handleCloseButtonClick,children:this._closeButtonText})})]})]})]})}})],o),o.define();const M=o;function O(n){const{className:s,text:l,maxCharacters:d,part:p}=n;return(0,t.Y)(M,{part:p,class:s,text:l,maxCharacters:d})}}}]);