isobit-ui 0.0.349 → 0.0.352

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 +47 -34
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.349
2
+ * isobit-ui v0.0.352
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -1391,7 +1391,7 @@ function _await$2(value, then, direct) {
1391
1391
 
1392
1392
  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)\" v-bind:class=\"getRowClass(r,entry)\">\n\t\t\t\t\t<td v-if=\"selectable0\" width=\"18\" >\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";
1393
1393
 
1394
- function _invoke$1(body, then) {
1394
+ function _invoke$2(body, then) {
1395
1395
  var result = body();
1396
1396
 
1397
1397
  if (result && result.then) {
@@ -1935,7 +1935,7 @@ var script$d = {
1935
1935
  return _invokeIgnored(function () {
1936
1936
  if (storage != null) {
1937
1937
  var datj;
1938
- return _invoke$1(function () {
1938
+ return _invoke$2(function () {
1939
1939
  if (window._.db) {
1940
1940
  return _await$2(me.getStoredList(storage), function (_me$getStoredList) {
1941
1941
  datj = _me$getStoredList;
@@ -2455,12 +2455,12 @@ var script$b = {
2455
2455
  load: function load(a, b) {
2456
2456
  var me = this;
2457
2457
 
2458
+ for (var i = 0; i < me.$children.length; i++) {
2459
+ if (me.$children[i].load) me.$children[i].load(a, b);
2460
+ }
2461
+
2458
2462
  if (!me.disabled && !me.readonly) {
2459
2463
  //console.log(this.$el.name+' loading with value='+me.$attrs.value);
2460
- for (var i = 0; i < me.$children.length; i++) {
2461
- if (me.$children[i].load) me.$children[i].load(a, b);
2462
- }
2463
-
2464
2464
  me.lastLoad = null;
2465
2465
  } else {
2466
2466
  // console.log(this.$el.name+' is disabled');
@@ -2872,6 +2872,16 @@ function _await$1(value, then, direct) {
2872
2872
  return then ? value.then(then) : value;
2873
2873
  }
2874
2874
 
2875
+ function _invoke$1(body, then) {
2876
+ var result = body();
2877
+
2878
+ if (result && result.then) {
2879
+ return result.then(then);
2880
+ }
2881
+
2882
+ return then(result);
2883
+ }
2884
+
2875
2885
  var script$8 = {
2876
2886
  props: {
2877
2887
  url: String,
@@ -2971,39 +2981,42 @@ var script$8 = {
2971
2981
  var me = _this2;
2972
2982
  var pa = me.$el.parentElement;
2973
2983
  console.log(p);
2974
- if (me.store) me.data2 = window._.getStoredList(me.store); //console.log(pa.name+'.antes de preguntar disabled options.load '+JSON.stringify(p));
2984
+ return _invoke$1(function () {
2985
+ if (me.store) return _await$1(window._.getStoredList(me.store), function (_window$_$getStoredLi) {
2986
+ me.data2 = _window$_$getStoredLi;
2987
+ });
2988
+ }, function () {
2989
+ console.log(me.data2); //console.log(pa.name+'.antes de preguntar disabled options.load '+JSON.stringify(p));
2975
2990
 
2976
- if (me.url && !pa.disabled) {
2977
- if (!me.data2) me.data2 = [];
2978
- if (me.filters) p = Vue.mergeDeep(p ? p : {}, me.filters); //console.log(pa.name+'.options.load '+JSON.stringify(p));
2991
+ if (me.url && !pa.disabled) {
2992
+ if (!me.data2) me.data2 = [];
2993
+ if (me.filters) p = Vue.mergeDeep(p ? p : {}, me.filters); //console.log(pa.name+'.options.load '+JSON.stringify(p));
2979
2994
 
2980
- axios.get(me.url, {
2981
- params: p
2982
- }).then(function (r) {
2983
- var data = r.data.data ? r.data.data : r.data;
2984
- me.$emit('loaded', {
2985
- target: me,
2986
- data: data
2995
+ axios.get(me.url, {
2996
+ params: p
2997
+ }).then(function (r) {
2998
+ var data = r.data.data ? r.data.data : r.data;
2999
+ me.$emit('loaded', {
3000
+ target: me,
3001
+ data: data
3002
+ });
3003
+ me.data2 = data;
3004
+ if (me.store) localstore.setItem(me.store, JSON.stringify(data));
3005
+ me.$parent.$forceUpdate();
3006
+ if (nou) nou();
3007
+ })["catch"](function () {//r = r.response;
3008
+ //var e = me.$parent.$el;
3009
+ //var error = document.createElement("div");
3010
+
3011
+ /*error.innerHTML = r.config.method + ' ' + r.config.url + ' ' + r.status + ' (' + r.statusText + ')';
3012
+ error.classList.add("v-error");
3013
+ e.parentNode.insertBefore(error, e);*/
2987
3014
  });
2988
- me.data2 = data;
2989
- if (me.store) localstore.setItem(me.store, JSON.stringify(data));
2990
- me.$parent.$forceUpdate();
2991
- if (nou) nou();
2992
- })["catch"](function () {//r = r.response;
2993
- //var e = me.$parent.$el;
2994
- //var error = document.createElement("div");
2995
-
2996
- /*error.innerHTML = r.config.method + ' ' + r.config.url + ' ' + r.status + ' (' + r.statusText + ')';
2997
- error.classList.add("v-error");
2998
- e.parentNode.insertBefore(error, e);*/
2999
- });
3000
- }
3015
+ }
3016
+ });
3001
3017
  /*else{
3002
3018
  console.log('no se cargara aun '+pa.name);
3003
3019
  }*/
3004
-
3005
-
3006
- return _await$1();
3007
3020
  } catch (e) {
3008
3021
  return Promise.reject(e);
3009
3022
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.349",
3
+ "version": "0.0.352",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",