@openmfp/portal-ui-lib 0.192.21 → 0.192.24
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/778.js +1 -1
- package/assets/955.js +1 -1
- package/assets/openmfp-portal-ui-wc.js +34 -47
- package/fesm2022/openmfp-portal-ui-lib.mjs +114 -114
- package/fesm2022/openmfp-portal-ui-lib.mjs.map +1 -1
- package/package.json +11 -10
package/assets/778.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[778],{778(ee,F,i){i.d(F,{A:()=>q});var y=i(467),A=i(1934),g=i(1642),p=i(6136),M=i(3651),H=i(5166),n=i(1892),Y=i(1278),N=i(555),C=i(6993),m=i(8762),l=i(2358),D=i(594),B=i(1045),O=i(9859),$=(i(4257),i(2601),i(8911),i(441),i(81)),j=i(8520),T=i(6983),E=i(563);function K(){return(0,n.Y)(n.FK,{children:!!this._displayHeader&&(0,n.Y)("header",{children:(0,n.FD)("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&&(0,n.Y)(E.A,{class:"ui5-dialog-value-state-icon",name:this._dialogStateIcon}),this.header.length?(0,n.Y)("slot",{name:"header"}):(0,n.Y)(T.A,{level:"H1",id:"ui5-popup-header-text",class:"ui5-popup-header-text",children:this.headerText}),this.resizable?(0,n.Y)("span",this.draggable?{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextDraggableAndResizable}:{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextResizable}):this.draggable&&(0,n.Y)("span",{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextDraggable})]})})})}function U(){return(0,n.FD)(n.FK,{children:[!!this.footer.length&&(0,n.Y)("footer",{class:"ui5-popup-footer-root",part:"footer",children:(0,n.Y)("slot",{name:"footer"})}),this._showResizeHandle&&(0,n.Y)("div",{class:"ui5-popup-resize-handle",onMouseDown:this._onResizeMouseDown,children:(0,n.Y)(E.A,{name:$.Ay})})]})}var X=i(1926),x=i(8923),P=i(303),L=i(5444);(0,x.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,y.A)(function*(){return P.A})),(0,x.Rh)("@ui5/webcomponents","sap_horizon",(0,y.A)(function*(){return L.A}),"host");var f,S=i(9634),u=function(c,e,t,s){var a,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(c,e,t,s);else for(var h=c.length-1;h>=0;h--)(a=c[h])&&(o=(r<3?a(o):r>3?a(e,t,o):a(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o};const v=16,V={[D.A.Negative]:"error",[D.A.Critical]:"alert",[D.A.Positive]:"sys-enter-2",[D.A.Information]:"information"};let d=f=class extends O.A{constructor(){super(),this.stretch=!1,this.draggable=!1,this.resizable=!1,this.state="None",this._draggedOrResized=!1,this._dragHandlerRegistered=!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")||"header"===e.getAttribute("slot")}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?f.i18nBundle.getText(H.lXU):void 0}get effectiveAriaDescribedBy(){return this.resizable||this.draggable?`${this._id}-descr`:void 0}get ariaDescribedByHeaderTextResizable(){return f.i18nBundle.getText(H.QGn)}get ariaDescribedByHeaderTextDraggable(){return f.i18nBundle.getText(H.kHh)}get ariaDescribedByHeaderTextDraggableAndResizable(){return f.i18nBundle.getText(H.CR4)}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 s=this._root.querySelector(".ui5-popup-footer-root");return s&&(e+=s.offsetHeight),e}get hasValueState(){return this.state!==D.A.None}get _dialogStateIcon(){return V[this.state]}get _role(){if(this.accessibleRole!==S.A.None)return(0,B.A)(this.state===D.A.Negative||this.state===D.A.Critical?S.A.AlertDialog:this.accessibleRole)}_show(){super._show(),this._center()}onBeforeRendering(){super.onBeforeRendering(),this._isRTL="rtl"===this.effectiveDir}_resize(){super._resize(),this._draggedOrResized||this._center()}_screenResize(){this._center()}_attachBrowserEvents(){this._attachScreenResizeHandler(),this._registerDragHandler()}_detachBrowserEvents(){this._detachScreenResizeHandler(),this._deregisterDragHandler()}_attachScreenResizeHandler(){this._screenResizeHandlerAttached||(window.addEventListener("resize",this._screenResizeHandler),this._screenResizeHandlerAttached=!0)}_detachScreenResizeHandler(){this._screenResizeHandlerAttached&&(window.removeEventListener("resize",this._screenResizeHandler),this._screenResizeHandlerAttached=!1)}_registerDragHandler(){this._dragHandlerRegistered||(this.addEventListener("dragstart",this._dragStartHandler),this._dragHandlerRegistered=!0)}_deregisterDragHandler(){this._dragHandlerRegistered&&(this.removeEventListener("dragstart",this._dragStartHandler),this._dragHandlerRegistered=!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||!f._isHeader(e.target))return;const{top:t,left:s}=this.getBoundingClientRect(),{width:r,height:o}=window.getComputedStyle(this);Object.assign(this.style,{top:`${t}px`,left:`${s}px`,width:Math.round(100*Number.parseFloat(r))/100+"px",height:Math.round(100*Number.parseFloat(o))/100+"px"}),this._x=e.clientX,this._y=e.clientY,this._draggedOrResized=!0,this._attachMouseDragHandlers()}_onDragMouseMove(e){e.preventDefault();const{clientX:t,clientY:s}=e,r=this._x-t,o=this._y-s,{left:a,top:h}=this.getBoundingClientRect();Object.assign(this.style,{left:`${Math.floor(a-r)}px`,top:`${Math.floor(h-o)}px`}),this._x=t,this._y=s}_onDragMouseUp(){delete this._x,delete this._y,this._detachMouseDragHandlers()}_onDragOrResizeKeyDown(e){if(this._movable&&f._isHeader(e.target)){if(this.draggable&&[l.ie,l.Pj,l.OC,l.FG].some(t=>t(e)))return void this._dragWithEvent(e);this.resizable&&[l.aI,l.tt,l.KK,l.hn].some(t=>t(e))&&this._resizeWithEvent(e)}}_dragWithEvent(e){const{top:t,left:s,width:r,height:o}=this.getBoundingClientRect();let a=0,h="top";switch(!0){case(0,l.ie)(e):a=t-v,h="top";break;case(0,l.Pj)(e):a=t+v,h="top";break;case(0,l.OC)(e):a=s-v,h="left";break;case(0,l.FG)(e):a=s+v,h="left"}a=(0,m.A)(a,0,"left"===h?window.innerWidth-r:window.innerHeight-o),this.style[h]=`${a}px`}_resizeWithEvent(e){this._draggedOrResized=!0,this.addEventListener("ui5-before-close",this._revertSize,{once:!0});const{top:t,left:s}=this.getBoundingClientRect(),r=window.getComputedStyle(this),o=Number.parseFloat(r.minWidth),a=window.innerWidth-s,h=window.innerHeight-t;let b=Number.parseFloat(r.width),R=Number.parseFloat(r.height);switch(!0){case(0,l.aI)(e):R-=v;break;case(0,l.tt)(e):R+=v;break;case(0,l.KK)(e):b-=v;break;case(0,l.hn)(e):b+=v}b=(0,m.A)(b,o,a),R=(0,m.A)(R,this._minHeight,h),Object.assign(this.style,{width:`${b}px`,height:`${R}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:s}=this.getBoundingClientRect(),{width:r,height:o,minWidth:a}=window.getComputedStyle(this);this._initialX=e.clientX,this._initialY=e.clientY,this._initialWidth=Number.parseFloat(r),this._initialHeight=Number.parseFloat(o),this._initialTop=t,this._initialLeft=s,this._minWidth=Number.parseFloat(a),this._cachedMinHeight=this._minHeight,Object.assign(this.style,{top:`${t}px`,left:`${s}px`}),this._draggedOrResized=!0,this._attachMouseResizeHandlers()}_onResizeMouseMove(e){const{clientX:t,clientY:s}=e;let r,o;if(this._isRTL){r=(0,m.A)(this._initialWidth-(t-this._initialX),this._minWidth,this._initialLeft+this._initialWidth),Object.assign(this.style,{width:`${r}px`});const h=r-this.getBoundingClientRect().width,b=this._initialLeft+this._initialWidth+h;o=(0,m.A)(b-r,0,b-this._minWidth)}else r=(0,m.A)(this._initialWidth+(t-this._initialX),this._minWidth,window.innerWidth-this._initialLeft);const a=(0,m.A)(this._initialHeight+(s-this._initialY),this._cachedMinHeight,window.innerHeight-this._initialTop);Object.assign(this.style,{height:`${a}px`,width:`${r}px`,left:this._isRTL?`${o}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)}};u([(0,g.A)()],d.prototype,"headerText",void 0),u([(0,g.A)({type:Boolean})],d.prototype,"stretch",void 0),u([(0,g.A)({type:Boolean})],d.prototype,"draggable",void 0),u([(0,g.A)({type:Boolean})],d.prototype,"resizable",void 0),u([(0,g.A)()],d.prototype,"state",void 0),u([(0,C.A)()],d.prototype,"header",void 0),u([(0,C.A)()],d.prototype,"footer",void 0),u([(0,M.A)("@ui5/webcomponents")],d,"i18nBundle",void 0),d=f=u([(0,A.A)({tag:"ui5-dialog",template:function I(){return j.Ay.call(this,{beforeContent:K,afterContent:U})},styles:[O.A.styles,X.A,'.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_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(--sapNegativeElementColor)}:host([state="Information"]) .ui5-dialog-value-state-icon{color:var(--sapInformativeElementColor)}:host([state="Positive"]) .ui5-dialog-value-state-icon{color:var(--sapPositiveElementColor)}:host([state="Critical"]) .ui5-dialog-value-state-icon{color:var(--sapCriticalElementColor)}.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_dialog_header_focus_left_offset);bottom:var(--_ui5_dialog_header_focus_bottom_offset);right:var(--_ui5_dialog_header_focus_right_offset);top:var(--_ui5_dialog_header_focus_top_offset);border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);border-radius:var(--_ui5_dialog_header_border_radius) var(--_ui5_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_dialog_content_min_height);flex:1 1 auto}.ui5-popup-resize-handle{position:absolute;bottom:-.5rem;inset-inline-end:-.5rem;cursor:var(--_ui5_dialog_resize_cursor);width:1.5rem;height:1.5rem;border-radius:50%}.ui5-popup-resize-handle [ui5-icon]{color:var(--sapButton_Lite_TextColor)}:host::backdrop{background-color:var(--_ui5_popup_block_layer_background);opacity:var(--_ui5_popup_block_layer_opacity)}.ui5-block-layer{display:block}\n']})],d),d.define();const k=d;var Q=i(171),W=i(6634);(0,x.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,y.A)(function*(){return P.A})),(0,x.Rh)("@ui5/webcomponents","sap_horizon",(0,y.A)(function*(){return L.A}),"host");var z,w=function(c,e,t,s){var a,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(c,e,t,s);else for(var h=c.length-1;h>=0;h--)(a=c[h])&&(o=(r<3?a(o):r>3?a(e,t,o):a(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o};let _=z=class extends W.Ay{constructor(){super(),this.contentOnlyOnDesktop=!1,this._hideHeader=!1,this._hideCloseButton=!1}openPopup(){var e=()=>super.openPopup,t=this;return(0,y.A)(function*(){(0,p.tp)()?t._dialog&&(t._dialog.open=!0):yield e().call(t)})()}_show(){var e=()=>super._show,t=this;return(0,y.A)(function*(){if(!(0,p.tp)())return e().call(t)})()}handleOpenOnEnterDOM(){this.open&&!(0,p.tp)()&&(this.showPopover(),this.openPopup())}_dialogCloseButtonClick(){this.closePopup()}closePopup(e=!1,t=!1,s=!1){(0,p.tp)()?this._dialog?.closePopup(e,t,s):super.closePopup(e,t,s)}toggle(e){this.open?this.closePopup():(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(0,p.tp)()?this._dialog.contentDOM:super.contentDOM}get _isPhone(){return(0,p.tp)()}get _displayHeader(){return((0,p.tp)()||!this.contentOnlyOnDesktop)&&super._displayHeader}get _displayFooter(){return(0,p.tp)()||!this.contentOnlyOnDesktop}get _closeDialogAriaLabel(){return z.i18nBundle.getText(H.W_p)}_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(0,p.tp)()?this._dialog.isModal:super.isModal}};w([(0,g.A)({type:Boolean})],_.prototype,"contentOnlyOnDesktop",void 0),w([(0,g.A)({type:Boolean})],_.prototype,"_hideHeader",void 0),w([(0,g.A)({type:Boolean})],_.prototype,"_hideCloseButton",void 0),w([(0,M.A)("@ui5/webcomponents")],_,"i18nBundle",void 0),_=z=w([(0,A.A)({tag:"ui5-responsive-popover",styles:[W.Ay.styles,":host{min-width:6.25rem;min-height:2rem}:host([on-phone]){display:contents}.ui5-responsive-popover-header{height:var(--_ui5-responsive_popover_header_height);display:flex;justify-content:var(--_ui5_popup_header_prop_header_text_alignment);align-items:center;width:100%}.ui5-responsive-popover-header-text{width:calc(100% - var(--_ui5_button_base_min_width))}.ui5-responsive-popover-header-no-title{justify-content:flex-end}\n"],template:function Z(){return this._isPhone?(0,n.FD)(k,{"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&&(0,n.Y)(n.FK,{children:this.header.length?(0,n.Y)("slot",{slot:"header",name:"header"}):(0,n.FD)("div",{class:this.classes.header,slot:"header",children:[this.headerText&&(0,n.Y)(T.A,{level:"H1",wrappingType:"None",class:"ui5-popup-header-text ui5-responsive-popover-header-text",children:this.headerText}),!this._hideCloseButton&&(0,n.Y)(Q.A,{icon:Y.Ay,design:"Transparent",accessibleName:this._closeDialogAriaLabel,onClick:this._dialogCloseButtonClick})]})}),(0,n.Y)("slot",{}),(0,n.Y)("slot",{slot:"footer",name:"footer"})]}):N.A.call(this)}})],_),_.define();const q=_}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[778],{778(ee,F,i){i.d(F,{A:()=>q});var H=i(467),A=i(1934),f=i(1642),p=i(6136),M=i(3651),y=i(5166),n=i(1892),Y=i(1278),N=i(555),C=i(6993),m=i(8762),l=i(2358),D=i(594),B=i(1045),O=i(9859),$=(i(4257),i(2601),i(8911),i(441),i(81)),j=i(8520),T=i(6983),E=i(563);function K(){return(0,n.Y)(n.FK,{children:!!this._displayHeader&&(0,n.Y)("header",{children:(0,n.FD)("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&&(0,n.Y)(E.A,{class:"ui5-dialog-value-state-icon",name:this._dialogStateIcon}),this.header.length?(0,n.Y)("slot",{name:"header"}):(0,n.Y)(T.A,{level:"H1",id:"ui5-popup-header-text",class:"ui5-popup-header-text",children:this.headerText}),this.resizable?(0,n.Y)("span",this.draggable?{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextDraggableAndResizable}:{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextResizable}):this.draggable&&(0,n.Y)("span",{id:`${this._id}-descr`,"aria-hidden":"true",class:"ui5-hidden-text",children:this.ariaDescribedByHeaderTextDraggable})]})})})}function U(){return(0,n.FD)(n.FK,{children:[!!this.footer.length&&(0,n.Y)("footer",{class:"ui5-popup-footer-root",part:"footer",children:(0,n.Y)("slot",{name:"footer"})}),this._showResizeHandle&&(0,n.Y)("div",{class:"ui5-popup-resize-handle",onMouseDown:this._onResizeMouseDown,children:(0,n.Y)(E.A,{name:$.Ay})})]})}var X=i(1926),x=i(8923),P=i(303),L=i(5444);(0,x.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,H.A)(function*(){return P.A})),(0,x.Rh)("@ui5/webcomponents","sap_horizon",(0,H.A)(function*(){return L.A}),"host");var c,S=i(9634),u=function(g,e,t,s){var a,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(g,e,t,s);else for(var h=g.length-1;h>=0;h--)(a=g[h])&&(o=(r<3?a(o):r>3?a(e,t,o):a(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o};const v=16,V={[D.A.Negative]:"error",[D.A.Critical]:"alert",[D.A.Positive]:"sys-enter-2",[D.A.Information]:"information"};let d=c=class extends O.A{constructor(){super(),this.stretch=!1,this.draggable=!1,this.resizable=!1,this.state="None",this._draggedOrResized=!1,this._dragHandlerRegistered=!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")||"header"===e.getAttribute("slot")}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?c.i18nBundle.getText(y.lXU):void 0}get effectiveAriaDescribedBy(){return this.resizable||this.draggable?`${this._id}-descr`:void 0}get ariaDescribedByHeaderTextResizable(){return c.i18nBundle.getText(y.QGn)}get ariaDescribedByHeaderTextDraggable(){return c.i18nBundle.getText(y.kHh)}get ariaDescribedByHeaderTextDraggableAndResizable(){return c.i18nBundle.getText(y.CR4)}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 s=this._root.querySelector(".ui5-popup-footer-root");return s&&(e+=s.offsetHeight),e}get hasValueState(){return this.state!==D.A.None}get _dialogStateIcon(){return V[this.state]}get _role(){if(this.accessibleRole!==S.A.None)return(0,B.A)(this.state===D.A.Negative||this.state===D.A.Critical?S.A.AlertDialog:this.accessibleRole)}_show(){super._show(),this._center()}onBeforeRendering(){super.onBeforeRendering(),this._isRTL="rtl"===this.effectiveDir}_resize(){super._resize(),this._draggedOrResized||this._center()}_screenResize(){this._center()}_attachBrowserEvents(){this._attachScreenResizeHandler(),this._registerDragHandler()}_detachBrowserEvents(){this._detachScreenResizeHandler(),this._deregisterDragHandler()}_attachScreenResizeHandler(){this._screenResizeHandlerAttached||(window.addEventListener("resize",this._screenResizeHandler),this._screenResizeHandlerAttached=!0)}_detachScreenResizeHandler(){this._screenResizeHandlerAttached&&(window.removeEventListener("resize",this._screenResizeHandler),this._screenResizeHandlerAttached=!1)}_registerDragHandler(){this._dragHandlerRegistered||(this.addEventListener("dragstart",this._dragStartHandler),this._dragHandlerRegistered=!0)}_deregisterDragHandler(){this._dragHandlerRegistered&&(this.removeEventListener("dragstart",this._dragStartHandler),this._dragHandlerRegistered=!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||!c._isHeader(e.target))return;const{top:t,left:s}=this.getBoundingClientRect(),{width:r,height:o}=window.getComputedStyle(this);Object.assign(this.style,{top:`${t}px`,left:`${s}px`,width:Math.round(100*Number.parseFloat(r))/100+"px",height:Math.round(100*Number.parseFloat(o))/100+"px"}),this._x=e.clientX,this._y=e.clientY,this._draggedOrResized=!0,this._attachMouseDragHandlers()}_onDragMouseMove(e){e.preventDefault();const{clientX:t,clientY:s}=e,r=this._x-t,o=this._y-s,{left:a,top:h}=this.getBoundingClientRect();Object.assign(this.style,{left:`${Math.floor(a-r)}px`,top:`${Math.floor(h-o)}px`}),this._x=t,this._y=s}_onDragMouseUp(){delete this._x,delete this._y,this._detachMouseDragHandlers()}_onDragOrResizeKeyDown(e){if(this._movable&&c._isHeader(e.target)){if(this.draggable&&[l.ie,l.Pj,l.OC,l.FG].some(t=>t(e)))return void this._dragWithEvent(e);this.resizable&&[l.aI,l.tt,l.KK,l.hn].some(t=>t(e))&&this._resizeWithEvent(e)}}_dragWithEvent(e){const{top:t,left:s,width:r,height:o}=this.getBoundingClientRect();let a=0,h="top";switch(!0){case(0,l.ie)(e):a=t-v,h="top";break;case(0,l.Pj)(e):a=t+v,h="top";break;case(0,l.OC)(e):a=s-v,h="left";break;case(0,l.FG)(e):a=s+v,h="left"}a=(0,m.A)(a,0,"left"===h?window.innerWidth-r:window.innerHeight-o),this.style[h]=`${a}px`}_resizeWithEvent(e){this._draggedOrResized=!0,this.addEventListener("ui5-before-close",this._revertSize,{once:!0});const{top:t,left:s}=this.getBoundingClientRect(),r=window.getComputedStyle(this),o=Number.parseFloat(r.minWidth),a=window.innerWidth-s,h=window.innerHeight-t;let b=Number.parseFloat(r.width),R=Number.parseFloat(r.height);switch(!0){case(0,l.aI)(e):R-=v;break;case(0,l.tt)(e):R+=v;break;case(0,l.KK)(e):b-=v;break;case(0,l.hn)(e):b+=v}b=(0,m.A)(b,o,a),R=(0,m.A)(R,this._minHeight,h),Object.assign(this.style,{width:`${b}px`,height:`${R}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:s}=this.getBoundingClientRect(),{width:r,height:o,minWidth:a}=window.getComputedStyle(this);this._initialX=e.clientX,this._initialY=e.clientY,this._initialWidth=Number.parseFloat(r),this._initialHeight=Number.parseFloat(o),this._initialTop=t,this._initialLeft=s,this._minWidth=Number.parseFloat(a),this._cachedMinHeight=this._minHeight,Object.assign(this.style,{top:`${t}px`,left:`${s}px`}),this._draggedOrResized=!0,this._attachMouseResizeHandlers()}_onResizeMouseMove(e){const{clientX:t,clientY:s}=e;let r,o;if(this._isRTL){r=(0,m.A)(this._initialWidth-(t-this._initialX),this._minWidth,this._initialLeft+this._initialWidth),Object.assign(this.style,{width:`${r}px`});const h=r-this.getBoundingClientRect().width,b=this._initialLeft+this._initialWidth+h;o=(0,m.A)(b-r,0,b-this._minWidth)}else r=(0,m.A)(this._initialWidth+(t-this._initialX),this._minWidth,window.innerWidth-this._initialLeft);const a=(0,m.A)(this._initialHeight+(s-this._initialY),this._cachedMinHeight,window.innerHeight-this._initialTop);Object.assign(this.style,{height:`${a}px`,width:`${r}px`,left:this._isRTL?`${o}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.target instanceof HTMLElement&&c._isHeader(e.target)&&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)}};u([(0,f.A)()],d.prototype,"headerText",void 0),u([(0,f.A)({type:Boolean})],d.prototype,"stretch",void 0),u([(0,f.A)({type:Boolean})],d.prototype,"draggable",void 0),u([(0,f.A)({type:Boolean})],d.prototype,"resizable",void 0),u([(0,f.A)()],d.prototype,"state",void 0),u([(0,C.A)()],d.prototype,"header",void 0),u([(0,C.A)()],d.prototype,"footer",void 0),u([(0,M.A)("@ui5/webcomponents")],d,"i18nBundle",void 0),d=c=u([(0,A.A)({tag:"ui5-dialog",template:function I(){return j.Ay.call(this,{beforeContent:K,afterContent:U})},styles:[O.A.styles,X.A,'.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_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(--sapNegativeElementColor)}:host([state="Information"]) .ui5-dialog-value-state-icon{color:var(--sapInformativeElementColor)}:host([state="Positive"]) .ui5-dialog-value-state-icon{color:var(--sapPositiveElementColor)}:host([state="Critical"]) .ui5-dialog-value-state-icon{color:var(--sapCriticalElementColor)}.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_dialog_header_focus_left_offset);bottom:var(--_ui5_dialog_header_focus_bottom_offset);right:var(--_ui5_dialog_header_focus_right_offset);top:var(--_ui5_dialog_header_focus_top_offset);border:var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);border-radius:var(--_ui5_dialog_header_border_radius) var(--_ui5_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_dialog_content_min_height);flex:1 1 auto}.ui5-popup-resize-handle{position:absolute;bottom:-.5rem;inset-inline-end:-.5rem;cursor:var(--_ui5_dialog_resize_cursor);width:1.5rem;height:1.5rem;border-radius:50%}.ui5-popup-resize-handle [ui5-icon]{color:var(--sapButton_Lite_TextColor)}:host::backdrop{background-color:var(--_ui5_popup_block_layer_background);opacity:var(--_ui5_popup_block_layer_opacity)}.ui5-block-layer{display:block}\n']})],d),d.define();const k=d;var Q=i(171),W=i(6634);(0,x.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,H.A)(function*(){return P.A})),(0,x.Rh)("@ui5/webcomponents","sap_horizon",(0,H.A)(function*(){return L.A}),"host");var z,w=function(g,e,t,s){var a,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(g,e,t,s);else for(var h=g.length-1;h>=0;h--)(a=g[h])&&(o=(r<3?a(o):r>3?a(e,t,o):a(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o};let _=z=class extends W.Ay{constructor(){super(),this.contentOnlyOnDesktop=!1,this._hideHeader=!1,this._hideCloseButton=!1}openPopup(){var e=()=>super.openPopup,t=this;return(0,H.A)(function*(){(0,p.tp)()?t._dialog&&(t._dialog.open=!0):yield e().call(t)})()}_show(){var e=()=>super._show,t=this;return(0,H.A)(function*(){if(!(0,p.tp)())return e().call(t)})()}handleOpenOnEnterDOM(){this.open&&!(0,p.tp)()&&(this.showPopover(),this.openPopup())}_dialogCloseButtonClick(){this.closePopup()}closePopup(e=!1,t=!1,s=!1){(0,p.tp)()?this._dialog?.closePopup(e,t,s):super.closePopup(e,t,s)}toggle(e){this.open?this.closePopup():(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(0,p.tp)()?this._dialog.contentDOM:super.contentDOM}get _isPhone(){return(0,p.tp)()}get _displayHeader(){return((0,p.tp)()||!this.contentOnlyOnDesktop)&&super._displayHeader}get _displayFooter(){return(0,p.tp)()||!this.contentOnlyOnDesktop}get _closeDialogAriaLabel(){return z.i18nBundle.getText(y.W_p)}_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(0,p.tp)()?this._dialog.isModal:super.isModal}};w([(0,f.A)({type:Boolean})],_.prototype,"contentOnlyOnDesktop",void 0),w([(0,f.A)({type:Boolean})],_.prototype,"_hideHeader",void 0),w([(0,f.A)({type:Boolean})],_.prototype,"_hideCloseButton",void 0),w([(0,M.A)("@ui5/webcomponents")],_,"i18nBundle",void 0),_=z=w([(0,A.A)({tag:"ui5-responsive-popover",styles:[W.Ay.styles,":host{min-width:6.25rem;min-height:2rem}:host([on-phone]){display:contents}.ui5-responsive-popover-header{height:var(--_ui5-responsive_popover_header_height);display:flex;justify-content:var(--_ui5_popup_header_prop_header_text_alignment);align-items:center;width:100%}.ui5-responsive-popover-header-text{width:calc(100% - var(--_ui5_button_base_min_width))}.ui5-responsive-popover-header-no-title{justify-content:flex-end}\n"],template:function Z(){return this._isPhone?(0,n.FD)(k,{"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&&(0,n.Y)(n.FK,{children:this.header.length?(0,n.Y)("slot",{slot:"header",name:"header"}):(0,n.FD)("div",{class:this.classes.header,slot:"header",children:[this.headerText&&(0,n.Y)(T.A,{level:"H1",wrappingType:"None",class:"ui5-popup-header-text ui5-responsive-popover-header-text",children:this.headerText}),!this._hideCloseButton&&(0,n.Y)(Q.A,{icon:Y.Ay,design:"Transparent",accessibleName:this._closeDialogAriaLabel,onClick:this._dialogCloseButtonClick})]})}),(0,n.Y)("slot",{}),(0,n.Y)("slot",{slot:"footer",name:"footer"})]}):N.A.call(this)}})],_),_.define();const q=_}}]);
|
package/assets/955.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[955],{5955(ee,D,a){a.d(D,{default:()=>k});var y=a(8431);function p(n,l,e,t){return n.replaceAll(new RegExp((n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(l),(t?"i":"")+"g"),e)}var I=a(1934),g=a(1642),L=a(6136),f=a(6981),o=a(1892);function Y(n,l){const e=n?.listItemContent||H;return(0,o.Y)("li",{part:"native-li","data-sap-focus-ref":!0,tabindex:this._effectiveTabIndex,class:this.classes.main,draggable:this.movable,role:l?.role,title:l?.title,onFocusIn:this._onfocusin,onKeyUp:this._onkeyup,onKeyDown:this._onkeydown,onClick:this._onclick,children:e.call(this)})}function H(){return(0,o.Y)("div",{part:"content",id:`${this._id}-content`,class:"ui5-li-content",children:(0,o.Y)("div",{class:"ui5-li-text-wrapper",children:(0,o.Y)("span",{part:"title",class:"ui5-li-title",children:(0,o.Y)("slot",{})})})})}function w(){return(0,o.Y)("div",{part:"content",id:"content",class:"ui5-li-content",children:(0,o.FD)("div",{class:"ui5-li-text-wrapper",children:[(0,o.Y)("span",{part:"title",className:"ui5-li-title",dangerouslySetInnerHTML:{__html:this.markupText}}),this.additionalText&&(0,o.Y)("span",{part:"additional-text",class:"ui5-li-additional-text",children:this.additionalText})]})})}var v=a(467),x=a(8923),M=a(303),V=a(5444);(0,x.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,v.A)(function*(){return M.A})),(0,x.Rh)("@ui5/webcomponents","sap_horizon",(0,v.A)(function*(){return V.A}),"host");var d=function(n,l,e,t){var r,i=arguments.length,s=i<3?l:null===t?t=Object.getOwnPropertyDescriptor(l,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,l,e,t);else for(var u=n.length-1;u>=0;u--)(r=n[u])&&(s=(i<3?r(s):i>3?r(l,e,s):r(l,e))||s);return i>3&&s&&Object.defineProperty(l,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[Y.call(this,{listItemContent:w},{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 N=a(6993),$=a(6374),B=a(45),z=a(7601),j=a(897);function U(){return(0,o.Y)("slot",{})}var S=function(n,l,e,t){var r,i=arguments.length,s=i<3?l:null===t?t=Object.getOwnPropertyDescriptor(l,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,l,e,t);else for(var u=n.length-1;u>=0;u--)(r=n[u])&&(s=(i<3?r(s):i>3?r(l,e,s):r(l,e))||s);return i>3&&s&&Object.defineProperty(l,e,s),s};let m=class extends $.A{};S([(0,N.A)({default:!0,invalidateOnChildChange:!0,type:HTMLElement})],m.prototype,"items",void 0),m=S([(0,I.A)({tag:"ui5-suggestion-item-group",template:function K(n){const l=n?.items||U;return(0,o.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,o.Y)(B.A,{focused:this.focused,part:"header",accessibleRole:j.A.Group,wrappingType:this.getGroupHeaderWrapping(),children:this.hasFormattedHeader?(0,o.Y)("slot",{name:"header"}):this.headerText}),l.call(this),(0,o.Y)(z.A,{orientation:"Horizontal",ownerReference:this})]})}})],m),m.define();var A=a(1279),C=a(563),W=a(1973),X=a(778),T=a(171),J=a(9698);function Q(n){const l=n?.suggestionsList||Z,e=n?.mobileHeader,t=n?.valueStateMessage,i=n?.valueStateMessageInputIcon;return(0,o.FD)(X.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,o.Y)(o.FK,{children:(0,o.FD)("div",{slot:"header",class:"ui5-responsive-popover-header",children:[(0,o.Y)("div",{class:"row",children:(0,o.Y)("span",{children:this._headerTitleText})}),(0,o.Y)("div",{class:"row",children:(0,o.FD)("div",{class:"input-root-phone native-input-wrapper",children:[(0,o.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,o.FD)("div",{class:this.classes.popoverValueState,style:this.styles.suggestionPopoverHeader,children:[(0,o.Y)(C.A,{class:"ui5-input-value-state-message-icon",name:i?.call(this)}),this.open&&t?.call(this)]})]})}),!this._isPhone&&this.hasValueStateMessage&&(0,o.FD)("div",{slot:"header",class:{"ui5-responsive-popover-header":!0,...this.classes.popoverValueState},style:this.styles.suggestionPopoverHeader,children:[(0,o.Y)(C.A,{class:"ui5-input-value-state-message-icon",name:i?.call(this)}),this.open&&t?.call(this)]}),this.showSuggestions&&l.call(this),this._isPhone&&(0,o.FD)("div",{slot:"footer",class:"ui5-responsive-popover-footer",children:[(0,o.Y)(T.A,{design:"Emphasized",onClick:this._confirmMobileValue,children:this._suggestionsOkButtonText}),(0,o.Y)(T.A,{class:"ui5-responsive-popover-close-btn",design:"Transparent",onClick:this._cancelMobileValue,children:this._suggestionsCancelButtonText})]})]})}function Z(){return(0,o.Y)(W.A,{accessibleRole:J.A.ListBox,separators:this.suggestionSeparators,selectionMode:"Single",onMouseDown:this.onItemMouseDown,onItemClick:this._handleSuggestionItemPress,onSelectionChange:this._handleSelectionChange,children:(0,o.Y)("slot",{})})}var b=a(5166);let _=(()=>{class n{get template(){return Q}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],r=i[e],u=this._getNonGroupItems(),h=s?.hasAttribute("ui5-suggestion-item-group");if(!s)return;this.component.focused=!1;const P=this.visibleItems[this.selectedItemIndex];if(this.accInfo={isGroup:h,currentPos:i.indexOf(s)+1,itemText:(h?P.headerText:P.text)||""},(s.hasAttribute("ui5-suggestion-item")||s.hasAttribute("ui5-suggestion-item-custom"))&&(this.accInfo.additionalText=s.additionalText||"",this.accInfo.currentPos=u.indexOf(s)+1,this.accInfo.listSize=u.length),r&&(r.focused=!1),(r?.hasAttribute("ui5-suggestion-item")||r?.hasAttribute("ui5-suggestion-item-custom"))&&(r.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 q=this._isGroupItem?s.shadowRoot.querySelector("[ui5-li-group-header]"):s;this._scrollItemIntoView(q)}}_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 r=0;return this._hasValueState&&(r=this._getPicker().querySelector("[slot=header]").getBoundingClientRect().height),t.top+n.SCROLL_STEP<=s&&t.top>=i.top+r}_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(b.Fr3)} ${this.accInfo.itemText}`;const e=n.i18nBundle.getText(b.piN,this.accInfo.currentPos||0,this.accInfo.listSize||0);return`${this.accInfo.additionalText} ${e}`.trim()}hightlightInput(e,t){return function O(n,l){if(!n||!l)return n;const e=r=>{const[u,h]=r.split("");for(;n.indexOf(r)>=0||l.indexOf(r)>=0;)r=`${u}${r}${h}`;return r},t=e("12"),i=e("34");let s=(0,y.A)(p(n,l,r=>`${t}${r}${i}`,!0));return[[t,"<b>"],[i,"</b>"]].forEach(([r,u])=>{s=p(s,r,u,!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=_;const k=_}}]);
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[955],{5955(te,_,a){a.d(_,{default:()=>q});var R=a(8431);function p(n,l,e,t){return n.replaceAll(new RegExp((n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(l),(t?"i":"")+"g"),e)}var I=a(1934),g=a(1642),L=a(6136),f=a(6981),o=a(1892);function Y(n,l){const e=n?.listItemContent||H;return(0,o.Y)("li",{part:"native-li","data-sap-focus-ref":!0,tabindex:this._effectiveTabIndex,class:this.classes.main,draggable:this.movable,role:l?.role,title:l?.title,onFocusIn:this._onfocusin,onKeyUp:this._onkeyup,onKeyDown:this._onkeydown,onClick:this._onclick,children:e.call(this)})}function H(){return(0,o.Y)("div",{part:"content",id:`${this._id}-content`,class:"ui5-li-content",children:(0,o.Y)("div",{class:"ui5-li-text-wrapper",children:(0,o.Y)("span",{part:"title",class:"ui5-li-title",children:(0,o.Y)("slot",{})})})})}function V(){return(0,o.Y)("div",{part:"content",id:"content",class:"ui5-li-content",children:(0,o.FD)("div",{class:"ui5-li-text-wrapper",children:[(0,o.Y)("span",{part:"title",className:"ui5-li-title",dangerouslySetInnerHTML:{__html:this.markupText}}),this.additionalText&&(0,o.Y)("span",{part:"additional-text",class:"ui5-li-additional-text",children:this.additionalText})]})})}var v=a(467),x=a(8923),w=a(303),M=a(5444);(0,x.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,v.A)(function*(){return w.A})),(0,x.Rh)("@ui5/webcomponents","sap_horizon",(0,v.A)(function*(){return M.A}),"host");var d=function(n,l,e,t){var r,i=arguments.length,s=i<3?l:null===t?t=Object.getOwnPropertyDescriptor(l,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,l,e,t);else for(var u=n.length-1;u>=0;u--)(r=n[u])&&(s=(i<3?r(s):i>3?r(l,e,s):r(l,e))||s);return i>3&&s&&Object.defineProperty(l,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[Y.call(this,{listItemContent:V},{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=a(6993),$=a(6374),B=a(45),z=a(7601),j=a(897);function U(){return(0,o.Y)("slot",{})}var S=function(n,l,e,t){var r,i=arguments.length,s=i<3?l:null===t?t=Object.getOwnPropertyDescriptor(l,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(n,l,e,t);else for(var u=n.length-1;u>=0;u--)(r=n[u])&&(s=(i<3?r(s):i>3?r(l,e,s):r(l,e))||s);return i>3&&s&&Object.defineProperty(l,e,s),s};let m=class extends $.A{};S([(0,E.A)({default:!0,invalidateOnChildChange:!0,type:HTMLElement})],m.prototype,"items",void 0),m=S([(0,I.A)({tag:"ui5-suggestion-item-group",template:function K(n){const l=n?.items||U;return(0,o.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,o.Y)(B.A,{focused:this.focused,part:"header",accessibleRole:j.A.Group,wrappingType:this.getGroupHeaderWrapping(),children:this.hasFormattedHeader?(0,o.Y)("slot",{name:"header"}):this.headerText}),l.call(this),(0,o.Y)(z.A,{orientation:"Horizontal",ownerReference:this})]})}})],m),m.define();var A=a(1279),T=a(563),W=a(1973),X=a(778),C=a(171),J=a(9698),Q=a(6983);function Z(n){const l=n?.suggestionsList||k,e=n?.mobileHeader,t=n?.valueStateMessage,i=n?.valueStateMessageInputIcon;return(0,o.FD)(X.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,o.Y)(o.FK,{children:(0,o.FD)("div",{slot:"header",class:"ui5-responsive-popover-header",children:[(0,o.Y)("div",{class:"row",children:(0,o.Y)(Q.A,{level:"H1",wrappingType:"None",class:"ui5-responsive-popover-header-text",children:this._headerTitleText})}),(0,o.Y)("div",{class:"row",children:(0,o.FD)("div",{class:"input-root-phone native-input-wrapper",children:[(0,o.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,o.FD)("div",{class:this.classes.popoverValueState,style:this.styles.suggestionPopoverHeader,children:[(0,o.Y)(T.A,{class:"ui5-input-value-state-message-icon",name:i?.call(this)}),this.open&&t?.call(this)]})]})}),!this._isPhone&&this.hasValueStateMessage&&(0,o.FD)("div",{slot:"header",class:{"ui5-responsive-popover-header":!0,...this.classes.popoverValueState},style:this.styles.suggestionPopoverHeader,children:[(0,o.Y)(T.A,{class:"ui5-input-value-state-message-icon",name:i?.call(this)}),this.open&&t?.call(this)]}),this.showSuggestions&&l.call(this),this._isPhone&&(0,o.FD)("div",{slot:"footer",class:"ui5-responsive-popover-footer",children:[(0,o.Y)(C.A,{design:"Emphasized",onClick:this._confirmMobileValue,children:this._suggestionsOkButtonText}),(0,o.Y)(C.A,{class:"ui5-responsive-popover-close-btn",design:"Transparent",onClick:this._cancelMobileValue,children:this._suggestionsCancelButtonText})]})]})}function k(){return(0,o.Y)(W.A,{accessibleRole:J.A.ListBox,separators:this.suggestionSeparators,selectionMode:"Single",onMouseDown:this.onItemMouseDown,onItemClick:this._handleSuggestionItemPress,onSelectionChange:this._handleSelectionChange,children:(0,o.Y)("slot",{})})}var b=a(5166);let P=(()=>{class n{get template(){return Z}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,this.component.value=this.component.typedInValue,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],r=i[e],u=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=u.indexOf(s)+1,this.accInfo.listSize=u.length),r&&(r.focused=!1),(r?.hasAttribute("ui5-suggestion-item")||r?.hasAttribute("ui5-suggestion-item-custom"))&&(r.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 ee=this._isGroupItem?s.shadowRoot.querySelector("[ui5-li-group-header]"):s;this._scrollItemIntoView(ee)}}_deselectItems(){this._getItems().forEach(t=>{(t.hasAttribute("ui5-suggestion-item")||t.hasAttribute("ui5-suggestion-item-custom"))&&(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 r=0;return this._hasValueState&&(r=this._getPicker().querySelector("[slot=header]").getBoundingClientRect().height),t.top+n.SCROLL_STEP<=s&&t.top>=i.top+r}_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(b.Fr3)} ${this.accInfo.itemText}`;const e=n.i18nBundle.getText(b.piN,this.accInfo.currentPos||0,this.accInfo.listSize||0);return`${this.accInfo.additionalText} ${e}`.trim()}hightlightInput(e,t){return function O(n,l){if(!n||!l)return n;const e=r=>{const[u,h]=r.split("");for(;n.indexOf(r)>=0||l.indexOf(r)>=0;)r=`${u}${r}${h}`;return r},t=e("12"),i=e("34");let s=(0,R.A)(p(n,l,r=>`${t}${r}${i}`,!0));return[[t,"<b>"],[i,"</b>"]].forEach(([r,u])=>{s=p(s,r,u,!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=P;const q=P}}]);
|