@kyndryl-design-system/shidoka-applications 2.70.2 → 2.70.4

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.
@@ -45,6 +45,10 @@ export declare class Popover extends LitElement {
45
45
  * URL for link behavior (when launchBehavior is 'link')
46
46
  */
47
47
  accessor linkHref: string;
48
+ /**
49
+ * When true, render only the footer link/slot and hide all footer buttons.
50
+ */
51
+ accessor footerLinkOnly: boolean;
48
52
  /**
49
53
  * Target for link behavior (when launchBehavior is 'link')
50
54
  */
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../src/components/reusable/popover/popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAQ,cAAc,EAAa,MAAM,KAAK,CAAC;AAKlE,OAAO,EAEL,YAAY,EACZ,MAAM,EAIP,MAAM,uCAAuC,CAAC;AAE/C,OAAO,WAAW,CAAC;AACnB,OAAO,SAAS,CAAC;AAMjB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBACa,OAAQ,SAAQ,UAAU;IACrC,OAAgB,MAAM,0BAA0B;IAEhD;;OAEG;IAEH,QAAQ,CAAC,SAAS,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAU;IAE1E;;;;OAIG;IAEH,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAW;IAE9C;;;;;OAKG;IAEH,QAAQ,CAAC,cAAc,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAa;IAElE;;OAEG;IAEH,QAAQ,CAAC,QAAQ,SAAM;IAEvB;;OAEG;IAEH,QAAQ,CAAC,UAAU,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAW;IAEvE;;OAEG;IAEH,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAU;IAGnD;;;OAGG;IAEH,QAAQ,CAAC,cAAc,EAAE,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OAEG;IACH,OAAO,CAAC,sBAAsB;IAU9B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAY9B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAiB5B,OAAO,CAAC,0BAA0B;IASlC,OAAO,CAAC,oBAAoB;YAQd,SAAS;CA+ExB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,OAAO,CAAC;KACxB;CACF"}
@@ -1,4 +1,4 @@
1
- import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as o,__classPrivateFieldSet as a}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as n,LitElement as r,unsafeCSS as l,html as h}from"lit";import{customElement as p,property as c,state as d}from"lit/decorators.js";import{classMap as u}from"lit/directives/class-map.js";import{autoUpdate as m}from"@floating-ui/dom";import{getPanelStyle as v,handleFocusKeyboardEvents as f,removeFocusListener as k,autoPosition as g}from"../../../common/helpers/popoverHelper.js";import"../button/button.js";import"../link/link.js";import{c as y}from"../../../vendor/@kyndryl-design-system/shidoka-icons-oqOblwTK.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../link/defs.js";var w=n`*,
1
+ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPrivateFieldGet as o,__classPrivateFieldSet as a}from"tslib";import{unsafeSVG as s}from"lit-html/directives/unsafe-svg.js";import{css as n,LitElement as r,unsafeCSS as l,html as h}from"lit";import{customElement as p,property as c,state as d}from"lit/decorators.js";import{classMap as u}from"lit/directives/class-map.js";import{autoUpdate as m}from"@floating-ui/dom";import{getPanelStyle as v,handleFocusKeyboardEvents as f,removeFocusListener as k,autoPosition as y}from"../../../common/helpers/popoverHelper.js";import"../button/button.js";import"../link/link.js";import{c as g}from"../../../vendor/@kyndryl-design-system/shidoka-icons-oqOblwTK.js";import"lit/directives/if-defined.js";import"lit-html/directives/class-map.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";import"../link/defs.js";var w=n`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -402,7 +402,7 @@ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPr
402
402
  :host([open]) .anchor {
403
403
  display: none;
404
404
  }
405
- }`;let b=(()=>{var n,b,x,T,_,z,$,P,M,S,B,L,C,W,D,E,H,A,j,q,F,I,O,U,K,R,N,X,Y,G,J,Q,V,Z,tt;let et,it,ot,at,st,nt,rt,lt,ht,pt,ct,dt,ut,mt,vt,ft,kt,gt,yt,wt,bt,xt,Tt,_t,zt,$t,Pt,Mt,St,Bt,Lt,Ct,Wt,Dt,Et,Ht,At,jt=[p("kyn-popover")],qt=[],Ft=r,It=[],Ot=[],Ut=[],Kt=[],Rt=[],Nt=[],Xt=[],Yt=[],Gt=[],Jt=[],Qt=[],Vt=[],Zt=[],te=[],ee=[],ie=[],oe=[],ae=[],se=[],ne=[],re=[],le=[],he=[],pe=[],ce=[],de=[],ue=[],me=[],ve=[],fe=[],ke=[],ge=[],ye=[],we=[],be=[],xe=[],Te=[],_e=[],ze=[],$e=[],Pe=[],Me=[],Se=[],Be=[],Le=[],Ce=[],We=[],De=[],Ee=[],He=[],Ae=[],je=[],qe=[],Fe=[],Ie=[],Oe=[],Ue=[],Ke=[],Re=[],Ne=[],Xe=[],Ye=[],Ge=[],Je=[],Qe=[],Ve=[],Ze=[],ti=[],ei=[],ii=[];return it=class extends Ft{constructor(){super(...arguments),n.set(this,i(this,It,"auto")),b.set(this,(i(this,Ot),i(this,Ut,"fixed"))),x.set(this,(i(this,Kt),i(this,Rt,"default"))),T.set(this,(i(this,Nt),i(this,Xt,""))),_.set(this,(i(this,Yt),i(this,Gt,"_self"))),z.set(this,(i(this,Jt),i(this,Qt,"mini"))),$.set(this,(i(this,Vt),i(this,Zt,void 0))),P.set(this,(i(this,te),i(this,ee,void 0))),M.set(this,(i(this,ie),i(this,oe,"button"))),S.set(this,(i(this,ae),i(this,se,void 0))),B.set(this,(i(this,ne),i(this,re,200))),L.set(this,(i(this,le),i(this,he,void 0))),C.set(this,(i(this,pe),i(this,ce,void 0))),W.set(this,(i(this,de),i(this,ue,void 0))),D.set(this,(i(this,me),i(this,ve,void 0))),E.set(this,(i(this,fe),i(this,ke,!1))),H.set(this,(i(this,ge),i(this,ye,void 0))),A.set(this,(i(this,we),i(this,be,void 0))),j.set(this,(i(this,xe),i(this,Te,""))),q.set(this,(i(this,_e),i(this,ze,""))),F.set(this,(i(this,$e),i(this,Pe,"OK"))),I.set(this,(i(this,Me),i(this,Se,"Cancel"))),O.set(this,(i(this,Be),i(this,Le,"Close"))),U.set(this,(i(this,Ce),i(this,We,"Popover"))),K.set(this,(i(this,De),i(this,Ee,"Secondary"))),R.set(this,(i(this,He),i(this,Ae,!1))),N.set(this,(i(this,je),i(this,qe,"Tertiary"))),X.set(this,(i(this,Fe),i(this,Ie,!1))),Y.set(this,(i(this,Oe),i(this,Ue,""))),G.set(this,(i(this,Ke),i(this,Re,""))),J.set(this,(i(this,Ne),i(this,Xe,"_self"))),Q.set(this,(i(this,Ye),i(this,Ge,!1))),V.set(this,(i(this,Je),i(this,Qe,{top:0,left:0}))),Z.set(this,(i(this,Ve),i(this,Ze,"bottom"))),tt.set(this,(i(this,ti),i(this,ei,"center"))),this._keyboardListener=(i(this,ii),null),this._autoUpdateCleanup=null,this._open=!1,this._hoverCloseTimer=null,this._isMouseOverPopover=!1,this._getPanelStyle=()=>`${v(this.positionType,this.zIndex,this.triggerType,this._panelCoords,this.top,this.left,this.bottom,this.right)}${this.arrowPosition?`--arrow-offset: ${this.arrowPosition};`:""}`,this._onKeyDown=t=>{"Escape"===t.key&&this.open&&this._close()},this._handleAction=t=>{this.open=!1,this.dispatchEvent(new CustomEvent("on-close",{detail:{action:t}}))}}get direction(){return o(this,n,"f")}set direction(t){a(this,n,t,"f")}get positionType(){return o(this,b,"f")}set positionType(t){a(this,b,t,"f")}get launchBehavior(){return o(this,x,"f")}set launchBehavior(t){a(this,x,t,"f")}get linkHref(){return o(this,T,"f")}set linkHref(t){a(this,T,t,"f")}get linkTarget(){return o(this,_,"f")}set linkTarget(t){a(this,_,t,"f")}get size(){return o(this,z,"f")}set size(t){a(this,z,t,"f")}get offsetDistance(){return o(this,$,"f")}set offsetDistance(t){a(this,$,t,"f")}get shiftPadding(){return o(this,P,"f")}set shiftPadding(t){a(this,P,t,"f")}get triggerType(){return o(this,M,"f")}set triggerType(t){a(this,M,t,"f")}get arrowPosition(){return o(this,S,"f")}set arrowPosition(t){a(this,S,t,"f")}get open(){return this._open}set open(t){var e;const i=this._open;if(this._open=t,this.requestUpdate("open",i),t&&!i){const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".anchor");if(!t)return;const i=t.querySelector('slot[name="anchor"]'),o=null==i?void 0:i.assignedElements(),a=(null==o?void 0:o.length)?o[0]:t;if(!a)return;this.dispatchEvent(new CustomEvent("on-open"));const s=this.shadowRoot.querySelector(".popover-inner");if(!s)return;this._autoUpdateCleanup=m(a,s,(()=>this._position()))}!t&&i&&(this.dispatchEvent(new CustomEvent("on-close")),this._autoUpdateCleanup&&(this._autoUpdateCleanup(),this._autoUpdateCleanup=null))}get animationDuration(){return o(this,B,"f")}set animationDuration(t){a(this,B,t,"f")}get top(){return o(this,L,"f")}set top(t){a(this,L,t,"f")}get left(){return o(this,C,"f")}set left(t){a(this,C,t,"f")}get bottom(){return o(this,W,"f")}set bottom(t){a(this,W,t,"f")}get right(){return o(this,D,"f")}set right(t){a(this,D,t,"f")}get destructive(){return o(this,E,"f")}set destructive(t){a(this,E,t,"f")}get zIndex(){return o(this,H,"f")}set zIndex(t){a(this,H,t,"f")}get responsivePosition(){return o(this,A,"f")}set responsivePosition(t){a(this,A,t,"f")}get titleText(){return o(this,j,"f")}set titleText(t){a(this,j,t,"f")}get labelText(){return o(this,q,"f")}set labelText(t){a(this,q,t,"f")}get okText(){return o(this,F,"f")}set okText(t){a(this,F,t,"f")}get cancelText(){return o(this,I,"f")}set cancelText(t){a(this,I,t,"f")}get closeText(){return o(this,O,"f")}set closeText(t){a(this,O,t,"f")}get popoverAriaLabel(){return o(this,U,"f")}set popoverAriaLabel(t){a(this,U,t,"f")}get secondaryButtonText(){return o(this,K,"f")}set secondaryButtonText(t){a(this,K,t,"f")}get showSecondaryButton(){return o(this,R,"f")}set showSecondaryButton(t){a(this,R,t,"f")}get tertiaryButtonText(){return o(this,N,"f")}set tertiaryButtonText(t){a(this,N,t,"f")}get showTertiaryButton(){return o(this,X,"f")}set showTertiaryButton(t){a(this,X,t,"f")}get footerLinkText(){return o(this,Y,"f")}set footerLinkText(t){a(this,Y,t,"f")}get footerLinkHref(){return o(this,G,"f")}set footerLinkHref(t){a(this,G,t,"f")}get footerLinkTarget(){return o(this,J,"f")}set footerLinkTarget(t){a(this,J,t,"f")}get hideFooter(){return o(this,Q,"f")}set hideFooter(t){a(this,Q,t,"f")}get _panelCoords(){return o(this,V,"f")}set _panelCoords(t){a(this,V,t,"f")}get _calculatedDirection(){return o(this,Z,"f")}set _calculatedDirection(t){a(this,Z,t,"f")}get _anchorPosition(){return o(this,tt,"f")}set _anchorPosition(t){a(this,tt,t,"f")}render(){const t="link"===this.launchBehavior,e="hover"===this.launchBehavior,i=!(!this.titleText&&!this.labelText),o="auto"===this.direction?this._calculatedDirection:this.direction,a={[`direction--${o}`]:!0,"no-anchor":"none"===this.triggerType,..."none"!==this.triggerType&&{[`anchor--${this._anchorPosition}`]:!0},[`popover-size--${this.size}`]:!0,"popover-inner":!0,open:this.open,"no-header-text":!i,[`has-footer-${!this.hideFooter}`]:!0,"fullscreen-mobile":!0,[`position-type--${this.positionType}`]:!0},s=this._getPanelStyle(),n=`\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: transparent;\n z-index: ${this.zIndex?this.zIndex-1:999};\n pointer-events: none;\n `;return h`
405
+ }`;let b=(()=>{var n,b,x,T,_,z,$,P,M,S,L,B,C,W,D,E,O,A,H,j,q,F,I,U,K,R,N,X,Y,G,J,Q,V,Z,tt,et;let it,ot,at,st,nt,rt,lt,ht,pt,ct,dt,ut,mt,vt,ft,kt,yt,gt,wt,bt,xt,Tt,_t,zt,$t,Pt,Mt,St,Lt,Bt,Ct,Wt,Dt,Et,Ot,At,Ht,jt,qt=[p("kyn-popover")],Ft=[],It=r,Ut=[],Kt=[],Rt=[],Nt=[],Xt=[],Yt=[],Gt=[],Jt=[],Qt=[],Vt=[],Zt=[],te=[],ee=[],ie=[],oe=[],ae=[],se=[],ne=[],re=[],le=[],he=[],pe=[],ce=[],de=[],ue=[],me=[],ve=[],fe=[],ke=[],ye=[],ge=[],we=[],be=[],xe=[],Te=[],_e=[],ze=[],$e=[],Pe=[],Me=[],Se=[],Le=[],Be=[],Ce=[],We=[],De=[],Ee=[],Oe=[],Ae=[],He=[],je=[],qe=[],Fe=[],Ie=[],Ue=[],Ke=[],Re=[],Ne=[],Xe=[],Ye=[],Ge=[],Je=[],Qe=[],Ve=[],Ze=[],ti=[],ei=[],ii=[],oi=[],ai=[],si=[],ni=[];return ot=class extends It{constructor(){super(...arguments),n.set(this,i(this,Ut,"auto")),b.set(this,(i(this,Kt),i(this,Rt,"fixed"))),x.set(this,(i(this,Nt),i(this,Xt,"default"))),T.set(this,(i(this,Yt),i(this,Gt,""))),_.set(this,(i(this,Jt),i(this,Qt,!1))),z.set(this,(i(this,Vt),i(this,Zt,"_self"))),$.set(this,(i(this,te),i(this,ee,"mini"))),P.set(this,(i(this,ie),i(this,oe,void 0))),M.set(this,(i(this,ae),i(this,se,void 0))),S.set(this,(i(this,ne),i(this,re,"button"))),L.set(this,(i(this,le),i(this,he,void 0))),B.set(this,(i(this,pe),i(this,ce,200))),C.set(this,(i(this,de),i(this,ue,void 0))),W.set(this,(i(this,me),i(this,ve,void 0))),D.set(this,(i(this,fe),i(this,ke,void 0))),E.set(this,(i(this,ye),i(this,ge,void 0))),O.set(this,(i(this,we),i(this,be,!1))),A.set(this,(i(this,xe),i(this,Te,void 0))),H.set(this,(i(this,_e),i(this,ze,void 0))),j.set(this,(i(this,$e),i(this,Pe,""))),q.set(this,(i(this,Me),i(this,Se,""))),F.set(this,(i(this,Le),i(this,Be,"OK"))),I.set(this,(i(this,Ce),i(this,We,"Cancel"))),U.set(this,(i(this,De),i(this,Ee,"Close"))),K.set(this,(i(this,Oe),i(this,Ae,"Popover"))),R.set(this,(i(this,He),i(this,je,"Secondary"))),N.set(this,(i(this,qe),i(this,Fe,!1))),X.set(this,(i(this,Ie),i(this,Ue,"Tertiary"))),Y.set(this,(i(this,Ke),i(this,Re,!1))),G.set(this,(i(this,Ne),i(this,Xe,""))),J.set(this,(i(this,Ye),i(this,Ge,""))),Q.set(this,(i(this,Je),i(this,Qe,"_self"))),V.set(this,(i(this,Ve),i(this,Ze,!1))),Z.set(this,(i(this,ti),i(this,ei,{top:0,left:0}))),tt.set(this,(i(this,ii),i(this,oi,"bottom"))),et.set(this,(i(this,ai),i(this,si,"center"))),this._keyboardListener=(i(this,ni),null),this._autoUpdateCleanup=null,this._open=!1,this._hoverCloseTimer=null,this._isMouseOverPopover=!1,this._getPanelStyle=()=>`${v(this.positionType,this.zIndex,this.triggerType,this._panelCoords,this.top,this.left,this.bottom,this.right)}${this.arrowPosition?`--arrow-offset: ${this.arrowPosition};`:""}`,this._onKeyDown=t=>{"Escape"===t.key&&this.open&&this._close()},this._handleAction=t=>{this.open=!1,this.dispatchEvent(new CustomEvent("on-close",{detail:{action:t}}))}}get direction(){return o(this,n,"f")}set direction(t){a(this,n,t,"f")}get positionType(){return o(this,b,"f")}set positionType(t){a(this,b,t,"f")}get launchBehavior(){return o(this,x,"f")}set launchBehavior(t){a(this,x,t,"f")}get linkHref(){return o(this,T,"f")}set linkHref(t){a(this,T,t,"f")}get footerLinkOnly(){return o(this,_,"f")}set footerLinkOnly(t){a(this,_,t,"f")}get linkTarget(){return o(this,z,"f")}set linkTarget(t){a(this,z,t,"f")}get size(){return o(this,$,"f")}set size(t){a(this,$,t,"f")}get offsetDistance(){return o(this,P,"f")}set offsetDistance(t){a(this,P,t,"f")}get shiftPadding(){return o(this,M,"f")}set shiftPadding(t){a(this,M,t,"f")}get triggerType(){return o(this,S,"f")}set triggerType(t){a(this,S,t,"f")}get arrowPosition(){return o(this,L,"f")}set arrowPosition(t){a(this,L,t,"f")}get open(){return this._open}set open(t){var e;const i=this._open;if(this._open=t,this.requestUpdate("open",i),t&&!i){const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".anchor");if(!t)return;const i=t.querySelector('slot[name="anchor"]'),o=null==i?void 0:i.assignedElements(),a=(null==o?void 0:o.length)?o[0]:t;if(!a)return;this.dispatchEvent(new CustomEvent("on-open"));const s=this.shadowRoot.querySelector(".popover-inner");if(!s)return;this._autoUpdateCleanup=m(a,s,(()=>this._position()))}!t&&i&&(this.dispatchEvent(new CustomEvent("on-close")),this._autoUpdateCleanup&&(this._autoUpdateCleanup(),this._autoUpdateCleanup=null))}get animationDuration(){return o(this,B,"f")}set animationDuration(t){a(this,B,t,"f")}get top(){return o(this,C,"f")}set top(t){a(this,C,t,"f")}get left(){return o(this,W,"f")}set left(t){a(this,W,t,"f")}get bottom(){return o(this,D,"f")}set bottom(t){a(this,D,t,"f")}get right(){return o(this,E,"f")}set right(t){a(this,E,t,"f")}get destructive(){return o(this,O,"f")}set destructive(t){a(this,O,t,"f")}get zIndex(){return o(this,A,"f")}set zIndex(t){a(this,A,t,"f")}get responsivePosition(){return o(this,H,"f")}set responsivePosition(t){a(this,H,t,"f")}get titleText(){return o(this,j,"f")}set titleText(t){a(this,j,t,"f")}get labelText(){return o(this,q,"f")}set labelText(t){a(this,q,t,"f")}get okText(){return o(this,F,"f")}set okText(t){a(this,F,t,"f")}get cancelText(){return o(this,I,"f")}set cancelText(t){a(this,I,t,"f")}get closeText(){return o(this,U,"f")}set closeText(t){a(this,U,t,"f")}get popoverAriaLabel(){return o(this,K,"f")}set popoverAriaLabel(t){a(this,K,t,"f")}get secondaryButtonText(){return o(this,R,"f")}set secondaryButtonText(t){a(this,R,t,"f")}get showSecondaryButton(){return o(this,N,"f")}set showSecondaryButton(t){a(this,N,t,"f")}get tertiaryButtonText(){return o(this,X,"f")}set tertiaryButtonText(t){a(this,X,t,"f")}get showTertiaryButton(){return o(this,Y,"f")}set showTertiaryButton(t){a(this,Y,t,"f")}get footerLinkText(){return o(this,G,"f")}set footerLinkText(t){a(this,G,t,"f")}get footerLinkHref(){return o(this,J,"f")}set footerLinkHref(t){a(this,J,t,"f")}get footerLinkTarget(){return o(this,Q,"f")}set footerLinkTarget(t){a(this,Q,t,"f")}get hideFooter(){return o(this,V,"f")}set hideFooter(t){a(this,V,t,"f")}get _panelCoords(){return o(this,Z,"f")}set _panelCoords(t){a(this,Z,t,"f")}get _calculatedDirection(){return o(this,tt,"f")}set _calculatedDirection(t){a(this,tt,t,"f")}get _anchorPosition(){return o(this,et,"f")}set _anchorPosition(t){a(this,et,t,"f")}render(){const t="link"===this.launchBehavior,e="hover"===this.launchBehavior,i=!(!this.titleText&&!this.labelText),o="auto"===this.direction?this._calculatedDirection:this.direction,a={[`direction--${o}`]:!0,"no-anchor":"none"===this.triggerType,..."none"!==this.triggerType&&{[`anchor--${this._anchorPosition}`]:!0},[`popover-size--${this.size}`]:!0,"popover-inner":!0,open:this.open,"no-header-text":!i,[`has-footer-${!this.hideFooter}`]:!0,"fullscreen-mobile":!0,[`position-type--${this.positionType}`]:!0},s=this._getPanelStyle(),n=`\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: transparent;\n z-index: ${this.zIndex?this.zIndex-1:999};\n pointer-events: none;\n `;return h`
406
406
  <div class="popover">
