@platform-mesh/portal-ui-lib 0.21.15 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/646.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[646],{646:(N,v,e)=>{e.r(v),e.d(v,{default:()=>O});var t=e(1892),y=e(5386),C=e(1934),x=e(1642),A=e(3651),P=e(1834),b=e(6136),f=function(o){return o.InPlace="InPlace",o.Popover="Popover",o}(f||{});const F=f;var h=e(5166),g=e(4110),B=e(8305),R=e(8953),E=e(2920),m=e(467),T=e(8923),D=e(303),Y=e(5444);(0,T.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,m.A)(function*(){return D.A})),(0,T.Rh)("@ui5/webcomponents","sap_horizon",(0,m.A)(function*(){return Y.A}));var a,r=function(o,s,l,d){var c,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(o,s,l,d);else for(var u=o.length-1;u>=0;u--)(c=o[u])&&(i=(p<3?c(i):p>3?c(s,l,i):c(s,l))||i);return p>3&&i&&Object.defineProperty(s,l,i),i};let n=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?h.pcO:h.DXF)}get _closeButtonText(){return a.i18nBundle.getText(h.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?h.C_7:h.Yz$)}_handlePopoverClose(){(0,b.tp)()||(this._expanded=!1)}_handleToggleClick(){this._expanded=!this._expanded}_handleCloseButtonClick(s){this._expanded=!1,s.stopPropagation()}};r([(0,x.A)()],n.prototype,"text",void 0),r([(0,x.A)({type:Number})],n.prototype,"maxCharacters",void 0),r([(0,x.A)()],n.prototype,"overflowMode",void 0),r([(0,x.A)()],n.prototype,"emptyIndicatorMode",void 0),r([(0,x.A)({type:Boolean})],n.prototype,"_expanded",void 0),r([(0,A.A)("@ui5/webcomponents")],n,"i18nBundle",void 0),n=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)(g.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)(g.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})})]})]})]})}})],n),n.define();const M=n;function O(o){const{className:s,text:l,maxCharacters:d,part:p}=o;return(0,t.Y)(M,{part:p,class:s,text:l,maxCharacters:d})}}}]);
1
+ "use strict";(self.webpackChunkwc=self.webpackChunkwc||[]).push([[646],{646:(N,v,e)=>{e.r(v),e.d(v,{default:()=>O});var t=e(1892),y=e(4381),C=e(1934),x=e(1642),A=e(3651),P=e(1834),b=e(6136),f=function(o){return o.InPlace="InPlace",o.Popover="Popover",o}(f||{});const F=f;var h=e(5166),g=e(4110),B=e(8305),R=e(8953),E=e(2920),m=e(467),T=e(8923),D=e(303),Y=e(5444);(0,T.Rh)("@ui5/webcomponents-theming","sap_horizon",(0,m.A)(function*(){return D.A})),(0,T.Rh)("@ui5/webcomponents","sap_horizon",(0,m.A)(function*(){return Y.A}));var a,r=function(o,s,l,d){var c,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(o,s,l,d);else for(var u=o.length-1;u>=0;u--)(c=o[u])&&(i=(p<3?c(i):p>3?c(s,l,i):c(s,l))||i);return p>3&&i&&Object.defineProperty(s,l,i),i};let n=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?h.pcO:h.DXF)}get _closeButtonText(){return a.i18nBundle.getText(h.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?h.C_7:h.Yz$)}_handlePopoverClose(){(0,b.tp)()||(this._expanded=!1)}_handleToggleClick(){this._expanded=!this._expanded}_handleCloseButtonClick(s){this._expanded=!1,s.stopPropagation()}};r([(0,x.A)()],n.prototype,"text",void 0),r([(0,x.A)({type:Number})],n.prototype,"maxCharacters",void 0),r([(0,x.A)()],n.prototype,"overflowMode",void 0),r([(0,x.A)()],n.prototype,"emptyIndicatorMode",void 0),r([(0,x.A)({type:Boolean})],n.prototype,"_expanded",void 0),r([(0,A.A)("@ui5/webcomponents")],n,"i18nBundle",void 0),n=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)(g.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)(g.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})})]})]})]})}})],n),n.define();const M=n;function O(o){const{className:s,text:l,maxCharacters:d,part:p}=o;return(0,t.Y)(M,{part:p,class:s,text:l,maxCharacters:d})}}}]);