@cellaware/utils 8.11.4 → 8.11.5
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.
|
@@ -196,12 +196,12 @@ export declare function createTeamsTableRow(columnNames: string[], values: any[]
|
|
|
196
196
|
}[];
|
|
197
197
|
}[];
|
|
198
198
|
};
|
|
199
|
-
export declare function
|
|
199
|
+
export declare function createTeamsTransposeColumnSet(row: {
|
|
200
200
|
key: string;
|
|
201
201
|
value: any;
|
|
202
202
|
}, columnStyle: TeamsColumnStyle): {
|
|
203
203
|
type: string;
|
|
204
|
-
|
|
204
|
+
columns: any[];
|
|
205
205
|
};
|
|
206
206
|
/**
|
|
207
207
|
* **Important:** `html` and `teamsRows` output will be limited to **1,000 rows/24 rows** and **8 columns**, respectively.
|
package/dist/chatwms/datagrid.js
CHANGED
|
@@ -1143,7 +1143,7 @@ function createTeamsTableCellText(value, columnStyle) {
|
|
|
1143
1143
|
isSubtle
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function createTeamsTransposeColumnText(value, key, columnStyle) {
|
|
1147
1147
|
// Same as ^^^, just a couple minor tweaks.
|
|
1148
1148
|
let color = undefined;
|
|
1149
1149
|
let weight = undefined;
|
|
@@ -1167,7 +1167,7 @@ function createTeamsTransposeTableCellText(value, columnStyle) {
|
|
|
1167
1167
|
return {
|
|
1168
1168
|
type: "TextBlock",
|
|
1169
1169
|
text: italic ? `*${truncValue}*` : truncValue,
|
|
1170
|
-
size: "Medium",
|
|
1170
|
+
size: key ? "Medium" : "Large",
|
|
1171
1171
|
color,
|
|
1172
1172
|
weight,
|
|
1173
1173
|
isSubtle
|
|
@@ -1198,10 +1198,10 @@ export function createTeamsTableRow(columnNames, values, rowStyles, columnStyles
|
|
|
1198
1198
|
})
|
|
1199
1199
|
};
|
|
1200
1200
|
}
|
|
1201
|
-
export function
|
|
1202
|
-
const
|
|
1203
|
-
type: "
|
|
1204
|
-
items: [
|
|
1201
|
+
export function createTeamsTransposeColumnSet(row, columnStyle) {
|
|
1202
|
+
const keyColumn = {
|
|
1203
|
+
type: "Column",
|
|
1204
|
+
items: [createTeamsTransposeColumnText(row.key, true, {
|
|
1205
1205
|
columnName: 'key',
|
|
1206
1206
|
styles: [{ weight: 'Bolder' }]
|
|
1207
1207
|
})]
|
|
@@ -1212,14 +1212,14 @@ export function createTeamsTransposeTableRow(row, columnStyle) {
|
|
|
1212
1212
|
style = styles.style;
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
const
|
|
1216
|
-
type: "
|
|
1215
|
+
const valueColumn = {
|
|
1216
|
+
type: "Column",
|
|
1217
1217
|
style,
|
|
1218
|
-
items: [
|
|
1218
|
+
items: [createTeamsTransposeColumnText(row.value, false, columnStyle)]
|
|
1219
1219
|
};
|
|
1220
1220
|
return {
|
|
1221
|
-
type: "
|
|
1222
|
-
|
|
1221
|
+
type: "ColumnSet",
|
|
1222
|
+
columns: [keyColumn, valueColumn]
|
|
1223
1223
|
};
|
|
1224
1224
|
}
|
|
1225
1225
|
/**
|
|
@@ -1324,7 +1324,7 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
|
|
|
1324
1324
|
}));
|
|
1325
1325
|
for (let i = 0; i < transposedRows.length; i++) {
|
|
1326
1326
|
htmlTransposeBuf += buildHtmlTransposeRow(transposedRows[i], htmlTransposeColumnStyles[i]);
|
|
1327
|
-
teamsTranspose.push(
|
|
1327
|
+
teamsTranspose.push(createTeamsTransposeColumnSet(transposedRows[i], mapTeamsTransposeStyles(htmlTransposeColumnStyles[i])));
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
rowIdx++;
|
|
@@ -1383,7 +1383,7 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
|
|
|
1383
1383
|
}));
|
|
1384
1384
|
for (let i = 0; i < transposedRows.length; i++) {
|
|
1385
1385
|
htmlTransposeBuf += buildHtmlTransposeRow(transposedRows[i], htmlTransposeColumnStyles[i]);
|
|
1386
|
-
teamsTranspose.push(
|
|
1386
|
+
teamsTranspose.push(createTeamsTransposeColumnSet(transposedRows[i], mapTeamsTransposeStyles(htmlTransposeColumnStyles[i])));
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
rowIdx++;
|
package/dist/chatwms/teams.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ export declare function createTeamsReportValueCard(lineTitle: string, columnName
|
|
|
118
118
|
}[];
|
|
119
119
|
})[];
|
|
120
120
|
};
|
|
121
|
-
export declare function createTeamsReportRowCard(lineTitle: string,
|
|
121
|
+
export declare function createTeamsReportRowCard(lineTitle: string, columnSets: any[], summary: string, reportTitle: string): {
|
|
122
122
|
type: string;
|
|
123
123
|
version: string;
|
|
124
124
|
msteams: {
|
|
@@ -139,9 +139,7 @@ export declare function createTeamsReportRowCard(lineTitle: string, table: any[]
|
|
|
139
139
|
} | {
|
|
140
140
|
type: string;
|
|
141
141
|
roundedCorners: boolean;
|
|
142
|
-
|
|
143
|
-
columns: any;
|
|
144
|
-
rows: any[];
|
|
142
|
+
items: any[];
|
|
145
143
|
})[];
|
|
146
144
|
};
|
|
147
145
|
export declare function createTeamsReportChartCard(lineTitle: string, png: string, summary: string, reportTitle: string): {
|
package/dist/chatwms/teams.js
CHANGED
|
@@ -136,7 +136,7 @@ export function createTeamsReportValueCard(lineTitle, columnName, value, styles,
|
|
|
136
136
|
]
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
export function createTeamsReportRowCard(lineTitle,
|
|
139
|
+
export function createTeamsReportRowCard(lineTitle, columnSets, summary, reportTitle) {
|
|
140
140
|
return {
|
|
141
141
|
type: "AdaptiveCard",
|
|
142
142
|
version: "1.5",
|
|
@@ -144,11 +144,9 @@ export function createTeamsReportRowCard(lineTitle, table, summary, reportTitle)
|
|
|
144
144
|
body: [
|
|
145
145
|
createTeamsTitleItem(reportTitle, lineTitle),
|
|
146
146
|
{
|
|
147
|
-
type: "
|
|
147
|
+
type: "Container",
|
|
148
148
|
roundedCorners: true,
|
|
149
|
-
|
|
150
|
-
columns: table.length === 0 ? [] : table[0].cells.map(() => ({ width: 3 })),
|
|
151
|
-
rows: table
|
|
149
|
+
items: columnSets
|
|
152
150
|
},
|
|
153
151
|
createTeamsSummaryItem(summary)
|
|
154
152
|
]
|