407
407
  ${t?h`
408
408
  <a
@@ -469,63 +469,74 @@ import{__setFunctionName as t,__esDecorate as e,__runInitializers as i,__classPr
469
469
  description=${this.closeText}
470
470
  @on-click=${()=>this._handleAction("cancel")}
471
471
  >
472
- ${s(y)}
472
+ ${s(g)}
473
473
  </kyn-button>
474
474
  </div>
475
- `}_renderStandard(){const t=!(!this.titleText&&!this.labelText),e=!!this.querySelector('[slot="footerLink"]')||!!this.footerLinkText||!!this.footerLinkHref,i=!!this.querySelector('[slot="footer"]'),o=this.showSecondaryButton||this.showTertiaryButton,a=!this.hideFooter&&(o||e||i);return h`
476
- ${t?h` <header>
477
- ${this.titleText?h`<h2>${this.titleText}</h2>`:null}
478
- ${this.labelText?h`<span class="label">${this.labelText}</span>`:null}
479
- <kyn-button
480
- class="close"
481
- kind="ghost"
482
- size="small"
483
- description=${this.closeText}
484
- @on-click=${()=>this._handleAction("cancel")}
485
- >
486
- ${s(y)}
487
- </kyn-button>
488
- </header>`:null}
475
+ `}_renderStandard(){const t=!(!this.titleText&&!this.labelText),e=!!this.querySelector('[slot="footerLink"]'),i=!!this.footerLinkText||!!this.footerLinkHref,o=e||i,a=!!this.querySelector('[slot="footer"]'),n=!this.footerLinkOnly,r=!this.footerLinkOnly&&this.showSecondaryButton,l=!this.footerLinkOnly&&this.showTertiaryButton,p=n||r||l,c=!this.hideFooter&&(p||o||a);return h`
476
+ ${t?h`
477
+ <header>
478
+ ${this.titleText?h`<h2>${this.titleText}</h2>`:null}
479
+ ${this.labelText?h`<span class="label">${this.labelText}</span>`:null}
480
+ <kyn-button
481
+ class="close"
482
+ kind="ghost"
483
+ size="small"
484
+ description=${this.closeText}
485
+ @on-click=${()=>this._handleAction("cancel")}
486
+ >
487
+ ${s(g)}
488
+ </kyn-button>
489
+ </header>
490
+ `:null}
489
491
  <div class="body" id="popover-content"><slot></slot></div>
490
492
 
491
- ${a?h`
493
+ ${c?h`
492
494
  <div class="footer">
493
- ${i?h`<slot name="footer"></slot>`:h`
494
- <kyn-button
495
- class="action-button"
496
- value="ok"
497
- size="small"
498
- kind=${this.destructive?"primary-destructive":"primary"}
499
- @on-click=${()=>this._handleAction("ok")}
500
- >
501
- ${this.okText}
502
- </kyn-button>
503
- ${this.showSecondaryButton?h`<kyn-button
504
- class="action-button"
505
- value="secondary"
506
- size="small"
507
- kind="secondary"
508
- @on-click=${()=>this._handleAction("secondary")}
509
- >
510
- ${this.secondaryButtonText}
511
- </kyn-button>`:null}
512
- ${this.showTertiaryButton?h`<kyn-button
513
- class="action-button"
514
- value="tertiary"
515
- size="small"
516
- kind="tertiary"
517
- @on-click=${()=>this._handleAction("tertiary")}
518
- >
519
- ${this.tertiaryButtonText}
520
- </kyn-button>`:null}
521
- ${e?this.footerLinkText||this.footerLinkHref?h`<kyn-link
522
- class="footer-link"
523
- href=${this.footerLinkHref}
524
- target=${this.footerLinkTarget}
525
- >${this.footerLinkText}</kyn-link
526
- >`:h`<slot name="footerLink"></slot>`:null}
495
+ ${a?h`<slot name="footer"></slot>`:h`
496
+ ${n?h`
497
+ <kyn-button
498
+ class="action-button"
499
+ value="ok"
500
+ size="small"
501
+ kind=${this.destructive?"primary-destructive":"primary"}
502
+ @on-click=${()=>this._handleAction("ok")}
503
+ >
504
+ ${this.okText}
505
+ </kyn-button>
506
+ `:null}
507
+ ${r?h`
508
+ <kyn-button
509
+ class="action-button"
510
+ value="secondary"
511
+ size="small"
512
+ kind="secondary"
513
+ @on-click=${()=>this._handleAction("secondary")}
514
+ >
515
+ ${this.secondaryButtonText}
516
+ </kyn-button>
517
+ `:null}
518
+ ${l?h`
519
+ <kyn-button
520
+ class="action-button"
521
+ value="tertiary"
522
+ size="small"
523
+ kind="tertiary"
524
+ @on-click=${()=>this._handleAction("tertiary")}
525
+ >
526
+ ${this.tertiaryButtonText}
527
+ </kyn-button>
528
+ `:null}
529
+ ${o?e?h`<slot name="footerLink"></slot>`:h`
530
+ <kyn-link
531
+ class="footer-link"
532
+ href=${this.footerLinkHref}
533
+ target=${this.footerLinkTarget}
534
+ >
535
+ ${this.footerLinkText}
536
+ </kyn-link>
537
+ `:null}
527
538
  `}
528
539
  </div>
529
540
  `:null}
530
- `}connectedCallback(){var t;if(super.connectedCallback(),document.addEventListener("keydown",this._onKeyDown),this.open){const e=this.shadowRoot.querySelector(".anchor"),i=null===(t=e.querySelector('slot[name="anchor"]'))||void 0===t?void 0:t.assignedElements(),o=(null==i?void 0:i.length)?i[0]:e,a=this.shadowRoot.querySelector(".popover-inner");this._autoUpdateCleanup=m(o,a,(()=>this._position()))}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this._autoUpdateCleanup&&(this._autoUpdateCleanup(),this._autoUpdateCleanup=null),this._hoverCloseTimer&&(clearTimeout(this._hoverCloseTimer),this._hoverCloseTimer=null),this._isMouseOverPopover=!1,this._removeFocusListener()}updated(t){(t.has("open")&&this.open||t.has("arrowPosition")||t.has("offsetDistance")||t.has("shiftPadding")||t.has("positionType"))&&this.updateComplete.then((()=>{this._position(),this._handleFocusKeyboardEvents()})),t.has("arrowPosition")&&this.arrowPosition&&this.style.setProperty("--arrow-offset",this.arrowPosition)}_toggle(){this.open=!this.open}_close(){this.open=!1}_handleAnchorClick(t){"default"===this.launchBehavior&&this._toggle()}_handleMouseEnter(){"hover"!==this.launchBehavior&&"link"!==this.launchBehavior||(this._isMouseOverPopover=!0,this._hoverCloseTimer&&(clearTimeout(this._hoverCloseTimer),this._hoverCloseTimer=null),this.open=!0)}_handleMouseLeave(){"hover"!==this.launchBehavior&&"link"!==this.launchBehavior||(this._isMouseOverPopover=!1,this._hoverCloseTimer=setTimeout((()=>{this._isMouseOverPopover||(this.open=!1,this._hoverCloseTimer=null)}),300))}_handlePanelMouseEnter(){"hover"!==this.launchBehavior&&"link"!==this.launchBehavior||(this._isMouseOverPopover=!0,this._hoverCloseTimer&&(clearTimeout(this._hoverCloseTimer),this._hoverCloseTimer=null))}_handlePanelMouseLeave(){"hover"!==this.launchBehavior&&"link"!==this.launchBehavior||(this._isMouseOverPopover=!1,this._hoverCloseTimer=setTimeout((()=>{this._isMouseOverPopover||(this.open=!1,this._hoverCloseTimer=null)}),300))}_handleAnchorKeydown(t){"Enter"!==t.key&&" "!==t.key&&"Spacebar"!==t.key||(t.preventDefault(),"link"===this.launchBehavior&&this.linkHref?"_blank"===this.linkTarget?window.open(this.linkHref,"_blank"):window.location.href=this.linkHref:("default"===this.launchBehavior||"hover"===this.launchBehavior)&&this._toggle())}_handleFocusKeyboardEvents(){const t=this.shadowRoot.querySelector(".popover-inner");if(!t)return;const e=f(t);this._keyboardListener=e.keyboardListener}_removeFocusListener(){const t=this.shadowRoot.querySelector(".popover-inner");k(t,this._keyboardListener,null),this._keyboardListener=null}async _position(){var t;await this.updateComplete;const e=this.shadowRoot.querySelector(".popover-inner");if(!e)return;if("none"===this.triggerType){const t=this._getPanelStyle(),i=this.arrowPosition?`; --arrow-offset-x: ${this.arrowPosition}; --arrow-offset-y: ${this.arrowPosition};`:"";return e.setAttribute("style",t+i),void(this._calculatedDirection="auto"===this.direction?"bottom":this.direction)}const i=this.shadowRoot.querySelector(".anchor"),o=null===(t=i.querySelector('slot[name="anchor"]'))||void 0===t?void 0:t.assignedElements(),a=(null==o?void 0:o.length)?o[0]:i,s=e.querySelector(".arrow"),n="auto"!==this.direction?this.direction:void 0,r={offsetDistance:this.offsetDistance,shiftPadding:this.shiftPadding,positionType:this.positionType},{x:l,y:h,placement:p,arrowX:c,arrowY:d}=await g(a,e,s,n,r),[u,m]=p.includes("-")?p.split("-"):[p,"center"];this._calculatedDirection=u,this._anchorPosition=m;const v=this.top?parseInt(this.top.replace(/[^0-9-]/g,""),10):0,f=this.left?parseInt(this.left.replace(/[^0-9-]/g,""),10):0;this._panelCoords={top:Math.round(h)+v,left:Math.round(l)+f},e.style.top=`${this._panelCoords.top}px`,e.style.left=`${this._panelCoords.left}px`,"wide"===this.size?e.style.maxWidth="var(--kyn-popover-wide-max-width)":"narrow"===this.size?e.style.maxWidth="var(--kyn-popover-narrow-max-width)":"mini"===this.size&&(e.style.maxWidth="var(--kyn-popover-mini-max-width)"),this.arrowPosition?e.style.setProperty("--arrow-offset-x",this.arrowPosition):(null!=c&&e.style.setProperty("--arrow-offset-x",`${Math.round(c)}px`),null!=d&&e.style.setProperty("--arrow-offset-y",`${Math.round(d)}px`))}},n=new WeakMap,b=new WeakMap,x=new WeakMap,T=new WeakMap,_=new WeakMap,z=new WeakMap,$=new WeakMap,P=new WeakMap,M=new WeakMap,S=new WeakMap,B=new WeakMap,L=new WeakMap,C=new WeakMap,W=new WeakMap,D=new WeakMap,E=new WeakMap,H=new WeakMap,A=new WeakMap,j=new WeakMap,q=new WeakMap,F=new WeakMap,I=new WeakMap,O=new WeakMap,U=new WeakMap,K=new WeakMap,R=new WeakMap,N=new WeakMap,X=new WeakMap,Y=new WeakMap,G=new WeakMap,J=new WeakMap,Q=new WeakMap,V=new WeakMap,Z=new WeakMap,tt=new WeakMap,t(it,"Popover"),(()=>{var t;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(t=Ft[Symbol.metadata])&&void 0!==t?t:null):void 0;ot=[c({type:String,reflect:!0})],at=[c({type:String})],st=[c({type:String})],nt=[c({type:String})],rt=[c({type:String})],lt=[c({type:String})],ht=[c({type:Number,reflect:!0})],pt=[c({type:Number,reflect:!0})],ct=[c({type:String,reflect:!0})],dt=[c({type:String,reflect:!0})],ut=[c({type:Number})],mt=[c({type:String})],vt=[c({type:String})],ft=[c({type:String})],kt=[c({type:String})],gt=[c({type:Boolean})],yt=[c({type:Number})],wt=[c({type:String})],bt=[c({type:String})],xt=[c({type:String})],Tt=[c({type:String})],_t=[c({type:String})],zt=[c({type:String})],$t=[c({type:String})],Pt=[c({type:String})],Mt=[c({type:Boolean})],St=[c({type:String})],Bt=[c({type:Boolean})],Lt=[c({type:String})],Ct=[c({type:String})],Wt=[c({type:String})],Dt=[c({type:Boolean})],Et=[d()],Ht=[d()],At=[d()],e(it,null,ot,{kind:"accessor",name:"direction",static:!1,private:!1,access:{has:t=>"direction"in t,get:t=>t.direction,set:(t,e)=>{t.direction=e}},metadata:i},It,Ot),e(it,null,at,{kind:"accessor",name:"positionType",static:!1,private:!1,access:{has:t=>"positionType"in t,get:t=>t.positionType,set:(t,e)=>{t.positionType=e}},metadata:i},Ut,Kt),e(it,null,st,{kind:"accessor",name:"launchBehavior",static:!1,private:!1,access:{has:t=>"launchBehavior"in t,get:t=>t.launchBehavior,set:(t,e)=>{t.launchBehavior=e}},metadata:i},Rt,Nt),e(it,null,nt,{kind:"accessor",name:"linkHref",static:!1,private:!1,access:{has:t=>"linkHref"in t,get:t=>t.linkHref,set:(t,e)=>{t.linkHref=e}},metadata:i},Xt,Yt),e(it,null,rt,{kind:"accessor",name:"linkTarget",static:!1,private:!1,access:{has:t=>"linkTarget"in t,get:t=>t.linkTarget,set:(t,e)=>{t.linkTarget=e}},metadata:i},Gt,Jt),e(it,null,lt,{kind:"accessor",name:"size",static:!1,private:!1,access:{has:t=>"size"in t,get:t=>t.size,set:(t,e)=>{t.size=e}},metadata:i},Qt,Vt),e(it,null,ht,{kind:"accessor",name:"offsetDistance",static:!1,private:!1,access:{has:t=>"offsetDistance"in t,get:t=>t.offsetDistance,set:(t,e)=>{t.offsetDistance=e}},metadata:i},Zt,te),e(it,null,pt,{kind:"accessor",name:"shiftPadding",static:!1,private:!1,access:{has:t=>"shiftPadding"in t,get:t=>t.shiftPadding,set:(t,e)=>{t.shiftPadding=e}},metadata:i},ee,ie),e(it,null,ct,{kind:"accessor",name:"triggerType",static:!1,private:!1,access:{has:t=>"triggerType"in t,get:t=>t.triggerType,set:(t,e)=>{t.triggerType=e}},metadata:i},oe,ae),e(it,null,dt,{kind:"accessor",name:"arrowPosition",static:!1,private:!1,access:{has:t=>"arrowPosition"in t,get:t=>t.arrowPosition,set:(t,e)=>{t.arrowPosition=e}},metadata:i},se,ne),e(it,null,ut,{kind:"accessor",name:"animationDuration",static:!1,private:!1,access:{has:t=>"animationDuration"in t,get:t=>t.animationDuration,set:(t,e)=>{t.animationDuration=e}},metadata:i},re,le),e(it,null,mt,{kind:"accessor",name:"top",static:!1,private:!1,access:{has:t=>"top"in t,get:t=>t.top,set:(t,e)=>{t.top=e}},metadata:i},he,pe),e(it,null,vt,{kind:"accessor",name:"left",static:!1,private:!1,access:{has:t=>"left"in t,get:t=>t.left,set:(t,e)=>{t.left=e}},metadata:i},ce,de),e(it,null,ft,{kind:"accessor",name:"bottom",static:!1,private:!1,access:{has:t=>"bottom"in t,get:t=>t.bottom,set:(t,e)=>{t.bottom=e}},metadata:i},ue,me),e(it,null,kt,{kind:"accessor",name:"right",static:!1,private:!1,access:{has:t=>"right"in t,get:t=>t.right,set:(t,e)=>{t.right=e}},metadata:i},ve,fe),e(it,null,gt,{kind:"accessor",name:"destructive",static:!1,private:!1,access:{has:t=>"destructive"in t,get:t=>t.destructive,set:(t,e)=>{t.destructive=e}},metadata:i},ke,ge),e(it,null,yt,{kind:"accessor",name:"zIndex",static:!1,private:!1,access:{has:t=>"zIndex"in t,get:t=>t.zIndex,set:(t,e)=>{t.zIndex=e}},metadata:i},ye,we),e(it,null,wt,{kind:"accessor",name:"responsivePosition",static:!1,private:!1,access:{has:t=>"responsivePosition"in t,get:t=>t.responsivePosition,set:(t,e)=>{t.responsivePosition=e}},metadata:i},be,xe),e(it,null,bt,{kind:"accessor",name:"titleText",static:!1,private:!1,access:{has:t=>"titleText"in t,get:t=>t.titleText,set:(t,e)=>{t.titleText=e}},metadata:i},Te,_e),e(it,null,xt,{kind:"accessor",name:"labelText",static:!1,private:!1,access:{has:t=>"labelText"in t,get:t=>t.labelText,set:(t,e)=>{t.labelText=e}},metadata:i},ze,$e),e(it,null,Tt,{kind:"accessor",name:"okText",static:!1,private:!1,access:{has:t=>"okText"in t,get:t=>t.okText,set:(t,e)=>{t.okText=e}},metadata:i},Pe,Me),e(it,null,_t,{kind:"accessor",name:"cancelText",static:!1,private:!1,access:{has:t=>"cancelText"in t,get:t=>t.cancelText,set:(t,e)=>{t.cancelText=e}},metadata:i},Se,Be),e(it,null,zt,{kind:"accessor",name:"closeText",static:!1,private:!1,access:{has:t=>"closeText"in t,get:t=>t.closeText,set:(t,e)=>{t.closeText=e}},metadata:i},Le,Ce),e(it,null,$t,{kind:"accessor",name:"popoverAriaLabel",static:!1,private:!1,access:{has:t=>"popoverAriaLabel"in t,get:t=>t.popoverAriaLabel,set:(t,e)=>{t.popoverAriaLabel=e}},metadata:i},We,De),e(it,null,Pt,{kind:"accessor",name:"secondaryButtonText",static:!1,private:!1,access:{has:t=>"secondaryButtonText"in t,get:t=>t.secondaryButtonText,set:(t,e)=>{t.secondaryButtonText=e}},metadata:i},Ee,He),e(it,null,Mt,{kind:"accessor",name:"showSecondaryButton",static:!1,private:!1,access:{has:t=>"showSecondaryButton"in t,get:t=>t.showSecondaryButton,set:(t,e)=>{t.showSecondaryButton=e}},metadata:i},Ae,je),e(it,null,St,{kind:"accessor",name:"tertiaryButtonText",static:!1,private:!1,access:{has:t=>"tertiaryButtonText"in t,get:t=>t.tertiaryButtonText,set:(t,e)=>{t.tertiaryButtonText=e}},metadata:i},qe,Fe),e(it,null,Bt,{kind:"accessor",name:"showTertiaryButton",static:!1,private:!1,access:{has:t=>"showTertiaryButton"in t,get:t=>t.showTertiaryButton,set:(t,e)=>{t.showTertiaryButton=e}},metadata:i},Ie,Oe),e(it,null,Lt,{kind:"accessor",name:"footerLinkText",static:!1,private:!1,access:{has:t=>"footerLinkText"in t,get:t=>t.footerLinkText,set:(t,e)=>{t.footerLinkText=e}},metadata:i},Ue,Ke),e(it,null,Ct,{kind:"accessor",name:"footerLinkHref",static:!1,private:!1,access:{has:t=>"footerLinkHref"in t,get:t=>t.footerLinkHref,set:(t,e)=>{t.footerLinkHref=e}},metadata:i},Re,Ne),e(it,null,Wt,{kind:"accessor",name:"footerLinkTarget",static:!1,private:!1,access:{has:t=>"footerLinkTarget"in t,get:t=>t.footerLinkTarget,set:(t,e)=>{t.footerLinkTarget=e}},metadata:i},Xe,Ye),e(it,null,Dt,{kind:"accessor",name:"hideFooter",static:!1,private:!1,access:{has:t=>"hideFooter"in t,get:t=>t.hideFooter,set:(t,e)=>{t.hideFooter=e}},metadata:i},Ge,Je),e(it,null,Et,{kind:"accessor",name:"_panelCoords",static:!1,private:!1,access:{has:t=>"_panelCoords"in t,get:t=>t._panelCoords,set:(t,e)=>{t._panelCoords=e}},metadata:i},Qe,Ve),e(it,null,Ht,{kind:"accessor",name:"_calculatedDirection",static:!1,private:!1,access:{has:t=>"_calculatedDirection"in t,get:t=>t._calculatedDirection,set:(t,e)=>{t._calculatedDirection=e}},metadata:i},Ze,ti),e(it,null,At,{kind:"accessor",name:"_anchorPosition",static:!1,private:!1,access:{has:t=>"_anchorPosition"in t,get:t=>t._anchorPosition,set:(t,e)=>{t._anchorPosition=e}},metadata:i},ei,ii),e(null,et={value:it},jt,{kind:"class",name:it.name,metadata:i},null,qt),it=et.value,i&&Object.defineProperty(it,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),it.styles=l(w),i(it,qt),it})();export{b as Popover};
541
+ `}connectedCallback(){var t;if(super.connectedCallback(),document.addEventListener("keydown",this._onKeyDown),this.open){const e=this.shadowRoot.querySelector(".anchor"),i=null===(t=e.querySelector('slot[name="anchor"]'))||void 0===t?void 0:t.assignedElements(),o=(null==i?void 0:i.length)?i[0]:e,a=this.shadowRoot.querySelector(".popover-inner");this._autoUpdateCleanup=m(o,a,(()=>this._position()))}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this._autoUpdateCleanup&&(this._autoUpdateCleanup(),this._autoUpdateCleanup=null),this._hoverCloseTimer&&(clearTimeout(this._hoverCloseTimer),this._hoverCloseTimer=null),this._isMouseOverPopover=!1,this._removeFocusListener()}updated(t){(t.has("open")&&this.open||t.has("arrowPosition")||t.has("offsetDistance")||t.has("shiftPadding")||t.has("positionType"))&&this.updateComplete.then((()=>{this._position(),this._handleFocusKeyboardEvents()})),t.has("arrowPosition")&&this.arrowPosition&&this.style.setProperty("--arrow-offset",this.arrowPosition)}_toggle(){this.open=!this.open}_close(){this.open=!1}_handleAnchorClick(t){"default"===this.launchBehavior&&this._toggle()}_handleMouseEnter(){"hover"!==this.launchBehavior&&"link"!==this.launchBehavior||(this._isMouseOverPopover=!0,this._hoverCloseTimer&&(clearTimeout(this._hoverCloseTimer),this._hoverCloseTimer=null),this.open=!0)}_handleMouseLeave(){"hover"!==this.launchBehavior&&"link"!==this.launchBehavior||(this._isMouseOverPopover=!1,this._hoverCloseTimer=setTimeout((()=>{this._isMouseOverPopover||(this.open=!1,this._hoverCloseTimer=null)}),300))}_handlePanelMouseEnter(){"hover"!==this.launchBehavior&&"link"!==this.launchBehavior||(this._isMouseOverPopover=!0,this._hoverCloseTimer&&(clearTimeout(this._hoverCloseTimer),this._hoverCloseTimer=null))}_handlePanelMouseLeave(){"hover"!==this.launchBehavior&&"link"!==this.launchBehavior||(this._isMouseOverPopover=!1,this._hoverCloseTimer=setTimeout((()=>{this._isMouseOverPopover||(this.open=!1,this._hoverCloseTimer=null)}),300))}_handleAnchorKeydown(t){"Enter"!==t.key&&" "!==t.key&&"Spacebar"!==t.key||(t.preventDefault(),"link"===this.launchBehavior&&this.linkHref?"_blank"===this.linkTarget?window.open(this.linkHref,"_blank"):window.location.href=this.linkHref:("default"===this.launchBehavior||"hover"===this.launchBehavior)&&this._toggle())}_handleFocusKeyboardEvents(){const t=this.shadowRoot.querySelector(".popover-inner");if(!t)return;const e=f(t);this._keyboardListener=e.keyboardListener}_removeFocusListener(){const t=this.shadowRoot.querySelector(".popover-inner");k(t,this._keyboardListener,null),this._keyboardListener=null}async _position(){var t;await this.updateComplete;const e=this.shadowRoot.querySelector(".popover-inner");if(!e)return;if("none"===this.triggerType){const t=this._getPanelStyle(),i=this.arrowPosition?`; --arrow-offset-x: ${this.arrowPosition}; --arrow-offset-y: ${this.arrowPosition};`:"";return e.setAttribute("style",t+i),void(this._calculatedDirection="auto"===this.direction?"bottom":this.direction)}const i=this.shadowRoot.querySelector(".anchor"),o=null===(t=i.querySelector('slot[name="anchor"]'))||void 0===t?void 0:t.assignedElements(),a=(null==o?void 0:o.length)?o[0]:i,s=e.querySelector(".arrow"),n="auto"!==this.direction?this.direction:void 0,r={offsetDistance:this.offsetDistance,shiftPadding:this.shiftPadding,positionType:this.positionType},{x:l,y:h,placement:p,arrowX:c,arrowY:d}=await y(a,e,s,n,r),[u,m]=p.includes("-")?p.split("-"):[p,"center"];this._calculatedDirection=u,this._anchorPosition=m;const v=this.top?parseInt(this.top.replace(/[^0-9-]/g,""),10):0,f=this.left?parseInt(this.left.replace(/[^0-9-]/g,""),10):0;this._panelCoords={top:Math.round(h)+v,left:Math.round(l)+f},e.style.top=`${this._panelCoords.top}px`,e.style.left=`${this._panelCoords.left}px`,"wide"===this.size?e.style.maxWidth="var(--kyn-popover-wide-max-width)":"narrow"===this.size?e.style.maxWidth="var(--kyn-popover-narrow-max-width)":"mini"===this.size&&(e.style.maxWidth="var(--kyn-popover-mini-max-width)"),this.arrowPosition?e.style.setProperty("--arrow-offset-x",this.arrowPosition):(null!=c&&e.style.setProperty("--arrow-offset-x",`${Math.round(c)}px`),null!=d&&e.style.setProperty("--arrow-offset-y",`${Math.round(d)}px`))}},n=new WeakMap,b=new WeakMap,x=new WeakMap,T=new WeakMap,_=new WeakMap,z=new WeakMap,$=new WeakMap,P=new WeakMap,M=new WeakMap,S=new WeakMap,L=new WeakMap,B=new WeakMap,C=new WeakMap,W=new WeakMap,D=new WeakMap,E=new WeakMap,O=new WeakMap,A=new WeakMap,H=new WeakMap,j=new WeakMap,q=new WeakMap,F=new WeakMap,I=new WeakMap,U=new WeakMap,K=new WeakMap,R=new WeakMap,N=new WeakMap,X=new WeakMap,Y=new WeakMap,G=new WeakMap,J=new WeakMap,Q=new WeakMap,V=new WeakMap,Z=new WeakMap,tt=new WeakMap,et=new WeakMap,t(ot,"Popover"),(()=>{var t;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(t=It[Symbol.metadata])&&void 0!==t?t:null):void 0;at=[c({type:String,reflect:!0})],st=[c({type:String})],nt=[c({type:String})],rt=[c({type:String})],lt=[c({type:Boolean})],ht=[c({type:String})],pt=[c({type:String})],ct=[c({type:Number,reflect:!0})],dt=[c({type:Number,reflect:!0})],ut=[c({type:String,reflect:!0})],mt=[c({type:String,reflect:!0})],vt=[c({type:Number})],ft=[c({type:String})],kt=[c({type:String})],yt=[c({type:String})],gt=[c({type:String})],wt=[c({type:Boolean})],bt=[c({type:Number})],xt=[c({type:String})],Tt=[c({type:String})],_t=[c({type:String})],zt=[c({type:String})],$t=[c({type:String})],Pt=[c({type:String})],Mt=[c({type:String})],St=[c({type:String})],Lt=[c({type:Boolean})],Bt=[c({type:String})],Ct=[c({type:Boolean})],Wt=[c({type:String})],Dt=[c({type:String})],Et=[c({type:String})],Ot=[c({type:Boolean})],At=[d()],Ht=[d()],jt=[d()],e(ot,null,at,{kind:"accessor",name:"direction",static:!1,private:!1,access:{has:t=>"direction"in t,get:t=>t.direction,set:(t,e)=>{t.direction=e}},metadata:i},Ut,Kt),e(ot,null,st,{kind:"accessor",name:"positionType",static:!1,private:!1,access:{has:t=>"positionType"in t,get:t=>t.positionType,set:(t,e)=>{t.positionType=e}},metadata:i},Rt,Nt),e(ot,null,nt,{kind:"accessor",name:"launchBehavior",static:!1,private:!1,access:{has:t=>"launchBehavior"in t,get:t=>t.launchBehavior,set:(t,e)=>{t.launchBehavior=e}},metadata:i},Xt,Yt),e(ot,null,rt,{kind:"accessor",name:"linkHref",static:!1,private:!1,access:{has:t=>"linkHref"in t,get:t=>t.linkHref,set:(t,e)=>{t.linkHref=e}},metadata:i},Gt,Jt),e(ot,null,lt,{kind:"accessor",name:"footerLinkOnly",static:!1,private:!1,access:{has:t=>"footerLinkOnly"in t,get:t=>t.footerLinkOnly,set:(t,e)=>{t.footerLinkOnly=e}},metadata:i},Qt,Vt),e(ot,null,ht,{kind:"accessor",name:"linkTarget",static:!1,private:!1,access:{has:t=>"linkTarget"in t,get:t=>t.linkTarget,set:(t,e)=>{t.linkTarget=e}},metadata:i},Zt,te),e(ot,null,pt,{kind:"accessor",name:"size",static:!1,private:!1,access:{has:t=>"size"in t,get:t=>t.size,set:(t,e)=>{t.size=e}},metadata:i},ee,ie),e(ot,null,ct,{kind:"accessor",name:"offsetDistance",static:!1,private:!1,access:{has:t=>"offsetDistance"in t,get:t=>t.offsetDistance,set:(t,e)=>{t.offsetDistance=e}},metadata:i},oe,ae),e(ot,null,dt,{kind:"accessor",name:"shiftPadding",static:!1,private:!1,access:{has:t=>"shiftPadding"in t,get:t=>t.shiftPadding,set:(t,e)=>{t.shiftPadding=e}},metadata:i},se,ne),e(ot,null,ut,{kind:"accessor",name:"triggerType",static:!1,private:!1,access:{has:t=>"triggerType"in t,get:t=>t.triggerType,set:(t,e)=>{t.triggerType=e}},metadata:i},re,le),e(ot,null,mt,{kind:"accessor",name:"arrowPosition",static:!1,private:!1,access:{has:t=>"arrowPosition"in t,get:t=>t.arrowPosition,set:(t,e)=>{t.arrowPosition=e}},metadata:i},he,pe),e(ot,null,vt,{kind:"accessor",name:"animationDuration",static:!1,private:!1,access:{has:t=>"animationDuration"in t,get:t=>t.animationDuration,set:(t,e)=>{t.animationDuration=e}},metadata:i},ce,de),e(ot,null,ft,{kind:"accessor",name:"top",static:!1,private:!1,access:{has:t=>"top"in t,get:t=>t.top,set:(t,e)=>{t.top=e}},metadata:i},ue,me),e(ot,null,kt,{kind:"accessor",name:"left",static:!1,private:!1,access:{has:t=>"left"in t,get:t=>t.left,set:(t,e)=>{t.left=e}},metadata:i},ve,fe),e(ot,null,yt,{kind:"accessor",name:"bottom",static:!1,private:!1,access:{has:t=>"bottom"in t,get:t=>t.bottom,set:(t,e)=>{t.bottom=e}},metadata:i},ke,ye),e(ot,null,gt,{kind:"accessor",name:"right",static:!1,private:!1,access:{has:t=>"right"in t,get:t=>t.right,set:(t,e)=>{t.right=e}},metadata:i},ge,we),e(ot,null,wt,{kind:"accessor",name:"destructive",static:!1,private:!1,access:{has:t=>"destructive"in t,get:t=>t.destructive,set:(t,e)=>{t.destructive=e}},metadata:i},be,xe),e(ot,null,bt,{kind:"accessor",name:"zIndex",static:!1,private:!1,access:{has:t=>"zIndex"in t,get:t=>t.zIndex,set:(t,e)=>{t.zIndex=e}},metadata:i},Te,_e),e(ot,null,xt,{kind:"accessor",name:"responsivePosition",static:!1,private:!1,access:{has:t=>"responsivePosition"in t,get:t=>t.responsivePosition,set:(t,e)=>{t.responsivePosition=e}},metadata:i},ze,$e),e(ot,null,Tt,{kind:"accessor",name:"titleText",static:!1,private:!1,access:{has:t=>"titleText"in t,get:t=>t.titleText,set:(t,e)=>{t.titleText=e}},metadata:i},Pe,Me),e(ot,null,_t,{kind:"accessor",name:"labelText",static:!1,private:!1,access:{has:t=>"labelText"in t,get:t=>t.labelText,set:(t,e)=>{t.labelText=e}},metadata:i},Se,Le),e(ot,null,zt,{kind:"accessor",name:"okText",static:!1,private:!1,access:{has:t=>"okText"in t,get:t=>t.okText,set:(t,e)=>{t.okText=e}},metadata:i},Be,Ce),e(ot,null,$t,{kind:"accessor",name:"cancelText",static:!1,private:!1,access:{has:t=>"cancelText"in t,get:t=>t.cancelText,set:(t,e)=>{t.cancelText=e}},metadata:i},We,De),e(ot,null,Pt,{kind:"accessor",name:"closeText",static:!1,private:!1,access:{has:t=>"closeText"in t,get:t=>t.closeText,set:(t,e)=>{t.closeText=e}},metadata:i},Ee,Oe),e(ot,null,Mt,{kind:"accessor",name:"popoverAriaLabel",static:!1,private:!1,access:{has:t=>"popoverAriaLabel"in t,get:t=>t.popoverAriaLabel,set:(t,e)=>{t.popoverAriaLabel=e}},metadata:i},Ae,He),e(ot,null,St,{kind:"accessor",name:"secondaryButtonText",static:!1,private:!1,access:{has:t=>"secondaryButtonText"in t,get:t=>t.secondaryButtonText,set:(t,e)=>{t.secondaryButtonText=e}},metadata:i},je,qe),e(ot,null,Lt,{kind:"accessor",name:"showSecondaryButton",static:!1,private:!1,access:{has:t=>"showSecondaryButton"in t,get:t=>t.showSecondaryButton,set:(t,e)=>{t.showSecondaryButton=e}},metadata:i},Fe,Ie),e(ot,null,Bt,{kind:"accessor",name:"tertiaryButtonText",static:!1,private:!1,access:{has:t=>"tertiaryButtonText"in t,get:t=>t.tertiaryButtonText,set:(t,e)=>{t.tertiaryButtonText=e}},metadata:i},Ue,Ke),e(ot,null,Ct,{kind:"accessor",name:"showTertiaryButton",static:!1,private:!1,access:{has:t=>"showTertiaryButton"in t,get:t=>t.showTertiaryButton,set:(t,e)=>{t.showTertiaryButton=e}},metadata:i},Re,Ne),e(ot,null,Wt,{kind:"accessor",name:"footerLinkText",static:!1,private:!1,access:{has:t=>"footerLinkText"in t,get:t=>t.footerLinkText,set:(t,e)=>{t.footerLinkText=e}},metadata:i},Xe,Ye),e(ot,null,Dt,{kind:"accessor",name:"footerLinkHref",static:!1,private:!1,access:{has:t=>"footerLinkHref"in t,get:t=>t.footerLinkHref,set:(t,e)=>{t.footerLinkHref=e}},metadata:i},Ge,Je),e(ot,null,Et,{kind:"accessor",name:"footerLinkTarget",static:!1,private:!1,access:{has:t=>"footerLinkTarget"in t,get:t=>t.footerLinkTarget,set:(t,e)=>{t.footerLinkTarget=e}},metadata:i},Qe,Ve),e(ot,null,Ot,{kind:"accessor",name:"hideFooter",static:!1,private:!1,access:{has:t=>"hideFooter"in t,get:t=>t.hideFooter,set:(t,e)=>{t.hideFooter=e}},metadata:i},Ze,ti),e(ot,null,At,{kind:"accessor",name:"_panelCoords",static:!1,private:!1,access:{has:t=>"_panelCoords"in t,get:t=>t._panelCoords,set:(t,e)=>{t._panelCoords=e}},metadata:i},ei,ii),e(ot,null,Ht,{kind:"accessor",name:"_calculatedDirection",static:!1,private:!1,access:{has:t=>"_calculatedDirection"in t,get:t=>t._calculatedDirection,set:(t,e)=>{t._calculatedDirection=e}},metadata:i},oi,ai),e(ot,null,jt,{kind:"accessor",name:"_anchorPosition",static:!1,private:!1,access:{has:t=>"_anchorPosition"in t,get:t=>t._anchorPosition,set:(t,e)=>{t._anchorPosition=e}},metadata:i},si,ni),e(null,it={value:ot},qt,{kind:"class",name:ot.name,metadata:i},null,Ft),ot=it.value,i&&Object.defineProperty(ot,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),ot.styles=l(w),i(ot,Ft),ot})();export{b as Popover};
531
542
  //# sourceMappingURL=popover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popover.js","sources":["../../../../src/components/reusable/popover/popover.ts"],"sourcesContent":["import { unsafeSVG } from 'lit-html/directives/unsafe-svg.js';\nimport { LitElement, html, TemplateResult, unsafeCSS } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { Placement, autoUpdate } from '@floating-ui/dom';\n\nimport {\n autoPosition,\n PositionType,\n Coords,\n handleFocusKeyboardEvents,\n removeFocusListener,\n getPanelStyle,\n} from '../../../common/helpers/popoverHelper';\n\nimport '../button';\nimport '../link';\n\nimport PopoverScss from './popover.scss?inline';\n\nimport closeIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/close-simple.svg';\n\n/**\n * Popover component.\n *\n * Two positioning modes are available:\n * - anchor: positioned relative to an anchor slot element\n * - floating: manually positioned via top/left/bottom/right properties\n *\n * For anchor mode, the popover will be positioned relative to the anchor element\n * based on the direction property. The position can be fixed or absolute.\n *\n * For floating (manual) mode, set triggerType=\"none\" and use top/left/bottom/right\n * properties to position the popover.\n *\n * @slot unnamed - The main popover slotted body content\n * @slot anchor - The trigger element (icon, button, link, etc.)\n * @slot footerLink - Optional link to be displayed in the footer\n *\n * @fires on-close - Emitted when any action closes the popover.`detail:{ action: string }`\n * @fires on-open - Emitted when popover opens. `detail:{ origEvent: Event }`\n */\n@customElement('kyn-popover')\nexport class Popover extends LitElement {\n static override styles = unsafeCSS(PopoverScss);\n\n /**\n * Manual direction or auto (anchor mode only)\n */\n @property({ type: String, reflect: true })\n accessor direction: 'top' | 'right' | 'bottom' | 'left' | 'auto' = 'auto';\n\n /**\n * Position type: fixed (default) or absolute\n * - fixed: positions relative to the viewport\n * - absolute: positions relative to the nearest positioned ancestor\n */\n @property({ type: String })\n accessor positionType: PositionType = 'fixed';\n\n /**\n * Popover launch behavior.\n * - default: click to launch/open popover\n * - hover: opens on hover and closes on mouse leave\n * - link: click to navigate to an externally linked URL + hover to open\n */\n @property({ type: String })\n accessor launchBehavior: 'default' | 'hover' | 'link' = 'default';\n\n /**\n * URL for link behavior (when launchBehavior is 'link')\n */\n @property({ type: String })\n accessor linkHref = '';\n\n /**\n * Target for link behavior (when launchBehavior is 'link')\n */\n @property({ type: String })\n accessor linkTarget: '_self' | '_blank' | '_parent' | '_top' = '_self';\n\n /**\n * Size variants for the popover.\n */\n @property({ type: String })\n accessor size: 'mini' | 'narrow' | 'wide' = 'mini';\n\n // Following two props map directly to Floating-UI's offset(), shift(), and arrow() middleware\n /**\n * Distance between anchor and popover (px)\n * Controls how far the popover is positioned from its anchor element\n */\n @property({ type: Number, reflect: true })\n accessor offsetDistance: number | undefined;\n\n /**\n * Padding from viewport edges (px)\n */\n @property({ type: Number, reflect: true })\n accessor shiftPadding: number | undefined;\n ////**//// */\n\n /** how we style the anchor slot */\n @property({ type: String, reflect: true })\n accessor triggerType: 'icon' | 'link' | 'button' | 'none' = 'button';\n\n /** Optional manual offset for tooltip-like triangular shaped arrow.\n * When set, this will override the automatic arrow positioning.\n */\n @property({ type: String, reflect: true })\n accessor arrowPosition: string | undefined;\n\n /**\n * Controls the popover's open state.\n *\n * @remarks\n * Setting to `true`:\n * - dispatches `on-open`\n * - starts Floating-UI `autoUpdate` to track repositioning\n * - saves the anchor element for focus restoration\n *\n * Setting to `false`:\n * - dispatches `on-close`\n * - stops floating-ui `autoUpdate`\n * - restores focus to the saved anchor element\n */\n get open() {\n return this._open;\n }\n set open(value: boolean) {\n const old = this._open;\n this._open = value;\n this.requestUpdate('open', old);\n\n if (value && !old) {\n const anchorHost = this.shadowRoot?.querySelector(\n '.anchor'\n ) as HTMLElement;\n\n if (!anchorHost) return;\n\n const slot = anchorHost.querySelector(\n 'slot[name=\"anchor\"]'\n ) as HTMLSlotElement;\n const slotted = slot?.assignedElements();\n const anchorEl = (\n slotted?.length ? slotted[0] : anchorHost\n ) as HTMLElement;\n\n if (!anchorEl) return;\n\n this.dispatchEvent(new CustomEvent('on-open'));\n\n const panel = this.shadowRoot!.querySelector(\n '.popover-inner'\n ) as HTMLElement;\n\n if (!panel) return;\n\n this._autoUpdateCleanup = autoUpdate(anchorEl, panel, () =>\n this._position()\n );\n }\n\n if (!value && old) {\n this.dispatchEvent(new CustomEvent('on-close'));\n\n if (this._autoUpdateCleanup) {\n this._autoUpdateCleanup();\n this._autoUpdateCleanup = null;\n }\n }\n }\n\n /**\n * Animation duration in milliseconds\n */\n @property({ type: Number })\n accessor animationDuration = 200;\n\n // Floating-only offset props\n /** Top position value. */\n @property({ type: String })\n accessor top: string | undefined;\n\n /** Left position value. */\n @property({ type: String })\n accessor left: string | undefined;\n\n /** Bottom position value. */\n @property({ type: String })\n accessor bottom: string | undefined;\n\n /** Right position value. */\n @property({ type: String })\n accessor right: string | undefined;\n //\n\n /**\n * Changes the primary button styles to indicate a destructive action\n */\n @property({ type: Boolean })\n accessor destructive = false;\n\n /**\n * Z-index for the popover.\n */\n @property({ type: Number })\n accessor zIndex: number | undefined;\n\n /**\n * Responsive breakpoints for adjusting position.\n */\n @property({ type: String })\n accessor responsivePosition: string | undefined;\n\n /**\n * Body title text\n */\n @property({ type: String })\n accessor titleText = '';\n\n /**\n * Body subtitle/label\n */\n @property({ type: String })\n accessor labelText = '';\n\n /**\n * OK button label\n */\n @property({ type: String })\n accessor okText = 'OK';\n\n /**\n * Cancel button label\n */\n @property({ type: String })\n accessor cancelText = 'Cancel';\n\n /**\n * Close button description text\n */\n @property({ type: String })\n accessor closeText = 'Close';\n\n /**\n * Accessible name for the popover dialog\n * Used as aria-label when no title is present\n */\n @property({ type: String })\n accessor popoverAriaLabel = 'Popover';\n\n /**\n * Secondary button text\n */\n @property({ type: String })\n accessor secondaryButtonText = 'Secondary';\n\n /**\n * Show or hide the secondary button\n */\n @property({ type: Boolean })\n accessor showSecondaryButton = false;\n\n /**\n * Tertiary button text\n */\n @property({ type: String })\n accessor tertiaryButtonText = 'Tertiary';\n\n /**\n * Show or hide the tertiary button\n */\n @property({ type: Boolean })\n accessor showTertiaryButton = false;\n\n /**\n * Text to display for an optional link in the footer.\n */\n @property({ type: String })\n accessor footerLinkText = '';\n\n /**\n * URL for the optional footer link.\n */\n @property({ type: String })\n accessor footerLinkHref = '';\n\n /**\n * Target for the footer link (ex: \"_blank\" for new tab).\n * If empty, defaults to same tab.\n */\n @property({ type: String })\n accessor footerLinkTarget: '_self' | '_blank' | '_parent' | '_top' = '_self';\n\n /**\n * Hide the entire footer\n */\n @property({ type: Boolean })\n accessor hideFooter = false;\n\n /**\n * The computed panel coordinates for positioning.\n * Contains `top` and `left` in pixels.\n * @internal\n */\n @state()\n accessor _panelCoords: Coords = { top: 0, left: 0 };\n\n /**\n * The computed direction of the popover panel when `direction=\"auto\"`.\n * 'top', 'bottom', 'left', or 'right'.\n * @internal\n */\n @state()\n accessor _calculatedDirection = 'bottom';\n\n /**\n * The computed anchor alignment relative to the trigger element.\n * 'start', 'center', or 'end'.\n * @internal\n */\n @state()\n accessor _anchorPosition = 'center';\n\n /**\n * Keyboard event listener attached to trap focus within the popover.\n * @internal\n */\n private _keyboardListener: ((e: Event) => void) | null = null;\n\n /**\n * Cleanup callback for any automatic update routines.\n * @internal\n */\n private _autoUpdateCleanup: (() => void) | null = null;\n\n /**\n * Popover open state.\n * @internal\n */\n private _open = false;\n\n /**\n * Timer for delayed hover close to prevent flickering\n * @internal\n */\n private _hoverCloseTimer: number | null = null;\n\n /**\n * Flag to track if mouse is over the popover area (anchor or panel)\n * @internal\n */\n private _isMouseOverPopover = false;\n\n override render(): TemplateResult {\n const isLinkMode = this.launchBehavior === 'link';\n const isHoverMode = this.launchBehavior === 'hover';\n const hasHeader = !!(this.titleText || this.labelText);\n const dir =\n this.direction === 'auto' ? this._calculatedDirection : this.direction;\n\n const panelClasses = {\n [`direction--${dir}`]: true,\n 'no-anchor': this.triggerType === 'none',\n ...(this.triggerType !== 'none' && {\n [`anchor--${this._anchorPosition}`]: true,\n }),\n [`popover-size--${this.size}`]: true,\n 'popover-inner': true,\n open: this.open,\n 'no-header-text': !hasHeader,\n [`has-footer-${!this.hideFooter}`]: true,\n 'fullscreen-mobile': true,\n [`position-type--${this.positionType}`]: true,\n };\n\n const panelStyles = this._getPanelStyle();\n const overlayStyles = `\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: transparent;\n z-index: ${this.zIndex ? this.zIndex - 1 : 999};\n pointer-events: none;\n `;\n\n return html`\n <div class=\"popover\">\n ${isLinkMode\n ? html`\n <a\n class=\"anchor ${this.triggerType}-anchor launch-behavior-link\"\n href=${this.linkHref}\n target=${this.linkTarget}\n tabindex=\"0\"\n aria-haspopup=\"dialog\"\n @mouseenter=${this._handleMouseEnter}\n @mouseleave=${this._handleMouseLeave}\n style=\"text-decoration: none; color: inherit; display: inline-block; cursor: pointer !important;\"\n >\n <slot name=\"anchor\"></slot>\n </a>\n `\n : html`\n <span\n class=\"anchor ${this.triggerType}-anchor launch-behavior-${this\n .launchBehavior}\"\n tabindex=\"0\"\n aria-haspopup=\"dialog\"\n @click=${this._handleAnchorClick}\n @keydown=${this._handleAnchorKeydown}\n @mouseenter=${this._handleMouseEnter}\n @mouseleave=${this._handleMouseLeave}\n style=\"${this.launchBehavior === 'hover'\n ? 'cursor: pointer !important;'\n : ''}\"\n >\n <slot name=\"anchor\"></slot>\n </span>\n `}\n ${this.open\n ? html`\n ${!isLinkMode && !isHoverMode\n ? html`\n <div\n class=\"popover-overlay\"\n style=${overlayStyles}\n @click=${this._close}\n ></div>\n `\n : ''}\n <div\n id=\"popover-panel\"\n part=\"panel\"\n role=\"dialog\"\n aria-modal=\"false\"\n aria-label=\"${hasHeader && this.titleText\n ? this.titleText\n : this.popoverAriaLabel}\"\n aria-describedby=\"${this.size === 'mini'\n ? 'mini-popover-content'\n : 'popover-content'}\"\n title=\"${this.size === 'mini' ? this.popoverAriaLabel : ''}\"\n class=${classMap(panelClasses)}\n style=${panelStyles}\n @mouseenter=${this._handlePanelMouseEnter}\n @mouseleave=${this._handlePanelMouseLeave}\n >\n <div part=\"arrow\" class=\"arrow\"></div>\n ${this.size === 'mini'\n ? this._renderMini()\n : this._renderStandard()}\n </div>\n `\n : null}\n </div>\n `;\n }\n\n private _renderMini(): TemplateResult {\n return html`\n <div class=\"mini-header\">\n <div id=\"mini-popover-content\" class=\"mini-content\">\n <slot></slot>\n </div>\n <kyn-button\n class=\"close\"\n kind=\"ghost\"\n size=\"small\"\n description=${this.closeText}\n @on-click=${() => this._handleAction('cancel')}\n >\n ${unsafeSVG(closeIcon)}\n </kyn-button>\n </div>\n `;\n }\n\n private _renderStandard(): TemplateResult {\n const hasHeader = !!(this.titleText || this.labelText);\n\n const hasFooterLink =\n !!this.querySelector('[slot=\"footerLink\"]') ||\n !!this.footerLinkText ||\n !!this.footerLinkHref;\n const hasFooterSlot = !!this.querySelector('[slot=\"footer\"]');\n const hasAnyFooterButtons =\n this.showSecondaryButton || this.showTertiaryButton;\n const shouldRenderFooter =\n !this.hideFooter &&\n (hasAnyFooterButtons || hasFooterLink || hasFooterSlot);\n\n return html`\n ${hasHeader\n ? html` <header>\n ${this.titleText ? html`<h2>${this.titleText}</h2>` : null}\n ${this.labelText\n ? html`<span class=\"label\">${this.labelText}</span>`\n : null}\n <kyn-button\n class=\"close\"\n kind=\"ghost\"\n size=\"small\"\n description=${this.closeText}\n @on-click=${() => this._handleAction('cancel')}\n >\n ${unsafeSVG(closeIcon)}\n </kyn-button>\n </header>`\n : null}\n <div class=\"body\" id=\"popover-content\"><slot></slot></div>\n\n ${shouldRenderFooter\n ? html`\n <div class=\"footer\">\n ${hasFooterSlot\n ? html`<slot name=\"footer\"></slot>`\n : html`\n <kyn-button\n class=\"action-button\"\n value=\"ok\"\n size=\"small\"\n kind=${this.destructive\n ? 'primary-destructive'\n : 'primary'}\n @on-click=${() => this._handleAction('ok')}\n >\n ${this.okText}\n </kyn-button>\n ${this.showSecondaryButton\n ? html`<kyn-button\n class=\"action-button\"\n value=\"secondary\"\n size=\"small\"\n kind=\"secondary\"\n @on-click=${() => this._handleAction('secondary')}\n >\n ${this.secondaryButtonText}\n </kyn-button>`\n : null}\n ${this.showTertiaryButton\n ? html`<kyn-button\n class=\"action-button\"\n value=\"tertiary\"\n size=\"small\"\n kind=\"tertiary\"\n @on-click=${() => this._handleAction('tertiary')}\n >\n ${this.tertiaryButtonText}\n </kyn-button>`\n : null}\n ${hasFooterLink\n ? this.footerLinkText || this.footerLinkHref\n ? html`<kyn-link\n class=\"footer-link\"\n href=${this.footerLinkHref}\n target=${this.footerLinkTarget}\n >${this.footerLinkText}</kyn-link\n >`\n : html`<slot name=\"footerLink\"></slot>`\n : null}\n `}\n </div>\n `\n : null}\n `;\n }\n\n override connectedCallback() {\n super.connectedCallback();\n document.addEventListener('keydown', this._onKeyDown as EventListener);\n\n if (this.open) {\n const anchorHost = this.shadowRoot!.querySelector(\n '.anchor'\n ) as HTMLElement;\n const slotted = (\n anchorHost.querySelector('slot[name=\"anchor\"]') as HTMLSlotElement\n )?.assignedElements();\n const anchorEl = (\n slotted?.length ? slotted[0] : anchorHost\n ) as HTMLElement;\n const panel = this.shadowRoot!.querySelector(\n '.popover-inner'\n ) as HTMLElement;\n\n this._autoUpdateCleanup = autoUpdate(anchorEl, panel, () =>\n this._position()\n );\n }\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener('keydown', this._onKeyDown as EventListener);\n\n if (this._autoUpdateCleanup) {\n this._autoUpdateCleanup();\n this._autoUpdateCleanup = null;\n }\n\n if (this._hoverCloseTimer) {\n clearTimeout(this._hoverCloseTimer);\n this._hoverCloseTimer = null;\n }\n\n this._isMouseOverPopover = false;\n this._removeFocusListener();\n }\n\n override updated(changed: Map<string, unknown>) {\n if (\n (changed.has('open') && this.open) ||\n changed.has('arrowPosition') ||\n changed.has('offsetDistance') ||\n changed.has('shiftPadding') ||\n changed.has('positionType')\n ) {\n this.updateComplete.then(() => {\n this._position();\n this._handleFocusKeyboardEvents();\n });\n }\n\n if (changed.has('arrowPosition') && this.arrowPosition) {\n this.style.setProperty('--arrow-offset', this.arrowPosition);\n }\n }\n\n /**\n * @internal\n */\n private _getPanelStyle = (): string => {\n const base = getPanelStyle(\n this.positionType,\n this.zIndex,\n this.triggerType,\n this._panelCoords,\n this.top,\n this.left,\n this.bottom,\n this.right\n );\n\n const arrowOff = this.arrowPosition\n ? `--arrow-offset: ${this.arrowPosition};`\n : '';\n\n return `${base}${arrowOff}`;\n };\n\n /**\n * @internal\n */\n private _onKeyDown = (e: Event) => {\n if ((e as KeyboardEvent).key === 'Escape' && this.open) this._close();\n };\n\n /**\n * @internal\n */\n private _handleAction = (\n action: 'ok' | 'cancel' | 'secondary' | 'tertiary'\n ): void => {\n this.open = false;\n this.dispatchEvent(new CustomEvent('on-close', { detail: { action } }));\n };\n\n private _toggle() {\n this.open = !this.open;\n }\n\n private _close() {\n this.open = false;\n }\n\n /**\n * @internal\n */\n private _handleAnchorClick(e: MouseEvent) {\n if (this.launchBehavior === 'default') {\n this._toggle();\n }\n }\n\n /**\n * @internal\n */\n private _handleMouseEnter() {\n if (this.launchBehavior === 'hover' || this.launchBehavior === 'link') {\n this._isMouseOverPopover = true;\n if (this._hoverCloseTimer) {\n clearTimeout(this._hoverCloseTimer);\n this._hoverCloseTimer = null;\n }\n this.open = true;\n }\n }\n\n /**\n * @internal\n */\n private _handleMouseLeave() {\n if (this.launchBehavior === 'hover' || this.launchBehavior === 'link') {\n this._isMouseOverPopover = false;\n this._hoverCloseTimer = setTimeout(() => {\n if (!this._isMouseOverPopover) {\n this.open = false;\n this._hoverCloseTimer = null;\n }\n }, 300) as unknown as number;\n }\n }\n\n /**\n * @internal\n */\n private _handlePanelMouseEnter() {\n if (this.launchBehavior === 'hover' || this.launchBehavior === 'link') {\n this._isMouseOverPopover = true;\n if (this._hoverCloseTimer) {\n clearTimeout(this._hoverCloseTimer);\n this._hoverCloseTimer = null;\n }\n }\n }\n\n /**\n * @internal\n */\n private _handlePanelMouseLeave() {\n if (this.launchBehavior === 'hover' || this.launchBehavior === 'link') {\n this._isMouseOverPopover = false;\n this._hoverCloseTimer = setTimeout(() => {\n if (!this._isMouseOverPopover) {\n this.open = false;\n this._hoverCloseTimer = null;\n }\n }, 300) as unknown as number;\n }\n }\n\n /**\n * @internal\n */\n private _handleAnchorKeydown(e: KeyboardEvent) {\n if (e.key === 'Enter' || e.key === ' ' || e.key === 'Spacebar') {\n e.preventDefault();\n if (this.launchBehavior === 'link' && this.linkHref) {\n if (this.linkTarget === '_blank') {\n window.open(this.linkHref, '_blank');\n } else {\n window.location.href = this.linkHref;\n }\n } else if (this.launchBehavior === 'default') {\n this._toggle();\n } else if (this.launchBehavior === 'hover') {\n this._toggle();\n }\n }\n }\n\n private _handleFocusKeyboardEvents() {\n const panel = this.shadowRoot!.querySelector(\n '.popover-inner'\n ) as HTMLElement;\n if (!panel) return;\n const res = handleFocusKeyboardEvents(panel);\n this._keyboardListener = res.keyboardListener;\n }\n\n private _removeFocusListener() {\n const panel = this.shadowRoot!.querySelector(\n '.popover-inner'\n ) as HTMLElement;\n removeFocusListener(panel, this._keyboardListener, null);\n this._keyboardListener = null;\n }\n\n private async _position() {\n await this.updateComplete;\n\n const panel = this.shadowRoot!.querySelector(\n '.popover-inner'\n ) as HTMLElement;\n if (!panel) return;\n\n if (this.triggerType === 'none') {\n const baseStyle = this._getPanelStyle();\n const arrowStyle = this.arrowPosition\n ? `; --arrow-offset-x: ${this.arrowPosition}; --arrow-offset-y: ${this.arrowPosition};`\n : '';\n panel.setAttribute('style', baseStyle + arrowStyle);\n this._calculatedDirection =\n this.direction === 'auto' ? 'bottom' : this.direction;\n return;\n }\n\n const anchorHost = this.shadowRoot!.querySelector('.anchor') as HTMLElement;\n const slotted = (\n anchorHost.querySelector('slot[name=\"anchor\"]') as HTMLSlotElement\n )?.assignedElements();\n const anchorEl = slotted?.length ? (slotted[0] as HTMLElement) : anchorHost;\n const arrowEl = panel.querySelector<HTMLElement>('.arrow')!;\n\n const override: Placement | undefined =\n this.direction !== 'auto' ? this.direction : undefined;\n\n const baseOpts = {\n offsetDistance: this.offsetDistance,\n shiftPadding: this.shiftPadding,\n positionType: this.positionType,\n };\n\n const { x, y, placement, arrowX, arrowY } = await autoPosition(\n anchorEl,\n panel,\n arrowEl,\n override,\n baseOpts\n );\n\n const [dir, anchorPos] = (\n placement.includes('-') ? placement.split('-') : [placement, 'center']\n ) as ['top' | 'bottom' | 'left' | 'right', 'start' | 'center' | 'end'];\n this._calculatedDirection = dir;\n this._anchorPosition = anchorPos;\n\n const numericTopOffset = this.top\n ? parseInt(this.top.replace(/[^0-9-]/g, ''), 10)\n : 0;\n const numericLeftOffset = this.left\n ? parseInt(this.left.replace(/[^0-9-]/g, ''), 10)\n : 0;\n this._panelCoords = {\n top: Math.round(y) + numericTopOffset,\n left: Math.round(x) + numericLeftOffset,\n };\n panel.style.top = `${this._panelCoords.top}px`;\n panel.style.left = `${this._panelCoords.left}px`;\n\n if (this.size === 'wide') {\n panel.style.maxWidth = 'var(--kyn-popover-wide-max-width)';\n } else if (this.size === 'narrow') {\n panel.style.maxWidth = 'var(--kyn-popover-narrow-max-width)';\n } else if (this.size === 'mini') {\n panel.style.maxWidth = 'var(--kyn-popover-mini-max-width)';\n }\n\n if (this.arrowPosition) {\n panel.style.setProperty('--arrow-offset-x', this.arrowPosition);\n } else {\n if (arrowX != null)\n panel.style.setProperty('--arrow-offset-x', `${Math.round(arrowX)}px`);\n if (arrowY != null)\n panel.style.setProperty('--arrow-offset-y', `${Math.round(arrowY)}px`);\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-popover': Popover;\n }\n}\n"],"names":["Popover","customElement","LitElement","_classThis","_classSuper","_Popover_direction_accessor_storage","set","this","__runInitializers","_direction_initializers","_Popover_positionType_accessor_storage","_direction_extraInitializers","_positionType_initializers","_Popover_launchBehavior_accessor_storage","_positionType_extraInitializers","_launchBehavior_initializers","_Popover_linkHref_accessor_storage","_launchBehavior_extraInitializers","_linkHref_initializers","_Popover_linkTarget_accessor_storage","_linkHref_extraInitializers","_linkTarget_initializers","_Popover_size_accessor_storage","_linkTarget_extraInitializers","_size_initializers","_Popover_offsetDistance_accessor_storage","_size_extraInitializers","_offsetDistance_initializers","_Popover_shiftPadding_accessor_storage","_offsetDistance_extraInitializers","_shiftPadding_initializers","_Popover_triggerType_accessor_storage","_shiftPadding_extraInitializers","_triggerType_initializers","_Popover_arrowPosition_accessor_storage","_triggerType_extraInitializers","_arrowPosition_initializers","_Popover_animationDuration_accessor_storage","_arrowPosition_extraInitializers","_animationDuration_initializers","_Popover_top_accessor_storage","_animationDuration_extraInitializers","_top_initializers","_Popover_left_accessor_storage","_top_extraInitializers","_left_initializers","_Popover_bottom_accessor_storage","_left_extraInitializers","_bottom_initializers","_Popover_right_accessor_storage","_bottom_extraInitializers","_right_initializers","_Popover_destructive_accessor_storage","_right_extraInitializers","_destructive_initializers","_Popover_zIndex_accessor_storage","_destructive_extraInitializers","_zIndex_initializers","_Popover_responsivePosition_accessor_storage","_zIndex_extraInitializers","_responsivePosition_initializers","_Popover_titleText_accessor_storage","_responsivePosition_extraInitializers","_titleText_initializers","_Popover_labelText_accessor_storage","_titleText_extraInitializers","_labelText_initializers","_Popover_okText_accessor_storage","_labelText_extraInitializers","_okText_initializers","_Popover_cancelText_accessor_storage","_okText_extraInitializers","_cancelText_initializers","_Popover_closeText_accessor_storage","_cancelText_extraInitializers","_closeText_initializers","_Popover_popoverAriaLabel_accessor_storage","_closeText_extraInitializers","_popoverAriaLabel_initializers","_Popover_secondaryButtonText_accessor_storage","_popoverAriaLabel_extraInitializers","_secondaryButtonText_initializers","_Popover_showSecondaryButton_accessor_storage","_secondaryButtonText_extraInitializers","_showSecondaryButton_initializers","_Popover_tertiaryButtonText_accessor_storage","_showSecondaryButton_extraInitializers","_tertiaryButtonText_initializers","_Popover_showTertiaryButton_accessor_storage","_tertiaryButtonText_extraInitializers","_showTertiaryButton_initializers","_Popover_footerLinkText_accessor_storage","_showTertiaryButton_extraInitializers","_footerLinkText_initializers","_Popover_footerLinkHref_accessor_storage","_footerLinkText_extraInitializers","_footerLinkHref_initializers","_Popover_footerLinkTarget_accessor_storage","_footerLinkHref_extraInitializers","_footerLinkTarget_initializers","_Popover_hideFooter_accessor_storage","_footerLinkTarget_extraInitializers","_hideFooter_initializers","_Popover__panelCoords_accessor_storage","_hideFooter_extraInitializers","__panelCoords_initializers","top","left","_Popover__calculatedDirection_accessor_storage","__panelCoords_extraInitializers","__calculatedDirection_initializers","_Popover__anchorPosition_accessor_storage","__calculatedDirection_extraInitializers","__anchorPosition_initializers","_keyboardListener","__anchorPosition_extraInitializers","_autoUpdateCleanup","_open","_hoverCloseTimer","_isMouseOverPopover","_getPanelStyle","getPanelStyle","positionType","zIndex","triggerType","_panelCoords","bottom","right","arrowPosition","_onKeyDown","e","key","open","_close","_handleAction","action","dispatchEvent","CustomEvent","detail","direction","__classPrivateFieldGet","value","__classPrivateFieldSet","launchBehavior","linkHref","linkTarget","size","offsetDistance","shiftPadding","old","requestUpdate","anchorHost","_a","shadowRoot","querySelector","slot","slotted","assignedElements","anchorEl","length","panel","autoUpdate","_position","animationDuration","destructive","responsivePosition","titleText","labelText","okText","cancelText","closeText","popoverAriaLabel","secondaryButtonText","showSecondaryButton","tertiaryButtonText","showTertiaryButton","footerLinkText","footerLinkHref","footerLinkTarget","hideFooter","_calculatedDirection","_anchorPosition","render","isLinkMode","isHoverMode","hasHeader","dir","panelClasses","panelStyles","overlayStyles","html","_handleMouseEnter","_handleMouseLeave","_handleAnchorClick","_handleAnchorKeydown","classMap","_handlePanelMouseEnter","_handlePanelMouseLeave","_renderMini","_renderStandard","unsafeSVG","closeIcon","hasFooterLink","hasFooterSlot","hasAnyFooterButtons","shouldRenderFooter","connectedCallback","super","document","addEventListener","disconnectedCallback","removeEventListener","clearTimeout","_removeFocusListener","updated","changed","has","updateComplete","then","_handleFocusKeyboardEvents","style","setProperty","_toggle","setTimeout","preventDefault","window","location","href","res","handleFocusKeyboardEvents","keyboardListener","removeFocusListener","baseStyle","arrowStyle","setAttribute","arrowEl","override","undefined","baseOpts","x","y","placement","arrowX","arrowY","autoPosition","anchorPos","includes","split","numericTopOffset","parseInt","replace","numericLeftOffset","Math","round","maxWidth","property","type","String","reflect","_positionType_decorators","_launchBehavior_decorators","_linkHref_decorators","_linkTarget_decorators","_size_decorators","Number","_animationDuration_decorators","_top_decorators","_left_decorators","_bottom_decorators","_right_decorators","_destructive_decorators","Boolean","_zIndex_decorators","_responsivePosition_decorators","_titleText_decorators","_labelText_decorators","_okText_decorators","_cancelText_decorators","_closeText_decorators","_popoverAriaLabel_decorators","_secondaryButtonText_decorators","_showSecondaryButton_decorators","_tertiaryButtonText_decorators","_showTertiaryButton_decorators","_footerLinkText_decorators","_footerLinkHref_decorators","_footerLinkTarget_decorators","_hideFooter_decorators","__panelCoords_decorators","state","__calculatedDirection_decorators","__anchorPosition_decorators","__esDecorate","_direction_decorators","kind","name","static","private","access","obj","get","metadata","_metadata","_offsetDistance_decorators","_shiftPadding_decorators","_triggerType_decorators","_arrowPosition_decorators","_classDescriptor","_classDecorators","_classExtraInitializers","styles","unsafeCSS","PopoverScss"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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7K,IAAA,CAAAqS,EAAA9J,KAAA8J,EAAVxH,WAAUtC,CAAA,GAAAgK,SAAAC,GAAAxM,GAAAE,IAQnB4L,EAAAjS,GAAA,KAAA6R,GAAA,CAAAM,KAAA,WAAAC,KAAA,eAAAC,QAAA,EAAAC,SAAA,EAAAC,OAAA,CAAAlF,IAAAmF,GAAA,iBAAAA,EAAAC,IAAAD,GAAAA,EAAS9K,aAAYvH,IAAA,CAAAqS,EAAA9J,KAAA8J,EAAZ9K,aAAYgB,CAAA,GAAAgK,SAAAC,GAAArM,GAAAI,IAQrBuL,EAAAjS,GAAA,KAAA+R,GAAA,CAAAI,KAAA,WAAAC,KAAA,uBAAAC,QAAA,EAAAC,SAAA,EAAAC,OAAA,CAAAlF,IAAAmF,GAAA,yBAAAA,EAAAC,IAAAD,GAAAA,EAASvH,qBAAoB9K,IAAA,CAAAqS,EAAA9J,KAAA8J,EAApBvH,qBAAoBvC,CAAA,GAAAgK,SAAAC,GAAAhM,GAAAE,IAQ7BoL,EAAAjS,GAAA,KAAAgS,GAAA,CAAAG,KAAA,WAAAC,KAAA,kBAAAC,QAAA,EAAAC,SAAA,EAAAC,OAAA,CAAAlF,IAAAmF,GAAA,oBAAAA,EAAAC,IAAAD,GAAAA,EAAStH,gBAAe/K,IAAA,CAAAqS,EAAA9J,KAAA8J,EAAftH,gBAAexC,CAAA,GAAAgK,SAAAC,GAAA7L,GAAAE,IAzR1BiL,EAAA,KAAAe,GAAA,CAAAtK,MAAA1I,IAAAiT,GAAA,CAAAd,KAAA,QAAAC,KAAApS,GAAAoS,KAAAM,SAAAC,GAAA,KAAAO,qHACkBlT,GAAAmT,OAASC,EAAUC,GADxBhT,EAAAL,GAAAkT,QAAO"}
1
+ {"version":3,"file":"popover.js","sources":["../../../../src/components/reusable/popover/popover.ts"],"sourcesContent":["import { unsafeSVG } from 'lit-html/directives/unsafe-svg.js';\nimport { LitElement, html, TemplateResult, unsafeCSS } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { Placement, autoUpdate } from '@floating-ui/dom';\n\nimport {\n autoPosition,\n PositionType,\n Coords,\n handleFocusKeyboardEvents,\n removeFocusListener,\n getPanelStyle,\n} from '../../../common/helpers/popoverHelper';\n\nimport '../button';\nimport '../link';\n\nimport PopoverScss from './popover.scss?inline';\n\nimport closeIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/close-simple.svg';\n\n/**\n * Popover component.\n *\n * Two positioning modes are available:\n * - anchor: positioned relative to an anchor slot element\n * - floating: manually positioned via top/left/bottom/right properties\n *\n * For anchor mode, the popover will be positioned relative to the anchor element\n * based on the direction property. The position can be fixed or absolute.\n *\n * For floating (manual) mode, set triggerType=\"none\" and use top/left/bottom/right\n * properties to position the popover.\n *\n * @slot unnamed - The main popover slotted body content\n * @slot anchor - The trigger element (icon, button, link, etc.)\n * @slot footerLink - Optional link to be displayed in the footer\n *\n * @fires on-close - Emitted when any action closes the popover.`detail:{ action: string }`\n * @fires on-open - Emitted when popover opens. `detail:{ origEvent: Event }`\n */\n@customElement('kyn-popover')\nexport class Popover extends LitElement {\n static override styles = unsafeCSS(PopoverScss);\n\n /**\n * Manual direction or auto (anchor mode only)\n */\n @property({ type: String, reflect: true })\n accessor direction: 'top' | 'right' | 'bottom' | 'left' | 'auto' = 'auto';\n\n /**\n * Position type: fixed (default) or absolute\n * - fixed: positions relative to the viewport\n * - absolute: positions relative to the nearest positioned ancestor\n */\n @property({ type: String })\n accessor positionType: PositionType = 'fixed';\n\n /**\n * Popover launch behavior.\n * - default: click to launch/open popover\n * - hover: opens on hover and closes on mouse leave\n * - link: click to navigate to an externally linked URL + hover to open\n */\n @property({ type: String })\n accessor launchBehavior: 'default' | 'hover' | 'link' = 'default';\n\n /**\n * URL for link behavior (when launchBehavior is 'link')\n */\n @property({ type: String })\n accessor linkHref = '';\n\n /**\n * When true, render only the footer link/slot and hide all footer buttons.\n */\n @property({ type: Boolean })\n accessor footerLinkOnly = false;\n\n /**\n * Target for link behavior (when launchBehavior is 'link')\n */\n @property({ type: String })\n accessor linkTarget: '_self' | '_blank' | '_parent' | '_top' = '_self';\n\n /**\n * Size variants for the popover.\n */\n @property({ type: String })\n accessor size: 'mini' | 'narrow' | 'wide' = 'mini';\n\n // Following two props map directly to Floating-UI's offset(), shift(), and arrow() middleware\n /**\n * Distance between anchor and popover (px)\n * Controls how far the popover is positioned from its anchor element\n */\n @property({ type: Number, reflect: true })\n accessor offsetDistance: number | undefined;\n\n /**\n * Padding from viewport edges (px)\n */\n @property({ type: Number, reflect: true })\n accessor shiftPadding: number | undefined;\n ////**//// */\n\n /** how we style the anchor slot */\n @property({ type: String, reflect: true })\n accessor triggerType: 'icon' | 'link' | 'button' | 'none' = 'button';\n\n /** Optional manual offset for tooltip-like triangular shaped arrow.\n * When set, this will override the automatic arrow positioning.\n */\n @property({ type: String, reflect: true })\n accessor arrowPosition: string | undefined;\n\n /**\n * Controls the popover's open state.\n *\n * @remarks\n * Setting to `true`:\n * - dispatches `on-open`\n * - starts Floating-UI `autoUpdate` to track repositioning\n * - saves the anchor element for focus restoration\n *\n * Setting to `false`:\n * - dispatches `on-close`\n * - stops floating-ui `autoUpdate`\n * - restores focus to the saved anchor element\n */\n get open() {\n return this._open;\n }\n set open(value: boolean) {\n const old = this._open;\n this._open = value;\n this.requestUpdate('open', old);\n\n if (value && !old) {\n const anchorHost = this.shadowRoot?.querySelector(\n '.anchor'\n ) as HTMLElement;\n\n if (!anchorHost) return;\n\n const slot = anchorHost.querySelector(\n 'slot[name=\"anchor\"]'\n ) as HTMLSlotElement;\n const slotted = slot?.assignedElements();\n const anchorEl = (\n slotted?.length ? slotted[0] : anchorHost\n ) as HTMLElement;\n\n if (!anchorEl) return;\n\n this.dispatchEvent(new CustomEvent('on-open'));\n\n const panel = this.shadowRoot!.querySelector(\n '.popover-inner'\n ) as HTMLElement;\n\n if (!panel) return;\n\n this._autoUpdateCleanup = autoUpdate(anchorEl, panel, () =>\n this._position()\n );\n }\n\n if (!value && old) {\n this.dispatchEvent(new CustomEvent('on-close'));\n\n if (this._autoUpdateCleanup) {\n this._autoUpdateCleanup();\n this._autoUpdateCleanup = null;\n }\n }\n }\n\n /**\n * Animation duration in milliseconds\n */\n @property({ type: Number })\n accessor animationDuration = 200;\n\n // Floating-only offset props\n /** Top position value. */\n @property({ type: String })\n accessor top: string | undefined;\n\n /** Left position value. */\n @property({ type: String })\n accessor left: string | undefined;\n\n /** Bottom position value. */\n @property({ type: String })\n accessor bottom: string | undefined;\n\n /** Right position value. */\n @property({ type: String })\n accessor right: string | undefined;\n //\n\n /**\n * Changes the primary button styles to indicate a destructive action\n */\n @property({ type: Boolean })\n accessor destructive = false;\n\n /**\n * Z-index for the popover.\n */\n @property({ type: Number })\n accessor zIndex: number | undefined;\n\n /**\n * Responsive breakpoints for adjusting position.\n */\n @property({ type: String })\n accessor responsivePosition: string | undefined;\n\n /**\n * Body title text\n */\n @property({ type: String })\n accessor titleText = '';\n\n /**\n * Body subtitle/label\n */\n @property({ type: String })\n accessor labelText = '';\n\n /**\n * OK button label\n */\n @property({ type: String })\n accessor okText = 'OK';\n\n /**\n * Cancel button label\n */\n @property({ type: String })\n accessor cancelText = 'Cancel';\n\n /**\n * Close button description text\n */\n @property({ type: String })\n accessor closeText = 'Close';\n\n /**\n * Accessible name for the popover dialog\n * Used as aria-label when no title is present\n */\n @property({ type: String })\n accessor popoverAriaLabel = 'Popover';\n\n /**\n * Secondary button text\n */\n @property({ type: String })\n accessor secondaryButtonText = 'Secondary';\n\n /**\n * Show or hide the secondary button\n */\n @property({ type: Boolean })\n accessor showSecondaryButton = false;\n\n /**\n * Tertiary button text\n */\n @property({ type: String })\n accessor tertiaryButtonText = 'Tertiary';\n\n /**\n * Show or hide the tertiary button\n */\n @property({ type: Boolean })\n accessor showTertiaryButton = false;\n\n /**\n * Text to display for an optional link in the footer.\n */\n @property({ type: String })\n accessor footerLinkText = '';\n\n /**\n * URL for the optional footer link.\n */\n @property({ type: String })\n accessor footerLinkHref = '';\n\n /**\n * Target for the footer link (ex: \"_blank\" for new tab).\n * If empty, defaults to same tab.\n */\n @property({ type: String })\n accessor footerLinkTarget: '_self' | '_blank' | '_parent' | '_top' = '_self';\n\n /**\n * Hide the entire footer\n */\n @property({ type: Boolean })\n accessor hideFooter = false;\n\n /**\n * The computed panel coordinates for positioning.\n * Contains `top` and `left` in pixels.\n * @internal\n */\n @state()\n accessor _panelCoords: Coords = { top: 0, left: 0 };\n\n /**\n * The computed direction of the popover panel when `direction=\"auto\"`.\n * 'top', 'bottom', 'left', or 'right'.\n * @internal\n */\n @state()\n accessor _calculatedDirection = 'bottom';\n\n /**\n * The computed anchor alignment relative to the trigger element.\n * 'start', 'center', or 'end'.\n * @internal\n */\n @state()\n accessor _anchorPosition = 'center';\n\n /**\n * Keyboard event listener attached to trap focus within the popover.\n * @internal\n */\n private _keyboardListener: ((e: Event) => void) | null = null;\n\n /**\n * Cleanup callback for any automatic update routines.\n * @internal\n */\n private _autoUpdateCleanup: (() => void) | null = null;\n\n /**\n * Popover open state.\n * @internal\n */\n private _open = false;\n\n /**\n * Timer for delayed hover close to prevent flickering\n * @internal\n */\n private _hoverCloseTimer: number | null = null;\n\n /**\n * Flag to track if mouse is over the popover area (anchor or panel)\n * @internal\n */\n private _isMouseOverPopover = false;\n\n override render(): TemplateResult {\n const isLinkMode = this.launchBehavior === 'link';\n const isHoverMode = this.launchBehavior === 'hover';\n const hasHeader = !!(this.titleText || this.labelText);\n const dir =\n this.direction === 'auto' ? this._calculatedDirection : this.direction;\n\n const panelClasses = {\n [`direction--${dir}`]: true,\n 'no-anchor': this.triggerType === 'none',\n ...(this.triggerType !== 'none' && {\n [`anchor--${this._anchorPosition}`]: true,\n }),\n [`popover-size--${this.size}`]: true,\n 'popover-inner': true,\n open: this.open,\n 'no-header-text': !hasHeader,\n [`has-footer-${!this.hideFooter}`]: true,\n 'fullscreen-mobile': true,\n [`position-type--${this.positionType}`]: true,\n };\n\n const panelStyles = this._getPanelStyle();\n const overlayStyles = `\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: transparent;\n z-index: ${this.zIndex ? this.zIndex - 1 : 999};\n pointer-events: none;\n `;\n\n return html`\n <div class=\"popover\">\n ${isLinkMode\n ? html`\n <a\n class=\"anchor ${this.triggerType}-anchor launch-behavior-link\"\n href=${this.linkHref}\n target=${this.linkTarget}\n tabindex=\"0\"\n aria-haspopup=\"dialog\"\n @mouseenter=${this._handleMouseEnter}\n @mouseleave=${this._handleMouseLeave}\n style=\"text-decoration: none; color: inherit; display: inline-block; cursor: pointer !important;\"\n >\n <slot name=\"anchor\"></slot>\n </a>\n `\n : html`\n <span\n class=\"anchor ${this.triggerType}-anchor launch-behavior-${this\n .launchBehavior}\"\n tabindex=\"0\"\n aria-haspopup=\"dialog\"\n @click=${this._handleAnchorClick}\n @keydown=${this._handleAnchorKeydown}\n @mouseenter=${this._handleMouseEnter}\n @mouseleave=${this._handleMouseLeave}\n style=\"${this.launchBehavior === 'hover'\n ? 'cursor: pointer !important;'\n : ''}\"\n >\n <slot name=\"anchor\"></slot>\n </span>\n `}\n ${this.open\n ? html`\n ${!isLinkMode && !isHoverMode\n ? html`\n <div\n class=\"popover-overlay\"\n style=${overlayStyles}\n @click=${this._close}\n ></div>\n `\n : ''}\n <div\n id=\"popover-panel\"\n part=\"panel\"\n role=\"dialog\"\n aria-modal=\"false\"\n aria-label=\"${hasHeader && this.titleText\n ? this.titleText\n : this.popoverAriaLabel}\"\n aria-describedby=\"${this.size === 'mini'\n ? 'mini-popover-content'\n : 'popover-content'}\"\n title=\"${this.size === 'mini' ? this.popoverAriaLabel : ''}\"\n class=${classMap(panelClasses)}\n style=${panelStyles}\n @mouseenter=${this._handlePanelMouseEnter}\n @mouseleave=${this._handlePanelMouseLeave}\n >\n <div part=\"arrow\" class=\"arrow\"></div>\n ${this.size === 'mini'\n ? this._renderMini()\n : this._renderStandard()}\n </div>\n `\n : null}\n </div>\n `;\n }\n\n private _renderMini(): TemplateResult {\n return html`\n <div class=\"mini-header\">\n <div id=\"mini-popover-content\" class=\"mini-content\">\n <slot></slot>\n </div>\n <kyn-button\n class=\"close\"\n kind=\"ghost\"\n size=\"small\"\n description=${this.closeText}\n @on-click=${() => this._handleAction('cancel')}\n >\n ${unsafeSVG(closeIcon)}\n </kyn-button>\n </div>\n `;\n }\n\n private _renderStandard(): TemplateResult {\n const hasHeader = !!(this.titleText || this.labelText);\n\n const hasFooterLinkSlot = !!this.querySelector('[slot=\"footerLink\"]');\n const hasFooterLinkProps = !!this.footerLinkText || !!this.footerLinkHref;\n const hasFooterLink = hasFooterLinkSlot || hasFooterLinkProps;\n\n const hasFooterSlot = !!this.querySelector('[slot=\"footer\"]');\n\n const shouldRenderPrimary = !this.footerLinkOnly;\n const shouldRenderSecondary =\n !this.footerLinkOnly && this.showSecondaryButton;\n const shouldRenderTertiary =\n !this.footerLinkOnly && this.showTertiaryButton;\n\n const hasAnyFooterButtons =\n shouldRenderPrimary || shouldRenderSecondary || shouldRenderTertiary;\n\n const shouldRenderFooter =\n !this.hideFooter &&\n (hasAnyFooterButtons || hasFooterLink || hasFooterSlot);\n\n return html`\n ${hasHeader\n ? html`\n <header>\n ${this.titleText ? html`<h2>${this.titleText}</h2>` : null}\n ${this.labelText\n ? html`<span class=\"label\">${this.labelText}</span>`\n : null}\n <kyn-button\n class=\"close\"\n kind=\"ghost\"\n size=\"small\"\n description=${this.closeText}\n @on-click=${() => this._handleAction('cancel')}\n >\n ${unsafeSVG(closeIcon)}\n </kyn-button>\n </header>\n `\n : null}\n <div class=\"body\" id=\"popover-content\"><slot></slot></div>\n\n ${shouldRenderFooter\n ? html`\n <div class=\"footer\">\n ${hasFooterSlot\n ? html`<slot name=\"footer\"></slot>`\n : html`\n ${shouldRenderPrimary\n ? html`\n <kyn-button\n class=\"action-button\"\n value=\"ok\"\n size=\"small\"\n kind=${this.destructive\n ? 'primary-destructive'\n : 'primary'}\n @on-click=${() => this._handleAction('ok')}\n >\n ${this.okText}\n </kyn-button>\n `\n : null}\n ${shouldRenderSecondary\n ? html`\n <kyn-button\n class=\"action-button\"\n value=\"secondary\"\n size=\"small\"\n kind=\"secondary\"\n @on-click=${() => this._handleAction('secondary')}\n >\n ${this.secondaryButtonText}\n </kyn-button>\n `\n : null}\n ${shouldRenderTertiary\n ? html`\n <kyn-button\n class=\"action-button\"\n value=\"tertiary\"\n size=\"small\"\n kind=\"tertiary\"\n @on-click=${() => this._handleAction('tertiary')}\n >\n ${this.tertiaryButtonText}\n </kyn-button>\n `\n : null}\n ${hasFooterLink\n ? hasFooterLinkSlot\n ? html`<slot name=\"footerLink\"></slot>`\n : html`\n <kyn-link\n class=\"footer-link\"\n href=${this.footerLinkHref}\n target=${this.footerLinkTarget}\n >\n ${this.footerLinkText}\n </kyn-link>\n `\n : null}\n `}\n </div>\n `\n : null}\n `;\n }\n\n override connectedCallback() {\n super.connectedCallback();\n document.addEventListener('keydown', this._onKeyDown as EventListener);\n\n if (this.open) {\n const anchorHost = this.shadowRoot!.querySelector(\n '.anchor'\n ) as HTMLElement;\n const slotted = (\n anchorHost.querySelector('slot[name=\"anchor\"]') as HTMLSlotElement\n )?.assignedElements();\n const anchorEl = (\n slotted?.length ? slotted[0] : anchorHost\n ) as HTMLElement;\n const panel = this.shadowRoot!.querySelector(\n '.popover-inner'\n ) as HTMLElement;\n\n this._autoUpdateCleanup = autoUpdate(anchorEl, panel, () =>\n this._position()\n );\n }\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener('keydown', this._onKeyDown as EventListener);\n\n if (this._autoUpdateCleanup) {\n this._autoUpdateCleanup();\n this._autoUpdateCleanup = null;\n }\n\n if (this._hoverCloseTimer) {\n clearTimeout(this._hoverCloseTimer);\n this._hoverCloseTimer = null;\n }\n\n this._isMouseOverPopover = false;\n this._removeFocusListener();\n }\n\n override updated(changed: Map<string, unknown>) {\n if (\n (changed.has('open') && this.open) ||\n changed.has('arrowPosition') ||\n changed.has('offsetDistance') ||\n changed.has('shiftPadding') ||\n changed.has('positionType')\n ) {\n this.updateComplete.then(() => {\n this._position();\n this._handleFocusKeyboardEvents();\n });\n }\n\n if (changed.has('arrowPosition') && this.arrowPosition) {\n this.style.setProperty('--arrow-offset', this.arrowPosition);\n }\n }\n\n /**\n * @internal\n */\n private _getPanelStyle = (): string => {\n const base = getPanelStyle(\n this.positionType,\n this.zIndex,\n this.triggerType,\n this._panelCoords,\n this.top,\n this.left,\n this.bottom,\n this.right\n );\n\n const arrowOff = this.arrowPosition\n ? `--arrow-offset: ${this.arrowPosition};`\n : '';\n\n return `${base}${arrowOff}`;\n };\n\n /**\n * @internal\n */\n private _onKeyDown = (e: Event) => {\n if ((e as KeyboardEvent).key === 'Escape' && this.open) this._close();\n };\n\n /**\n * @internal\n */\n private _handleAction = (\n action: 'ok' | 'cancel' | 'secondary' | 'tertiary'\n ): void => {\n this.open = false;\n this.dispatchEvent(new CustomEvent('on-close', { detail: { action } }));\n };\n\n private _toggle() {\n this.open = !this.open;\n }\n\n private _close() {\n this.open = false;\n }\n\n /**\n * @internal\n */\n private _handleAnchorClick(e: MouseEvent) {\n if (this.launchBehavior === 'default') {\n this._toggle();\n }\n }\n\n /**\n * @internal\n */\n private _handleMouseEnter() {\n if (this.launchBehavior === 'hover' || this.launchBehavior === 'link') {\n this._isMouseOverPopover = true;\n if (this._hoverCloseTimer) {\n clearTimeout(this._hoverCloseTimer);\n this._hoverCloseTimer = null;\n }\n this.open = true;\n }\n }\n\n /**\n * @internal\n */\n private _handleMouseLeave() {\n if (this.launchBehavior === 'hover' || this.launchBehavior === 'link') {\n this._isMouseOverPopover = false;\n this._hoverCloseTimer = setTimeout(() => {\n if (!this._isMouseOverPopover) {\n this.open = false;\n this._hoverCloseTimer = null;\n }\n }, 300) as unknown as number;\n }\n }\n\n /**\n * @internal\n */\n private _handlePanelMouseEnter() {\n if (this.launchBehavior === 'hover' || this.launchBehavior === 'link') {\n this._isMouseOverPopover = true;\n if (this._hoverCloseTimer) {\n clearTimeout(this._hoverCloseTimer);\n this._hoverCloseTimer = null;\n }\n }\n }\n\n /**\n * @internal\n */\n private _handlePanelMouseLeave() {\n if (this.launchBehavior === 'hover' || this.launchBehavior === 'link') {\n this._isMouseOverPopover = false;\n this._hoverCloseTimer = setTimeout(() => {\n if (!this._isMouseOverPopover) {\n this.open = false;\n this._hoverCloseTimer = null;\n }\n }, 300) as unknown as number;\n }\n }\n\n /**\n * @internal\n */\n private _handleAnchorKeydown(e: KeyboardEvent) {\n if (e.key === 'Enter' || e.key === ' ' || e.key === 'Spacebar') {\n e.preventDefault();\n if (this.launchBehavior === 'link' && this.linkHref) {\n if (this.linkTarget === '_blank') {\n window.open(this.linkHref, '_blank');\n } else {\n window.location.href = this.linkHref;\n }\n } else if (this.launchBehavior === 'default') {\n this._toggle();\n } else if (this.launchBehavior === 'hover') {\n this._toggle();\n }\n }\n }\n\n private _handleFocusKeyboardEvents() {\n const panel = this.shadowRoot!.querySelector(\n '.popover-inner'\n ) as HTMLElement;\n if (!panel) return;\n const res = handleFocusKeyboardEvents(panel);\n this._keyboardListener = res.keyboardListener;\n }\n\n private _removeFocusListener() {\n const panel = this.shadowRoot!.querySelector(\n '.popover-inner'\n ) as HTMLElement;\n removeFocusListener(panel, this._keyboardListener, null);\n this._keyboardListener = null;\n }\n\n private async _position() {\n await this.updateComplete;\n\n const panel = this.shadowRoot!.querySelector(\n '.popover-inner'\n ) as HTMLElement;\n if (!panel) return;\n\n if (this.triggerType === 'none') {\n const baseStyle = this._getPanelStyle();\n const arrowStyle = this.arrowPosition\n ? `; --arrow-offset-x: ${this.arrowPosition}; --arrow-offset-y: ${this.arrowPosition};`\n : '';\n panel.setAttribute('style', baseStyle + arrowStyle);\n this._calculatedDirection =\n this.direction === 'auto' ? 'bottom' : this.direction;\n return;\n }\n\n const anchorHost = this.shadowRoot!.querySelector('.anchor') as HTMLElement;\n const slotted = (\n anchorHost.querySelector('slot[name=\"anchor\"]') as HTMLSlotElement\n )?.assignedElements();\n const anchorEl = slotted?.length ? (slotted[0] as HTMLElement) : anchorHost;\n const arrowEl = panel.querySelector<HTMLElement>('.arrow')!;\n\n const override: Placement | undefined =\n this.direction !== 'auto' ? this.direction : undefined;\n\n const baseOpts = {\n offsetDistance: this.offsetDistance,\n shiftPadding: this.shiftPadding,\n positionType: this.positionType,\n };\n\n const { x, y, placement, arrowX, arrowY } = await autoPosition(\n anchorEl,\n panel,\n arrowEl,\n override,\n baseOpts\n );\n\n const [dir, anchorPos] = (\n placement.includes('-') ? placement.split('-') : [placement, 'center']\n ) as ['top' | 'bottom' | 'left' | 'right', 'start' | 'center' | 'end'];\n this._calculatedDirection = dir;\n this._anchorPosition = anchorPos;\n\n const numericTopOffset = this.top\n ? parseInt(this.top.replace(/[^0-9-]/g, ''), 10)\n : 0;\n const numericLeftOffset = this.left\n ? parseInt(this.left.replace(/[^0-9-]/g, ''), 10)\n : 0;\n this._panelCoords = {\n top: Math.round(y) + numericTopOffset,\n left: Math.round(x) + numericLeftOffset,\n };\n panel.style.top = `${this._panelCoords.top}px`;\n panel.style.left = `${this._panelCoords.left}px`;\n\n if (this.size === 'wide') {\n panel.style.maxWidth = 'var(--kyn-popover-wide-max-width)';\n } else if (this.size === 'narrow') {\n panel.style.maxWidth = 'var(--kyn-popover-narrow-max-width)';\n } else if (this.size === 'mini') {\n panel.style.maxWidth = 'var(--kyn-popover-mini-max-width)';\n }\n\n if (this.arrowPosition) {\n panel.style.setProperty('--arrow-offset-x', this.arrowPosition);\n } else {\n if (arrowX != null)\n panel.style.setProperty('--arrow-offset-x', `${Math.round(arrowX)}px`);\n if (arrowY != null)\n panel.style.setProperty('--arrow-offset-y', `${Math.round(arrowY)}px`);\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-popover': Popover;\n }\n}\n"],"names":["Popover","customElement","LitElement","_classThis","_classSuper","_Popover_direction_accessor_storage","set","this","__runInitializers","_direction_initializers","_Popover_positionType_accessor_storage","_direction_extraInitializers","_positionType_initializers","_Popover_launchBehavior_accessor_storage","_positionType_extraInitializers","_launchBehavior_initializers","_Popover_linkHref_accessor_storage","_launchBehavior_extraInitializers","_linkHref_initializers","_Popover_footerLinkOnly_accessor_storage","_linkHref_extraInitializers","_footerLinkOnly_initializers","_Popover_linkTarget_accessor_storage","_footerLinkOnly_extraInitializers","_linkTarget_initializers","_Popover_size_accessor_storage","_linkTarget_extraInitializers","_size_initializers","_Popover_offsetDistance_accessor_storage","_size_extraInitializers","_offsetDistance_initializers","_Popover_shiftPadding_accessor_storage","_offsetDistance_extraInitializers","_shiftPadding_initializers","_Popover_triggerType_accessor_storage","_shiftPadding_extraInitializers","_triggerType_initializers","_Popover_arrowPosition_accessor_storage","_triggerType_extraInitializers","_arrowPosition_initializers","_Popover_animationDuration_accessor_storage","_arrowPosition_extraInitializers","_animationDuration_initializers","_Popover_top_accessor_storage","_animationDuration_extraInitializers","_top_initializers","_Popover_left_accessor_storage","_top_extraInitializers","_left_initializers","_Popover_bottom_accessor_storage","_left_extraInitializers","_bottom_initializers","_Popover_right_accessor_storage","_bottom_extraInitializers","_right_initializers","_Popover_destructive_accessor_storage","_right_extraInitializers","_destructive_initializers","_Popover_zIndex_accessor_storage","_destructive_extraInitializers","_zIndex_initializers","_Popover_responsivePosition_accessor_storage","_zIndex_extraInitializers","_responsivePosition_initializers","_Popover_titleText_accessor_storage","_responsivePosition_extraInitializers","_titleText_initializers","_Popover_labelText_accessor_storage","_titleText_extraInitializers","_labelText_initializers","_Popover_okText_accessor_storage","_labelText_extraInitializers","_okText_initializers","_Popover_cancelText_accessor_storage","_okText_extraInitializers","_cancelText_initializers","_Popover_closeText_accessor_storage","_cancelText_extraInitializers","_closeText_initializers","_Popover_popoverAriaLabel_accessor_storage","_closeText_extraInitializers","_popoverAriaLabel_initializers","_Popover_secondaryButtonText_accessor_storage","_popoverAriaLabel_extraInitializers","_secondaryButtonText_initializers","_Popover_showSecondaryButton_accessor_storage","_secondaryButtonText_extraInitializers","_showSecondaryButton_initializers","_Popover_tertiaryButtonText_accessor_storage","_showSecondaryButton_extraInitializers","_tertiaryButtonText_initializers","_Popover_showTertiaryButton_accessor_storage","_tertiaryButtonText_extraInitializers","_showTertiaryButton_initializers","_Popover_footerLinkText_accessor_storage","_showTertiaryButton_extraInitializers","_footerLinkText_initializers","_Popover_footerLinkHref_accessor_storage","_footerLinkText_extraInitializers","_footerLinkHref_initializers","_Popover_footerLinkTarget_accessor_storage","_footerLinkHref_extraInitializers","_footerLinkTarget_initializers","_Popover_hideFooter_accessor_storage","_footerLinkTarget_extraInitializers","_hideFooter_initializers","_Popover__panelCoords_accessor_storage","_hideFooter_extraInitializers","__panelCoords_initializers","top","left","_Popover__calculatedDirection_accessor_storage","__panelCoords_extraInitializers","__calculatedDirection_initializers","_Popover__anchorPosition_accessor_storage","__calculatedDirection_extraInitializers","__anchorPosition_initializers","_keyboardListener","__anchorPosition_extraInitializers","_autoUpdateCleanup","_open","_hoverCloseTimer","_isMouseOverPopover","_getPanelStyle","getPanelStyle","positionType","zIndex","triggerType","_panelCoords","bottom","right","arrowPosition","_onKeyDown","e","key","open","_close","_handleAction","action","dispatchEvent","CustomEvent","detail","direction","__classPrivateFieldGet","value","__classPrivateFieldSet","launchBehavior","linkHref","footerLinkOnly","linkTarget","size","offsetDistance","shiftPadding","old","requestUpdate","anchorHost","_a","shadowRoot","querySelector","slot","slotted","assignedElements","anchorEl","length","panel","autoUpdate","_position","animationDuration","destructive","responsivePosition","titleText","labelText","okText","cancelText","closeText","popoverAriaLabel","secondaryButtonText","showSecondaryButton","tertiaryButtonText","showTertiaryButton","footerLinkText","footerLinkHref","footerLinkTarget","hideFooter","_calculatedDirection","_anchorPosition","render","isLinkMode","isHoverMode","hasHeader","dir","panelClasses","panelStyles","overlayStyles","html","_handleMouseEnter","_handleMouseLeave","_handleAnchorClick","_handleAnchorKeydown","classMap","_handlePanelMouseEnter","_handlePanelMouseLeave","_renderMini","_renderStandard","unsafeSVG","closeIcon","hasFooterLinkSlot","hasFooterLinkProps","hasFooterLink","hasFooterSlot","shouldRenderPrimary","shouldRenderSecondary","shouldRenderTertiary","hasAnyFooterButtons","shouldRenderFooter","connectedCallback","super","document","addEventListener","disconnectedCallback","removeEventListener","clearTimeout","_removeFocusListener","updated","changed","has","updateComplete","then","_handleFocusKeyboardEvents","style","setProperty","_toggle","setTimeout","preventDefault","window","location","href","res","handleFocusKeyboardEvents","keyboardListener","removeFocusListener","baseStyle","arrowStyle","setAttribute","arrowEl","override","undefined","baseOpts","x","y","placement","arrowX","arrowY","autoPosition","anchorPos","includes","split","numericTopOffset","parseInt","replace","numericLeftOffset","Math","round","maxWidth","property","type","String","reflect","_positionType_decorators","_launchBehavior_decorators","_linkHref_decorators","_footerLinkOnly_decorators","Boolean","_linkTarget_decorators","_size_decorators","Number","_animationDuration_decorators","_top_decorators","_left_decorators","_bottom_decorators","_right_decorators","_destructive_decorators","_zIndex_decorators","_responsivePosition_decorators","_titleText_decorators","_labelText_decorators","_okText_decorators","_cancelText_decorators","_closeText_decorators","_popoverAriaLabel_decorators","_secondaryButtonText_decorators","_showSecondaryButton_decorators","_tertiaryButtonText_decorators","_showTertiaryButton_decorators","_footerLinkText_decorators","_footerLinkHref_decorators","_footerLinkTarget_decorators","_hideFooter_decorators","__panelCoords_decorators","state","__calculatedDirection_decorators","__anchorPosition_decorators","__esDecorate","_direction_decorators","kind","name","static","private","access","obj","get","metadata","_metadata","_offsetDistance_decorators","_shiftPadding_decorators","_triggerType_decorators","_arrowPosition_decorators","_classDescriptor","_classDecorators","_classExtraInitializers","styles","unsafeCSS","PopoverScss"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AA,WAAAC,KAAA,uBAAAC,QAAA,EAAAC,SAAA,EAAAC,OAAA,CAAAnF,IAAAoF,GAAA,yBAAAA,EAAAC,IAAAD,GAAAA,EAAS7H,qBAAoBlL,IAAA,CAAA+S,EAAArK,KAAAqK,EAApB7H,qBAAoBxC,CAAA,GAAAuK,SAAAC,GAAAvM,GAAAE,IAQ7B2L,EAAA3S,GAAA,KAAA0S,GAAA,CAAAG,KAAA,WAAAC,KAAA,kBAAAC,QAAA,EAAAC,SAAA,EAAAC,OAAA,CAAAnF,IAAAoF,GAAA,oBAAAA,EAAAC,IAAAD,GAAAA,EAAS5H,gBAAenL,IAAA,CAAA+S,EAAArK,KAAAqK,EAAf5H,gBAAezC,CAAA,GAAAuK,SAAAC,GAAApM,GAAAE,IA/R1BwL,EAAA,KAAAe,GAAA,CAAA7K,MAAA7I,IAAA2T,GAAA,CAAAd,KAAA,QAAAC,KAAA9S,GAAA8S,KAAAM,SAAAC,GAAA,KAAAO,qHACkB5T,GAAA6T,OAASC,EAAUC,GADxB1T,EAAAL,GAAA4T,QAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyndryl-design-system/shidoka-applications",
3
- "version": "2.70.2",
3
+ "version": "2.70.4",
4
4
  "description": "Shidoka Web Components for Applications",
5
5
  "license": "MIT",
6
6
  "main": "index.js",