@openmfp/portal-ui-lib 0.194.21 → 0.194.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmfp/portal-ui-lib",
3
- "version": "0.194.21",
3
+ "version": "0.194.23",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/openmfp/portal-ui-lib.git"
6
6
  },
@@ -8,33 +8,38 @@
8
8
  "author": "OpenMFP",
9
9
  "description": "This library helps you to set up an openmfp based micro frontend portal server with ease.",
10
10
  "dependencies": {
11
+ "@jmespath-community/jmespath": "^1.3.0",
11
12
  "@luigi-project/plugin-auth-oauth2": "^2.27.0",
12
- "jmespath": "^0.16.0",
13
13
  "jwt-decode": "^4.0.0",
14
14
  "lodash.isequal": "^4.5.0",
15
15
  "lodash.ismatch": "^4.4.0",
16
16
  "tslib": "^2.8.1"
17
17
  },
18
18
  "peerDependencies": {
19
- "@angular/common": "^20.3.14 || ^21.1.2 || ^21.2.0",
20
- "@angular/compiler": "^20.3.14 || ^21.1.2 || ^21.2.0",
21
- "@angular/core": "^20.3.14 || ^21.1.2 || ^21.2.0",
22
- "@angular/elements": "^20.3.14 || ^21.1.2 || ^21.2.0",
23
- "@angular/forms": "^20.3.14 || ^21.1.2 || ^21.2.0",
24
- "@angular/platform-browser": "^20.3.14 || ^21.1.2 || ^21.2.0",
25
- "@angular/platform-browser-dynamic": "^20.3.14 || ^21.1.2 || ^21.2.0",
26
- "@angular/router": "^20.3.14 || ^21.1.2 || ^21.2.0",
27
- "@fundamental-ngx/ui5-webcomponents": "^0.58.1 || ^0.59.1 || ^0.63.0",
19
+ "@angular/common": "^20.3.14 || ^21.1.2 || ^21.2.0 || ^22.0.0",
20
+ "@angular/compiler": "^20.3.14 || ^21.1.2 || ^21.2.0 || ^22.0.0",
21
+ "@angular/core": "^20.3.14 || ^21.1.2 || ^21.2.0 || ^22.0.0",
22
+ "@angular/elements": "^20.3.14 || ^21.1.2 || ^21.2.0 || ^22.0.0",
23
+ "@angular/forms": "^20.3.14 || ^21.1.2 || ^21.2.0 || ^22.0.0",
24
+ "@angular/platform-browser": "^20.3.14 || ^21.1.2 || ^21.2.0 || ^22.0.0",
25
+ "@angular/platform-browser-dynamic": "^20.3.14 || ^21.1.2 || ^21.2.0 || ^22.0.0",
26
+ "@angular/router": "^20.3.14 || ^21.1.2 || ^21.2.0 || ^22.0.0",
27
+ "@fundamental-ngx/ui5-webcomponents": "^0.58.1 || ^0.59.1 || ^0.63.0 || ^0.64.0",
28
28
  "@luigi-project/client": "^2.27.0",
29
- "@luigi-project/client-support-angular": "^20.0.1 || ^21.1.0",
29
+ "@luigi-project/client-support-angular": "^20.0.1 || ^21.1.0 || ^22.0.0",
30
30
  "@luigi-project/core": "^2.27.0",
31
31
  "@luigi-project/plugin-auth-oauth2": "^2.27.0",
32
- "apollo-angular": "^13.0.0",
32
+ "apollo-angular": "^13.0.0 || ^14.1.0",
33
33
  "gql-query-builder": "^3.8.0 || ^4.0.0",
34
34
  "graphql": "^16.12.0 || ^17.0.0",
35
35
  "graphql-sse": "^2.6.0",
36
36
  "rxjs": "^7.8.2"
37
37
  },
38
+ "overrides": {
39
+ "@openmfp/eslint-config-typescript": {
40
+ "angular-eslint": "^22.1.0"
41
+ }
42
+ },
38
43
  "module": "fesm2022/openmfp-portal-ui-lib.mjs",
39
44
  "typings": "types/openmfp-portal-ui-lib.d.ts",
