@cellaware/utils 8.3.18 → 8.3.20
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/chatwms/datagrid.js
CHANGED
|
@@ -780,7 +780,7 @@ function processHtmlStyles(value, columnFormat, rowStyles, columnStyles) {
|
|
|
780
780
|
columnStyles.push(columnStyle);
|
|
781
781
|
return [rowStyles, columnStyles];
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function buildHtmlTableHeader(columnNames) {
|
|
784
784
|
let buf = '<table>\n\t<thead>\n\t\t<tr>';
|
|
785
785
|
for (const columnName of columnNames) {
|
|
786
786
|
buf += `\n\t\t\t<th>${columnName}</th>`;
|
|
@@ -789,6 +789,9 @@ function buildHtmlHeader(columnNames) {
|
|
|
789
789
|
buf += '\n\t<tbody>';
|
|
790
790
|
return buf;
|
|
791
791
|
}
|
|
792
|
+
function buildHtmlTableFooter() {
|
|
793
|
+
return '\n\t</tbody>\n</table>';
|
|
794
|
+
}
|
|
792
795
|
function buildHtmlRow(rowValues, rowStyles, columnStyles) {
|
|
793
796
|
let buf = '';
|
|
794
797
|
// Apply row styles.
|
|
@@ -933,5 +936,10 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
|
|
|
933
936
|
rows = evaluateDatagridCondition(rows, condition);
|
|
934
937
|
}
|
|
935
938
|
}
|
|
936
|
-
return {
|
|
939
|
+
return {
|
|
940
|
+
...datagridState,
|
|
941
|
+
adjRowData: rows,
|
|
942
|
+
chartRowData,
|
|
943
|
+
html: `${buildHtmlTableHeader(htmlColumnNames)}${htmlBuf}${buildHtmlTableFooter()}`
|
|
944
|
+
};
|
|
937
945
|
}
|
package/dist/chatwms/report.d.ts
CHANGED
package/dist/chatwms/report.js
CHANGED