logitude-dashboard-library 3.2.42 → 3.2.44
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/assets/styles/dl-dashboard.scss +50 -39
- package/dist/index.js +107 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +107 -20
- package/dist/index.modern.js.map +1 -1
- package/dist/styles/dl-dashboard.scss +50 -39
- package/package.json +1 -1
|
@@ -289,14 +289,14 @@ $dark-grey: #717585;
|
|
|
289
289
|
|
|
290
290
|
.header-contents {
|
|
291
291
|
display: flex;
|
|
292
|
-
|
|
292
|
+
|
|
293
293
|
.widget-titles-container {
|
|
294
294
|
display: flex;
|
|
295
295
|
flex-wrap: wrap;
|
|
296
296
|
width: calc(100% - 70px);
|
|
297
297
|
padding: 0px 12px 6px 12px;
|
|
298
298
|
min-height: 28px;
|
|
299
|
-
|
|
299
|
+
|
|
300
300
|
.title-container {
|
|
301
301
|
display: flex;
|
|
302
302
|
align-items: center;
|
|
@@ -306,7 +306,7 @@ $dark-grey: #717585;
|
|
|
306
306
|
overflow: hidden;
|
|
307
307
|
text-overflow: ellipsis;
|
|
308
308
|
min-width: 1px;
|
|
309
|
-
|
|
309
|
+
|
|
310
310
|
.title {
|
|
311
311
|
text-transform: capitalize;
|
|
312
312
|
font-family: 'Manrope', sans-serif;
|
|
@@ -323,7 +323,7 @@ $dark-grey: #717585;
|
|
|
323
323
|
width: auto;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
|
|
326
|
+
|
|
327
327
|
.subtitle {
|
|
328
328
|
font-family: 'Manrope', sans-serif;
|
|
329
329
|
font-style: normal;
|
|
@@ -350,7 +350,7 @@ $dark-grey: #717585;
|
|
|
350
350
|
min-width: 1px;
|
|
351
351
|
padding-top: 4px;
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
|
|
354
354
|
.widget-table-titles-container {
|
|
355
355
|
display: flex;
|
|
356
356
|
flex: 1;
|
|
@@ -362,7 +362,7 @@ $dark-grey: #717585;
|
|
|
362
362
|
width: 100%;
|
|
363
363
|
max-width: calc(100% - 170px);
|
|
364
364
|
overflow: hidden;
|
|
365
|
-
|
|
365
|
+
|
|
366
366
|
.title-container {
|
|
367
367
|
display: flex;
|
|
368
368
|
align-items: center;
|
|
@@ -372,7 +372,7 @@ $dark-grey: #717585;
|
|
|
372
372
|
text-overflow: ellipsis;
|
|
373
373
|
width: auto;
|
|
374
374
|
max-width: 60%;
|
|
375
|
-
|
|
375
|
+
|
|
376
376
|
.title {
|
|
377
377
|
text-transform: capitalize;
|
|
378
378
|
font-family: 'Manrope', sans-serif;
|
|
@@ -386,7 +386,7 @@ $dark-grey: #717585;
|
|
|
386
386
|
width: auto;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
|
|
389
|
+
|
|
390
390
|
.subtitle {
|
|
391
391
|
font-family: "Manrope", sans-serif;
|
|
392
392
|
font-style: normal;
|
|
@@ -427,7 +427,7 @@ $dark-grey: #717585;
|
|
|
427
427
|
cursor: pointer;
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
-
|
|
430
|
+
&>span {
|
|
431
431
|
font-size: 12px;
|
|
432
432
|
}
|
|
433
433
|
}
|
|
@@ -438,12 +438,12 @@ $dark-grey: #717585;
|
|
|
438
438
|
width: 68px;
|
|
439
439
|
column-gap: 6px;
|
|
440
440
|
padding-top: 6px;
|
|
441
|
-
|
|
441
|
+
|
|
442
442
|
svg {
|
|
443
443
|
width: 20px;
|
|
444
444
|
height: 20px;
|
|
445
445
|
transform: scale(1.2);
|
|
446
|
-
|
|
446
|
+
|
|
447
447
|
&:hover {
|
|
448
448
|
cursor: pointer;
|
|
449
449
|
}
|
|
@@ -638,11 +638,11 @@ $dark-grey: #717585;
|
|
|
638
638
|
max-width: 100%;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
|
-
.dl-kpi-label-container{
|
|
641
|
+
.dl-kpi-label-container {
|
|
642
642
|
line-height: 100%;
|
|
643
643
|
}
|
|
644
644
|
|
|
645
|
-
.dl-kpi-label-span{
|
|
645
|
+
.dl-kpi-label-span {
|
|
646
646
|
font-family: "Manrope";
|
|
647
647
|
font-style: normal;
|
|
648
648
|
font-size: 16px;
|
|
@@ -726,6 +726,7 @@ $dark-grey: #717585;
|
|
|
726
726
|
margin-right: 12px;
|
|
727
727
|
position: relative;
|
|
728
728
|
}
|
|
729
|
+
|
|
729
730
|
.dl-kpi-no-data {
|
|
730
731
|
font-family: 'Manrope' !important;
|
|
731
732
|
font-size: 10px !important;
|
|
@@ -783,7 +784,8 @@ $dark-grey: #717585;
|
|
|
783
784
|
color: #292D30;
|
|
784
785
|
}
|
|
785
786
|
|
|
786
|
-
.dl-kpi-unit,
|
|
787
|
+
.dl-kpi-unit,
|
|
788
|
+
.comparison-value-dl-kpi-unit {
|
|
787
789
|
font-family: 'Manrope';
|
|
788
790
|
font-style: normal;
|
|
789
791
|
font-weight: 600;
|
|
@@ -895,7 +897,7 @@ $dark-grey: #717585;
|
|
|
895
897
|
}
|
|
896
898
|
|
|
897
899
|
.dx-scrollbar-hoverable .dx-scrollable-scroll.dx-state-invisible .dx-scrollable-scroll-content {
|
|
898
|
-
background-color: rgba(191,191,191
|
|
900
|
+
background-color: rgba(191, 191, 191, .7);
|
|
899
901
|
}
|
|
900
902
|
|
|
901
903
|
.dx-pivotgrid-fields-area-head td .dx-area-field,
|
|
@@ -934,17 +936,17 @@ $dark-grey: #717585;
|
|
|
934
936
|
background: #FFFFFF;
|
|
935
937
|
}
|
|
936
938
|
|
|
937
|
-
.dx-pivotgrid .dx-column-header,
|
|
938
|
-
.dx-pivotgrid .dx-data-header,
|
|
939
|
+
.dx-pivotgrid .dx-column-header,
|
|
940
|
+
.dx-pivotgrid .dx-data-header,
|
|
939
941
|
.dx-pivotgrid .dx-total {
|
|
940
942
|
background-color: rgba(221, 221, 221, .2) !important;
|
|
941
943
|
}
|
|
942
|
-
|
|
944
|
+
|
|
943
945
|
.dx-pivotgrid .dx-grandtotal {
|
|
944
946
|
background-color: #f5f5f5 !important;
|
|
945
947
|
}
|
|
946
948
|
|
|
947
|
-
.dx-pivotgrid .dx-pivotgrid-vertical-headers td
|
|
949
|
+
.dx-pivotgrid .dx-pivotgrid-vertical-headers td>span {
|
|
948
950
|
font-family: "Manrope";
|
|
949
951
|
font-size: 12px;
|
|
950
952
|
font-weight: 500;
|
|
@@ -952,12 +954,12 @@ $dark-grey: #717585;
|
|
|
952
954
|
color: #46494A;
|
|
953
955
|
}
|
|
954
956
|
|
|
955
|
-
.dx-pivotgrid .dx-pivotgrid-vertical-headers td div
|
|
957
|
+
.dx-pivotgrid .dx-pivotgrid-vertical-headers td div>span {
|
|
956
958
|
font-weight: 600 !important;
|
|
957
959
|
color: #46494A !important;
|
|
958
960
|
}
|
|
959
961
|
|
|
960
|
-
.dx-pivotgrid .dx-pivotgrid-area-data tbody td
|
|
962
|
+
.dx-pivotgrid .dx-pivotgrid-area-data tbody td>span {
|
|
961
963
|
font-family: "Manrope";
|
|
962
964
|
font-size: 12px;
|
|
963
965
|
font-weight: 500;
|
|
@@ -971,21 +973,21 @@ $dark-grey: #717585;
|
|
|
971
973
|
width: 10px;
|
|
972
974
|
height: 10px
|
|
973
975
|
}
|
|
974
|
-
|
|
976
|
+
|
|
975
977
|
&::-webkit-scrollbar-thumb {
|
|
976
978
|
border: 1px solid rgba(0, 0, 0, 0);
|
|
977
979
|
background-clip: padding-box;
|
|
978
980
|
border-radius: 9999px;
|
|
979
981
|
background-color: #D9D9D9;
|
|
980
982
|
}
|
|
981
|
-
|
|
983
|
+
|
|
982
984
|
&::-webkit-scrollbar-track {
|
|
983
985
|
background: #F3F3F3;
|
|
984
986
|
border: 1px solid white;
|
|
985
987
|
border-radius: 9999px;
|
|
986
988
|
}
|
|
987
989
|
}
|
|
988
|
-
|
|
990
|
+
|
|
989
991
|
.dx-area-field-container {
|
|
990
992
|
.dx-pivotgrid-fields-area-head {
|
|
991
993
|
td {
|
|
@@ -1024,13 +1026,6 @@ $dark-grey: #717585;
|
|
|
1024
1026
|
width: 100%;
|
|
1025
1027
|
margin: 0 auto;
|
|
1026
1028
|
|
|
1027
|
-
* {
|
|
1028
|
-
-webkit-text-transform: capitalize !important;
|
|
1029
|
-
-moz-text-transform: capitalize !important;
|
|
1030
|
-
-ms-text-transform: capitalize !important;
|
|
1031
|
-
-o-text-transform: capitalize !important;
|
|
1032
|
-
text-transform: capitalize !important;
|
|
1033
|
-
}
|
|
1034
1029
|
|
|
1035
1030
|
&::-webkit-scrollbar {
|
|
1036
1031
|
width: 10px;
|
|
@@ -1054,7 +1049,7 @@ $dark-grey: #717585;
|
|
|
1054
1049
|
width: 100%;
|
|
1055
1050
|
}
|
|
1056
1051
|
|
|
1057
|
-
.p-datatable
|
|
1052
|
+
.p-datatable>.p-datatable-wrapper {
|
|
1058
1053
|
overflow-x: inherit;
|
|
1059
1054
|
}
|
|
1060
1055
|
|
|
@@ -1117,7 +1112,7 @@ $dark-grey: #717585;
|
|
|
1117
1112
|
border: 0px !important
|
|
1118
1113
|
}
|
|
1119
1114
|
|
|
1120
|
-
tbody tr td{
|
|
1115
|
+
tbody tr td {
|
|
1121
1116
|
font-size: 14px;
|
|
1122
1117
|
}
|
|
1123
1118
|
|
|
@@ -1140,7 +1135,17 @@ $dark-grey: #717585;
|
|
|
1140
1135
|
}
|
|
1141
1136
|
}
|
|
1142
1137
|
|
|
1143
|
-
.
|
|
1138
|
+
.dl-table-chart-header-container {
|
|
1139
|
+
|
|
1140
|
+
-webkit-text-transform: capitalize !important;
|
|
1141
|
+
-moz-text-transform: capitalize !important;
|
|
1142
|
+
-ms-text-transform: capitalize !important;
|
|
1143
|
+
-o-text-transform: capitalize !important;
|
|
1144
|
+
text-transform: capitalize !important;
|
|
1145
|
+
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
.header-content>.p-column-title>.pi::before {
|
|
1144
1149
|
font-size: inherit !important;
|
|
1145
1150
|
}
|
|
1146
1151
|
|
|
@@ -1176,7 +1181,7 @@ $dark-grey: #717585;
|
|
|
1176
1181
|
margin-left: 1px;
|
|
1177
1182
|
}
|
|
1178
1183
|
|
|
1179
|
-
.red-warning-icon{
|
|
1184
|
+
.red-warning-icon {
|
|
1180
1185
|
width: 100%;
|
|
1181
1186
|
height: 100%;
|
|
1182
1187
|
min-height: 25px;
|
|
@@ -1187,7 +1192,8 @@ $dark-grey: #717585;
|
|
|
1187
1192
|
}
|
|
1188
1193
|
|
|
1189
1194
|
|
|
1190
|
-
.widget-title-tooltip-text,
|
|
1195
|
+
.widget-title-tooltip-text,
|
|
1196
|
+
.header-message-error-tooltip-text {
|
|
1191
1197
|
text-transform: capitalize;
|
|
1192
1198
|
font-family: 'Manrope';
|
|
1193
1199
|
font-weight: 500;
|
|
@@ -1203,8 +1209,8 @@ $dark-grey: #717585;
|
|
|
1203
1209
|
white-space: normal;
|
|
1204
1210
|
}
|
|
1205
1211
|
|
|
1206
|
-
.title-tooltip-container-content
|
|
1207
|
-
.header-message-error-tooltip-container-content
|
|
1212
|
+
.title-tooltip-container-content>div,
|
|
1213
|
+
.header-message-error-tooltip-container-content>div {
|
|
1208
1214
|
width: 8px !important;
|
|
1209
1215
|
height: 4px !important;
|
|
1210
1216
|
}
|
|
@@ -1231,12 +1237,17 @@ $dark-grey: #717585;
|
|
|
1231
1237
|
text-decoration: underline;
|
|
1232
1238
|
}
|
|
1233
1239
|
|
|
1240
|
+
|
|
1234
1241
|
.table-cell-datetime {
|
|
1242
|
+
|
|
1235
1243
|
font-family: 'Manrope';
|
|
1236
1244
|
font-weight: 500;
|
|
1245
|
+
padding: 0px 6px;
|
|
1246
|
+
border-radius: 4px;
|
|
1247
|
+
width: fit-content;
|
|
1237
1248
|
}
|
|
1238
1249
|
|
|
1239
|
-
.date-time-value-container{
|
|
1250
|
+
.date-time-value-container {
|
|
1240
1251
|
display: flex;
|
|
1241
1252
|
flex-direction: row;
|
|
1242
1253
|
gap: 10px;
|
package/dist/index.js
CHANGED
|
@@ -1444,12 +1444,23 @@ var TableChart = function TableChart(props) {
|
|
|
1444
1444
|
var updatedWidgetColumnsData = JSON.parse(updatedWidgetColumns);
|
|
1445
1445
|
var _updatedTableColumns = [];
|
|
1446
1446
|
updatedWidgetColumnsData.forEach(function (c) {
|
|
1447
|
-
var
|
|
1447
|
+
var columns = tableColumns.filter(function (f) {
|
|
1448
1448
|
return f.Id == c.Id;
|
|
1449
1449
|
});
|
|
1450
1450
|
|
|
1451
|
-
if (
|
|
1452
|
-
_updatedTableColumns.push(
|
|
1451
|
+
if (columns && columns.length == 1) {
|
|
1452
|
+
_updatedTableColumns.push(columns[0]);
|
|
1453
|
+
} else if (columns && columns.length > 1) {
|
|
1454
|
+
var isCalculatedColumn = c.ColumnVariableType === "CalculatedColumn";
|
|
1455
|
+
var dataTypeCode = c.ColumnVariableDataType;
|
|
1456
|
+
var dateDisplayMode = c.DateTimeDisplayMode || "Date";
|
|
1457
|
+
var column = columns.find(function (f) {
|
|
1458
|
+
return f.IsCalculatedColumn === isCalculatedColumn && f.DataTypeCode === dataTypeCode && f.DateTimeDisplayMode === dateDisplayMode;
|
|
1459
|
+
});
|
|
1460
|
+
|
|
1461
|
+
if (column) {
|
|
1462
|
+
_updatedTableColumns.push(column);
|
|
1463
|
+
}
|
|
1453
1464
|
}
|
|
1454
1465
|
});
|
|
1455
1466
|
setTableColumns([].concat(_updatedTableColumns));
|
|
@@ -1699,6 +1710,79 @@ var TableChart = function TableChart(props) {
|
|
|
1699
1710
|
}
|
|
1700
1711
|
};
|
|
1701
1712
|
|
|
1713
|
+
function stripTime(date) {
|
|
1714
|
+
if (!date) return null;
|
|
1715
|
+
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
function parseLocalDate(dateStr) {
|
|
1719
|
+
try {
|
|
1720
|
+
if (!dateStr) return null;
|
|
1721
|
+
|
|
1722
|
+
var _dateStr$split$0$spli = dateStr.split('T')[0].split('-').map(Number),
|
|
1723
|
+
year = _dateStr$split$0$spli[0],
|
|
1724
|
+
month = _dateStr$split$0$spli[1],
|
|
1725
|
+
day = _dateStr$split$0$spli[2];
|
|
1726
|
+
|
|
1727
|
+
return new Date(year, month - 1, day);
|
|
1728
|
+
} catch (error) {
|
|
1729
|
+
return null;
|
|
1730
|
+
}
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
function parseCustomDateLocalDate(dateStr) {
|
|
1734
|
+
try {
|
|
1735
|
+
if (!dateStr || dateStr.length < 8) return null;
|
|
1736
|
+
var year = Number(dateStr.substring(0, 4));
|
|
1737
|
+
var month = Number(dateStr.substring(4, 6));
|
|
1738
|
+
var day = Number(dateStr.substring(6, 8));
|
|
1739
|
+
return new Date(year, month - 1, day);
|
|
1740
|
+
} catch (error) {
|
|
1741
|
+
return null;
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
function isDateValidRule(rule, value) {
|
|
1746
|
+
var _rule$RuleOperator;
|
|
1747
|
+
|
|
1748
|
+
var operator = rule === null || rule === void 0 ? void 0 : (_rule$RuleOperator = rule.RuleOperator) === null || _rule$RuleOperator === void 0 ? void 0 : _rule$RuleOperator.Code;
|
|
1749
|
+
if (!operator) return null;
|
|
1750
|
+
var ruleValue1 = stripTime(parseCustomDateLocalDate(rule.RuleValue1));
|
|
1751
|
+
var ruleValue2 = stripTime(parseCustomDateLocalDate(rule.RuleValue2));
|
|
1752
|
+
var actualValue = stripTime(parseLocalDate(value));
|
|
1753
|
+
|
|
1754
|
+
switch (operator) {
|
|
1755
|
+
case "Equal":
|
|
1756
|
+
case "Between":
|
|
1757
|
+
return !isValueEmpty(ruleValue1) && !isValueEmpty(ruleValue2) && !isValueEmpty(actualValue) && ruleValue1 <= actualValue && actualValue <= ruleValue2;
|
|
1758
|
+
|
|
1759
|
+
case "NotEqual":
|
|
1760
|
+
case "NotBetween":
|
|
1761
|
+
return !isValueEmpty(ruleValue1) && !isValueEmpty(ruleValue2) && !isValueEmpty(actualValue) && (ruleValue1 > actualValue || actualValue > ruleValue2);
|
|
1762
|
+
|
|
1763
|
+
case "GreaterThan":
|
|
1764
|
+
return !isValueEmpty(ruleValue2) && !isValueEmpty(actualValue) && actualValue > ruleValue2;
|
|
1765
|
+
|
|
1766
|
+
case "GreaterThanOrEqual":
|
|
1767
|
+
return !isValueEmpty(ruleValue2) && !isValueEmpty(actualValue) && actualValue >= ruleValue2;
|
|
1768
|
+
|
|
1769
|
+
case "LessThan":
|
|
1770
|
+
return !isValueEmpty(ruleValue2) && !isValueEmpty(actualValue) && actualValue < ruleValue2;
|
|
1771
|
+
|
|
1772
|
+
case "LessThanOrEqual":
|
|
1773
|
+
return !isValueEmpty(ruleValue2) && !isValueEmpty(actualValue) && actualValue <= ruleValue2;
|
|
1774
|
+
|
|
1775
|
+
case "IsEmpty":
|
|
1776
|
+
return isValueEmpty(actualValue);
|
|
1777
|
+
|
|
1778
|
+
case "IsNotEmpty":
|
|
1779
|
+
return !isValueEmpty(actualValue);
|
|
1780
|
+
|
|
1781
|
+
default:
|
|
1782
|
+
return null;
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1702
1786
|
var getCellPropertyByRule = function getCellPropertyByRule(column, cellValue, propertyName, defaultValue) {
|
|
1703
1787
|
if (defaultValue === void 0) {
|
|
1704
1788
|
defaultValue = null;
|
|
@@ -1710,12 +1794,20 @@ var TableChart = function TableChart(props) {
|
|
|
1710
1794
|
return el.FieldId == column.Id && el.FieldType == columnType;
|
|
1711
1795
|
});
|
|
1712
1796
|
|
|
1713
|
-
if (!columnData || !columnData.FieldRules || columnData.FieldRules.length == 0) {
|
|
1797
|
+
if (!columnData || !columnData.FieldRules || columnData.FieldRules.length == 0 || columnData.FieldDataType != (column === null || column === void 0 ? void 0 : column.DataTypeCode)) {
|
|
1714
1798
|
return defaultValue ? getTableFormattingPropertyValue(defaultValue) : undefined;
|
|
1715
1799
|
}
|
|
1716
|
-
var firstValidRule =
|
|
1717
|
-
|
|
1718
|
-
|
|
1800
|
+
var firstValidRule = null;
|
|
1801
|
+
|
|
1802
|
+
if (FieldDataType.isDateOrDateTimeType(column === null || column === void 0 ? void 0 : column.DataTypeCode)) {
|
|
1803
|
+
firstValidRule = columnData.FieldRules.find(function (rule) {
|
|
1804
|
+
return isDateValidRule(rule, cellValue);
|
|
1805
|
+
});
|
|
1806
|
+
} else {
|
|
1807
|
+
firstValidRule = columnData.FieldRules.find(function (rule) {
|
|
1808
|
+
return IsValidRule(rule, cellValue);
|
|
1809
|
+
});
|
|
1810
|
+
}
|
|
1719
1811
|
|
|
1720
1812
|
if (!firstValidRule) {
|
|
1721
1813
|
return defaultValue ? getTableFormattingPropertyValue(defaultValue) : undefined;
|
|
@@ -1783,19 +1875,19 @@ var TableChart = function TableChart(props) {
|
|
|
1783
1875
|
return !isNullOrUndefined(columnValue) ? getNumberInSystemLocalFormat(Number(columnValue), decimalPlaces, decimalPlaces, true, isAbbreviationApplied) : "";
|
|
1784
1876
|
}
|
|
1785
1877
|
|
|
1786
|
-
return
|
|
1878
|
+
return columnValue;
|
|
1787
1879
|
};
|
|
1788
1880
|
|
|
1789
1881
|
var cellTemplateBody = function cellTemplateBody(data, column) {
|
|
1790
1882
|
if (!column || !column.FieldCode) return "";
|
|
1791
1883
|
|
|
1792
1884
|
if (column.DataTypeCode == "DateTime" || column.DataTypeCode == "Date") {
|
|
1885
|
+
var dateTimeDisplayMode = column.DateTimeDisplayMode;
|
|
1793
1886
|
var fontColor = getTableFormattingPropertyValue("TableCellFontColor");
|
|
1794
1887
|
var fontSizeWithoutUnit = getTableFormattingPropertyValue("TableCellFontSize");
|
|
1795
1888
|
var fontSizeWitUnit = getTableFormattingPropertyValue("TableCellFontSize", "px");
|
|
1796
|
-
var width = fontSizeWithoutUnit ? fontSizeWithoutUnit * 6 + "px" : 70 + "px";
|
|
1797
1889
|
return React__default.createElement("div", {
|
|
1798
|
-
title: getDateTimeValue(data[column.FieldCode]),
|
|
1890
|
+
title: dateTimeDisplayMode === 'DateTime' ? getDateTimeValue(data[column.FieldCode]) : getDateTimeValue(data[column.FieldCode], 'Date'),
|
|
1799
1891
|
className: "date-time-value-container",
|
|
1800
1892
|
style: {
|
|
1801
1893
|
color: fontColor
|
|
@@ -1804,15 +1896,10 @@ var TableChart = function TableChart(props) {
|
|
|
1804
1896
|
className: "table-cell-datetime",
|
|
1805
1897
|
style: {
|
|
1806
1898
|
fontSize: fontSizeWitUnit,
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
}
|
|
1810
|
-
}, getDateTimeValue(data[column.FieldCode], 'Date')), React__default.createElement("span", {
|
|
1811
|
-
className: "table-cell-datetime",
|
|
1812
|
-
style: {
|
|
1813
|
-
fontSize: fontSizeWitUnit
|
|
1899
|
+
display: 'inline-block',
|
|
1900
|
+
backgroundColor: getCellPropertyByRule(column, data[column.FieldCode], 'RuleBackgroundColor')
|
|
1814
1901
|
}
|
|
1815
|
-
}, getDateTimeValue(data[column.FieldCode], 'Time')));
|
|
1902
|
+
}, getDateTimeValue(data[column.FieldCode], 'Date'), dateTimeDisplayMode === 'DateTime' && ' ' + getDateTimeValue(data[column.FieldCode], 'Time')));
|
|
1816
1903
|
} else {
|
|
1817
1904
|
return React__default.createElement("span", {
|
|
1818
1905
|
onClick: function onClick() {
|
|
@@ -1842,7 +1929,7 @@ var TableChart = function TableChart(props) {
|
|
|
1842
1929
|
onClick: function onClick() {
|
|
1843
1930
|
return sortTableData(column.FieldCode, column.IsCalculatedColumn);
|
|
1844
1931
|
},
|
|
1845
|
-
className: "header-content"
|
|
1932
|
+
className: "header-content dl-table-chart-header-container"
|
|
1846
1933
|
}, React__default.createElement("span", {
|
|
1847
1934
|
style: {
|
|
1848
1935
|
color: getTableFormattingPropertyValue("TableHeaderFontColor"),
|
|
@@ -1859,7 +1946,7 @@ var TableChart = function TableChart(props) {
|
|
|
1859
1946
|
onClick: function onClick() {
|
|
1860
1947
|
return sortTableData(column.FieldCode, column.IsCalculatedColumn);
|
|
1861
1948
|
},
|
|
1862
|
-
className: "header-content"
|
|
1949
|
+
className: "header-content dl-table-chart-header-container"
|
|
1863
1950
|
}, React__default.createElement("span", {
|
|
1864
1951
|
style: {
|
|
1865
1952
|
color: getTableFormattingPropertyValue("TableHeaderFontColor"),
|