isobit-ui 0.0.257 → 0.0.260
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 +28 -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.260
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -1518,71 +1518,41 @@ 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
1525
|
}),
|
|
1544
|
-
i
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
var
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
cltd.innerHTML = "";
|
|
1554
|
-
cltd.appendChild(th[i].childNodes[0]);
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
if (filter && filter.elm) {
|
|
1558
|
-
filter.elm.children.forEach(function (e) {
|
|
1559
|
-
return cltd.appendChild(e);
|
|
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);
|
|
1560
1535
|
});
|
|
1561
1536
|
}
|
|
1562
1537
|
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
for (i = 1; i < th.length; i++) {
|
|
1573
|
-
tw += parseInt(th[i].width);
|
|
1574
|
-
var hh = th[i].childNodes[0].offsetHeight;
|
|
1575
|
-
hh = ht.heightText(th[i].childNodes[0].textContent, parseInt(th[i].width));
|
|
1576
|
-
th[i].childNodes[0].style.width = th[i].width + 'px';
|
|
1577
|
-
th[i].childNodes[0].style.display = 'table-cell';
|
|
1578
|
-
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';
|
|
1579
1545
|
if (hh > maxLabelHeight) maxLabelHeight = hh;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1546
|
+
});
|
|
1547
|
+
th.forEach(function (e, i) {
|
|
1548
|
+
if (i) e.childNodes[0].style.height = maxLabelHeight + 'px';
|
|
1549
|
+
clonedHeader.appendChild(e);
|
|
1550
|
+
});
|
|
1551
|
+
th.forEach(function (e, i) {
|
|
1552
|
+
var e2 = document.createElement('th');
|
|
1553
|
+
e2.height = e.height;
|
|
1554
|
+
originalHeader.appendChild(e2);
|
|
1555
|
+
});
|
|
1586
1556
|
t[0].style.width = tw + 'px';
|
|
1587
1557
|
t[0].width = tw; //console.log(t);
|
|
1588
1558
|
|