@finos/legend-application-studio 28.19.25 → 28.19.27
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/lib/components/editor/editor-group/dataProduct/DataPoductEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.js +48 -5
- package/lib/components/editor/editor-group/dataProduct/DataPoductEditor.js.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +74 -3
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js +26 -0
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.d.ts +5 -0
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.js +20 -0
- package/lib/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.js.map +1 -1
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts +2 -1
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.d.ts.map +1 -1
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js +27 -4
- package/lib/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.js.map +1 -1
- package/package.json +9 -9
- package/src/components/editor/editor-group/dataProduct/DataPoductEditor.tsx +138 -30
- package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +202 -2
- package/src/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.ts +26 -0
- package/src/stores/editor/editor-state/element-editor-state/testable/TestAssertionState.ts +25 -1
- package/src/stores/graph-modifier/DSL_DataProduct_GraphModifierHelper.ts +34 -10
@@ -122,33 +122,57 @@ export const dataProduct_setSupportInfoIfAbsent = action(
|
|
122
122
|
},
|
123
123
|
);
|
124
124
|
|
125
|
+
export const supportInfo_setLinkLabel = action(
|
126
|
+
(link: DataProductLink, label: string | undefined) => {
|
127
|
+
link.label = label;
|
128
|
+
},
|
129
|
+
);
|
130
|
+
|
125
131
|
export const supportInfo_setDocumentationUrl = action(
|
126
132
|
(supportInfo: SupportInfo, documentationUrl: string) => {
|
127
|
-
supportInfo.documentation
|
128
|
-
|
129
|
-
|
133
|
+
if (!supportInfo.documentation) {
|
134
|
+
supportInfo.documentation = observer_DataProductLink(
|
135
|
+
new DataProductLink(documentationUrl),
|
136
|
+
);
|
137
|
+
} else {
|
138
|
+
supportInfo.documentation.url = documentationUrl;
|
139
|
+
}
|
130
140
|
},
|
131
141
|
);
|
132
142
|
|
133
143
|
export const supportInfo_setWebsite = action(
|
134
144
|
(supportInfo: SupportInfo, website: string) => {
|
135
|
-
supportInfo.website
|
136
|
-
|
137
|
-
|
145
|
+
if (!supportInfo.website) {
|
146
|
+
supportInfo.website = observer_DataProductLink(
|
147
|
+
new DataProductLink(website),
|
148
|
+
);
|
149
|
+
} else {
|
150
|
+
supportInfo.website.url = website;
|
151
|
+
}
|
138
152
|
},
|
139
153
|
);
|
140
154
|
|
141
155
|
export const supportInfo_setFaqUrl = action(
|
142
156
|
(supportInfo: SupportInfo, faqUrl: string) => {
|
143
|
-
supportInfo.faqUrl
|
157
|
+
if (!supportInfo.faqUrl) {
|
158
|
+
supportInfo.faqUrl = observer_DataProductLink(
|
159
|
+
new DataProductLink(faqUrl),
|
160
|
+
);
|
161
|
+
} else {
|
162
|
+
supportInfo.faqUrl.url = faqUrl;
|
163
|
+
}
|
144
164
|
},
|
145
165
|
);
|
146
166
|
|
147
167
|
export const supportInfo_setSupportUrl = action(
|
148
168
|
(supportInfo: SupportInfo, supportUrl: string) => {
|
149
|
-
supportInfo.supportUrl
|
150
|
-
|
151
|
-
|
169
|
+
if (!supportInfo.supportUrl) {
|
170
|
+
supportInfo.supportUrl = observer_DataProductLink(
|
171
|
+
new DataProductLink(supportUrl),
|
172
|
+
);
|
173
|
+
} else {
|
174
|
+
supportInfo.supportUrl.url = supportUrl;
|
175
|
+
}
|
152
176
|
},
|
153
177
|
);
|
154
178
|
|