isobit-ui 0.2.0 → 0.2.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 +68 -65
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.2.0
2
+ * isobit-ui v0.2.1
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -5637,85 +5637,88 @@ if (typeof Object.assign != 'function') {
5637
5637
 
5638
5638
  var buildPopupMenu = function buildPopupMenu(parent) {
5639
5639
  var pid = parent.getAttribute("v--popup");
5640
- if (!pid) parent.setAttribute("v--popup", pid = _$1.id());
5641
- var popup = _$1.storeFunction[pid];
5642
- var bu = parent.querySelectorAll('.v-datatable-header .v-button');
5643
5640
 
5644
- if (bu && bu.length && !popup && window.innerWidth <= 700) {
5645
- setTimeout(function () {
5646
- popup = document.createElement('ul');
5647
- popup.className = 'v-popup-2';
5648
- popup.style.backgroundColor = 'white';
5649
- popup.style.position = 'absolute';
5650
- popup.style.bottom = '0px';
5651
- popup.style.fontSize = '26px';
5652
- popup.style.right = '0px';
5653
- popup.style.display = 'none';
5654
- popup.style.width = '200px';
5655
- popup.style.zIndex = '12000';
5656
- parent.appendChild(popup);
5657
- var mask = null;
5658
-
5659
- var itemClick = function itemClick() {
5660
- //console.log(this);
5641
+ if (!pid) {
5642
+ parent.setAttribute("v--popup", pid = _$1.id());
5643
+ var popup = _$1.storeFunction[pid];
5644
+ var bu = parent.querySelectorAll('.v-datatable-header .v-button');
5645
+
5646
+ if (bu && bu.length && !popup && window.innerWidth <= 700) {
5647
+ setTimeout(function () {
5648
+ popup = document.createElement('ul');
5649
+ popup.className = 'v-popup-2';
5650
+ popup.style.backgroundColor = 'white';
5651
+ popup.style.position = 'absolute';
5652
+ popup.style.bottom = '0px';
5653
+ popup.style.fontSize = '26px';
5654
+ popup.style.right = '0px';
5661
5655
  popup.style.display = 'none';
5662
- var id = this.getAttribute('commandId');
5663
- var cmd = document.querySelector('#' + id);
5664
- if (cmd.tagName == 'BUTTON') cmd.click();else cmd.children[0].click(); //console.log(cmd);
5656
+ popup.style.width = '200px';
5657
+ popup.style.zIndex = '12000';
5658
+ parent.appendChild(popup);
5659
+ var mask = null;
5665
5660
 
5666
- _$1.unmask(mask);
5667
- };
5661
+ var itemClick = function itemClick() {
5662
+ //console.log(this);
5663
+ popup.style.display = 'none';
5664
+ var id = this.getAttribute('commandId');
5665
+ var cmd = document.querySelector('#' + id);
5666
+ if (cmd.tagName == 'BUTTON') cmd.click();else cmd.children[0].click(); //console.log(cmd);
5668
5667
 
5669
- parent.style.position = 'relative';
5670
- var pbutton = document.createElement('div');
5671
- pbutton.className = 'v-mobil v-table-buttons';
5672
- var i = document.createElement('i');
5673
- i.className = 'fa fa-bars fa-w-14';
5674
- pbutton.appendChild(i);
5668
+ _$1.unmask(mask);
5669
+ };
5675
5670
 
5676
- pbutton.onclick = function () {
5677
- bu = parent.querySelectorAll('.v-datatable-header .v-button');
5671
+ parent.style.position = 'relative';
5672
+ var pbutton = document.createElement('div');
5673
+ pbutton.className = 'v-mobil v-table-buttons';
5674
+ var i = document.createElement('i');
5675
+ i.className = 'fa fa-bars fa-w-14';
5676
+ pbutton.appendChild(i);
5678
5677
 
5679
- while (popup.firstChild) {
5680
- popup.removeChild(popup.firstChild);
5681
- }
5678
+ pbutton.onclick = function () {
5679
+ bu = parent.querySelectorAll('.v-datatable-header .v-button');
5682
5680
 
5683
- for (i = 0; i < bu.length; i++) {
5684
- //Debe tenerlo directamente no por herencia
5685
- if (bu[i].style.display != 'none') {
5686
- var ite = document.createElement('li');
5687
- if (!bu[i].id) bu[i].id = 'c-' + _$1.id();
5688
- ite.setAttribute('commandId', bu[i].id);
5689
-
5690
- if (bu[i].tagName == 'BUTTON') {
5691
- if (bu[i].disabled) continue;
5692
- ite.appendChild(bu[i].children[0].cloneNode(true));
5693
- ite.appendChild(document.createTextNode(bu[i].value ? bu[i].value : bu[i].title));
5694
- } else if (bu[i].children[0].children[1]) {
5695
- ite.appendChild(bu[i].children[0].children[1]); //.cloneNode()
5696
-
5697
- ite.appendChild(document.createTextNode(bu[i].textContent));
5698
- }
5681
+ while (popup.firstChild) {
5682
+ popup.removeChild(popup.firstChild);
5683
+ }
5699
5684
 
5700
- ite.onclick = itemClick;
5701
- popup.appendChild(ite);
5685
+ for (i = 0; i < bu.length; i++) {
5686
+ //Debe tenerlo directamente no por herencia
5687
+ if (bu[i].style.display != 'none') {
5688
+ var ite = document.createElement('li');
5689
+ if (!bu[i].id) bu[i].id = 'c-' + _$1.id();
5690
+ ite.setAttribute('commandId', bu[i].id);
5691
+
5692
+ if (bu[i].tagName == 'BUTTON') {
5693
+ if (bu[i].disabled) continue;
5694
+ ite.appendChild(bu[i].children[0].cloneNode(true));
5695
+ ite.appendChild(document.createTextNode(bu[i].value ? bu[i].value : bu[i].title));
5696
+ } else if (bu[i].children[0].children[1]) {
5697
+ ite.appendChild(bu[i].children[0].children[1]); //.cloneNode()
5698
+
5699
+ ite.appendChild(document.createTextNode(bu[i].textContent));
5700
+ }
5701
+
5702
+ ite.onclick = itemClick;
5703
+ popup.appendChild(ite);
5704
+ }
5702
5705
  }
5703
- }
5704
5706
 
5705
- mask = _$1.mask(popup); //popup.style.top=(parseInt(pbutton.style.top)+pbutton.offsetHeight)+'px';
5707
+ mask = _$1.mask(popup); //popup.style.top=(parseInt(pbutton.style.top)+pbutton.offsetHeight)+'px';
5706
5708
 
5707
- popup.style.display = 'block';
5709
+ popup.style.display = 'block';
5708
5710
 
5709
- mask.onclick = function () {
5710
- popup.style.display = 'none';
5711
+ mask.onclick = function () {
5712
+ popup.style.display = 'none';
5711
5713
 
5712
- _$1.unmask(mask);
5714
+ _$1.unmask(mask);
5715
+ };
5713
5716
  };
5714
- };
5715
5717
 
5716
- parent.appendChild(pbutton);
5717
- _$1.storeFunction[pid] = popup;
5718
- }, 1000);
5718
+ parent.appendChild(pbutton);
5719
+ _$1.storeFunction[pid] = popup;
5720
+ }, 1000);
5721
+ }
5719
5722
  }
5720
5723
  };
5721
5724
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [