@lemonadejs/modal 5.8.0 → 5.8.1

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -429,7 +429,7 @@ if (!lemonade && typeof (require) === 'function') {
429
429
  }
430
430
  }
431
431
 
432
- const Modal = function (template, { onchange, onload }) {
432
+ const Modal = function (template, { onchange, onload, track }) {
433
433
  let self = this;
434
434
  let backdrop = null;
435
435
  let elements = null;
@@ -834,7 +834,12 @@ if (!lemonade && typeof (require) === 'function') {
834
834
  }
835
835
  });
836
836
 
837
- return render => render`<div class="lm-modal" animation="{{self.animation}}" position="{{self.position}}" closed="{{self.closed}}" closable="{{self.closable}}" minimizable="{{self.minimizable}}" minimized="{{self.minimized}}" overflow="{{self.overflow}}" :top="self.top" :left="self.left" :width="self.width" :height="self.height" tabindex="-1" role="modal" onmousedown="${mousedown}" onmousemove="${mousemove}" onclick="${click}">
837
+ track('top');
838
+ track('left');
839
+ track('width');
840
+ track('height');
841
+
842
+ return render => render`<div class="lm-modal" animation="{{self.animation}}" position="{{self.position}}" closed="{{self.closed}}" closable="{{self.closable}}" minimizable="{{self.minimizable}}" minimized="{{self.minimized}}" overflow="{{self.overflow}}" tabindex="-1" role="modal" onmousedown="${mousedown}" onmousemove="${mousemove}" onclick="${click}">
838
843
  <div class="lm-modal-title" data-title="{{self.title}}" data-icon="{{self.icon}}"><div class="lm-modal-icon">{{self.icon}}</div><div>{{self.title}}</div><div class="lm-modal-icon lm-modal-minimize" tabindex="0"></div><div class="lm-modal-icon lm-modal-close" tabindex="0"></div></div>
839
844
  <div :ref="self.root">${template}</div>
840
845
  </div>`
package/package.json CHANGED
@@ -13,9 +13,9 @@
13
13
  "modal js"
14
14
  ],
15
15
  "dependencies": {
16
- "lemonadejs": "^5.3.2"
16
+ "lemonadejs": "^5.3.6"
17
17
  },
18
18
  "main": "dist/index.js",
19
19
  "types": "dist/index.d.ts",
20
- "version": "5.8.0"
20
+ "version": "5.8.1"
21
21
  }