isobit-ui 0.0.351 → 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 +43 -31
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.351
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;
@@ -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,40 +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);
2975
- console.log(me.data2); //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));
2976
2990
 
2977
- if (me.url && !pa.disabled) {
2978
- if (!me.data2) me.data2 = [];
2979
- 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));
2980
2994
 
2981
- axios.get(me.url, {
2982
- params: p
2983
- }).then(function (r) {
2984
- var data = r.data.data ? r.data.data : r.data;
2985
- me.$emit('loaded', {
2986
- target: me,
2987
- 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);*/
2988
3014
  });
2989
- me.data2 = data;
2990
- if (me.store) localstore.setItem(me.store, JSON.stringify(data));
2991
- me.$parent.$forceUpdate();
2992
- if (nou) nou();
2993
- })["catch"](function () {//r = r.response;
2994
- //var e = me.$parent.$el;
2995
- //var error = document.createElement("div");
2996
-
2997
- /*error.innerHTML = r.config.method + ' ' + r.config.url + ' ' + r.status + ' (' + r.statusText + ')';
2998
- error.classList.add("v-error");
2999
- e.parentNode.insertBefore(error, e);*/
3000
- });
3001
- }
3015
+ }
3016
+ });
3002
3017
  /*else{
3003
3018
  console.log('no se cargara aun '+pa.name);
3004
3019
  }*/
3005
-
3006
-
3007
- return _await$1();
3008
3020
  } catch (e) {
3009
3021
  return Promise.reject(e);
3010
3022
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.351",
3
+ "version": "0.0.352",
4
4
  "description": "Vue component to play videos",
5
5
  "keywords": [
6
6
  "ui",