logitude-dashboard-library 3.1.29 → 3.1.30
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 +17 -10
- package/dist/index.js +23 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +23 -12
- package/dist/index.modern.js.map +1 -1
- package/dist/styles/dl-dashboard.scss +17 -10
- package/package.json +1 -1
|
@@ -385,6 +385,7 @@ $dark-grey: #717585;
|
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
.table-hint-container {
|
|
388
|
+
font-family: "Manrope";
|
|
388
389
|
width: auto;
|
|
389
390
|
max-width: 300px;
|
|
390
391
|
text-overflow: ellipsis;
|
|
@@ -748,6 +749,7 @@ $dark-grey: #717585;
|
|
|
748
749
|
}
|
|
749
750
|
|
|
750
751
|
.table-cell {
|
|
752
|
+
font-family: 'Manrope';
|
|
751
753
|
padding: 0px 6px;
|
|
752
754
|
border-radius: 4px;
|
|
753
755
|
white-space: nowrap;
|
|
@@ -847,27 +849,27 @@ $dark-grey: #717585;
|
|
|
847
849
|
overflow-x: inherit;
|
|
848
850
|
}
|
|
849
851
|
|
|
850
|
-
|
|
851
|
-
td,
|
|
852
|
-
th {
|
|
853
|
-
border-bottom: 1px solid #E7E7E6 !important;
|
|
854
|
-
padding: 8px;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
852
|
th {
|
|
858
853
|
text-align: left;
|
|
859
854
|
font-weight: bold;
|
|
860
855
|
font-size: 14px;
|
|
861
856
|
white-space: nowrap;
|
|
862
857
|
padding: 0px !important;
|
|
858
|
+
position: sticky;
|
|
859
|
+
top: 0px;
|
|
860
|
+
z-index: 1;
|
|
861
|
+
border: 0px !important;
|
|
863
862
|
|
|
864
863
|
.p-column-header-content {
|
|
865
864
|
padding: 0;
|
|
865
|
+
border: 1px solid #E7E7E6;
|
|
866
|
+
border-width: 0 0 1px 0;
|
|
866
867
|
}
|
|
867
868
|
|
|
868
869
|
.p-column-title {
|
|
869
|
-
font-
|
|
870
|
-
font-
|
|
870
|
+
font-family: 'Manrope';
|
|
871
|
+
font-weight: 600 !important;
|
|
872
|
+
font-size: 13px;
|
|
871
873
|
flex: 1;
|
|
872
874
|
}
|
|
873
875
|
|
|
@@ -884,7 +886,8 @@ $dark-grey: #717585;
|
|
|
884
886
|
}
|
|
885
887
|
|
|
886
888
|
td {
|
|
887
|
-
border: 1px solid #
|
|
889
|
+
border: 1px solid #E7E7E6 !important;
|
|
890
|
+
border-width: 0 0 1px 0 !important;
|
|
888
891
|
padding: 0px 6px !important;
|
|
889
892
|
max-width: 1px;
|
|
890
893
|
height: 36px;
|
|
@@ -998,4 +1001,8 @@ $dark-grey: #717585;
|
|
|
998
1001
|
|
|
999
1002
|
.border-bottom-light-white {
|
|
1000
1003
|
border-bottom: 1px solid #E7E7E6;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
.padding-left-12 {
|
|
1007
|
+
padding-left: 12px !important;
|
|
1001
1008
|
}
|
package/dist/index.js
CHANGED
|
@@ -862,24 +862,26 @@ var TableChart = function TableChart(props) {
|
|
|
862
862
|
};
|
|
863
863
|
|
|
864
864
|
var cellTemplateBody = function cellTemplateBody(data, column) {
|
|
865
|
-
var _data$column$FieldCod, _data$column$FieldCod2, _data$column$FieldCod3;
|
|
865
|
+
var _data$column$FieldCod, _data$column$FieldCod2, _data$column$FieldCod3, _data$column$FieldCod4, _data$column$FieldCod5;
|
|
866
866
|
|
|
867
867
|
if (!column || !column.FieldCode) return "";
|
|
868
868
|
return column.DataTypeCode == "DateTime" || column.DataTypeCode == "Date" ? React__default.createElement("span", {
|
|
869
|
+
title: getDateTimeValue((_data$column$FieldCod = data[column.FieldCode]) === null || _data$column$FieldCod === void 0 ? void 0 : _data$column$FieldCod.Label),
|
|
869
870
|
className: "table-cell",
|
|
870
871
|
style: {
|
|
871
872
|
color: getTableFormattingPropertyValue("TableCellFontColor"),
|
|
872
873
|
fontSize: getTableFormattingPropertyValue("TableCellFontSize", "px")
|
|
873
874
|
}
|
|
874
|
-
}, getDateTimeValue((_data$column$
|
|
875
|
+
}, getDateTimeValue((_data$column$FieldCod2 = data[column.FieldCode]) === null || _data$column$FieldCod2 === void 0 ? void 0 : _data$column$FieldCod2.Label)) : React__default.createElement("span", {
|
|
876
|
+
title: (_data$column$FieldCod3 = data[column.FieldCode]) === null || _data$column$FieldCod3 === void 0 ? void 0 : _data$column$FieldCod3.Label,
|
|
875
877
|
className: "table-cell",
|
|
876
878
|
style: {
|
|
877
879
|
color: getTableFormattingPropertyValue("TableCellFontColor"),
|
|
878
|
-
backgroundColor: getCellPropertyByRule(column, (_data$column$
|
|
880
|
+
backgroundColor: getCellPropertyByRule(column, (_data$column$FieldCod4 = data[column.FieldCode]) === null || _data$column$FieldCod4 === void 0 ? void 0 : _data$column$FieldCod4.Value, 'RuleBackgroundColor'),
|
|
879
881
|
fontSize: getTableFormattingPropertyValue("TableCellFontSize", "px"),
|
|
880
882
|
"float": getCellFloatAlignment(column)
|
|
881
883
|
}
|
|
882
|
-
}, (_data$column$
|
|
884
|
+
}, (_data$column$FieldCod5 = data[column.FieldCode]) === null || _data$column$FieldCod5 === void 0 ? void 0 : _data$column$FieldCod5.Label);
|
|
883
885
|
};
|
|
884
886
|
|
|
885
887
|
var headerTemplate = function headerTemplate(column) {
|
|
@@ -2244,6 +2246,19 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
2244
2246
|
return ((_widget$current9 = widget.current) === null || _widget$current9 === void 0 ? void 0 : _widget$current9.Subtitle) && ((_widget$current10 = widget.current) === null || _widget$current10 === void 0 ? void 0 : _widget$current10.Subtitle.length) > 0;
|
|
2245
2247
|
};
|
|
2246
2248
|
|
|
2249
|
+
var tableHintMessage = function tableHintMessage() {
|
|
2250
|
+
return React__default.createElement("span", {
|
|
2251
|
+
className: "table-hint-container " + (isTitleAligmentRight() ? "padding-left-12" : "")
|
|
2252
|
+
}, React__default.createElement("span", null, "Showing the first 100 rows"), !props.isInEditMode && !props.isPreviewModeActive && React__default.createElement(React__default.Fragment, null, React__default.createElement("span", null, "("), React__default.createElement("span", {
|
|
2253
|
+
onClick: drilldownToTableData,
|
|
2254
|
+
className: "show-more-records"
|
|
2255
|
+
}, " Show More Records "), React__default.createElement("span", null, ")")));
|
|
2256
|
+
};
|
|
2257
|
+
|
|
2258
|
+
var isTitleAligmentRight = function isTitleAligmentRight() {
|
|
2259
|
+
return widget && widget.current && widget.current.TitleAlignment && widget.current.TitleAlignment.toLowerCase() == 'right';
|
|
2260
|
+
};
|
|
2261
|
+
|
|
2247
2262
|
return React__default.createElement("div", {
|
|
2248
2263
|
className: "dl-panel",
|
|
2249
2264
|
key: props.el.i
|
|
@@ -2252,10 +2267,11 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
2252
2267
|
className: "widget-header"
|
|
2253
2268
|
}, React__default.createElement("div", {
|
|
2254
2269
|
className: "header-contents " + (isTableWidget() ? "border-bottom-light-white" : "")
|
|
2255
|
-
}, React__default.createElement("div", {
|
|
2270
|
+
}, isTitleAligmentRight() && isTableWidget() && tableHintMessage(), React__default.createElement("div", {
|
|
2256
2271
|
style: {
|
|
2257
2272
|
cursor: props.isInEditMode ? "move" : "default",
|
|
2258
|
-
justifyContent: isTableWidget() ? getCSSPropertyValue(widget === null || widget === void 0 ? void 0 : widget.current, 'TitleAlignment', '', undefined) : undefined
|
|
2273
|
+
justifyContent: isTableWidget() ? getCSSPropertyValue(widget === null || widget === void 0 ? void 0 : widget.current, 'TitleAlignment', '', undefined) : undefined,
|
|
2274
|
+
flexDirection: isTitleAligmentRight() ? "row-reverse" : "row"
|
|
2259
2275
|
},
|
|
2260
2276
|
className: getwidgetTitlesContainer()
|
|
2261
2277
|
}, React__default.createElement("div", {
|
|
@@ -2291,12 +2307,7 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
2291
2307
|
color: getCSSPropertyValue(widget.current, 'SubtitleFontColor', ''),
|
|
2292
2308
|
minWidth: isThereSubtitle() && isTableWidget() ? '5%' : undefined
|
|
2293
2309
|
}
|
|
2294
|
-
}, (_widget$current13 = widget.current) === null || _widget$current13 === void 0 ? void 0 : _widget$current13.Subtitle)), isTableWidget() && React__default.createElement("
|
|
2295
|
-
className: "table-hint-container"
|
|
2296
|
-
}, React__default.createElement("span", null, "Showing the first 100 rows"), !props.isInEditMode && !props.isPreviewModeActive && React__default.createElement(React__default.Fragment, null, React__default.createElement("span", null, "("), React__default.createElement("span", {
|
|
2297
|
-
onClick: drilldownToTableData,
|
|
2298
|
-
className: "show-more-records"
|
|
2299
|
-
}, " Show More Records "), React__default.createElement("span", null, ")"))), props.isInEditMode && React__default.createElement("div", {
|
|
2310
|
+
}, (_widget$current13 = widget.current) === null || _widget$current13 === void 0 ? void 0 : _widget$current13.Subtitle)), !isTitleAligmentRight() && isTableWidget() && tableHintMessage(), props.isInEditMode && React__default.createElement("div", {
|
|
2300
2311
|
className: isThereTitle() ? "widget-options-container" : "widget-options-container margin-top-6"
|
|
2301
2312
|
}, React__default.createElement(SvgEditIcon, {
|
|
2302
2313
|
onClick: function onClick() {
|