@finos/legend-application-studio 28.18.42 → 28.18.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.d.ts +23 -0
  2. package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.d.ts.map +1 -0
  3. package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.js +34 -0
  4. package/lib/components/editor/editor-group/function-activator/ActivatorFormComponents.js.map +1 -0
  5. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.d.ts.map +1 -1
  6. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js +76 -108
  7. package/lib/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.js.map +1 -1
  8. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.d.ts.map +1 -1
  9. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js +4 -13
  10. package/lib/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.js.map +1 -1
  11. package/lib/index.css +1 -1
  12. package/lib/package.json +1 -1
  13. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.d.ts +8 -3
  14. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.d.ts.map +1 -1
  15. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js +15 -10
  16. package/lib/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js.map +1 -1
  17. package/package.json +6 -6
  18. package/src/components/editor/editor-group/function-activator/ActivatorFormComponents.tsx +97 -0
  19. package/src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx +347 -482
  20. package/src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx +7 -42
  21. package/src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts +18 -11
  22. package/tsconfig.json +1 -0
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { type FunctionActivator } from '@finos/legend-graph';
17
+ export declare const ActivatorOwnershipForm: ((props: {
18
+ activator: FunctionActivator;
19
+ isReadOnly: boolean;
20
+ }) => import("react/jsx-runtime").JSX.Element) & {
21
+ displayName: string;
22
+ };
23
+ //# sourceMappingURL=ActivatorFormComponents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivatorFormComponents.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/ActivatorFormComponents.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,qBAAqB,CAAC;AAQ7B,eAAO,MAAM,sBAAsB,WACzB;IAAE,SAAS,EAAE,iBAAiB,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE;;CAkE9D,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { ExclamationCircleIcon } from '@finos/legend-art';
18
+ import { DeploymentOwner, UserList, } from '@finos/legend-graph';
19
+ import { observer } from 'mobx-react-lite';
20
+ import { activator_setDeploymentOwner, activator_setOwnership, } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
21
+ import { useState } from 'react';
22
+ export const ActivatorOwnershipForm = observer((props) => {
23
+ const { activator, isReadOnly } = props;
24
+ const ownership = activator.ownership;
25
+ const [ownerInputValue, setOwner] = useState(ownership instanceof DeploymentOwner ? ownership.id : '');
26
+ const updateDeploymentIdentifier = (event) => {
27
+ if (!isReadOnly && ownership instanceof DeploymentOwner) {
28
+ setOwner(event.target.value);
29
+ activator_setDeploymentOwner(ownership, event.target.value);
30
+ }
31
+ };
32
+ return (_jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section", children: _jsx("div", { className: "panel__content__form__section__header__label", children: "Ownership" }) }), ownership instanceof DeploymentOwner && (_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__prompt", children: "Provide a deployment identifier that will own the Lambda." }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: isReadOnly, value: ownerInputValue, onChange: updateDeploymentIdentifier })] })), ownership instanceof UserList && (_jsxs("div", { className: "project-configuration-editor__project__structure__version", children: [_jsxs("div", { className: "project-configuration-editor__project__structure__version__label", children: [_jsx("div", { className: "project-configuration-editor__project__structure__version__label__status", children: _jsx(ExclamationCircleIcon, { className: "project-configuration-editor__project__structure__version__label__status--outdated" }) }), _jsx("div", { className: "project-configuration-editor__project__structure__version__label__text", children: `User List Ownership has been deprecated` })] }), _jsx("button", { className: "project-configuration-editor__project__structure__version__update-btn", disabled: isReadOnly, onClick: () => activator_setOwnership(activator, new DeploymentOwner('', activator)), tabIndex: -1, title: `Click to Change to Deployment`, children: "Change to Deployment" })] }))] }));
33
+ });
34
+ //# sourceMappingURL=ActivatorFormComponents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActivatorFormComponents.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/ActivatorFormComponents.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACL,eAAe,EACf,QAAQ,GAET,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,gFAAgF,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAC5C,CAAC,KAA4D,EAAE,EAAE;IAC/D,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACxC,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;IAEtC,MAAM,CAAC,eAAe,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAC1C,SAAS,YAAY,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CACzD,CAAC;IACF,MAAM,0BAA0B,GAE5B,CAAC,KAAK,EAAE,EAAE;QACZ,IAAI,CAAC,UAAU,IAAI,SAAS,YAAY,eAAe,EAAE,CAAC;YACxD,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC7B,4BAA4B,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,0BACE,cAAK,SAAS,EAAC,+BAA+B,YAC5C,cAAK,SAAS,EAAC,8CAA8C,0BAEvD,GACF,EACL,SAAS,YAAY,eAAe,IAAI,CACvC,eAAK,SAAS,EAAC,+BAA+B,aAC5C,cAAK,SAAS,EAAC,+CAA+C,0EAExD,EACN,gBACE,SAAS,EAAC,sCAAsC,EAChD,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,0BAA0B,GACpC,IACE,CACP,EACA,SAAS,YAAY,QAAQ,IAAI,CAChC,eAAK,SAAS,EAAC,2DAA2D,aACxE,eAAK,SAAS,EAAC,kEAAkE,aAC/E,cAAK,SAAS,EAAC,0EAA0E,YACvF,KAAC,qBAAqB,IAAC,SAAS,EAAC,oFAAoF,GAAG,GACpH,EACN,cAAK,SAAS,EAAC,wEAAwE,YACpF,yCAAyC,GACtC,IACF,EACN,iBACE,SAAS,EAAC,uEAAuE,EACjF,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,GAAG,EAAE,CACZ,sBAAsB,CACpB,SAAS,EACT,IAAI,eAAe,CAAC,EAAE,EAAE,SAAS,CAAC,CACnC,EAEH,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,+BAA+B,qCAG/B,IACL,CACP,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HostedServiceFunctionActivatorEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmDH,eAAO,MAAM,oCAAoC;;CAujB/C,CAAC"}
1
+ {"version":3,"file":"HostedServiceFunctionActivatorEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmEH,eAAO,MAAM,oCAAoC;;CAga/C,CAAC"}
@@ -14,24 +14,79 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
14
14
  * See the License for the specific language governing permissions and
