isobit-ui 0.0.255 → 0.0.259
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 +24 -58
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.0.
|
|
2
|
+
* isobit-ui v0.0.259
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1518,70 +1518,36 @@ var script$d = {
|
|
|
1518
1518
|
return e.addEventListener("keyup", listener);
|
|
1519
1519
|
});
|
|
1520
1520
|
}
|
|
1521
|
-
});
|
|
1522
|
-
//var input=filters.querySelectorAll('input');
|
|
1523
|
-
|
|
1524
|
-
/*for (var i = 0; i < filters.children.length; i++) {
|
|
1525
|
-
var td = filters.children[i];
|
|
1526
|
-
var m = {};
|
|
1527
|
-
for (var att, k = 0, atts = td.attributes, n = atts.length; k < n; k++) {
|
|
1528
|
-
att = atts[k];
|
|
1529
|
-
m[att.nodeName] = (att.nodeValue);
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
td.style.marginTop = '5px';
|
|
1533
|
-
td.onchange=()=>{
|
|
1534
|
-
me.load();
|
|
1535
|
-
};
|
|
1536
|
-
filtersMap[m.index] = td;
|
|
1537
|
-
}*/
|
|
1538
|
-
//se crea la nueva tabla header a clonar
|
|
1539
|
-
|
|
1521
|
+
});
|
|
1540
1522
|
var ht = new _.HTML2Canvas({
|
|
1541
1523
|
lineHeight: parseInt(cs.lineHeight),
|
|
1542
1524
|
ctx: ctx
|
|
1543
|
-
})
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
cltd.setAttribute("ind", '' + (i - (me.selectable0
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
cltd.appendChild(th[i].childNodes[0]);
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
if (filter && filter.elm) {
|
|
1557
|
-
filter.elm.children.forEach(function (e) {
|
|
1558
|
-
return cltd.appendChild(e);
|
|
1525
|
+
}),
|
|
1526
|
+
i,
|
|
1527
|
+
tw = 0;
|
|
1528
|
+
th.forEach(function (e, i) {
|
|
1529
|
+
e.childNodes[0].onclick = sortClick;
|
|
1530
|
+
var f = me.columns[i - (me.selectable0 ? 1 : 0)]; //cltd.setAttribute("ind", '' + (i - (me.selectable0?1:0)));
|
|
1531
|
+
|
|
1532
|
+
if (f && f.filter && f.filter.elm) {
|
|
1533
|
+
f.filter.elm.children.forEach(function (ef) {
|
|
1534
|
+
return e.appendChild(ef);
|
|
1559
1535
|
});
|
|
1560
1536
|
}
|
|
1561
1537
|
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
|
-
for (i = 1; i < th.length; i++) {
|
|
1572
|
-
tw += parseInt(th[i].width);
|
|
1573
|
-
var hh = th[i].childNodes[0].offsetHeight;
|
|
1574
|
-
hh = ht.heightText(th[i].childNodes[0].textContent, parseInt(th[i].width));
|
|
1575
|
-
th[i].childNodes[0].style.width = th[i].width + 'px';
|
|
1576
|
-
th[i].childNodes[0].style.display = 'table-cell';
|
|
1577
|
-
th[i].childNodes[0].style.verticalAlign = 'middle';
|
|
1538
|
+
if (e.clientHeight > maxLabelHeight) maxLabelHeight = e.clientHeight;
|
|
1539
|
+
tw += parseInt(e.width);
|
|
1540
|
+
var hh = e.childNodes[0].offsetHeight;
|
|
1541
|
+
hh = ht.heightText(e.childNodes[0].textContent, parseInt(e.width));
|
|
1542
|
+
e.childNodes[0].style.width = e.width + 'px';
|
|
1543
|
+
e.childNodes[0].style.display = 'table-cell';
|
|
1544
|
+
e.childNodes[0].style.verticalAlign = 'middle';
|
|
1578
1545
|
if (hh > maxLabelHeight) maxLabelHeight = hh;
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1546
|
+
});
|
|
1547
|
+
th.forEach(function (e, i) {
|
|
1548
|
+
if (i) e.childNodes[0].style.height = maxLabelHeight + 'px';
|
|
1549
|
+
clonedHeader.appendChild(e);
|
|
1550
|
+
});
|
|
1585
1551
|
t[0].style.width = tw + 'px';
|
|
1586
1552
|
t[0].width = tw; //console.log(t);
|
|
1587
1553
|
|