isobit-ui 0.2.92 → 0.2.94
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.
- package/dist/index.js +25 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.2.
|
|
2
|
+
* isobit-ui v0.2.93
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -2047,6 +2047,22 @@ function _await$2(value, then, direct) {
|
|
|
2047
2047
|
|
|
2048
2048
|
var template = "\n\t<div :class={reflow:reflow} :key=\"'v-table-'+keyBody\" :style={width:width}\n class=\"v-datatable v-resize\">\n <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=\"|<\" :disabled=\"page<=1\" v-on:click.prevent=\"to(1)\"/><v-button value=\"<\" v-on:click.prevent=\"to(page-1)\" :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\" :max=\"pages\" v-model=\"page\"/> / {{pages}}</div>\n\t\t<v-button value=\">\" v-on:click.prevent=\"to(page+1)\" :disabled=\"page==pages\"/><v-button v-on:click.prevent=\"to(pages)\" value=\">|\" :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 :class=\"{'v-datatable-scrollable-body':scrollable0}\">\n\t\t<table class=\"v-table\" :style=\"{width:width}\" v-if=\"columns\">\n\t\t\t<thead>\n <tr>\n <th v-if=\"selectable0\" :width=\"getCheckColumnWidth\" >\n <span class=\"v-check\" v-on:click=\"rowSelect(null,-10)\" :data-icon=\"selected.length?'square-check':'square'\">\n <i class=\"fa fa-lg\" :class=\"selected.length?'fa-square-check':'fa-square'\"></i>\n </span>\n </th>\n <th :class=\"k['h-class']\" v-for=\"k in columns\" :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\" :key=\"kc\">\n\t\t\t\t<tr v-for=\"(entry,r) in sortedData\" @row=\"rowCreated(entry)\" @click=\"_selectRow($event,entry,r)\" \n :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 :data-index=\"r\" class=\"v-check\" v-on:click=\"rowSelect(entry,r)\"\n\t\t\t\t\t\t:data-icon=\"isSelected(r)?'square-check':'square'\"><i class=\"far fa-lg\" :class=\"isSelected(r)?'fa-square-check':'fa-square'\" ></i></span>\n\t\t\t\t\t</td>\n\t\t\t\t\t<slot :row=\"entry\" :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 :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\" :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\" :width=\"getCheckColumnWidth\" ></td>\n\t\t\t<slot name=\"summary\" :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";
|
|
2049
2049
|
|
|
2050
|
+
function _catch$1(body, recover) {
|
|
2051
|
+
try {
|
|
2052
|
+
var result = body();
|
|
2053
|
+
} catch (e) {
|
|
2054
|
+
return recover(e);
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
if (result && result.then) {
|
|
2058
|
+
return result.then(void 0, recover);
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
return result;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
var compiledTemplate = Vue$1.compile(template);
|
|
2065
|
+
|
|
2050
2066
|
function _invoke$2(body, then) {
|
|
2051
2067
|
var result = body();
|
|
2052
2068
|
|
|
@@ -2057,7 +2073,6 @@ function _invoke$2(body, then) {
|
|
|
2057
2073
|
return then(result);
|
|
2058
2074
|
}
|
|
2059
2075
|
|
|
2060
|
-
var compiledTemplate = Vue$1.compile(template);
|
|
2061
2076
|
var script$d = {
|
|
2062
2077
|
props: {
|
|
2063
2078
|
value: Array,
|
|
@@ -2282,8 +2297,6 @@ var script$d = {
|
|
|
2282
2297
|
|
|
2283
2298
|
if (h) {
|
|
2284
2299
|
me.resize(parseInt(h));
|
|
2285
|
-
} else {
|
|
2286
|
-
me.resize(me.$el.offsetHeight);
|
|
2287
2300
|
} //console.log('mointed');
|
|
2288
2301
|
|
|
2289
2302
|
},
|
|
@@ -2453,7 +2466,7 @@ var script$d = {
|
|
|
2453
2466
|
p.style.height = maxLabelHeight + 37 - 37 + 'px'; //.v-widget-header
|
|
2454
2467
|
|
|
2455
2468
|
p.parentElement.style.height = p.style.height;
|
|
2456
|
-
|
|
2469
|
+
if (me.$el.style.maxHeight) p.parentElement.nextElementSibling.style.maxHeight = parseInt(me.$el.style.maxHeight) - maxLabelHeight + 'px';
|
|
2457
2470
|
originalHeader.className = 'v-head-cloned';
|
|
2458
2471
|
} //resize();
|
|
2459
2472
|
|
|
@@ -2505,7 +2518,7 @@ var script$d = {
|
|
|
2505
2518
|
resize: function resize(h) {
|
|
2506
2519
|
var el = this.$el;
|
|
2507
2520
|
setTimeout(function () {
|
|
2508
|
-
h
|
|
2521
|
+
//h=el.style.maxHeight?Math.min(parseInt(el.style.maxHeight,10),h):h;
|
|
2509
2522
|
var e = el.querySelector(".v-datatable-header");
|
|
2510
2523
|
if (e) h -= e.offsetHeight;
|
|
2511
2524
|
e = el.querySelector(".v-paginator");
|
|
@@ -2632,7 +2645,12 @@ var script$d = {
|
|
|
2632
2645
|
}; //t.onerror = event => reject(event.target.error);
|
|
2633
2646
|
|
|
2634
2647
|
});
|
|
2635
|
-
return
|
|
2648
|
+
return _catch$1(function () {
|
|
2649
|
+
return _await$2(p); //console.log(result);
|
|
2650
|
+
}, function (e) {
|
|
2651
|
+
alert(store);
|
|
2652
|
+
throw e;
|
|
2653
|
+
});
|
|
2636
2654
|
} catch (e) {
|
|
2637
2655
|
return Promise.reject(e);
|
|
2638
2656
|
}
|