40
45
  "exports": {
@@ -778,27 +778,10 @@ interface GlobalSearchConfigService {
778
778
  interface AppSwitcherConfigService {
779
779
  getAppSwitcher(luigiNodes: LuigiNode[]): any;
780
780
  }
781
- interface NodeConfig {
782
- title: string;
783
- icon: string;
784
- link: string;
785
- selectionConditions?: {
786
- route: string;
787
- contextCriteria: {
788
- key: string;
789
- value: string;
790
- }[];
791
- };
792
- }
793
781
  declare class AppSwitcherConfigServiceImpl implements AppSwitcherConfigService {
794
782
  private luigiCoreService;
795
783
  private nodeUtilsService;
796
- getAppSwitcher(luigiNodes: LuigiNode[]): {
797
- keepMainTitle: boolean;
798
- showSubTitle: boolean;
799
- itemRenderer: (item: any, slot: HTMLElement, appSwitcherApiObj: any) => void;
800
- items: NodeConfig[];
801
- };
784
+ getAppSwitcher(luigiNodes: LuigiNode[]): any;
802
785
  private getNodeItems;
803
786
  static ɵfac: i0.ɵɵFactoryDeclaration<AppSwitcherConfigServiceImpl, never>;
804
787
  static ɵprov: i0.ɵɵInjectableDeclaration<AppSwitcherConfigServiceImpl>;
@@ -1084,12 +1067,7 @@ declare class CustomReuseStrategy implements RouteReuseStrategy {
1084
1067
  shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
1085
1068
  }
1086
1069
 
1087
- /**
1088
- * Evaluates the JMESPath expression on the context and returns true if the result is true, otherwise false
1089
- * @param context The context to evaluate
1090
- * @param jmesPathExpression The JMESPath expression to evaluate
1091
- * @returns true if the result of the JMESPath expression is true, otherwise (or if there was an exception while matching with JMESPath) false
1092
- * */
1070
+ declare function transformLegacyBacktickLiterals(expression: string): string;
1093
1071
  declare function matchesJMESPath(context: object, jmesPathExpression: string): boolean;
1094
1072
 
1095
1073
  declare class PreserveQueryParamsUrlHandlingStrategy implements UrlHandlingStrategy {
@@ -1098,5 +1076,5 @@ declare class PreserveQueryParamsUrlHandlingStrategy implements UrlHandlingStrat
1098
1076
  merge(newUrlPart: UrlTree, wholeUrl: UrlTree): UrlTree;
1099
1077
  }
1100
1078
 
1101
- export { AppSwitcherConfigServiceImpl, AuthConfigService, AuthEvent, AuthService, ConfigService, CustomMessageListenersService, CustomReuseStrategy, DefaultNavigationRedirectStrategy, DefaultUserProfileConfigService, ERROR_COMPONENT_CONFIG, EntityType, EnvConfigService, GlobalContextConfigService, HEADER_BAR_CONFIG_SERVICE_INJECTION_TOKEN, HeaderBarService, I18nService, IframeService, LOCAL_CONFIGURATION_SERVICE_INJECTION_TOKEN, LUIGI_APP_SWITCHER_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE_INJECTION_TOKEN, LUIGI_BREADCRUMB_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_CUSTOM_MESSAGE_LISTENERS_INJECTION_TOKEN, LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE_INJECTION_TOKEN, LUIGI_CUSTOM_NODE_PROCESSING_SERVICE_INJECTION_TOKEN, LUIGI_EXTENDED_GLOBAL_CONTEXT_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_NODES_CUSTOM_GLOBAL_SERVICE_INJECTION_TOKEN, LUIGI_NODE_CHANGE_HOOK_SERVICE_INJECTION_TOKEN, LUIGI_ROUTING_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_STATIC_SETTINGS_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_USER_PROFILE_CONFIG_SERVICE_INJECTION_TOKEN, LocalConfigurationServiceImpl, LocalNodesService, LocalStorageKeys, LoginEventService, LoginEventType, LuigiCoreService, LuigiNodesService, NAVIGATION_REDIRECT_STRATEGY_INJECTION_TOKEN, NavHeaderService, NetworkVisibility, NodeContextProcessingServiceImpl, NodeUtilsService, PortalComponent, PreserveQueryParamsUrlHandlingStrategy, RequestHeadersService, RoutingConfigServiceImpl, SessionRefreshService, StaticSettingsConfigServiceImpl, THEMING_SERVICE, UserSettingsConfigService, featureToggleLocalStorage, localDevelopmentSettingsLocalStorage, matchesJMESPath, providePortal, userSettingsLocalStorage };
1079
+ export { AppSwitcherConfigServiceImpl, AuthConfigService, AuthEvent, AuthService, ConfigService, CustomMessageListenersService, CustomReuseStrategy, DefaultNavigationRedirectStrategy, DefaultUserProfileConfigService, ERROR_COMPONENT_CONFIG, EntityType, EnvConfigService, GlobalContextConfigService, HEADER_BAR_CONFIG_SERVICE_INJECTION_TOKEN, HeaderBarService, I18nService, IframeService, LOCAL_CONFIGURATION_SERVICE_INJECTION_TOKEN, LUIGI_APP_SWITCHER_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_AUTH_EVENTS_CALLBACKS_SERVICE_INJECTION_TOKEN, LUIGI_BREADCRUMB_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_CUSTOM_MESSAGE_LISTENERS_INJECTION_TOKEN, LUIGI_CUSTOM_NODE_CONTEXT_PROCESSING_SERVICE_INJECTION_TOKEN, LUIGI_CUSTOM_NODE_PROCESSING_SERVICE_INJECTION_TOKEN, LUIGI_EXTENDED_GLOBAL_CONTEXT_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_GLOBAL_SEARCH_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_NODES_CUSTOM_GLOBAL_SERVICE_INJECTION_TOKEN, LUIGI_NODE_CHANGE_HOOK_SERVICE_INJECTION_TOKEN, LUIGI_ROUTING_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_STATIC_SETTINGS_CONFIG_SERVICE_INJECTION_TOKEN, LUIGI_USER_PROFILE_CONFIG_SERVICE_INJECTION_TOKEN, LocalConfigurationServiceImpl, LocalNodesService, LocalStorageKeys, LoginEventService, LoginEventType, LuigiCoreService, LuigiNodesService, NAVIGATION_REDIRECT_STRATEGY_INJECTION_TOKEN, NavHeaderService, NetworkVisibility, NodeContextProcessingServiceImpl, NodeUtilsService, PortalComponent, PreserveQueryParamsUrlHandlingStrategy, RequestHeadersService, RoutingConfigServiceImpl, SessionRefreshService, StaticSettingsConfigServiceImpl, THEMING_SERVICE, UserSettingsConfigService, featureToggleLocalStorage, localDevelopmentSettingsLocalStorage, matchesJMESPath, providePortal, transformLegacyBacktickLiterals, userSettingsLocalStorage };
1102
1080
  export type { AppSwitcherConfigService, AuthData, AuthTokenData, BreadcrumbBadge, BreadcrumbBadgeColorSchema, ClientEnvironment, Config, ContentConfiguration, CustomGlobalNodesService, CustomMessageListener, CustomNodeProcessingService, Dictionary, EntityConfig, EntityContext, EntityDefinition, ErrorComponentConfig, ExternalLink, GlobalSearchConfigService, HeaderBarConfig, HeaderBarConfigService, HelpContext, IntentSpecification, LocalConfigurationService, LocalDevelopmentSettings, LoginEvent, LuigiAppConfig, LuigiAuthEventsCallbacksService, LuigiBadgeCounter, LuigiBreadcrumb, LuigiConfig, LuigiConfigData, LuigiConfigFragment, LuigiCustomMessage, LuigiExtendedGlobalContextConfigService, LuigiGlobalContext, LuigiIntent, LuigiNavigationConfig, LuigiNode, LuigiNodeCategory, LuigiNodeDefaults, LuigiNodeIFramePermissions, LuigiStaticSettings, LuigiStatusBadge, LuigiUserSetting, LuigiUserSettings, LuigiUserSettingsGroup, MessageListener, MessageListeners, NavHeader, NavigationRedirectStrategy, NodeChangeHookConfigService, NodeContext, NodeContextProcessingService, NodeItem, OpenNodeInModal, PortalConfig, PortalContext, PortalLuigiNodeExtensions, PortalOptions, RendererFn, RoutingConfigService, ServiceProvider, StaticSettingsConfigService, Theme, ThemingService, UserData, UserProfile, UserProfileConfigService, UserProfileItem, UserSettings, UserSettingsValues, UserTokenData, ViewGroup };
package/assets/778.js DELETED
@@ -1 +0,0 @@
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),b=i(8762),l=i(2358),D=i(594),B=i(1045),O=i(7883),$=(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,b.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 m=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):m-=v;break;case(0,l.hn)(e):m+=v}m=(0,b.A)(m,o,a),R=(0,b.A)(R,this._minHeight,h),Object.assign(this.style,{width:`${m}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,b.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,m=this._initialLeft+this._initialWidth+h;o=(0,b.A)(m-r,0,m-this._minWidth)}else r=(0,b.A)(this._initialWidth+(t-this._initialX),this._minWidth,window.innerWidth-this._initialLeft);const a=(0,b.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:min(20rem,90vw);min-height:min(6rem,90vh);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=_}}]);