@finos/legend-extension-dsl-data-space 0.1.0 → 1.0.2
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/CHANGELOG.md +28 -0
- package/lib/DSLDataSpace_Extension.d.ts +0 -10
- package/lib/DSLDataSpace_Extension.d.ts.map +1 -1
- package/lib/DSLDataSpace_Extension.js +0 -24
- package/lib/DSLDataSpace_Extension.js.map +1 -1
- package/lib/components/{query/DataSpaceViewer.d.ts → DataSpaceViewer.d.ts} +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -0
- package/lib/components/DataSpaceViewer.js +186 -0
- package/lib/components/DataSpaceViewer.js.map +1 -0
- package/lib/components/query/{DSLDataSpace_QueryPlugin.d.ts → DSLDataSpace_LegendQueryPlugin.d.ts} +5 -5
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +1 -0
- package/lib/components/query/{DSLDataSpace_QueryPlugin.js → DSLDataSpace_LegendQueryPlugin.js} +4 -4
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +15 -8
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.d.ts → DSLDataSpace_LegendStudioPlugin.d.ts} +5 -5
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.js → DSLDataSpace_LegendStudioPlugin.js} +6 -5
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +12 -0
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +45 -2
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/stores/DataSpaceViewerState.d.ts +59 -0
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -0
- package/lib/stores/DataSpaceViewerState.js +137 -0
- package/lib/stores/DataSpaceViewerState.js.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +7 -34
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +30 -136
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +22 -20
- package/src/DSLDataSpace_Extension.ts +0 -30
- package/src/components/{query/DataSpaceViewer.tsx → DataSpaceViewer.tsx} +216 -121
- package/src/components/query/{DSLDataSpace_QueryPlugin.tsx → DSLDataSpace_LegendQueryPlugin.tsx} +4 -4
- package/src/components/query/DataSpaceQuerySetup.tsx +30 -5
- package/src/components/studio/{DSLDataSpace_StudioPlugin.tsx → DSLDataSpace_LegendStudioPlugin.tsx} +10 -9
- package/src/index.ts +12 -0
- package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +71 -0
- package/src/stores/DataSpaceViewerState.ts +202 -0
- package/src/stores/query/DataSpaceQuerySetupState.ts +70 -202
- package/tsconfig.json +5 -3
- package/tsconfig.package.json +1 -0
- package/lib/components/query/DSLDataSpace_QueryPlugin.d.ts.map +0 -1
- package/lib/components/query/DSLDataSpace_QueryPlugin.js.map +0 -1
- package/lib/components/query/DataSpaceViewer.d.ts.map +0 -1
- package/lib/components/query/DataSpaceViewer.js +0 -163
- package/lib/components/query/DataSpaceViewer.js.map +0 -1
- package/lib/components/studio/DSLDataSpace_StudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDataSpace_StudioPlugin.js.map +0 -1
package/lib/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license @finos/legend-extension-dsl-data-space
|
|
1
|
+
/** @license @finos/legend-extension-dsl-data-space v1.0.2
|
|
2
2
|
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
@import'@finos/legend-extension-dsl-diagram/lib/index.css';.
|
|
17
|
+
@import'@finos/legend-extension-dsl-diagram/lib/index.css';.data-space__viewer{display:flex;flex-direction:column;height:100%;width:100%;background:var(--color-dark-grey-80)}.data-space__viewer__header{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:2rem;height:17rem}.data-space__viewer__path{display:flex;align-items:center;justify-content:center;height:3.4rem;background:var(--color-blue-150)}.data-space__viewer__path__label{display:flex;align-items:center;justify-content:center;height:100%;font-family:"Roboto Mono",monospace;font-size:1.6rem;padding:0 1rem;user-select:none;color:var(--color-light-grey-0)}.data-space__viewer__path__link{display:flex;align-items:center;justify-content:center;height:3.4rem;width:3.4rem;border-left:.1rem solid var(--color-dark-shade-230)}.data-space__viewer__path__link svg{font-size:1.6rem;color:var(--color-light-grey-0)}.data-space__viewer__gav{display:flex;align-items:center;justify-content:center;user-select:none;height:2.8rem;font-size:1.4rem;color:var(--color-dark-grey-400);border:.1rem solid var(--color-dark-grey-85);padding:.5rem 1rem;margin:1rem;font-family:"Roboto Mono",monospace}.data-space__viewer__gav__artifact-id{color:var(--color-light-grey-400)}.data-space__viewer__gav__version-id{color:var(--color-blue-50);font-weight:700}.data-space__viewer__gav__link{display:flex;align-items:center;justify-content:center;margin-left:.5rem}.data-space__viewer__gav__link svg{color:var(--color-blue-50)}.data-space__viewer__description{cursor:default;user-select:none;padding:1rem;height:5rem;width:100%;background:var(--color-dark-grey-100);overflow:auto;line-height:1.6rem;color:var(--color-dark-grey-500);font-family:Roboto,sans-serif;font-size:1.2rem}.data-space__viewer__description--empty{display:flex;align-items:center;justify-content:center;font-weight:500;color:var(--color-dark-grey-300)}.data-space__viewer__content{display:flex;align-items:center;justify-content:center;height:calc(100% - 17rem);padding:0 2rem 2rem}.data-space__viewer__body{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.data-space__viewer__activity-bar{width:5rem;background:var(--color-dark-grey-100);height:100%;overflow-x:hidden;overflow-y:hidden}.data-space__viewer__activity-bar__items{height:100%;overflow-y:auto;overflow-x:hidden}.data-space__viewer__activity-bar__item{display:flex;align-items:center;justify-content:center;height:5rem;width:5rem;color:var(--color-dark-grey-400);cursor:pointer}.data-space__viewer__activity-bar__item svg{font-size:2rem}.data-space__viewer__activity-bar__item:hover{color:var(--color-light-grey-250);cursor:pointer}.data-space__viewer__activity-bar__item--active{color:var(--color-light-grey-250)}.data-space__viewer__main-panel{height:100%;width:calc(100% - 5rem);border:.1rem solid var(--color-dark-grey-100);overflow:auto}.data-space__viewer__main-panel__content{height:100%;width:100%}.data-space__viewer__diagrams{display:flex;flex-direction:column;height:100%;width:100%}.data-space__viewer__diagrams__header{display:flex;align-items:center;height:3.4rem;width:100%}.data-space__viewer__diagrams__footer{display:flex;align-items:center;height:2rem;background:var(--color-dark-grey-250);color:var(--color-light-grey-400);padding:0 .5rem;user-select:none;cursor:default}.data-space__viewer__diagrams__diagram-selector{width:100%}.data-space__viewer__diagrams__content{height:calc(100% - 5.4rem);width:100%}.data-space__viewer__diagrams__dropdown{width:100%}.data-space__viewer__diagrams__dropdown__container{padding:.3rem}.data-space__viewer__diagrams__dropdown__option{display:flex;align-items:center}.data-space__viewer__diagrams__dropdown__option__tag{display:flex;align-items:center;background:var(--color-blue-200);height:1.8rem;padding:0 .5rem;margin-left:.5rem;border-radius:.2rem;font-size:1.2rem;color:var(--color-light-grey-100)}.data-space__viewer__execution{padding:2rem}.data-space__viewer__execution__context-icon{color:var(--color-light-grey-200)}.data-space__viewer__execution__entry{display:flex;align-items:center;height:3.4rem;width:100%}.data-space__viewer__execution__entry__icon{display:flex;align-items:center;justify-content:center;height:3.4rem;width:3.4rem;border-radius:.2rem 0 0 .2rem;background:var(--color-dark-grey-100)}.data-space__viewer__execution__entry__icon svg{font-size:1.6rem}.data-space__viewer__execution__entry__content{display:flex;align-items:center;height:3.4rem;width:calc(100% - 3.4rem);border-radius:0 .2rem .2rem 0;border:.1rem solid var(--color-dark-grey-100);color:var(--color-light-grey-400);padding:0 1rem;background:var(--color-dark-grey-100);border-left:.1rem solid var(--color-dark-grey-50);user-select:none}.data-space__viewer__execution__entry__content__dropdown{width:100%}.data-space__viewer__execution__entry__content__dropdown__container{padding:.3rem}.data-space__viewer__execution__entry__content__dropdown__option{display:flex;align-items:center}.data-space__viewer__execution__entry__content__dropdown__option__tag{display:flex;align-items:center;background:var(--color-blue-200);height:1.8rem;padding:0 .5rem;margin-left:.5rem;border-radius:.2rem;font-size:1.2rem;color:var(--color-light-grey-100)}.data-space__viewer__execution__entry__content__text{font-family:"Roboto Mono",monospace}.data-space__viewer__execution__description{margin-top:.5rem;margin-bottom:.5rem;cursor:default;user-select:none;padding:1rem;height:5rem;width:100%;background:var(--color-dark-grey-100);overflow:auto;line-height:1.6rem;color:var(--color-dark-grey-500);font-family:Roboto,sans-serif;font-size:1.2rem}.data-space__viewer__execution__description--empty{display:flex;align-items:center;justify-content:center;font-weight:500;color:var(--color-dark-grey-300)}.data-space__viewer__execution__mapping{margin-bottom:.5rem}.data-space__viewer__tags{padding:2rem}.data-space__viewer__tags__section{cursor:default;margin:.5rem 0 3rem}.data-space__viewer__tags__section__title{display:flex;align-items:center;font-weight:500;color:var(--color-dark-grey-500);margin-bottom:1rem;line-height:2rem;cursor:default}.data-space__viewer__tags__section__entry{display:flex;align-items:center;height:2.8rem;margin:.5rem 0;width:100%}.data-space__viewer__tags__tagged-value__tag{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;height:100%;width:15rem;border-radius:.2rem 0 0 .2rem;padding:0 1rem;line-height:2.8rem;background:var(--color-purple-400);color:var(--color-light-grey-400);font-weight:500}.data-space__viewer__tags__tagged-value__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;height:100%;width:calc(100% - 15rem);border-radius:0 .2rem .2rem 0;padding:0 1rem;line-height:2.8rem;background:var(--color-dark-grey-100);color:var(--color-light-grey-400)}.data-space__viewer__tags__steoreotype{display:flex;align-items:center;height:100%;border-radius:.2rem;padding:0 1rem;line-height:2.8rem;background:var(--color-purple-400);color:var(--color-light-grey-400);font-weight:500}.data-space__viewer__tags__section__placeholder{display:flex;align-items:center;justify-content:center;height:4rem;width:100%;color:var(--color-dark-grey-300);font-weight:500;border:.2rem dashed var(--color-dark-grey-200)}.data-space__viewer__support-info{padding:2rem}.data-space__viewer__support-email__entry{display:flex;align-items:center;height:3.4rem;width:100%}.data-space__viewer__support-email__entry__icon{display:flex;align-items:center;justify-content:center;height:3.4rem;width:3.4rem;border-radius:.2rem 0 0 .2rem;background:var(--color-dark-grey-100)}.data-space__viewer__support-email__entry__icon svg{font-size:1.6rem;color:var(--color-light-grey-200)}.data-space__viewer__support-email__entry__content{display:flex;align-items:center;height:3.4rem;width:calc(100% - 3.4rem);border-radius:0 .2rem .2rem 0;border:.1rem solid var(--color-dark-grey-100);color:var(--color-light-grey-400);padding:0 1rem;font-family:"Roboto Mono",monospace;background:var(--color-dark-grey-100);border-left:.1rem solid var(--color-dark-grey-50);user-select:none}.query-setup__landing-page__option--data-space:hover{background:var(--color-yellow-100)}.query-setup__landing-page__icon--data-space{font-size:1.3rem}.query-setup__data-space{width:calc(100% - 10rem);height:calc(100% - 10rem)}.query-setup__data-space__header{background:var(--color-yellow-100)}.query-setup__data-space__input-group{padding:.5rem;width:100%;height:3.8rem;background:var(--color-dark-grey-200)}.query-setup__data-space__use-snapshot-btn{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem;border-radius:0 .2rem .2rem 0;background:var(--color-dark-grey-300)}.query-setup__data-space__use-snapshot-btn svg{color:var(--color-light-grey-50)}.query-setup__data-space__use-snapshot-btn--active{background:var(--color-blue-100)}.query-setup__data-space .query-setup__wizard__selector{width:100%}.query-setup__data-space__option{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;display:inline-flex}.query-setup__data-space__option__gav{font-size:1.2rem;color:var(--color-dark-grey-400);margin-left:.5rem;line-height:1.4rem}.query-setup__data-space__view{height:calc(100% - 3.8rem);width:100%}.query-setup__data-space__view--failed{display:flex;align-items:center;height:2.8rem}.query-setup__data-space__view--failed__icon{display:flex;align-items:center;justify-content:center;height:100%}.query-setup__data-space__view--failed__text{margin-left:.5rem;color:var(--color-dark-grey-300);font-weight:700;cursor:default;user-select:none;text-align:center;line-height:2.8rem}:root{--color-data-space: var(--color-blue-50)}.icon--data-space{color:var(--color-data-space)}/*# sourceMappingURL=index.css.map */
|
package/lib/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../style/_deps.scss","../style/_data-space-
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/_deps.scss","../style/_data-space-viewer.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss","../style/_data-space-query-plugin.scss","../style/index.scss"],"names":[],"mappings":"AAgBQ,2DCER,oBACE,aACA,sBACA,YACA,WACA,qCAEA,4BCDA,aACA,mBACA,uBDEE,sBACA,aACA,aAGF,0BCTA,aACA,mBACA,uBDUE,cACA,iCAEA,iCCfF,aACA,mBACA,uBDgBI,YACA,oCACA,iBACA,eACA,iBACA,gCAGF,gCC1BF,aACA,mBACA,uBD2BI,cACA,aACA,oDAEA,oCACE,iBACA,gCAKN,yBCxCA,aACA,mBACA,uBDyCE,iBACA,cACA,iBACA,iCACA,6CACA,mBACA,YACA,oCAEA,sCACE,kCAGF,qCACE,2BACA,gBAGF,+BC7DF,aACA,mBACA,uBD8DI,kBAEA,mCACE,2BAKN,iCACE,eACA,iBACA,aACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,wCCrFF,aACA,mBACA,uBDsFI,gBACA,iCAIJ,6BC7FA,aACA,mBACA,uBD8FE,0BACA,oBAGF,0BCpGA,aACA,mBACA,uBDqGE,WACA,YAGF,kCACE,WACA,sCACA,YACA,kBACA,kBAEA,yCACE,YACA,gBACA,kBAGF,wCCxHF,aACA,mBACA,uBDyHI,YACA,WACA,iCACA,eAGF,4CACE,eAGF,8CACE,kCACA,eAGF,gDACE,kCAIJ,gCACE,YACA,wBACA,8CACA,cAEA,yCACE,YACA,WAIJ,8BACE,aACA,sBACA,YACA,WAEA,sCC3JF,aACA,mBD6JI,cACA,WAGF,sCClKF,aACA,mBDoKI,YACA,sCACA,kCACA,gBACA,iBACA,eAGF,gDACE,WAGF,uCACE,2BACA,WAGF,wCACE,WAEA,mDACE,cAGF,gDC7LJ,aACA,mBDgMI,qDCjMJ,aACA,mBDmMM,iCACA,cACA,gBACA,kBACA,oBACA,iBACA,kCAKN,+BACE,aAEA,6CACE,kCAGF,sCCtNF,aACA,mBDwNI,cACA,WAEA,4CClOJ,aACA,mBACA,uBDmOM,cACA,aACA,8BACA,sCAEA,gDACE,iBAIJ,+CCzOJ,aACA,mBD2OM,cACA,0BACA,8BACA,8CACA,kCACA,eACA,sCACA,kDACA,iBAEA,yDACE,WAEA,oEACE,cAGF,iEC7PR,aACA,mBDgQQ,sECjQR,aACA,mBDmQU,iCACA,cACA,gBACA,kBACA,oBACA,iBACA,kCAIJ,qDACE,oCAKN,4CACE,iBACA,oBACA,eACA,iBACA,aACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,mDCzSJ,aACA,mBACA,uBD0SM,gBACA,iCAIJ,wCACE,oBAIJ,0BACE,aAEA,mCACE,eACA,oBAGF,0CCxTF,aACA,mBD0TI,gBACA,iCACA,mBACA,iBACA,eAGF,0CClUF,aACA,mBDoUI,cACA,eACA,WAGF,6CChUF,mBACA,uBACA,gBACA,sBACA,gBD+TI,YACA,YACA,8BACA,eACA,mBACA,mCACA,kCACA,gBAGF,+CC7UF,mBACA,uBACA,gBACA,sBACA,gBD4UI,YACA,yBACA,8BACA,eACA,mBACA,sCACA,kCAGF,uCCnWF,aACA,mBDqWI,YACA,oBACA,eACA,mBACA,mCACA,kCACA,gBAGF,gDCrXF,aACA,mBACA,uBDsXI,YACA,WACA,iCACA,gBACA,+CAIJ,kCACE,aAIA,0CC/XF,aACA,mBDiYI,cACA,WAEA,gDC3YJ,aACA,mBACA,uBD4YM,cACA,aACA,8BACA,sCAEA,oDACE,iBACA,kCAIJ,mDCnZJ,aACA,mBDqZM,cACA,0BACA,8BACA,8CACA,kCACA,eACA,oCACA,sCACA,kDACA,iBE3aR,qDACE,mCAGF,6CACE,iBAGF,yBACE,yBACA,0BAEA,iCACE,mCAGF,sCACE,cACA,WACA,cACA,sCAGF,2CDjBA,aACA,mBACA,uBCkBE,cACA,aACA,8BACA,sCAEA,+CACE,iCAGF,mDACE,iCAIJ,wDACE,WAGF,iCDtBA,mBACA,uBACA,gBACA,sBACA,gBCqBE,oBAGF,sCACE,iBACA,iCACA,kBACA,mBAGF,+BACE,2BACA,WAEA,uCDjDF,aACA,mBCmDI,cAEA,6CD5DJ,aACA,mBACA,uBC6DM,YAGF,6CACE,kBACA,iCACA,gBACA,eACA,iBACA,kBACA,mBC7ER,MACE,yCAGF,kBACE","file":"index.css"}
|
package/lib/index.d.ts
CHANGED
|
@@ -14,4 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export * from './DSLDataSpace_Extension';
|
|
17
|
+
export { DSLDataSpace_LegendStudioPlugin } from './components/studio/DSLDataSpace_LegendStudioPlugin';
|
|
18
|
+
export { DSLDataSpace_LegendQueryPlugin } from './components/query/DSLDataSpace_LegendQueryPlugin';
|
|
19
|
+
export { DataSpaceViewer } from './components/DataSpaceViewer';
|
|
20
|
+
export { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, extractDataSpaceTaxonomyNodes, getResolvedDataSpace, } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
21
|
+
export { DataSpaceViewerState } from './stores/DataSpaceViewerState';
|
|
17
22
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,8BAA8B,EAAE,MAAM,mDAAmD,CAAC;AAEnG,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EACL,kCAAkC,EAClC,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,kEAAkE,CAAC;AAE1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -14,4 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export * from './DSLDataSpace_Extension';
|
|
17
|
+
export { DSLDataSpace_LegendStudioPlugin } from './components/studio/DSLDataSpace_LegendStudioPlugin';
|
|
18
|
+
export { DSLDataSpace_LegendQueryPlugin } from './components/query/DSLDataSpace_LegendQueryPlugin';
|
|
19
|
+
export { DataSpaceViewer } from './components/DataSpaceViewer';
|
|
20
|
+
export { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, extractDataSpaceTaxonomyNodes, getResolvedDataSpace, } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
21
|
+
export { DataSpaceViewerState } from './stores/DataSpaceViewerState';
|
|
17
22
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,8BAA8B,EAAE,MAAM,mDAAmD,CAAC;AAEnG,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EACL,kCAAkC,EAClC,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,kEAAkE,CAAC;AAE1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -41,6 +41,17 @@ export declare class ResolvedDataSpaceExecutionContext {
|
|
|
41
41
|
* element pointers to actual reference, hence this model.
|
|
42
42
|
*/
|
|
43
43
|
export declare class ResolvedDataSpace {
|
|
44
|
+
taggedValues: {
|
|
45
|
+
uuid: string;
|
|
46
|
+
profile: string;
|
|
47
|
+
tag: string;
|
|
48
|
+
value: string;
|
|
49
|
+
}[];
|
|
50
|
+
stereotypes: {
|
|
51
|
+
uuid: string;
|
|
52
|
+
profile: string;
|
|
53
|
+
stereotype: string;
|
|
54
|
+
}[];
|
|
44
55
|
path: string;
|
|
45
56
|
groupId: string;
|
|
46
57
|
artifactId: string;
|
|
@@ -52,4 +63,5 @@ export declare class ResolvedDataSpace {
|
|
|
52
63
|
supportInfo?: DataSpaceSupportInfo | undefined;
|
|
53
64
|
}
|
|
54
65
|
export declare const getResolvedDataSpace: (json: PlainObject<V1_DataSpace>, graph: PureModel) => ResolvedDataSpace;
|
|
66
|
+
export declare const extractDataSpaceTaxonomyNodes: (json: PlainObject<V1_DataSpace>) => string[];
|
|
55
67
|
//# sourceMappingURL=DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,YAAY,EAGb,MAAM,uDAAuD,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,YAAY,EAGb,MAAM,uDAAuD,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAexD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qEAAqE,CAAC;AAMhH,OAAO,KAAK,EACV,kBAAkB,EAClB,OAAO,EAEP,2BAA2B,EAC3B,kBAAkB,EAClB,SAAS,EACT,sCAAsC,EACtC,8BAA8B,EAC9B,4BAA4B,EAC5B,qBAAqB,EAGrB,qBAAqB,EACrB,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAQL,2BAA2B,EAC3B,iBAAiB,EAGlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,OAAO,EAER,MAAM,qCAAqC,CAAC;AAE7C,eAAO,MAAM,kCAAkC,gDACA,CAAC;AAEhD,qBAAa,wCAAyC,SAAQ,2BAA2B;;IAQvF,OAAO,CAAC,aAAa,EAAE,kBAAkB,GAAG,IAAI;IAIvC,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AAO,MAAM,6BAA6B,SAClC,YAAY,YAAY,CAAC,KAC9B,MAAM,EA6BR,CAAC"}
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
import packageJson from '../../../../package.json';
|
|
17
17
|
import V1_SYSTEM_MODELS from './v1/V1_DSLDataSpace_SystemModels.json';
|
|
18
18
|
import { V1_DataSpace, V1_DataSpaceExecutionContext, V1_DataSpaceSupportEmail, } from './v1/model/packageableElements/dataSpace/V1_DataSpace';
|
|
19
|
-
import { guaranteeNonEmptyString, guaranteeNonNullable, UnsupportedOperationError, isNonNullable, assertType, } from '@finos/legend-shared';
|
|
19
|
+
import { uuid, guaranteeNonEmptyString, guaranteeNonNullable, UnsupportedOperationError, isNonNullable, assertType, } from '@finos/legend-shared';
|
|
20
20
|
import { deserialize, serialize } from 'serializr';
|
|
21
21
|
import { V1_dataSpaceModelSchema, V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE, } from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper';
|
|
22
22
|
import { getDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper';
|
|
23
23
|
import { DataSpace, DataSpaceExecutionContext, DataSpaceSupportEmail, } from '../../metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
24
|
-
import { PackageableElementExplicitReference, V1_PackageableElementPointer, V1_PackageableElementPointerType, V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, } from '@finos/legend-graph';
|
|
24
|
+
import { V1_taggedValueSchema, PackageableElementExplicitReference, V1_PackageableElementPointer, V1_PackageableElementPointerType, V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, V1_StereotypePtr, } from '@finos/legend-graph';
|
|
25
25
|
import { Diagram, V1_DSLDiagram_PackageableElementPointerType, } from '@finos/legend-extension-dsl-diagram';
|
|
26
26
|
export const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = 'meta::pure::metamodel::dataSpace::DataSpace';
|
|
27
27
|
export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
|
|
@@ -169,6 +169,8 @@ export class ResolvedDataSpaceExecutionContext {
|
|
|
169
169
|
* element pointers to actual reference, hence this model.
|
|
170
170
|
*/
|
|
171
171
|
export class ResolvedDataSpace {
|
|
172
|
+
taggedValues = [];
|
|
173
|
+
stereotypes = [];
|
|
172
174
|
path;
|
|
173
175
|
groupId;
|
|
174
176
|
artifactId;
|
|
@@ -184,6 +186,25 @@ export const getResolvedDataSpace = (json, graph) => {
|
|
|
184
186
|
if (json._type === V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE) {
|
|
185
187
|
const protocol = deserialize(V1_dataSpaceModelSchema, json);
|
|
186
188
|
dataSpace.path = protocol.path;
|
|
189
|
+
if (Array.isArray(json.taggedValues)) {
|
|
190
|
+
dataSpace.taggedValues = json.taggedValues
|
|
191
|
+
.map((taggedValueJson) => deserialize(V1_taggedValueSchema, taggedValueJson))
|
|
192
|
+
.map((taggedValue) => ({
|
|
193
|
+
uuid: uuid(),
|
|
194
|
+
profile: taggedValue.tag.profile,
|
|
195
|
+
tag: taggedValue.tag.value,
|
|
196
|
+
value: taggedValue.value,
|
|
197
|
+
}));
|
|
198
|
+
}
|
|
199
|
+
if (Array.isArray(json.stereotypes)) {
|
|
200
|
+
dataSpace.stereotypes = json.stereotypes
|
|
201
|
+
.map((stereotypePtrJson) => deserialize(V1_StereotypePtr, stereotypePtrJson))
|
|
202
|
+
.map((stereotypePtr) => ({
|
|
203
|
+
uuid: uuid(),
|
|
204
|
+
profile: stereotypePtr.profile,
|
|
205
|
+
stereotype: stereotypePtr.value,
|
|
206
|
+
}));
|
|
207
|
+
}
|
|
187
208
|
dataSpace.groupId = guaranteeNonEmptyString(protocol.groupId, `Data space 'groupId' field is missing or empty`);
|
|
188
209
|
dataSpace.artifactId = guaranteeNonEmptyString(protocol.artifactId, `Data space 'artifactId' field is missing or empty`);
|
|
189
210
|
dataSpace.versionId = guaranteeNonEmptyString(protocol.versionId, `Data space 'versionId' field is missing or empty`);
|
|
@@ -215,4 +236,26 @@ export const getResolvedDataSpace = (json, graph) => {
|
|
|
215
236
|
}
|
|
216
237
|
throw new UnsupportedOperationError(`Can't resolve data space`, json);
|
|
217
238
|
};
|
|
239
|
+
export const extractDataSpaceTaxonomyNodes = (json) => {
|
|
240
|
+
const ENTERPRISE_PROFILE_PATH = `meta::pure::profiles::enterprise`;
|
|
241
|
+
const TAXONOMY_NODES_TAG = `taxonomyNodes`;
|
|
242
|
+
const TAXONOMY_NODES_TAG_VALUE_DELIMITER = `,`;
|
|
243
|
+
const taxonomyNodes = new Set();
|
|
244
|
+
if (json._type === V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE) {
|
|
245
|
+
if (Array.isArray(json.taggedValues)) {
|
|
246
|
+
const taggedValues = json.taggedValues.map((taggedValueJson) => deserialize(V1_taggedValueSchema, taggedValueJson));
|
|
247
|
+
taggedValues
|
|
248
|
+
.filter((taggedValue) => taggedValue.tag.profile === ENTERPRISE_PROFILE_PATH &&
|
|
249
|
+
taggedValue.tag.value === TAXONOMY_NODES_TAG)
|
|
250
|
+
.forEach((taggedValue) => {
|
|
251
|
+
taggedValue.value
|
|
252
|
+
.split(TAXONOMY_NODES_TAG_VALUE_DELIMITER)
|
|
253
|
+
.map((value) => value.trim())
|
|
254
|
+
.filter((value) => Boolean(value))
|
|
255
|
+
.forEach((value) => taxonomyNodes.add(value));
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return Array.from(taxonomyNodes.values());
|
|
260
|
+
};
|
|
218
261
|
//# sourceMappingURL=DSLDataSpace_PureProtocolProcessorPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,aAAa,EACb,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,mCAAmC,GACpC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AAErF,OAAO,EACL,SAAS,EACT,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,qEAAqE,CAAC;
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,uDAAuD,CAAC;AAE/D,OAAO,EACL,IAAI,EACJ,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,aAAa,EACb,UAAU,GACX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,uBAAuB,EACvB,mCAAmC,GACpC,MAAM,iEAAiE,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AAErF,OAAO,EACL,SAAS,EACT,yBAAyB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MAAM,aAAa,GAAG,IAAI,GAAG,EAAU,CAAC;IACxC,IAAI,IAAI,CAAC,KAAK,KAAK,mCAAmC,EAAE;QACtD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE;YACpC,MAAM,YAAY,GAChB,IAAI,CAAC,YACN,CAAC,GAAG,CAAC,CAAC,eAAe,EAAE,EAAE,CACxB,WAAW,CAAC,oBAAoB,EAAE,eAAe,CAAC,CACnD,CAAC;YACF,YAAY;iBACT,MAAM,CACL,CAAC,WAAW,EAAE,EAAE,CACd,WAAW,CAAC,GAAG,CAAC,OAAO,KAAK,uBAAuB;gBACnD,WAAW,CAAC,GAAG,CAAC,KAAK,KAAK,kBAAkB,CAC/C;iBACA,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;gBACvB,WAAW,CAAC,KAAK;qBACd,KAAK,CAAC,kCAAkC,CAAC;qBACzC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;qBAC5B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;qBACjC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YAClD,CAAC,CAAC,CAAC;SACN;KACF;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC;AAC5C,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { ClassView, DiagramRenderer } from '@finos/legend-extension-dsl-diagram';
|
|
17
|
+
import { Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
18
|
+
import type { GraphManagerState, PackageableRuntime } from '@finos/legend-graph';
|
|
19
|
+
import type { ResolvedDataSpace, ResolvedDataSpaceExecutionContext } from '../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
20
|
+
export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
21
|
+
MODELS_OVERVIEW = "MODELS_OVERVIEW",
|
|
22
|
+
EXECUTION = "EXECUTION",
|
|
23
|
+
ENTITLEMENT = "ENTITLEMENT",
|
|
24
|
+
TEST_DATA = "TEST_DATA",
|
|
25
|
+
TEST_COVERAGE = "TEST_COVERAGE",
|
|
26
|
+
TAGS = "TAGS",
|
|
27
|
+
SUPPORT = "SUPPORT"
|
|
28
|
+
}
|
|
29
|
+
export declare class DataSpaceViewerState {
|
|
30
|
+
graphManagerState: GraphManagerState;
|
|
31
|
+
dataSpaceGroupId: string;
|
|
32
|
+
dataSpaceArtifactId: string;
|
|
33
|
+
dataSpaceVersionId: string;
|
|
34
|
+
dataSpace: ResolvedDataSpace;
|
|
35
|
+
_renderer?: DiagramRenderer | undefined;
|
|
36
|
+
currentDiagram?: Diagram | undefined;
|
|
37
|
+
currentActivity: DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
38
|
+
currentExecutionContext: ResolvedDataSpaceExecutionContext;
|
|
39
|
+
currentRuntime: PackageableRuntime;
|
|
40
|
+
viewProject?: ((groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void) | undefined;
|
|
41
|
+
onDiagramClassDoubleClick?: ((classView: ClassView) => void) | undefined;
|
|
42
|
+
constructor(graphManagerState: GraphManagerState, dataSpaceGroupId: string, dataSpaceArtifactId: string, dataSpaceVersionId: string, dataSpace: ResolvedDataSpace, options?: {
|
|
43
|
+
viewProject?: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
|
|
44
|
+
onDiagramClassDoubleClick?: (classView: ClassView) => void;
|
|
45
|
+
});
|
|
46
|
+
get renderer(): DiagramRenderer;
|
|
47
|
+
get isDiagramRendererInitialized(): boolean;
|
|
48
|
+
get featuredDiagrams(): Diagram[];
|
|
49
|
+
get diagrams(): Diagram[];
|
|
50
|
+
get runtimes(): PackageableRuntime[];
|
|
51
|
+
get diagramCursorClass(): string;
|
|
52
|
+
setRenderer(val: DiagramRenderer): void;
|
|
53
|
+
setCurrentDiagram(val: Diagram): void;
|
|
54
|
+
setCurrentActivity(val: DATA_SPACE_VIEWER_ACTIVITY_MODE): void;
|
|
55
|
+
setCurrentExecutionContext(val: ResolvedDataSpaceExecutionContext): void;
|
|
56
|
+
setCurrentRuntime(val: PackageableRuntime): void;
|
|
57
|
+
setupRenderer(): void;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=DataSpaceViewerState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerState.d.ts","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EAChB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,OAAO,EAER,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EACV,iBAAiB,EAEjB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EACV,iBAAiB,EACjB,iCAAiC,EAClC,MAAM,mEAAmE,CAAC;AAE3E,oBAAY,+BAA+B;IACzC,eAAe,oBAAoB;IACnC,SAA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B,IAAI,OAAO,EAAE,CAEhC;IAED,IAAI,QAAQ,IAAI,OAAO,EAAE,CAQxB;IAED,IAAI,QAAQ,IAAI,kBAAkB,EAAE,CAQnC;IAMD,IAAI,kBAAkB,IAAI,MAAM,CAiB/B;IAED,WAAW,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAIvC,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIrC,kBAAkB,CAAC,GAAG,EAAE,+BAA+B,GAAG,IAAI;IAI9D,0BAA0B,CAAC,GAAG,EAAE,iCAAiC,GAAG,IAAI;IAKxE,iBAAiB,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI;IAIhD,aAAa,IAAI,IAAI;CAKtB"}
|
|
@@ -0,0 +1,137 @@
|
|
|
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 { Diagram, DIAGRAM_INTERACTION_MODE, } from '@finos/legend-extension-dsl-diagram';
|
|
17
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
18
|
+
import { action, computed, makeObservable, observable } from 'mobx';
|
|
19
|
+
export var DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
20
|
+
(function (DATA_SPACE_VIEWER_ACTIVITY_MODE) {
|
|
21
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["MODELS_OVERVIEW"] = "MODELS_OVERVIEW";
|
|
22
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["EXECUTION"] = "EXECUTION";
|
|
23
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["ENTITLEMENT"] = "ENTITLEMENT";
|
|
24
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["TEST_DATA"] = "TEST_DATA";
|
|
25
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["TEST_COVERAGE"] = "TEST_COVERAGE";
|
|
26
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["TAGS"] = "TAGS";
|
|
27
|
+
DATA_SPACE_VIEWER_ACTIVITY_MODE["SUPPORT"] = "SUPPORT";
|
|
28
|
+
})(DATA_SPACE_VIEWER_ACTIVITY_MODE || (DATA_SPACE_VIEWER_ACTIVITY_MODE = {}));
|
|
29
|
+
export class DataSpaceViewerState {
|
|
30
|
+
graphManagerState;
|
|
31
|
+
dataSpaceGroupId;
|
|
32
|
+
dataSpaceArtifactId;
|
|
33
|
+
dataSpaceVersionId;
|
|
34
|
+
dataSpace;
|
|
35
|
+
_renderer;
|
|
36
|
+
currentDiagram;
|
|
37
|
+
currentActivity = DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS_OVERVIEW;
|
|
38
|
+
currentExecutionContext;
|
|
39
|
+
currentRuntime;
|
|
40
|
+
viewProject;
|
|
41
|
+
onDiagramClassDoubleClick;
|
|
42
|
+
constructor(graphManagerState, dataSpaceGroupId, dataSpaceArtifactId, dataSpaceVersionId, dataSpace, options) {
|
|
43
|
+
makeObservable(this, {
|
|
44
|
+
_renderer: observable,
|
|
45
|
+
currentDiagram: observable,
|
|
46
|
+
currentActivity: observable,
|
|
47
|
+
currentExecutionContext: observable,
|
|
48
|
+
currentRuntime: observable,
|
|
49
|
+
renderer: computed,
|
|
50
|
+
setRenderer: action,
|
|
51
|
+
setCurrentDiagram: action,
|
|
52
|
+
setCurrentActivity: action,
|
|
53
|
+
setCurrentExecutionContext: action,
|
|
54
|
+
setCurrentRuntime: action,
|
|
55
|
+
});
|
|
56
|
+
this.graphManagerState = graphManagerState;
|
|
57
|
+
this.dataSpace = dataSpace;
|
|
58
|
+
this.dataSpaceGroupId = dataSpaceGroupId;
|
|
59
|
+
this.dataSpaceArtifactId = dataSpaceArtifactId;
|
|
60
|
+
this.dataSpaceVersionId = dataSpaceVersionId;
|
|
61
|
+
this.currentExecutionContext = this.dataSpace.defaultExecutionContext;
|
|
62
|
+
this.currentRuntime =
|
|
63
|
+
this.dataSpace.defaultExecutionContext.defaultRuntime.value;
|
|
64
|
+
this.currentDiagram = this.dataSpace.featuredDiagrams.length
|
|
65
|
+
? this.dataSpace
|
|
66
|
+
.featuredDiagrams[0].value
|
|
67
|
+
: this.diagrams.length
|
|
68
|
+
? this.diagrams[0]
|
|
69
|
+
: undefined;
|
|
70
|
+
this.viewProject = options?.viewProject;
|
|
71
|
+
this.onDiagramClassDoubleClick = options?.onDiagramClassDoubleClick;
|
|
72
|
+
}
|
|
73
|
+
get renderer() {
|
|
74
|
+
return guaranteeNonNullable(this._renderer, `Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)`);
|
|
75
|
+
}
|
|
76
|
+
get isDiagramRendererInitialized() {
|
|
77
|
+
return Boolean(this._renderer);
|
|
78
|
+
}
|
|
79
|
+
get featuredDiagrams() {
|
|
80
|
+
return this.dataSpace.featuredDiagrams.map((ref) => ref.value);
|
|
81
|
+
}
|
|
82
|
+
get diagrams() {
|
|
83
|
+
return this.graphManagerState.graph
|
|
84
|
+
.getExtensionElements(Diagram)
|
|
85
|
+
.concat(this.graphManagerState.graph.dependencyManager.getExtensionElements(Diagram));
|
|
86
|
+
}
|
|
87
|
+
get runtimes() {
|
|
88
|
+
return this.graphManagerState.graph.ownRuntimes
|
|
89
|
+
.concat(this.graphManagerState.graph.dependencyManager.runtimes)
|
|
90
|
+
.filter((runtime) => runtime.runtimeValue.mappings
|
|
91
|
+
.map((mapping) => mapping.value)
|
|
92
|
+
.includes(this.currentExecutionContext.mapping.value));
|
|
93
|
+
}
|
|
94
|
+
// NOTE: we have tried to use React to control the cursor and
|
|
95
|
+
// could not overcome the jank/lag problem, so we settle with CSS-based approach
|
|
96
|
+
// See https://css-tricks.com/using-css-cursors/
|
|
97
|
+
// See https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
|
|
98
|
+
get diagramCursorClass() {
|
|
99
|
+
if (!this.isDiagramRendererInitialized) {
|
|
100
|
+
return '';
|
|
101
|
+
}
|
|
102
|
+
if (this.renderer.middleClick || this.renderer.rightClick) {
|
|
103
|
+
return 'diagram-editor__cursor--grabbing';
|
|
104
|
+
}
|
|
105
|
+
switch (this.renderer.interactionMode) {
|
|
106
|
+
case DIAGRAM_INTERACTION_MODE.LAYOUT: {
|
|
107
|
+
if (this.renderer.mouseOverClassView) {
|
|
108
|
+
return 'diagram-editor__cursor--pointer';
|
|
109
|
+
}
|
|
110
|
+
return '';
|
|
111
|
+
}
|
|
112
|
+
default:
|
|
113
|
+
return '';
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
setRenderer(val) {
|
|
117
|
+
this._renderer = val;
|
|
118
|
+
}
|
|
119
|
+
setCurrentDiagram(val) {
|
|
120
|
+
this.currentDiagram = val;
|
|
121
|
+
}
|
|
122
|
+
setCurrentActivity(val) {
|
|
123
|
+
this.currentActivity = val;
|
|
124
|
+
}
|
|
125
|
+
setCurrentExecutionContext(val) {
|
|
126
|
+
this.currentExecutionContext = val;
|
|
127
|
+
this.currentRuntime = val.defaultRuntime.value;
|
|
128
|
+
}
|
|
129
|
+
setCurrentRuntime(val) {
|
|
130
|
+
this.currentRuntime = val;
|
|
131
|
+
}
|
|
132
|
+
setupRenderer() {
|
|
133
|
+
this.renderer.setIsReadOnly(true);
|
|
134
|
+
this.renderer.onClassViewDoubleClick = (classView) => this.onDiagramClassDoubleClick?.(classView);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
//# sourceMappingURL=DataSpaceViewerState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataSpaceViewerState.js","sourceRoot":"","sources":["../../src/stores/DataSpaceViewerState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EACL,OAAO,EACP,wBAAwB,GACzB,MAAM,qCAAqC,CAAC;AAM7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMpE,MAAM,CAAN,IAAY,+BAQX;AARD,WAAY,+BAA+B;IACzC,sEAAmC,CAAA;IACnC,0DAAuB,CAAA;IACvB,8DAA2B,CAAA;IAC3B,0DAAuB,CAAA;IACvB,kEAA+B,CAAA;IAC/B,gDAAa,CAAA;IACb,sDAAmB,CAAA;AACrB,CAAC,EARW,+BAA+B,KAA/B,+BAA+B,QAQ1C;AAED,MAAM,OAAO,oBAAoB;IAC/B,iBAAiB,CAAoB;IACrC,gBAAgB,CAAS;IACzB,mBAAmB,CAAS;IAC5B,kBAAkB,CAAS;IAC3B,SAAS,CAAoB;IAC7B,SAAS,CAA+B;IACxC,cAAc,CAAuB;IACrC,eAAe,GAAG,+BAA+B,CAAC,eAAe,CAAC;IAClE,uBAAuB,CAAoC;IAC3D,cAAc,CAAqB;IACnC,WAAW,CAOG;IACd,yBAAyB,CAAgD;IAEzE,YACE,iBAAoC,EACpC,gBAAwB,EACxB,mBAA2B,EAC3B,kBAA0B,EAC1B,SAA4B,EAC5B,OAQC;QAED,cAAc,CAAC,IAAI,EAAE;YACnB,SAAS,EAAE,UAAU;YACrB,cAAc,EAAE,UAAU;YAC1B,eAAe,EAAE,UAAU;YAC3B,uBAAuB,EAAE,UAAU;YACnC,cAAc,EAAE,UAAU;YAC1B,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,MAAM;YACnB,iBAAiB,EAAE,MAAM;YACzB,kBA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CAAC;IAED,iBAAiB,CAAC,GAAY;QAC5B,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;IAC5B,CAAC;IAED,kBAAkB,CAAC,GAAoC;QACrD,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;IAED,0BAA0B,CAAC,GAAsC;QAC/D,IAAI,CAAC,uBAAuB,GAAG,GAAG,CAAC;QACnC,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC,KAAK,CAAC;IACjD,CAAC;IAED,iBAAiB,CAAC,GAAuB;QACvC,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC;IAC5B,CAAC;IAED,aAAa;QACX,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,CAAC,QAAQ,CAAC,sBAAsB,GAAG,CAAC,SAAoB,EAAQ,EAAE,CACpE,IAAI,CAAC,yBAAyB,EAAE,CAAC,SAAS,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -13,16 +13,17 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
17
|
-
import { Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
18
|
-
import type { Class, PackageableRuntime } from '@finos/legend-graph';
|
|
16
|
+
import type { Class } from '@finos/legend-graph';
|
|
19
17
|
import type { Entity } from '@finos/legend-model-storage';
|
|
20
18
|
import type { QuerySetupStore } from '@finos/legend-query';
|
|
21
19
|
import { QuerySetupState } from '@finos/legend-query';
|
|
22
20
|
import type { GeneratorFn } from '@finos/legend-shared';
|
|
23
21
|
import { ActionState } from '@finos/legend-shared';
|
|
24
|
-
import
|
|
22
|
+
import { DataSpaceViewerState } from '../DataSpaceViewerState';
|
|
25
23
|
export declare type LightDataSpace = Entity & {
|
|
24
|
+
groupId: string;
|
|
25
|
+
artifactId: string;
|
|
26
|
+
versionId: string;
|
|
26
27
|
path: string;
|
|
27
28
|
content: {
|
|
28
29
|
groupId: string;
|
|
@@ -30,45 +31,17 @@ export declare type LightDataSpace = Entity & {
|
|
|
30
31
|
versionId: string;
|
|
31
32
|
};
|
|
32
33
|
};
|
|
33
|
-
export declare enum DATA_SPACE_VIEWER_ACTIVITY_MODE {
|
|
34
|
-
MODELS = "MODELS",
|
|
35
|
-
EXECUTION = "EXECUTION",
|
|
36
|
-
ENTITLEMENT = "ENTITLEMENT",
|
|
37
|
-
SUPPORT = "SUPPORT"
|
|
38
|
-
}
|
|
39
|
-
export declare class DataSpaceViewerState {
|
|
40
|
-
setupState: DataSpaceQuerySetupState;
|
|
41
|
-
dataSpace: ResolvedDataSpace;
|
|
42
|
-
_renderer?: DiagramRenderer | undefined;
|
|
43
|
-
currentDiagram?: Diagram | undefined;
|
|
44
|
-
currentActivity: DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
45
|
-
currentExecutionContext: ResolvedDataSpaceExecutionContext;
|
|
46
|
-
currentRuntime: PackageableRuntime;
|
|
47
|
-
showOnlyFeaturedDiagrams: boolean;
|
|
48
|
-
constructor(setupState: DataSpaceQuerySetupState, dataSpace: ResolvedDataSpace);
|
|
49
|
-
get renderer(): DiagramRenderer;
|
|
50
|
-
get isDiagramRendererInitialized(): boolean;
|
|
51
|
-
get featuredDiagrams(): Diagram[];
|
|
52
|
-
get diagrams(): Diagram[];
|
|
53
|
-
get runtimes(): PackageableRuntime[];
|
|
54
|
-
get diagramCursorClass(): string;
|
|
55
|
-
setRenderer(val: DiagramRenderer): void;
|
|
56
|
-
setCurrentDiagram(val: Diagram): void;
|
|
57
|
-
setCurrentActivity(val: DATA_SPACE_VIEWER_ACTIVITY_MODE): void;
|
|
58
|
-
setCurrentExecutionContext(val: ResolvedDataSpaceExecutionContext): void;
|
|
59
|
-
setCurrentRuntime(val: PackageableRuntime): void;
|
|
60
|
-
setShowOnlyFeaturedDiagrams(val: boolean): void;
|
|
61
|
-
setupRenderer(): void;
|
|
62
|
-
}
|
|
63
34
|
export declare class DataSpaceQuerySetupState extends QuerySetupState {
|
|
64
35
|
dataSpaces: LightDataSpace[];
|
|
65
36
|
loadDataSpacesState: ActionState;
|
|
66
37
|
setUpDataSpaceState: ActionState;
|
|
67
38
|
currentDataSpace?: LightDataSpace | undefined;
|
|
68
39
|
dataSpaceViewerState?: DataSpaceViewerState | undefined;
|
|
40
|
+
toGetSnapShot: boolean;
|
|
69
41
|
constructor(setupStore: QuerySetupStore);
|
|
70
42
|
setCurrentDataSpace(val: LightDataSpace | undefined): void;
|
|
71
43
|
setDataSpaceViewerState(val: DataSpaceViewerState | undefined): void;
|
|
44
|
+
setToGetSnapShot(val: boolean): void;
|
|
72
45
|
loadDataSpaces(searchText: string): GeneratorFn<void>;
|
|
73
46
|
setUpDataSpace(dataSpace: LightDataSpace): GeneratorFn<void>;
|
|
74
47
|
proceedToCreateQuery(_class?: Class): GeneratorFn<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAEL,eAAe,EAEhB,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACL,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EAAE,oBAAoB,EAAE,MAA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