@fluid-topics/ft-dialog 0.2.3 → 0.2.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.
@@ -336,7 +336,7 @@ function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){c
336
336
  </div>
337
337
  </div>
338
338
  </div>
339
- `:null}updated(t){if(t.has("opened")){const t=new CustomEvent("opened-changed",{detail:{opened:this.opened}});this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.watchEscapeKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.watchEscapeKey.bind(this))}close(){this.opened=!1}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}si.elementDefinitions={"ft-typography":ze,"ft-icon":He},Ze([e({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],si.prototype,"opened",void 0),Ze([e({type:Boolean})],si.prototype,"closeOnEsc",void 0),Ze([e({type:Boolean})],si.prototype,"closeOnClickOutside",void 0),Ze([e({type:String})],si.prototype,"heading",void 0),Ze([e({type:String})],si.prototype,"icon",void 0),o("ft-dialog")(function t(e){var i;let o;if("elementDefinitions"in e){o={};const i=e.elementDefinitions;for(let e in i)o[e]=t(i[e])}return i=class extends e{constructor(...t){super(t),this._constructor=this.constructor}render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),T`
339
+ `:null}updated(t){if(t.has("opened")){const t=new CustomEvent("opened-changed",{detail:{opened:this.opened}});this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.watchEscapeKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.watchEscapeKey.bind(this))}close(){this.opened=!1}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}si.elementDefinitions={"ft-typography":ze,"ft-icon":He},Ze([e({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],si.prototype,"opened",void 0),Ze([e({type:Boolean})],si.prototype,"closeOnEsc",void 0),Ze([e({type:Boolean})],si.prototype,"closeOnClickOutside",void 0),Ze([e({type:String})],si.prototype,"heading",void 0),Ze([e({type:String})],si.prototype,"icon",void 0),o("ft-dialog")(function t(e){var i;let o;if("elementDefinitions"in e){o={};const i=e.elementDefinitions;for(let e in i)o[e]=t(i[e])}return i=class extends e{render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),T`
340
340
  ${i.map((t=>T`
341
341
  <style>${t}</style>
342
342
  `))}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-dialog",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "A simple dialog component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "^0.2.3",
23
- "@fluid-topics/ft-typography": "^0.2.3",
24
- "@fluid-topics/ft-wc-utils": "^0.2.3",
22
+ "@fluid-topics/ft-icon": "^0.2.4",
23
+ "@fluid-topics/ft-typography": "^0.2.4",
24
+ "@fluid-topics/ft-wc-utils": "^0.2.4",
25
25
  "lit": "2.1.3"
26
26
  },
27
- "gitHead": "a5df7643c6d7366989f10deef7da8d21d97dc801"
27
+ "gitHead": "dd34b0ce95457dbe65b23250e49804ee883096d9"
28
28
  }