synapse-react-client 3.1.47 → 3.1.48
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/index.d.ts +2 -0
- package/dist/index.js +159 -119
- package/dist/index.mjs +92 -52
- package/dist/umd/synapse-react-client.development.js +49 -16
- package/dist/umd/synapse-react-client.development.js.map +3 -3
- package/dist/umd/synapse-react-client.production.min.js +94 -94
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37780,6 +37780,32 @@ function isSortableColumn(column) {
|
|
|
37780
37780
|
|
|
37781
37781
|
// src/components/QueryWrapper/useTableRowSelection.ts
|
|
37782
37782
|
var import_react114 = require("react");
|
|
37783
|
+
var import_lodash_es11 = require("lodash-es");
|
|
37784
|
+
function getRowSelectionEqualityComparator(row, columnModels, rowSelectionPrimaryKey) {
|
|
37785
|
+
let comparator = import_lodash_es11.isEqual;
|
|
37786
|
+
if (rowSelectionPrimaryKey && columnModels) {
|
|
37787
|
+
comparator = (r1, r2) => {
|
|
37788
|
+
const r1PrimaryKeyValues = rowSelectionPrimaryKey.map(
|
|
37789
|
+
(key) => r1.values[columnModels.findIndex((cm) => cm.name === key)]
|
|
37790
|
+
);
|
|
37791
|
+
const r2PrimaryKeyValues = rowSelectionPrimaryKey.map(
|
|
37792
|
+
(key) => r2.values[columnModels.findIndex((cm) => cm.name === key)]
|
|
37793
|
+
);
|
|
37794
|
+
return (0, import_lodash_es11.isEqual)(r1PrimaryKeyValues, r2PrimaryKeyValues);
|
|
37795
|
+
};
|
|
37796
|
+
} else if (row.rowId) {
|
|
37797
|
+
comparator = (r1, r2) => r1.rowId === r2.rowId;
|
|
37798
|
+
}
|
|
37799
|
+
return comparator;
|
|
37800
|
+
}
|
|
37801
|
+
function isRowSelected(row, selectedRows, columnModels, rowSelectionPrimaryKey) {
|
|
37802
|
+
const comparator = getRowSelectionEqualityComparator(
|
|
37803
|
+
row,
|
|
37804
|
+
columnModels,
|
|
37805
|
+
rowSelectionPrimaryKey
|
|
37806
|
+
);
|
|
37807
|
+
return selectedRows.some((selectedRow) => comparator(selectedRow, row));
|
|
37808
|
+
}
|
|
37783
37809
|
function useTableRowSelection(options2) {
|
|
37784
37810
|
const { isRowSelectionVisible = false, entity, columnModels } = options2;
|
|
37785
37811
|
let { rowSelectionPrimaryKey } = options2;
|
|
@@ -37787,12 +37813,24 @@ function useTableRowSelection(options2) {
|
|
|
37787
37813
|
if (!rowSelectionPrimaryKey && isFileViewOrDataset(entity) && columnModels?.find((cm) => cm.name === "id")) {
|
|
37788
37814
|
rowSelectionPrimaryKey = ["id"];
|
|
37789
37815
|
}
|
|
37816
|
+
const getIsRowSelected = (0, import_react114.useCallback)(
|
|
37817
|
+
(row) => {
|
|
37818
|
+
return isRowSelected(
|
|
37819
|
+
row,
|
|
37820
|
+
selectedRows,
|
|
37821
|
+
columnModels,
|
|
37822
|
+
rowSelectionPrimaryKey
|
|
37823
|
+
);
|
|
37824
|
+
},
|
|
37825
|
+
[columnModels, rowSelectionPrimaryKey, selectedRows]
|
|
37826
|
+
);
|
|
37790
37827
|
return {
|
|
37791
37828
|
isRowSelectionVisible,
|
|
37792
37829
|
rowSelectionPrimaryKey,
|
|
37793
37830
|
selectedRows,
|
|
37794
37831
|
setSelectedRows,
|
|
37795
|
-
hasSelectedRows: isRowSelectionVisible && selectedRows.length > 0
|
|
37832
|
+
hasSelectedRows: isRowSelectionVisible && selectedRows.length > 0,
|
|
37833
|
+
getIsRowSelected
|
|
37796
37834
|
};
|
|
37797
37835
|
}
|
|
37798
37836
|
|
|
@@ -38022,7 +38060,8 @@ function QueryWrapper(props) {
|
|
|
38022
38060
|
rowSelectionPrimaryKey,
|
|
38023
38061
|
hasSelectedRows,
|
|
38024
38062
|
selectedRows,
|
|
38025
|
-
setSelectedRows
|
|
38063
|
+
setSelectedRows,
|
|
38064
|
+
getIsRowSelected
|
|
38026
38065
|
} = useTableRowSelection({
|
|
38027
38066
|
entity,
|
|
38028
38067
|
columnModels: data?.columnModels,
|
|
@@ -38058,6 +38097,7 @@ function QueryWrapper(props) {
|
|
|
38058
38097
|
hasSelectedRows,
|
|
38059
38098
|
selectedRows,
|
|
38060
38099
|
setSelectedRows,
|
|
38100
|
+
getIsRowSelected,
|
|
38061
38101
|
addValueToSelectedFacet,
|
|
38062
38102
|
combineRangeFacetConfig,
|
|
38063
38103
|
...paginationControls
|
|
@@ -38963,7 +39003,7 @@ var import_react_bootstrap = require("react-bootstrap");
|
|
|
38963
39003
|
|
|
38964
39004
|
// src/components/widgets/RadioGroup.tsx
|
|
38965
39005
|
var import_react130 = __toESM(require("react"));
|
|
38966
|
-
var
|
|
39006
|
+
var import_lodash_es12 = require("lodash-es");
|
|
38967
39007
|
function RadioGroup(props) {
|
|
38968
39008
|
const className = props.className ? `radiogroup ${props.className}` : `radiogroup`;
|
|
38969
39009
|
return /* @__PURE__ */ import_react130.default.createElement("div", { className, role: "radiogroup" }, props.options.map((option, index) => /* @__PURE__ */ import_react130.default.createElement(
|
|
@@ -38979,7 +39019,7 @@ function RadioGroup(props) {
|
|
|
38979
39019
|
)));
|
|
38980
39020
|
}
|
|
38981
39021
|
function RadioOption(props) {
|
|
38982
|
-
const [uniqueId3] = (0, import_react130.useState)((0,
|
|
39022
|
+
const [uniqueId3] = (0, import_react130.useState)((0, import_lodash_es12.uniqueId)("src-radio-"));
|
|
38983
39023
|
return /* @__PURE__ */ import_react130.default.createElement("div", { onClick: () => props.onChange(props.value) }, /* @__PURE__ */ import_react130.default.createElement(
|
|
38984
39024
|
"input",
|
|
38985
39025
|
{
|
|
@@ -42274,7 +42314,7 @@ var SqlEditor = ({
|
|
|
42274
42314
|
var SqlEditor_default = SqlEditor;
|
|
42275
42315
|
|
|
42276
42316
|
// src/components/SynapseTable/TopLevelControls/TopLevelControls.tsx
|
|
42277
|
-
var
|
|
42317
|
+
var import_lodash_es16 = require("lodash-es");
|
|
42278
42318
|
var import_react219 = __toESM(require("react"));
|
|
42279
42319
|
|
|
42280
42320
|
// src/components/widgets/ElementWithTooltip.tsx
|
|
@@ -42739,7 +42779,7 @@ var ProgrammaticTableDownload_default = ProgrammaticTableDownload;
|
|
|
42739
42779
|
|
|
42740
42780
|
// src/components/SynapseTable/TopLevelControls/TopLevelControlsUtils.ts
|
|
42741
42781
|
var import_pluralize2 = __toESM(require("pluralize"));
|
|
42742
|
-
var
|
|
42782
|
+
var import_lodash_es13 = require("lodash-es");
|
|
42743
42783
|
var TO_DOWNLOAD_CART = "to Download Cart";
|
|
42744
42784
|
function getNumberOfResultsToInvokeAction(hasSelectedRows, selectedRows, data) {
|
|
42745
42785
|
return hasSelectedRows ? selectedRows.length : data?.queryCount;
|
|
@@ -42763,7 +42803,7 @@ function getNumberOfResultsToInvokeActionCopy(hasResettableFilters2, hasSelected
|
|
|
42763
42803
|
}
|
|
42764
42804
|
function getNumberOfResultsToAddToDownloadListCopy(hasResettableFilters2, hasSelectedRows, selectedRows, data, unitDescription) {
|
|
42765
42805
|
if (!hasResettableFilters2 && !hasSelectedRows) {
|
|
42766
|
-
return `Add All ${(0,
|
|
42806
|
+
return `Add All ${(0, import_lodash_es13.upperFirst)(
|
|
42767
42807
|
(0, import_pluralize2.default)(unitDescription)
|
|
42768
42808
|
)} ${TO_DOWNLOAD_CART}`;
|
|
42769
42809
|
}
|
|
@@ -42773,7 +42813,7 @@ function getNumberOfResultsToAddToDownloadListCopy(hasResettableFilters2, hasSel
|
|
|
42773
42813
|
data
|
|
42774
42814
|
);
|
|
42775
42815
|
if (numberOfResultsToInvokeAction != null) {
|
|
42776
|
-
return `Add ${numberOfResultsToInvokeAction.toLocaleString()} Selected ${(0,
|
|
42816
|
+
return `Add ${numberOfResultsToInvokeAction.toLocaleString()} Selected ${(0, import_lodash_es13.upperFirst)(
|
|
42777
42817
|
(0, import_pluralize2.default)(unitDescription, numberOfResultsToInvokeAction)
|
|
42778
42818
|
)} ${TO_DOWNLOAD_CART}`;
|
|
42779
42819
|
}
|
|
@@ -43225,7 +43265,7 @@ var SkeletonInlineBlock = (props) => {
|
|
|
43225
43265
|
|
|
43226
43266
|
// src/components/Skeleton/SkeletonParagraph.tsx
|
|
43227
43267
|
var import_react216 = __toESM(require("react"));
|
|
43228
|
-
var
|
|
43268
|
+
var import_lodash_es14 = require("lodash-es");
|
|
43229
43269
|
var SkeletonParagraph = ({
|
|
43230
43270
|
numRows = 5,
|
|
43231
43271
|
rowHeight,
|
|
@@ -43234,7 +43274,7 @@ var SkeletonParagraph = ({
|
|
|
43234
43274
|
const [skeletons, setSkeletons] = (0, import_react216.useState)([]);
|
|
43235
43275
|
(0, import_react216.useEffect)(() => {
|
|
43236
43276
|
const elements = [];
|
|
43237
|
-
(0,
|
|
43277
|
+
(0, import_lodash_es14.times)(numRows, (i) => {
|
|
43238
43278
|
elements.push(
|
|
43239
43279
|
/* @__PURE__ */ import_react216.default.createElement(import_react216.default.Fragment, { key: i }, /* @__PURE__ */ import_react216.default.createElement(
|
|
43240
43280
|
Skeleton_default,
|
|
@@ -43289,10 +43329,10 @@ function useExportToCavatica(queryBundleRequest, selectColumns) {
|
|
|
43289
43329
|
|
|
43290
43330
|
// src/synapse-queries/entity/useActionsRequiredForTableQuery.ts
|
|
43291
43331
|
var import_react217 = require("react");
|
|
43292
|
-
var
|
|
43332
|
+
var import_lodash_es15 = require("lodash-es");
|
|
43293
43333
|
function useGetActionsRequiredForTableQuery(queryBundleRequest, columnModels, fileColumnModelId, options2) {
|
|
43294
43334
|
const queryRequestCopy = (0, import_react217.useMemo)(() => {
|
|
43295
|
-
const request = (0,
|
|
43335
|
+
const request = (0, import_lodash_es15.cloneDeep)(queryBundleRequest);
|
|
43296
43336
|
const fileColumnId = fileColumnModelId || getFileColumnModelId(columnModels);
|
|
43297
43337
|
if (fileColumnId) {
|
|
43298
43338
|
request.query.selectFileColumn = Number(fileColumnId);
|
|
@@ -43499,7 +43539,7 @@ var TopLevelControls = (props) => {
|
|
|
43499
43539
|
cavaticaHelpURL,
|
|
43500
43540
|
remount
|
|
43501
43541
|
} = props;
|
|
43502
|
-
const [rowSelectionCustomControls, topLevelCustomControls] = (0,
|
|
43542
|
+
const [rowSelectionCustomControls, topLevelCustomControls] = (0, import_lodash_es16.partition)(
|
|
43503
43543
|
customControls,
|
|
43504
43544
|
{ isRowSelectionSupported: true }
|
|
43505
43545
|
);
|
|
@@ -43542,7 +43582,7 @@ var TopLevelControls = (props) => {
|
|
|
43542
43582
|
};
|
|
43543
43583
|
}, [getInitQueryRequest, lockedColumn?.columnName]);
|
|
43544
43584
|
const toggleColumnSelection = (columnName) => {
|
|
43545
|
-
let columnsToShowInTableCopy = (0,
|
|
43585
|
+
let columnsToShowInTableCopy = (0, import_lodash_es16.cloneDeep)(columnsToShowInTable);
|
|
43546
43586
|
if (columnsToShowInTableCopy.includes(columnName)) {
|
|
43547
43587
|
columnsToShowInTableCopy = columnsToShowInTableCopy.filter(
|
|
43548
43588
|
(el) => el !== columnName
|
|
@@ -43700,7 +43740,7 @@ var import_react_bootstrap5 = require("react-bootstrap");
|
|
|
43700
43740
|
var import_use_deep_compare_effect5 = __toESM(require("use-deep-compare-effect"));
|
|
43701
43741
|
|
|
43702
43742
|
// src/components/widgets/Checkbox.tsx
|
|
43703
|
-
var
|
|
43743
|
+
var import_lodash_es17 = require("lodash-es");
|
|
43704
43744
|
var import_react220 = __toESM(require("react"));
|
|
43705
43745
|
var Checkbox = (props) => {
|
|
43706
43746
|
const {
|
|
@@ -43710,7 +43750,7 @@ var Checkbox = (props) => {
|
|
|
43710
43750
|
disabled = false,
|
|
43711
43751
|
onChange
|
|
43712
43752
|
} = props;
|
|
43713
|
-
const [uniqueId3] = (0, import_react220.useState)((0,
|
|
43753
|
+
const [uniqueId3] = (0, import_react220.useState)((0, import_lodash_es17.uniqueId)("src-checkbox-"));
|
|
43714
43754
|
const handleCheckboxChange = (event) => {
|
|
43715
43755
|
if (isSelectAll && event.target.checked === false) {
|
|
43716
43756
|
onChange(true);
|
|
@@ -43789,7 +43829,7 @@ var FacetFilterHeader = ({ label, isCollapsed, onClick }) => {
|
|
|
43789
43829
|
};
|
|
43790
43830
|
|
|
43791
43831
|
// src/components/widgets/query-filter/EnumFacetFilter.tsx
|
|
43792
|
-
var
|
|
43832
|
+
var import_lodash_es18 = require("lodash-es");
|
|
43793
43833
|
function valueToId(value) {
|
|
43794
43834
|
return value.replace(/\s/g, "").toLowerCase();
|
|
43795
43835
|
}
|
|
@@ -43861,7 +43901,7 @@ var EnumFacetFilter = ({
|
|
|
43861
43901
|
setFilteredSet(facetValues);
|
|
43862
43902
|
}, [facetValues]);
|
|
43863
43903
|
const currentSelectedFacet = (0, import_react224.useMemo)(
|
|
43864
|
-
() => (0,
|
|
43904
|
+
() => (0, import_lodash_es18.cloneDeep)(
|
|
43865
43905
|
nextQueryRequest.query.selectedFacets?.find(
|
|
43866
43906
|
(selectedFacet) => {
|
|
43867
43907
|
return selectedFacet.columnName === columnModel.name && isFacetColumnValuesRequest(selectedFacet);
|
|
@@ -44353,7 +44393,7 @@ var RangeFacetFilter = ({
|
|
|
44353
44393
|
};
|
|
44354
44394
|
|
|
44355
44395
|
// src/components/widgets/query-filter/FacetFilterControls.tsx
|
|
44356
|
-
var
|
|
44396
|
+
var import_lodash_es19 = require("lodash-es");
|
|
44357
44397
|
|
|
44358
44398
|
// src/components/widgets/query-filter/CombinedRangeFacetFilter.tsx
|
|
44359
44399
|
var import_react231 = __toESM(require("react"));
|
|
@@ -44646,7 +44686,7 @@ function FacetFilterControls(props) {
|
|
|
44646
44686
|
)
|
|
44647
44687
|
}
|
|
44648
44688
|
));
|
|
44649
|
-
}), /* @__PURE__ */ import_react233.default.createElement("div", null, /* @__PURE__ */ import_react233.default.createElement("div", { className: "AvailableFacet" }, /* @__PURE__ */ import_react233.default.createElement("label", { className: "AvailableFacet__label" }, "Available Facets")), (0,
|
|
44689
|
+
}), /* @__PURE__ */ import_react233.default.createElement("div", null, /* @__PURE__ */ import_react233.default.createElement("div", { className: "AvailableFacet" }, /* @__PURE__ */ import_react233.default.createElement("label", { className: "AvailableFacet__label" }, "Available Facets")), (0, import_lodash_es19.sortBy)(facets, ["columnName"]).map((facet) => {
|
|
44650
44690
|
return /* @__PURE__ */ import_react233.default.createElement(
|
|
44651
44691
|
FacetChip,
|
|
44652
44692
|
{
|
|
@@ -45306,7 +45346,7 @@ var MAX_VALUES_IN_FILTER_FOR_INDIVIDUAL_PILLS = 4;
|
|
|
45306
45346
|
function getPillPropsFromColumnQueryFilter(queryFilter, queryContext, queryVisualizationContext) {
|
|
45307
45347
|
const { getColumnDisplayName } = queryVisualizationContext;
|
|
45308
45348
|
const columnModel = queryContext.getColumnModel(queryFilter.columnName);
|
|
45309
|
-
if (queryFilter.values.length > MAX_VALUES_IN_FILTER_FOR_INDIVIDUAL_PILLS) {
|
|
45349
|
+
if (queryFilter.values.length > MAX_VALUES_IN_FILTER_FOR_INDIVIDUAL_PILLS || !columnModel) {
|
|
45310
45350
|
const text = `${(0, import_pluralize3.default)(
|
|
45311
45351
|
getColumnDisplayName(queryFilter.columnName)
|
|
45312
45352
|
)} (${queryFilter.values.length.toLocaleString()})`;
|
|
@@ -45380,7 +45420,7 @@ function getPillPropsFromFacetFilters(selectedFacets, queryContext, queryVisuali
|
|
|
45380
45420
|
const columnModel = queryContext.getColumnModel(selectedFacet.columnName);
|
|
45381
45421
|
const { getColumnDisplayName, getDisplayValue: getDisplayValue2 } = queryVisualizationContext;
|
|
45382
45422
|
if (isFacetColumnValuesRequest(selectedFacet)) {
|
|
45383
|
-
if (selectedFacet.facetValues.length > MAX_VALUES_IN_FILTER_FOR_INDIVIDUAL_PILLS) {
|
|
45423
|
+
if (selectedFacet.facetValues.length > MAX_VALUES_IN_FILTER_FOR_INDIVIDUAL_PILLS || !columnModel) {
|
|
45384
45424
|
const text = `${(0, import_pluralize3.default)(
|
|
45385
45425
|
getColumnDisplayName(selectedFacet.columnName)
|
|
45386
45426
|
)} (${selectedFacet.facetValues.length.toLocaleString()})`;
|
|
@@ -45690,7 +45730,7 @@ var import_react274 = __toESM(require("react"));
|
|
|
45690
45730
|
var import_react252 = __toESM(require("react"));
|
|
45691
45731
|
|
|
45692
45732
|
// src/components/GenericCard/GenericCard.tsx
|
|
45693
|
-
var
|
|
45733
|
+
var import_lodash_es21 = require("lodash-es");
|
|
45694
45734
|
var import_react247 = __toESM(require("react"));
|
|
45695
45735
|
|
|
45696
45736
|
// src/components/CardContainerLogic/CardContainerLogic.tsx
|
|
@@ -45702,7 +45742,7 @@ var import_react_select2 = __toESM(require("react-select"));
|
|
|
45702
45742
|
|
|
45703
45743
|
// src/components/SchemaDrivenAnnotationEditor/widget/SelectWidget.tsx
|
|
45704
45744
|
var import_react240 = __toESM(require("react"));
|
|
45705
|
-
var
|
|
45745
|
+
var import_lodash_es20 = require("lodash-es");
|
|
45706
45746
|
var filter = createFilterOptions();
|
|
45707
45747
|
function findValueOption(value, options2) {
|
|
45708
45748
|
if (value == null) {
|
|
@@ -45749,9 +45789,9 @@ var SelectWidget = (props) => {
|
|
|
45749
45789
|
multiple,
|
|
45750
45790
|
disableClearable: !isClearable,
|
|
45751
45791
|
onChange: (event, newValue) => {
|
|
45752
|
-
if ((0,
|
|
45792
|
+
if ((0, import_lodash_es20.isObject)(newValue) && "inputValue" in newValue) {
|
|
45753
45793
|
onChange(newValue.inputValue);
|
|
45754
|
-
} else if ((0,
|
|
45794
|
+
} else if ((0, import_lodash_es20.isObject)(newValue) && "value" in newValue) {
|
|
45755
45795
|
onChange(newValue.value);
|
|
45756
45796
|
} else if (typeof newValue === "string") {
|
|
45757
45797
|
onChange(newValue);
|
|
@@ -46265,7 +46305,7 @@ var SynapseCardLabel = (props) => {
|
|
|
46265
46305
|
labelContent = /* @__PURE__ */ import_react247.default.createElement(import_react247.default.Fragment, null, value);
|
|
46266
46306
|
} else {
|
|
46267
46307
|
const href = rowData[linkIndex];
|
|
46268
|
-
if ((0,
|
|
46308
|
+
if ((0, import_lodash_es21.isEmpty)(href)) {
|
|
46269
46309
|
labelContent = /* @__PURE__ */ import_react247.default.createElement(import_react247.default.Fragment, null, value);
|
|
46270
46310
|
} else {
|
|
46271
46311
|
labelContent = /* @__PURE__ */ import_react247.default.createElement("p", null, split.map((el, index) => {
|
|
@@ -46859,7 +46899,7 @@ var LoadingObservationCard = () => {
|
|
|
46859
46899
|
|
|
46860
46900
|
// src/components/UserCardList/UserCardList.tsx
|
|
46861
46901
|
var import_react251 = __toESM(require("react"));
|
|
46862
|
-
var
|
|
46902
|
+
var import_lodash_es22 = require("lodash-es");
|
|
46863
46903
|
var UserCardList = class extends import_react251.default.Component {
|
|
46864
46904
|
constructor(props) {
|
|
46865
46905
|
super(props);
|
|
@@ -46874,7 +46914,7 @@ var UserCardList = class extends import_react251.default.Component {
|
|
|
46874
46914
|
}
|
|
46875
46915
|
componentDidUpdate(prevProps) {
|
|
46876
46916
|
const priorListOfIds = prevProps.list;
|
|
46877
|
-
const newValues = (0,
|
|
46917
|
+
const newValues = (0, import_lodash_es22.without)(
|
|
46878
46918
|
this.props.list.filter((el) => el),
|
|
46879
46919
|
...priorListOfIds
|
|
46880
46920
|
);
|
|
@@ -47096,7 +47136,7 @@ var CardContainer_default2 = CardContainer;
|
|
|
47096
47136
|
|
|
47097
47137
|
// src/components/SynapseTable/SynapseTable.tsx
|
|
47098
47138
|
var import_column_resizer = __toESM(require("column-resizer"));
|
|
47099
|
-
var
|
|
47139
|
+
var import_lodash_es23 = require("lodash-es");
|
|
47100
47140
|
var import_react272 = __toESM(require("react"));
|
|
47101
47141
|
|
|
47102
47142
|
// src/components/AddToDownloadListV2.tsx
|
|
@@ -48364,8 +48404,8 @@ var SynapseTable = class extends import_react272.default.Component {
|
|
|
48364
48404
|
isFetchingEntityHeaders: newIsFetchingEntityHeaders,
|
|
48365
48405
|
...newState
|
|
48366
48406
|
} = nextState;
|
|
48367
|
-
const isPropsChange = !(0,
|
|
48368
|
-
const isStateChange = !(0,
|
|
48407
|
+
const isPropsChange = !(0, import_lodash_es23.eq)(this.props, nextProps);
|
|
48408
|
+
const isStateChange = !(0, import_lodash_es23.eq)(oldState, newState);
|
|
48369
48409
|
const shouldComponentUpdate = isPropsChange || isStateChange;
|
|
48370
48410
|
if (shouldComponentUpdate) {
|
|
48371
48411
|
this.disableResize();
|
|
@@ -48373,9 +48413,9 @@ var SynapseTable = class extends import_react272.default.Component {
|
|
|
48373
48413
|
return shouldComponentUpdate;
|
|
48374
48414
|
}
|
|
48375
48415
|
componentDidUpdate(prevProps, prevState) {
|
|
48376
|
-
if (!(0,
|
|
48416
|
+
if (!(0, import_lodash_es23.eq)(prevProps.queryContext.data, this.props.queryContext.data)) {
|
|
48377
48417
|
this.getEntityHeadersInData(false);
|
|
48378
|
-
} else if (prevProps.queryContext.entity && this.props.queryContext.entity && !(0,
|
|
48418
|
+
} else if (prevProps.queryContext.entity && this.props.queryContext.entity && !(0, import_lodash_es23.eq)(
|
|
48379
48419
|
isEntityView(prevProps.queryContext.entity),
|
|
48380
48420
|
isEntityView(this.props.queryContext.entity)
|
|
48381
48421
|
)) {
|
|
@@ -48406,8 +48446,8 @@ var SynapseTable = class extends import_react272.default.Component {
|
|
|
48406
48446
|
} else if (this.state.isFetchingEntityHeaders && !forceRefresh) {
|
|
48407
48447
|
return;
|
|
48408
48448
|
}
|
|
48409
|
-
const mapEntityIdToHeader = (0,
|
|
48410
|
-
const mapUserIdToHeader = (0,
|
|
48449
|
+
const mapEntityIdToHeader = (0, import_lodash_es23.cloneDeep)(this.state.mapEntityIdToHeader);
|
|
48450
|
+
const mapUserIdToHeader = (0, import_lodash_es23.cloneDeep)(this.state.mapUserIdToHeader);
|
|
48411
48451
|
const entityIdColumnIndicies = getColumnIndicesWithType(
|
|
48412
48452
|
data,
|
|
48413
48453
|
ColumnTypeEnum.ENTITYID
|
|
@@ -48606,11 +48646,11 @@ var SynapseTable = class extends import_react272.default.Component {
|
|
|
48606
48646
|
* @memberof SynapseTable
|
|
48607
48647
|
*/
|
|
48608
48648
|
handleColumnSortPress = (dict) => (_9) => {
|
|
48609
|
-
let columnIconSortState = (0,
|
|
48649
|
+
let columnIconSortState = (0, import_lodash_es23.cloneDeep)(this.state.columnIconSortState);
|
|
48610
48650
|
if (columnIconSortState.length === 0) {
|
|
48611
48651
|
columnIconSortState = Array(this.getLengthOfPropsData()).fill(0);
|
|
48612
48652
|
}
|
|
48613
|
-
const sortedColumnSelection = (0,
|
|
48653
|
+
const sortedColumnSelection = (0, import_lodash_es23.cloneDeep)(this.state.sortedColumnSelection);
|
|
48614
48654
|
const index = this.findSelectionIndex(sortedColumnSelection, dict.name);
|
|
48615
48655
|
if (index !== -1) {
|
|
48616
48656
|
sortedColumnSelection.splice(index, 1);
|
|
@@ -48635,7 +48675,7 @@ var SynapseTable = class extends import_react272.default.Component {
|
|
|
48635
48675
|
createTableRows(rows, headers, isShowingAccessColumn, isShowingDownloadColumn, isShowingAddToV2DownloadListColumn, isRowSelectionVisible) {
|
|
48636
48676
|
const rowsFormatted = [];
|
|
48637
48677
|
const {
|
|
48638
|
-
queryContext: { data, selectedRows, setSelectedRows },
|
|
48678
|
+
queryContext: { data, selectedRows, setSelectedRows, getIsRowSelected },
|
|
48639
48679
|
queryVisualizationContext: { columnsToShowInTable },
|
|
48640
48680
|
columnLinks = []
|
|
48641
48681
|
} = this.props;
|
|
@@ -48743,14 +48783,14 @@ var SynapseTable = class extends import_react272.default.Component {
|
|
|
48743
48783
|
Checkbox,
|
|
48744
48784
|
{
|
|
48745
48785
|
label: "",
|
|
48746
|
-
checked:
|
|
48786
|
+
checked: getIsRowSelected(row),
|
|
48747
48787
|
onChange: (checked) => {
|
|
48748
48788
|
const cloneSelectedRows = [...selectedRows];
|
|
48749
48789
|
if (checked) {
|
|
48750
48790
|
cloneSelectedRows.push(row);
|
|
48751
48791
|
} else {
|
|
48752
48792
|
const index = cloneSelectedRows.findIndex(
|
|
48753
|
-
(selectedRow) => (0,
|
|
48793
|
+
(selectedRow) => (0, import_lodash_es23.isEqual)(selectedRow, row)
|
|
48754
48794
|
);
|
|
48755
48795
|
if (index > -1) {
|
|
48756
48796
|
cloneSelectedRows.splice(index, 1);
|
|
@@ -52536,7 +52576,7 @@ var Sort_default = SortIcon;
|
|
|
52536
52576
|
|
|
52537
52577
|
// src/components/EntityBadgeIcons/EntityBadgeIcons.tsx
|
|
52538
52578
|
var import_icons_material16 = require("@mui/icons-material");
|
|
52539
|
-
var
|
|
52579
|
+
var import_lodash_es28 = require("lodash-es");
|
|
52540
52580
|
var import_react348 = __toESM(require("react"));
|
|
52541
52581
|
var import_react_intersection_observer7 = require("react-intersection-observer");
|
|
52542
52582
|
|
|
@@ -52567,18 +52607,18 @@ var AddToList = (props) => {
|
|
|
52567
52607
|
var AddToList_default = AddToList;
|
|
52568
52608
|
|
|
52569
52609
|
// src/components/SchemaDrivenAnnotationEditor/field/AdditionalPropertiesSchemaField.tsx
|
|
52570
|
-
var
|
|
52610
|
+
var import_lodash_es25 = require("lodash-es");
|
|
52571
52611
|
var import_react326 = __toESM(require("react"));
|
|
52572
52612
|
|
|
52573
52613
|
// src/components/SchemaDrivenAnnotationEditor/AnnotationEditorUtils.ts
|
|
52574
|
-
var
|
|
52614
|
+
var import_lodash_es24 = require("lodash-es");
|
|
52575
52615
|
function dropNullishArrayValues(formData) {
|
|
52576
52616
|
const newFormData = {};
|
|
52577
52617
|
Object.keys(formData).forEach((key) => {
|
|
52578
52618
|
let value = formData[key];
|
|
52579
52619
|
if (Array.isArray(value)) {
|
|
52580
52620
|
value = value.filter((item) => item != null);
|
|
52581
|
-
if (!(0,
|
|
52621
|
+
if (!(0, import_lodash_es24.isEmpty)(value)) {
|
|
52582
52622
|
newFormData[key] = value;
|
|
52583
52623
|
}
|
|
52584
52624
|
} else {
|
|
@@ -52598,7 +52638,7 @@ function getFriendlyPropertyName(error) {
|
|
|
52598
52638
|
}
|
|
52599
52639
|
function getTransformErrors(concreteType) {
|
|
52600
52640
|
return (errors) => {
|
|
52601
|
-
const grouped = (0,
|
|
52641
|
+
const grouped = (0, import_lodash_es24.groupBy)(errors, (error) => error.property);
|
|
52602
52642
|
Object.keys(grouped).map((property) => {
|
|
52603
52643
|
const errorGroup = grouped[property];
|
|
52604
52644
|
const hasAnyOfError = errorGroup.some(
|
|
@@ -52620,7 +52660,7 @@ function getTransformErrors(concreteType) {
|
|
|
52620
52660
|
grouped[property] = [errorGroup[0]];
|
|
52621
52661
|
}
|
|
52622
52662
|
});
|
|
52623
|
-
errors = (0,
|
|
52663
|
+
errors = (0, import_lodash_es24.flatMap)(grouped);
|
|
52624
52664
|
if (concreteType) {
|
|
52625
52665
|
errors = errors.map((error) => {
|
|
52626
52666
|
const propertyName = getFriendlyPropertyName(error);
|
|
@@ -52755,7 +52795,7 @@ function AdditionalPropertiesSchemaField(props) {
|
|
|
52755
52795
|
nextPropertyType
|
|
52756
52796
|
);
|
|
52757
52797
|
if (dataIsEmpty || nextPropertyType !== propertyType) {
|
|
52758
|
-
if ((0,
|
|
52798
|
+
if ((0, import_lodash_es25.isEqual)(formData, coercedList)) {
|
|
52759
52799
|
setPropertyType(nextPropertyType);
|
|
52760
52800
|
}
|
|
52761
52801
|
}
|
|
@@ -52880,7 +52920,7 @@ var import_react328 = __toESM(require("react"));
|
|
|
52880
52920
|
var import_dayjs14 = __toESM(require("dayjs"));
|
|
52881
52921
|
var import_react_bootstrap7 = require("react-bootstrap");
|
|
52882
52922
|
var import_react_datetime = require("react-datetime/css/react-datetime.css");
|
|
52883
|
-
var
|
|
52923
|
+
var import_lodash_es26 = require("lodash-es");
|
|
52884
52924
|
var import_LocalizationProvider = require("@mui/x-date-pickers/LocalizationProvider");
|
|
52885
52925
|
var import_AdapterDayjs = require("@mui/x-date-pickers/AdapterDayjs");
|
|
52886
52926
|
var import_DateTimePicker = require("@mui/x-date-pickers/DateTimePicker");
|
|
@@ -52891,7 +52931,7 @@ import_dayjs14.default.extend(import_utc2.default);
|
|
|
52891
52931
|
import_dayjs14.default.extend(import_timezone.default);
|
|
52892
52932
|
import_dayjs14.default.extend(import_advancedFormat.default);
|
|
52893
52933
|
var CalendarWithIconFormGroup = ({ value, setterCallback, label, disabled = false }) => {
|
|
52894
|
-
const [id] = (0, import_react328.useState)((0,
|
|
52934
|
+
const [id] = (0, import_react328.useState)((0, import_lodash_es26.uniqueId)("calendar-with-icon-form-group-"));
|
|
52895
52935
|
return /* @__PURE__ */ import_react328.default.createElement(import_react_bootstrap7.Form.Group, { className: "calendar-with-icon-form-group" }, /* @__PURE__ */ import_react328.default.createElement(import_LocalizationProvider.LocalizationProvider, { dateAdapter: import_AdapterDayjs.AdapterDayjs }, label && /* @__PURE__ */ import_react328.default.createElement("label", { htmlFor: id }, label), /* @__PURE__ */ import_react328.default.createElement(import_react_bootstrap7.InputGroup, null, /* @__PURE__ */ import_react328.default.createElement(
|
|
52896
52936
|
import_DateTimePicker.DateTimePicker,
|
|
52897
52937
|
{
|
|
@@ -53805,7 +53845,7 @@ function SchemaDrivenAnnotationEditor(props) {
|
|
|
53805
53845
|
|
|
53806
53846
|
// src/components/entity/metadata/AnnotationsTable.tsx
|
|
53807
53847
|
var import_react345 = __toESM(require("react"));
|
|
53808
|
-
var
|
|
53848
|
+
var import_lodash_es27 = require("lodash-es");
|
|
53809
53849
|
var AnnotationsTable = ({
|
|
53810
53850
|
entityId
|
|
53811
53851
|
}) => {
|
|
@@ -53814,7 +53854,7 @@ var AnnotationsTable = ({
|
|
|
53814
53854
|
const { data: boundSchema } = useGetSchemaBinding(entityId, {
|
|
53815
53855
|
enabled: isInExperimentalMode
|
|
53816
53856
|
});
|
|
53817
|
-
return isLoading ? /* @__PURE__ */ import_react345.default.createElement(SkeletonTable, { numRows: 3, numCols: 2 }) : /* @__PURE__ */ import_react345.default.createElement(import_react345.default.Fragment, null, entityMetadata && annotations && (0,
|
|
53857
|
+
return isLoading ? /* @__PURE__ */ import_react345.default.createElement(SkeletonTable, { numRows: 3, numCols: 2 }) : /* @__PURE__ */ import_react345.default.createElement(import_react345.default.Fragment, null, entityMetadata && annotations && (0, import_lodash_es27.isEmpty)(annotations) ? /* @__PURE__ */ import_react345.default.createElement("div", { className: "placeholder" }, "This", " ", entityTypeToFriendlyName(
|
|
53818
53858
|
convertToEntityType(entityMetadata.concreteType)
|
|
53819
53859
|
), " ", "has no annotations.") : null, /* @__PURE__ */ import_react345.default.createElement("table", { className: "AnnotationsTable" }, /* @__PURE__ */ import_react345.default.createElement("tbody", null, annotations && Object.keys(annotations).map((key) => {
|
|
53820
53860
|
return /* @__PURE__ */ import_react345.default.createElement("tr", { key, className: "AnnotationsTable__Row" }, /* @__PURE__ */ import_react345.default.createElement("td", { className: "AnnotationsTable__Row__Key" }, key), /* @__PURE__ */ import_react345.default.createElement("td", { className: "AnnotationsTable__Row__Value" }, Array.isArray(annotations[key]) ? annotations[key].join(", ") : annotations[key].toString()));
|
|
@@ -54090,7 +54130,7 @@ var EntityBadgeIcons = (props) => {
|
|
|
54090
54130
|
// 60 seconds
|
|
54091
54131
|
});
|
|
54092
54132
|
const maxAnnosToShow = 10;
|
|
54093
|
-
const annotationsCount = bundle?.annotations && !(0,
|
|
54133
|
+
const annotationsCount = bundle?.annotations && !(0, import_lodash_es28.isEmpty)(bundle.annotations.annotations) ? Object.keys(bundle.annotations.annotations).length : 0;
|
|
54094
54134
|
(0, import_react348.useEffect)(() => {
|
|
54095
54135
|
if (isInExperimentalMode && schemaValidationResults) {
|
|
54096
54136
|
if (schemaValidationResults.isValid) {
|
|
@@ -55192,7 +55232,7 @@ var import_react359 = __toESM(require("react"));
|
|
|
55192
55232
|
var import_react_bootstrap9 = require("react-bootstrap");
|
|
55193
55233
|
|
|
55194
55234
|
// src/components/EntityFinder/tree/VirtualizedTree.tsx
|
|
55195
|
-
var
|
|
55235
|
+
var import_lodash_es29 = require("lodash-es");
|
|
55196
55236
|
var import_dayjs18 = __toESM(require("dayjs"));
|
|
55197
55237
|
var import_react358 = __toESM(require("react"));
|
|
55198
55238
|
var import_react_intersection_observer8 = require("react-intersection-observer");
|
|
@@ -55485,7 +55525,7 @@ var VirtualizedTree = (props) => {
|
|
|
55485
55525
|
node.children = children.page;
|
|
55486
55526
|
}
|
|
55487
55527
|
node.childrenNextPageToken = children.nextPageToken;
|
|
55488
|
-
setRootNode((0,
|
|
55528
|
+
setRootNode((0, import_lodash_es29.cloneDeep)(rootNode));
|
|
55489
55529
|
},
|
|
55490
55530
|
[rootNode, accessToken, visibleTypes]
|
|
55491
55531
|
);
|
|
@@ -59834,7 +59874,7 @@ var FacetPlotsCardPlotContainer = styled_default(
|
|
|
59834
59874
|
}));
|
|
59835
59875
|
|
|
59836
59876
|
// src/components/FeaturedDataTabs/FacetPlotsCard.tsx
|
|
59837
|
-
var
|
|
59877
|
+
var import_lodash_es30 = require("lodash-es");
|
|
59838
59878
|
var Plot3 = (0, import_factory3.default)(import_plotly3.default);
|
|
59839
59879
|
var layout2 = {
|
|
59840
59880
|
showlegend: false,
|
|
@@ -59859,7 +59899,7 @@ function LoadingCard(props) {
|
|
|
59859
59899
|
/* @__PURE__ */ import_react396.default.createElement(Skeleton_default, { width: "60%", height: "24px" }),
|
|
59860
59900
|
/* @__PURE__ */ import_react396.default.createElement(SkeletonParagraph, { numRows: 5 }),
|
|
59861
59901
|
/* @__PURE__ */ import_react396.default.createElement(Skeleton_default, { width: "40%" }, /* @__PURE__ */ import_react396.default.createElement(Button_default, { variant: "contained" }, "Explore"))
|
|
59862
|
-
), (0,
|
|
59902
|
+
), (0, import_lodash_es30.times)(numPlots).map((index) => /* @__PURE__ */ import_react396.default.createElement(
|
|
59863
59903
|
FacetPlotsCardPlotContainer,
|
|
59864
59904
|
{
|
|
59865
59905
|
key: index,
|
|
@@ -60046,7 +60086,7 @@ var QueryPerFacetPlotsCard_default = QueryPerFacetPlotsCard;
|
|
|
60046
60086
|
|
|
60047
60087
|
// src/components/FeaturedDataTabs/SingleQueryFacetPlotsCards.tsx
|
|
60048
60088
|
var import_react398 = __toESM(require("react"));
|
|
60049
|
-
var
|
|
60089
|
+
var import_lodash_es31 = require("lodash-es");
|
|
60050
60090
|
|
|
60051
60091
|
// src/components/FeaturedDataTabs/FeaturedDataTabsUtils.ts
|
|
60052
60092
|
var CARDS_PER_ROW = 3;
|
|
@@ -60076,7 +60116,7 @@ var SingleQueryFacetPlotsCards = (props) => {
|
|
|
60076
60116
|
unitDescription
|
|
60077
60117
|
},
|
|
60078
60118
|
/* @__PURE__ */ import_react398.default.createElement(QueryWrapperErrorBanner, null),
|
|
60079
|
-
(0,
|
|
60119
|
+
(0, import_lodash_es31.chunk)(facetsToPlot, CARDS_PER_ROW).map((facets, rowIndex) => {
|
|
60080
60120
|
return /* @__PURE__ */ import_react398.default.createElement(
|
|
60081
60121
|
FacetPlotsCardGridContainer,
|
|
60082
60122
|
{
|
|
@@ -60096,7 +60136,7 @@ var SingleQueryFacetPlotsCards = (props) => {
|
|
|
60096
60136
|
var SingleQueryFacetPlotsCards_default = SingleQueryFacetPlotsCards;
|
|
60097
60137
|
|
|
60098
60138
|
// src/components/FeaturedDataTabs/FeaturedDataPlots.tsx
|
|
60099
|
-
var
|
|
60139
|
+
var import_lodash_es32 = require("lodash-es");
|
|
60100
60140
|
var FeaturedDataPlots = (props) => {
|
|
60101
60141
|
const { configs, rgbIndex, sql } = props;
|
|
60102
60142
|
const isQueryPerCard = configs && "selectFacetColumnName" in configs[0];
|
|
@@ -60112,10 +60152,10 @@ var FeaturedDataPlots = (props) => {
|
|
|
60112
60152
|
);
|
|
60113
60153
|
}));
|
|
60114
60154
|
} else if (isQueryPerCard) {
|
|
60115
|
-
return /* @__PURE__ */ import_react399.default.createElement(import_react399.default.Fragment, null, (0,
|
|
60155
|
+
return /* @__PURE__ */ import_react399.default.createElement(import_react399.default.Fragment, null, (0, import_lodash_es32.chunk)(configs, CARDS_PER_ROW).map(
|
|
60116
60156
|
(configRow, rowIndex) => {
|
|
60117
60157
|
let cssGridTemplateRows = "[title] auto";
|
|
60118
|
-
(0,
|
|
60158
|
+
(0, import_lodash_es32.times)(configRow[0].facetsToPlot?.length ?? 1).forEach(
|
|
60119
60159
|
(value, index) => {
|
|
60120
60160
|
cssGridTemplateRows += ` [plot${index}] auto`;
|
|
60121
60161
|
}
|
|
@@ -60671,7 +60711,7 @@ var UserMentionModal = ({
|
|
|
60671
60711
|
};
|
|
60672
60712
|
|
|
60673
60713
|
// src/components/Markdown/MarkdownEditor.tsx
|
|
60674
|
-
var
|
|
60714
|
+
var import_lodash_es33 = require("lodash-es");
|
|
60675
60715
|
var MarkdownEditorTabs = ["WRITE", "PREVIEW"];
|
|
60676
60716
|
var MarkdownEditor = ({
|
|
60677
60717
|
placeholder,
|
|
@@ -60774,7 +60814,7 @@ var MarkdownEditor = ({
|
|
|
60774
60814
|
tabName
|
|
60775
60815
|
);
|
|
60776
60816
|
})), currentTab === "WRITE" && /* @__PURE__ */ import_react406.default.createElement("div", { className: "MarkdownEditorControlsToolbar" }, commandList.map((type) => {
|
|
60777
|
-
return /* @__PURE__ */ import_react406.default.createElement("button", { key: type, onClick: () => handleCommands(type) }, /* @__PURE__ */ import_react406.default.createElement(IconSvg_default, { icon: type, label: (0,
|
|
60817
|
+
return /* @__PURE__ */ import_react406.default.createElement("button", { key: type, onClick: () => handleCommands(type) }, /* @__PURE__ */ import_react406.default.createElement(IconSvg_default, { icon: type, label: (0, import_lodash_es33.startCase)(type) }));
|
|
60778
60818
|
}), /* @__PURE__ */ import_react406.default.createElement("button", { onClick: () => setIsShowingTagModal(true) }, /* @__PURE__ */ import_react406.default.createElement(IconSvg_default, { icon: "tag", label: "Mention" })))), /* @__PURE__ */ import_react406.default.createElement("div", null, currentTab === "WRITE" ? /* @__PURE__ */ import_react406.default.createElement(
|
|
60779
60819
|
"textarea",
|
|
60780
60820
|
{
|
|
@@ -62443,16 +62483,16 @@ var OAuthManagement = () => {
|
|
|
62443
62483
|
|
|
62444
62484
|
// src/components/Plot/ThemesPlot.tsx
|
|
62445
62485
|
var import_react425 = __toESM(require("react"));
|
|
62446
|
-
var
|
|
62486
|
+
var import_lodash_es36 = __toESM(require("lodash-es"));
|
|
62447
62487
|
|
|
62448
62488
|
// src/components/Plot/DotPlot.tsx
|
|
62449
62489
|
var import_react423 = __toESM(require("react"));
|
|
62450
62490
|
var import_plotly4 = __toESM(require("plotly.js-basic-dist"));
|
|
62451
62491
|
var import_factory4 = __toESM(require("react-plotly.js/factory"));
|
|
62452
|
-
var
|
|
62492
|
+
var import_lodash_es34 = __toESM(require("lodash-es"));
|
|
62453
62493
|
var Plot4 = (0, import_factory4.default)(import_plotly4.default);
|
|
62454
62494
|
function getLayout(dotPlotLayoutConfig2, layoutOptions) {
|
|
62455
|
-
const result =
|
|
62495
|
+
const result = import_lodash_es34.default.cloneDeep(dotPlotLayoutConfig2);
|
|
62456
62496
|
if (!layoutOptions) {
|
|
62457
62497
|
return result;
|
|
62458
62498
|
}
|
|
@@ -62507,7 +62547,7 @@ function createArrayOfGroupValues(headers, items) {
|
|
|
62507
62547
|
}
|
|
62508
62548
|
function getPlotDataPoints(graphItems, plotStyle, ySorted, markerSymbols) {
|
|
62509
62549
|
const isFakeData = ySorted === void 0;
|
|
62510
|
-
const groups =
|
|
62550
|
+
const groups = import_lodash_es34.default.uniq(graphItems.map((item) => item.group));
|
|
62511
62551
|
const data = [];
|
|
62512
62552
|
const defaultSymbols = [
|
|
62513
62553
|
"y-down",
|
|
@@ -62575,7 +62615,7 @@ var DotPlot = ({
|
|
|
62575
62615
|
style,
|
|
62576
62616
|
data: getPlotDataPoints(plotData, plotStyle, pointsTypes, markerSymbols),
|
|
62577
62617
|
config: optionsConfig2,
|
|
62578
|
-
onClick: (e) => onClick ? onClick(e) :
|
|
62618
|
+
onClick: (e) => onClick ? onClick(e) : import_lodash_es34.default.noop
|
|
62579
62619
|
}
|
|
62580
62620
|
);
|
|
62581
62621
|
};
|
|
@@ -62585,13 +62625,13 @@ var DotPlot_default = DotPlot;
|
|
|
62585
62625
|
var import_react424 = __toESM(require("react"));
|
|
62586
62626
|
var import_plotly5 = __toESM(require("plotly.js-basic-dist"));
|
|
62587
62627
|
var import_factory5 = __toESM(require("react-plotly.js/factory"));
|
|
62588
|
-
var
|
|
62628
|
+
var import_lodash_es35 = __toESM(require("lodash-es"));
|
|
62589
62629
|
var Plot5 = (0, import_factory5.default)(import_plotly5.default);
|
|
62590
62630
|
function getBarPlotDataPoints(data, filter2, colors) {
|
|
62591
62631
|
if (filter2) {
|
|
62592
62632
|
data = data.filter((item) => item.y === filter2);
|
|
62593
62633
|
}
|
|
62594
|
-
const groups =
|
|
62634
|
+
const groups = import_lodash_es35.default.uniq(data.map((item) => item["group"])).sort();
|
|
62595
62635
|
const result = [];
|
|
62596
62636
|
const defaultColors = [`(28,118,175,1)`, `rgba(91,176,181,1)`];
|
|
62597
62637
|
groups.forEach((group, i) => {
|
|
@@ -62614,7 +62654,7 @@ function getBarPlotDataPoints(data, filter2, colors) {
|
|
|
62614
62654
|
return result;
|
|
62615
62655
|
}
|
|
62616
62656
|
function getLayout2(layoutConfig, { isTop, maxValue, backgroundColor }) {
|
|
62617
|
-
const layout3 =
|
|
62657
|
+
const layout3 = import_lodash_es35.default.cloneDeep(layoutConfig);
|
|
62618
62658
|
layout3.xaxis = {
|
|
62619
62659
|
visible: false,
|
|
62620
62660
|
range: [0, maxValue]
|
|
@@ -62657,7 +62697,7 @@ var BarPlot = ({
|
|
|
62657
62697
|
}),
|
|
62658
62698
|
config: optionsConfig2,
|
|
62659
62699
|
data: getBarPlotDataPoints(plotData, label, colors),
|
|
62660
|
-
onClick: (e) => onClick ? onClick(e) :
|
|
62700
|
+
onClick: (e) => onClick ? onClick(e) : import_lodash_es35.default.noop
|
|
62661
62701
|
}
|
|
62662
62702
|
);
|
|
62663
62703
|
};
|
|
@@ -62786,7 +62826,7 @@ var fadeColors = (colors, opacity) => {
|
|
|
62786
62826
|
return colors;
|
|
62787
62827
|
};
|
|
62788
62828
|
var getTooltip = (data, filter2) => {
|
|
62789
|
-
return
|
|
62829
|
+
return import_lodash_es36.default.first(data.filter((item) => item.y === filter2).map((item) => item.info));
|
|
62790
62830
|
};
|
|
62791
62831
|
function ThemesPlot({
|
|
62792
62832
|
dotPlot,
|
|
@@ -62827,10 +62867,10 @@ function ThemesPlot({
|
|
|
62827
62867
|
yLabelsForDotPlot = totalsByDotPlotY.sort((a, b) => b.count - a.count).map((item) => item.y);
|
|
62828
62868
|
xMaxForSideBarPlot = Math.max(...totalsByDotPlotY.map((item) => item.count));
|
|
62829
62869
|
xMaxForDotPlot = Math.max(...dotPlotQueryData.map((item) => Number(item.x)));
|
|
62830
|
-
topBarPlotDataSorted =
|
|
62870
|
+
topBarPlotDataSorted = import_lodash_es36.default.orderBy(getTotalsByProp(topBarPlotData, "y"), [
|
|
62831
62871
|
"y"
|
|
62832
62872
|
]);
|
|
62833
|
-
xLabelsForTopBarPlot =
|
|
62873
|
+
xLabelsForTopBarPlot = import_lodash_es36.default.orderBy(
|
|
62834
62874
|
getTotalsByProp(topBarPlotData, "group"),
|
|
62835
62875
|
["group"]
|
|
62836
62876
|
).map((item) => item.group);
|
|
@@ -62858,7 +62898,7 @@ function ThemesPlot({
|
|
|
62858
62898
|
BarPlot_default,
|
|
62859
62899
|
{
|
|
62860
62900
|
style: { width: "100%", height: "100%" },
|
|
62861
|
-
layoutConfig:
|
|
62901
|
+
layoutConfig: import_lodash_es36.default.cloneDeep(barLayoutConfig),
|
|
62862
62902
|
optionsConfig: { ...optionsConfig },
|
|
62863
62903
|
plotData: topBarPlotData,
|
|
62864
62904
|
isTop: true,
|
|
@@ -62884,7 +62924,7 @@ function ThemesPlot({
|
|
|
62884
62924
|
{
|
|
62885
62925
|
tooltipText: `${getTooltip(dotPlotQueryData, label)} `,
|
|
62886
62926
|
tooltipVisualProps: tooltipProps,
|
|
62887
|
-
callbackFn: () =>
|
|
62927
|
+
callbackFn: () => import_lodash_es36.default.noop
|
|
62888
62928
|
},
|
|
62889
62929
|
/* @__PURE__ */ import_react425.default.createElement("div", null, /* @__PURE__ */ import_react425.default.createElement("span", { className: "ThemesPlot__dotPlot__themeLabel" }, label), /* @__PURE__ */ import_react425.default.createElement("br", null), /* @__PURE__ */ import_react425.default.createElement("span", { className: "ThemesPlot__dotPlot__countLabel" }, totalsByDotPlotY[i].count, " ", sideBarPlot.countLabel), /* @__PURE__ */ import_react425.default.createElement("br", null), /* @__PURE__ */ import_react425.default.createElement(
|
|
62890
62930
|
BarPlot_default,
|
|
@@ -64142,12 +64182,12 @@ var SubsectionRowRenderer_default = SubsectionRowRenderer;
|
|
|
64142
64182
|
|
|
64143
64183
|
// src/components/SynapseForm/SynapseFormWrapper.tsx
|
|
64144
64184
|
var import_json_schema_ref_parser = __toESM(require("@apidevtools/json-schema-ref-parser"));
|
|
64145
|
-
var
|
|
64185
|
+
var import_lodash_es39 = require("lodash-es");
|
|
64146
64186
|
var import_react455 = __toESM(require("react"));
|
|
64147
64187
|
|
|
64148
64188
|
// src/components/SynapseForm/SynapseForm.tsx
|
|
64149
64189
|
var import_react454 = __toESM(require("react"));
|
|
64150
|
-
var
|
|
64190
|
+
var import_lodash_es38 = __toESM(require("lodash-es"));
|
|
64151
64191
|
var import_json_rules_engine = require("json-rules-engine");
|
|
64152
64192
|
var import_core5 = __toESM(require("@rjsf/core"));
|
|
64153
64193
|
var import_validator_ajv84 = __toESM(require("@rjsf/validator-ajv8"));
|
|
@@ -64286,7 +64326,7 @@ function DataDebug(props) {
|
|
|
64286
64326
|
|
|
64287
64327
|
// src/components/SynapseForm/SummaryTable.tsx
|
|
64288
64328
|
var import_react453 = __toESM(require("react"));
|
|
64289
|
-
var
|
|
64329
|
+
var import_lodash_es37 = require("lodash-es");
|
|
64290
64330
|
function findLabel(key, schema, uiSchema) {
|
|
64291
64331
|
const regex1 = /\[\d+\]\./g;
|
|
64292
64332
|
const regex3 = /\.(\d)+/g;
|
|
@@ -64297,12 +64337,12 @@ function findLabel(key, schema, uiSchema) {
|
|
|
64297
64337
|
const arrayLabelFromSchema = labelFromSchema.replace(regex1, ".items.");
|
|
64298
64338
|
const arrayLabelFromUiSchema = labelFromUi.replace(regex1, ".items.");
|
|
64299
64339
|
const indexMatch = labelFromSchema.match(regex1);
|
|
64300
|
-
let index = (0,
|
|
64340
|
+
let index = (0, import_lodash_es37.first)(indexMatch);
|
|
64301
64341
|
if (index) {
|
|
64302
64342
|
index = index.substring(1, index.length - 2);
|
|
64303
64343
|
index = !isNaN(parseInt(index)) ? `${parseInt(index) + 1}` : "";
|
|
64304
64344
|
}
|
|
64305
|
-
const label = (0,
|
|
64345
|
+
const label = (0, import_lodash_es37.get)(uiSchema, labelFromUi) || (0, import_lodash_es37.get)(schema.properties, labelFromSchema) || (0, import_lodash_es37.get)(uiSchema, arrayLabelFromUiSchema) || (0, import_lodash_es37.get)(schema.properties, arrayLabelFromSchema) || `${arrayLabelFromSchema}`;
|
|
64306
64346
|
return `${index ? "[" + index + "] " : ""}${label}`;
|
|
64307
64347
|
}
|
|
64308
64348
|
function getFlatData(formData, steps2, schema, uiSchema) {
|
|
@@ -64313,10 +64353,10 @@ function getFlatData(formData, steps2, schema, uiSchema) {
|
|
|
64313
64353
|
flattenedObject[prefix + key] = "";
|
|
64314
64354
|
} else if (
|
|
64315
64355
|
//if the value is a proper array
|
|
64316
|
-
(0,
|
|
64356
|
+
(0, import_lodash_es37.isArray)(object[key]) && !(0, import_lodash_es37.isString)(object[key])
|
|
64317
64357
|
) {
|
|
64318
64358
|
for (const i in object[key]) {
|
|
64319
|
-
if ((0,
|
|
64359
|
+
if ((0, import_lodash_es37.isArray)(object[key][i]) || (0, import_lodash_es37.isObject)(object[key]) && !(0, import_lodash_es37.isString)(object[key][i])) {
|
|
64320
64360
|
flatten(
|
|
64321
64361
|
object[key][i],
|
|
64322
64362
|
flattenedObject,
|
|
@@ -64328,7 +64368,7 @@ function getFlatData(formData, steps2, schema, uiSchema) {
|
|
|
64328
64368
|
flattenedObject[`${prefix}${key}`] = prevVal + object[key][i];
|
|
64329
64369
|
}
|
|
64330
64370
|
}
|
|
64331
|
-
} else if ((0,
|
|
64371
|
+
} else if ((0, import_lodash_es37.isObject)(object[key]) && !(0, import_lodash_es37.isDate)(object[key])) {
|
|
64332
64372
|
flatten(object[key], flattenedObject, `${prefix}${key}${separator}`);
|
|
64333
64373
|
} else {
|
|
64334
64374
|
flattenedObject[prefix + key] = object[key];
|
|
@@ -64336,9 +64376,9 @@ function getFlatData(formData, steps2, schema, uiSchema) {
|
|
|
64336
64376
|
});
|
|
64337
64377
|
return flattenedObject;
|
|
64338
64378
|
}
|
|
64339
|
-
const flatData = flatten((0,
|
|
64379
|
+
const flatData = flatten((0, import_lodash_es37.cloneDeep)(formData), {}, "");
|
|
64340
64380
|
console.log(flatData);
|
|
64341
|
-
const flatFormData = (0,
|
|
64381
|
+
const flatFormData = (0, import_lodash_es37.keys)(flatData).map((key) => {
|
|
64342
64382
|
let val = flatData[key];
|
|
64343
64383
|
if (flatData[key] === false) {
|
|
64344
64384
|
val = "false";
|
|
@@ -64348,7 +64388,7 @@ function getFlatData(formData, steps2, schema, uiSchema) {
|
|
|
64348
64388
|
}
|
|
64349
64389
|
const boundary = key.indexOf(".");
|
|
64350
64390
|
return {
|
|
64351
|
-
screen: (0,
|
|
64391
|
+
screen: (0, import_lodash_es37.find)(steps2, { id: key.substring(0, boundary) }),
|
|
64352
64392
|
label: findLabel(key, schema, uiSchema),
|
|
64353
64393
|
value: val
|
|
64354
64394
|
};
|
|
@@ -64365,7 +64405,7 @@ function getFlatData(formData, steps2, schema, uiSchema) {
|
|
|
64365
64405
|
function SummaryTable(props) {
|
|
64366
64406
|
let flatFormData = [];
|
|
64367
64407
|
flatFormData = getFlatData(
|
|
64368
|
-
(0,
|
|
64408
|
+
(0, import_lodash_es37.cloneDeep)(props.formData),
|
|
64369
64409
|
props.steps,
|
|
64370
64410
|
props.schema,
|
|
64371
64411
|
props.uiSchema
|
|
@@ -64406,7 +64446,7 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64406
64446
|
constructor(props) {
|
|
64407
64447
|
super(props);
|
|
64408
64448
|
this.uiSchema = stringToElementForProp(
|
|
64409
|
-
|
|
64449
|
+
import_lodash_es38.default.cloneDeep(props.uiSchema),
|
|
64410
64450
|
"ui:help"
|
|
64411
64451
|
);
|
|
64412
64452
|
const steps2 = props.navSchema.steps.map((step, i) => {
|
|
@@ -64462,16 +64502,16 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64462
64502
|
const result = {};
|
|
64463
64503
|
const currentStateFormData = currentState.formData;
|
|
64464
64504
|
Object.keys(schemaScreens).forEach((key) => {
|
|
64465
|
-
if (
|
|
64466
|
-
|
|
64505
|
+
if (import_lodash_es38.default.get(schemaScreens[key], `properties.included`)) {
|
|
64506
|
+
import_lodash_es38.default.set(result, `${key}.included`, true);
|
|
64467
64507
|
}
|
|
64468
64508
|
});
|
|
64469
64509
|
return { ...currentStateFormData, ...result };
|
|
64470
64510
|
};
|
|
64471
64511
|
_setIncludedPropInFormDataWizard = (currentState) => {
|
|
64472
64512
|
const firstStepId = currentState.currentStep.id;
|
|
64473
|
-
const newStateData =
|
|
64474
|
-
|
|
64513
|
+
const newStateData = import_lodash_es38.default.cloneDeep(currentState.formData);
|
|
64514
|
+
import_lodash_es38.default.set(newStateData, `${firstStepId}.included`, true);
|
|
64475
64515
|
return newStateData;
|
|
64476
64516
|
};
|
|
64477
64517
|
componentDidMount() {
|
|
@@ -64496,7 +64536,7 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64496
64536
|
if (final) {
|
|
64497
64537
|
return this.props.schema;
|
|
64498
64538
|
}
|
|
64499
|
-
const currentStepSlice =
|
|
64539
|
+
const currentStepSlice = import_lodash_es38.default.pick(this.props.schema, [
|
|
64500
64540
|
"title",
|
|
64501
64541
|
"type",
|
|
64502
64542
|
`properties.${id}`
|
|
@@ -64555,7 +64595,7 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64555
64595
|
return step;
|
|
64556
64596
|
});
|
|
64557
64597
|
if (isMoveForwardInWizardMode) {
|
|
64558
|
-
|
|
64598
|
+
import_lodash_es38.default.set(formData, `${nextStepId}.included`, true);
|
|
64559
64599
|
}
|
|
64560
64600
|
const nextStep = this.state.steps.find((step) => step.id === nextStepId);
|
|
64561
64601
|
if (this.props.isWizardMode && nextStep.final) {
|
|
@@ -64585,17 +64625,17 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64585
64625
|
if (this.props.isWizardMode) {
|
|
64586
64626
|
previousStepId = previousStack.pop();
|
|
64587
64627
|
if (!this.isSubmitScreen()) {
|
|
64588
|
-
|
|
64628
|
+
import_lodash_es38.default.set(formData, `${this.state.currentStep.id}.included`, void 0);
|
|
64589
64629
|
}
|
|
64590
64630
|
} else {
|
|
64591
|
-
const currentIndex =
|
|
64631
|
+
const currentIndex = import_lodash_es38.default.findIndex(this.state.steps, {
|
|
64592
64632
|
id: this.state.currentStep.id
|
|
64593
64633
|
});
|
|
64594
64634
|
if (currentIndex > 0) {
|
|
64595
64635
|
previousStepId = this.state.steps[currentIndex - 1].id;
|
|
64596
64636
|
}
|
|
64597
64637
|
}
|
|
64598
|
-
if (!
|
|
64638
|
+
if (!import_lodash_es38.default.isUndefined(previousStepId)) {
|
|
64599
64639
|
return this.moveStep(formData, previousStepId, isError, previousStack);
|
|
64600
64640
|
}
|
|
64601
64641
|
};
|
|
@@ -64642,7 +64682,7 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64642
64682
|
};
|
|
64643
64683
|
setStepStatusForFailedValidation = (errors, steps2, isWizard, formData, currentSchemaProperties) => {
|
|
64644
64684
|
const stepsWithError = errors.map(
|
|
64645
|
-
(error) =>
|
|
64685
|
+
(error) => import_lodash_es38.default.trimStart(error.property, ".").split(".")[0]
|
|
64646
64686
|
);
|
|
64647
64687
|
const stepsInCurrentSchema = Object.keys(currentSchemaProperties);
|
|
64648
64688
|
const updatedSteps = steps2.map((step) => {
|
|
@@ -64653,7 +64693,7 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64653
64693
|
};
|
|
64654
64694
|
} else if (stepsInCurrentSchema.indexOf(step.id) > -1) {
|
|
64655
64695
|
let state = 2 /* COMPLETED */;
|
|
64656
|
-
if (isWizard && !
|
|
64696
|
+
if (isWizard && !import_lodash_es38.default.get(formData[step.id], "included")) {
|
|
64657
64697
|
state = step.state;
|
|
64658
64698
|
}
|
|
64659
64699
|
return {
|
|
@@ -64669,7 +64709,7 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64669
64709
|
//we are constantly saving form data. Needed to overwrite on-error behavior
|
|
64670
64710
|
handleOnChange({ formData }) {
|
|
64671
64711
|
if (!this.isSubmitScreen() && !this.state.currentStep.excluded) {
|
|
64672
|
-
const hasUnsavedChanges = !
|
|
64712
|
+
const hasUnsavedChanges = !import_lodash_es38.default.isEqual(this.state.formData, formData);
|
|
64673
64713
|
this.setState({ formData, hasUnsavedChanges });
|
|
64674
64714
|
}
|
|
64675
64715
|
}
|
|
@@ -64742,15 +64782,15 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64742
64782
|
}
|
|
64743
64783
|
return stp;
|
|
64744
64784
|
});
|
|
64745
|
-
const formDataUpdated =
|
|
64746
|
-
const currentStep =
|
|
64785
|
+
const formDataUpdated = import_lodash_es38.default.cloneDeep(prevState.formData);
|
|
64786
|
+
const currentStep = import_lodash_es38.default.cloneDeep(prevState.currentStep);
|
|
64747
64787
|
if (currentStep.id === stepId) {
|
|
64748
64788
|
currentStep.excluded = isExclude;
|
|
64749
64789
|
}
|
|
64750
64790
|
if (isExclude) {
|
|
64751
64791
|
formDataUpdated[stepId] = {};
|
|
64752
64792
|
} else {
|
|
64753
|
-
|
|
64793
|
+
import_lodash_es38.default.set(formDataUpdated, `${stepId}.included`, true);
|
|
64754
64794
|
}
|
|
64755
64795
|
return {
|
|
64756
64796
|
steps: steps2,
|
|
@@ -64841,7 +64881,7 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64841
64881
|
rules = allSteps.reduce((acc, value) => {
|
|
64842
64882
|
return value.validationRules && value.validationRules.length > 0 ? acc.concat(value.validationRules) : acc;
|
|
64843
64883
|
}, []);
|
|
64844
|
-
data =
|
|
64884
|
+
data = import_lodash_es38.default.cloneDeep(formData);
|
|
64845
64885
|
}
|
|
64846
64886
|
if (rules.length === 0) {
|
|
64847
64887
|
return [];
|
|
@@ -64853,7 +64893,7 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64853
64893
|
allRules.push(rule);
|
|
64854
64894
|
} else {
|
|
64855
64895
|
const path = paramProp.split("[*]")[0].substring(1);
|
|
64856
|
-
const data2 =
|
|
64896
|
+
const data2 = import_lodash_es38.default.get(formData, path);
|
|
64857
64897
|
if (Array.isArray(data2) && typeof data2 !== "string") {
|
|
64858
64898
|
for (let i = 0; i < data2.length; i++) {
|
|
64859
64899
|
const newRule = JSON.parse(
|
|
@@ -64912,7 +64952,7 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
64912
64952
|
0,
|
|
64913
64953
|
error.property.lastIndexOf(".")
|
|
64914
64954
|
);
|
|
64915
|
-
|
|
64955
|
+
import_lodash_es38.default.remove(errors, (error2) => {
|
|
64916
64956
|
return (error2.property || "").indexOf(parentPath) > -1 && (error2.name === "enum" || error2.name === "oneOf");
|
|
64917
64957
|
});
|
|
64918
64958
|
}
|
|
@@ -65076,20 +65116,20 @@ var SynapseForm = class extends import_react454.default.Component {
|
|
|
65076
65116
|
}
|
|
65077
65117
|
};
|
|
65078
65118
|
function renderTransformedErrorObject(steps2, error, uiSchema, i, schema) {
|
|
65079
|
-
const propPath =
|
|
65119
|
+
const propPath = import_lodash_es38.default.trimStart(error.property, ".");
|
|
65080
65120
|
const propArr = propPath.split(".");
|
|
65081
65121
|
const labelFromSchema = `${propArr.join(".properties.")}.title`;
|
|
65082
65122
|
const labelFromUi = `${propPath}.ui:title`;
|
|
65083
65123
|
const arrayLabelFromSchema = labelFromSchema.replace(/\[.*?\]/, ".items");
|
|
65084
65124
|
const arrayLabelFromUI = labelFromUi.replace(/\[.*?\]/, ".items");
|
|
65085
65125
|
const indexMatch = labelFromSchema.match(/\[.*?\]/);
|
|
65086
|
-
let index =
|
|
65126
|
+
let index = import_lodash_es38.default.first(indexMatch);
|
|
65087
65127
|
if (index) {
|
|
65088
65128
|
index = index.substring(1, index.length - 1);
|
|
65089
65129
|
index = !isNaN(parseInt(index)) ? ` [${parseInt(index) + 1}]` : "";
|
|
65090
65130
|
}
|
|
65091
|
-
const label =
|
|
65092
|
-
const screen =
|
|
65131
|
+
const label = import_lodash_es38.default.get(uiSchema, labelFromUi) || import_lodash_es38.default.get(schema.properties, labelFromSchema) || import_lodash_es38.default.get(uiSchema, arrayLabelFromUI) || import_lodash_es38.default.get(schema.properties, arrayLabelFromSchema) || error.property;
|
|
65132
|
+
const screen = import_lodash_es38.default.find(steps2, { id: propArr[0] }) || {
|
|
65093
65133
|
title: propArr[0],
|
|
65094
65134
|
order: 0
|
|
65095
65135
|
};
|
|
@@ -65097,7 +65137,7 @@ function renderTransformedErrorObject(steps2, error, uiSchema, i, schema) {
|
|
|
65097
65137
|
return { order: screen.order, element };
|
|
65098
65138
|
}
|
|
65099
65139
|
function stringToElementForProp(srcObject, key) {
|
|
65100
|
-
|
|
65140
|
+
import_lodash_es38.default.keys(srcObject).some((k) => {
|
|
65101
65141
|
if (k === key) {
|
|
65102
65142
|
const value = srcObject[k];
|
|
65103
65143
|
srcObject[k] = /* @__PURE__ */ import_react454.default.createElement("span", { dangerouslySetInnerHTML: { __html: value } });
|
|
@@ -65314,7 +65354,7 @@ var SynapseFormWrapper = class extends import_react455.default.Component {
|
|
|
65314
65354
|
}
|
|
65315
65355
|
};
|
|
65316
65356
|
saveToFile = async (data) => {
|
|
65317
|
-
const fileName = (0,
|
|
65357
|
+
const fileName = (0, import_lodash_es39.get)(data, this.props.fileNamePath);
|
|
65318
65358
|
this.setState({
|
|
65319
65359
|
status: 0 /* PROGRESS */,
|
|
65320
65360
|
notification: { type: 0 /* PROGRESS */, message: "Progress" },
|
|
@@ -65327,7 +65367,7 @@ var SynapseFormWrapper = class extends import_react455.default.Component {
|
|
|
65327
65367
|
".",
|
|
65328
65368
|
".properties."
|
|
65329
65369
|
)}.title`;
|
|
65330
|
-
errorTitle = (0,
|
|
65370
|
+
errorTitle = (0, import_lodash_es39.get)(
|
|
65331
65371
|
this.state.formSchema.properties,
|
|
65332
65372
|
searchString,
|
|
65333
65373
|
errorTitle
|
|
@@ -65358,7 +65398,7 @@ var SynapseFormWrapper = class extends import_react455.default.Component {
|
|
|
65358
65398
|
return this.state.status !== 4 /* ERROR_CRITICAL */ && state.formSchema && state.formUiSchema && state.formNavSchema && state.formData;
|
|
65359
65399
|
};
|
|
65360
65400
|
renderLoader = (state, props) => {
|
|
65361
|
-
if ((0,
|
|
65401
|
+
if ((0, import_lodash_es39.includes)([1 /* ERROR */, 4 /* ERROR_CRITICAL */], state.status) && props.token && state.isLoading) {
|
|
65362
65402
|
return /* @__PURE__ */ import_react455.default.createElement("div", { className: "text-center" }, /* @__PURE__ */ import_react455.default.createElement("span", { className: "spinner" }));
|
|
65363
65403
|
} else {
|
|
65364
65404
|
return /* @__PURE__ */ import_react455.default.createElement(import_react455.default.Fragment, null);
|
|
@@ -65892,7 +65932,7 @@ var CheckIcon = (props) => {
|
|
|
65892
65932
|
};
|
|
65893
65933
|
|
|
65894
65934
|
// src/components/TermsAndConditions/TermsAndConditionsItem.tsx
|
|
65895
|
-
var
|
|
65935
|
+
var import_lodash_es40 = require("lodash-es");
|
|
65896
65936
|
var TermsAndConditionsItem = (props) => {
|
|
65897
65937
|
const { id, item, enabled, checked, onChange, termsAndConditionsTableID } = props;
|
|
65898
65938
|
const { iconFileHandleId, label, description } = item;
|
|
@@ -65954,7 +65994,7 @@ var TermsAndConditionsItem = (props) => {
|
|
|
65954
65994
|
};
|
|
65955
65995
|
function LoadingItem(props) {
|
|
65956
65996
|
const { numLoadingItems } = props;
|
|
65957
|
-
return /* @__PURE__ */ import_react461.default.createElement(import_react461.default.Fragment, null, (0,
|
|
65997
|
+
return /* @__PURE__ */ import_react461.default.createElement(import_react461.default.Fragment, null, (0, import_lodash_es40.times)(numLoadingItems).map((index) => {
|
|
65958
65998
|
return /* @__PURE__ */ import_react461.default.createElement(
|
|
65959
65999
|
"li",
|
|
65960
66000
|
{
|