@cellaware/utils 8.6.19 → 8.6.21
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.d.ts +1 -1
- package/dist/chatwms/teams.d.ts +1 -0
- package/dist/chatwms/teams.js +21 -18
- package/package.json +1 -1
package/dist/chatwms/teams.d.ts
CHANGED
package/dist/chatwms/teams.js
CHANGED
|
@@ -35,31 +35,33 @@ export function createTeamsTableCard(title, table, summary) {
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
export function createTeamsValueCard(title, columnName, value, styles, summary) {
|
|
38
|
+
// NOTE: we only care about mapping style string (represented as row styles) to column styles.
|
|
38
39
|
let rowStyles = [];
|
|
39
40
|
let columnStyles = [];
|
|
40
41
|
[rowStyles, columnStyles] = mapTeamsStyles([columnName], styles, [], rowStyles, columnStyles);
|
|
41
|
-
console.log(styles);
|
|
42
|
-
console.log(columnStyles);
|
|
43
42
|
let color = undefined;
|
|
44
43
|
let style = undefined;
|
|
45
44
|
let weight = undefined;
|
|
46
45
|
let isSubtle = undefined;
|
|
47
46
|
let italic = undefined;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
if (columnStyles.length > 0) {
|
|
48
|
+
const columnStyle = columnStyles[0];
|
|
49
|
+
for (const columnStyleAttributes of columnStyle.styles) {
|
|
50
|
+
if (!!columnStyleAttributes.color) {
|
|
51
|
+
color = columnStyleAttributes.color;
|
|
52
|
+
}
|
|
53
|
+
if (!!columnStyleAttributes.style) {
|
|
54
|
+
style = columnStyleAttributes.style;
|
|
55
|
+
}
|
|
56
|
+
if (!!columnStyleAttributes.weight) {
|
|
57
|
+
weight = columnStyleAttributes.weight;
|
|
58
|
+
}
|
|
59
|
+
if (!!columnStyleAttributes.isSubtle) {
|
|
60
|
+
isSubtle = columnStyleAttributes.isSubtle;
|
|
61
|
+
}
|
|
62
|
+
if (!!columnStyleAttributes.italic) {
|
|
63
|
+
italic = columnStyleAttributes.italic;
|
|
64
|
+
}
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
return {
|
|
@@ -79,7 +81,8 @@ export function createTeamsValueCard(title, columnName, value, styles, summary)
|
|
|
79
81
|
wrap: true,
|
|
80
82
|
size: "ExtraLarge",
|
|
81
83
|
color,
|
|
82
|
-
weight
|
|
84
|
+
weight,
|
|
85
|
+
isSubtle
|
|
83
86
|
}
|
|
84
87
|
]
|
|
85
88
|
},
|