@platform-mesh/portal-ui-lib 0.32.0 → 0.32.3
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/227.js +1 -0
- package/assets/229.js +1 -0
- package/assets/418.js +1 -1
- package/assets/59.js +1 -0
- package/assets/716.js +1 -0
- package/assets/76.js +1 -0
- package/assets/821.js +1 -0
- package/assets/913.js +1 -0
- package/assets/914.js +1 -0
- package/assets/platform-mesh-portal-ui-wc.js +198 -127
- package/assets/ui5-webcomponents-fiori-sap-fiori_3-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-fiori-sap-fiori_3_dark-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-fiori-sap-fiori_3_hcb-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-fiori-sap-fiori_3_hcw-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-fiori-sap-horizon-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-fiori-sap-horizon_dark-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-fiori-sap-horizon_hcb-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-fiori-sap-horizon_hcw-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-sap-fiori_3-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-sap-fiori_3_dark-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-sap-fiori_3_hcb-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-sap-fiori_3_hcw-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-sap-horizon-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-sap-horizon_dark-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-sap-horizon_hcb-parameters-bundle.js +1 -0
- package/assets/ui5-webcomponents-sap-horizon_hcw-parameters-bundle.js +1 -0
- package/fesm2022/platform-mesh-portal-ui-lib-portal-options.mjs +27 -27
- package/fesm2022/platform-mesh-portal-ui-lib-portal-options.mjs.map +1 -1
- package/fesm2022/platform-mesh-portal-ui-lib-services.mjs +35 -31
- package/fesm2022/platform-mesh-portal-ui-lib-services.mjs.map +1 -1
- package/fesm2022/platform-mesh-portal-ui-lib-utils.mjs +22 -1
- package/fesm2022/platform-mesh-portal-ui-lib-utils.mjs.map +1 -1
- package/models/package.json +2 -1
- package/package.json +20 -8
- package/portal-options/package.json +2 -1
- package/services/package.json +2 -1
- package/{models/index.d.ts → types/platform-mesh-portal-ui-lib-models.d.ts} +1 -1
- package/{services/index.d.ts → types/platform-mesh-portal-ui-lib-services.d.ts} +4 -3
- package/{utils/index.d.ts → types/platform-mesh-portal-ui-lib-utils.d.ts} +3 -1
- package/utils/package.json +2 -1
- package/assets/621.js +0 -1
- package/assets/646.js +0 -1
- /package/{portal-options/index.d.ts → types/platform-mesh-portal-ui-lib-portal-options.d.ts} +0 -0
- /package/{index.d.ts → types/platform-mesh-portal-ui-lib.d.ts} +0 -0
package/assets/227.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[227],{2227(L,S,l){l.d(S,{default:()=>O});var x=l(8577),_=(l(6126),l(1934)),C=l(6993),P=l(4320),A=l(8323),d=function(o,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(o,u,e,t);else for(var c=o.length-1;c>=0;c--)(r=o[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,C.A)({default:!0,invalidateOnChildChange:!0,type:HTMLElement})],h.prototype,"items",void 0),h=d([(0,_.A)({tag:"ui5-suggestion-item-group",template:A.A})],h),h.define();var n=l(1892),m=l(5459),g=l(2112),T=l(7603),b=l(8390),I=l(4154),D=l(7220);function G(o){const u=o?.suggestionsList||R,e=o?.mobileHeader,t=o?.valueStateMessage,s=o?.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)("span",{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 R(){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=l(6252);let f=(()=>{class o{get template(){return G}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,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 V=this._isGroupItem?i.shadowRoot.querySelector("[ui5-li-group-header]"):i;this._scrollItemIntoView(V)}}_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(),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+o.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`${o.i18nBundle.getText(p.Fr3)} ${this.accInfo.itemText}`;const e=o.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 o.SCROLL_STEP=60,o})();m.A.SuggestionsClass=f;const O=f}}]);
|
package/assets/229.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[229],{229(_,t,e){e.d(t,{default:()=>n});var o=e(8),l=e(4102),s=e(3248),i=e(6965);function n(){return(0,o.FD)(s.A,{open:this.dialogOpen,headerText:this.colorPaletteDialogTitle,onClose:this._closeDialog,children:[(0,o.Y)("div",{class:"ui5-cp-dialog-content",children:(0,o.Y)(i.A,{value:this.colorPickerValue,onChange:this.onColorPickerChange})}),(0,o.FD)("div",{slot:"footer",class:"ui5-cp-dialog-footer",children:[(0,o.Y)(l.A,{design:"Emphasized",onClick:this._chooseCustomColor,children:this.colorPaletteDialogOKButton}),(0,o.Y)(l.A,{design:"Transparent",onClick:this._closeDialog,children:this.colorPaletteCancelButton})]})]})}}}]);
|
package/assets/418.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[418],{1418
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[418],{1418(i,t,n){n.d(t,{default:()=>e});class e{constructor(o){this._onComposition=()=>{this._component.updateCompositionState(!0)},this._onCompositionEnd=()=>{this._component.updateCompositionState(!1)},this._component=o}addEventListeners(){const o=this._component.getInputEl();o&&(o.addEventListener("compositionstart",this._onComposition),o.addEventListener("compositionupdate",this._onComposition),o.addEventListener("compositionend",this._onCompositionEnd))}removeEventListeners(){const o=this._component.getInputEl();o&&(o.removeEventListener("compositionstart",this._onComposition),o.removeEventListener("compositionupdate",this._onComposition),o.removeEventListener("compositionend",this._onCompositionEnd))}}}}]);
|
package/assets/59.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[59],{8059(r,t,a){a.d(t,{default:()=>s});var e=a(8),_=a(5911);function s(n){const{className:c,text:u,maxCharacters:l,part:p}=n;return(0,e.Y)(_.A,{part:p,class:c,text:u,maxCharacters:l})}}}]);
|
package/assets/716.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[716],{716(e,d,n){n.r(d);var i=n(467),h=n(8923);const a=function(){var t=(0,i.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_dark":return(yield n.e(521).then(n.t.bind(n,5174,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,i.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_dark","sap_horizon_hcb","sap_horizon_hcw"].forEach(t=>(0,h.Rh)("@ui5/webcomponents-fiori",t,l,"host"))}}]);
|
package/assets/76.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[76],{2076(i,t,n){n.d(t,{default:()=>e});class e{constructor(o){this._onComposition=()=>{this._component.updateCompositionState(!0)},this._onCompositionEnd=()=>{this._component.updateCompositionState(!1)},this._component=o}addEventListeners(){const o=this._component.getInputEl();o&&(o.addEventListener("compositionstart",this._onComposition),o.addEventListener("compositionupdate",this._onComposition),o.addEventListener("compositionend",this._onCompositionEnd))}removeEventListeners(){const o=this._component.getInputEl();o&&(o.removeEventListener("compositionstart",this._onComposition),o.removeEventListener("compositionupdate",this._onComposition),o.removeEventListener("compositionend",this._onCompositionEnd))}}}}]);
|
package/assets/821.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[821],{6821(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(6252),f=e(7319),B=e(2585),R=e(4154),E=e(8390),g=e(467),m=e(8923),D=e(303),Y=e(7130);(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/913.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[913],{6913(V,v,r){r.d(v,{default:()=>w});var x=r(452);function a(n,c,e,t){return n.replaceAll(new RegExp((n=>n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(c),(t?"i":"")+"g"),e)}r(2828),r(986);var l=r(8),d=r(4737),m=r(8731),P=r(7513),A=r(2920),g=r(4102),b=r(9698);function T(n){const c=n?.suggestionsList||D,e=n?.mobileHeader,t=n?.valueStateMessage,s=n?.valueStateMessageInputIcon;return(0,l.FD)(A.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,l.Y)(l.FK,{children:(0,l.FD)("div",{slot:"header",class:"ui5-responsive-popover-header",children:[(0,l.Y)("div",{class:"row",children:(0,l.Y)("span",{children:this._headerTitleText})}),(0,l.Y)("div",{class:"row",children:(0,l.FD)("div",{class:"input-root-phone native-input-wrapper",children:[(0,l.Y)(d.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,l.FD)("div",{class:this.classes.popoverValueState,style:this.styles.suggestionPopoverHeader,children:[(0,l.Y)(m.A,{class:"ui5-input-value-state-message-icon",name:s?.call(this)}),this.open&&t?.call(this)]})]})}),!this._isPhone&&this.hasValueStateMessage&&(0,l.FD)("div",{slot:"header",class:{"ui5-responsive-popover-header":!0,...this.classes.popoverValueState},style:this.styles.suggestionPopoverHeader,children:[(0,l.Y)(m.A,{class:"ui5-input-value-state-message-icon",name:s?.call(this)}),this.open&&t?.call(this)]}),this.showSuggestions&&c.call(this),this._isPhone&&(0,l.FD)("div",{slot:"footer",class:"ui5-responsive-popover-footer",children:[(0,l.Y)(g.A,{design:"Emphasized",onClick:this._confirmMobileValue,children:this._suggestionsOkButtonText}),(0,l.Y)(g.A,{class:"ui5-responsive-popover-close-btn",design:"Transparent",onClick:this._cancelMobileValue,children:this._suggestionsCancelButtonText})]})]})}function D(){return(0,l.Y)(P.A,{accessibleRole:b.A.ListBox,separators:this.suggestionSeparators,selectionMode:"Single",onMouseDown:this.onItemMouseDown,onItemClick:this._handleSuggestionItemPress,onSelectionChange:this._handleSelectionChange,children:(0,l.Y)("slot",{})})}var I=r(5166);let p=(()=>{class n{get template(){return T}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,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],o=s[e],u=this._getNonGroupItems(),h=i?.hasAttribute("ui5-suggestion-item-group");if(!i)return;this.component.focused=!1;const f=this.visibleItems[this.selectedItemIndex];if(this.accInfo={isGroup:h,currentPos:s.indexOf(i)+1,itemText:(h?f.headerText:f.text)||""},(i.hasAttribute("ui5-suggestion-item")||i.hasAttribute("ui5-suggestion-item-custom"))&&(this.accInfo.additionalText=i.additionalText||"",this.accInfo.currentPos=u.indexOf(i)+1,this.accInfo.listSize=u.length),o&&(o.focused=!1),(o?.hasAttribute("ui5-suggestion-item")||o?.hasAttribute("ui5-suggestion-item-custom"))&&(o.selected=!1),i&&(i.focused=!0,h||(i.selected=!0),this.handleFocus&&i.focus()),this.component.hasSuggestionItemSelected=!0,this.onItemSelect(i),!this._isItemIntoView(i)){const R=this._isGroupItem?i.shadowRoot.querySelector("[ui5-li-group-header]"):i;this._scrollItemIntoView(R)}}_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(),s=this._getComponent().getDomRef().getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight;let o=0;return this._hasValueState&&(o=this._getPicker().querySelector("[slot=header]").getBoundingClientRect().height),t.top+n.SCROLL_STEP<=i&&t.top>=s.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(I.Fr3)} ${this.accInfo.itemText}`;const e=n.i18nBundle.getText(I.piN,this.accInfo.currentPos||0,this.accInfo.listSize||0);return`${this.accInfo.additionalText} ${e}`.trim()}hightlightInput(e,t){return function _(n,c){if(!n||!c)return n;const e=o=>{const[u,h]=o.split("");for(;n.indexOf(o)>=0||c.indexOf(o)>=0;)o=`${u}${o}${h}`;return o},t=e("12"),s=e("34");let i=(0,x.A)(a(n,c,o=>`${t}${o}${s}`,!0));return[[t,"<b>"],[s,"</b>"]].forEach(([o,u])=>{i=a(i,o,u,!1)}),i}(e,t)}get _hasValueState(){return this.component.hasValueStateMessage}_clearSelectedSuggestionAndaccInfo(){this.accInfo=void 0,this.selectedItemIndex=0}}return n.SCROLL_STEP=60,n})();d.A.SuggestionsClass=p;const w=p}}]);
|
package/assets/914.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[914],{7914(e,d,n){n.r(d);var i=n(467),h=n(4291);const a=function(){var t=(0,i.A)(function*(o){switch(o){case"sap_fiori_3":return(yield n.e(146).then(n.t.bind(n,6667,17))).default;case"sap_fiori_3_dark":return(yield n.e(225).then(n.t.bind(n,7642,17))).default;case"sap_fiori_3_hcb":return(yield n.e(604).then(n.t.bind(n,2213,17))).default;case"sap_fiori_3_hcw":return(yield n.e(861).then(n.t.bind(n,2258,17))).default;case"sap_horizon":return(yield n.e(524).then(n.t.bind(n,8609,17))).default;case"sap_horizon_dark":return(yield n.e(3).then(n.t.bind(n,4064,17))).default;case"sap_horizon_hcb":return(yield n.e(586).then(n.t.bind(n,8141,17))).default;case"sap_horizon_hcw":return(yield n.e(883).then(n.t.bind(n,1532,17))).default;default:throw"unknown theme"}});return function(s){return t.apply(this,arguments)}}(),l=function(){var t=(0,i.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_dark","sap_horizon_hcb","sap_horizon_hcw"].forEach(t=>(0,h.Rh)("@ui5/webcomponents",t,l,"host"))}}]);
|