15
15
  * limitations under the License.
16
16
  */
17
- import { Panel, PanelHeader, PanelContent, PanelForm, PURE_FunctionIcon, LongArrowRightIcon, PanelLoadingIndicator, PanelFormBooleanField, PanelFormValidatedTextField, TimesIcon, CustomSelectorInput, PencilIcon, ErrorIcon, } from '@finos/legend-art';
18
- import { DeploymentOwner, UserList, generateFunctionPrettyName, validate_ServicePattern, } from '@finos/legend-graph';
17
+ import { Panel, PanelHeader, PanelContent, PanelForm, PURE_FunctionIcon, LongArrowRightIcon, PanelLoadingIndicator, PanelFormBooleanField, PanelFormValidatedTextField, TimesIcon, clsx, PlusIcon, } from '@finos/legend-art';
18
+ import { Profile, StereotypeExplicitReference, generateFunctionPrettyName, stub_Profile, stub_Stereotype, stub_Tag, stub_TaggedValue, validate_ServicePattern, } from '@finos/legend-graph';
19
19
  import { observer } from 'mobx-react-lite';
20
20
  import { useApplicationStore } from '@finos/legend-application';
21
21
  import { useEditorStore } from '../../EditorStoreProvider.js';
22
- import { HostedServiceFunctionActivatorEditorState, OWNERSHIP_OPTIONS, MINIMUM_HOSTED_SERVICE_OWNERS, } from '../../../../stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js';
23
- import { hostedService_setAutoActivateUpdates, hostedService_setDocumentation, hostedService_setPattern, hostedService_removePatternParameter, hostedService_setStoreModel, hostedService_setGenerateLineage, activator_setDeploymentOwner, activator_updateUserOwnership, activator_deleteValueFromUserOwnership, activator_addUserOwner, } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
24
- import { useEffect, useMemo, useRef, useState } from 'react';
25
- import { LEGEND_STUDIO_TEST_ID } from '../../../../__lib__/LegendStudioTesting.js';
26
- import { debounce } from '@finos/legend-shared';
22
+ import { HostedServiceFunctionActivatorEditorState, ACTIVATOR_EDITOR_TAB, } from '../../../../stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.js';
23
+ import { hostedService_setAutoActivateUpdates, hostedService_setDocumentation, hostedService_setPattern, hostedService_removePatternParameter, hostedService_setStoreModel, } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
24
+ import { useCallback, useEffect, useRef, useState } from 'react';
25
+ import { prettyCONSTName } from '@finos/legend-shared';
27
26
  import { flowResult } from 'mobx';
