isobit-ui 0.0.286 → 0.0.287

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 +52 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.286
2
+ * isobit-ui v0.0.287
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -4841,6 +4841,57 @@ _ = Object.assign(_, {
4841
4841
  varMap: {},
4842
4842
  id: function id() {
4843
4843
  return ++_._id;
4844
+ },
4845
+ findForm: function findForm(e) {
4846
+ var parent = e.parentNode;
4847
+
4848
+ if (parent && parent.tagName != 'FORM') {
4849
+ parent = _.findForm(parent);
4850
+ }
4851
+
4852
+ return parent;
4853
+ },
4854
+ fadeOut: function fadeOut(id, val) {
4855
+ if (isNaN(val)) {
4856
+ val = 9;
4857
+ }
4858
+
4859
+ document.getElementById(id).style.opacity = '0.' + val; //For IE
4860
+
4861
+ document.getElementById(id).style.filter = 'alpha(opacity=' + val + '0)';
4862
+
4863
+ if (val > 0) {
4864
+ val--;
4865
+ setTimeout('fadeOut("' + id + '",' + val + ')', 90);
4866
+ } else {
4867
+ return;
4868
+ }
4869
+ },
4870
+ fadeIn: function fadeIn(id, val) {
4871
+ // ID of the element to fade, Fade value[min value is 0]
4872
+ if (isNaN(val)) {
4873
+ val = 0;
4874
+ }
4875
+
4876
+ document.getElementById(id).style.opacity = '0.' + val; //For IE
4877
+
4878
+ document.getElementById(id).style.filter = 'alpha(opacity=' + val + '0)';
4879
+
4880
+ if (val < 9) {
4881
+ val++;
4882
+ setTimeout('fadeIn("' + id + '",' + val + ')', 90);
4883
+ } else {
4884
+ return;
4885
+ }
4886
+ },
4887
+ whichChild: function whichChild(e) {
4888
+ var i = 0;
4889
+
4890
+ while ((e = e.previousSibling) != null) {
4891
+ ++i;
4892
+ }
4893
+
4894
+ return i;
4844
4895
  }
4845
4896
  });
4846
4897
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.286",
3
+ "version": "0.0.287",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",