isobit-ui 0.2.0 → 0.2.2

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 +69 -66
  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
  */
@@ -2021,7 +2021,7 @@ function _await$2(value, then, direct) {
2021
2021
  return then ? value.then(then) : value;
2022
2022
  }
2023
2023
 
2024
- var template = "\n\t<div v-bind:class={reflow:reflow} v-bind:key=\"'v-table-'+keyBody\" class=\"v-datatable v-resize\" style=\"background-color:#dbdbdb\"><template v-if=\"active\">\n\t\t<div v-if=\"hasSlot('header')\" class=\"v-datatable-header v-widget-header ui-corner-top\"><slot name=\"header\"></slot>\n\t\t</div>\n\t\t<div v-if=\"pagination\" class=\"v-paginator v-paginator-top v-widget-header v-paginator-pages center\">\n\t\t\n\t\t<v-button value=\"|<\" v-bind:disabled=\"page<=1\" v-on:click.prevent=\"to(1)\"/><v-button value=\"<\" v-on:click.prevent=\"to(page-1)\" v-bind:disabled=\"page<=1\"/><div style=\"padding:3px 8px;display:inline-block\">\n\t\t<input type=\"number\" v-on:change=\"to(page,true)\" style=\"width:60px\" min=\"1\" v-bind:max=\"pages\" v-model=\"page\"/> / {{pages}}</div>\n\t\t<v-button value=\">\" v-on:click.prevent=\"to(page+1)\" v-bind:disabled=\"page==pages\"/><v-button v-on:click.prevent=\"to(pages)\" value=\">|\" v-bind:disabled=\"page==pages\"/>\n\t\t\t</div>\n\t\t<div v-if=\"scrollable0\" class=\"v-widget-header v-datatable-scrollable-header\" style=\"position:relative\">\n\t\t<div class=\"v-datatable-scrollable-header-box\" style=\"\"></div></div>\n\t\t<div v-bind:class=\"{'v-datatable-scrollable-body':scrollable0}\">\n\t\t<table class=\"v-table\" v-bind:style=\"{width:width}\" v-if=\"columns\">\n\t\t\t<thead>\n <tr>\n <th v-if=\"selectable0\" v-bind:width=\"getCheckColumnWidth\" >\n <span class=\"v-check\" v-on:click=\"rowSelect(null,-10)\" v-bind:data-icon=\"selected.length?'check-square':'square'\">\n <i class=\"fa fa-lg\" v-bind:class=\"selected.length?'fa-check-square':'fa-square'\"></i>\n </span>\n </th>\n <th v-bind:class=\"k['h-class']\" v-for=\"k in columns\" v-bind:width=\"k.width\" v-on:click=\"sortBy(k)\">\n <div v-html=\"k.header\"></div>\n </th>\n\t\t\t</tr>\n </thead>\n\t\t\t<tbody class=\"v-datatable-data\" v-bind:key=\"kc\">\n\t\t\t\t<tr v-for=\"(entry,r) in sortedData\" @row=\"rowCreated(entry)\" @click=\"_selectRow($event,entry,r)\" \n v-bind:class=\"getRowClass(r,entry)\">\n\t\t\t\t\t<td v-if=\"selectable0\" width=\"18\" class=\"center\">\n\t\t\t\t\t\t<span v-bind:data-index=\"r\" class=\"v-check\" v-on:click=\"rowSelect(entry,r)\"\n\t\t\t\t\t\tv-bind:data-icon=\"isSelected(r)?'check-square':'square'\"><i class=\"far fa-lg\" v-bind:class=\"isSelected(r)?'fa-check-square':'fa-square'\" ></i></span>\n\t\t\t\t\t</td>\n\t\t\t\t\t<slot v-bind:row=\"entry\" v-bind:index=\"r+(page-1)*paginatio_\"></slot>\n\t\t\t\t</tr>\n\t\t\t\t<tr v-if=\"!sortedData||sortedData.length==0\">\n\t\t\t\t\t<td v-bind:colspan=\"columns.length+(selectable0?1:0)\">{{emptyMessage}}</td>\n\t\t\t\t</tr>\n\t\t\t</tbody>\n\t\t</table>\n\t\t</div>\n\t\t<div v-if=\"summary||hasSlot('summary')\" class=\"v-table-summary\" v-bind:class=\"{'v-datatable-scrollable-body':scrollable}\">\n\t\t\t<table class=\"v-table v-table-summary\"><tr>\n\t\t\t<td v-if=\"selectable0\" v-bind:width=\"getCheckColumnWidth\" ></td>\n\t\t\t<slot name=\"summary\" v-bind:data=\"sortedData\"></slot>\n\t\t\t</tr></table>\n\t\t</div>\n\t\t<div class=\"hide filters\"><slot name=\"filters\"></slot><slot name=\"columns\"></slot></div></template></div>\n";
2024
+ var template = "\n\t<div v-bind:class={reflow:reflow} v-bind:key=\"'v-table-'+keyBody\" class=\"v-datatable v-resize\" style=\"background-color:#dbdbdb\"><template v-if=\"active\">\n\t\t<div v-if=\"hasSlot('header')\" class=\"v-datatable-header v-widget-header ui-corner-top\"><slot name=\"header\"></slot>\n\t\t</div>\n\t\t<div v-if=\"pagination\" class=\"v-paginator v-paginator-top v-widget-header v-paginator-pages center\">\n\t\t\n\t\t<v-button value=\"|<\" v-bind:disabled=\"page<=1\" v-on:click.prevent=\"to(1)\"/><v-button value=\"<\" v-on:click.prevent=\"to(page-1)\" v-bind:disabled=\"page<=1\"/><div style=\"padding:3px 8px;display:inline-block\">\n\t\t<input type=\"number\" v-on:change=\"to(page,true)\" style=\"width:60px\" min=\"1\" v-bind:max=\"pages\" v-model=\"page\"/> / {{pages}}</div>\n\t\t<v-button value=\">\" v-on:click.prevent=\"to(page+1)\" v-bind:disabled=\"page==pages\"/><v-button v-on:click.prevent=\"to(pages)\" value=\">|\" v-bind:disabled=\"page==pages\"/>\n\t\t\t</div>\n\t\t<div v-if=\"scrollable0\" class=\"v-widget-header v-datatable-scrollable-header\" style=\"position:relative\">\n\t\t<div class=\"v-datatable-scrollable-header-box\" style=\"\"></div></div>\n\t\t<div v-bind:class=\"{'v-datatable-scrollable-body':scrollable0}\">\n\t\t<table class=\"v-table\" v-bind:style=\"{width:width}\" v-if=\"columns\">\n\t\t\t<thead>\n <tr>\n <th v-if=\"selectable0\" v-bind:width=\"getCheckColumnWidth\" >\n <span class=\"v-check\" v-on:click=\"rowSelect(null,-10)\" v-bind:data-icon=\"selected.length?'check-square':'square'\">\n <i class=\"fa fa-lg\" v-bind:class=\"selected.length?'fa-check-square-o':'fa-square'\"></i>\n </span>\n </th>\n <th v-bind:class=\"k['h-class']\" v-for=\"k in columns\" v-bind:width=\"k.width\" v-on:click=\"sortBy(k)\">\n <div v-html=\"k.header\"></div>\n </th>\n\t\t\t</tr>\n </thead>\n\t\t\t<tbody class=\"v-datatable-data\" v-bind:key=\"kc\">\n\t\t\t\t<tr v-for=\"(entry,r) in sortedData\" @row=\"rowCreated(entry)\" @click=\"_selectRow($event,entry,r)\" \n v-bind:class=\"getRowClass(r,entry)\">\n\t\t\t\t\t<td v-if=\"selectable0\" width=\"18\" class=\"center\">\n\t\t\t\t\t\t<span v-bind:data-index=\"r\" class=\"v-check\" v-on:click=\"rowSelect(entry,r)\"\n\t\t\t\t\t\tv-bind:data-icon=\"isSelected(r)?'check-square':'square'\"><i class=\"far fa-lg\" v-bind:class=\"isSelected(r)?'fa-check-square-o':'fa-square'\" ></i></span>\n\t\t\t\t\t</td>\n\t\t\t\t\t<slot v-bind:row=\"entry\" v-bind:index=\"r+(page-1)*paginatio_\"></slot>\n\t\t\t\t</tr>\n\t\t\t\t<tr v-if=\"!sortedData||sortedData.length==0\">\n\t\t\t\t\t<td v-bind:colspan=\"columns.length+(selectable0?1:0)\">{{emptyMessage}}</td>\n\t\t\t\t</tr>\n\t\t\t</tbody>\n\t\t</table>\n\t\t</div>\n\t\t<div v-if=\"summary||hasSlot('summary')\" class=\"v-table-summary\" v-bind:class=\"{'v-datatable-scrollable-body':scrollable}\">\n\t\t\t<table class=\"v-table v-table-summary\"><tr>\n\t\t\t<td v-if=\"selectable0\" v-bind:width=\"getCheckColumnWidth\" ></td>\n\t\t\t<slot name=\"summary\" v-bind:data=\"sortedData\"></slot>\n\t\t\t</tr></table>\n\t\t</div>\n\t\t<div class=\"hide filters\"><slot name=\"filters\"></slot><slot name=\"columns\"></slot></div></template></div>\n";
2025
2025
 
2026
2026
  function _invoke$1(body, then) {
2027
2027
  var result = body();
@@ -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.2",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [