isobit-ui 0.0.376 → 0.0.377

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 +92 -92
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.375
2
+ * isobit-ui v0.0.377
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -4840,6 +4840,96 @@ if (typeof Object.assign != 'function') {
4840
4840
  };
4841
4841
  }
4842
4842
 
4843
+ var buildPopupMenu = function buildPopupMenu(p) {
4844
+ var pid = p.getAttribute("popup");
4845
+ if (!pid) p.setAttribute("popup", pid = _$1.id());
4846
+ var popup = _$1.storeFunction[pid];
4847
+ var bu = p.querySelectorAll('.ui-datatable-header .v-button');
4848
+
4849
+ if (bu && bu.length && !popup && window.innerWidth <= 700) {
4850
+ setTimeout(function () {
4851
+ popup = document.createElement('ul');
4852
+ popup.className = 'v-popup-2';
4853
+ popup.style.backgroundColor = 'white';
4854
+ popup.style.position = 'absolute';
4855
+ popup.style.top = '0px';
4856
+ popup.style.fontSize = '26px';
4857
+ popup.style.right = '0px';
4858
+ popup.style.display = 'none';
4859
+ popup.style.width = '200px';
4860
+ popup.style.zIndex = '12000';
4861
+ p.appendChild(popup);
4862
+ var mask = null;
4863
+
4864
+ var itemClick = function itemClick() {
4865
+ //console.log(this);
4866
+ popup.style.display = 'none';
4867
+ var id = this.getAttribute('commandId');
4868
+ var cmd = document.querySelector('#' + id);
4869
+ if (cmd.tagName == 'BUTTON') cmd.click();else cmd.children[0].click(); //console.log(cmd);
4870
+
4871
+ _$1.unmask(mask);
4872
+ };
4873
+
4874
+ p.style.position = 'relative';
4875
+ var pbutton = document.createElement('div');
4876
+ pbutton.style.display = 'inline-block';
4877
+ pbutton.style.backgroundColor = 'transparent';
4878
+ pbutton.style.position = 'absolute';
4879
+ pbutton.className = 'v-mobil v-table-buttons';
4880
+ var i = document.createElement('i');
4881
+ i.className = 'fa fa-bars fa-w-14';
4882
+ pbutton.appendChild(i);
4883
+ pbutton.style.borderWidth = '0px';
4884
+ pbutton.style.top = '32px';
4885
+ pbutton.style.right = '0px';
4886
+ pbutton.style.padding = '6px 11px'; //pbutton.style.fontSize='26px';
4887
+
4888
+ pbutton.style.zIndex = '200';
4889
+
4890
+ pbutton.onclick = function () {
4891
+ bu = p.querySelectorAll('.ui-datatable-header .v-button');
4892
+
4893
+ while (popup.firstChild) {
4894
+ popup.removeChild(popup.firstChild);
4895
+ }
4896
+
4897
+ for (i = 0; i < bu.length; i++) {
4898
+ var ite = document.createElement('li');
4899
+ if (!bu[i].id) bu[i].id = 'c-' + _$1.id();
4900
+ ite.setAttribute('commandId', bu[i].id);
4901
+
4902
+ if (bu[i].tagName == 'BUTTON') {
4903
+ if (bu[i].disabled) continue;
4904
+ ite.appendChild(bu[i].children[0].cloneNode(true));
4905
+ ite.appendChild(document.createTextNode(bu[i].value ? bu[i].value : bu[i].title));
4906
+ } else if (bu[i].children[0].children[1]) {
4907
+ ite.appendChild(bu[i].children[0].children[1]); //.cloneNode()
4908
+
4909
+ ite.appendChild(document.createTextNode(bu[i].textContent));
4910
+ }
4911
+
4912
+ ite.onclick = itemClick;
4913
+ popup.appendChild(ite);
4914
+ }
4915
+
4916
+ mask = _$1.mask(popup); //popup.style.top=(parseInt(pbutton.style.top)+pbutton.offsetHeight)+'px';
4917
+
4918
+ popup.style.display = 'block';
4919
+
4920
+ mask.onclick = function () {
4921
+ popup.style.display = 'none';
4922
+
4923
+ _$1.unmask(mask);
4924
+ };
4925
+ };
4926
+
4927
+ p.appendChild(pbutton);
4928
+ _$1.storeFunction[pid] = popup;
4929
+ }, 1000);
4930
+ }
4931
+ };
4932
+
4843
4933
  var resize = function resize() {
4844
4934
  //dialog.style.left = (window.innerWidth - dialog.offsetWidth) / 2 + 'px';
4845
4935
  var h = window.innerHeight;
@@ -4862,6 +4952,7 @@ var resize = function resize() {
4862
4952
  p.children[0].style.height = h + 'px';
4863
4953
  e = p.children[0].children;
4864
4954
  h = h - e[0].offsetHeight - 2;
4955
+ buildPopupMenu(e[1].children[0]);
4865
4956
  e = e[1].children[0].children;
4866
4957
  console.log(e);
4867
4958
 
@@ -4935,97 +5026,6 @@ var resize = function resize() {
4935
5026
 
4936
5027
  console.log("p");
4937
5028
  console.log(p);
4938
-
4939
- if (p) {
4940
- alert(12);
4941
- var pid = p.getAttribute("popup");
4942
- if (!pid) p.setAttribute("popup", pid = _$1.id());
4943
- var popup = _$1.storeFunction[pid];
4944
- var bu = p.querySelectorAll('.ui-datatable-header .v-button');
4945
-
4946
- if (bu && bu.length && !popup && window.innerWidth <= 700) {
4947
- setTimeout(function () {
4948
- popup = document.createElement('ul');
4949
- popup.className = 'v-popup-2';
4950
- popup.style.backgroundColor = 'white';
4951
- popup.style.position = 'absolute';
4952
- popup.style.top = '0px';
4953
- popup.style.fontSize = '26px';
4954
- popup.style.right = '0px';
4955
- popup.style.display = 'none';
4956
- popup.style.width = '200px';
4957
- popup.style.zIndex = '12000';
4958
- p.appendChild(popup);
4959
- var mask = null;
4960
-
4961
- var itemClick = function itemClick() {
4962
- //console.log(this);
4963
- popup.style.display = 'none';
4964
- var id = this.getAttribute('commandId');
4965
- var cmd = document.querySelector('#' + id);
4966
- if (cmd.tagName == 'BUTTON') cmd.click();else cmd.children[0].click(); //console.log(cmd);
4967
-
4968
- _$1.unmask(mask);
4969
- };
4970
-
4971
- p.style.position = 'relative';
4972
- var pbutton = document.createElement('div');
4973
- pbutton.style.display = 'inline-block';
4974
- pbutton.style.backgroundColor = 'transparent';
4975
- pbutton.style.position = 'absolute';
4976
- pbutton.className = 'v-mobil v-table-buttons';
4977
- var i = document.createElement('i');
4978
- i.className = 'fa fa-bars fa-w-14';
4979
- pbutton.appendChild(i);
4980
- pbutton.style.borderWidth = '0px';
4981
- pbutton.style.top = '32px';
4982
- pbutton.style.right = '0px';
4983
- pbutton.style.padding = '6px 11px'; //pbutton.style.fontSize='26px';
4984
-
4985
- pbutton.style.zIndex = '200';
4986
-
4987
- pbutton.onclick = function () {
4988
- bu = p.querySelectorAll('.ui-datatable-header .v-button');
4989
-
4990
- while (popup.firstChild) {
4991
- popup.removeChild(popup.firstChild);
4992
- }
4993
-
4994
- for (i = 0; i < bu.length; i++) {
4995
- var ite = document.createElement('li');
4996
- if (!bu[i].id) bu[i].id = 'c-' + _$1.id();
4997
- ite.setAttribute('commandId', bu[i].id);
4998
-
4999
- if (bu[i].tagName == 'BUTTON') {
5000
- if (bu[i].disabled) continue;
5001
- ite.appendChild(bu[i].children[0].cloneNode(true));
5002
- ite.appendChild(document.createTextNode(bu[i].value ? bu[i].value : bu[i].title));
5003
- } else if (bu[i].children[0].children[1]) {
5004
- ite.appendChild(bu[i].children[0].children[1]); //.cloneNode()
5005
-
5006
- ite.appendChild(document.createTextNode(bu[i].textContent));
5007
- }
5008
-
5009
- ite.onclick = itemClick;
5010
- popup.appendChild(ite);
5011
- }
5012
-
5013
- mask = _$1.mask(popup); //popup.style.top=(parseInt(pbutton.style.top)+pbutton.offsetHeight)+'px';
5014
-
5015
- popup.style.display = 'block';
5016
-
5017
- mask.onclick = function () {
5018
- popup.style.display = 'none';
5019
-
5020
- _$1.unmask(mask);
5021
- };
5022
- };
5023
-
5024
- p.appendChild(pbutton);
5025
- _$1.storeFunction[pid] = popup;
5026
- }, 1000);
5027
- }
5028
- }
5029
5029
  } else {
5030
5030
  var ww = document.querySelectorAll(".ion-page");
5031
5031
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.376",
3
+ "version": "0.0.377",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",