27
+ import { ActivatorOwnershipForm } from './ActivatorFormComponents.js';
28
+ import { annotatedElement_addStereotype, annotatedElement_addTaggedValue, annotatedElement_deleteStereotype, annotatedElement_deleteTaggedValue, } from '../../../../stores/graph-modifier/DomainGraphModifierHelper.js';
29
+ import { CORE_DND_TYPE, } from '../../../../stores/editor/utils/DnDUtils.js';
30
+ import { useDrop } from 'react-dnd';
31
+ import { TaggedValueDragPreviewLayer, TaggedValueEditor, } from '../uml-editor/TaggedValueEditor.js';
32
+ import { StereotypeDragPreviewLayer, StereotypeSelector, } from '../uml-editor/StereotypeSelector.js';
28
33
  export const HostedServiceFunctionActivatorEditor = observer(() => {
29
34
  const editorStore = useEditorStore();
30
35
  const applicationStore = useApplicationStore();
31
36
  const editorState = editorStore.tabManagerState.getCurrentEditorState(HostedServiceFunctionActivatorEditorState);
37
+ const activatorElement = editorState.element;
32
38
  const isReadOnly = editorState.isReadOnly;
39
+ const selectedTab = editorState.selectedTab;
40
+ let addButtonTitle = '';
41
+ switch (selectedTab) {
42
+ case ACTIVATOR_EDITOR_TAB.TAGGED_VALUES:
43
+ addButtonTitle = 'Add tagged value';
44
+ break;
45
+ case ACTIVATOR_EDITOR_TAB.STEREOTYPES:
46
+ addButtonTitle = 'Add stereotype';
47
+ break;
48
+ default:
49
+ break;
50
+ }
51
+ // Tagged Values and Stereotype
52
+ const add = () => {
53
+ if (!isReadOnly) {
54
+ if (selectedTab === ACTIVATOR_EDITOR_TAB.TAGGED_VALUES) {
55
+ annotatedElement_addTaggedValue(activatorElement, stub_TaggedValue(stub_Tag(stub_Profile())));
56
+ }
57
+ else if (selectedTab === ACTIVATOR_EDITOR_TAB.STEREOTYPES) {
58
+ annotatedElement_addStereotype(activatorElement, StereotypeExplicitReference.create(stub_Stereotype(stub_Profile())));
59
+ }
60
+ }
61
+ };
62
+ const handleDropTaggedValue = useCallback((item) => {
63
+ if (!isReadOnly && item.data.packageableElement instanceof Profile) {
64
+ annotatedElement_addTaggedValue(activatorElement, stub_TaggedValue(stub_Tag(item.data.packageableElement)));
65
+ }
66
+ }, [activatorElement, isReadOnly]);
67
+ const [{ isTaggedValueDragOver }, dropTaggedValueRef] = useDrop(() => ({
68
+ accept: [CORE_DND_TYPE.PROJECT_EXPLORER_PROFILE],
69
+ drop: (item) => handleDropTaggedValue(item),
70
+ collect: (monitor) => ({
71
+ isTaggedValueDragOver: monitor.isOver({ shallow: true }),
72
+ }),
73
+ }), [handleDropTaggedValue]);
74
+ const handleDropStereotype = useCallback((item) => {
75
+ if (!isReadOnly && item.data.packageableElement instanceof Profile) {
76
+ annotatedElement_addStereotype(activatorElement, StereotypeExplicitReference.create(stub_Stereotype(item.data.packageableElement)));
77
+ }
78
+ }, [activatorElement, isReadOnly]);
79
+ const [{ isStereotypeDragOver }, dropStereotypeRef] = useDrop(() => ({
80
+ accept: [CORE_DND_TYPE.PROJECT_EXPLORER_PROFILE],
81
+ drop: (item) => handleDropStereotype(item),
82
+ collect: (monitor) => ({
83
+ isStereotypeDragOver: monitor.isOver({ shallow: true }),
84
+ }),
85
+ }), [handleDropStereotype]);
86
+ const _deleteStereotype = (val) => () => annotatedElement_deleteStereotype(activatorElement, val);
87
+ const _deleteTaggedValue = (val) => () => annotatedElement_deleteTaggedValue(activatorElement, val);
88
+ const changeTab = (tab) => () => editorState.setSelectedTab(tab);
33
89
  const activator = editorState.activator;
34
- const ownership = activator.ownership;
35
90
  const visitFunction = () => editorState.editorStore.graphEditorMode.openElement(activator.function.value);
36
91
  const validate = () => {
37
92
  flowResult(editorState.validate()).catch(applicationStore.alertUnhandledError);
@@ -47,9 +102,6 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
47
102
  const toggleUseStoreModel = () => {
48
103
  hostedService_setStoreModel(activator, !activator.storeModel);
49
104
  };
50
- const toggleGenerateLineage = () => {
51
- hostedService_setGenerateLineage(activator, !activator.generateLineage);
52
- };
53
105
  const toggleAutoActivateUpdates = () => {
54
106
  hostedService_setAutoActivateUpdates(activator, !activator.autoActivateUpdates);
55
107
  };
@@ -59,88 +111,6 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
59
111
  ? patternValidationResult.messages[0]
60
112
  : undefined;
61
113
  };
62
- //Ownership
63
- const [showOwnerEditInput, setShowOwnerEditInput] = useState(false);
64
- const [ownerInputValue, setOwnerInputValue] = useState('');
65
- const [searchText, setSearchText] = useState('');
66
- const [userOptions, setUserOptions] = useState([]);
67
- const [isLoadingUsers, setIsLoadingUsers] = useState(false);
68
- const [ownerInputs, setOwnerInputs] = useState([]);
69
- const showAddOwnerInput = () => setShowOwnerEditInput(true);
70
- const onOwnershipChange = (val) => {
71
- if (val) {
72
- editorState.setSelectedOwnership(val);
73
- }
74
- };
75
- const updateDeploymentIdentifier = (event) => {
76
- if (!isReadOnly && ownership instanceof DeploymentOwner) {
77
- activator_setDeploymentOwner(ownership, event.target.value);
78
- }
79
- };
80
- const changeUserOwnerInputValue = (event) => setOwnerInputValue(event.target.value);
81
- const updateUser = (idx) => () => {
82
- if (ownerInputValue &&
83
- ownership instanceof UserList &&
84
- !ownership.users.includes(ownerInputValue)) {
85
- activator_updateUserOwnership(ownership, ownerInputValue, idx);
86
- }
87
- };
88
- const showEditOwnerInput = (value, idx) => () => {
89
- setOwnerInputValue(value);
90
- setShowOwnerEditInput(idx);
91
- };
92
- const hideAddOrEditOwnerInput = () => {
93
- setShowOwnerEditInput(false);
94
- setOwnerInputValue('');
95
- };
96
- const deleteUser = (idx) => () => {
97
- if (!isReadOnly && ownership instanceof UserList) {
98
- activator_deleteValueFromUserOwnership(ownership, idx);
99
- if (typeof showOwnerEditInput === 'number' &&
100
- showOwnerEditInput > idx) {
101
- setShowOwnerEditInput(showOwnerEditInput - 1);
102
- }
103
- }
104
- };
105
- const debouncedSearchUsers = useMemo(() => debounce((input) => {
106
- setIsLoadingUsers(true);
107
- flowResult(editorState.searchUsers(input))
108
- .then((users) => setUserOptions(users.map((u) => ({
109
- value: u.userId,
110
- label: u.userId,
111
- }))))
112
- .then(() => setIsLoadingUsers(false))
113
- .catch(editorState.editorStore.applicationStore.alertUnhandledError);
114
- }, 500), [editorState]);
115
- const onSearchTextChange = (value) => {
116
- if (value !== searchText) {
117
- setSearchText(value);
118
- debouncedSearchUsers.cancel();
119
- if (value.length >= 3) {
120
- debouncedSearchUsers(value);
121
- }
122
- else if (value.length === 0) {
123
- setUserOptions([]);
124
- setIsLoadingUsers(false);
125
- }
126
- }
127
- };
128
- const onUserOptionChange = (options) => {
129
- setOwnerInputs(options.map((op) => op.label));
130
- setUserOptions([]);
131
- debouncedSearchUsers.cancel();
132
- setIsLoadingUsers(false);
133
- };
134
- const addUser = () => {
135
- ownerInputs.forEach((value) => {
136
- if (value &&
137
- ownership instanceof UserList &&
138
- !ownership.users.includes(value)) {
139
- activator_addUserOwner(ownership, value);
140
- }
141
- });
142
- hideAddOrEditOwnerInput();
143
- };
144
114
  //Pattern
145
115
  const patternRef = useRef(null);
146
116
  const [pattern, setPattern] = useState(activator.pattern);
@@ -157,20 +127,18 @@ export const HostedServiceFunctionActivatorEditor = observer(() => {
157
127
  patternRef.current?.focus();
158
128
  }, [editorState]);
159
129
  return (_jsx("div", { className: "hosted-service-function-activator-editor", children: _jsxs(Panel, { children: [_jsx(PanelHeader, { title: "Rest Service Application" }), _jsx(PanelLoadingIndicator, { isLoading: Boolean(editorState.validateState.isInProgress ||
160
- editorState.deployState.isInProgress) }), _jsxs(PanelContent, { children: [_jsxs("div", { className: "hosted-service-function-activator-editor__header", children: [_jsx("div", { className: "hosted-service-function-activator-editor__header__label", children: "Rest Service Activator" }), _jsxs("div", { className: "hosted-service-function-activator-editor__header__actions", children: [_jsx("button", { className: "hosted-service-function-activator-editor__header__actions__action hosted-service-function-activator-editor__header__actions__action--primary", onClick: validate, disabled: editorState.validateState.isInProgress, tabIndex: -1, title: "Click Validate to verify your activator before deployment", children: "Validate" }), _jsx("button", { className: "hosted-service-function-activator-editor__header__actions__action hosted-service-function-activator-editor__header__actions__action--primary", onClick: deploy, disabled: editorState.deployState.isInProgress, title: "Deploy to sandbox", tabIndex: -1, children: "Deploy to Sandbox" })] })] }), _jsx(PanelForm, { children: _jsx(PanelFormValidatedTextField, { ref: patternRef, name: "URL Pattern", isReadOnly: isReadOnly, className: "service-editor__pattern__input", errorMessageClassName: "service-editor__pattern__input", prompt: _jsxs(_Fragment, { children: ["Specifies the URL pattern of the service (e.g. /myService/", _jsx("span", { className: "service-editor__pattern__example__param", children: `{param}` }), ")"] }), update: (value) => {
161
- updatePattern(value ?? '');
162
- }, validate: getValidationMessage, value: pattern }) }), _jsx(PanelForm, { children: _jsxs("div", { className: "panel__content__form__section service-editor__parameters", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Parameters" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "URL parameters (each must be surrounded by curly braces) will be passed as arguments for the execution query. Note that if the service is configured to use multi-execution, one of the URL parameters must be chosen as the execution key." }), _jsxs("div", { className: "service-editor__parameters__list", children: [!activator.patternParameters.length && (_jsx("div", { className: "service-editor__parameters__list__empty", children: "No parameter" })), Boolean(activator.patternParameters.length) &&
163
- activator.patternParameters.map((parameter) => (_jsxs("div", { className: "service-editor__parameter", children: [_jsx("div", { className: "service-editor__parameter__text", children: parameter }), _jsx("div", { className: "service-editor__parameter__actions", children: _jsx("button", { className: "service-editor__parameter__action", disabled: isReadOnly, onClick: removePatternParameter(parameter), title: "Remove parameter", tabIndex: -1, children: _jsx(TimesIcon, {}) }) })] }, parameter)))] })] }) }), _jsxs(PanelForm, { children: [_jsx("div", { className: "panel__content__form__section", children: _jsx("div", { className: "panel__content__form__section__header__label", children: "Function" }) }), _jsx("div", { className: "hosted-service-function-activator-editor__configuration__items", children: _jsxs("div", { className: "hosted-service-function-activator-editor__configuration__item", children: [_jsx("div", { className: "btn--sm hosted-service-function-activator-editor__configuration__item__label", children: _jsx(PURE_FunctionIcon, {}) }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: true, value: generateFunctionPrettyName(activator.function.value, {
164
- fullPath: true,
165
- spacing: false,
166
- }) }), _jsx("button", { className: "btn--dark btn--sm hosted-service-function-activator-editor__configuration__item__btn", onClick: visitFunction, tabIndex: -1, title: "See Function", children: _jsx(LongArrowRightIcon, {}) })] }) })] }), _jsx(PanelForm, { children: _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Documentation" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: `Provide a brief description of the service's functionalities and usage` }), _jsx("textarea", { className: "panel__content__form__section__textarea service-editor__documentation__input", spellCheck: false, disabled: isReadOnly, value: activator.documentation, onChange: changeDocumentation })] }) }), _jsx(PanelForm, { children: _jsx(PanelFormBooleanField, { isReadOnly: isReadOnly, value: activator.autoActivateUpdates, name: "Auto Activate Updates", prompt: "Specifies if the new generation should be automatically activated;\n only valid when latest revision is selected upon service\n registration", update: toggleAutoActivateUpdates }) }), _jsx(PanelForm, { children: _jsx(PanelFormBooleanField, { isReadOnly: isReadOnly, value: activator.storeModel, name: "Store Model", prompt: "Use Store Model (slower)", update: toggleUseStoreModel }) }), _jsx(PanelForm, { children: _jsx(PanelFormBooleanField, { isReadOnly: isReadOnly, value: activator.generateLineage, name: "Generate Lineage", prompt: "Generate Lineage (slower)", update: toggleGenerateLineage }) }), _jsx(PanelForm, { children: _jsxs("div", { children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Ownership" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "The ownership model you want to use to control your service." }), _jsx(CustomSelectorInput, { options: OWNERSHIP_OPTIONS, onChange: onOwnershipChange, value: editorState.selectedOwnership, darkMode: !applicationStore.layoutService
167
- .TEMPORARY__isLightColorThemeEnabled })] }), ownership instanceof DeploymentOwner && (_jsx("div", { className: "panel__content__form__section", children: _jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Deployment Identifier :" }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: isReadOnly, value: ownership.id, onChange: updateDeploymentIdentifier })] }) })), ownership instanceof UserList && (_jsx("div", { className: "panel__content__form__section", children: _jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Users :" }), _jsxs("div", { className: "panel__content__form__section__list", children: [_jsxs("div", { className: "panel__content__form__section__list__items", "data-testid": LEGEND_STUDIO_TEST_ID.PANEL_CONTENT_FORM_SECTION_LIST_ITEMS, children: [ownership.users.map((value, idx) => (_jsx("div", { className: showOwnerEditInput === idx
168
- ? 'panel__content__form__section__list__new-item'
169
- : 'panel__content__form__section__list__item', children: showOwnerEditInput === idx ? (_jsxs(_Fragment, { children: [_jsx("input", { className: "panel__content__form__section__input panel__content__form__section__list__new-item__input", spellCheck: false, disabled: isReadOnly, value: ownerInputValue, onChange: changeUserOwnerInputValue }), _jsxs("div", { className: "panel__content__form__section__list__new-item__actions", children: [_jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark", disabled: isReadOnly ||
170
- ownership.users.includes(ownerInputValue), onClick: updateUser(idx), tabIndex: -1, children: "Save" }), _jsx("button", { className: "panel__content__form__section__list__new-item__cancel-btn btn btn--dark", disabled: isReadOnly, onClick: hideAddOrEditOwnerInput, tabIndex: -1, children: "Cancel" })] })] })) : (_jsxs(_Fragment, { children: [_jsx("div", { className: "panel__content__form__section__list__item__value", children: value }), _jsxs("div", { className: "panel__content__form__section__list__item__actions", children: [_jsx("button", { className: "panel__content__form__section__list__item__edit-btn", disabled: isReadOnly, onClick: showEditOwnerInput(value, idx), tabIndex: -1, children: _jsx(PencilIcon, {}) }), _jsx("button", { className: "panel__content__form__section__list__item__remove-btn", disabled: isReadOnly, onClick: deleteUser(idx), tabIndex: -1, children: _jsx(TimesIcon, {}) })] })] })) }, value))), showOwnerEditInput === true && (_jsxs("div", { className: "panel__content__form__section__list__new-item", children: [_jsx(CustomSelectorInput, { className: "service-editor__owner__selector", placeholder: "Enter an owner...", inputValue: searchText, options: userOptions, allowCreating: true, isLoading: isLoadingUsers, disabled: isReadOnly, darkMode: !applicationStore.layoutService
171
- .TEMPORARY__isLightColorThemeEnabled, onInputChange: onSearchTextChange, onChange: onUserOptionChange, isMulti: true }), _jsxs("div", { className: "panel__content__form__section__list__new-item__actions", children: [_jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark service-editor__owner__action", disabled: isReadOnly ||
172
- ownerInputs.some((i) => ownership.users.includes(i)), onClick: addUser, tabIndex: -1, children: "Save" }), _jsx("button", { className: "panel__content__form__section__list__new-item__cancel-btn btn btn--dark service-editor__owner__action", disabled: isReadOnly, onClick: hideAddOrEditOwnerInput, tabIndex: -1, children: "Cancel" })] })] }))] }), ownership.users.length <
173
- MINIMUM_HOSTED_SERVICE_OWNERS &&
174
- showOwnerEditInput !== true && (_jsxs("div", { className: "service-editor__owner__validation", title: `${MINIMUM_HOSTED_SERVICE_OWNERS} owners required`, children: [_jsx(ErrorIcon, {}), _jsxs("div", { className: "service-editor__owner__validation-label", children: ["Service requires at least", ' ', MINIMUM_HOSTED_SERVICE_OWNERS, " owners"] })] })), showOwnerEditInput !== true && (_jsx("div", { className: "panel__content__form__section__list__new-item__add", children: _jsx("button", { className: "panel__content__form__section__list__new-item__add-btn btn btn--dark", disabled: isReadOnly, onClick: showAddOwnerInput, tabIndex: -1, title: "Add owner", children: "Add Value" }) }))] })] }) }))] }) })] })] }) }));
130
+ editorState.deployState.isInProgress) }), _jsxs("div", { className: "panel__header function-editor__tabs__header", children: [_jsx("div", { className: "function-editor__tabs", children: Object.values(ACTIVATOR_EDITOR_TAB).map((tab) => (_jsx("div", { onClick: changeTab(tab), className: clsx('function-editor__tab', {
131
+ 'function-editor__tab--active': tab === selectedTab,
132
+ }), children: prettyCONSTName(tab) }, tab))) }), selectedTab !== ACTIVATOR_EDITOR_TAB.DEFINITION && (_jsx("button", { className: "panel__header__action", disabled: isReadOnly, onClick: add, tabIndex: -1, title: addButtonTitle, children: _jsx(PlusIcon, {}) }))] }), _jsxs(PanelContent, { children: [selectedTab === ACTIVATOR_EDITOR_TAB.DEFINITION && (_jsxs("div", { children: [_jsxs("div", { className: "hosted-service-function-activator-editor__header", children: [_jsx("div", { className: "hosted-service-function-activator-editor__header__label", children: "Rest Service Activator" }), _jsxs("div", { className: "hosted-service-function-activator-editor__header__actions", children: [_jsx("button", { className: "hosted-service-function-activator-editor__header__actions__action hosted-service-function-activator-editor__header__actions__action--primary", onClick: validate, disabled: editorState.validateState.isInProgress, tabIndex: -1, title: "Click Validate to verify your activator before deployment", children: "Validate" }), _jsx("button", { className: "hosted-service-function-activator-editor__header__actions__action hosted-service-function-activator-editor__header__actions__action--primary", onClick: deploy, disabled: editorState.deployState.isInProgress, title: "Deploy to sandbox", tabIndex: -1, children: "Deploy to Sandbox" })] })] }), _jsx(PanelForm, { children: _jsx(PanelFormValidatedTextField, { ref: patternRef, name: "URL Pattern", isReadOnly: isReadOnly, className: "service-editor__pattern__input", errorMessageClassName: "service-editor__pattern__input", prompt: _jsxs(_Fragment, { children: ["Specifies the URL pattern of the service (e.g. /myService/", _jsx("span", { className: "service-editor__pattern__example__param", children: `{param}` }), ")"] }), update: (value) => {
133
+ updatePattern(value ?? '');
134
+ }, validate: getValidationMessage, value: pattern }) }), _jsx(PanelForm, { children: _jsxs("div", { className: "panel__content__form__section service-editor__parameters", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Parameters" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "URL parameters (each must be surrounded by curly braces) will be passed as arguments for the execution query. Note that if the service is configured to use multi-execution, one of the URL parameters must be chosen as the execution key." }), _jsxs("div", { className: "service-editor__parameters__list", children: [!activator.patternParameters.length && (_jsx("div", { className: "service-editor__parameters__list__empty", children: "No parameter" })), Boolean(activator.patternParameters.length) &&
135
+ activator.patternParameters.map((parameter) => (_jsxs("div", { className: "service-editor__parameter", children: [_jsx("div", { className: "service-editor__parameter__text", children: parameter }), _jsx("div", { className: "service-editor__parameter__actions", children: _jsx("button", { className: "service-editor__parameter__action", disabled: isReadOnly, onClick: removePatternParameter(parameter), title: "Remove parameter", tabIndex: -1, children: _jsx(TimesIcon, {}) }) })] }, parameter)))] })] }) }), _jsxs(PanelForm, { children: [_jsx("div", { className: "panel__content__form__section", children: _jsx("div", { className: "panel__content__form__section__header__label", children: "Function" }) }), _jsx("div", { className: "hosted-service-function-activator-editor__configuration__items", children: _jsxs("div", { className: "hosted-service-function-activator-editor__configuration__item", children: [_jsx("div", { className: "btn--sm hosted-service-function-activator-editor__configuration__item__label", children: _jsx(PURE_FunctionIcon, {}) }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: true, value: generateFunctionPrettyName(activator.function.value, {
136
+ fullPath: true,
137
+ spacing: false,
138
+ }) }), _jsx("button", { className: "btn--dark btn--sm hosted-service-function-activator-editor__configuration__item__btn", onClick: visitFunction, tabIndex: -1, title: "See Function", children: _jsx(LongArrowRightIcon, {}) })] }) })] }), _jsx(PanelForm, { children: _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Documentation" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: `Provide a brief description of the service's functionalities and usage` }), _jsx("textarea", { className: "panel__content__form__section__textarea service-editor__documentation__input", spellCheck: false, disabled: isReadOnly, value: activator.documentation, onChange: changeDocumentation })] }) }), _jsx(PanelForm, { children: _jsx(PanelFormBooleanField, { isReadOnly: isReadOnly, value: activator.autoActivateUpdates, name: "Auto Activate Updates", prompt: "Specifies if the new generation should be automatically activated;\n only valid when latest revision is selected upon service\n registration", update: toggleAutoActivateUpdates }) }), _jsx(PanelForm, { children: _jsx(PanelFormBooleanField, { isReadOnly: isReadOnly, value: activator.storeModel, name: "Store Model", prompt: "Use Store Model (slower)", update: toggleUseStoreModel }) }), _jsx(PanelForm, { children: _jsx(ActivatorOwnershipForm, { activator: activator, isReadOnly: isReadOnly }) })] })), selectedTab === ACTIVATOR_EDITOR_TAB.TAGGED_VALUES && (_jsxs("div", { ref: dropTaggedValueRef, className: clsx('panel__content__lists', {
139
+ 'panel__content__lists--dnd-over': isTaggedValueDragOver && !isReadOnly,
140
+ }), children: [_jsx(TaggedValueDragPreviewLayer, {}), activatorElement.taggedValues.map((taggedValue) => (_jsx(TaggedValueEditor, { annotatedElement: activatorElement, taggedValue: taggedValue, deleteValue: _deleteTaggedValue(taggedValue), isReadOnly: isReadOnly, darkTheme: true }, taggedValue._UUID)))] })), selectedTab === ACTIVATOR_EDITOR_TAB.STEREOTYPES && (_jsxs("div", { ref: dropStereotypeRef, className: clsx('panel__content__lists', {
141
+ 'panel__content__lists--dnd-over': isStereotypeDragOver && !isReadOnly,
142
+ }), children: [_jsx(StereotypeDragPreviewLayer, {}), activatorElement.stereotypes.map((stereotype) => (_jsx(StereotypeSelector, { annotatedElement: activatorElement, stereotype: stereotype, deleteStereotype: _deleteStereotype(stereotype), isReadOnly: isReadOnly, darkTheme: true }, stereotype.value._UUID)))] }))] })] }) }));
175
143
  });
