synapse-react-client 3.0.34 → 3.0.35
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/containers/CardContainer.js +3 -1
- package/dist/containers/CardContainer.js.map +1 -1
- package/dist/containers/GenericCard.d.ts +2 -2
- package/dist/containers/GenericCard.js +1 -1
- package/dist/containers/GenericCard.js.map +1 -1
- package/dist/containers/QueryContext.d.ts +1 -1
- package/dist/containers/QueryVisualizationWrapper.js +7 -5
- package/dist/containers/QueryVisualizationWrapper.js.map +1 -1
- package/dist/containers/QueryWrapper.js +5 -10
- package/dist/containers/QueryWrapper.js.map +1 -1
- package/dist/containers/SubsectionRowRenderer.js +5 -1
- package/dist/containers/SubsectionRowRenderer.js.map +1 -1
- package/dist/containers/SynapseNavDrawer.js +1 -1
- package/dist/containers/SynapseNavDrawer.js.map +1 -1
- package/dist/containers/TableFeedCards.js +8 -4
- package/dist/containers/TableFeedCards.js.map +1 -1
- package/dist/containers/UpsetPlot.js +3 -0
- package/dist/containers/UpsetPlot.js.map +1 -1
- package/dist/containers/UserCardList.js +7 -4
- package/dist/containers/UserCardList.js.map +1 -1
- package/dist/containers/UserCardListRotate.js +3 -1
- package/dist/containers/UserCardListRotate.js.map +1 -1
- package/dist/containers/home_page/featured_tools/FeaturedToolsList.js +10 -5
- package/dist/containers/home_page/featured_tools/FeaturedToolsList.js.map +1 -1
- package/dist/containers/home_page/goals/Goals.js +9 -1
- package/dist/containers/home_page/goals/Goals.js.map +1 -1
- package/dist/containers/home_page/programs/Programs.js +5 -1
- package/dist/containers/home_page/programs/Programs.js.map +1 -1
- package/dist/containers/home_page/project_view_carousel/ProjectViewCarousel.js +9 -4
- package/dist/containers/home_page/project_view_carousel/ProjectViewCarousel.js.map +1 -1
- package/dist/containers/home_page/resources/Resources.js +3 -0
- package/dist/containers/home_page/resources/Resources.js.map +1 -1
- package/dist/containers/synapse_table_functions/SynapseTableCell.d.ts +2 -2
- package/dist/containers/synapse_table_functions/SynapseTableCell.js.map +1 -1
- package/dist/containers/table/SynapseTable.d.ts +0 -7
- package/dist/containers/table/SynapseTable.js +0 -18
- package/dist/containers/table/SynapseTable.js.map +1 -1
- package/dist/containers/table/TopLevelControls.js +1 -1
- package/dist/containers/table/TopLevelControls.js.map +1 -1
- package/dist/containers/table/table-top/ColumnSelection.js +2 -6
- package/dist/containers/table/table-top/ColumnSelection.js.map +1 -1
- package/dist/containers/widgets/ElementWithTooltip.js +2 -8
- package/dist/containers/widgets/ElementWithTooltip.js.map +1 -1
- package/dist/style/base/_core.scss +1 -1
- package/dist/style/main.css +1 -1
- package/dist/umd/synapse-react-client.development.css +1 -1
- package/dist/umd/synapse-react-client.development.css.map +1 -1
- package/dist/umd/synapse-react-client.development.js +31 -45
- package/dist/umd/synapse-react-client.development.js.map +2 -2
- package/dist/umd/synapse-react-client.production.min.css +1 -1
- package/dist/umd/synapse-react-client.production.min.js +58 -58
- package/dist/utils/synapseTypes/Table/QueryResult.d.ts +1 -1
- package/package.json +1 -1
|
@@ -36545,7 +36545,7 @@ var SRC = (() => {
|
|
|
36545
36545
|
"package.json"(exports2, module2) {
|
|
36546
36546
|
module2.exports = {
|
|
36547
36547
|
name: "synapse-react-client",
|
|
36548
|
-
version: "3.0.
|
|
36548
|
+
version: "3.0.35",
|
|
36549
36549
|
private: false,
|
|
36550
36550
|
main: "dist/index.js",
|
|
36551
36551
|
types: "./dist/index.d.ts",
|
|
@@ -87787,11 +87787,11 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
87787
87787
|
lastQueryRequestDeepClone.query.limit = pageSize2;
|
|
87788
87788
|
executeQueryRequest(lastQueryRequestDeepClone);
|
|
87789
87789
|
};
|
|
87790
|
-
const goToPage = (pageNum) =>
|
|
87790
|
+
const goToPage = (pageNum) => {
|
|
87791
87791
|
const lastQueryRequestDeepClone = getLastQueryRequest();
|
|
87792
87792
|
lastQueryRequestDeepClone.query.offset = (pageNum - 1) * pageSize;
|
|
87793
87793
|
executeQueryRequest(lastQueryRequestDeepClone);
|
|
87794
|
-
}
|
|
87794
|
+
};
|
|
87795
87795
|
useDeepCompareEffect(() => {
|
|
87796
87796
|
if (onQueryChange) {
|
|
87797
87797
|
onQueryChange(JSON.stringify(lastQueryRequest.query));
|
|
@@ -97253,11 +97253,15 @@ filepath = ${entityId}.path`;
|
|
|
97253
97253
|
const imageColumnIndex = getFieldIndex("projectImageFileName" /* PROJECT_IMAGE */, queryResultBundle);
|
|
97254
97254
|
const projects2 = (_a = queryResultBundle == null ? void 0 : queryResultBundle.queryResult.queryResults.rows.map((row) => {
|
|
97255
97255
|
var _a2;
|
|
97256
|
+
const values3 = row.values;
|
|
97257
|
+
if (values3.some((value) => value === null)) {
|
|
97258
|
+
console.warn("Row has null value(s) when no nulls expected");
|
|
97259
|
+
}
|
|
97256
97260
|
return {
|
|
97257
|
-
projectName: (_a2 =
|
|
97258
|
-
projectDescription:
|
|
97259
|
-
imageFileName:
|
|
97260
|
-
entityId:
|
|
97261
|
+
projectName: (_a2 = values3[displayNameColumnIndex]) != null ? _a2 : values3[nameColumnIndex],
|
|
97262
|
+
projectDescription: values3[descriptionColumnIndex],
|
|
97263
|
+
imageFileName: values3[imageColumnIndex],
|
|
97264
|
+
entityId: values3[entityIdIndex]
|
|
97261
97265
|
};
|
|
97262
97266
|
})) != null ? _a : [];
|
|
97263
97267
|
if (queryError) {
|
|
@@ -97810,19 +97814,19 @@ filepath = ${entityId}.path`;
|
|
|
97810
97814
|
setSelectedRowIndices([]);
|
|
97811
97815
|
}
|
|
97812
97816
|
}, [isLoadingNewBundle]);
|
|
97813
|
-
const [
|
|
97817
|
+
const [visibleColumns, setVisibleColumns] = (0, import_react237.useState)([]);
|
|
97814
97818
|
const [selectedRowIndices, setSelectedRowIndices] = (0, import_react237.useState)([]);
|
|
97815
97819
|
const lastQueryRequest = getLastQueryRequest();
|
|
97816
|
-
const selectColumns = data == null ? void 0 : data.selectColumns;
|
|
97820
|
+
const selectColumns = useDeepCompareMemoize(data == null ? void 0 : data.selectColumns);
|
|
97817
97821
|
(0, import_react237.useEffect)(() => {
|
|
97818
97822
|
var _a2, _b2;
|
|
97819
|
-
|
|
97823
|
+
setVisibleColumns((_b2 = selectColumns == null ? void 0 : selectColumns.slice(0, (_a2 = props.visibleColumnCount) != null ? _a2 : Infinity).map((el2) => el2.name)) != null ? _b2 : []);
|
|
97820
97824
|
}, [selectColumns, lastQueryRequest.query.sql, props.visibleColumnCount]);
|
|
97821
97825
|
const context = {
|
|
97822
97826
|
topLevelControlsState,
|
|
97823
97827
|
setTopLevelControlsState,
|
|
97824
|
-
columnsToShowInTable:
|
|
97825
|
-
setColumnsToShowInTable:
|
|
97828
|
+
columnsToShowInTable: visibleColumns,
|
|
97829
|
+
setColumnsToShowInTable: setVisibleColumns,
|
|
97826
97830
|
selectedRowIndices,
|
|
97827
97831
|
setSelectedRowIndices,
|
|
97828
97832
|
facetAliases: props.facetAliases,
|
|
@@ -98666,8 +98670,6 @@ filepath = ${entityId}.path`;
|
|
|
98666
98670
|
tooltipTrigger = callbackFn ? /* @__PURE__ */ import_react245.default.createElement("button", {
|
|
98667
98671
|
tabIndex: 0,
|
|
98668
98672
|
id: idForToolTip,
|
|
98669
|
-
"data-for": idForToolTip,
|
|
98670
|
-
"data-tip": tooltipText,
|
|
98671
98673
|
className: `ElementWithTooltip SRC-hand-cursor SRC-primary-background-color-hover ${className} ${darkTheme ? "dark-theme" : ""} `,
|
|
98672
98674
|
onKeyPress: () => callbackFn(),
|
|
98673
98675
|
onClick: () => callbackFn(),
|
|
@@ -98678,13 +98680,9 @@ filepath = ${entityId}.path`;
|
|
|
98678
98680
|
"aria-label": tooltipText
|
|
98679
98681
|
}, tooltipTriggerContents);
|
|
98680
98682
|
} else {
|
|
98681
|
-
|
|
98682
|
-
|
|
98683
|
-
|
|
98684
|
-
id: idForToolTip,
|
|
98685
|
-
"data-for": idForToolTip,
|
|
98686
|
-
"data-tip": tooltipText
|
|
98687
|
-
});
|
|
98683
|
+
tooltipTrigger = /* @__PURE__ */ import_react245.default.createElement("div", {
|
|
98684
|
+
className: "SRC-hand-cursor"
|
|
98685
|
+
}, children2);
|
|
98688
98686
|
}
|
|
98689
98687
|
return /* @__PURE__ */ import_react245.default.createElement(Tooltip3, {
|
|
98690
98688
|
title: tooltipText,
|
|
@@ -98882,6 +98880,7 @@ filepath = ${entityId}.path`;
|
|
|
98882
98880
|
icon: darkTheme ? "columnsdark" : "columns",
|
|
98883
98881
|
darkTheme
|
|
98884
98882
|
}), /* @__PURE__ */ import_react248.default.createElement(import_react_bootstrap67.Dropdown.Menu, {
|
|
98883
|
+
id: `${tooltipColumnSelectionId}-dropdown`,
|
|
98885
98884
|
className: "SRC-primary-color-hover-dropdown",
|
|
98886
98885
|
alignRight: true
|
|
98887
98886
|
}, headers == null ? void 0 : headers.map((header) => {
|
|
@@ -99011,7 +99010,9 @@ filepath = ${entityId}.path`;
|
|
|
99011
99010
|
}), controls.map((control) => {
|
|
99012
99011
|
const { key, icon, tooltipText } = control;
|
|
99013
99012
|
if (key === "showDownloadConfirmation" && hideDownload || key === "showFacetVisualization" && hideVisualizationsControl || key === "showFacetFilter" && hideFacetFilterControl || key === "showSqlEditor" && hideSqlEditorControl) {
|
|
99014
|
-
return /* @__PURE__ */ import_react249.default.createElement(import_react249.default.Fragment,
|
|
99013
|
+
return /* @__PURE__ */ import_react249.default.createElement(import_react249.default.Fragment, {
|
|
99014
|
+
key
|
|
99015
|
+
});
|
|
99015
99016
|
} else if (key === "showDownloadConfirmation") {
|
|
99016
99017
|
return /* @__PURE__ */ import_react249.default.createElement(DownloadOptions, {
|
|
99017
99018
|
key,
|
|
@@ -102144,7 +102145,7 @@ filepath = ${entityId}.path`;
|
|
|
102144
102145
|
return /* @__PURE__ */ import_react268.default.createElement(import_react268.default.Fragment, {
|
|
102145
102146
|
key: el2
|
|
102146
102147
|
}, /* @__PURE__ */ import_react268.default.createElement("a", {
|
|
102147
|
-
href,
|
|
102148
|
+
href: href != null ? href : void 0,
|
|
102148
102149
|
target: "_blank",
|
|
102149
102150
|
rel: "noopener noreferrer",
|
|
102150
102151
|
key: el2,
|
|
@@ -102782,13 +102783,14 @@ filepath = ${entityId}.path`;
|
|
|
102782
102783
|
const ownerId = data.queryResult.queryResults.headers.findIndex((el2) => el2.columnType === "USERID" /* USERID */);
|
|
102783
102784
|
const nullOwnerIdsRows = data.queryResult.queryResults.rows.filter((el2) => !el2.values[ownerId]);
|
|
102784
102785
|
return nullOwnerIdsRows.map((el2) => {
|
|
102786
|
+
var _a, _b, _c, _d;
|
|
102785
102787
|
const values3 = el2.values;
|
|
102786
102788
|
return {
|
|
102787
|
-
firstName: values3[firstNameIndex],
|
|
102788
|
-
lastName: values3[lastNameIndex],
|
|
102789
|
-
company: values3[institutionIndex],
|
|
102789
|
+
firstName: (_a = values3[firstNameIndex]) != null ? _a : "",
|
|
102790
|
+
lastName: (_b = values3[lastNameIndex]) != null ? _b : "",
|
|
102791
|
+
company: (_c = values3[institutionIndex]) != null ? _c : void 0,
|
|
102790
102792
|
ownerId: "",
|
|
102791
|
-
userName: values3[firstNameIndex][0]
|
|
102793
|
+
userName: values3[firstNameIndex] ? (_d = values3[firstNameIndex][0]) != null ? _d : "" : ""
|
|
102792
102794
|
};
|
|
102793
102795
|
});
|
|
102794
102796
|
}
|
|
@@ -102899,7 +102901,7 @@ filepath = ${entityId}.path`;
|
|
|
102899
102901
|
if (userIdColumnIndex === -1) {
|
|
102900
102902
|
throw Error("Type MEDIUM_USER_CARD specified but no columnType USERID found");
|
|
102901
102903
|
}
|
|
102902
|
-
const listIds = data.queryResult.queryResults.rows.map((el2) => el2.values[userIdColumnIndex]);
|
|
102904
|
+
const listIds = data.queryResult.queryResults.rows.map((el2) => el2.values.filter((id2) => id2 !== null)[userIdColumnIndex]);
|
|
102903
102905
|
cards = /* @__PURE__ */ import_react271.default.createElement(UserCardList, {
|
|
102904
102906
|
data,
|
|
102905
102907
|
list: listIds,
|
|
@@ -103647,21 +103649,6 @@ filepath = ${entityId}.path`;
|
|
|
103647
103649
|
sortedColumnSelection
|
|
103648
103650
|
});
|
|
103649
103651
|
};
|
|
103650
|
-
this.toggleColumnSelection = (columnName) => {
|
|
103651
|
-
const {
|
|
103652
|
-
queryVisualizationContext: {
|
|
103653
|
-
columnsToShowInTable,
|
|
103654
|
-
setColumnsToShowInTable
|
|
103655
|
-
}
|
|
103656
|
-
} = this.props;
|
|
103657
|
-
let columnsToShowInTableCopy = cloneDeep_default(columnsToShowInTable);
|
|
103658
|
-
if (columnsToShowInTableCopy.includes(columnName)) {
|
|
103659
|
-
columnsToShowInTableCopy = columnsToShowInTableCopy.filter((el2) => el2 !== columnName);
|
|
103660
|
-
} else {
|
|
103661
|
-
columnsToShowInTableCopy.push(columnName);
|
|
103662
|
-
}
|
|
103663
|
-
setColumnsToShowInTable(columnsToShowInTableCopy);
|
|
103664
|
-
};
|
|
103665
103652
|
this.applyChangesFromQueryFilter = (facets) => {
|
|
103666
103653
|
const queryRequest = this.props.queryContext.getLastQueryRequest();
|
|
103667
103654
|
queryRequest.query.selectedFacets = facets;
|
|
@@ -103674,7 +103661,6 @@ filepath = ${entityId}.path`;
|
|
|
103674
103661
|
this.shouldComponentUpdate = this.shouldComponentUpdate.bind(this);
|
|
103675
103662
|
this.handleColumnSortPress = this.handleColumnSortPress.bind(this);
|
|
103676
103663
|
this.findSelectionIndex = this.findSelectionIndex.bind(this);
|
|
103677
|
-
this.toggleColumnSelection = this.toggleColumnSelection.bind(this);
|
|
103678
103664
|
this.advancedSearch = this.advancedSearch.bind(this);
|
|
103679
103665
|
this.getLengthOfPropsData = this.getLengthOfPropsData.bind(this);
|
|
103680
103666
|
this.configureFacetDropdown = this.configureFacetDropdown.bind(this);
|
|
@@ -105280,7 +105266,7 @@ filepath = ${entityId}.path`;
|
|
|
105280
105266
|
badgeContent: numberOfFilesInDownloadList,
|
|
105281
105267
|
handleDrawerClose,
|
|
105282
105268
|
handleDrawerOpen
|
|
105283
|
-
}),
|
|
105269
|
+
}), /* @__PURE__ */ import_react287.default.createElement(NavDrawerListItem, {
|
|
105284
105270
|
tooltip: "Trash Can",
|
|
105285
105271
|
iconName: "delete",
|
|
105286
105272
|
onClickGoToUrl: "/#!Trash:0",
|