smoothly 1.59.0 → 1.60.0

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.
@@ -11243,7 +11243,9 @@ const SmoothlyModal = class {
11243
11243
  this.smoothlyModalChange.emit(this.open);
11244
11244
  }
11245
11245
  render() {
11246
- return (index.h(index.Host, { key: 'a50953a27ed2c94320f88a317f90912b53d2d3e5', role: "alertdialog" }, index.h("div", { key: '634e13e3184dff0ac93243dcc3df18b2ddb44252', class: "modal" }, index.h("div", { key: '7b58d511eee450787a585711b5709edfc8da3afe', class: "header" }, index.h("slot", { key: '8dc832e44d766900686bd717bcbbb8022dc0eec0', name: "header" }), this.closable && index.h("smoothly-icon", { key: '49bd72e24db0afbfc09757dcaac70729f3bd2ea3', name: "close-outline", fill: "solid", onClick: () => (this.open = false) })), index.h("slot", { key: 'cba02f8be7efdece8d7bd53dd257c17cc982c3d7' }), index.h("div", { key: '1c86c1bb123a849c9aae0912cfb9efee28c4d880', class: "actions" }, index.h("slot", { key: 'a766d99df09a879c4c939fde87626137f42441f8', name: "actions" })))));
11246
+ return (index.h(index.Host, { key: '1e8fbcd3f3babf6bf19164737d2fd66152002579', role: "alertdialog", onClick: (e) => {
11247
+ this.closable && !e.composedPath().some((el) => { var _a; return (_a = el.classList) === null || _a === void 0 ? void 0 : _a.contains("modal"); }) && (this.open = false);
11248
+ } }, index.h("div", { key: 'e8d7e37ccc8dba719cf3cbc276d44ef15b0e16f9', class: "modal" }, index.h("div", { key: 'c3b02ab926e5392a541d7a0e66b2cc6ea4ee9e9b', class: "header" }, index.h("slot", { key: 'd48561b7a57810cc18274f48d9c68d5c9b8b5d0a', name: "header" }), this.closable && index.h("smoothly-icon", { key: 'a3a95093ced46f041c223129d09dba2e2823d103', name: "close-outline", fill: "solid", onClick: () => (this.open = false) })), index.h("slot", { key: '023796ee9c172164a20390b675e3019ee0783417' }), index.h("div", { key: 'd5ed4c3e7ab14c4e5ae279a9724b48234d1d5843', class: "actions" }, index.h("slot", { key: '2237ea901f75172837f7bd3b88294f0ae30d8789', name: "actions" })))));
11247
11249
  }
11248
11250
  static get watchers() { return {
11249
11251
  "open": ["openChanged"]