@platform-mesh/portal-ui-lib 0.44.60 → 0.44.64

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/550.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[550],{6550(L,S,o){o.d(S,{default:()=>V});var x=o(8577),C=(o(447),o(1934)),_=o(6993),P=o(6374),A=o(9185),d=function(l,u,e,t){var r,s=arguments.length,i=s<3?u:null===t?t=Object.getOwnPropertyDescriptor(u,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(l,u,e,t);else for(var c=l.length-1;c>=0;c--)(r=l[c])&&(i=(s<3?r(i):s>3?r(u,e,i):r(u,e))||i);return s>3&&i&&Object.defineProperty(u,e,i),i};let h=class extends P.A{};d([(0,_.A)({default:!0,invalidateOnChildChange:!0,type:HTMLElement})],h.prototype,"items",void 0),h=d([(0,C.A)({tag:"ui5-suggestion-item-group",template:A.A})],h),h.define();var n=o(1892),m=o(5943),g=o(8731),T=o(9499),b=o(2920),I=o(5231),D=o(9698),G=o(7538);function R(l){const u=l?.suggestionsList||O,e=l?.mobileHeader,t=l?.valueStateMessage,s=l?.valueStateMessageInputIcon;return(0,n.FD)(b.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,n.Y)(n.FK,{children:(0,n.FD)("div",{slot:"header",class:"ui5-responsive-popover-header",children:[(0,n.Y)("div",{class:"row",children:(0,n.Y)(G.A,{level:"H1",wrappingType:"None",class:"ui5-responsive-popover-header-text",children:this._headerTitleText})}),(0,n.Y)("div",{class:"row",children:(0,n.FD)("div",{class:"input-root-phone native-input-wrapper",children:[(0,n.Y)(m.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,n.FD)("div",{class:this.classes.popoverValueState,style:this.styles.suggestionPopoverHeader,children:[(0,n.Y)(g.A,{class:"ui5-input-value-state-message-icon",name:s?.call(this)}),this.open&&t?.call(this)]})]})}),!this._isPhone&&this.hasValueStateMessage&&(0,n.FD)("div",{slot:"header",class:{"ui5-responsive-popover-header":!0,...this.classes.popoverValueState},style:this.styles.suggestionPopoverHeader,children:[(0,n.Y)(g.A,{class:"ui5-input-value-state-message-icon",name:s?.call(this)}),this.open&&t?.call(this)]}),this.showSuggestions&&u.call(this),this._isPhone&&(0,n.FD)("div",{slot:"footer",class:"ui5-responsive-popover-footer",children:[(0,n.Y)(I.A,{design:"Emphasized",onClick:this._confirmMobileValue,children:this._suggestionsOkButtonText}),(0,n.Y)(I.A,{class:"ui5-responsive-popover-close-btn",design:"Transparent",onClick:this._cancelMobileValue,children:this._suggestionsCancelButtonText})]})]})}function O(){return(0,n.Y)(T.A,{accessibleRole:D.A.ListBox,separators:this.suggestionSeparators,selectionMode:"Single",onMouseDown:this.onItemMouseDown,onItemClick:this._handleSuggestionItemPress,onSelectionChange:this._handleSelectionChange,children:(0,n.Y)("slot",{})})}var p=o(5166);let f=(()=>{class l{get template(){return R}constructor(e,t,s,i){this.component=e,this.slotName=t,this.handleFocus=i,this.highlight=s,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 s=t.length-1;return this._moveItemSelection(this.selectedItemIndex,this.selectedItemIndex+10<=s?this.selectedItemIndex+=10:this.selectedItemIndex=s),!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 s=this._getPicker();s.preventFocusRestore=e,s.open=!1,t&&t.focused&&(t.focused=!1)}updateSelectedItemPosition(e){this.selectedItemIndex=e}onItemSelected(e,t){const s=e,i=this._getNonGroupItems();s&&(this.accInfo={isGroup:s.hasAttribute("ui5-suggestion-item-group"),currentPos:i.indexOf(s)+1,listSize:i.length,itemText:s.text||"",additionalText:s.additionalText},this._getComponent().onItemSelected(s,t),this._getComponent().open=!1)}onItemSelect(e){this._getComponent().onItemSelect(e)}onItemPress(e){let t;const s="ui5-item-click"===e.type;s&&!e.detail.item.selected||this._handledPress&&!s||(s&&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 s=this.visibleItems,i=s[t],r=s[e],c=this._getNonGroupItems(),a=i?.hasAttribute("ui5-suggestion-item-group");if(!i)return;this.component.focused=!1;const v=this.visibleItems[this.selectedItemIndex];if(this.accInfo={isGroup:a,currentPos:s.indexOf(i)+1,itemText:(a?v.headerText:v.text)||""},(i.hasAttribute("ui5-suggestion-item")||i.hasAttribute("ui5-suggestion-item-custom"))&&(this.accInfo.additionalText=i.additionalText||"",this.accInfo.currentPos=c.indexOf(i)+1,this.accInfo.listSize=c.length),r&&(r.focused=!1),(r?.hasAttribute("ui5-suggestion-item")||r?.hasAttribute("ui5-suggestion-item-custom"))&&(r.selected=!1),i&&(i.focused=!0,a||(i.selected=!0),this.handleFocus&&i.focus()),this.component.hasSuggestionItemSelected=!0,this.onItemSelect(i),!this._isItemIntoView(i)){const y=this._isGroupItem?i.shadowRoot.querySelector("[ui5-li-group-header]"):i;this._scrollItemIntoView(y)}}_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(),s=this._getComponent().getDomRef().getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;let r=0;return this._hasValueState&&(r=this._getPicker().querySelector("[slot=header]").getBoundingClientRect().height),t.top+l.SCROLL_STEP<=i&&t.top>=s.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`${l.i18nBundle.getText(p.Fr3)} ${this.accInfo.itemText}`;const e=l.i18nBundle.getText(p.piN,this.accInfo.currentPos||0,this.accInfo.listSize||0);return`${this.accInfo.additionalText} ${e}`.trim()}hightlightInput(e,t){return(0,x.A)(e,t)}get _hasValueState(){return this.component.hasValueStateMessage}_clearSelectedSuggestionAndaccInfo(){this.accInfo=void 0,this.selectedItemIndex=0}}return l.SCROLL_STEP=60,l})();m.A.SuggestionsClass=f;const V=f}}]);
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(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})}}}]);
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(5231),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})}}}]);
package/assets/716.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[716],{716(f,h,n){n.r(h);var d=n(467),i=n(8923);const a=function(){var t=(0,d.A)(function*(o){switch(o){case"sap_fiori_3":return(yield n.e(696).then(n.t.bind(n,6633,17))).default;case"sap_fiori_3_dark":return(yield n.e(111).then(n.t.bind(n,2536,17))).default;case"sap_fiori_3_hcb":return(yield n.e(886).then(n.t.bind(n,3871,17))).default;case"sap_fiori_3_hcw":return(yield n.e(207).then(n.t.bind(n,1972,17))).default;case"sap_horizon":return(yield n.e(498).then(n.t.bind(n,6047,17))).default;case"sap_horizon_auto":return(yield n.e(80).then(n.t.bind(n,4533,17))).default;case"sap_horizon_dark":return(yield n.e(521).then(n.t.bind(n,5174,17))).default;case"sap_horizon_hc_auto":return(yield n.e(444).then(n.t.bind(n,461,17))).default;case"sap_horizon_hcb":return(yield n.e(196).then(n.t.bind(n,5969,17))).default;case"sap_horizon_hcw":return(yield n.e(837).then(n.t.bind(n,5206,17))).default;default:throw"unknown theme"}});return function(s){return t.apply(this,arguments)}}(),l=function(){var t=(0,d.A)(function*(o){const s=yield a(o);if("string"==typeof s&&s.endsWith(".json"))throw new Error('[themes] Invalid bundling detected - dynamic JSON imports bundled as URLs. Switch to inlining JSON files from the build. Check the "Assets" documentation for more information.');return s});return function(s){return t.apply(this,arguments)}}();["sap_fiori_3","sap_fiori_3_dark","sap_fiori_3_hcb","sap_fiori_3_hcw","sap_horizon","sap_horizon_auto","sap_horizon_dark","sap_horizon_hc_auto","sap_horizon_hcb","sap_horizon_hcw"].forEach(t=>(0,i.Rh)("@ui5/webcomponents-fiori",t,l,"host"))}}]);