@kodaris/krubble-components 1.0.48 → 1.0.49
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/custom-elements.json +374 -374
- package/dist/krubble-components.bundled.js +14 -10
- package/dist/krubble-components.bundled.js.map +1 -1
- package/dist/krubble-components.bundled.min.js +94 -94
- package/dist/krubble-components.bundled.min.js.map +1 -1
- package/dist/krubble-components.umd.js +14 -10
- package/dist/krubble-components.umd.js.map +1 -1
- package/dist/krubble-components.umd.min.js +81 -81
- package/dist/krubble-components.umd.min.js.map +1 -1
- package/dist/table/table.d.ts.map +1 -1
- package/dist/table/table.js +15 -11
- package/dist/table/table.js.map +1 -1
- package/package.json +1 -1
|
@@ -2558,17 +2558,21 @@ let KRTable = class KRTable extends i$2 {
|
|
|
2558
2558
|
this._data.forEach((row, rowIndex) => {
|
|
2559
2559
|
columns.forEach(col => {
|
|
2560
2560
|
const result = col.render(row);
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2561
|
+
if (!result)
|
|
2562
|
+
return;
|
|
2563
|
+
const el = document.createElement('span');
|
|
2564
|
+
el.slot = `cell-${rowIndex}-${col.id}`;
|
|
2565
|
+
if (col.type === 'actions') {
|
|
2566
|
+
el.style.display = 'flex';
|
|
2567
|
+
el.style.gap = '8px';
|
|
2568
|
+
}
|
|
2569
|
+
if (typeof result === 'string') {
|
|
2570
|
+
el.innerHTML = result;
|
|
2571
|
+
}
|
|
2572
|
+
else {
|
|
2573
|
+
D(result, el);
|
|
2571
2574
|
}
|
|
2575
|
+
this.appendChild(el);
|
|
2572
2576
|
});
|
|
2573
2577
|
});
|
|
2574
2578
|
}
|