@reltio/graph 1.4.2376 → 1.4.2384

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/638.bundle.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_reltio_graph=self.webpackChunk_reltio_graph||[]).push([[638],{76638:(e,t,i)=>{i.r(t),i.d(t,{default:()=>F});var o,n=i(79458),r=i(74283),s=i(57577),a=i(12992),l=i(52330),c=i(51651),p=i(62846);!function(e){e.InPlace="InPlace",e.Popover="Popover"}(o||(o={}));const d=o;var h,u=i(89182),_=i(6879),v=i(66655),x=i(14811),f=i(72810),g=i(9814),y=i(23260);!function(e){e.Default="Default",e.Subtle="Subtle",e.Emphasized="Emphasized"}(h||(h={}));const b=h;var k=i(25368),m=i(18238),Z=i(70171),w=i(61374);(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>Z.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>w.Z),"host");var T,C=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let P=T=class extends r.Z{constructor(){super(),this.disabled=!1,this.design="Default",this.interactiveAreaSize="Normal",this.wrappingType="Normal",this.accessibleRole="Link",this.accessibilityAttributes={},this._dummyAnchor=document.createElement("a")}onEnterDOM(){(0,p.nI)()&&this.setAttribute("desktop","")}onBeforeRendering(){const e="_blank"===this.target&&this.href&&this._isCrossOrigin(this.href);this._rel=e?"noreferrer noopener":void 0}_isCrossOrigin(e){return this._dummyAnchor.href=e,!(this._dummyAnchor.hostname===(0,y.Td)()&&this._dummyAnchor.port===(0,y.mJ)()&&this._dummyAnchor.protocol===(0,y.SJ)())}get effectiveTabIndex(){return this.forcedTabIndex?Number.parseInt(this.forcedTabIndex):this.disabled?-1:0}get ariaLabelText(){return(0,f.Hp)(this)}get hasLinkType(){return this.design!==b.Default}static typeTextMappings(){return{Subtle:u.S1I,Emphasized:u.x41}}get linkTypeText(){return T.i18nBundle.getText(T.typeTextMappings()[this.design])}get parsedRef(){return this.href&&this.href.length>0?this.href:void 0}get effectiveAccRole(){return(0,g.Z)(this.accessibleRole)}get ariaDescriptionText(){return""===this.accessibleDescription?void 0:this.accessibleDescription}get _hasPopup(){return this.accessibilityAttributes.hasPopup}_onclick(e){const{altKey:t,ctrlKey:i,metaKey:o,shiftKey:n}=e;e.stopImmediatePropagation(),this.fireDecoratorEvent("click",{altKey:t,ctrlKey:i,metaKey:o,shiftKey:n})||e.preventDefault()}_onkeydown(e){(0,x.tH)(e)&&!this.href?(this._onclick(e),e.preventDefault()):(0,x.Wd)(e)&&e.preventDefault()}_onkeyup(e){if((0,x.Wd)(e)&&(this._onclick(e),this.href&&!e.defaultPrevented)){const e=new MouseEvent("click");e.stopImmediatePropagation(),this.getDomRef().dispatchEvent(e)}}};C([(0,a.Z)({type:Boolean})],P.prototype,"disabled",void 0),C([(0,a.Z)()],P.prototype,"tooltip",void 0),C([(0,a.Z)()],P.prototype,"href",void 0),C([(0,a.Z)()],P.prototype,"target",void 0),C([(0,a.Z)()],P.prototype,"design",void 0),C([(0,a.Z)()],P.prototype,"interactiveAreaSize",void 0),C([(0,a.Z)()],P.prototype,"wrappingType",void 0),C([(0,a.Z)()],P.prototype,"accessibleName",void 0),C([(0,a.Z)()],P.prototype,"accessibleNameRef",void 0),C([(0,a.Z)()],P.prototype,"accessibleRole",void 0),C([(0,a.Z)({type:Object})],P.prototype,"accessibilityAttributes",void 0),C([(0,a.Z)()],P.prototype,"accessibleDescription",void 0),C([(0,a.Z)()],P.prototype,"icon",void 0),C([(0,a.Z)()],P.prototype,"endIcon",void 0),C([(0,a.Z)({noAttribute:!0})],P.prototype,"_rel",void 0),C([(0,a.Z)({noAttribute:!0})],P.prototype,"forcedTabIndex",void 0),C([(0,l.Z)("@ui5/webcomponents")],P,"i18nBundle",void 0),P=T=C([(0,s.Z)({tag:"ui5-link",languageAware:!0,renderer:c.Z,template:function(){return(0,n.BX)("a",{part:"root",class:"ui5-link-root",role:this.effectiveAccRole,href:this.parsedRef,target:this.target,rel:this._rel,tabindex:this.effectiveTabIndex,title:this.tooltip,"aria-disabled":this.disabled,"aria-label":this.ariaLabelText,"aria-haspopup":this._hasPopup,"aria-expanded":this.accessibilityAttributes.expanded,"aria-current":this.accessibilityAttributes.current,"aria-description":this.ariaDescriptionText,onClick:this._onclick,onKeyDown:this._onkeydown,onKeyUp:this._onkeyup,children:[this.icon&&(0,n.tZ)(k.Z,{class:"ui5-link-icon",name:this.icon,mode:"Decorative",part:"icon"}),(0,n.tZ)("span",{class:"ui5-link-text",children:(0,n.tZ)("slot",{})}),this.hasLinkType&&(0,n.tZ)("span",{class:"ui5-hidden-text",children:this.linkTypeText}),this.endIcon&&(0,n.tZ)(k.Z,{class:"ui5-link-end-icon",name:this.endIcon,mode:"Decorative",part:"endIcon"})]})},styles:'.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(:not([hidden])){display:inline-flex}:host{max-width:100%;color:var(--sapLinkColor);font-family:var(--sapFontFamily);font-size:var(--sapFontSize);cursor:pointer;outline:none;text-decoration:var(--_ui5_link_text_decoration);text-shadow:var(--sapContent_TextShadow);white-space:normal;overflow-wrap:break-word}:host(:hover){color:var(--sapLink_Hover_Color);text-decoration:var(--_ui5_link_hover_text_decoration)}:host(:active){color:var(--sapLink_Active_Color);text-decoration:var(--_ui5_link_active_text_decoration)}:host([disabled]){pointer-events:none}:host([disabled]) .ui5-link-root{text-shadow:none;outline:none;cursor:default;pointer-events:none;opacity:var(--sapContent_DisabledOpacity)}:host([design="Emphasized"]) .ui5-link-root{font-family:var(--sapFontBoldFamily)}:host([design="Subtle"]){color:var(--sapLink_SubtleColor);text-decoration:var(--_ui5_link_subtle_text_decoration)}:host([design="Subtle"]:hover:not(:active)){color:var(--sapLink_SubtleColor);text-decoration:var(--_ui5_link_subtle_text_decoration_hover)}:host([wrapping-type="None"]){white-space:nowrap;overflow-wrap:normal}.ui5-link-root{max-width:100%;display:inline-block;position:relative;overflow:hidden;text-overflow:ellipsis;outline:none;white-space:inherit;overflow-wrap:inherit;text-decoration:inherit;color:inherit}:host([wrapping-type="None"][end-icon]) .ui5-link-root{display:inline-flex;align-items:end}:host .ui5-link-root{outline-offset:-.0625rem;border-radius:var(--_ui5_link_focus_border-radius)}.ui5-link-icon,.ui5-link-end-icon{color:inherit;flex-shrink:0}.ui5-link-icon{float:inline-start;margin-inline-end:.125rem}.ui5-link-end-icon{margin-inline-start:.125rem;vertical-align:bottom}.ui5-link-text{overflow:hidden;text-overflow:ellipsis}.ui5-link-root:focus-visible,:host([desktop]) .ui5-link-root:focus-within,:host([design="Subtle"]) .ui5-link-root:focus-visible,:host([design="Subtle"][desktop]) .ui5-link-root:focus-within{background-color:var(--_ui5_link_focus_background_color);outline:var(--_ui5_link_outline);border-radius:var(--_ui5_link_focus_border-radius);text-shadow:none;color:var(--_ui5_link_focus_color)}:host(:not([desktop])) .ui5-link-root:focus-visible,:host([desktop]:focus-within),:host([design="Subtle"][desktop]:focus-within){text-decoration:var(--_ui5_link_focus_text_decoration)}:host([desktop]:hover:not(:active):focus-within),:host([design="Subtle"][desktop]:hover:not(:active):focus-within){color:var(--_ui5_link_focused_hover_text_color);text-decoration:var(--_ui5_link_focused_hover_text_decoration)}:host([interactive-area-size="Large"]) .ui5-link-root{line-height:var(--_ui5_link_large_interactive_area_height)}:host([interactive-area-size="Large"])::part(icon),:host([interactive-area-size="Large"])::part(endIcon){height:var(--_ui5_link_large_interactive_area_height)}\n'}),(0,v.Z)("click",{bubbles:!0,cancelable:!0})],P),P.define();const I=P;var D=i(59562),A=i(94462);(0,m.e5)("@ui5/webcomponents-theming","sap_horizon",(async()=>Z.Z)),(0,m.e5)("@ui5/webcomponents","sap_horizon",(async()=>w.Z),"host");var B,R=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let S=B=class extends r.Z{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===d.Popover}get _ellipsisText(){return this._expanded&&!this._usePopover?" ":"... "}get _textForToggle(){return this._expanded?B.i18nBundle.getText(u.gMI):B.i18nBundle.getText(u.j1v)}get _closeButtonText(){return B.i18nBundle.getText(u.XvI)}get _accessibilityAttributesForToggle(){return this._usePopover?{expanded:this._expanded,hasPopup:"dialog"}:{expanded:this._expanded}}get _accessibleNameForToggle(){if(this._usePopover)return this._expanded?B.i18nBundle.getText(u.m58):B.i18nBundle.getText(u.PJ)}_handlePopoverClose(){(0,p.Mn)()||(this._expanded=!1)}_handleToggleClick(){this._expanded=!this._expanded}_handleCloseButtonClick(e){this._expanded=!1,e.stopPropagation()}};R([(0,a.Z)()],S.prototype,"text",void 0),R([(0,a.Z)({type:Number})],S.prototype,"maxCharacters",void 0),R([(0,a.Z)()],S.prototype,"overflowMode",void 0),R([(0,a.Z)()],S.prototype,"emptyIndicatorMode",void 0),R([(0,a.Z)({type:Boolean})],S.prototype,"_expanded",void 0),R([(0,l.Z)("@ui5/webcomponents")],S,"i18nBundle",void 0),S=B=R([(0,s.Z)({tag:"ui5-expandable-text",renderer:c.Z,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(){return(0,n.BX)("div",{children:[(0,n.tZ)(_.Z,{class:"ui5-exp-text-text",emptyIndicatorMode:this.emptyIndicatorMode,children:this._displayedText}),this._maxCharactersExceeded&&(0,n.BX)(n.HY,{children:[(0,n.tZ)("span",{class:"ui5-exp-text-ellipsis",children:this._ellipsisText}),(0,n.tZ)(I,{id:"toggle",class:"ui5-exp-text-toggle",accessibleRole:"Button",accessibleName:this._accessibleNameForToggle,accessibilityAttributes:this._accessibilityAttributesForToggle,onClick:this._handleToggleClick,children:this._textForToggle}),this._usePopover&&(0,n.BX)(A.Z,{open:this._expanded,opener:"toggle",accessibleNameRef:"popover-text",contentOnlyOnDesktop:!0,_hideHeader:!0,class:"ui5-exp-text-popover",onClose:this._handlePopoverClose,children:[(0,n.tZ)(_.Z,{id:"popover-text",children:this.text}),(0,n.tZ)("div",{slot:"footer",class:"ui5-exp-text-footer",children:(0,n.tZ)(D.Z,{design:"Transparent",onClick:this._handleCloseButtonClick,children:this._closeButtonText})})]})]})]})}})],S),S.define();const z=S;function F(e){const{className:t,text:i,maxCharacters:o,part:r}=e;return(0,n.tZ)(z,{part:r,class:t,text:i,maxCharacters:o})}}}]);