176
144
  //# sourceMappingURL=HostedServiceFunctionActivatorEditor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HostedServiceFunctionActivatorEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAC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js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/HostedServiceFunctionActivatorEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,SAAS,EACT,IAAI,EACJ,QAAQ,GACT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,OAAO,EACP,2BAA2B,EAG3B,0BAA0B,EAC1B,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EACL,yCAAyC,EACzC,oBAAoB,GACrB,MAAM,6HAA6H,CAAC;AACrI,OAAO,EACL,oCAAoC,EACpC,8BAA8B,EAC9B,wBAAwB,EACxB,oCAAoC,EACpC,2BAA2B,GAC5B,MAAM,gFAAgF,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACL,8BAA8B,EAC9B,+BAA+B,EAC/B,iCAAiC,EACjC,kCAAkC,GACnC,MAAM,gEAAgE,CAAC;AACxE,OAAO,EACL,aAAa,GAGd,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL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M3B,CACH,CAAC,IACE,CACP,IACY,IACT,GACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SnowflakeAppFunctionActivatorEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqCH,eAAO,MAAM,mCAAmC;;CAyT9C,CAAC"}
1
+ {"version":3,"file":"SnowflakeAppFunctionActivatorEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAoCH,eAAO,MAAM,mCAAmC;;CAuR9C,CAAC"}
@@ -15,22 +15,21 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  * limitations under the License.
16
16
  */
