synapse-react-client 3.1.20 → 3.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/containers/entity/page/CreatedByModifiedBy.d.ts +6 -0
- package/dist/containers/entity/page/CreatedByModifiedBy.js +103 -0
- package/dist/containers/entity/page/CreatedByModifiedBy.js.map +1 -0
- package/dist/containers/entity/page/title_bar/EntityPageTitleBar.js +1 -1
- package/dist/containers/entity/page/title_bar/TitleBarProperties.js +5 -4
- package/dist/containers/entity/page/title_bar/TitleBarProperties.js.map +1 -1
- package/dist/containers/entity_finder/SelectionPane.js +3 -2
- package/dist/containers/entity_finder/SelectionPane.js.map +1 -1
- package/dist/containers/entity_finder/details/view/DetailsView.js +15 -1
- package/dist/containers/entity_finder/details/view/DetailsView.js.map +1 -1
- package/dist/containers/entity_finder/tree/EntityTree.js +65 -69
- package/dist/containers/entity_finder/tree/EntityTree.js.map +1 -1
- package/dist/containers/menu/DropdownMenu.js +5 -1
- package/dist/containers/menu/DropdownMenu.js.map +1 -1
- package/dist/containers/table/datasets/DatasetItemsEditor.js +3 -5
- package/dist/containers/table/datasets/DatasetItemsEditor.js.map +1 -1
- package/dist/containers/widgets/facet-nav/FacetNavPanel.js +15 -19
- package/dist/containers/widgets/facet-nav/FacetNavPanel.js.map +1 -1
- package/dist/umd/synapse-react-client.development.js +296 -179
- package/dist/umd/synapse-react-client.development.js.map +4 -4
- package/dist/umd/synapse-react-client.production.min.js +78 -78
- package/dist/umd.index.d.ts +2 -0
- package/dist/umd.index.js +2 -0
- package/dist/umd.index.js.map +1 -1
- package/dist/utils/APIConstants.d.ts +3 -0
- package/dist/utils/APIConstants.js +9 -2
- package/dist/utils/APIConstants.js.map +1 -1
- package/dist/utils/SynapseClient.d.ts +1 -1
- package/dist/utils/SynapseClient.js +3 -3
- package/dist/utils/SynapseClient.js.map +1 -1
- package/dist/utils/hooks/SynapseAPI/entity/useGetEntityHeaders.d.ts +2 -1
- package/dist/utils/hooks/SynapseAPI/entity/useGetEntityHeaders.js +6 -1
- package/dist/utils/hooks/SynapseAPI/entity/useGetEntityHeaders.js.map +1 -1
- package/dist/utils/synapseTypes/EntityHeader.d.ts +2 -1
- package/dist/utils/theme/DefaultTheme.js +9 -0
- package/dist/utils/theme/DefaultTheme.js.map +1 -1
- package/dist/utils/types/Optional.d.ts +2 -0
- package/package.json +1 -1
|
@@ -3431,7 +3431,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3431
3431
|
"node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js"(exports2) {
|
|
3432
3432
|
"use strict";
|
|
3433
3433
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3434
|
-
var
|
|
3434
|
+
var React579 = require_react();
|
|
3435
3435
|
function _interopNamespace(e4) {
|
|
3436
3436
|
if (e4 && e4.__esModule)
|
|
3437
3437
|
return e4;
|
|
@@ -3452,14 +3452,14 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3452
3452
|
n3["default"] = e4;
|
|
3453
3453
|
return Object.freeze(n3);
|
|
3454
3454
|
}
|
|
3455
|
-
var React__namespace = /* @__PURE__ */ _interopNamespace(
|
|
3455
|
+
var React__namespace = /* @__PURE__ */ _interopNamespace(React579);
|
|
3456
3456
|
var isBrowser2 = typeof document !== "undefined";
|
|
3457
3457
|
var syncFallback = function syncFallback2(create3) {
|
|
3458
3458
|
return create3();
|
|
3459
3459
|
};
|
|
3460
3460
|
var useInsertionEffect = React__namespace["useInsertionEffect"] ? React__namespace["useInsertionEffect"] : false;
|
|
3461
3461
|
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser2 ? syncFallback : useInsertionEffect || syncFallback;
|
|
3462
|
-
var useInsertionEffectWithLayoutFallback = useInsertionEffect ||
|
|
3462
|
+
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React579.useLayoutEffect;
|
|
3463
3463
|
exports2.useInsertionEffectAlwaysWithSyncFallback = useInsertionEffectAlwaysWithSyncFallback;
|
|
3464
3464
|
exports2.useInsertionEffectWithLayoutFallback = useInsertionEffectWithLayoutFallback;
|
|
3465
3465
|
}
|
|
@@ -3481,7 +3481,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3481
3481
|
var require_emotion_element_b63ca7c6_cjs_dev = __commonJS({
|
|
3482
3482
|
"node_modules/@emotion/react/dist/emotion-element-b63ca7c6.cjs.dev.js"(exports2) {
|
|
3483
3483
|
"use strict";
|
|
3484
|
-
var
|
|
3484
|
+
var React579 = require_react();
|
|
3485
3485
|
var createCache3 = require_emotion_cache_cjs();
|
|
3486
3486
|
var _extends35 = require_extends2();
|
|
3487
3487
|
var weakMemoize = require_emotion_weak_memoize_cjs();
|
|
@@ -3496,7 +3496,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3496
3496
|
var weakMemoize__default = /* @__PURE__ */ _interopDefault(weakMemoize);
|
|
3497
3497
|
var isBrowser2 = typeof document !== "undefined";
|
|
3498
3498
|
var hasOwnProperty17 = {}.hasOwnProperty;
|
|
3499
|
-
var EmotionCacheContext = /* @__PURE__ */
|
|
3499
|
+
var EmotionCacheContext = /* @__PURE__ */ React579.createContext(
|
|
3500
3500
|
typeof HTMLElement !== "undefined" ? /* @__PURE__ */ createCache__default["default"]({
|
|
3501
3501
|
key: "css"
|
|
3502
3502
|
}) : null
|
|
@@ -3506,23 +3506,23 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3506
3506
|
}
|
|
3507
3507
|
var CacheProvider2 = EmotionCacheContext.Provider;
|
|
3508
3508
|
var __unsafe_useEmotionCache = function useEmotionCache() {
|
|
3509
|
-
return
|
|
3509
|
+
return React579.useContext(EmotionCacheContext);
|
|
3510
3510
|
};
|
|
3511
3511
|
exports2.withEmotionCache = function withEmotionCache(func) {
|
|
3512
|
-
return /* @__PURE__ */
|
|
3513
|
-
var cache3 =
|
|
3512
|
+
return /* @__PURE__ */ React579.forwardRef(function(props, ref) {
|
|
3513
|
+
var cache3 = React579.useContext(EmotionCacheContext);
|
|
3514
3514
|
return func(props, cache3, ref);
|
|
3515
3515
|
});
|
|
3516
3516
|
};
|
|
3517
3517
|
if (!isBrowser2) {
|
|
3518
3518
|
exports2.withEmotionCache = function withEmotionCache(func) {
|
|
3519
3519
|
return function(props) {
|
|
3520
|
-
var cache3 =
|
|
3520
|
+
var cache3 = React579.useContext(EmotionCacheContext);
|
|
3521
3521
|
if (cache3 === null) {
|
|
3522
3522
|
cache3 = createCache__default["default"]({
|
|
3523
3523
|
key: "css"
|
|
3524
3524
|
});
|
|
3525
|
-
return /* @__PURE__ */
|
|
3525
|
+
return /* @__PURE__ */ React579.createElement(EmotionCacheContext.Provider, {
|
|
3526
3526
|
value: cache3
|
|
3527
3527
|
}, func(props, cache3));
|
|
3528
3528
|
} else {
|
|
@@ -3531,12 +3531,12 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3531
3531
|
};
|
|
3532
3532
|
};
|
|
3533
3533
|
}
|
|
3534
|
-
var ThemeContext3 = /* @__PURE__ */
|
|
3534
|
+
var ThemeContext3 = /* @__PURE__ */ React579.createContext({});
|
|
3535
3535
|
if (true) {
|
|
3536
3536
|
ThemeContext3.displayName = "EmotionThemeContext";
|
|
3537
3537
|
}
|
|
3538
3538
|
var useTheme5 = function useTheme6() {
|
|
3539
|
-
return
|
|
3539
|
+
return React579.useContext(ThemeContext3);
|
|
3540
3540
|
};
|
|
3541
3541
|
var getTheme = function getTheme2(outerTheme, theme2) {
|
|
3542
3542
|
if (typeof theme2 === "function") {
|
|
@@ -3557,24 +3557,24 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3557
3557
|
});
|
|
3558
3558
|
});
|
|
3559
3559
|
var ThemeProvider4 = function ThemeProvider5(props) {
|
|
3560
|
-
var theme2 =
|
|
3560
|
+
var theme2 = React579.useContext(ThemeContext3);
|
|
3561
3561
|
if (props.theme !== theme2) {
|
|
3562
3562
|
theme2 = createCacheWithTheme(theme2)(props.theme);
|
|
3563
3563
|
}
|
|
3564
|
-
return /* @__PURE__ */
|
|
3564
|
+
return /* @__PURE__ */ React579.createElement(ThemeContext3.Provider, {
|
|
3565
3565
|
value: theme2
|
|
3566
3566
|
}, props.children);
|
|
3567
3567
|
};
|
|
3568
3568
|
function withTheme2(Component29) {
|
|
3569
3569
|
var componentName = Component29.displayName || Component29.name || "Component";
|
|
3570
3570
|
var render = function render2(props, ref) {
|
|
3571
|
-
var theme2 =
|
|
3572
|
-
return /* @__PURE__ */
|
|
3571
|
+
var theme2 = React579.useContext(ThemeContext3);
|
|
3572
|
+
return /* @__PURE__ */ React579.createElement(Component29, _extends35({
|
|
3573
3573
|
theme: theme2,
|
|
3574
3574
|
ref
|
|
3575
3575
|
}, props));
|
|
3576
3576
|
};
|
|
3577
|
-
var WithTheme = /* @__PURE__ */
|
|
3577
|
+
var WithTheme = /* @__PURE__ */ React579.forwardRef(render);
|
|
3578
3578
|
WithTheme.displayName = "WithTheme(" + componentName + ")";
|
|
3579
3579
|
return _isolatedHnrs_dist_emotionReact_isolatedHnrs["default"](WithTheme, Component29);
|
|
3580
3580
|
}
|
|
@@ -3644,7 +3644,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3644
3644
|
serializedNames += " " + next.name;
|
|
3645
3645
|
next = next.next;
|
|
3646
3646
|
}
|
|
3647
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ React579.createElement("style", (_ref23 = {}, _ref23["data-emotion"] = cache3.key + " " + serializedNames, _ref23.dangerouslySetInnerHTML = {
|
|
3648
3648
|
__html: rules
|
|
3649
3649
|
}, _ref23.nonce = cache3.sheet.nonce, _ref23));
|
|
3650
3650
|
}
|
|
@@ -3663,7 +3663,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3663
3663
|
} else if (props.className != null) {
|
|
3664
3664
|
className = props.className + " ";
|
|
3665
3665
|
}
|
|
3666
|
-
var serialized = serialize.serializeStyles(registeredStyles, void 0,
|
|
3666
|
+
var serialized = serialize.serializeStyles(registeredStyles, void 0, React579.useContext(ThemeContext3));
|
|
3667
3667
|
if (serialized.name.indexOf("-") === -1) {
|
|
3668
3668
|
var labelFromStack = props[labelPropName];
|
|
3669
3669
|
if (labelFromStack) {
|
|
@@ -3679,11 +3679,11 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3679
3679
|
}
|
|
3680
3680
|
newProps.ref = ref;
|
|
3681
3681
|
newProps.className = className;
|
|
3682
|
-
return /* @__PURE__ */
|
|
3682
|
+
return /* @__PURE__ */ React579.createElement(React579.Fragment, null, /* @__PURE__ */ React579.createElement(Insertion, {
|
|
3683
3683
|
cache: cache3,
|
|
3684
3684
|
serialized,
|
|
3685
3685
|
isStringTag: typeof WrappedComponent === "string"
|
|
3686
|
-
}), /* @__PURE__ */
|
|
3686
|
+
}), /* @__PURE__ */ React579.createElement(WrappedComponent, newProps));
|
|
3687
3687
|
});
|
|
3688
3688
|
if (true) {
|
|
3689
3689
|
Emotion.displayName = "EmotionCssPropInternal";
|
|
@@ -3706,7 +3706,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3706
3706
|
"node_modules/@emotion/react/dist/emotion-react.cjs.dev.js"(exports2) {
|
|
3707
3707
|
"use strict";
|
|
3708
3708
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3709
|
-
var
|
|
3709
|
+
var React579 = require_react();
|
|
3710
3710
|
require_emotion_cache_cjs();
|
|
3711
3711
|
var emotionElement = require_emotion_element_b63ca7c6_cjs_dev();
|
|
3712
3712
|
require_extends2();
|
|
@@ -3841,7 +3841,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3841
3841
|
var jsx3 = function jsx4(type, props) {
|
|
3842
3842
|
var args = arguments;
|
|
3843
3843
|
if (props == null || !emotionElement.hasOwnProperty.call(props, "css")) {
|
|
3844
|
-
return
|
|
3844
|
+
return React579.createElement.apply(void 0, args);
|
|
3845
3845
|
}
|
|
3846
3846
|
var argsLength = args.length;
|
|
3847
3847
|
var createElementArgArray = new Array(argsLength);
|
|
@@ -3850,7 +3850,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3850
3850
|
for (var i2 = 2; i2 < argsLength; i2++) {
|
|
3851
3851
|
createElementArgArray[i2] = args[i2];
|
|
3852
3852
|
}
|
|
3853
|
-
return
|
|
3853
|
+
return React579.createElement.apply(null, createElementArgArray);
|
|
3854
3854
|
};
|
|
3855
3855
|
var warnedAboutCssPropForGlobal = false;
|
|
3856
3856
|
var Global2 = /* @__PURE__ */ emotionElement.withEmotionCache(function(props, cache3) {
|
|
@@ -3859,7 +3859,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3859
3859
|
warnedAboutCssPropForGlobal = true;
|
|
3860
3860
|
}
|
|
3861
3861
|
var styles5 = props.styles;
|
|
3862
|
-
var serialized = serialize.serializeStyles([styles5], void 0,
|
|
3862
|
+
var serialized = serialize.serializeStyles([styles5], void 0, React579.useContext(emotionElement.ThemeContext));
|
|
3863
3863
|
if (!emotionElement.isBrowser) {
|
|
3864
3864
|
var _ref4;
|
|
3865
3865
|
var serializedNames = serialized.name;
|
|
@@ -3878,11 +3878,11 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
3878
3878
|
if (shouldCache) {
|
|
3879
3879
|
return null;
|
|
3880
3880
|
}
|
|
3881
|
-
return /* @__PURE__ */
|
|
3881
|
+
return /* @__PURE__ */ React579.createElement("style", (_ref4 = {}, _ref4["data-emotion"] = cache3.key + "-global " + serializedNames, _ref4.dangerouslySetInnerHTML = {
|
|
3882
3882
|
__html: rules
|
|
3883
3883
|
}, _ref4.nonce = cache3.sheet.nonce, _ref4));
|
|
3884
3884
|
}
|
|
3885
|
-
var sheetRef =
|
|
3885
|
+
var sheetRef = React579.useRef();
|
|
3886
3886
|
useInsertionEffectWithFallbacks.useInsertionEffectWithLayoutFallback(function() {
|
|
3887
3887
|
var key = cache3.key + "-global";
|
|
3888
3888
|
var sheet = new cache3.sheet.constructor({
|
|
@@ -4010,7 +4010,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
4010
4010
|
});
|
|
4011
4011
|
if (!emotionElement.isBrowser && rules.length !== 0) {
|
|
4012
4012
|
var _ref23;
|
|
4013
|
-
return /* @__PURE__ */
|
|
4013
|
+
return /* @__PURE__ */ React579.createElement("style", (_ref23 = {}, _ref23["data-emotion"] = cache3.key + " " + serializedArr.map(function(serialized) {
|
|
4014
4014
|
return serialized.name;
|
|
4015
4015
|
}).join(" "), _ref23.dangerouslySetInnerHTML = {
|
|
4016
4016
|
__html: rules
|
|
@@ -4045,11 +4045,11 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
4045
4045
|
var content = {
|
|
4046
4046
|
css: css8,
|
|
4047
4047
|
cx: cx2,
|
|
4048
|
-
theme:
|
|
4048
|
+
theme: React579.useContext(emotionElement.ThemeContext)
|
|
4049
4049
|
};
|
|
4050
4050
|
var ele = props.children(content);
|
|
4051
4051
|
hasRendered = true;
|
|
4052
|
-
return /* @__PURE__ */
|
|
4052
|
+
return /* @__PURE__ */ React579.createElement(React579.Fragment, null, /* @__PURE__ */ React579.createElement(Insertion, {
|
|
4053
4053
|
cache: cache3,
|
|
4054
4054
|
serializedArr
|
|
4055
4055
|
}), ele);
|
|
@@ -4112,7 +4112,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
4112
4112
|
"use strict";
|
|
4113
4113
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
4114
4114
|
var _extends35 = require_extends();
|
|
4115
|
-
var
|
|
4115
|
+
var React579 = require_react();
|
|
4116
4116
|
var isPropValid = require_emotion_is_prop_valid_cjs();
|
|
4117
4117
|
var react = require_emotion_react_cjs();
|
|
4118
4118
|
var utils = require_emotion_utils_cjs();
|
|
@@ -4161,7 +4161,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
4161
4161
|
serializedNames += " " + next.name;
|
|
4162
4162
|
next = next.next;
|
|
4163
4163
|
}
|
|
4164
|
-
return /* @__PURE__ */
|
|
4164
|
+
return /* @__PURE__ */ React579.createElement("style", (_ref23 = {}, _ref23["data-emotion"] = cache3.key + " " + serializedNames, _ref23.dangerouslySetInnerHTML = {
|
|
4165
4165
|
__html: rules
|
|
4166
4166
|
}, _ref23.nonce = cache3.sheet.nonce, _ref23));
|
|
4167
4167
|
}
|
|
@@ -4216,7 +4216,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
4216
4216
|
for (var key in props) {
|
|
4217
4217
|
mergedProps[key] = props[key];
|
|
4218
4218
|
}
|
|
4219
|
-
mergedProps.theme =
|
|
4219
|
+
mergedProps.theme = React579.useContext(react.ThemeContext);
|
|
4220
4220
|
}
|
|
4221
4221
|
if (typeof props.className === "string") {
|
|
4222
4222
|
className = utils.getRegisteredStyles(cache3.registered, classInterpolations, props.className);
|
|
@@ -4239,11 +4239,11 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
4239
4239
|
}
|
|
4240
4240
|
newProps.className = className;
|
|
4241
4241
|
newProps.ref = ref;
|
|
4242
|
-
return /* @__PURE__ */
|
|
4242
|
+
return /* @__PURE__ */ React579.createElement(React579.Fragment, null, /* @__PURE__ */ React579.createElement(Insertion, {
|
|
4243
4243
|
cache: cache3,
|
|
4244
4244
|
serialized,
|
|
4245
4245
|
isStringTag: typeof FinalTag === "string"
|
|
4246
|
-
}), /* @__PURE__ */
|
|
4246
|
+
}), /* @__PURE__ */ React579.createElement(FinalTag, newProps));
|
|
4247
4247
|
});
|
|
4248
4248
|
Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
|
|
4249
4249
|
Styled.defaultProps = tag.defaultProps;
|
|
@@ -4447,7 +4447,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
4447
4447
|
if (true) {
|
|
4448
4448
|
(function() {
|
|
4449
4449
|
"use strict";
|
|
4450
|
-
var
|
|
4450
|
+
var React579 = require_react();
|
|
4451
4451
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
4452
4452
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
4453
4453
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
@@ -4473,7 +4473,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
4473
4473
|
}
|
|
4474
4474
|
return null;
|
|
4475
4475
|
}
|
|
4476
|
-
var ReactSharedInternals =
|
|
4476
|
+
var ReactSharedInternals = React579.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
4477
4477
|
function error(format3) {
|
|
4478
4478
|
{
|
|
4479
4479
|
{
|
|
@@ -5977,7 +5977,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
5977
5977
|
"node_modules/react-error-boundary/dist/react-error-boundary.umd.js"(exports2, module2) {
|
|
5978
5978
|
(function(global3, factory) {
|
|
5979
5979
|
typeof exports2 === "object" && typeof module2 !== "undefined" ? factory(exports2, require_react()) : typeof define === "function" && define.amd ? define(["exports", "react"], factory) : (global3 = typeof globalThis !== "undefined" ? globalThis : global3 || self, factory(global3.ReactErrorBoundary = {}, global3.React));
|
|
5980
|
-
})(exports2, function(exports3,
|
|
5980
|
+
})(exports2, function(exports3, React579) {
|
|
5981
5981
|
"use strict";
|
|
5982
5982
|
function _interopNamespace(e4) {
|
|
5983
5983
|
if (e4 && e4.__esModule)
|
|
@@ -5999,7 +5999,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
5999
5999
|
n3["default"] = e4;
|
|
6000
6000
|
return Object.freeze(n3);
|
|
6001
6001
|
}
|
|
6002
|
-
var React__namespace = /* @__PURE__ */ _interopNamespace(
|
|
6002
|
+
var React__namespace = /* @__PURE__ */ _interopNamespace(React579);
|
|
6003
6003
|
function _setPrototypeOf17(o2, p2) {
|
|
6004
6004
|
_setPrototypeOf17 = Object.setPrototypeOf || function _setPrototypeOf18(o3, p3) {
|
|
6005
6005
|
o3.__proto__ = p3;
|
|
@@ -6097,7 +6097,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
6097
6097
|
Wrapped.displayName = "withErrorBoundary(" + name + ")";
|
|
6098
6098
|
return Wrapped;
|
|
6099
6099
|
}
|
|
6100
|
-
function
|
|
6100
|
+
function useErrorHandler14(givenError) {
|
|
6101
6101
|
var _React$useState = React__namespace.useState(null), error = _React$useState[0], setError = _React$useState[1];
|
|
6102
6102
|
if (givenError != null)
|
|
6103
6103
|
throw givenError;
|
|
@@ -6106,7 +6106,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
6106
6106
|
return setError;
|
|
6107
6107
|
}
|
|
6108
6108
|
exports3.ErrorBoundary = ErrorBoundary2;
|
|
6109
|
-
exports3.useErrorHandler =
|
|
6109
|
+
exports3.useErrorHandler = useErrorHandler14;
|
|
6110
6110
|
exports3.withErrorBoundary = withErrorBoundary;
|
|
6111
6111
|
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
6112
6112
|
});
|
|
@@ -18370,8 +18370,8 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
18370
18370
|
function _interopDefault(ex) {
|
|
18371
18371
|
return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
|
|
18372
18372
|
}
|
|
18373
|
-
var
|
|
18374
|
-
var React__default = _interopDefault(
|
|
18373
|
+
var React579 = require_react();
|
|
18374
|
+
var React__default = _interopDefault(React579);
|
|
18375
18375
|
var ReactDOM5 = _interopDefault(require_react_dom());
|
|
18376
18376
|
var invariant2 = _interopDefault(require_browser2());
|
|
18377
18377
|
var throttleDebounce = require_index_umd();
|
|
@@ -18558,11 +18558,11 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
18558
18558
|
_createClass12(ReferenceWrapper2, [{
|
|
18559
18559
|
key: "render",
|
|
18560
18560
|
value: function render() {
|
|
18561
|
-
return
|
|
18561
|
+
return React579.Children.only(this.props.children);
|
|
18562
18562
|
}
|
|
18563
18563
|
}]);
|
|
18564
18564
|
return ReferenceWrapper2;
|
|
18565
|
-
}(
|
|
18565
|
+
}(React579.Component);
|
|
18566
18566
|
_defineProperty21(ReferenceWrapper, "displayName", "SizeMeReferenceWrapper");
|
|
18567
18567
|
function Placeholder3(_ref4) {
|
|
18568
18568
|
var className = _ref4.className, style4 = _ref4.style;
|
|
@@ -18800,7 +18800,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
18800
18800
|
}
|
|
18801
18801
|
}]);
|
|
18802
18802
|
return SizeMe5;
|
|
18803
|
-
}(
|
|
18803
|
+
}(React579.Component);
|
|
18804
18804
|
_defineProperty21(SizeMe4, "defaultProps", {
|
|
18805
18805
|
children: void 0,
|
|
18806
18806
|
render: void 0
|
|
@@ -31038,7 +31038,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
31038
31038
|
"package.json"(exports2, module2) {
|
|
31039
31039
|
module2.exports = {
|
|
31040
31040
|
name: "synapse-react-client",
|
|
31041
|
-
version: "3.1.
|
|
31041
|
+
version: "3.1.21",
|
|
31042
31042
|
private: false,
|
|
31043
31043
|
main: "dist/index.js",
|
|
31044
31044
|
types: "./dist/index.d.ts",
|
|
@@ -53761,6 +53761,8 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
|
53761
53761
|
var ENTITY_ID_VERSION = (id2, version) => `${REPO}/entity/${id2}${version ? `/version/${version}` : ""}`;
|
|
53762
53762
|
var ENTITY_BUNDLE_V2 = (id2, version) => `${ENTITY_ID_VERSION(id2, version)}/bundle2`;
|
|
53763
53763
|
var ENTITY_ACCESS = (id2) => `${REPO}/entity/${id2}/access`;
|
|
53764
|
+
var ENTITY_PATH = (id2) => `${ENTITY_ID(id2)}/path`;
|
|
53765
|
+
var ENTITY_HEADER_BY_ID = (id2) => `${ENTITY_ID(id2)}/type`;
|
|
53764
53766
|
var ENTITY_HEADERS = `${REPO}/entity/header`;
|
|
53765
53767
|
var ENTITY_JSON = (id2) => `${REPO}/entity/${id2}/json`;
|
|
53766
53768
|
var ENTITY_SCHEMA = (id2) => `${REPO}/entity/${id2}/schema`;
|
|
@@ -53826,6 +53828,7 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
|
53826
53828
|
var ACCESS_REQUIREMENT_RESEARCH_PROJECT_FOR_UPDATE = (accessRequirementId) => `${ACCESS_REQUIREMENT_BY_ID(accessRequirementId)}/researchProjectForUpdate`;
|
|
53827
53829
|
var FILE_HANDLE = `${FILE2}/fileHandle`;
|
|
53828
53830
|
var FILE_HANDLE_BATCH = `${FILE_HANDLE}/batch`;
|
|
53831
|
+
var PROJECTS = `${REPO}/projects`;
|
|
53829
53832
|
|
|
53830
53833
|
// src/lib/utils/functions/dispatchDownloadListChangeEvent.ts
|
|
53831
53834
|
var DOWNLOAD_LIST_CHANGE_EVENT = "DOWNLOAD_LIST_UPDATED_EVENT";
|
|
@@ -54499,7 +54502,7 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
|
54499
54502
|
};
|
|
54500
54503
|
var getEntityHeader = (entityId, accessToken) => {
|
|
54501
54504
|
return doGet(
|
|
54502
|
-
|
|
54505
|
+
ENTITY_HEADER_BY_ID(entityId),
|
|
54503
54506
|
accessToken,
|
|
54504
54507
|
0 /* REPO_ENDPOINT */
|
|
54505
54508
|
);
|
|
@@ -55520,7 +55523,7 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
|
55520
55523
|
removeUndefined(params)
|
|
55521
55524
|
);
|
|
55522
55525
|
return doGet(
|
|
55523
|
-
|
|
55526
|
+
`${PROJECTS}?${urlParams.toString()}`,
|
|
55524
55527
|
accessToken,
|
|
55525
55528
|
0 /* REPO_ENDPOINT */
|
|
55526
55529
|
);
|
|
@@ -55537,7 +55540,7 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
|
55537
55540
|
};
|
|
55538
55541
|
var getEntityPath = (entityId, accessToken) => {
|
|
55539
55542
|
return doGet(
|
|
55540
|
-
|
|
55543
|
+
ENTITY_PATH(entityId),
|
|
55541
55544
|
accessToken,
|
|
55542
55545
|
0 /* REPO_ENDPOINT */
|
|
55543
55546
|
);
|
|
@@ -62161,6 +62164,15 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
|
62161
62164
|
})
|
|
62162
62165
|
}
|
|
62163
62166
|
},
|
|
62167
|
+
MuiMenuItem: {
|
|
62168
|
+
styleOverrides: {
|
|
62169
|
+
root: {
|
|
62170
|
+
height: "38px",
|
|
62171
|
+
paddingLeft: "12px",
|
|
62172
|
+
paddingRight: "12px"
|
|
62173
|
+
}
|
|
62174
|
+
}
|
|
62175
|
+
},
|
|
62164
62176
|
MuiTooltip: {
|
|
62165
62177
|
defaultProps: {
|
|
62166
62178
|
arrow: true,
|
|
@@ -63042,6 +63054,14 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
|
63042
63054
|
options2
|
|
63043
63055
|
);
|
|
63044
63056
|
}
|
|
63057
|
+
function useGetEntityHeader(entityId, options2) {
|
|
63058
|
+
const { accessToken } = useSynapseContext();
|
|
63059
|
+
return useQuery(
|
|
63060
|
+
["entityHeader", accessToken, entityId],
|
|
63061
|
+
() => SynapseClient_exports.getEntityHeader(entityId, accessToken),
|
|
63062
|
+
options2
|
|
63063
|
+
);
|
|
63064
|
+
}
|
|
63045
63065
|
|
|
63046
63066
|
// src/lib/utils/hooks/SynapseAPI/entity/useGetQueryResultBundle.ts
|
|
63047
63067
|
var import_react20 = __toESM(require_react());
|
|
@@ -87606,7 +87626,6 @@ ${e4.message}`);
|
|
|
87606
87626
|
const { accessToken } = useSynapseContext();
|
|
87607
87627
|
const { data, isLoadingNewBundle, getLastQueryRequest } = useQueryContext();
|
|
87608
87628
|
const { getColumnDisplayName } = useQueryVisualizationContext();
|
|
87609
|
-
const [plotData, setPlotData] = (0, import_react127.useState)();
|
|
87610
87629
|
const [showModal, setShowModal] = (0, import_react127.useState)(false);
|
|
87611
87630
|
const plotTitle = getColumnDisplayName(facetToPlot.columnName);
|
|
87612
87631
|
const getColumnType = (0, import_react127.useCallback)(
|
|
@@ -87618,27 +87637,26 @@ ${e4.message}`);
|
|
|
87618
87637
|
},
|
|
87619
87638
|
[data, facetToPlot.columnName]
|
|
87620
87639
|
);
|
|
87621
|
-
|
|
87622
|
-
|
|
87623
|
-
|
|
87624
|
-
|
|
87625
|
-
|
|
87626
|
-
|
|
87627
|
-
|
|
87628
|
-
|
|
87629
|
-
|
|
87630
|
-
|
|
87631
|
-
|
|
87632
|
-
|
|
87633
|
-
|
|
87634
|
-
|
|
87635
|
-
|
|
87636
|
-
|
|
87640
|
+
const { data: plotData } = useQuery(
|
|
87641
|
+
[
|
|
87642
|
+
"extractPlotDataArray",
|
|
87643
|
+
facetToPlot,
|
|
87644
|
+
getColumnType(),
|
|
87645
|
+
index2,
|
|
87646
|
+
plotType,
|
|
87647
|
+
accessToken
|
|
87648
|
+
],
|
|
87649
|
+
() => extractPlotDataArray(
|
|
87650
|
+
facetToPlot,
|
|
87651
|
+
getColumnType(),
|
|
87652
|
+
index2,
|
|
87653
|
+
plotType,
|
|
87654
|
+
accessToken
|
|
87655
|
+
),
|
|
87656
|
+
{
|
|
87657
|
+
enabled: !!facetToPlot
|
|
87637
87658
|
}
|
|
87638
|
-
|
|
87639
|
-
isMounted = false;
|
|
87640
|
-
};
|
|
87641
|
-
}, [facetToPlot, data, index2, plotType, accessToken, getColumnType]);
|
|
87659
|
+
);
|
|
87642
87660
|
const ChartSelectionToggle = () => /* @__PURE__ */ import_react127.default.createElement("div", {
|
|
87643
87661
|
onClick: (event) => {
|
|
87644
87662
|
event.stopPropagation();
|
|
@@ -87756,7 +87774,8 @@ ${e4.message}`);
|
|
|
87756
87774
|
}, /* @__PURE__ */ import_react127.default.createElement(InfoOutlined_default, {
|
|
87757
87775
|
className: "SRC-hand-cursor SRC-secondary-text-color"
|
|
87758
87776
|
}))), /* @__PURE__ */ import_react127.default.createElement(ChartSelectionToggle, null)), /* @__PURE__ */ import_react127.default.createElement("div", {
|
|
87759
|
-
className: `FacetNavPanel__body${isModalView ? "--expanded" : ""}
|
|
87777
|
+
className: `FacetNavPanel__body${isModalView ? "--expanded" : ""}`,
|
|
87778
|
+
role: "graphics-object"
|
|
87760
87779
|
}, /* @__PURE__ */ import_react127.default.createElement(import_react_sizeme.SizeMe, {
|
|
87761
87780
|
monitorHeight: true
|
|
87762
87781
|
}, ({ size: size3 }) => {
|
|
@@ -97569,7 +97588,7 @@ ${e4.message}`);
|
|
|
97569
97588
|
var import_pluralize2 = __toESM(require_pluralize());
|
|
97570
97589
|
var import_react277 = __toESM(require_react());
|
|
97571
97590
|
var import_react_bootstrap49 = __toESM(require_react_bootstrap());
|
|
97572
|
-
var
|
|
97591
|
+
var import_react_error_boundary3 = __toESM(require_react_error_boundary_umd());
|
|
97573
97592
|
|
|
97574
97593
|
// node_modules/react-reflex/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
97575
97594
|
function _extends11() {
|
|
@@ -109490,13 +109509,13 @@ ${e4.message}`);
|
|
|
109490
109509
|
import_dayjs10.default.extend(import_customParseFormat.default);
|
|
109491
109510
|
import_dayjs10.default.extend(import_localizedFormat.default);
|
|
109492
109511
|
import_dayjs10.default.extend(import_isBetween.default);
|
|
109493
|
-
var withLocale = function(
|
|
109494
|
-
return !locale ?
|
|
109512
|
+
var withLocale = function(dayjs24, locale) {
|
|
109513
|
+
return !locale ? dayjs24 : function() {
|
|
109495
109514
|
var args = [];
|
|
109496
109515
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
109497
109516
|
args[_i] = arguments[_i];
|
|
109498
109517
|
}
|
|
109499
|
-
return
|
|
109518
|
+
return dayjs24.apply(void 0, args).locale(locale);
|
|
109500
109519
|
};
|
|
109501
109520
|
};
|
|
109502
109521
|
var defaultFormats = {
|
|
@@ -116888,14 +116907,23 @@ ${e4.message}`);
|
|
|
116888
116907
|
const appearance = determineRowAppearance(entity);
|
|
116889
116908
|
if (appearance !== "hidden") {
|
|
116890
116909
|
const entityType = getEntityTypeFromHeader(entity);
|
|
116910
|
+
const currentSelectedVersion = selected.get(entity.id);
|
|
116911
|
+
let versionNumber = void 0;
|
|
116912
|
+
if ("versionNumber" in entity) {
|
|
116913
|
+
if (currentSelectedVersion != null && currentSelectedVersion !== NO_VERSION_NUMBER) {
|
|
116914
|
+
versionNumber = currentSelectedVersion;
|
|
116915
|
+
} else if (versionSelection === "REQUIRED" /* REQUIRED */) {
|
|
116916
|
+
versionNumber = entity.versionNumber;
|
|
116917
|
+
}
|
|
116918
|
+
}
|
|
116891
116919
|
entities2.push(__spreadProps(__spreadValues({}, entity), {
|
|
116892
116920
|
entityId: entity.id,
|
|
116893
|
-
versionNumber
|
|
116921
|
+
versionNumber,
|
|
116894
116922
|
entityType,
|
|
116895
116923
|
isSelected: appearance === "selected",
|
|
116896
116924
|
isDisabled: appearance === "disabled",
|
|
116897
116925
|
isVersionableEntity: isVersionableEntityType(entityType),
|
|
116898
|
-
currentSelectedVersion
|
|
116926
|
+
currentSelectedVersion
|
|
116899
116927
|
}));
|
|
116900
116928
|
}
|
|
116901
116929
|
return entities2;
|
|
@@ -117349,16 +117377,17 @@ ${e4.message}`);
|
|
|
117349
117377
|
const [fullPath, setFullPath] = (0, import_react270.useState)("");
|
|
117350
117378
|
const [displayedPath, setDisplayedPath] = (0, import_react270.useState)("");
|
|
117351
117379
|
(0, import_react270.useEffect)(() => {
|
|
117352
|
-
var _a;
|
|
117380
|
+
var _a, _b;
|
|
117353
117381
|
if ((_a = bundle == null ? void 0 : bundle.path) == null ? void 0 : _a.path) {
|
|
117354
|
-
|
|
117382
|
+
const header = bundle.path.path[bundle.path.path.length - 1];
|
|
117383
|
+
setEntityName((_b = header.name) != null ? _b : header.id);
|
|
117355
117384
|
const path = bundle.path.path.slice(1, bundle.path.path.length - 1);
|
|
117356
|
-
setFullPath(path.map((
|
|
117385
|
+
setFullPath(path.map((header2) => header2.name).join("/"));
|
|
117357
117386
|
if (path.length < 4) {
|
|
117358
117387
|
setDisplayedPath(fullPath);
|
|
117359
117388
|
} else {
|
|
117360
117389
|
setDisplayedPath(
|
|
117361
|
-
path[0].name + "/\u2026/" + path.slice(path.length - 1).map((
|
|
117390
|
+
path[0].name + "/\u2026/" + path.slice(path.length - 1).map((header2) => header2.name).join("/")
|
|
117362
117391
|
);
|
|
117363
117392
|
}
|
|
117364
117393
|
}
|
|
@@ -117387,7 +117416,6 @@ ${e4.message}`);
|
|
|
117387
117416
|
// src/lib/containers/entity_finder/tree/EntityTree.tsx
|
|
117388
117417
|
var import_react275 = __toESM(require_react());
|
|
117389
117418
|
var import_react_bootstrap48 = __toESM(require_react_bootstrap());
|
|
117390
|
-
var import_react_error_boundary3 = __toESM(require_react_error_boundary_umd());
|
|
117391
117419
|
|
|
117392
117420
|
// src/lib/containers/entity_finder/tree/VirtualizedTree.tsx
|
|
117393
117421
|
var import_dayjs16 = __toESM(require_dayjs_min());
|
|
@@ -118175,6 +118203,7 @@ ${e4.message}`);
|
|
|
118175
118203
|
}
|
|
118176
118204
|
}
|
|
118177
118205
|
function EntityTree(props) {
|
|
118206
|
+
var _a;
|
|
118178
118207
|
const {
|
|
118179
118208
|
initialScope = "Current Project" /* CURRENT_PROJECT */,
|
|
118180
118209
|
projectId,
|
|
@@ -118193,12 +118222,7 @@ ${e4.message}`);
|
|
|
118193
118222
|
const DEFAULT_CONFIGURATION = {
|
|
118194
118223
|
type: 5 /* PROMPT */
|
|
118195
118224
|
};
|
|
118196
|
-
const { accessToken } = useSynapseContext();
|
|
118197
|
-
const [isLoading, setIsLoading] = (0, import_react275.useState)(false);
|
|
118198
|
-
const [topLevelEntities, setTopLevelEntities] = (0, import_react275.useState)([]);
|
|
118199
118225
|
const [scope, setScope] = (0, import_react275.useState)(initialScope);
|
|
118200
|
-
const [initialContainerPath, setInitialContainerPath] = (0, import_react275.useState)();
|
|
118201
|
-
const handleError = (0, import_react_error_boundary3.useErrorHandler)();
|
|
118202
118226
|
(0, import_react275.useEffect)(() => {
|
|
118203
118227
|
if (setDetailsViewConfiguration) {
|
|
118204
118228
|
setDetailsViewConfiguration(DEFAULT_CONFIGURATION);
|
|
@@ -118216,7 +118240,6 @@ ${e4.message}`);
|
|
|
118216
118240
|
const useProjectData = scope === "All Projects" /* ALL_PROJECTS */ || scope === "Projects Created By Me" /* CREATED_BY_ME */;
|
|
118217
118241
|
const {
|
|
118218
118242
|
data: projectData,
|
|
118219
|
-
isSuccess: isSuccessProjects,
|
|
118220
118243
|
fetchNextPage: fetchNextPageProjects,
|
|
118221
118244
|
hasNextPage: hasNextPageProjects,
|
|
118222
118245
|
isLoading: isLoadingProjects
|
|
@@ -118228,80 +118251,80 @@ ${e4.message}`);
|
|
|
118228
118251
|
}
|
|
118229
118252
|
);
|
|
118230
118253
|
const { data: currentContainerBundle, isSuccess: isSuccessBundle } = useEntityBundle_default(currentContainer, void 0, ALL_ENTITY_BUNDLE_FIELDS, {
|
|
118231
|
-
enabled: !!currentContainer && currentContainer !== "root"
|
|
118254
|
+
enabled: !!currentContainer && currentContainer !== "root",
|
|
118255
|
+
useErrorBoundary: true
|
|
118232
118256
|
});
|
|
118233
|
-
|
|
118234
|
-
|
|
118235
|
-
|
|
118236
|
-
|
|
118237
|
-
|
|
118238
|
-
|
|
118239
|
-
|
|
118257
|
+
const { data: favorites, isLoading: isLoadingFavorites } = useGetFavorites(
|
|
118258
|
+
"NAME",
|
|
118259
|
+
"ASC",
|
|
118260
|
+
{
|
|
118261
|
+
select: (data) => __spreadProps(__spreadValues({}, data), {
|
|
118262
|
+
results: data.results.filter(
|
|
118263
|
+
(eh) => visibleTypes.includes(convertToEntityType(eh.type))
|
|
118264
|
+
)
|
|
118265
|
+
}),
|
|
118266
|
+
refetchInterval: Infinity,
|
|
118267
|
+
useErrorBoundary: true
|
|
118240
118268
|
}
|
|
118241
|
-
|
|
118242
|
-
(
|
|
118243
|
-
|
|
118269
|
+
);
|
|
118270
|
+
const { data: initialContainerPath } = useGetEntityPath(initialContainer, {
|
|
118271
|
+
enabled: !!(projectId && initialContainer && initialContainer.match(SYNAPSE_ENTITY_ID_REGEX)),
|
|
118272
|
+
refetchInterval: Infinity,
|
|
118273
|
+
useErrorBoundary: true
|
|
118274
|
+
});
|
|
118275
|
+
const {
|
|
118276
|
+
data: projectHeader,
|
|
118277
|
+
isLoading: isLoadingProjectHeader,
|
|
118278
|
+
error: fetchProjectError
|
|
118279
|
+
} = useGetEntityHeader(projectId, {
|
|
118280
|
+
enabled: !!(projectId != null ? projectId : (_a = initialContainerPath == null ? void 0 : initialContainerPath.path[1]) == null ? void 0 : _a.id),
|
|
118281
|
+
refetchInterval: Infinity
|
|
118282
|
+
});
|
|
118283
|
+
if ("Current Project" /* CURRENT_PROJECT */ === scope && projectId && fetchProjectError && fetchProjectError.status === 403) {
|
|
118284
|
+
displayToast(
|
|
118285
|
+
`You don't have access to the current project (${projectId}).`,
|
|
118286
|
+
"warning"
|
|
118287
|
+
);
|
|
118288
|
+
setScope("Projects Created By Me" /* CREATED_BY_ME */);
|
|
118289
|
+
}
|
|
118290
|
+
const {
|
|
118291
|
+
topLevelEntities,
|
|
118292
|
+
isLoading
|
|
118293
|
+
} = (0, import_react275.useMemo)(() => {
|
|
118294
|
+
var _a2;
|
|
118295
|
+
let topLevelEntities2 = [];
|
|
118296
|
+
let isLoading2 = false;
|
|
118244
118297
|
switch (scope) {
|
|
118245
118298
|
case "All Projects" /* ALL_PROJECTS */:
|
|
118246
118299
|
case "Projects Created By Me" /* CREATED_BY_ME */:
|
|
118247
|
-
|
|
118300
|
+
if (projectData) {
|
|
118301
|
+
topLevelEntities2 = projectData.pages.flatMap((page) => page.results).map(toEntityHeader);
|
|
118302
|
+
}
|
|
118303
|
+
isLoading2 = isLoadingProjects;
|
|
118248
118304
|
break;
|
|
118249
118305
|
case "My Favorites" /* FAVORITES */: {
|
|
118250
|
-
|
|
118251
|
-
|
|
118252
|
-
void 0,
|
|
118253
|
-
void 0,
|
|
118254
|
-
"NAME",
|
|
118255
|
-
"ASC"
|
|
118256
|
-
).then(({ results }) => {
|
|
118257
|
-
results = results.filter(
|
|
118258
|
-
(result) => visibleTypes.includes(convertToEntityType(result.type))
|
|
118259
|
-
);
|
|
118260
|
-
setTopLevelEntities(results);
|
|
118261
|
-
setIsLoading(false);
|
|
118262
|
-
});
|
|
118306
|
+
topLevelEntities2 = (_a2 = favorites == null ? void 0 : favorites.results) != null ? _a2 : [];
|
|
118307
|
+
isLoading2 = isLoadingFavorites;
|
|
118263
118308
|
break;
|
|
118264
118309
|
}
|
|
118265
118310
|
case "Current Project" /* CURRENT_PROJECT */:
|
|
118266
|
-
if (
|
|
118267
|
-
|
|
118268
|
-
|
|
118269
|
-
if (!path.path.map((entity) => entity.id).includes(projectId)) {
|
|
118270
|
-
handleError(
|
|
118271
|
-
new Error(
|
|
118272
|
-
`An initial container (${initialContainer}) was provided but is not within or the same as the provided project (${projectId})`
|
|
118273
|
-
)
|
|
118274
|
-
);
|
|
118275
|
-
}
|
|
118276
|
-
setInitialContainerPath(path);
|
|
118277
|
-
setTopLevelEntities([path.path[1]]);
|
|
118278
|
-
setIsLoading(false);
|
|
118279
|
-
}).catch((e4) => handleError(e4));
|
|
118280
|
-
} else {
|
|
118281
|
-
SynapseClient_exports.getEntityHeader(projectId, accessToken).then((header) => {
|
|
118282
|
-
setTopLevelEntities([header]);
|
|
118283
|
-
setIsLoading(false);
|
|
118284
|
-
}).catch((e4) => handleError(e4));
|
|
118285
|
-
}
|
|
118286
|
-
} else {
|
|
118287
|
-
handleError(
|
|
118288
|
-
new Error(
|
|
118289
|
-
"Cannot open current project because the current project is unknown"
|
|
118290
|
-
)
|
|
118291
|
-
);
|
|
118311
|
+
if (projectHeader) {
|
|
118312
|
+
topLevelEntities2 = [projectHeader];
|
|
118313
|
+
isLoading2 = isLoadingProjectHeader;
|
|
118292
118314
|
}
|
|
118293
118315
|
break;
|
|
118294
118316
|
default:
|
|
118295
|
-
|
|
118317
|
+
throw new Error("No scope selected");
|
|
118296
118318
|
}
|
|
118319
|
+
return { topLevelEntities: topLevelEntities2, isLoading: isLoading2 };
|
|
118297
118320
|
}, [
|
|
118298
|
-
|
|
118299
|
-
|
|
118300
|
-
|
|
118301
|
-
handleError,
|
|
118302
|
-
visibleTypes,
|
|
118321
|
+
favorites == null ? void 0 : favorites.results,
|
|
118322
|
+
isLoadingFavorites,
|
|
118323
|
+
isLoadingProjectHeader,
|
|
118303
118324
|
isLoadingProjects,
|
|
118304
|
-
|
|
118325
|
+
projectData,
|
|
118326
|
+
projectHeader,
|
|
118327
|
+
scope
|
|
118305
118328
|
]);
|
|
118306
118329
|
(0, import_react275.useEffect)(() => {
|
|
118307
118330
|
if (setDetailsViewConfiguration || setBreadcrumbItems) {
|
|
@@ -118363,8 +118386,9 @@ ${e4.message}`);
|
|
|
118363
118386
|
}
|
|
118364
118387
|
},
|
|
118365
118388
|
...currentContainerBundle.path.path.slice(1).map((entity) => {
|
|
118389
|
+
var _a2;
|
|
118366
118390
|
return {
|
|
118367
|
-
name: entity.name,
|
|
118391
|
+
name: (_a2 = entity.name) != null ? _a2 : entity.id,
|
|
118368
118392
|
isCurrent: entity.id === currentContainer,
|
|
118369
118393
|
action: () => {
|
|
118370
118394
|
setCurrentContainer(entity.id);
|
|
@@ -123054,7 +123078,7 @@ ${e4.message}`);
|
|
|
123054
123078
|
[visibleTypesInList, selectableTypes]
|
|
123055
123079
|
);
|
|
123056
123080
|
const [currentContainer, setCurrentContainer] = (0, import_react277.useState)(initialContainer);
|
|
123057
|
-
const handleError = (0,
|
|
123081
|
+
const handleError = (0, import_react_error_boundary3.useErrorHandler)();
|
|
123058
123082
|
const setBreadcrumbs = (0, import_react277.useCallback)(
|
|
123059
123083
|
(items) => {
|
|
123060
123084
|
setBreadcrumbsProps({
|
|
@@ -123657,7 +123681,7 @@ ${e4.message}`);
|
|
|
123657
123681
|
var import_dayjs18 = __toESM(require_dayjs_min());
|
|
123658
123682
|
var import_react283 = __toESM(require_react());
|
|
123659
123683
|
var import_react_bootstrap53 = __toESM(require_react_bootstrap());
|
|
123660
|
-
var
|
|
123684
|
+
var import_react_error_boundary4 = __toESM(require_react_error_boundary_umd());
|
|
123661
123685
|
var import_duration3 = __toESM(require_duration());
|
|
123662
123686
|
|
|
123663
123687
|
// src/lib/containers/dataaccess/RejectDataAccessRequestModal.tsx
|
|
@@ -123963,7 +123987,7 @@ ${e4.message}`);
|
|
|
123963
123987
|
var _a, _b;
|
|
123964
123988
|
const { submissionId } = props;
|
|
123965
123989
|
const [showRejectionDialog, setShowRejectionDialog] = (0, import_react283.useState)(false);
|
|
123966
|
-
const handleError = (0,
|
|
123990
|
+
const handleError = (0, import_react_error_boundary4.useErrorHandler)();
|
|
123967
123991
|
const { data: submission, refetch } = useGetDataAccessSubmission(
|
|
123968
123992
|
submissionId,
|
|
123969
123993
|
{ useErrorBoundary: true }
|
|
@@ -124301,7 +124325,7 @@ filepath = ${entityId}.path`;
|
|
|
124301
124325
|
|
|
124302
124326
|
// src/lib/containers/download_list_v2/DownloadListTable.tsx
|
|
124303
124327
|
var import_react286 = __toESM(require_react());
|
|
124304
|
-
var
|
|
124328
|
+
var import_react_error_boundary5 = __toESM(require_react_error_boundary_umd());
|
|
124305
124329
|
var import_react_bootstrap54 = __toESM(require_react_bootstrap());
|
|
124306
124330
|
var import_dayjs19 = __toESM(require_dayjs_min());
|
|
124307
124331
|
var import_localizedFormat2 = __toESM(require_localizedFormat());
|
|
@@ -124311,7 +124335,7 @@ filepath = ${entityId}.path`;
|
|
|
124311
124335
|
var _a;
|
|
124312
124336
|
const { filesStatistics, refetchStatistics } = props;
|
|
124313
124337
|
const { accessToken } = useSynapseContext();
|
|
124314
|
-
const handleError = (0,
|
|
124338
|
+
const handleError = (0, import_react_error_boundary5.useErrorHandler)();
|
|
124315
124339
|
const { ref, inView } = useInView();
|
|
124316
124340
|
const [copyingAllSynapseIDs, setCopyingAllSynapseIDs] = (0, import_react286.useState)(false);
|
|
124317
124341
|
const [sort2, setSort] = (0, import_react286.useState)(void 0);
|
|
@@ -124602,11 +124626,11 @@ filepath = ${entityId}.path`;
|
|
|
124602
124626
|
|
|
124603
124627
|
// src/lib/containers/download_list_v2/DownloadListActionsRequired.tsx
|
|
124604
124628
|
var import_react292 = __toESM(require_react());
|
|
124605
|
-
var
|
|
124629
|
+
var import_react_error_boundary8 = __toESM(require_react_error_boundary_umd());
|
|
124606
124630
|
|
|
124607
124631
|
// src/lib/containers/download_list_v2/MeetAccessRequirementCard.tsx
|
|
124608
124632
|
var import_react290 = __toESM(require_react());
|
|
124609
|
-
var
|
|
124633
|
+
var import_react_error_boundary6 = __toESM(require_react_error_boundary_umd());
|
|
124610
124634
|
var import_react_bootstrap55 = __toESM(require_react_bootstrap());
|
|
124611
124635
|
var TERMS_OF_USE_TITLE = "Requires Acceptance of Data-Specific Terms of Use";
|
|
124612
124636
|
var SELF_SIGN_TITLE = "Requires Acceptance of Data-Specific Terms of Use";
|
|
@@ -124614,7 +124638,7 @@ filepath = ${entityId}.path`;
|
|
|
124614
124638
|
var LOCK_TITLE = "Access Restricted";
|
|
124615
124639
|
var MeetAccessRequirementCard = ({ accessRequirementId, count: count2 }) => {
|
|
124616
124640
|
var _a, _b, _c;
|
|
124617
|
-
const handleError = (0,
|
|
124641
|
+
const handleError = (0, import_react_error_boundary6.useErrorHandler)();
|
|
124618
124642
|
const {
|
|
124619
124643
|
data: ar,
|
|
124620
124644
|
isFetching,
|
|
@@ -124722,7 +124746,7 @@ filepath = ${entityId}.path`;
|
|
|
124722
124746
|
|
|
124723
124747
|
// src/lib/containers/download_list_v2/RequestDownloadCard.tsx
|
|
124724
124748
|
var import_react291 = __toESM(require_react());
|
|
124725
|
-
var
|
|
124749
|
+
var import_react_error_boundary7 = __toESM(require_react_error_boundary_umd());
|
|
124726
124750
|
var import_react_bootstrap56 = __toESM(require_react_bootstrap());
|
|
124727
124751
|
var REQUEST_DOWNLOAD_TITLE = "Download Permission Required";
|
|
124728
124752
|
var RequestDownloadCard = ({
|
|
@@ -124730,7 +124754,7 @@ filepath = ${entityId}.path`;
|
|
|
124730
124754
|
count: count2,
|
|
124731
124755
|
onViewSharingSettingsClicked
|
|
124732
124756
|
}) => {
|
|
124733
|
-
const handleError = (0,
|
|
124757
|
+
const handleError = (0, import_react_error_boundary7.useErrorHandler)();
|
|
124734
124758
|
const {
|
|
124735
124759
|
data,
|
|
124736
124760
|
isLoading,
|
|
@@ -124773,7 +124797,7 @@ filepath = ${entityId}.path`;
|
|
|
124773
124797
|
// src/lib/containers/download_list_v2/DownloadListActionsRequired.tsx
|
|
124774
124798
|
var DownloadListActionsRequired = (props) => {
|
|
124775
124799
|
var _a;
|
|
124776
|
-
const handleError = (0,
|
|
124800
|
+
const handleError = (0, import_react_error_boundary8.useErrorHandler)();
|
|
124777
124801
|
const { ref, inView } = useInView();
|
|
124778
124802
|
const {
|
|
124779
124803
|
data,
|
|
@@ -125096,11 +125120,11 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
125096
125120
|
|
|
125097
125121
|
// src/lib/containers/download_list_v2/ShowDownloadV2.tsx
|
|
125098
125122
|
var import_react295 = __toESM(require_react());
|
|
125099
|
-
var
|
|
125123
|
+
var import_react_error_boundary9 = __toESM(require_react_error_boundary_umd());
|
|
125100
125124
|
function ShowDownloadV2({ to, className = "" }) {
|
|
125101
125125
|
var _a;
|
|
125102
125126
|
const { accessToken } = useSynapseContext();
|
|
125103
|
-
const handleError = (0,
|
|
125127
|
+
const handleError = (0, import_react_error_boundary9.useErrorHandler)();
|
|
125104
125128
|
const tooltipText = "Click to view items in your download cart.";
|
|
125105
125129
|
const {
|
|
125106
125130
|
data,
|
|
@@ -127327,7 +127351,7 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
127327
127351
|
var import_dayjs22 = __toESM(require_dayjs_min());
|
|
127328
127352
|
var import_react318 = __toESM(require_react());
|
|
127329
127353
|
var import_react_bootstrap72 = __toESM(require_react_bootstrap());
|
|
127330
|
-
var
|
|
127354
|
+
var import_react_error_boundary10 = __toESM(require_react_error_boundary_umd());
|
|
127331
127355
|
|
|
127332
127356
|
// src/lib/utils/synapseTypes/AccessToken/ScopeDescriptions.ts
|
|
127333
127357
|
var scopeDescriptions = {
|
|
@@ -127366,7 +127390,7 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
127366
127390
|
}) => {
|
|
127367
127391
|
const { accessToken: authToken } = useSynapseContext();
|
|
127368
127392
|
const [showModal, setShowModal] = (0, import_react318.useState)(false);
|
|
127369
|
-
const handleError = (0,
|
|
127393
|
+
const handleError = (0, import_react_error_boundary10.useErrorHandler)();
|
|
127370
127394
|
const isExpired = accessToken.state === "EXPIRED";
|
|
127371
127395
|
return /* @__PURE__ */ import_react318.default.createElement("div", {
|
|
127372
127396
|
className: "cardContainer PersonalAccessTokenCard" + (isExpired ? " bg-warning" : "")
|
|
@@ -129210,7 +129234,6 @@ dl_list_file_entities = syn.get_download_list()`;
|
|
|
129210
129234
|
{
|
|
129211
129235
|
key: "status",
|
|
129212
129236
|
width: 80,
|
|
129213
|
-
dataKey: "entityId",
|
|
129214
129237
|
resizable: true,
|
|
129215
129238
|
cellRenderer: BadgeIconsRenderer
|
|
129216
129239
|
},
|
|
@@ -130568,10 +130591,10 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
130568
130591
|
|
|
130569
130592
|
// src/lib/containers/user_profile_links/UserChallenges.tsx
|
|
130570
130593
|
var import_react335 = __toESM(require_react());
|
|
130571
|
-
var
|
|
130594
|
+
var import_react_error_boundary11 = __toESM(require_react_error_boundary_umd());
|
|
130572
130595
|
function UserChallenges({ userId }) {
|
|
130573
130596
|
var _a;
|
|
130574
|
-
const handleError = (0,
|
|
130597
|
+
const handleError = (0, import_react_error_boundary11.useErrorHandler)();
|
|
130575
130598
|
const { ref, inView } = useInView();
|
|
130576
130599
|
const {
|
|
130577
130600
|
data,
|
|
@@ -130615,10 +130638,10 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
130615
130638
|
|
|
130616
130639
|
// src/lib/containers/user_profile_links/UserProjects.tsx
|
|
130617
130640
|
var import_react336 = __toESM(require_react());
|
|
130618
|
-
var
|
|
130641
|
+
var import_react_error_boundary12 = __toESM(require_react_error_boundary_umd());
|
|
130619
130642
|
function UserProjects({ userId }) {
|
|
130620
130643
|
var _a;
|
|
130621
|
-
const handleError = (0,
|
|
130644
|
+
const handleError = (0, import_react_error_boundary12.useErrorHandler)();
|
|
130622
130645
|
const { ref, inView } = useInView();
|
|
130623
130646
|
const getProjectsParameters = {};
|
|
130624
130647
|
const {
|
|
@@ -130663,10 +130686,10 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
130663
130686
|
|
|
130664
130687
|
// src/lib/containers/user_profile_links/UserTeams.tsx
|
|
130665
130688
|
var import_react337 = __toESM(require_react());
|
|
130666
|
-
var
|
|
130689
|
+
var import_react_error_boundary13 = __toESM(require_react_error_boundary_umd());
|
|
130667
130690
|
function UserTeams({ userId }) {
|
|
130668
130691
|
var _a;
|
|
130669
|
-
const handleError = (0,
|
|
130692
|
+
const handleError = (0, import_react_error_boundary13.useErrorHandler)();
|
|
130670
130693
|
const { ref, inView } = useInView();
|
|
130671
130694
|
const {
|
|
130672
130695
|
data,
|
|
@@ -130773,10 +130796,10 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
130773
130796
|
var MULTICHOICE_RESPONSE_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.quiz.MultichoiceResponse";
|
|
130774
130797
|
|
|
130775
130798
|
// src/lib/containers/CertificationQuiz.tsx
|
|
130776
|
-
var
|
|
130799
|
+
var import_react_error_boundary14 = __toESM(require_react_error_boundary_umd());
|
|
130777
130800
|
var CertificationQuiz = () => {
|
|
130778
130801
|
const { accessToken } = useSynapseContext();
|
|
130779
|
-
const handleError = (0,
|
|
130802
|
+
const handleError = (0, import_react_error_boundary14.useErrorHandler)();
|
|
130780
130803
|
const [quiz, setQuiz] = (0, import_react339.useState)();
|
|
130781
130804
|
const [questionResponse, setQuestionResponse] = (0, import_react339.useState)(
|
|
130782
130805
|
[]
|
|
@@ -131089,11 +131112,15 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
131089
131112
|
item.onClick(e4);
|
|
131090
131113
|
}
|
|
131091
131114
|
}
|
|
131092
|
-
}, /* @__PURE__ */ import_react341.default.createElement(ListItemIcon_default,
|
|
131115
|
+
}, /* @__PURE__ */ import_react341.default.createElement(ListItemIcon_default, {
|
|
131116
|
+
style: {
|
|
131117
|
+
minWidth: "30px"
|
|
131118
|
+
}
|
|
131119
|
+
}, item.icon && /* @__PURE__ */ import_react341.default.createElement(IconSvg_default, {
|
|
131093
131120
|
icon: item.icon,
|
|
131094
131121
|
sx: __spreadValues({
|
|
131095
|
-
width: "
|
|
131096
|
-
height: "
|
|
131122
|
+
width: "17px",
|
|
131123
|
+
height: "17px"
|
|
131097
131124
|
}, item.iconSx),
|
|
131098
131125
|
wrap: false
|
|
131099
131126
|
})), /* @__PURE__ */ import_react341.default.createElement(ListItemText_default, {
|
|
@@ -131670,13 +131697,15 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
131670
131697
|
}, showAllProperties ? "Hide properties" : `${properties2.length - 4} more properties`)), /* @__PURE__ */ import_react349.default.createElement(AddConditionsForUseButton, {
|
|
131671
131698
|
entityId,
|
|
131672
131699
|
onACTMemberClick: onActMemberClickAddConditionsForUse
|
|
131673
|
-
})), showAllProperties && /* @__PURE__ */ import_react349.default.createElement(
|
|
131700
|
+
})), showAllProperties && /* @__PURE__ */ import_react349.default.createElement(Box_default, {
|
|
131701
|
+
sx: { pt: "20px" }
|
|
131702
|
+
}, /* @__PURE__ */ import_react349.default.createElement("table", null, /* @__PURE__ */ import_react349.default.createElement("tbody", null, properties2.slice(4, Infinity).map((p2) => {
|
|
131674
131703
|
return /* @__PURE__ */ import_react349.default.createElement(Property, {
|
|
131675
131704
|
key: p2.key,
|
|
131676
131705
|
title: p2.title,
|
|
131677
131706
|
value: p2.value
|
|
131678
131707
|
});
|
|
131679
|
-
}))), ((_a = bundle == null ? void 0 : bundle.entity) == null ? void 0 : _a.description) && isInExperimentalMode && /* @__PURE__ */ import_react349.default.createElement(Box_default, {
|
|
131708
|
+
})))), ((_a = bundle == null ? void 0 : bundle.entity) == null ? void 0 : _a.description) && isInExperimentalMode && /* @__PURE__ */ import_react349.default.createElement(Box_default, {
|
|
131680
131709
|
sx: { marginTop: "10px", maxWidth: "720px" }
|
|
131681
131710
|
}, (_b = bundle == null ? void 0 : bundle.entity) == null ? void 0 : _b.description));
|
|
131682
131711
|
}
|
|
@@ -131758,7 +131787,7 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
131758
131787
|
const name = (bundle == null ? void 0 : bundle.entity) && isDockerRepository(bundle.entity) ? bundle.entity.repositoryName : (_b = bundle == null ? void 0 : bundle.entity) == null ? void 0 : _b.name;
|
|
131759
131788
|
return /* @__PURE__ */ import_react351.default.createElement("div", null, /* @__PURE__ */ import_react351.default.createElement(Box_default, {
|
|
131760
131789
|
sx: {
|
|
131761
|
-
padding: "
|
|
131790
|
+
padding: "20px 40px",
|
|
131762
131791
|
backgroundColor: "grey.100"
|
|
131763
131792
|
}
|
|
131764
131793
|
}, /* @__PURE__ */ import_react351.default.createElement(Stack_default, {
|
|
@@ -131801,6 +131830,93 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
131801
131830
|
}))), entityActionMenuProps && /* @__PURE__ */ import_react351.default.createElement(EntityActionMenu, __spreadValues({}, entityActionMenuProps)))), /* @__PURE__ */ import_react351.default.createElement(TitleBarProperties, __spreadValues({}, props)));
|
|
131802
131831
|
}
|
|
131803
131832
|
|
|
131833
|
+
// src/lib/containers/entity/page/CreatedByModifiedBy.tsx
|
|
131834
|
+
var import_react352 = __toESM(require_react());
|
|
131835
|
+
var import_dayjs25 = __toESM(require_dayjs_min());
|
|
131836
|
+
function Separator() {
|
|
131837
|
+
return /* @__PURE__ */ import_react352.default.createElement(Typography_default, {
|
|
131838
|
+
variant: "breadcrumb1",
|
|
131839
|
+
sx: { color: "grey.700" }
|
|
131840
|
+
}, "/");
|
|
131841
|
+
}
|
|
131842
|
+
function CreatedByModifiedBy(props) {
|
|
131843
|
+
var _a;
|
|
131844
|
+
const { entityId, versionNumber } = props;
|
|
131845
|
+
const entityIdWithVersion = `${entityId}${versionNumber ? `.${versionNumber}` : ""}`;
|
|
131846
|
+
const { data: entity } = useGetEntity(entityId, versionNumber);
|
|
131847
|
+
const { data: tableQueryResult } = useGetQueryResultBundleWithAsyncStatus(
|
|
131848
|
+
{
|
|
131849
|
+
entityId,
|
|
131850
|
+
query: {
|
|
131851
|
+
sql: `SELECT * FROM ${entityIdWithVersion} LIMIT 0`
|
|
131852
|
+
},
|
|
131853
|
+
partMask: BUNDLE_MASK_LAST_UPDATED_ON,
|
|
131854
|
+
concreteType: "org.sagebionetworks.repo.model.table.QueryBundleRequest"
|
|
131855
|
+
},
|
|
131856
|
+
{ enabled: !!(entity && isTable(entity)) }
|
|
131857
|
+
);
|
|
131858
|
+
const tableLastRebuilt = (_a = tableQueryResult == null ? void 0 : tableQueryResult.responseBody) == null ? void 0 : _a.lastUpdatedOn;
|
|
131859
|
+
const friendlyName = entity ? entityTypeToFriendlyName(convertToEntityType(entity.concreteType)) : "";
|
|
131860
|
+
const datasetCreatedByTooltipText = "This is the user who created this Dataset. This may not be the same person who generated the files in this Dataset, or who originally uploaded these files to Synapse.";
|
|
131861
|
+
const tableModifiedOnTooltipText = /* @__PURE__ */ import_react352.default.createElement(import_react352.default.Fragment, null, /* @__PURE__ */ import_react352.default.createElement("p", null, "This is when the configuration of this ", friendlyName, " was last changed."), /* @__PURE__ */ import_react352.default.createElement("p", null, "Configuration changes may be triggered by (for example):"), /* @__PURE__ */ import_react352.default.createElement("ul", null, /* @__PURE__ */ import_react352.default.createElement("li", null, "Editing the name of the ", friendlyName), /* @__PURE__ */ import_react352.default.createElement("li", null, "Updating the schema used by the ", friendlyName)), /* @__PURE__ */ import_react352.default.createElement("p", null, "This does NOT reflect changes to the data displayed in the the", " ", friendlyName, "."));
|
|
131862
|
+
const tableModifiedOnAccessibleLabel = `This is when the configuration of this ${friendlyName} was last changed.`;
|
|
131863
|
+
const tableLastUpdatedTooltipText = `When data changes, the ${friendlyName} is rebuilt to reflect those changes. This is the last time changes were made to the data.`;
|
|
131864
|
+
const createdByTooltipId = `${entityIdWithVersion}-createdByTooltip`;
|
|
131865
|
+
const modifiedByTooltipId = `${entityIdWithVersion}-modifiedByTooltip`;
|
|
131866
|
+
const lastUpdatedTooltipId = `${entityIdWithVersion}-lastUpdatedTooltip`;
|
|
131867
|
+
const iconSx = {
|
|
131868
|
+
width: "16px",
|
|
131869
|
+
height: "16px",
|
|
131870
|
+
ml: "4px",
|
|
131871
|
+
verticalAlign: "text-bottom"
|
|
131872
|
+
};
|
|
131873
|
+
return /* @__PURE__ */ import_react352.default.createElement(Box_default, {
|
|
131874
|
+
sx: { bgcolor: "grey.100", px: "40px", py: "10px" }
|
|
131875
|
+
}, /* @__PURE__ */ import_react352.default.createElement(Breadcrumbs_default, {
|
|
131876
|
+
separator: /* @__PURE__ */ import_react352.default.createElement(Separator, null)
|
|
131877
|
+
}, /* @__PURE__ */ import_react352.default.createElement(ConditionalWrapper, {
|
|
131878
|
+
condition: !entity,
|
|
131879
|
+
wrapper: Skeleton_default
|
|
131880
|
+
}, /* @__PURE__ */ import_react352.default.createElement(Typography_default, {
|
|
131881
|
+
sx: { color: "grey.700" },
|
|
131882
|
+
variant: "breadcrumb1",
|
|
131883
|
+
"aria-describedby": createdByTooltipId
|
|
131884
|
+
}, friendlyName, " created by", " ", /* @__PURE__ */ import_react352.default.createElement(UserCard_default, {
|
|
131885
|
+
ownerId: entity == null ? void 0 : entity.createdBy,
|
|
131886
|
+
size: SMALL_USER_CARD
|
|
131887
|
+
}), " on", " ", formatDate((0, import_dayjs25.default)(entity == null ? void 0 : entity.createdOn)), entity && isDataset(entity) && /* @__PURE__ */ import_react352.default.createElement(Tooltip_default, {
|
|
131888
|
+
id: createdByTooltipId,
|
|
131889
|
+
title: datasetCreatedByTooltipText
|
|
131890
|
+
}, /* @__PURE__ */ import_react352.default.createElement(InfoTwoTone_default, {
|
|
131891
|
+
sx: iconSx
|
|
131892
|
+
})))), /* @__PURE__ */ import_react352.default.createElement(ConditionalWrapper, {
|
|
131893
|
+
condition: !entity,
|
|
131894
|
+
wrapper: Skeleton_default
|
|
131895
|
+
}, /* @__PURE__ */ import_react352.default.createElement(Typography_default, {
|
|
131896
|
+
sx: { color: "grey.700" },
|
|
131897
|
+
variant: "breadcrumb1",
|
|
131898
|
+
"aria-describedby": modifiedByTooltipId
|
|
131899
|
+
}, entity && isTable(entity) ? "Configuration" : friendlyName, " last modified by", " ", /* @__PURE__ */ import_react352.default.createElement(UserCard_default, {
|
|
131900
|
+
ownerId: entity == null ? void 0 : entity.modifiedBy,
|
|
131901
|
+
size: SMALL_USER_CARD
|
|
131902
|
+
}), " on", " ", formatDate((0, import_dayjs25.default)(entity == null ? void 0 : entity.modifiedOn)), entity && isTable(entity) && /* @__PURE__ */ import_react352.default.createElement(Tooltip_default, {
|
|
131903
|
+
id: modifiedByTooltipId,
|
|
131904
|
+
title: tableModifiedOnTooltipText,
|
|
131905
|
+
"aria-label": tableModifiedOnAccessibleLabel
|
|
131906
|
+
}, /* @__PURE__ */ import_react352.default.createElement(InfoTwoTone_default, {
|
|
131907
|
+
sx: iconSx
|
|
131908
|
+
})))), tableLastRebuilt && /* @__PURE__ */ import_react352.default.createElement(Typography_default, {
|
|
131909
|
+
sx: { color: "grey.700" },
|
|
131910
|
+
variant: "breadcrumb1",
|
|
131911
|
+
"aria-describedby": lastUpdatedTooltipId
|
|
131912
|
+
}, friendlyName, " last rebuilt on ", formatDate((0, import_dayjs25.default)(tableLastRebuilt)), /* @__PURE__ */ import_react352.default.createElement(Tooltip_default, {
|
|
131913
|
+
title: tableLastUpdatedTooltipText,
|
|
131914
|
+
id: lastUpdatedTooltipId
|
|
131915
|
+
}, /* @__PURE__ */ import_react352.default.createElement(InfoTwoTone_default, {
|
|
131916
|
+
sx: iconSx
|
|
131917
|
+
})))));
|
|
131918
|
+
}
|
|
131919
|
+
|
|
131804
131920
|
// src/lib/umd.index.ts
|
|
131805
131921
|
var SynapseContext2 = {
|
|
131806
131922
|
SynapseContextProvider,
|
|
@@ -131858,7 +131974,8 @@ Please refer to our full <a target="_blank" href="https://help.synapse.org/docs/
|
|
|
131858
131974
|
IDUReport: IDUReport_default,
|
|
131859
131975
|
EntityPageBreadcrumbs,
|
|
131860
131976
|
EntityActionMenu,
|
|
131861
|
-
EntityPageTitleBar
|
|
131977
|
+
EntityPageTitleBar,
|
|
131978
|
+
CreatedByModifiedBy
|
|
131862
131979
|
};
|
|
131863
131980
|
var SynapseReactClientVersion = require_package().version;
|
|
131864
131981
|
return __toCommonJS(umd_index_exports);
|