@fluid-topics/ft-modal 2.1.17 → 2.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/ft-modal.js CHANGED
@@ -123,6 +123,7 @@ export class FtModal extends withI18n(FtdsBase) {
123
123
  onEscapePressed(e) {
124
124
  if (e.key === "Escape") {
125
125
  this.close();
126
+ e.stopPropagation();
126
127
  }
127
128
  }
128
129
  }
@@ -748,7 +748,7 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
748
748
  tertiary
749
749
  label="${Rn.messages.closeModal()}"
750
750
  tooltipPosition="left"
751
- @click=${this.close}></ft-button>`}onTriggerClick(t){this.open(t.target)}open(t){this.elementToFocusOnClose=t,this.dialog&&(this.dialog.showPopover(),this.intersectionObserver.observe(this.dialog),this.dispatchEvent(new Ln))}close(){var t;(t=this.dialog)===null||t===void 0||t.hidePopover(),this.onClose()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapePressed)}disconnectedCallback(){super.disconnectedCallback(),this.close(),this.removeEventListener("keydown",this.onEscapePressed)}onClose(){var t;this.intersectionObserver.disconnect(),(t=this.elementToFocusOnClose)===null||t===void 0||t.focus(),this.dispatchEvent(new Tn)}onOverlayClick(){this.close()}onEscapePressed(t){t.key==="Escape"&&this.close()}};Ee.elementDefinitions={"ft-button":N,"ft-typography":oe,"ft-icon":Y};Ee.styles=Lc;Cr([(0,yt.property)()],Ee.prototype,"buttonLabel",void 0);Cr([(0,yt.property)()],Ee.prototype,"buttonIcon",void 0);Cr([(0,yt.property)()],Ee.prototype,"heading",void 0);Cr([(0,yt.property)()],Ee.prototype,"icon",void 0);Cr([(0,yt.query)("dialog")],Ee.prototype,"dialog",void 0);var kc={"ft-modal":Ee};(0,Ic.customElements)(kc);})();
751
+ @click=${this.close}></ft-button>`}onTriggerClick(t){this.open(t.target)}open(t){this.elementToFocusOnClose=t,this.dialog&&(this.dialog.showPopover(),this.intersectionObserver.observe(this.dialog),this.dispatchEvent(new Ln))}close(){var t;(t=this.dialog)===null||t===void 0||t.hidePopover(),this.onClose()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapePressed)}disconnectedCallback(){super.disconnectedCallback(),this.close(),this.removeEventListener("keydown",this.onEscapePressed)}onClose(){var t;this.intersectionObserver.disconnect(),(t=this.elementToFocusOnClose)===null||t===void 0||t.focus(),this.dispatchEvent(new Tn)}onOverlayClick(){this.close()}onEscapePressed(t){t.key==="Escape"&&(this.close(),t.stopPropagation())}};Ee.elementDefinitions={"ft-button":N,"ft-typography":oe,"ft-icon":Y};Ee.styles=Lc;Cr([(0,yt.property)()],Ee.prototype,"buttonLabel",void 0);Cr([(0,yt.property)()],Ee.prototype,"buttonIcon",void 0);Cr([(0,yt.property)()],Ee.prototype,"heading",void 0);Cr([(0,yt.property)()],Ee.prototype,"icon",void 0);Cr([(0,yt.query)("dialog")],Ee.prototype,"dialog",void 0);var kc={"ft-modal":Ee};(0,Ic.customElements)(kc);})();
752
752
  /*! Bundled license information:
753
753
 
754
754
  lit-html/lit-html.js:
@@ -828,7 +828,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
828
828
  tertiary
829
829
  label="${va.messages.closeModal()}"
830
830
  tooltipPosition="left"
831
- @click=${this.close}></ft-button>`}onTriggerClick(e){this.open(e.target)}open(e){this.elementToFocusOnClose=e,this.dialog&&(this.dialog.showPopover(),this.intersectionObserver.observe(this.dialog),this.dispatchEvent(new Ea))}close(){var e;(e=this.dialog)===null||e===void 0||e.hidePopover(),this.onClose()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapePressed)}disconnectedCallback(){super.disconnectedCallback(),this.close(),this.removeEventListener("keydown",this.onEscapePressed)}onClose(){var e;this.intersectionObserver.disconnect(),(e=this.elementToFocusOnClose)===null||e===void 0||e.focus(),this.dispatchEvent(new Sa)}onOverlayClick(){this.close()}onEscapePressed(e){e.key==="Escape"&&this.close()}};Ne.elementDefinitions={"ft-button":z,"ft-typography":ge,"ft-icon":ce};Ne.styles=xd;io([S()],Ne.prototype,"buttonLabel",void 0);io([S()],Ne.prototype,"buttonIcon",void 0);io([S()],Ne.prototype,"heading",void 0);io([S()],Ne.prototype,"icon",void 0);io([ne("dialog")],Ne.prototype,"dialog",void 0);var Sd={"ft-modal":Ne};J(Sd);})();
831
+ @click=${this.close}></ft-button>`}onTriggerClick(e){this.open(e.target)}open(e){this.elementToFocusOnClose=e,this.dialog&&(this.dialog.showPopover(),this.intersectionObserver.observe(this.dialog),this.dispatchEvent(new Ea))}close(){var e;(e=this.dialog)===null||e===void 0||e.hidePopover(),this.onClose()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onEscapePressed)}disconnectedCallback(){super.disconnectedCallback(),this.close(),this.removeEventListener("keydown",this.onEscapePressed)}onClose(){var e;this.intersectionObserver.disconnect(),(e=this.elementToFocusOnClose)===null||e===void 0||e.focus(),this.dispatchEvent(new Sa)}onOverlayClick(){this.close()}onEscapePressed(e){e.key==="Escape"&&(this.close(),e.stopPropagation())}};Ne.elementDefinitions={"ft-button":z,"ft-typography":ge,"ft-icon":ce};Ne.styles=xd;io([S()],Ne.prototype,"buttonLabel",void 0);io([S()],Ne.prototype,"buttonIcon",void 0);io([S()],Ne.prototype,"heading",void 0);io([S()],Ne.prototype,"icon",void 0);io([ne("dialog")],Ne.prototype,"dialog",void 0);var Sd={"ft-modal":Ne};J(Sd);})();
832
832
  /*! Bundled license information:
833
833
 
834
834
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-modal",
3
- "version": "2.1.17",
3
+ "version": "2.1.18",
4
4
  "description": "Modal for Design System V2",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "2.1.17",
22
+ "@fluid-topics/ft-wc-utils": "2.1.18",
23
23
  "lit": "3.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@fluid-topics/ft-wc-test-utils": "2.1.17"
26
+ "@fluid-topics/ft-wc-test-utils": "2.1.18"
27
27
  },
28
- "gitHead": "2ef8ba95ea8d846d66b2e817a97f9c0fe6f3075a"
28
+ "gitHead": "2effe252f9ab22ede85f961b8464ec8aa4d27870"
29
29
  }