17
17
  import { Panel, PanelHeader, PanelContent, PanelForm, PanelFormTextField, PURE_FunctionIcon, LongArrowRightIcon, PanelLoadingIndicator, PURE_ConnectionIcon, CustomSelectorInput, createFilter, DataAccessIcon, } from '@finos/legend-art';
18
- import { generateFunctionPrettyName, RelationalDatabaseConnection, DatabaseType, DeploymentOwner, SnowflakePermissionScheme, } from '@finos/legend-graph';
18
+ import { generateFunctionPrettyName, RelationalDatabaseConnection, DatabaseType, SnowflakePermissionScheme, } from '@finos/legend-graph';
19
19
  import { observer } from 'mobx-react-lite';
20
20
  import { useApplicationStore } from '@finos/legend-application';
21
21
  import { useEditorStore } from '../../EditorStoreProvider.js';
22
22
  import { SnowflakeAppFunctionActivatorEdtiorState } from '../../../../stores/editor/editor-state/element-editor-state/function-activator/SnowflakeAppFunctionActivatorEditorState.js';
23
23
  import { flowResult } from 'mobx';
24
- import { useRef, useState } from 'react';
24
+ import { useRef } from 'react';
25
25
  import { buildRelationalDatabaseConnectionOption, } from '../connection-editor/RelationalDatabaseConnectionEditor.js';
