pollination-react-io 1.9.0 → 1.10.0
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/build/ComboFileSelector/ComboFileSelector.d.ts +1 -0
- package/build/ComboFileSelector/ComboFileSelector.types.d.ts +1 -0
- package/build/ConfigureLocalRun/ConfigureLocalRun.types.d.ts +1 -0
- package/build/SelectCloudArtifacts/SelectCloudArtifacts.types.d.ts +1 -1
- package/build/SelectStudy/SelectStudy.types.d.ts +1 -2
- package/build/atoms/Avatar/Avatar.d.ts +1 -1
- package/build/atoms/Dropdown/Dropdown.d.ts +2 -2
- package/build/atoms/Logo/index.d.ts +6 -2
- package/build/atoms/RadioList/RadioList.types.d.ts +0 -1
- package/build/atoms/index.d.ts +2 -0
- package/build/hooks/index.d.ts +2 -2
- package/build/hooks/types.d.ts +12 -10
- package/build/hooks/useCreateStudy.d.ts +1 -1
- package/build/hooks/useManageSettings.d.ts +1 -1
- package/build/hooks/useRunCommand.d.ts +1 -1
- package/build/hooks/useSendHbjson.d.ts +2 -12
- package/build/hooks/useSendMessage.d.ts +6 -0
- package/build/hooks/utilities.d.ts +3 -3
- package/build/index.esm.js +194 -210
- package/build/index.esm.js.map +1 -1
- package/build/index.js +194 -210
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/build/hooks/useSendGeometry.d.ts +0 -16
package/build/index.esm.js
CHANGED
|
@@ -21653,7 +21653,11 @@ function checkRuby() {
|
|
|
21653
21653
|
function sendMessageDotNet(message) {
|
|
21654
21654
|
if (!checkDotNet())
|
|
21655
21655
|
return undefined;
|
|
21656
|
-
|
|
21656
|
+
// const json = JSON.stringify(message)
|
|
21657
|
+
var json = message;
|
|
21658
|
+
if (typeof message.data !== 'string') {
|
|
21659
|
+
json.data = JSON.stringify(message.data);
|
|
21660
|
+
}
|
|
21657
21661
|
try {
|
|
21658
21662
|
window.parent.chrome.webview.postMessage(json);
|
|
21659
21663
|
}
|
|
@@ -21857,7 +21861,7 @@ var useCreateStudy = function (accountName, projectName, client) {
|
|
|
21857
21861
|
}); })];
|
|
21858
21862
|
case 1:
|
|
21859
21863
|
job = _b.sent();
|
|
21860
|
-
response = sendMessageDotNet({ action: '
|
|
21864
|
+
response = sendMessageDotNet({ action: 'AddStudy', data: job, uniqueId: key });
|
|
21861
21865
|
return [2 /*return*/, response];
|
|
21862
21866
|
}
|
|
21863
21867
|
});
|
|
@@ -23735,7 +23739,7 @@ var useGetHbjson = function () {
|
|
|
23735
23739
|
var _a = useState(undefined), hbjson = _a[0], setHbjson = _a[1];
|
|
23736
23740
|
var hbjsonRef = useRef(undefined);
|
|
23737
23741
|
var setReturnValue = useCallback(function (res, force) {
|
|
23738
|
-
var bytes = new TextEncoder().encode(res.
|
|
23742
|
+
var bytes = new TextEncoder().encode(res.data);
|
|
23739
23743
|
if (hbjsonRef.current) {
|
|
23740
23744
|
if (force || !lodash_isequal(bytes, hbjsonRef.current)) {
|
|
23741
23745
|
setHbjson(new Blob([bytes], {
|
|
@@ -23751,36 +23755,31 @@ var useGetHbjson = function () {
|
|
|
23751
23755
|
hbjsonRef.current = bytes;
|
|
23752
23756
|
}, []);
|
|
23753
23757
|
useEffect(function () {
|
|
23754
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
23755
23758
|
// @ts-ignore
|
|
23756
|
-
window.parent.readHBJSON = function (
|
|
23757
|
-
if (typeof
|
|
23758
|
-
throw new Error('readHBJSON did not receive a valid string object
|
|
23759
|
-
|
|
23760
|
-
Geometry: hbjson,
|
|
23761
|
-
Identifier: null,
|
|
23762
|
-
};
|
|
23763
|
-
setReturnValue(res, false);
|
|
23759
|
+
window.parent.readHBJSON = function (message) {
|
|
23760
|
+
if (typeof message.data !== 'string')
|
|
23761
|
+
throw new Error('readHBJSON did not receive a valid string object.');
|
|
23762
|
+
setReturnValue(message, false);
|
|
23764
23763
|
};
|
|
23765
|
-
|
|
23764
|
+
// @ts-ignore
|
|
23765
|
+
return function () { return window.parent.readHbjson = undefined; };
|
|
23766
|
+
}, [setReturnValue]);
|
|
23766
23767
|
var dotNetGetHbjson = useCallback(function (key, selection, force) {
|
|
23767
23768
|
if (key === void 0) { key = 'use-get-hbjson'; }
|
|
23768
23769
|
if (selection === void 0) { selection = false; }
|
|
23769
23770
|
if (force === void 0) { force = false; }
|
|
23770
23771
|
if (!checkDotNet())
|
|
23771
23772
|
return;
|
|
23772
|
-
var res =
|
|
23773
|
-
|
|
23774
|
-
|
|
23775
|
-
|
|
23776
|
-
|
|
23777
|
-
.hostObjects.sync.hbjson.PassPollinationModel(key, selection);
|
|
23778
|
-
setReturnValue(res, force);
|
|
23773
|
+
var res = window.parent.chrome.webview
|
|
23774
|
+
.hostObjects.sync.hbjson.Get(key, selection);
|
|
23775
|
+
if (res) {
|
|
23776
|
+
setReturnValue(res, force);
|
|
23777
|
+
}
|
|
23779
23778
|
}, [setReturnValue]);
|
|
23780
23779
|
var revitGetHbjson = useCallback(function () {
|
|
23781
23780
|
if (!checkDotNet())
|
|
23782
23781
|
return;
|
|
23783
|
-
window.parent.chrome.webview.hostObjects.sync.hbjson.
|
|
23782
|
+
window.parent.chrome.webview.hostObjects.sync.hbjson.Get();
|
|
23784
23783
|
}, []);
|
|
23785
23784
|
var getHbjson = useMemo(function () {
|
|
23786
23785
|
switch (host) {
|
|
@@ -23805,8 +23804,9 @@ var useGetGeometry = function () {
|
|
|
23805
23804
|
var host = getHost();
|
|
23806
23805
|
var _a = useState(undefined), geometry = _a[0], setGeometry = _a[1];
|
|
23807
23806
|
var geometryRef = useRef(undefined);
|
|
23808
|
-
var setReturnVal = useCallback(function (
|
|
23809
|
-
var
|
|
23807
|
+
var setReturnVal = useCallback(function (_a, force) {
|
|
23808
|
+
var data = _a.data;
|
|
23809
|
+
var bytes = new TextEncoder().encode(data);
|
|
23810
23810
|
if (!force && geometryRef.current) {
|
|
23811
23811
|
if (!lodash_isequal(bytes, geometryRef.current)) {
|
|
23812
23812
|
setGeometry(new Blob([bytes], {
|
|
@@ -23822,18 +23822,15 @@ var useGetGeometry = function () {
|
|
|
23822
23822
|
geometryRef.current = bytes;
|
|
23823
23823
|
}, []);
|
|
23824
23824
|
useEffect(function () {
|
|
23825
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
23826
23825
|
// @ts-ignore
|
|
23827
|
-
window.parent.readGeometry = function (
|
|
23828
|
-
if (typeof
|
|
23829
|
-
|| typeof identifier !== 'string')
|
|
23830
|
-
throw new Error('readGeometry did not receive a valid string object
|
|
23831
|
-
|
|
23832
|
-
Geometry: geometry,
|
|
23833
|
-
Identifier: identifier,
|
|
23834
|
-
};
|
|
23835
|
-
setReturnVal(res, false);
|
|
23826
|
+
window.parent.readGeometry = function (message) {
|
|
23827
|
+
if (typeof message.data !== 'string'
|
|
23828
|
+
|| typeof message.identifier !== 'string')
|
|
23829
|
+
throw new Error('readGeometry did not receive a valid string object.');
|
|
23830
|
+
setReturnVal(message, false);
|
|
23836
23831
|
};
|
|
23832
|
+
// @ts-ignore
|
|
23833
|
+
return function () { return window.parent.readGeometry = undefined; };
|
|
23837
23834
|
}, [host, setReturnVal]);
|
|
23838
23835
|
var dotNetGetGeometry = useCallback(function (key, selection, force) {
|
|
23839
23836
|
if (key === void 0) { key = 'use-get-geometry'; }
|
|
@@ -23842,10 +23839,10 @@ var useGetGeometry = function () {
|
|
|
23842
23839
|
if (!checkDotNet())
|
|
23843
23840
|
return;
|
|
23844
23841
|
var res = {
|
|
23845
|
-
|
|
23846
|
-
|
|
23842
|
+
data: null,
|
|
23843
|
+
identifier: null,
|
|
23847
23844
|
};
|
|
23848
|
-
res = window.parent.chrome.webview.hostObjects.sync.geometry.
|
|
23845
|
+
res = window.parent.chrome.webview.hostObjects.sync.geometry.Get(key, selection);
|
|
23849
23846
|
if (res) {
|
|
23850
23847
|
setReturnVal(res, force);
|
|
23851
23848
|
}
|
|
@@ -23872,32 +23869,13 @@ var useGetGeometry = function () {
|
|
|
23872
23869
|
var useSendHbjson = function () {
|
|
23873
23870
|
var host = getHost();
|
|
23874
23871
|
var _a = useState({}), state = _a[0], setState = _a[1];
|
|
23875
|
-
useCallback(function (action, message) {
|
|
23876
|
-
if (!checkRuby())
|
|
23877
|
-
return;
|
|
23878
|
-
var response = sendMessageRuby(__assign$3({ action: action }, message));
|
|
23879
|
-
setState(function (state) { return (__assign$3(__assign$3({}, state), { response: response })); });
|
|
23880
|
-
return response;
|
|
23881
|
-
}, []);
|
|
23882
|
-
var dotNetSendHbjson = useCallback(function (action, message) {
|
|
23872
|
+
var sendHbjson = useCallback(function (action, message) {
|
|
23883
23873
|
if (!checkDotNet())
|
|
23884
23874
|
return;
|
|
23885
23875
|
var response = sendMessageDotNet(__assign$3({ action: action }, message));
|
|
23886
23876
|
setState(function (state) { return (__assign$3(__assign$3({}, state), { response: response })); });
|
|
23887
23877
|
return response;
|
|
23888
23878
|
}, []);
|
|
23889
|
-
var sendHbjson = useMemo(function () {
|
|
23890
|
-
switch (host) {
|
|
23891
|
-
case 'sketchup':
|
|
23892
|
-
return dotNetSendHbjson;
|
|
23893
|
-
case 'rhino':
|
|
23894
|
-
return dotNetSendHbjson;
|
|
23895
|
-
case 'revit':
|
|
23896
|
-
return dotNetSendHbjson;
|
|
23897
|
-
default:
|
|
23898
|
-
return undefined;
|
|
23899
|
-
}
|
|
23900
|
-
}, [dotNetSendHbjson, host]);
|
|
23901
23879
|
return ({
|
|
23902
23880
|
host: host,
|
|
23903
23881
|
state: state,
|
|
@@ -23905,44 +23883,36 @@ var useSendHbjson = function () {
|
|
|
23905
23883
|
});
|
|
23906
23884
|
};
|
|
23907
23885
|
|
|
23908
|
-
var
|
|
23886
|
+
var useSendMessage = function () {
|
|
23909
23887
|
var host = getHost();
|
|
23910
|
-
var _a = useState(
|
|
23911
|
-
var
|
|
23912
|
-
if (!checkDotNet())
|
|
23913
|
-
return;
|
|
23888
|
+
var _a = useState(), state = _a[0], setState = _a[1];
|
|
23889
|
+
var sendMessage = useCallback(function (action, message) {
|
|
23914
23890
|
var response = sendMessageDotNet(__assign$3({ action: action }, message));
|
|
23915
23891
|
setState(function (state) { return (__assign$3(__assign$3({}, state), { response: response })); });
|
|
23916
23892
|
return response;
|
|
23917
23893
|
}, []);
|
|
23918
|
-
var sendGeometry = useMemo(function () {
|
|
23919
|
-
switch (host) {
|
|
23920
|
-
case 'sketchup':
|
|
23921
|
-
return dotNetSendGeometry;
|
|
23922
|
-
case 'rhino':
|
|
23923
|
-
return dotNetSendGeometry;
|
|
23924
|
-
case 'revit':
|
|
23925
|
-
return dotNetSendGeometry;
|
|
23926
|
-
default:
|
|
23927
|
-
return undefined;
|
|
23928
|
-
}
|
|
23929
|
-
}, [dotNetSendGeometry, host]);
|
|
23930
23894
|
return ({
|
|
23931
23895
|
host: host,
|
|
23932
23896
|
state: state,
|
|
23933
|
-
|
|
23897
|
+
sendMessage: sendMessage,
|
|
23934
23898
|
});
|
|
23935
23899
|
};
|
|
23936
23900
|
|
|
23937
|
-
var useRunCommand = function () {
|
|
23901
|
+
var useRunCommand = function (defaultKey) {
|
|
23938
23902
|
var host = getHost();
|
|
23903
|
+
var sendMessage = useSendMessage().sendMessage;
|
|
23904
|
+
var _a = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _a[0], setKey = _a[1];
|
|
23905
|
+
useEffect(function () {
|
|
23906
|
+
setKey(defaultKey);
|
|
23907
|
+
}, [defaultKey]);
|
|
23939
23908
|
var rhinoRunCommand = useCallback(function (commandString, commandOptions) {
|
|
23940
23909
|
var msgObject = {
|
|
23941
|
-
|
|
23942
|
-
|
|
23910
|
+
data: commandString,
|
|
23911
|
+
options: commandOptions,
|
|
23912
|
+
uniqueId: key
|
|
23943
23913
|
};
|
|
23944
|
-
|
|
23945
|
-
}, []);
|
|
23914
|
+
sendMessage('AddCommand', msgObject);
|
|
23915
|
+
}, [key, sendMessage]);
|
|
23946
23916
|
var runCommand = useMemo(function () {
|
|
23947
23917
|
switch (host) {
|
|
23948
23918
|
case 'rhino':
|
|
@@ -24077,10 +24047,15 @@ function createContextScope(n,o=[]){let r=[];const c=()=>{const t=r.map((t=>/*#_
|
|
|
24077
24047
|
|
|
24078
24048
|
const[c$7,i$5]=createContextScope("Avatar");const[s$4,l$6]=c$7("Avatar");const Avatar$1=/*#__PURE__*/React.forwardRef(((t,a)=>{const{__scopeAvatar:r,...c}=t,[i,l]=React.useState("idle");return React.createElement(s$4,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:l},/*#__PURE__*/React.createElement(Primitive.span,_extends$A({},c,{ref:a})))}));const AvatarImage=/*#__PURE__*/React.forwardRef(((r,c)=>{const{__scopeAvatar:i,src:s,onLoadingStatusChange:d=(()=>{}),...m}=r,u=l$6("AvatarImage",i),f=function(e){const[t,a]=React.useState("idle");return React.useEffect((()=>{if(!e)return void a("error");let t=!0;const r=new window.Image,o=e=>()=>{t&&a(e);};return a("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=e,()=>{t=!1;}}),[e]),t}(s),p=useCallbackRef$1((e=>{d(e),u.onImageLoadingStatusChange(e);}));return useLayoutEffect((()=>{"idle"!==f&&p(f);}),[f,p]),"loaded"===f?/*#__PURE__*/React.createElement(Primitive.img,_extends$A({},m,{ref:c,src:s})):null}));const AvatarFallback=/*#__PURE__*/React.forwardRef(((t,a)=>{const{__scopeAvatar:r,delayMs:c,...i}=t,s=l$6("AvatarFallback",r),[d,m]=React.useState(void 0===c);return React.useEffect((()=>{if(void 0!==c){const e=window.setTimeout((()=>m(!0)),c);return ()=>window.clearTimeout(e)}}),[c]),d&&"loaded"!==s.imageLoadingStatus?/*#__PURE__*/React.createElement(Primitive.span,_extends$A({},i,{ref:a})):null}));const Root$7=Avatar$1;const Image$1=AvatarImage;const Fallback$1=AvatarFallback;
|
|
24079
24049
|
|
|
24050
|
+
var ConditionalWrapper = function (_a) {
|
|
24051
|
+
var condition = _a.condition, wrapper = _a.wrapper, children = _a.children;
|
|
24052
|
+
return (condition ? wrapper(children) : children);
|
|
24053
|
+
};
|
|
24054
|
+
|
|
24080
24055
|
var Root$6 = Root$7, Fallback = Fallback$1, Image = Image$1;
|
|
24081
24056
|
var Avatar = function (_a) {
|
|
24082
24057
|
var alt = _a.alt, fallback = _a.fallback, href = _a.href, src = _a.src, _b = _a.size, size = _b === void 0 ? 45 : _b, style = _a.style;
|
|
24083
|
-
return (React__default.createElement("a", { href: href, target: "_blank", rel: "noreferrer", style: style },
|
|
24058
|
+
return (React__default.createElement(ConditionalWrapper, { condition: typeof href !== 'undefined' && Boolean(href), wrapper: function (children) { return React__default.createElement("a", { href: href, target: "_blank", rel: "noreferrer", style: style }, children); } },
|
|
24084
24059
|
React__default.createElement(Root$6, { style: {
|
|
24085
24060
|
display: 'inline-flex',
|
|
24086
24061
|
alignItems: 'center',
|
|
@@ -24114,11 +24089,6 @@ var Avatar = function (_a) {
|
|
|
24114
24089
|
}, delayMs: 600 }, fallback))));
|
|
24115
24090
|
};
|
|
24116
24091
|
|
|
24117
|
-
var ConditionalWrapper = function (_a) {
|
|
24118
|
-
var condition = _a.condition, wrapper = _a.wrapper, children = _a.children;
|
|
24119
|
-
return (condition ? wrapper(children) : children);
|
|
24120
|
-
};
|
|
24121
|
-
|
|
24122
24092
|
function _objectWithoutPropertiesLoose$z(source, excluded) {
|
|
24123
24093
|
if (source == null) return {};
|
|
24124
24094
|
var target = {};
|
|
@@ -30318,8 +30288,8 @@ function styleInject(css, ref) {
|
|
|
30318
30288
|
}
|
|
30319
30289
|
}
|
|
30320
30290
|
|
|
30321
|
-
var css_248z$
|
|
30322
|
-
styleInject(css_248z$
|
|
30291
|
+
var css_248z$d = "/*\n * Container style\n */\n.ps {\n overflow: hidden !important;\n overflow-anchor: none;\n -ms-overflow-style: none;\n touch-action: auto;\n -ms-touch-action: auto;\n}\n\n/*\n * Scrollbar rail styles\n */\n.ps__rail-x {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n height: 15px;\n /* there must be 'bottom' or 'top' for ps__rail-x */\n bottom: 0px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-y {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n width: 15px;\n /* there must be 'right' or 'left' for ps__rail-y */\n right: 0;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps--active-x > .ps__rail-x,\n.ps--active-y > .ps__rail-y {\n display: block;\n background-color: transparent;\n}\n\n.ps:hover > .ps__rail-x,\n.ps:hover > .ps__rail-y,\n.ps--focus > .ps__rail-x,\n.ps--focus > .ps__rail-y,\n.ps--scrolling-x > .ps__rail-x,\n.ps--scrolling-y > .ps__rail-y {\n opacity: 0.6;\n}\n\n.ps .ps__rail-x:hover,\n.ps .ps__rail-y:hover,\n.ps .ps__rail-x:focus,\n.ps .ps__rail-y:focus,\n.ps .ps__rail-x.ps--clicking,\n.ps .ps__rail-y.ps--clicking {\n background-color: #eee;\n opacity: 0.9;\n}\n\n/*\n * Scrollbar thumb styles\n */\n.ps__thumb-x {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, height .2s ease-in-out;\n -webkit-transition: background-color .2s linear, height .2s ease-in-out;\n height: 6px;\n /* there must be 'bottom' for ps__thumb-x */\n bottom: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__thumb-y {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, width .2s ease-in-out;\n -webkit-transition: background-color .2s linear, width .2s ease-in-out;\n width: 6px;\n /* there must be 'right' for ps__thumb-y */\n right: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-x:hover > .ps__thumb-x,\n.ps__rail-x:focus > .ps__thumb-x,\n.ps__rail-x.ps--clicking .ps__thumb-x {\n background-color: #999;\n height: 11px;\n}\n\n.ps__rail-y:hover > .ps__thumb-y,\n.ps__rail-y:focus > .ps__thumb-y,\n.ps__rail-y.ps--clicking .ps__thumb-y {\n background-color: #999;\n width: 11px;\n}\n\n/* MS supports */\n@supports (-ms-overflow-style: none) {\n .ps {\n overflow: auto !important;\n }\n}\n\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ps {\n overflow: auto !important;\n }\n}\n.scrollbar-container {\n position: relative;\n height: 100%; }";
|
|
30292
|
+
styleInject(css_248z$d);
|
|
30323
30293
|
|
|
30324
30294
|
const e$3="horizontal",n$4=["horizontal","vertical"];const Separator=/*#__PURE__*/React.forwardRef(((n,a)=>{const{decorative:p,orientation:l=e$3,...c}=n,s=i$4(l)?l:e$3,u=p?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"};return React.createElement(Primitive.div,_extends$A({"data-orientation":s},u,c,{ref:a}))}));function i$4(r){return n$4.includes(r)}Separator.propTypes={orientation(r,o,t){const n=r[o],a=String(n);return n&&!i$4(n)?new Error(function(r,o){return `Invalid prop \`orientation\` of value \`${r}\` supplied to \`${o}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${e$3}\`.`}(a,t)):null}};const Root$5=Separator;
|
|
30325
30295
|
|
|
@@ -31883,8 +31853,8 @@ function toNumber(value) {
|
|
|
31883
31853
|
|
|
31884
31854
|
var lodash_debounce = debounce;
|
|
31885
31855
|
|
|
31886
|
-
var css_248z$
|
|
31887
|
-
styleInject(css_248z$
|
|
31856
|
+
var css_248z$c = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.poll-combobox {\n width: 100%;\n}\n\n.poll-combobox-content {\n z-index: 100;\n display: flex;\n flex-direction: column;\n width: 100%;\n background-color: white;\n border: 1px solid var(--slate5);\n border-radius: 0px 0px 4px 4px;\n gap: 2px;\n box-sizing: border-box;\n transition: max-height 0.5s ease-in-out;\n}\n\n.poll-combobox-item {\n display: inline-block;\n border-radius: 2px;\n padding: 2px 8px;\n transition: background-color 0.15s linear, color 0.15s linear;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.poll-select-item[data-state=checked] {\n background-color: var(--primary2);\n color: white;\n}\n\n.poll-select-item:focus-visible {\n background-color: var(--primary0);\n outline: solid 1px var(--primary);\n color: unset;\n outline-color: var(--primary);\n}\n\n.poll-select-item:hover {\n background-color: var(--primary0);\n cursor: pointer;\n color: unset;\n}\n\n.poll-separator {\n background-color: var(--slate5);\n height: 1px;\n width: 100%;\n margin: 4px 0;\n}\n\n.poll-combo-header-container {\n transition: opacity 0.5s ease-in-out;\n}\n\n.poll-combo-footer-container {\n transition: opacity 0.5s ease-in-out;\n}\n\n.poll-combo-group {\n width: fit-content;\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n}\n\n.poll-combo-group:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.poll-combo-group-disabled:hover {\n box-shadow: none;\n}\n\n.poll-combo-group input {\n width: 100%;\n}\n\n.poll-combo-group input::placeholder {\n color: var(--slate1);\n}\n\n.poll-combo-group-disabled input::placeholder {\n color: var(--slate10);\n}\n\n.poll-combo-group * {\n background-color: var(--primary);\n color: white;\n transition: background-color 0.125s ease-in-out;\n}\n\n.poll-combo-group-disabled * {\n background-color: var(--slate5);\n border-color: var(--slate11) !important;\n color: var(--slate11);\n cursor: default !important;\n}\n\n.poll-combo-group i,\n.poll-combo-group svg {\n border-radius: inherit;\n background-color: rgba(0, 0, 0, 0);\n}\n\n.poll-combo-group button,\n.poll-combo-group input {\n display: flex;\n padding: 8px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: 1px solid var(--primary);\n}\n\n.poll-combo-group button:first-child,\n.poll-combo-group input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.poll-combo-group button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n border-left-color: #096dd9;\n}\n\n.poll-combo-group button:not(:last-child),\n.poll-combo-group input:not(:last-child) {\n border-right: none;\n}\n\n.poll-combo-group button:focus-visible,\n.poll-combo-group input:focus-visible {\n outline: none;\n}\n\n.poll-combo-group button:focus,\n.poll-combo-group input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.poll-combo-group:after {\n content: \"\";\n clear: both;\n display: table;\n}\n\n.poll-combo-group button:hover,\n.poll-combo-group input:hover {\n background-color: var(--primary2);\n z-index: 11;\n}\n\n.poll-combo-group-disabled:hover button:hover,\n.poll-combo-group-disabled:hover input:hover {\n background-color: var(--slate5);\n}";
|
|
31857
|
+
styleInject(css_248z$c);
|
|
31888
31858
|
|
|
31889
31859
|
var ICON_SIZE$1 = 18;
|
|
31890
31860
|
var ComboBox = React__default.forwardRef(function ComboBox(_a, ref) {
|
|
@@ -32851,8 +32821,8 @@ const x$1=["Enter"," "],b$1=["ArrowUp","PageDown","End"],R$1=["ArrowDown","PageU
|
|
|
32851
32821
|
|
|
32852
32822
|
const[s$1,i$1]=createContextScope("DropdownMenu",[S$1]);const l$1=S$1(),[m$1,w$1]=s$1("DropdownMenu");const DropdownMenu=e=>{const{__scopeDropdownMenu:n,children:r,open:p,defaultOpen:d,onOpenChange:a}=e,s=M$1("DropdownMenu",n),i=l$1(n),[w=!1,D]=useControllableState({prop:p,defaultProp:d,onChange:a}),g=React.useCallback((()=>D((e=>!e))),[D]);return s.isInsideContent?/*#__PURE__*/React.createElement(m$1,{scope:n,isRootMenu:!1,open:w,onOpenChange:D,onOpenToggle:g},/*#__PURE__*/React.createElement(Sub,_extends$A({},i,{open:w,onOpenChange:D}),r)):/*#__PURE__*/React.createElement(f$2,_extends$A({},e,{open:w,onOpenChange:D,onOpenToggle:g}),r)};const f$2=n=>{const{__scopeDropdownMenu:r,children:t,dir:p,open:d,onOpenChange:a,onOpenToggle:s,modal:i=!0}=n,w=l$1(r),f=React.useRef(null);return React.createElement(m$1,{scope:r,isRootMenu:!0,triggerId:useId(),triggerRef:f,contentId:useId(),open:d,onOpenChange:a,onOpenToggle:s,modal:i},/*#__PURE__*/React.createElement(Root$1,_extends$A({},w,{open:d,onOpenChange:a,dir:p,modal:i}),t))};const DropdownMenuTrigger=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,disabled:p=!1,...s}=e,i=w$1("DropdownMenuTrigger",t),m=l$1(t);return i.isRootMenu?/*#__PURE__*/React.createElement(Anchor,_extends$A({asChild:!0},m),/*#__PURE__*/React.createElement(Primitive.button,_extends$A({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":!!i.open||void 0,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":p?"":void 0,disabled:p},s,{ref:composeRefs(n,i.triggerRef),onPointerDown:composeEventHandlers$1(e.onPointerDown,(e=>{p||0!==e.button||!1!==e.ctrlKey||(i.open||e.preventDefault(),i.onOpenToggle());})),onKeyDown:composeEventHandlers$1(e.onKeyDown,(e=>{p||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault());}))}))):null}));const[D$1,M$1]=s$1("DropdownMenuContent",{isInsideContent:!1});const DropdownMenuContent=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=w$1("DropdownMenuContent",r),d=l$1(r),a={...t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}};return React.createElement(D$1,{scope:r,isInsideContent:!0},p.isRootMenu?/*#__PURE__*/React.createElement(g$1,_extends$A({__scopeDropdownMenu:r},a,{ref:n})):/*#__PURE__*/React.createElement(Content$1,_extends$A({},d,a,{ref:n})))}));const g$1=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,portalled:t=!0,...p}=e,d=w$1("DropdownMenuContent",r),s=l$1(r),i=React.useRef(!1);return d.isRootMenu?/*#__PURE__*/React.createElement(Content$1,_extends$A({id:d.contentId,"aria-labelledby":d.triggerId},s,p,{ref:n,portalled:t,onCloseAutoFocus:composeEventHandlers$1(e.onCloseAutoFocus,(e=>{var o;i.current||null===(o=d.triggerRef.current)||void 0===o||o.focus(),i.current=!1,e.preventDefault();})),onInteractOutside:composeEventHandlers$1(e.onInteractOutside,(e=>{const o=e.detail.originalEvent,n=0===o.button&&!0===o.ctrlKey,r=2===o.button||n;d.modal&&!r||(i.current=!0);}))})):null}));const DropdownMenuGroup=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l$1(r);return React.createElement(Group$1,_extends$A({},p,t,{ref:n}))}));const DropdownMenuLabel=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l$1(r);return React.createElement(Label$2,_extends$A({},p,t,{ref:n}))}));const DropdownMenuItem=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l$1(r);return React.createElement(Item$1,_extends$A({},p,t,{ref:n}))}));const DropdownMenuCheckboxItem=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l$1(r);return React.createElement(CheckboxItem$1,_extends$A({},p,t,{ref:n}))}));const DropdownMenuRadioGroup=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l$1(r);return React.createElement(RadioGroup$1,_extends$A({},p,t,{ref:n}))}));const DropdownMenuRadioItem=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l$1(r);return React.createElement(RadioItem$1,_extends$A({},p,t,{ref:n}))}));const DropdownMenuItemIndicator=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l$1(r);return React.createElement(ItemIndicator$1,_extends$A({},p,t,{ref:n}))}));const DropdownMenuArrow=/*#__PURE__*/React.forwardRef(((e,n)=>{const{__scopeDropdownMenu:r,...t}=e,p=l$1(r);return React.createElement(Arrow$1,_extends$A({},p,t,{ref:n}))}));const Root=DropdownMenu;const Trigger=DropdownMenuTrigger;const Content=DropdownMenuContent;const Group=DropdownMenuGroup;const Label$1=DropdownMenuLabel;const Item=DropdownMenuItem;const CheckboxItem=DropdownMenuCheckboxItem;const RadioGroup=DropdownMenuRadioGroup;const RadioItem=DropdownMenuRadioItem;const ItemIndicator=DropdownMenuItemIndicator;const Arrow=DropdownMenuArrow;
|
|
32853
32823
|
|
|
32854
|
-
var css_248z$
|
|
32855
|
-
styleInject(css_248z$
|
|
32824
|
+
var css_248z$b = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.poll-select-content {\n display: flex;\n flex-direction: column;\n width: fit-content;\n background-color: white;\n border: 1px solid var(--slate8);\n border-radius: 4px;\n padding: 6px 4px;\n box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 4px;\n gap: 2px;\n}\n\n.poll-select-item {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n border-radius: 2px;\n padding: 2px 8px 2px 30px;\n transition: background-color 0.15s linear, color 0.15s linear;\n}\n\n.poll-select-item[data-state=checked] {\n background-color: var(--primary2);\n color: white;\n}\n\n.poll-select-item:focus-visible {\n background-color: var(--primary0);\n outline: solid 1px var(--primary);\n color: unset;\n outline-color: var(--primary);\n}\n\n.poll-select-item:hover {\n background-color: var(--primary0);\n cursor: pointer;\n color: unset;\n}\n\n.poll-separator {\n background-color: #d0d7de;\n height: 1px;\n width: 100%;\n margin: 4px 0;\n}";
|
|
32825
|
+
styleInject(css_248z$b);
|
|
32856
32826
|
|
|
32857
32827
|
var Dropdown = function (_a) {
|
|
32858
32828
|
var optionGroups = _a.optionGroups, trigger = _a.trigger, open = _a.open, contentProps = _a.contentProps, itemProps = _a.itemProps, _b = _a.arrow, arrow = _b === void 0 ? true : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c;
|
|
@@ -32886,7 +32856,7 @@ var Dropdown = function (_a) {
|
|
|
32886
32856
|
return (React__default.createElement(Item, __assign$3({ key: o.id, className: "poll-select-item", onSelect: function () { return o.onSelect && o.onSelect(o); } }, itemProps), o.label));
|
|
32887
32857
|
}
|
|
32888
32858
|
}, [itemProps]);
|
|
32889
|
-
return (React__default.createElement(Root, { open: open },
|
|
32859
|
+
return (React__default.createElement(Root, { open: open && !disabled },
|
|
32890
32860
|
React__default.createElement(Trigger, { asChild: true, disabled: disabled }, trigger),
|
|
32891
32861
|
React__default.createElement(Content, __assign$3({ className: "poll-select-content" }, contentProps),
|
|
32892
32862
|
optionGroups.map(function (group, i, a) { return (React__default.createElement(ConditionalWrapper, { condition: typeof group.type !== 'undefined', wrapper: function (children) { return (group.type === 'radio'
|
|
@@ -34524,8 +34494,8 @@ function reducer(state, action) {
|
|
|
34524
34494
|
|
|
34525
34495
|
function noop() {}
|
|
34526
34496
|
|
|
34527
|
-
var css_248z$
|
|
34528
|
-
styleInject(css_248z$
|
|
34497
|
+
var css_248z$a = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.poll-drop-zone {\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #E8F6FF;\n padding: 10px 12px;\n border-radius: 6px;\n gap: 16px;\n cursor: pointer;\n border: 1px solid #E8F6FF;\n user-select: none;\n}\n\n.poll-drop-zone-disabled {\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #E8F6FF;\n padding: 10px 12px;\n border-radius: 6px;\n gap: 16px;\n border: 1px solid #E8F6FF;\n user-select: none;\n}\n\n.poll-drop-zone:hover,\n.poll-drop-zone:active,\n.poll-drop-zone:focus {\n border-color: #FCDE5D;\n}\n\n.poll-drop-zone:hover .poll-file-input-button,\n.poll-drop-zone:active .poll-file-input-button {\n background-color: #FCDE5D;\n color: black;\n border-color: #FCDE5D;\n}\n\n.poll-file-input-button {\n z-index: 10;\n display: flex;\n max-width: 260px;\n background-color: var(--primary);\n border: 1px solid var(--primary);\n color: white;\n padding: 8px 16px;\n float: left;\n align-items: center;\n gap: 8px;\n border-radius: 4px;\n transition: background-color 0.25s, border-color 0.25s, color 0.25s;\n}\n\n.poll-file-input-button-disabled {\n content: \"Disabled\";\n background-color: var(--slate3);\n color: var(--slate11);\n cursor: default;\n border-color: var(--slate11);\n}";
|
|
34498
|
+
styleInject(css_248z$a);
|
|
34529
34499
|
|
|
34530
34500
|
var FileInput = function (_a) {
|
|
34531
34501
|
var disabled = _a.disabled, onChange = _a.onChange, _b = _a.accept, accept = _b === void 0 ? ['.hbjson'] : _b, inputProps = _a.inputProps;
|
|
@@ -35675,8 +35645,8 @@ const $f99a8c78507165f7$export$5fb54c671a65c88 = /*#__PURE__*/ forwardRef((props
|
|
|
35675
35645
|
const $f99a8c78507165f7$export$6d08773d2e66f8f2 = $f99a8c78507165f7$export$9f866c100ef519e4;
|
|
35676
35646
|
const $f99a8c78507165f7$export$adb584737d712b70 = $f99a8c78507165f7$export$5fb54c671a65c88;
|
|
35677
35647
|
|
|
35678
|
-
var css_248z$
|
|
35679
|
-
styleInject(css_248z$
|
|
35648
|
+
var css_248z$9 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.poll-radio {\n background-color: white;\n width: 18px;\n height: 18px;\n border-radius: 100%;\n box-shadow: 0 1px 2px black;\n border: none;\n cursor: pointer;\n border-width: 1px;\n outline-width: 1px;\n}\n\n.poll-radio:hover {\n background-color: var(--primary1);\n}\n\n.poll-radio:focus {\n box-shadow: 0 0 0 2px var(--primary);\n}\n\n.poll-radio:focus-visible {\n outline: none;\n}\n\n.poll-radio-indicator {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n position: relative;\n}\n\n.poll-radio-indicator:after {\n content: '\"\"';\n color: rgba(0, 0, 0, 0);\n display: block;\n width: 11px;\n height: 11px;\n border-radius: 50%;\n background-color: var(--primary);\n}";
|
|
35649
|
+
styleInject(css_248z$9);
|
|
35680
35650
|
|
|
35681
35651
|
var RadioList = function (_a) {
|
|
35682
35652
|
var items = _a.items, name = _a.name, defaultValue = _a.defaultValue, onChange = _a.onChange;
|
|
@@ -35693,9 +35663,14 @@ var RadioList = function (_a) {
|
|
|
35693
35663
|
gap: 12,
|
|
35694
35664
|
alignItems: 'center'
|
|
35695
35665
|
} },
|
|
35696
|
-
React__default.createElement($f99a8c78507165f7$export$6d08773d2e66f8f2, { value: item, id: "".concat(item), className: 'poll-radio'
|
|
35666
|
+
React__default.createElement($f99a8c78507165f7$export$6d08773d2e66f8f2, { value: item, id: "".concat(item), className: 'poll-radio', style: {
|
|
35667
|
+
outline: 'none'
|
|
35668
|
+
} },
|
|
35697
35669
|
React__default.createElement($f99a8c78507165f7$export$adb584737d712b70, { className: 'poll-radio-indicator' })),
|
|
35698
|
-
React__default.createElement("label", {
|
|
35670
|
+
React__default.createElement("label", { style: {
|
|
35671
|
+
marginBottom: 0,
|
|
35672
|
+
cursor: 'pointer'
|
|
35673
|
+
}, htmlFor: "".concat(item) }, name === 'units' ?
|
|
35699
35674
|
item.toUpperCase()
|
|
35700
35675
|
:
|
|
35701
35676
|
(item.charAt(0).toUpperCase() + item.slice(1)).split('-').join(' '))));
|
|
@@ -35713,30 +35688,34 @@ var Label = function (_a) {
|
|
|
35713
35688
|
display: 'flex',
|
|
35714
35689
|
justifyContent: 'flex-start',
|
|
35715
35690
|
width: '100%',
|
|
35691
|
+
backgroundColor: 'white',
|
|
35716
35692
|
} },
|
|
35717
|
-
React__default.createElement("label", { htmlFor: name !== null && name !== void 0 ? name : (typeof label === 'string' ? slugify(label, { lower: true }) : 'undefined'), style: __assign$3({ background: 'var(--background)', borderRadius: 4, width: 'fit-content',
|
|
35693
|
+
React__default.createElement("label", { htmlFor: name !== null && name !== void 0 ? name : (typeof label === 'string' ? slugify(label, { lower: true }) : 'undefined'), style: __assign$3({ background: 'var(--background)', borderRadius: 4, width: 'fit-content', zIndex: 100, fontSize: '0.8rem', color: disabled ? 'var(--slate11)' : 'var(--primary)', fill: disabled ? 'var(--slate11)' : 'var(--primary)', padding: '0px 4px', marginBottom: 0, backgroundColor: 'inherit' }, style) }, label)),
|
|
35718
35694
|
children));
|
|
35719
35695
|
};
|
|
35720
35696
|
|
|
35721
35697
|
var logo = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMSIgdmlld0JveD0iMCAwIDEyMCAxMjEiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNj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
|
|
35722
35698
|
|
|
35723
|
-
var Logo = function () {
|
|
35724
|
-
|
|
35725
|
-
|
|
35726
|
-
|
|
35727
|
-
|
|
35728
|
-
|
|
35729
|
-
|
|
35730
|
-
|
|
35731
|
-
|
|
35732
|
-
React__default.createElement("img", { src: logo, alt: "Pollination Logo", style: {
|
|
35733
|
-
maxHeight: 24,
|
|
35734
|
-
maxWidth: 24,
|
|
35699
|
+
var Logo = function (_a) {
|
|
35700
|
+
var _b = _a.size, size = _b === void 0 ? 24 : _b;
|
|
35701
|
+
return (React__default.createElement("div", { style: {
|
|
35702
|
+
display: 'flex',
|
|
35703
|
+
justifyContent: 'center',
|
|
35704
|
+
alignContent: 'center',
|
|
35705
|
+
borderRadius: 99999,
|
|
35706
|
+
maxHeight: size,
|
|
35707
|
+
maxWidth: size,
|
|
35735
35708
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
35736
|
-
} }
|
|
35709
|
+
} },
|
|
35710
|
+
React__default.createElement("img", { src: logo, alt: "Pollination Logo", style: {
|
|
35711
|
+
maxHeight: size,
|
|
35712
|
+
maxWidth: size,
|
|
35713
|
+
backgroundColor: 'rgba(0,0,0,0)',
|
|
35714
|
+
} })));
|
|
35715
|
+
};
|
|
35737
35716
|
|
|
35738
|
-
var css_248z$
|
|
35739
|
-
styleInject(css_248z$
|
|
35717
|
+
var css_248z$8 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.number-input {\n width: 100%;\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n border: 1px solid var(--primary);\n}\n\n.number-input:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.number-input-disabled {\n border-color: grey;\n}\n\n.number-input-disabled input,\n.number-input-disabled button {\n cursor: default !important;\n}\n\n.number-input-disabled:hover {\n box-shadow: none;\n}\n\n.number-input input {\n width: 100%;\n color: var(--slate12);\n}\n\n.number-input input::placeholder {\n color: var(--slate10);\n}\n\n.number-input i svg {\n fill: inherit;\n}\n\n.number-input button,\n.number-input input {\n display: flex;\n padding: 9px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: none;\n line-height: 1.5rem;\n}\n\n.number-input button:first-child,\n.number-input input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.number-input button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n border-left-color: #096dd9;\n}\n\n.number-input button:not(:last-child),\n.number-input input:not(:last-child) {\n border-right: none;\n}\n\n.number-input button:focus-visible,\n.number-input input:focus-visible {\n outline: none;\n}\n\n.number-input button:focus,\n.number-input input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.number-input:after {\n content: \"\";\n clear: both;\n display: table;\n}";
|
|
35718
|
+
styleInject(css_248z$8);
|
|
35740
35719
|
|
|
35741
35720
|
var NumberInput = function (_a) {
|
|
35742
35721
|
var _b = _a.inputProps, inputProps = _b === void 0 ? { defaultValue: 0 } : _b, _c = _a.icon, icon = _c === void 0 ? React__default.createElement(Hash$1, null) : _c, style = _a.style, reset = _a.reset;
|
|
@@ -35751,6 +35730,7 @@ var NumberInput = function (_a) {
|
|
|
35751
35730
|
display: 'flex',
|
|
35752
35731
|
color: 'white',
|
|
35753
35732
|
zIndex: 20,
|
|
35733
|
+
fill: inputProps.disabled ? 'var(--slate11)' : 'var(--primary)'
|
|
35754
35734
|
} }, icon)),
|
|
35755
35735
|
React__default.createElement("input", __assign$3({ style: {
|
|
35756
35736
|
paddingLeft: 35,
|
|
@@ -35759,15 +35739,15 @@ var NumberInput = function (_a) {
|
|
|
35759
35739
|
width: '100%',
|
|
35760
35740
|
fontSize: '0.9rem'
|
|
35761
35741
|
}, type: 'number' }, inputProps)),
|
|
35762
|
-
typeof inputProps.defaultValue !== 'undefined' &&
|
|
35742
|
+
typeof inputProps.defaultValue !== 'undefined' && !inputProps.disabled &&
|
|
35763
35743
|
React__default.createElement("button", { type: 'button', onClick: reset, style: {
|
|
35764
35744
|
background: 'white'
|
|
35765
35745
|
} },
|
|
35766
35746
|
React__default.createElement(ArrowClockwise$1, { style: { fill: 'var(--primary)' } }))));
|
|
35767
35747
|
};
|
|
35768
35748
|
|
|
35769
|
-
var css_248z$
|
|
35770
|
-
styleInject(css_248z$
|
|
35749
|
+
var css_248z$7 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.btn-group {\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n}\n\n.btn-group:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.btn-group-disabled:hover {\n box-shadow: none;\n}\n\n.btn-group input {\n width: 100%;\n}\n\n.btn-group input::placeholder {\n color: var(--primary1);\n}\n\n.btn-group * {\n background-color: var(--primary);\n color: white;\n transition: background-color 0.125s ease-in-out;\n}\n\n.btn-group-disabled * {\n background-color: var(--slate5);\n border-color: var(--slate11) !important;\n color: var(--slate11);\n cursor: default !important;\n}\n\n.btn-group i,\n.btn-group svg {\n background-color: rgba(0, 0, 0, 0);\n}\n\n.btn-group button,\n.btn-group input {\n display: flex;\n padding: 8px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: 1px solid var(--primary);\n border-left-color: #096dd9;\n transition: box-shadow 0.125s ease-in-out;\n line-height: 1.5rem;\n}\n\n.btn-group button:active {\n box-shadow: inset 0px 0px 14px 14px #096dd9;\n}\n\n.btn-group button:first-child,\n.btn-group input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n border-left-color: var(--primary);\n}\n\n.btn-group button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n\n.btn-group button:not(:last-child),\n.btn-group input:not(:last-child) {\n border-right: none;\n}\n\n.btn-group button:focus-visible,\n.btn-group input:focus-visible {\n outline: none;\n}\n\n.btn-group button:focus,\n.btn-group input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.btn-group:after {\n content: \"\";\n clear: both;\n display: table;\n}\n\n.btn-group button:hover,\n.btn-group input:hover {\n background-color: var(--primary2);\n z-index: 11;\n}\n\n.btn-group-disabled:hover button:hover {\n box-shadow: none;\n}\n\n.btn-group-disabled:hover button:hover,\n.btn-group-disabled:hover input:hover {\n background-color: var(--slate5);\n}\n\n.options-content {\n font-size: clamp(0.65rem, 8vw - 0.75rem, 0.85rem);\n}";
|
|
35750
|
+
styleInject(css_248z$7);
|
|
35771
35751
|
|
|
35772
35752
|
var SettingsButton = function (_a) {
|
|
35773
35753
|
var onClick = _a.onClick, label = _a.label, options = _a.options, asButtons = _a.asButtons, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.triggerIcon, triggerIcon = _c === void 0 ? React__default.createElement(CaretDownFill$1, null) : _c, helpText = _a.helpText, _d = _a.icon, icon = _d === void 0 ? React__default.createElement(Logo, null) : _d;
|
|
@@ -35795,16 +35775,11 @@ var SettingsButton = function (_a) {
|
|
|
35795
35775
|
}, disabled: disabled })))));
|
|
35796
35776
|
};
|
|
35797
35777
|
|
|
35798
|
-
var css_248z$
|
|
35799
|
-
styleInject(css_248z$
|
|
35778
|
+
var css_248z$6 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.text-input {\n width: 100%;\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n border: 1px solid var(--primary);\n}\n\n.text-input:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.text-input-disabled:hover {\n box-shadow: none;\n}\n\n.text-input input {\n width: 100%;\n color: var(--slate12);\n}\n\n.text-input input::placeholder {\n color: var(--slate10);\n}\n\n.text-input i svg {\n fill: var(--primary);\n}\n\n.text-input button,\n.text-input input {\n display: flex;\n padding: 9px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: none;\n line-height: 1.5rem;\n}\n\n.text-input button:first-child,\n.text-input input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.text-input button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n border-left-color: #096dd9;\n}\n\n.text-input button:not(:last-child),\n.text-input input:not(:last-child) {\n border-right: none;\n}\n\n.text-input button:focus-visible,\n.text-input input:focus-visible {\n outline: none;\n}\n\n.text-input button:focus,\n.text-input input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.text-input:after {\n content: \"\";\n clear: both;\n display: table;\n}";
|
|
35779
|
+
styleInject(css_248z$6);
|
|
35800
35780
|
|
|
35801
35781
|
var TextInput = function (_a) {
|
|
35802
|
-
// const [value, setValue] = useState(inputProps.defaultValue)
|
|
35803
35782
|
var _b = _a.inputProps, inputProps = _b === void 0 ? { placeholder: 'Input some text...' } : _b, _c = _a.icon, icon = _c === void 0 ? React__default.createElement(CursorText$1, null) : _c, style = _a.style, reset = _a.reset;
|
|
35804
|
-
// const handleChange = (e) => {
|
|
35805
|
-
// setValue(e.target.value)
|
|
35806
|
-
// onChange && onChange(e)
|
|
35807
|
-
// }
|
|
35808
35783
|
return (React__default.createElement("div", { style: __assign$3(__assign$3({ width: '100%' }, style), { position: 'relative' }), className: "text-input" },
|
|
35809
35784
|
icon && (React__default.createElement("i", { style: {
|
|
35810
35785
|
position: 'absolute',
|
|
@@ -35815,6 +35790,7 @@ var TextInput = function (_a) {
|
|
|
35815
35790
|
display: 'flex',
|
|
35816
35791
|
color: 'white',
|
|
35817
35792
|
zIndex: 20,
|
|
35793
|
+
fill: inputProps.disabled ? 'var(--slate11)' : 'var(--primary)'
|
|
35818
35794
|
} }, icon)),
|
|
35819
35795
|
React__default.createElement("input", __assign$3({ style: {
|
|
35820
35796
|
paddingLeft: 34,
|
|
@@ -35822,18 +35798,18 @@ var TextInput = function (_a) {
|
|
|
35822
35798
|
flex: 12,
|
|
35823
35799
|
width: '100%'
|
|
35824
35800
|
} }, inputProps)),
|
|
35825
|
-
inputProps.defaultValue &&
|
|
35801
|
+
typeof inputProps.defaultValue !== 'undefined' && !inputProps.disabled &&
|
|
35826
35802
|
React__default.createElement("button", { type: 'button', onClick: reset, style: {
|
|
35827
35803
|
background: 'white'
|
|
35828
35804
|
} },
|
|
35829
35805
|
React__default.createElement(ArrowClockwise$1, { style: { fill: 'var(--primary)' } }))));
|
|
35830
35806
|
};
|
|
35831
35807
|
|
|
35832
|
-
var css_248z$
|
|
35833
|
-
styleInject(css_248z$
|
|
35808
|
+
var css_248z$5 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.tooltip-content {\n border-radius: 4px;\n padding: 6px 10px;\n background-color: white;\n font-size: 0.85rem;\n font-weight: 500;\n border: 1px solid var(--slate8);\n box-shadow: hsla(206deg, 22%, 7%, 0.35) 0px 10px 38px -10px, hsla(206deg, 22%, 7%, 0.2) 0px 10px 20px -15px;\n}";
|
|
35809
|
+
styleInject(css_248z$5);
|
|
35834
35810
|
|
|
35835
35811
|
var AuthUser = function (config) {
|
|
35836
|
-
var
|
|
35812
|
+
var authUser = useAPIClient(config).authUser;
|
|
35837
35813
|
return (React__default.createElement(Avatar, { alt: authUser && authUser.name, src: authUser && authUser.picture, href: authUser && "https://app.pollination.cloud/".concat(authUser.username), fallback: authUser
|
|
35838
35814
|
&& (authUser.name.split(' ').length > 1
|
|
35839
35815
|
? authUser.name.split(' ').map(function (n) { return n.charAt(0).toUpperCase(); }).join('')
|
|
@@ -39416,17 +39392,17 @@ const $409067139f391064$export$be92b6f5f03c0fe9 = $409067139f391064$export$6eb0f
|
|
|
39416
39392
|
const $409067139f391064$export$41fb9f06171c75f4 = $409067139f391064$export$c135dce7b15bbbdc;
|
|
39417
39393
|
const $409067139f391064$export$7c6e2c02157bb7d2 = $409067139f391064$export$aadde00976f34151;
|
|
39418
39394
|
|
|
39419
|
-
var css_248z$
|
|
39420
|
-
styleInject(css_248z$
|
|
39395
|
+
var css_248z$4 = "@keyframes open {\n from {\n height: 0;\n }\n to {\n height: var(--radix-collapsible-content-height);\n }\n}\n@keyframes close {\n from {\n height: var(--radix-collapsible-content-height);\n }\n to {\n height: 0;\n }\n}\n.collapse-content {\n overflow: hidden;\n font-size: inherit;\n color: inherit;\n}\n\n.collapse-content[data-state=open] {\n animation: open 300ms ease-out;\n}\n\n.collapse-content[data-state=closed] {\n animation: close 300ms ease-out;\n}";
|
|
39396
|
+
styleInject(css_248z$4);
|
|
39421
39397
|
|
|
39422
|
-
var css_248z$
|
|
39423
|
-
styleInject(css_248z$
|
|
39398
|
+
var css_248z$3 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.poll-button {\n z-index: 10;\n display: flex;\n justify-content: center;\n background-color: var(--primary);\n border: 1px solid var(--primary);\n color: white;\n padding: 8px 16px;\n float: left;\n align-items: center;\n gap: 8px;\n transition: background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s, color 0.25s;\n text-overflow: ellipsis;\n max-width: 200px;\n overflow: hidden;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.poll-button:active {\n box-shadow: inset 0px 0px 9px 4px #096dd9;\n}\n\n.poll-button:disabled {\n background-color: var(--slate3);\n color: var(--slate11);\n cursor: default;\n border-color: var(--slate11);\n cursor: default;\n box-shadow: none;\n}";
|
|
39399
|
+
styleInject(css_248z$3);
|
|
39424
39400
|
|
|
39425
39401
|
var ICON_SIZE = 18;
|
|
39426
39402
|
var Button = function (_a) {
|
|
39427
39403
|
var children = _a.children, loading = _a.loading, props = __rest$2(_a, ["children", "loading"]);
|
|
39428
39404
|
return (React__default.createElement("button", __assign$3({ "data-testid": "Button", className: "poll-button" }, props),
|
|
39429
|
-
loading && React__default.createElement(ArrowClockwise$1, { className: "spin", size: ICON_SIZE, style: { fill: 'white' } }),
|
|
39405
|
+
loading && !props.disabled && React__default.createElement(ArrowClockwise$1, { className: "spin", size: ICON_SIZE, style: { fill: 'white' } }),
|
|
39430
39406
|
children));
|
|
39431
39407
|
};
|
|
39432
39408
|
|
|
@@ -39608,7 +39584,7 @@ var getFileIcon$1 = function (type) {
|
|
|
39608
39584
|
|
|
39609
39585
|
var SelectCloudArtifacts = function (_a) {
|
|
39610
39586
|
var _b, _c;
|
|
39611
|
-
var projectOwner = _a.projectOwner, projectName = _a.projectName, onChange = _a.onChange, client = _a.client;
|
|
39587
|
+
var projectOwner = _a.projectOwner, projectName = _a.projectName, fileNameMatch = _a.fileNameMatch, onChange = _a.onChange, client = _a.client;
|
|
39612
39588
|
var host = getHost();
|
|
39613
39589
|
var listArtifacts = useArtifacts(projectOwner, projectName, client).listArtifacts;
|
|
39614
39590
|
var _d = useState(false), loading = _d[0], setLoading = _d[1];
|
|
@@ -39620,11 +39596,11 @@ var SelectCloudArtifacts = function (_a) {
|
|
|
39620
39596
|
listArtifacts(path)
|
|
39621
39597
|
.then(function (facts) {
|
|
39622
39598
|
var folders = facts.filter(function (f) { return f.file_type === 'folder'; });
|
|
39623
|
-
var files = facts.filter(function (f) { return f.file_type === 'file'; });
|
|
39599
|
+
var files = facts.filter(function (f) { return f.file_type === 'file' && (f.file_name.match(fileNameMatch) || !fileNameMatch); });
|
|
39624
39600
|
setArtifacts({ folders: folders, files: files });
|
|
39625
39601
|
})
|
|
39626
39602
|
.finally(function () { return setLoading(false); });
|
|
39627
|
-
}, [client, host, listArtifacts, path]);
|
|
39603
|
+
}, [client, fileNameMatch, host, listArtifacts, path]);
|
|
39628
39604
|
useEffect(function () {
|
|
39629
39605
|
if (!selArtifact)
|
|
39630
39606
|
return;
|
|
@@ -39992,11 +39968,16 @@ var SelectLocalArtifacts = function (_a) {
|
|
|
39992
39968
|
} }, "Showing ".concat((_b = artifacts.folders.length) !== null && _b !== void 0 ? _b : 0, " folder").concat(artifacts.folders.length === 1 ? '' : 's', ", and ").concat((_c = artifacts.files.length) !== null && _c !== void 0 ? _c : 0, " file").concat(artifacts.files.length === 1 ? '' : 's', "."))), maxHeight: 340, stateReducer: stateReducer }));
|
|
39993
39969
|
};
|
|
39994
39970
|
|
|
39971
|
+
var css_248z$2 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.btn-group {\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n}\n\n.btn-group:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.btn-group-disabled:hover {\n box-shadow: none;\n}\n\n.btn-group input {\n width: 100%;\n}\n\n.btn-group input::placeholder {\n color: var(--primary1);\n}\n\n.btn-group * {\n background-color: var(--primary);\n color: white;\n transition: background-color 0.125s ease-in-out;\n}\n\n.btn-group-disabled * {\n background-color: var(--slate5);\n border-color: var(--slate11) !important;\n color: var(--slate11);\n cursor: default !important;\n}\n\n.btn-group i,\n.btn-group svg {\n background-color: rgba(0, 0, 0, 0);\n}\n\n.btn-group button,\n.btn-group input {\n display: flex;\n padding: 8px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: 1px solid var(--primary);\n border-left-color: #096dd9;\n transition: box-shadow 0.125s ease-in-out;\n line-height: 1.5rem;\n}\n\n.btn-group button:active {\n box-shadow: inset 0px 0px 14px 14px #096dd9;\n}\n\n.btn-group button:first-child,\n.btn-group input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n border-left-color: var(--primary);\n}\n\n.btn-group button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n\n.btn-group button:not(:last-child),\n.btn-group input:not(:last-child) {\n border-right: none;\n}\n\n.btn-group button:focus-visible,\n.btn-group input:focus-visible {\n outline: none;\n}\n\n.btn-group button:focus,\n.btn-group input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.btn-group:after {\n content: \"\";\n clear: both;\n display: table;\n}\n\n.btn-group button:hover,\n.btn-group input:hover {\n background-color: var(--primary2);\n z-index: 11;\n}\n\n.btn-group-disabled:hover button:hover {\n box-shadow: none;\n}\n\n.btn-group-disabled:hover button:hover,\n.btn-group-disabled:hover input:hover {\n background-color: var(--slate5);\n}\n\n.options-content {\n font-size: clamp(0.65rem, 8vw - 0.75rem, 0.85rem);\n}";
|
|
39972
|
+
styleInject(css_248z$2);
|
|
39973
|
+
|
|
39995
39974
|
var ComboFileSelector = function (_a) {
|
|
39996
|
-
var projectOwner = _a.projectOwner, projectName = _a.projectName, defaultOption = _a.defaultOption, onChange = _a.onChange, client = _a.client, inputProps = _a.inputProps;
|
|
39975
|
+
var projectOwner = _a.projectOwner, projectName = _a.projectName, defaultOption = _a.defaultOption, onChange = _a.onChange, _b = _a.disabled, disabled = _b === void 0 ? false : _b, client = _a.client, inputProps = _a.inputProps;
|
|
39997
39976
|
var host = getHost();
|
|
39998
|
-
var
|
|
39999
|
-
|
|
39977
|
+
var _c = useState(defaultOption ? defaultOption : host !== 'web' ? 'get_model' : 'get_cloud'), option = _c[0], setOption = _c[1];
|
|
39978
|
+
useEffect(function () {
|
|
39979
|
+
setOption(defaultOption);
|
|
39980
|
+
}, [defaultOption]);
|
|
40000
39981
|
return (React__default.createElement("div", { "data-testid": "ComboFileSelector", style: {
|
|
40001
39982
|
display: 'flex',
|
|
40002
39983
|
flexDirection: 'column',
|
|
@@ -40007,30 +39988,30 @@ var ComboFileSelector = function (_a) {
|
|
|
40007
39988
|
} },
|
|
40008
39989
|
React__default.createElement("button", { type: 'button', disabled: disabled, onClick: function () { return setOption('get_cloud'); }, style: {
|
|
40009
39990
|
display: 'flex',
|
|
40010
|
-
boxShadow: option === 'get_cloud' ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
39991
|
+
boxShadow: !disabled && option === 'get_cloud' ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
40011
39992
|
} },
|
|
40012
39993
|
React__default.createElement(CloudPlus$1, null),
|
|
40013
39994
|
"Cloud"),
|
|
40014
39995
|
React__default.createElement("button", { type: 'button', disabled: disabled, onClick: function () { return setOption('get_file'); }, style: {
|
|
40015
39996
|
display: 'flex',
|
|
40016
|
-
boxShadow: option === 'get_file' ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
39997
|
+
boxShadow: !disabled && option === 'get_file' ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
40017
39998
|
} },
|
|
40018
39999
|
React__default.createElement(FileEarmarkArrowUp$1, null),
|
|
40019
40000
|
"Upload"),
|
|
40020
|
-
host !== 'web' &&
|
|
40021
|
-
React__default.createElement(
|
|
40022
|
-
|
|
40023
|
-
|
|
40024
|
-
|
|
40025
|
-
|
|
40026
|
-
|
|
40027
|
-
|
|
40028
|
-
|
|
40029
|
-
|
|
40030
|
-
|
|
40031
|
-
|
|
40032
|
-
|
|
40033
|
-
|
|
40001
|
+
host !== 'web' || option === 'get_model' &&
|
|
40002
|
+
React__default.createElement("button", { type: 'button', disabled: disabled, onClick: function () { return setOption('get_model'); }, style: {
|
|
40003
|
+
display: 'flex',
|
|
40004
|
+
boxShadow: !disabled && option === 'get_model' ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
40005
|
+
} },
|
|
40006
|
+
React__default.createElement(ArrowUpSquare$1, null),
|
|
40007
|
+
"CAD"),
|
|
40008
|
+
host !== 'web' || option === 'get_local' &&
|
|
40009
|
+
React__default.createElement("button", { type: 'button', disabled: disabled, onClick: function () { return setOption('get_local'); }, style: {
|
|
40010
|
+
display: 'flex',
|
|
40011
|
+
boxShadow: !disabled && option === 'get_local' ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
40012
|
+
} },
|
|
40013
|
+
React__default.createElement(Laptop$1, null),
|
|
40014
|
+
"Local")),
|
|
40034
40015
|
(function () {
|
|
40035
40016
|
switch (option) {
|
|
40036
40017
|
case 'get_file':
|
|
@@ -40210,7 +40191,7 @@ var RecipeInputsForm = function (_a) {
|
|
|
40210
40191
|
// @ts-ignore
|
|
40211
40192
|
name: input.name, control: control, render: function (_a) {
|
|
40212
40193
|
var onChange = _a.field.onChange;
|
|
40213
|
-
return (React__default.createElement(RadioList, { items: input.spec.enum, name: input.name,
|
|
40194
|
+
return (React__default.createElement(RadioList, { items: input.spec.enum, name: input.name, defaultValue: input.default, onChange: onChange }));
|
|
40214
40195
|
} }) :
|
|
40215
40196
|
React__default.createElement(TextInput, { inputProps: __assign$3(__assign$3({}, inputProps), { defaultValue: input.default }), reset: handleReset });
|
|
40216
40197
|
case 'DAGNumberInput':
|
|
@@ -40245,15 +40226,16 @@ var RecipeInputsForm = function (_a) {
|
|
|
40245
40226
|
var css_248z$1 = ".react-tabs {\n -webkit-tap-highlight-color: transparent;\n}\n\n.react-tabs__tab-list {\n border-bottom: 1px solid #aaa;\n margin: 0 0 10px;\n padding: 0;\n}\n\n.react-tabs__tab {\n display: inline-block;\n border: 1px solid transparent;\n border-bottom: none;\n bottom: -1px;\n position: relative;\n list-style: none;\n padding: 6px 12px;\n cursor: pointer;\n}\n\n.react-tabs__tab--selected {\n background: #fff;\n border-color: #aaa;\n color: black;\n border-radius: 5px 5px 0 0;\n}\n\n.react-tabs__tab--disabled {\n color: GrayText;\n cursor: default;\n}\n\n.react-tabs__tab:focus {\n outline: none;\n}\n\n.react-tabs__tab:focus:after {\n content: '';\n position: absolute;\n height: 5px;\n left: -4px;\n right: -4px;\n bottom: -5px;\n background: #fff;\n}\n\n.react-tabs__tab-panel {\n display: none;\n}\n\n.react-tabs__tab-panel--selected {\n display: block;\n}\n";
|
|
40246
40227
|
styleInject(css_248z$1);
|
|
40247
40228
|
|
|
40248
|
-
var css_248z = "";
|
|
40229
|
+
var css_248z = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n.btn-group {\n display: flex;\n border-radius: 4px;\n box-sizing: border-box;\n}\n\n.btn-group:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.btn-group-disabled:hover {\n box-shadow: none;\n}\n\n.btn-group input {\n width: 100%;\n}\n\n.btn-group input::placeholder {\n color: var(--primary1);\n}\n\n.btn-group * {\n background-color: var(--primary);\n color: white;\n transition: background-color 0.125s ease-in-out;\n}\n\n.btn-group-disabled * {\n background-color: var(--slate5);\n border-color: var(--slate11) !important;\n color: var(--slate11);\n cursor: default !important;\n}\n\n.btn-group i,\n.btn-group svg {\n background-color: rgba(0, 0, 0, 0);\n}\n\n.btn-group button,\n.btn-group input {\n display: flex;\n padding: 8px 10px;\n cursor: pointer;\n float: left;\n z-index: 10;\n align-items: center;\n gap: 8px;\n border: 1px solid var(--primary);\n border-left-color: #096dd9;\n transition: box-shadow 0.125s ease-in-out;\n line-height: 1.5rem;\n}\n\n.btn-group button:active {\n box-shadow: inset 0px 0px 14px 14px #096dd9;\n}\n\n.btn-group button:first-child,\n.btn-group input:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n border-left-color: var(--primary);\n}\n\n.btn-group button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n}\n\n.btn-group button:not(:last-child),\n.btn-group input:not(:last-child) {\n border-right: none;\n}\n\n.btn-group button:focus-visible,\n.btn-group input:focus-visible {\n outline: none;\n}\n\n.btn-group button:focus,\n.btn-group input:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.btn-group:after {\n content: \"\";\n clear: both;\n display: table;\n}\n\n.btn-group button:hover,\n.btn-group input:hover {\n background-color: var(--primary2);\n z-index: 11;\n}\n\n.btn-group-disabled:hover button:hover {\n box-shadow: none;\n}\n\n.btn-group-disabled:hover button:hover,\n.btn-group-disabled:hover input:hover {\n background-color: var(--slate5);\n}\n\n.options-content {\n font-size: clamp(0.65rem, 8vw - 0.75rem, 0.85rem);\n}";
|
|
40249
40230
|
styleInject(css_248z);
|
|
40250
40231
|
|
|
40251
|
-
// Generated with util/create-component.js
|
|
40252
40232
|
var ConfigureLocalRun = function (_a) {
|
|
40253
|
-
var _b = _a.defaultOption, defaultOption = _b === void 0 ? 'cloud' : _b;
|
|
40254
|
-
var
|
|
40255
|
-
|
|
40256
|
-
|
|
40233
|
+
var _b = _a.defaultOption, defaultOption = _b === void 0 ? 'cloud' : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c;
|
|
40234
|
+
var _d = useState(defaultOption), option = _d[0], setOption = _d[1];
|
|
40235
|
+
useEffect(function () {
|
|
40236
|
+
setOption(defaultOption);
|
|
40237
|
+
}, [defaultOption]);
|
|
40238
|
+
return (React__default.createElement("div", { className: disabled && 'btn-group-disabled', style: {
|
|
40257
40239
|
display: 'flex',
|
|
40258
40240
|
justifyContent: 'space-between',
|
|
40259
40241
|
alignItems: 'end'
|
|
@@ -40263,22 +40245,24 @@ var ConfigureLocalRun = function (_a) {
|
|
|
40263
40245
|
} },
|
|
40264
40246
|
React__default.createElement("button", { type: 'button', disabled: disabled, onClick: function () { return setOption('cloud'); }, style: {
|
|
40265
40247
|
display: 'flex',
|
|
40266
|
-
boxShadow: option === 'cloud' ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
40248
|
+
boxShadow: !disabled && option === 'cloud' ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
40267
40249
|
} },
|
|
40268
40250
|
React__default.createElement(CloudPlus$1, null),
|
|
40269
40251
|
"Cloud"),
|
|
40270
40252
|
React__default.createElement("button", { type: 'button', disabled: disabled, onClick: function () { return setOption('local'); }, style: {
|
|
40271
40253
|
display: 'flex',
|
|
40272
|
-
boxShadow: option === 'local' ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
40254
|
+
boxShadow: !disabled && option === 'local' ? 'inset 0px 0px 9px 4px #096dd9' : undefined
|
|
40273
40255
|
} },
|
|
40274
40256
|
React__default.createElement(Laptop$1, null),
|
|
40275
40257
|
"Local")),
|
|
40276
40258
|
React__default.createElement("div", { style: {
|
|
40277
40259
|
minWidth: 160,
|
|
40278
40260
|
maxWidth: 280,
|
|
40279
|
-
flex: 1
|
|
40261
|
+
flex: 1,
|
|
40280
40262
|
} },
|
|
40281
|
-
React__default.createElement(Label, { label: "Number of CPUs", disabled: option !== 'local'
|
|
40263
|
+
React__default.createElement(Label, { label: "Number of CPUs", disabled: option !== 'local', style: {
|
|
40264
|
+
backgroundColor: 'white'
|
|
40265
|
+
} },
|
|
40282
40266
|
React__default.createElement(NumberInput, { icon: React__default.createElement(Cpu$1, null), inputProps: {
|
|
40283
40267
|
min: 0,
|
|
40284
40268
|
step: 1,
|
|
@@ -40298,7 +40282,7 @@ var defaultStyle = {
|
|
|
40298
40282
|
display: 'flex',
|
|
40299
40283
|
flexDirection: 'column',
|
|
40300
40284
|
gap: 18,
|
|
40301
|
-
backgroundColor: '#FFFAEE'
|
|
40285
|
+
// backgroundColor: '#FFFAEE'
|
|
40302
40286
|
};
|
|
40303
40287
|
var CreateStudy = function (_a) {
|
|
40304
40288
|
var _b;
|
|
@@ -40317,7 +40301,7 @@ var CreateStudy = function (_a) {
|
|
|
40317
40301
|
// @ts-ignore
|
|
40318
40302
|
var projectOwner = !state || !state.account ? undefined : ((_b = state.account.username) !== null && _b !== void 0 ? _b : state.account.account_name);
|
|
40319
40303
|
var projectSlug = !state || !state.project ? undefined : state.project.slug.split('/')[1];
|
|
40320
|
-
var
|
|
40304
|
+
var _e = useCreateStudy(projectOwner, projectSlug, client), host = _e.host, createStudy = _e.createStudy;
|
|
40321
40305
|
useEffect(function () {
|
|
40322
40306
|
if (!state.recipe)
|
|
40323
40307
|
return;
|
|
@@ -40381,14 +40365,14 @@ var CreateStudy = function (_a) {
|
|
|
40381
40365
|
React__default.createElement(SelectRecipe, { authUser: authUser, client: client, projectOwner: projectOwner, projectName: state.project ? state === null || state === void 0 ? void 0 : state.project.name : undefined, setSelRecipe: setSelRecipe })))),
|
|
40382
40366
|
state.recipe &&
|
|
40383
40367
|
React__default.createElement(TabPanel, { style: {
|
|
40384
|
-
padding:
|
|
40368
|
+
padding: 8
|
|
40385
40369
|
} },
|
|
40386
40370
|
React__default.createElement("div", { style: {
|
|
40387
40371
|
display: 'flex',
|
|
40388
40372
|
flexDirection: 'column',
|
|
40389
40373
|
gap: 24
|
|
40390
40374
|
} },
|
|
40391
|
-
React__default.createElement(ConfigureLocalRun, null),
|
|
40375
|
+
host !== 'web' && React__default.createElement(ConfigureLocalRun, null),
|
|
40392
40376
|
React__default.createElement(RecipeInputsForm, { recipe: state.recipe, onSubmit: function (data) { return createStudy({ name: state === null || state === void 0 ? void 0 : state.name, source: state === null || state === void 0 ? void 0 : state.recipe.source, description: state === null || state === void 0 ? void 0 : state.description }, data); }, disabled: !state.name || !state.account || !state.project || !state.recipe, projectName: projectSlug, projectOwner: projectOwner, client: client }))))));
|
|
40393
40377
|
};
|
|
40394
40378
|
|
|
@@ -40672,22 +40656,22 @@ var Action$2;
|
|
|
40672
40656
|
var getAction$2 = function (key) {
|
|
40673
40657
|
switch (key) {
|
|
40674
40658
|
case 'add':
|
|
40675
|
-
return '
|
|
40659
|
+
return 'AddGeometry';
|
|
40676
40660
|
case 'delete':
|
|
40677
|
-
return '
|
|
40661
|
+
return 'DeleteGeometry';
|
|
40678
40662
|
case 'preview':
|
|
40679
|
-
return '
|
|
40663
|
+
return 'PreviewGeometry';
|
|
40680
40664
|
case 'clear':
|
|
40681
|
-
return '
|
|
40665
|
+
return 'ClearGeometry';
|
|
40682
40666
|
case 'subscribe-preview':
|
|
40683
|
-
return '
|
|
40667
|
+
return 'SubscribePreviewGeometry';
|
|
40684
40668
|
}
|
|
40685
40669
|
};
|
|
40686
40670
|
var SendGeometry = function (_a) {
|
|
40687
40671
|
var geometry = _a.geometry, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, _b = _a.buttonLabel, buttonLabel = _b === void 0 ? 'Send Geometry' : _b;
|
|
40688
40672
|
var _c = useState(defaultAction !== null && defaultAction !== void 0 ? defaultAction : Action$2.preview), selOpt = _c[0], setSelOpt = _c[1];
|
|
40689
40673
|
var _d = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0], setKey = _d[1];
|
|
40690
|
-
var
|
|
40674
|
+
var sendMessage = useSendMessage().sendMessage;
|
|
40691
40675
|
useEffect(function () {
|
|
40692
40676
|
setSelOpt(defaultAction);
|
|
40693
40677
|
}, [defaultAction]);
|
|
@@ -40695,9 +40679,9 @@ var SendGeometry = function (_a) {
|
|
|
40695
40679
|
setKey(defaultKey);
|
|
40696
40680
|
}, [defaultKey]);
|
|
40697
40681
|
useEffect(function () {
|
|
40698
|
-
if (!
|
|
40682
|
+
if (!sendMessage || selOpt !== 'subscribe-preview')
|
|
40699
40683
|
return;
|
|
40700
|
-
|
|
40684
|
+
sendMessage('SubscribePreviewGeometry', {
|
|
40701
40685
|
data: geometry,
|
|
40702
40686
|
uniqueId: key,
|
|
40703
40687
|
options: {
|
|
@@ -40706,7 +40690,7 @@ var SendGeometry = function (_a) {
|
|
|
40706
40690
|
},
|
|
40707
40691
|
});
|
|
40708
40692
|
return function () {
|
|
40709
|
-
|
|
40693
|
+
sendMessage('ClearGeometry', {
|
|
40710
40694
|
data: geometry,
|
|
40711
40695
|
uniqueId: key,
|
|
40712
40696
|
options: {
|
|
@@ -40715,11 +40699,11 @@ var SendGeometry = function (_a) {
|
|
|
40715
40699
|
},
|
|
40716
40700
|
});
|
|
40717
40701
|
};
|
|
40718
|
-
}, [selOpt, geometry,
|
|
40719
|
-
return (React__default.createElement(SettingsButton, { disabled: !
|
|
40720
|
-
if (!
|
|
40702
|
+
}, [selOpt, geometry, key, sendMessage]);
|
|
40703
|
+
return (React__default.createElement(SettingsButton, { disabled: !sendMessage, onClick: function () {
|
|
40704
|
+
if (!sendMessage)
|
|
40721
40705
|
return;
|
|
40722
|
-
|
|
40706
|
+
sendMessage(getAction$2(selOpt), {
|
|
40723
40707
|
data: geometry,
|
|
40724
40708
|
uniqueId: key,
|
|
40725
40709
|
options: {
|
|
@@ -40738,7 +40722,7 @@ var SendGeometry = function (_a) {
|
|
|
40738
40722
|
label: 'Preview',
|
|
40739
40723
|
checked: selOpt === Action$2.preview,
|
|
40740
40724
|
icon: React__default.createElement(Eyeglasses$1, { size: 16 }),
|
|
40741
|
-
disabled: !
|
|
40725
|
+
disabled: !sendMessage,
|
|
40742
40726
|
onSelect: function () {
|
|
40743
40727
|
setSelOpt(function (state) { return (state === Action$2.preview ? undefined : Action$2.preview); });
|
|
40744
40728
|
},
|
|
@@ -40749,7 +40733,7 @@ var SendGeometry = function (_a) {
|
|
|
40749
40733
|
label: 'Add',
|
|
40750
40734
|
checked: selOpt === Action$2.add,
|
|
40751
40735
|
icon: React__default.createElement(Building$1, { size: 16 }),
|
|
40752
|
-
disabled: !
|
|
40736
|
+
disabled: !sendMessage,
|
|
40753
40737
|
onSelect: function () {
|
|
40754
40738
|
setSelOpt(function (state) { return (state === Action$2.add ? undefined : Action$2.add); });
|
|
40755
40739
|
},
|
|
@@ -40760,7 +40744,7 @@ var SendGeometry = function (_a) {
|
|
|
40760
40744
|
label: 'Delete',
|
|
40761
40745
|
checked: selOpt === Action$2.delete,
|
|
40762
40746
|
icon: React__default.createElement(Trash$1, { size: 16 }),
|
|
40763
|
-
disabled: !
|
|
40747
|
+
disabled: !sendMessage,
|
|
40764
40748
|
onSelect: function () {
|
|
40765
40749
|
setSelOpt(function (state) { return (state === Action$2.delete ? undefined : Action$2.delete); });
|
|
40766
40750
|
},
|
|
@@ -40771,7 +40755,7 @@ var SendGeometry = function (_a) {
|
|
|
40771
40755
|
label: 'Clear',
|
|
40772
40756
|
checked: selOpt === Action$2.clear,
|
|
40773
40757
|
icon: React__default.createElement(Recycle$1, { size: 16 }),
|
|
40774
|
-
disabled: !
|
|
40758
|
+
disabled: !sendMessage,
|
|
40775
40759
|
onSelect: function () {
|
|
40776
40760
|
setSelOpt(function (state) { return (state === Action$2.clear ? undefined : Action$2.clear); });
|
|
40777
40761
|
},
|
|
@@ -40782,7 +40766,7 @@ var SendGeometry = function (_a) {
|
|
|
40782
40766
|
label: 'Subscribe Preview',
|
|
40783
40767
|
checked: selOpt === Action$2.subscribePreview,
|
|
40784
40768
|
icon: React__default.createElement(ArrowRepeat$1, { size: 16 }),
|
|
40785
|
-
disabled: !
|
|
40769
|
+
disabled: !sendMessage,
|
|
40786
40770
|
onSelect: function () {
|
|
40787
40771
|
setSelOpt(function (state) { return (state === Action$2.subscribePreview ? undefined : Action$2.subscribePreview); });
|
|
40788
40772
|
},
|
|
@@ -40807,13 +40791,13 @@ var Action$1;
|
|
|
40807
40791
|
var getAction$1 = function (key) {
|
|
40808
40792
|
switch (key) {
|
|
40809
40793
|
case 'add':
|
|
40810
|
-
return '
|
|
40794
|
+
return 'AddHBJSON';
|
|
40811
40795
|
case 'preview':
|
|
40812
|
-
return '
|
|
40796
|
+
return 'PreviewHBJSON';
|
|
40813
40797
|
case 'clear':
|
|
40814
|
-
return '
|
|
40798
|
+
return 'ClearHBJSON';
|
|
40815
40799
|
case 'subscribe-preview':
|
|
40816
|
-
return '
|
|
40800
|
+
return 'SubscribePreviewHBJSON';
|
|
40817
40801
|
}
|
|
40818
40802
|
};
|
|
40819
40803
|
var SendModel = function (_a) {
|
|
@@ -40830,7 +40814,7 @@ var SendModel = function (_a) {
|
|
|
40830
40814
|
useEffect(function () {
|
|
40831
40815
|
if (!sendHbjson || selOpt !== Action$1.subscribePreview)
|
|
40832
40816
|
return;
|
|
40833
|
-
sendHbjson('
|
|
40817
|
+
sendHbjson('SubscribePreviewHBJSON', {
|
|
40834
40818
|
data: hbjson,
|
|
40835
40819
|
uniqueId: key,
|
|
40836
40820
|
options: {
|
|
@@ -40839,7 +40823,7 @@ var SendModel = function (_a) {
|
|
|
40839
40823
|
},
|
|
40840
40824
|
});
|
|
40841
40825
|
return function () {
|
|
40842
|
-
sendHbjson('
|
|
40826
|
+
sendHbjson('ClearHBJSON', {
|
|
40843
40827
|
data: hbjson,
|
|
40844
40828
|
uniqueId: key,
|
|
40845
40829
|
options: {
|
|
@@ -40933,18 +40917,18 @@ var getAction = function (key) {
|
|
|
40933
40917
|
case 'delete':
|
|
40934
40918
|
return 'DeleteResults';
|
|
40935
40919
|
case 'preview':
|
|
40936
|
-
return '
|
|
40920
|
+
return 'PreviewResults';
|
|
40937
40921
|
case 'clear':
|
|
40938
40922
|
return 'ClearResults';
|
|
40939
40923
|
case 'subscribe-preview':
|
|
40940
|
-
return '
|
|
40924
|
+
return 'SubscribePreviewResults';
|
|
40941
40925
|
}
|
|
40942
40926
|
};
|
|
40943
40927
|
var SendResults = function (_a) {
|
|
40944
40928
|
var results = _a.results, defaultAction = _a.defaultAction, defaultKey = _a.defaultKey, optionsConfig = _a.optionsConfig, _b = _a.buttonLabel, buttonLabel = _b === void 0 ? 'Send Results' : _b;
|
|
40945
40929
|
var _c = useState(defaultAction !== null && defaultAction !== void 0 ? defaultAction : Action.preview), selOpt = _c[0], setSelOpt = _c[1];
|
|
40946
40930
|
var _d = useState(defaultKey !== null && defaultKey !== void 0 ? defaultKey : performance.now().toString()), key = _d[0], setKey = _d[1];
|
|
40947
|
-
var
|
|
40931
|
+
var sendMessage = useSendMessage().sendMessage;
|
|
40948
40932
|
useEffect(function () {
|
|
40949
40933
|
setSelOpt(defaultAction);
|
|
40950
40934
|
}, [defaultAction]);
|
|
@@ -40952,9 +40936,9 @@ var SendResults = function (_a) {
|
|
|
40952
40936
|
setKey(defaultKey);
|
|
40953
40937
|
}, [defaultKey]);
|
|
40954
40938
|
useEffect(function () {
|
|
40955
|
-
if (!
|
|
40939
|
+
if (!sendMessage || selOpt !== Action.subscribePreview)
|
|
40956
40940
|
return;
|
|
40957
|
-
|
|
40941
|
+
sendMessage('SubscribePreviewResults', {
|
|
40958
40942
|
data: results,
|
|
40959
40943
|
uniqueId: key,
|
|
40960
40944
|
options: {
|
|
@@ -40963,7 +40947,7 @@ var SendResults = function (_a) {
|
|
|
40963
40947
|
},
|
|
40964
40948
|
});
|
|
40965
40949
|
return function () {
|
|
40966
|
-
|
|
40950
|
+
sendMessage('ClearResults', {
|
|
40967
40951
|
data: results,
|
|
40968
40952
|
uniqueId: key,
|
|
40969
40953
|
options: {
|
|
@@ -40972,11 +40956,11 @@ var SendResults = function (_a) {
|
|
|
40972
40956
|
},
|
|
40973
40957
|
});
|
|
40974
40958
|
};
|
|
40975
|
-
}, [key, results, selOpt,
|
|
40976
|
-
return (React__default.createElement(SettingsButton, { disabled: !
|
|
40977
|
-
if (!
|
|
40959
|
+
}, [key, results, selOpt, sendMessage]);
|
|
40960
|
+
return (React__default.createElement(SettingsButton, { disabled: !sendMessage, onClick: function () {
|
|
40961
|
+
if (!sendMessage)
|
|
40978
40962
|
return;
|
|
40979
|
-
|
|
40963
|
+
sendMessage(getAction(selOpt), {
|
|
40980
40964
|
data: results,
|
|
40981
40965
|
uniqueId: key,
|
|
40982
40966
|
options: {
|
|
@@ -40995,7 +40979,7 @@ var SendResults = function (_a) {
|
|
|
40995
40979
|
label: 'Preview',
|
|
40996
40980
|
checked: selOpt === Action.preview,
|
|
40997
40981
|
icon: React__default.createElement(Eyeglasses$1, { size: 16 }),
|
|
40998
|
-
disabled: !
|
|
40982
|
+
disabled: !sendMessage,
|
|
40999
40983
|
onSelect: function () {
|
|
41000
40984
|
setSelOpt(function (state) { return (state === Action.preview ? undefined : Action.preview); });
|
|
41001
40985
|
},
|
|
@@ -41006,7 +40990,7 @@ var SendResults = function (_a) {
|
|
|
41006
40990
|
label: 'Add',
|
|
41007
40991
|
checked: selOpt === Action.add,
|
|
41008
40992
|
icon: React__default.createElement(Building$1, { size: 16 }),
|
|
41009
|
-
disabled: !
|
|
40993
|
+
disabled: !sendMessage,
|
|
41010
40994
|
onSelect: function () {
|
|
41011
40995
|
setSelOpt(function (state) { return (state === Action.add ? undefined : Action.add); });
|
|
41012
40996
|
},
|
|
@@ -41017,7 +41001,7 @@ var SendResults = function (_a) {
|
|
|
41017
41001
|
label: 'Delete',
|
|
41018
41002
|
checked: selOpt === Action.delete,
|
|
41019
41003
|
icon: React__default.createElement(Trash$1, { size: 16 }),
|
|
41020
|
-
disabled: !
|
|
41004
|
+
disabled: !sendMessage,
|
|
41021
41005
|
onSelect: function () {
|
|
41022
41006
|
setSelOpt(function (state) { return (state === Action.delete ? undefined : Action.delete); });
|
|
41023
41007
|
},
|
|
@@ -41028,7 +41012,7 @@ var SendResults = function (_a) {
|
|
|
41028
41012
|
label: 'Clear',
|
|
41029
41013
|
checked: selOpt === Action.clear,
|
|
41030
41014
|
icon: React__default.createElement(Recycle$1, { size: 16 }),
|
|
41031
|
-
disabled: !
|
|
41015
|
+
disabled: !sendMessage,
|
|
41032
41016
|
onSelect: function () {
|
|
41033
41017
|
setSelOpt(function (state) { return (state === Action.clear ? undefined : Action.clear); });
|
|
41034
41018
|
},
|
|
@@ -41039,7 +41023,7 @@ var SendResults = function (_a) {
|
|
|
41039
41023
|
label: 'Subscribe Preview',
|
|
41040
41024
|
checked: selOpt === Action.subscribePreview,
|
|
41041
41025
|
icon: React__default.createElement(ArrowRepeat$1, { size: 16 }),
|
|
41042
|
-
disabled: !
|
|
41026
|
+
disabled: !sendMessage,
|
|
41043
41027
|
onSelect: function () {
|
|
41044
41028
|
setSelOpt(function (state) { return (state === Action.subscribePreview ? undefined : Action.subscribePreview); });
|
|
41045
41029
|
},
|
|
@@ -41052,5 +41036,5 @@ var SendResults = function (_a) {
|
|
|
41052
41036
|
}], asButtons: true, label: buttonLabel, helpText: "".concat(selOpt ? selOpt.charAt(0).toUpperCase() + selOpt.replace('-', ' ').slice(1) : 'Send', " results.") }));
|
|
41053
41037
|
};
|
|
41054
41038
|
|
|
41055
|
-
export { APIClient, AuthUser, ComboFileSelector, ConfigureLocalRun, CreateStudy, GetGeometry, GetModel, SelectAccount, SelectCloudArtifacts, SelectLocalArtifacts, SelectProject, SelectRecipe, SelectRun, SelectStudy, SendGeometry, SendModel, SendResults, checkDotNet, checkRuby, getHost, sendMessageDotNet, sendMessageRuby, useAPIClient, useArtifacts, useCreateStudy, useGetGeometry, useGetHbjson, useHbjsontoVTK, useManageSettings, useRunCommand,
|
|
41039
|
+
export { APIClient, AuthUser, ComboFileSelector, ConfigureLocalRun, CreateStudy, GetGeometry, GetModel, SelectAccount, SelectCloudArtifacts, SelectLocalArtifacts, SelectProject, SelectRecipe, SelectRun, SelectStudy, SendGeometry, SendModel, SendResults, checkDotNet, checkRuby, getHost, sendMessageDotNet, sendMessageRuby, useAPIClient, useArtifacts, useCreateStudy, useGetGeometry, useGetHbjson, useHbjsontoVTK, useManageSettings, useRunCommand, useSendHbjson, useSendMessage };
|
|
41056
41040
|
//# sourceMappingURL=index.esm.js.map
|