26
- import { activator_setDeploymentOwner } from '../../../../stores/graph-modifier/DSL_FunctionActivator_GraphModifierHelper.js';
26
+ import { ActivatorOwnershipForm } from './ActivatorFormComponents.js';
27
27
  export const SnowflakeAppFunctionActivatorEditor = observer(() => {
28
28
  const editorStore = useEditorStore();
29
29
  const applicationStore = useApplicationStore();
30
30
  const editorState = editorStore.tabManagerState.getCurrentEditorState(SnowflakeAppFunctionActivatorEdtiorState);
31
31
  const isReadOnly = editorState.isReadOnly;
32
32
  const activator = editorState.activator;
33
- const ownership = activator.ownership;
34
33
  const connectionSelectorRef = useRef(null);
35
34
  const connectionFilterOption = createFilter({
36
35
  ignoreCase: true,
@@ -88,14 +87,6 @@ export const SnowflakeAppFunctionActivatorEditor = observer(() => {
88
87
  const deploy = () => {
89
88
  flowResult(editorState.deployToSandbox()).catch(applicationStore.alertUnhandledError);
90
89
  };
91
- //Ownership
92
- const [ownerInputValue, setOwner] = useState(activator.ownership.id);
93
- const updateDeploymentIdentifier = (event) => {
94
- if (!isReadOnly) {
95
- setOwner(event.target.value);
96
- activator_setDeploymentOwner(ownership, event.target.value);
97
- }
98
- };
99
90
  return (_jsx("div", { className: "snowflake-app-function-activator-editor", children: _jsxs(Panel, { children: [_jsx(PanelHeader, { title: "Snowflake Application" }), _jsx(PanelLoadingIndicator, { isLoading: Boolean(editorState.validateState.isInProgress ||
100
91
  editorState.deployState.isInProgress) }), _jsxs(PanelContent, { children: [_jsxs("div", { className: "snowflake-app-function-activator-editor__header", children: [_jsx("div", { className: "snowflake-app-function-activator-editor__header__label", children: "Snowflake Activator Metadata" }), _jsxs("div", { className: "snowflake-app-function-activator-editor__header__actions", children: [_jsx("button", { className: "snowflake-app-function-activator-editor__header__actions__action snowflake-app-function-activator-editor__header__actions__action--primary", onClick: validate, disabled: editorState.validateState.isInProgress, tabIndex: -1, title: "Click Validate to verify your activator before deployment", children: "Validate" }), _jsx("button", { className: "snowflake-app-function-activator-editor__header__actions__action snowflake-app-function-activator-editor__header__actions__action--primary", onClick: deploy, disabled: editorState.deployState.isInProgress, title: "Deploy to sandbox", tabIndex: -1, children: "Deploy to Sandbox" })] })] }), _jsxs(PanelForm, { children: [_jsx("div", { className: "panel__content__form__section", children: _jsx("div", { className: "panel__content__form__section__header__label", children: "Function" }) }), _jsx("div", { className: "snowflake-app-function-activator-editor__configuration__items", children: _jsxs("div", { className: "snowflake-app-function-activator-editor__configuration__item", children: [_jsx("div", { className: "btn--sm snowflake-app-function-activator-editor__configuration__item__label", children: _jsx(PURE_FunctionIcon, {}) }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: true, value: generateFunctionPrettyName(activator.function.value, {
101
92
  fullPath: true,
@@ -109,6 +100,6 @@ export const SnowflakeAppFunctionActivatorEditor = observer(() => {
109
100
  value: activator.permissionScheme,
110
101
  }
111
102
  : null, darkMode: !applicationStore.layoutService
112
- .TEMPORARY__isLightColorThemeEnabled, placeholder: "Choose a Permission Scheme" })] }) })] }), _jsx(PanelForm, { children: _jsx(PanelFormTextField, { value: activator.usageRole, isReadOnly: isReadOnly, name: "Usage Role", placeholder: "Specify the usage role (optional)", update: (value) => editorState.updateUsageRole(value) }) }), _jsx(PanelForm, { children: _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Description" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: `Provide a brief description of Snowflake App` }), _jsx("textarea", { className: "panel__content__form__section__textarea service-editor__documentation__input", spellCheck: false, disabled: isReadOnly, value: activator.description, onChange: changeDescription })] }) }), _jsx(PanelForm, { children: _jsxs("div", { children: [_jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Ownership" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: "The ownership model you want to use to control your snowflake app." })] }), ownership instanceof DeploymentOwner && (_jsx("div", { className: "panel__content__form__section", children: _jsxs("div", { children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Deployment Identifier :" }), _jsx("input", { className: "panel__content__form__section__input", spellCheck: false, disabled: isReadOnly, value: ownerInputValue, onChange: updateDeploymentIdentifier })] }) }))] }) })] })] }) }));
103
+ .TEMPORARY__isLightColorThemeEnabled, placeholder: "Choose a Permission Scheme" })] }) })] }), _jsx(PanelForm, { children: _jsx(PanelFormTextField, { value: activator.usageRole, isReadOnly: isReadOnly, name: "Usage Role", placeholder: "Specify the usage role (optional)", update: (value) => editorState.updateUsageRole(value) }) }), _jsx(PanelForm, { children: _jsxs("div", { className: "panel__content__form__section", children: [_jsx("div", { className: "panel__content__form__section__header__label", children: "Description" }), _jsx("div", { className: "panel__content__form__section__header__prompt", children: `Provide a brief description of Snowflake App` }), _jsx("textarea", { className: "panel__content__form__section__textarea service-editor__documentation__input", spellCheck: false, disabled: isReadOnly, value: activator.description, onChange: changeDescription })] }) }), _jsx(PanelForm, { children: _jsx(ActivatorOwnershipForm, { activator: activator, isReadOnly: isReadOnly }) })] })] }) }));
113
104
  });
114
105
  //# sourceMappingURL=SnowflakeAppFunctionActivatorEditor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SnowflakeAppFunctionActivatorEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,0BAA0B,EAC1B,4BAA4B,EAC5B,YAAY,EACZ,eAAe,EACf,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,O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E,KAAK,EACjB,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,0BAA0B,GACpC,IACE,GACF,CACP,IACG,GACI,IACC,IACT,GACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"SnowflakeAppFunctionActivatorEditor.js","sourceRoot":"","sources":["../../../../../src/components/editor/editor-group/function-activator/SnowflakeAppFunctionActivatorEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,0BAA0B,EAC1B,4BAA4B,EAC5B,YAAY,EACZ,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,wCAAwC,EAAE,MAAM,4HAA4H,CAAC;AACtL,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,uCAAuC,GACxC,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,MAAM,CAAC,MAAM,mCAAmC,GAAG,QAAQ,CAAC,GAAG,EAAE;IAC/D,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,WAAW,CAAC,eAAe,CA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EACZ,KAAC,SAAS,cACR,KAAC,sBAAsB,IACrB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,GACtB,GACQ,IACC,IACT,GACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-application-studio v28.18.42
1
+ /** @license @finos/legend-application-studio v28.18.44
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-studio",
3
- "version": "28.18.42",
3
+ "version": "28.18.44",
4
4
  "description": "Legend Studio application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -18,7 +18,7 @@ import { type GeneratorFn, ActionState } from '@finos/legend-shared';
18
18
  import type { EditorStore } from '../../../EditorStore.js';
19
19
  import { ElementEditorState } from '../ElementEditorState.js';
20
20
  import { User } from '@finos/legend-server-sdlc';
21
- declare enum HostedServiceOwnershipType {
21
+ export declare enum HostedServiceOwnershipType {
22
22
  DEPLOYMENT_OWNERSHIP = "deploymentOwnership",
23
23
  USERLIST_OWNERSHIP = "userListOwnership"
24
24
  }
@@ -29,6 +29,11 @@ export declare const OWNERSHIP_OPTIONS: {
29
29
  label: string;
30
30
  value: HostedServiceOwnershipType;
31
31
  }[];
32
+ export declare enum ACTIVATOR_EDITOR_TAB {
33
+ DEFINITION = "DEFINITION",
34
+ TAGGED_VALUES = "TAGGED_VALUES",
35
+ STEREOTYPES = "STEREOTYPES"
36
+ }
32
37
  export type HostedServiceOwnerOption = {
33
38
  label: string;
34
39
  value: string;
@@ -36,12 +41,13 @@ export type HostedServiceOwnerOption = {
36
41
  export declare class HostedServiceFunctionActivatorEditorState extends ElementEditorState {
37
42
  readonly validateState: ActionState;
38
43
  readonly deployState: ActionState;
44
+ selectedTab: ACTIVATOR_EDITOR_TAB;
39
45
  constructor(editorStore: EditorStore, element: HostedService);
46
+ setSelectedTab(tab: ACTIVATOR_EDITOR_TAB): void;
40
47
  get activator(): HostedService;
41
48
  updateDocumentation(val: string): void;
42
49
  updatePattern(val: string): void;
43
50
  storeModel(val: boolean): void;
44
- generateLineage(val: boolean): void;
45
51
  get selectedOwnership(): HostedServiceOwnerOption | undefined;
46
52
  setSelectedOwnership(o: HostedServiceOwnerOption): void;
47
53
  validate(): GeneratorFn<void>;
@@ -49,5 +55,4 @@ export declare class HostedServiceFunctionActivatorEditorState extends ElementEd
49
55
  searchUsers(name: string): GeneratorFn<User[]>;
50
56
  reprocess(newElement: HostedService, editorStore: EditorStore): HostedServiceFunctionActivatorEditorState;
51
57
  }
52
- export {};
53
58
  //# sourceMappingURL=HostedServiceFunctionActivatorEditorState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HostedServiceFunctionActivatorEditorState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,aAAa,EAId,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,aAAK,0BAA0B;IAC7B,oBAAoB,wBAAwB;IAC5C,kBAAkB,sBAAsB;CACzC;AACD,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAAM,wBAAwB,eAAe,CAAC;AACrD,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;GAS7B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,qBAAa,yCAA0C,SAAQ,kBAAkB;IAC/E,QAAQ,CAAC,aAAa,cAAwB;IAC9C,QAAQ,CAAC,WAAW,cAAwB;gBAEhC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa;IAkB5D,IAAI,SAAS,IAAI,aAAa,CAQ7B;IAED,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAItC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIhC,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9B,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAInC,IAAI,iBAAiB,IAAI,wBAAwB,GAAG,SAAS,CAc5D;IAED,oBAAoB,CAAC,CAAC,EAAE,wBAAwB,GAAG,IAAI;IA2BtD,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC;IAkB7B,eAAe,IAAI,WAAW,CAAC,IAAI,CAAC;IAkBpC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,EAAE,CAAC;IAc/C,SAAS,CACP,UAAU,EAAE,aAAa,EACzB,WAAW,EAAE,WAAW,GACvB,yCAAyC;CAM7C"}
1
+ {"version":3,"file":"HostedServiceFunctionActivatorEditorState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/function-activator/HostedServiceFunctionActivatorEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,aAAa,EAId,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE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