@finos/legend-extension-dsl-data-space 0.2.0 → 1.0.4
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 +20 -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/DataSpaceViewer.js +17 -17
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/{DSLDataSpace_QueryPlugin.d.ts → DSLDataSpace_LegendQueryPlugin.d.ts} +4 -5
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +1 -0
- package/lib/components/query/{DSLDataSpace_QueryPlugin.js → DSLDataSpace_LegendQueryPlugin.js} +4 -7
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.js +7 -7
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.d.ts → DSLDataSpace_LegendStudioPlugin.d.ts} +4 -6
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.js → DSLDataSpace_LegendStudioPlugin.js} +4 -22
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -0
- package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts +1 -2
- package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts.map +1 -1
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js +0 -3
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts +1 -2
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js +0 -3
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +1 -1
- 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 +2 -3
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +5 -8
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +2 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +15 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +19 -20
- package/src/DSLDataSpace_Extension.ts +0 -30
- package/src/components/query/{DSLDataSpace_QueryPlugin.tsx → DSLDataSpace_LegendQueryPlugin.tsx} +2 -7
- package/src/components/query/DataSpaceQuerySetup.tsx +2 -2
- package/src/components/studio/{DSLDataSpace_StudioPlugin.tsx → DSLDataSpace_LegendStudioPlugin.tsx} +5 -27
- package/src/graph/DSLDataSpace_PureGraphPlugin.ts +1 -8
- package/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +0 -5
- package/src/index.ts +12 -0
- package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +5 -10
- package/src/stores/query/DataSpaceQuerySetupState.ts +31 -0
- package/tsconfig.json +2 -7
- package/lib/components/query/DSLDataSpace_QueryPlugin.d.ts.map +0 -1
- package/lib/components/query/DSLDataSpace_QueryPlugin.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/components/studio/EnterpriseModelExplorer.d.ts +0 -21
- package/lib/components/studio/EnterpriseModelExplorer.d.ts.map +0 -1
- package/lib/components/studio/EnterpriseModelExplorer.js +0 -70
- package/lib/components/studio/EnterpriseModelExplorer.js.map +0 -1
- package/lib/components/studio/EnterpriseModelExplorerStoreProvider.d.ts +0 -21
- package/lib/components/studio/EnterpriseModelExplorerStoreProvider.d.ts.map +0 -1
- package/lib/components/studio/EnterpriseModelExplorerStoreProvider.js +0 -35
- package/lib/components/studio/EnterpriseModelExplorerStoreProvider.js.map +0 -1
- package/lib/components/studio/TaxonomyTree.d.ts +0 -23
- package/lib/components/studio/TaxonomyTree.d.ts.map +0 -1
- package/lib/components/studio/TaxonomyTree.js +0 -78
- package/lib/components/studio/TaxonomyTree.js.map +0 -1
- package/lib/components/studio/TaxonomyViewer.d.ts +0 -22
- package/lib/components/studio/TaxonomyViewer.d.ts.map +0 -1
- package/lib/components/studio/TaxonomyViewer.js +0 -59
- package/lib/components/studio/TaxonomyViewer.js.map +0 -1
- package/lib/stores/studio/EnterpriseModelExplorerStore.d.ts +0 -93
- package/lib/stores/studio/EnterpriseModelExplorerStore.d.ts.map +0 -1
- package/lib/stores/studio/EnterpriseModelExplorerStore.js +0 -300
- package/lib/stores/studio/EnterpriseModelExplorerStore.js.map +0 -1
- package/src/components/studio/EnterpriseModelExplorer.tsx +0 -229
- package/src/components/studio/EnterpriseModelExplorerStoreProvider.tsx +0 -61
- package/src/components/studio/TaxonomyTree.tsx +0 -179
- package/src/components/studio/TaxonomyViewer.tsx +0 -187
- package/src/stores/studio/EnterpriseModelExplorerStore.tsx +0 -514
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.4
|
|
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';.data-space__viewer{display:flex;flex-direction:column;height:100%;width:100%}.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}.enterprise-taxonomy-tree__node__container:hover{background:var(--color-dark-blue-shade-100)}.enterprise-taxonomy-tree__node__container--selected,.enterprise-taxonomy-tree__node__container--selected:hover{background:var(--color-light-blue-450)}.enterprise-taxonomy-tree__node__icon{display:flex;align-items:center;justify-content:center;width:4rem;min-width:4rem}.enterprise-taxonomy-tree__node__icon svg{font-size:1.2rem}.enterprise-taxonomy-tree__node__icon__expand,.enterprise-taxonomy-tree__node__icon__type{display:flex;justify-content:center;color:var(--color-light-grey-400);width:2rem}.enterprise-taxonomy-tree__node__icon__expand svg{font-size:1rem}.enterprise-taxonomy-tree__node__label{color:inherit}.enterprise-model-explorer__side-bar__header{min-width:9rem;background:var(--color-dark-grey-200);color:var(--color-light-grey-200);padding-left:1rem}.enterprise-model-explorer__side-bar__header__action{height:100%;color:var(--color-light-grey-400)}.enterprise-model-explorer__taxonomy-tree-container{height:100%;background:var(--color-dark-grey-100);padding:.5rem 0}.taxonomy-viewer{height:100%;width:100%}.taxonomy-viewer__explorer{height:100%}.taxonomy-viewer__explorer__header{background:var(--color-yellow-100);height:3.4rem !important}.taxonomy-viewer__explorer__header__title{font-weight:500;text-transform:uppercase;color:var(--color-dark-grey-200);font-size:1.2rem}.taxonomy-viewer__explorer__content{height:calc(100% - 3.4rem);background:var(--color-dark-grey-85);padding:.5rem 0;border:.1rem solid var(--color-dark-grey-50)}.taxonomy-viewer__explorer__entry{display:flex;align-items:center;height:2.8rem;width:100%;padding:0 .5rem}.taxonomy-viewer__explorer__entry__icon{display:flex;align-items:center;justify-content:center;height:2.8rem;width:2.8rem}.taxonomy-viewer__explorer__entry__icon svg{color:var(--color-blue-180)}.taxonomy-viewer__explorer__entry__path{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;height:100%;width:calc(100% - 2.8rem);line-height:2.8rem;color:var(--color-dark-grey-500)}.taxonomy-viewer__explorer__entry:hover{background:var(--color-dark-blue-shade-100)}.taxonomy-viewer__explorer__entry--active{background:var(--color-blue-500)}.taxonomy-viewer__explorer__entry--active .taxonomy-viewer__explorer__entry__path,.taxonomy-viewer__explorer__entry--active .taxonomy-viewer__explorer__entry__icon svg{color:var(--color-light-grey-300)}.taxonomy-viewer__content-placeholder{background:var(--color-dark-grey-80);height:100%}:root{--color-data-space: var(--color-blue-50)}.icon--data-space{color:var(--color-data-space)}/*# sourceMappingURL=index.css.map */
|
|
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-viewer.scss","
|
|
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"}
|
|
@@ -16,13 +16,12 @@
|
|
|
16
16
|
import { V1_DataSpace } from './v1/model/packageableElements/dataSpace/V1_DataSpace';
|
|
17
17
|
import type { PlainObject } from '@finos/legend-shared';
|
|
18
18
|
import type { DataSpaceSupportInfo } from '../../metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
19
|
-
import type {
|
|
19
|
+
import type { Mapping, PackageableElementReference, PackageableRuntime, PureModel, V1_ElementProtocolClassifierPathGetter, V1_ElementProtocolDeserializer, V1_ElementProtocolSerializer, V1_ElementTransformer, V1_PackageableElement, V1_PureModelContextData } from '@finos/legend-graph';
|
|
20
20
|
import { PureProtocolProcessorPlugin, V1_ElementBuilder } from '@finos/legend-graph';
|
|
21
21
|
import { Diagram } from '@finos/legend-extension-dsl-diagram';
|
|
22
22
|
export declare const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = "meta::pure::metamodel::dataSpace::DataSpace";
|
|
23
23
|
export declare class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
|
|
24
24
|
constructor();
|
|
25
|
-
install(pluginManager: GraphPluginManager): void;
|
|
26
25
|
V1_getExtraElementBuilders(): V1_ElementBuilder<V1_PackageableElement>[];
|
|
27
26
|
V1_getExtraSystemModels(): PlainObject<V1_PureModelContextData>[];
|
|
28
27
|
V1_getExtraElementClassifierPathGetters(): V1_ElementProtocolClassifierPathGetter[];
|
|
@@ -63,5 +62,5 @@ export declare class ResolvedDataSpace {
|
|
|
63
62
|
supportInfo?: DataSpaceSupportInfo | undefined;
|
|
64
63
|
}
|
|
65
64
|
export declare const getResolvedDataSpace: (json: PlainObject<V1_DataSpace>, graph: PureModel) => ResolvedDataSpace;
|
|
66
|
-
export declare const
|
|
65
|
+
export declare const extractDataSpaceTaxonomyNodes: (json: PlainObject<V1_DataSpace>) => string[];
|
|
67
66
|
//# 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;AAexD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qEAAqE,CAAC;AAMhH,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"DSLDataSpace_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"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,EAAE,CAAM;IACT,WAAW,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,EAAE,CAAM;IAC1E,IAAI,EAAG,MAAM,CAAC;IACd,OAAO,EAAG,MAAM,CAAC;IACjB,UAAU,EAAG,MAAM,CAAC;IACpB,SAAS,EAAG,MAAM,CAAC;IACnB,iBAAiB,EAAE,iCAAiC,EAAE,CAAM;IAC5D,uBAAuB,EAAG,iCAAiC,CAAC;IAC5D,gBAAgB,EAAE,2BAA2B,CAAC,OAAO,CAAC,EAAE,CAAM;IAC9D,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAChD;AAED,eAAO,MAAM,oBAAoB,SACzB,YAAY,YAAY,CAAC,SACxB,SAAS,KACf,iBAkGF,CAAC;AAEF,eAAO,MAAM,6BAA6B,SAClC,YAAY,YAAY,CAAC,KAC9B,MAAM,EA6BR,CAAC"}
|
|
@@ -28,9 +28,6 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProces
|
|
|
28
28
|
constructor() {
|
|
29
29
|
super(packageJson.extensions.pureProtocolProcessorPlugin, packageJson.version);
|
|
30
30
|
}
|
|
31
|
-
install(pluginManager) {
|
|
32
|
-
pluginManager.registerPureProtocolProcessorPlugin(this);
|
|
33
|
-
}
|
|
34
31
|
V1_getExtraElementBuilders() {
|
|
35
32
|
return [
|
|
36
33
|
new V1_ElementBuilder({
|
|
@@ -236,20 +233,20 @@ export const getResolvedDataSpace = (json, graph) => {
|
|
|
236
233
|
}
|
|
237
234
|
throw new UnsupportedOperationError(`Can't resolve data space`, json);
|
|
238
235
|
};
|
|
239
|
-
export const
|
|
236
|
+
export const extractDataSpaceTaxonomyNodes = (json) => {
|
|
240
237
|
const ENTERPRISE_PROFILE_PATH = `meta::pure::profiles::enterprise`;
|
|
241
|
-
const
|
|
242
|
-
const
|
|
238
|
+
const TAXONOMY_NODES_TAG = `taxonomyNodes`;
|
|
239
|
+
const TAXONOMY_NODES_TAG_VALUE_DELIMITER = `,`;
|
|
243
240
|
const taxonomyNodes = new Set();
|
|
244
241
|
if (json._type === V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE) {
|
|
245
242
|
if (Array.isArray(json.taggedValues)) {
|
|
246
243
|
const taggedValues = json.taggedValues.map((taggedValueJson) => deserialize(V1_taggedValueSchema, taggedValueJson));
|
|
247
244
|
taggedValues
|
|
248
245
|
.filter((taggedValue) => taggedValue.tag.profile === ENTERPRISE_PROFILE_PATH &&
|
|
249
|
-
taggedValue.tag.value ===
|
|
246
|
+
taggedValue.tag.value === TAXONOMY_NODES_TAG)
|
|
250
247
|
.forEach((taggedValue) => {
|
|
251
248
|
taggedValue.value
|
|
252
|
-
.split(
|
|
249
|
+
.split(TAXONOMY_NODES_TAG_VALUE_DELIMITER)
|
|
253
250
|
.map((value) => value.trim())
|
|
254
251
|
.filter((value) => Boolean(value))
|
|
255
252
|
.forEach((value) => taxonomyNodes.add(value));
|
|
@@ -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,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,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,EACzB,qBAAqB,GACtB,MAAM,qEAAqE,CAAC;AAiB7E,OAAO,EACL,oBAAoB,EACpB,mCAAmC,EACnC,4BAA4B,EAC5B,gCAAgC,EAChC,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,OAAO,EACP,2CAA2C,GAC5C,MAAM,qCAAqC,CAAC;AAE7C,MAAM,CAAC,MAAM,kCAAkC,GAC7C,6CAA6C,CAAC;AAEhD,MAAM,OAAO,wCAAyC,SAAQ,2BAA2B;IACv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E;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"}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Class } from '@finos/legend-graph';
|
|
17
|
+
import { QueryTaggedValue } from '@finos/legend-graph';
|
|
17
18
|
import type { Entity } from '@finos/legend-model-storage';
|
|
18
19
|
import type { QuerySetupStore } from '@finos/legend-query';
|
|
19
20
|
import { QuerySetupState } from '@finos/legend-query';
|
|
@@ -31,6 +32,7 @@ export declare type LightDataSpace = Entity & {
|
|
|
31
32
|
versionId: string;
|
|
32
33
|
};
|
|
33
34
|
};
|
|
35
|
+
export declare const createQueryDataSpaceTaggedValue: (dataSpacePath: string, groupId: string, artifactId: string, versionId: string) => QueryTaggedValue;
|
|
34
36
|
export declare class DataSpaceQuerySetupState extends QuerySetupState {
|
|
35
37
|
dataSpaces: LightDataSpace[];
|
|
36
38
|
loadDataSpacesState: ActionState;
|
|
@@ -1 +1 @@
|
|
|
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,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,gBAAgB,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACxD,aAAa,UAAS;gBAEV,UAAU,EAAE,eAAe;IAiBvC,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI;IAI1D,uBAAuB,CAAC,GAAG,EAAE,oBAAoB,GAAG,SAAS,GAAG,IAAI;IAIpE,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAInC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;IAuDrD,cAAc,CAAC,SAAS,EAAE,cAAc,GAAG,WAAW,CAAC,IAAI,CAAC;IAuD5D,oBAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC;CAuCzD"}
|
|
@@ -13,12 +13,23 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { QueryTaggedValue } from '@finos/legend-graph';
|
|
16
17
|
import { CreateQueryInfoState, QuerySetupState, generateCreateQueryRoute, } from '@finos/legend-query';
|
|
17
|
-
import { DepotScope, ProjectData, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
|
|
18
|
+
import { generateGAVCoordinates, DepotScope, ProjectData, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
|
|
18
19
|
import { ActionState, assertErrorThrown, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
19
20
|
import { action, flow, flowResult, makeObservable, observable } from 'mobx';
|
|
20
21
|
import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, getResolvedDataSpace, } from '../../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
21
22
|
import { DataSpaceViewerState } from '../DataSpaceViewerState';
|
|
23
|
+
const QUERY_PROFILE_PATH = 'meta::pure::profiles::query';
|
|
24
|
+
const QUERY_PROFILE_TAG_DATA_SPACE = 'dataSpace';
|
|
25
|
+
const DATA_SPACE_ID_DELIMITER = '@';
|
|
26
|
+
export const createQueryDataSpaceTaggedValue = (dataSpacePath, groupId, artifactId, versionId) => {
|
|
27
|
+
const taggedValue = new QueryTaggedValue();
|
|
28
|
+
taggedValue.profile = QUERY_PROFILE_PATH;
|
|
29
|
+
taggedValue.tag = QUERY_PROFILE_TAG_DATA_SPACE;
|
|
30
|
+
taggedValue.value = `${generateGAVCoordinates(groupId, artifactId, versionId)}${DATA_SPACE_ID_DELIMITER}${dataSpacePath}`;
|
|
31
|
+
return taggedValue;
|
|
32
|
+
};
|
|
22
33
|
export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
23
34
|
dataSpaces = [];
|
|
24
35
|
loadDataSpacesState = ActionState.create();
|
|
@@ -119,6 +130,9 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
119
130
|
if (this.dataSpaceViewerState) {
|
|
120
131
|
const projectData = ProjectData.serialization.fromJson((yield flowResult(this.queryStore.depotServerClient.getProject(this.dataSpaceViewerState.dataSpace.groupId, this.dataSpaceViewerState.dataSpace.artifactId))));
|
|
121
132
|
const queryInfoState = new CreateQueryInfoState(this.queryStore, projectData, this.dataSpaceViewerState.dataSpace.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value, this.dataSpaceViewerState.currentRuntime);
|
|
133
|
+
queryInfoState.taggedValues = [
|
|
134
|
+
createQueryDataSpaceTaggedValue(this.dataSpaceViewerState.dataSpace.path, this.dataSpaceViewerState.dataSpaceGroupId, this.dataSpaceViewerState.dataSpaceArtifactId, this.dataSpaceViewerState.dataSpaceVersionId),
|
|
135
|
+
];
|
|
122
136
|
queryInfoState.class = _class;
|
|
123
137
|
this.queryStore.setQueryInfoState(queryInfoState);
|
|
124
138
|
this.queryStore.applicationStore.navigator.goTo(generateCreateQueryRoute(this.dataSpaceViewerState.dataSpace.groupId, this.dataSpaceViewerState.dataSpace.artifactId, this.dataSpaceViewerState.dataSpace.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value.path, this.dataSpaceViewerState.currentRuntime.path));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,sBAAsB,EACtB,UAAU,EACV,WAAW,EACX,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EACL,kCAAkC,EAClC,oBAAoB,GACrB,MAAM,sEAAsE,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAc/D,MAAM,kBAAkB,GAAG,6BAA6B,CAAC;AACzD,MAAM,4BAA4B,GAAG,WAAW,CAAC;AACjD,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAEpC,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC7C,aAAqB,EACrB,OAAe,EACf,UAAkB,EAClB,SAAiB,EACC,EAAE;IACpB,MAAM,WAAW,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAC3C,WAAW,CAAC,OAAO,GAAG,kBAAkB,CAAC;IACzC,WAAW,CAAC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AAoB,CAAC,SAAS,CAAC,IAAI,EACxC,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,EAC1C,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,EAC7C,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAC7C;aACF,CAAC;YACF,cAAc,CAAC,KAAK,GAAG,MAAM,CAAC;YAC9B,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;YAClD,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAC7C,wBAAwB,CACtB,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,OAAO,EAC3C,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,UAAU,EAC9C,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,SAAS,EAC7C,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EACpE,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,CAC9C,CACF,CAAC;YACF,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;SAC1C;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"types": "lib/index.d.ts",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && yarn build:sass && yarn build:tsc",
|
|
28
|
-
"build:sass": "cross-env INIT_CWD=$INIT_CWD
|
|
28
|
+
"build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js",
|
|
29
29
|
"build:tsc": "tsc --project ./tsconfig.build.json",
|
|
30
30
|
"clean": "rimraf \"lib\" \"build\"",
|
|
31
31
|
"dev": "npm-run-all --parallel dev:sass dev:tsc",
|
|
32
|
-
"dev:sass": "sass
|
|
32
|
+
"dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
|
|
33
33
|
"dev:tsc": "tsc --watch --preserveWatchOutput",
|
|
34
34
|
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"",
|
|
35
35
|
"publish:prepare": "node ../../scripts/release/preparePublishContent.js",
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
"test:watch": "jest --watch"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@finos/legend-application": "0.1
|
|
42
|
-
"@finos/legend-art": "0.
|
|
43
|
-
"@finos/legend-extension-dsl-diagram": "0.
|
|
44
|
-
"@finos/legend-graph": "0.
|
|
45
|
-
"@finos/legend-model-storage": "0.0.
|
|
46
|
-
"@finos/legend-query": "0.1
|
|
47
|
-
"@finos/legend-server-depot": "0.0.
|
|
48
|
-
"@finos/legend-shared": "
|
|
49
|
-
"@finos/legend-studio": "1.
|
|
50
|
-
"@types/react": "17.0.
|
|
41
|
+
"@finos/legend-application": "1.0.1",
|
|
42
|
+
"@finos/legend-art": "0.2.1",
|
|
43
|
+
"@finos/legend-extension-dsl-diagram": "1.0.4",
|
|
44
|
+
"@finos/legend-graph": "0.3.1",
|
|
45
|
+
"@finos/legend-model-storage": "0.0.11",
|
|
46
|
+
"@finos/legend-query": "0.2.1",
|
|
47
|
+
"@finos/legend-server-depot": "0.0.14",
|
|
48
|
+
"@finos/legend-shared": "1.0.1",
|
|
49
|
+
"@finos/legend-studio": "2.1.1",
|
|
50
|
+
"@types/react": "17.0.37",
|
|
51
51
|
"@types/react-router-dom": "5.3.2",
|
|
52
|
-
"mobx": "6.3.
|
|
52
|
+
"mobx": "6.3.8",
|
|
53
53
|
"mobx-react-lite": "3.2.2",
|
|
54
54
|
"monaco-editor": "0.30.1",
|
|
55
55
|
"react": "17.0.2",
|
|
@@ -60,14 +60,14 @@
|
|
|
60
60
|
"serializr": "2.0.5"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@finos/legend-dev-utils": "0.
|
|
63
|
+
"@finos/legend-dev-utils": "0.3.1",
|
|
64
64
|
"cross-env": "7.0.3",
|
|
65
|
-
"eslint": "8.
|
|
66
|
-
"jest": "27.3
|
|
65
|
+
"eslint": "8.4.0",
|
|
66
|
+
"jest": "27.4.3",
|
|
67
67
|
"npm-run-all": "4.1.5",
|
|
68
68
|
"rimraf": "3.0.2",
|
|
69
|
-
"sass": "1.
|
|
70
|
-
"typescript": "4.
|
|
69
|
+
"sass": "1.44.0",
|
|
70
|
+
"typescript": "4.5.2"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"react": "^17.0.0"
|
|
@@ -80,7 +80,6 @@
|
|
|
80
80
|
"pureProtocolProcessorPlugin": "@finos/legend-graph-plugin-dsl-data-space-pure-protocol-processor",
|
|
81
81
|
"pureGraphManagerPlugin": "@finos/legend-graph-plugin-dsl-data-space-pure-graph-manager",
|
|
82
82
|
"pureGraphPlugin": "@finos/legend-graph-plugin-dsl-data-space-pure-graph",
|
|
83
|
-
"studioPreset": "@finos/legend-studio-preset-dsl-data-space",
|
|
84
83
|
"studioPlugin": "@finos/legend-studio-plugin-dsl-data-space",
|
|
85
84
|
"queryPlugin": "@finos/legend-query-plugin-dsl-data-space"
|
|
86
85
|
}
|
|
@@ -19,11 +19,7 @@ import { AbstractPreset } from '@finos/legend-shared';
|
|
|
19
19
|
import { DSLDataSpace_PureGraphManagerPlugin } from './graphManager/DSLDataSpace_PureGraphManagerPlugin';
|
|
20
20
|
import { DSLDataSpace_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
21
21
|
import type { GraphPluginManager } from '@finos/legend-graph';
|
|
22
|
-
import type { StudioPluginManager } from '@finos/legend-studio';
|
|
23
|
-
import { DSLDataSpace_StudioPlugin } from './components/studio/DSLDataSpace_StudioPlugin';
|
|
24
22
|
import { DSLDataSpace_PureGraphPlugin } from './graph/DSLDataSpace_PureGraphPlugin';
|
|
25
|
-
import type { QueryPluginManager } from '@finos/legend-query';
|
|
26
|
-
import { DSLDataSpace_QueryPlugin } from './components/query/DSLDataSpace_QueryPlugin';
|
|
27
23
|
|
|
28
24
|
export class DSLDataSpace_GraphPreset extends AbstractPreset {
|
|
29
25
|
constructor() {
|
|
@@ -36,29 +32,3 @@ export class DSLDataSpace_GraphPreset extends AbstractPreset {
|
|
|
36
32
|
new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
|
-
|
|
40
|
-
export class DSLDataSpace_StudioPreset extends AbstractPreset {
|
|
41
|
-
constructor() {
|
|
42
|
-
super(packageJson.extensions.studioPreset, packageJson.version);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
install(pluginManager: StudioPluginManager): void {
|
|
46
|
-
new DSLDataSpace_StudioPlugin().install(pluginManager);
|
|
47
|
-
new DSLDataSpace_PureGraphPlugin().install(pluginManager);
|
|
48
|
-
new DSLDataSpace_PureGraphManagerPlugin().install(pluginManager);
|
|
49
|
-
new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export class DSLDataSpace_QueryPreset extends AbstractPreset {
|
|
54
|
-
constructor() {
|
|
55
|
-
super(packageJson.extensions.studioPreset, packageJson.version);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
install(pluginManager: QueryPluginManager): void {
|
|
59
|
-
new DSLDataSpace_QueryPlugin().install(pluginManager);
|
|
60
|
-
new DSLDataSpace_PureGraphPlugin().install(pluginManager);
|
|
61
|
-
new DSLDataSpace_PureGraphManagerPlugin().install(pluginManager);
|
|
62
|
-
new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
|
|
63
|
-
}
|
|
64
|
-
}
|
package/src/components/query/{DSLDataSpace_QueryPlugin.tsx → DSLDataSpace_LegendQueryPlugin.tsx}
RENAMED
|
@@ -16,26 +16,21 @@
|
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../../package.json';
|
|
18
18
|
import type {
|
|
19
|
-
QueryPluginManager,
|
|
20
19
|
QuerySetupOptionRendererConfiguration,
|
|
21
20
|
QuerySetupRenderer,
|
|
22
21
|
QuerySetupState,
|
|
23
22
|
QuerySetupStore,
|
|
24
23
|
} from '@finos/legend-query';
|
|
25
|
-
import {
|
|
24
|
+
import { LegendQueryPlugin } from '@finos/legend-query';
|
|
26
25
|
import { SquareIcon } from '@finos/legend-art';
|
|
27
26
|
import { DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupState';
|
|
28
27
|
import { DataspaceQuerySetup } from './DataSpaceQuerySetup';
|
|
29
28
|
|
|
30
|
-
export class
|
|
29
|
+
export class DSLDataSpace_LegendQueryPlugin extends LegendQueryPlugin {
|
|
31
30
|
constructor() {
|
|
32
31
|
super(packageJson.extensions.queryPlugin, packageJson.version);
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
install(pluginManager: QueryPluginManager): void {
|
|
36
|
-
pluginManager.registerQueryPlugin(this);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
34
|
override getExtraQuerySetupOptionRendererConfigurations(): QuerySetupOptionRendererConfiguration[] {
|
|
40
35
|
return [
|
|
41
36
|
{
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
CustomSelectorInput,
|
|
28
28
|
SearchIcon,
|
|
29
29
|
} from '@finos/legend-art';
|
|
30
|
-
import { useQuerySetupStore,
|
|
30
|
+
import { useQuerySetupStore, useLegendQueryStore } from '@finos/legend-query';
|
|
31
31
|
import { generateGAVCoordinates } from '@finos/legend-server-depot';
|
|
32
32
|
import { debounce } from '@finos/legend-shared';
|
|
33
33
|
import { flowResult } from 'mobx';
|
|
@@ -50,7 +50,7 @@ export const DataspaceQuerySetup = observer(
|
|
|
50
50
|
const { querySetupState } = props;
|
|
51
51
|
const applicationStore = useApplicationStore();
|
|
52
52
|
const setupStore = useQuerySetupStore();
|
|
53
|
-
const queryStore =
|
|
53
|
+
const queryStore = useLegendQueryStore();
|
|
54
54
|
const dataSpaceSearchRef = useRef<SelectComponent>(null);
|
|
55
55
|
const [searchText, setSearchText] = useState('');
|
|
56
56
|
|
package/src/components/studio/{DSLDataSpace_StudioPlugin.tsx → DSLDataSpace_LegendStudioPlugin.tsx}
RENAMED
|
@@ -16,21 +16,19 @@
|
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../../package.json';
|
|
18
18
|
import type {
|
|
19
|
-
StudioPluginManager,
|
|
20
19
|
NewElementFromStateCreator,
|
|
21
20
|
ElementTypeGetter,
|
|
22
21
|
ElementProjectExplorerDnDTypeGetter,
|
|
23
22
|
ElementIconGetter,
|
|
24
|
-
|
|
23
|
+
DSL_LegendStudioPlugin_Extension,
|
|
25
24
|
NewElementState,
|
|
26
25
|
ElementEditorStateCreator,
|
|
27
26
|
EditorStore,
|
|
28
27
|
ElementEditorState,
|
|
29
|
-
ApplicationPageRenderEntry,
|
|
30
28
|
} from '@finos/legend-studio';
|
|
31
29
|
import {
|
|
32
30
|
UnsupportedElementEditorState,
|
|
33
|
-
|
|
31
|
+
LegendStudioPlugin,
|
|
34
32
|
} from '@finos/legend-studio';
|
|
35
33
|
import { SquareIcon } from '@finos/legend-art';
|
|
36
34
|
import type { PackageableElement } from '@finos/legend-graph';
|
|
@@ -38,40 +36,20 @@ import {
|
|
|
38
36
|
DataSpace,
|
|
39
37
|
DataSpaceExecutionContext,
|
|
40
38
|
} from '../../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
41
|
-
import { EnterpriseModelExplorer } from './EnterpriseModelExplorer';
|
|
42
|
-
import { ENTERPRISE_MODEL_EXPLORER_ROUTE_PATTERN } from '../../stores/studio/EnterpriseModelExplorerStore';
|
|
43
39
|
import { LATEST_VERSION_ALIAS } from '@finos/legend-server-depot';
|
|
44
40
|
|
|
45
41
|
const DATA_SPACE_ELEMENT_TYPE = 'DATA SPACE';
|
|
46
42
|
const DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE =
|
|
47
43
|
'PROJECT_EXPLORER_DATA_SPACE';
|
|
48
44
|
|
|
49
|
-
export class
|
|
50
|
-
extends
|
|
51
|
-
implements
|
|
45
|
+
export class DSLDataSpace_LegendStudioPlugin
|
|
46
|
+
extends LegendStudioPlugin
|
|
47
|
+
implements DSL_LegendStudioPlugin_Extension
|
|
52
48
|
{
|
|
53
49
|
constructor() {
|
|
54
50
|
super(packageJson.extensions.studioPlugin, packageJson.version);
|
|
55
51
|
}
|
|
56
52
|
|
|
57
|
-
install(pluginManager: StudioPluginManager): void {
|
|
58
|
-
pluginManager.registerStudioPlugin(this);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
override getExtraApplicationPageRenderEntries(): ApplicationPageRenderEntry[] {
|
|
62
|
-
return [
|
|
63
|
-
{
|
|
64
|
-
key: 'enterprise-application-page',
|
|
65
|
-
urlPatterns: [
|
|
66
|
-
ENTERPRISE_MODEL_EXPLORER_ROUTE_PATTERN.ENTERPRISE_VIEW,
|
|
67
|
-
ENTERPRISE_MODEL_EXPLORER_ROUTE_PATTERN.ENTERPRISE_VIEW_BY_DATA_SPACE,
|
|
68
|
-
ENTERPRISE_MODEL_EXPLORER_ROUTE_PATTERN.ENTERPRISE_VIEW_BY_TAXONOMY_NODE,
|
|
69
|
-
],
|
|
70
|
-
component: EnterpriseModelExplorer,
|
|
71
|
-
},
|
|
72
|
-
];
|
|
73
|
-
}
|
|
74
|
-
|
|
75
53
|
getExtraSupportedElementTypes(): string[] {
|
|
76
54
|
return [DATA_SPACE_ELEMENT_TYPE];
|
|
77
55
|
}
|
|
@@ -17,10 +17,7 @@
|
|
|
17
17
|
import packageJson from '../../package.json';
|
|
18
18
|
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
19
19
|
import type { Clazz } from '@finos/legend-shared';
|
|
20
|
-
import type {
|
|
21
|
-
GraphPluginManager,
|
|
22
|
-
PackageableElement,
|
|
23
|
-
} from '@finos/legend-graph';
|
|
20
|
+
import type { PackageableElement } from '@finos/legend-graph';
|
|
24
21
|
import { PureGraphPlugin } from '@finos/legend-graph';
|
|
25
22
|
|
|
26
23
|
export class DSLDataSpace_PureGraphPlugin extends PureGraphPlugin {
|
|
@@ -28,10 +25,6 @@ export class DSLDataSpace_PureGraphPlugin extends PureGraphPlugin {
|
|
|
28
25
|
super(packageJson.extensions.pureGraphPlugin, packageJson.version);
|
|
29
26
|
}
|
|
30
27
|
|
|
31
|
-
install(pluginManager: GraphPluginManager): void {
|
|
32
|
-
pluginManager.registerPureGraphPlugin(this);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
28
|
override getExtraPureGraphExtensionClasses(): Clazz<PackageableElement>[] {
|
|
36
29
|
return [DataSpace];
|
|
37
30
|
}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
import packageJson from '../../package.json';
|
|
18
18
|
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DataSpace';
|
|
19
19
|
import type {
|
|
20
|
-
GraphPluginManager,
|
|
21
20
|
PackageableElement,
|
|
22
21
|
PureGrammarElementLabeler,
|
|
23
22
|
} from '@finos/legend-graph';
|
|
@@ -31,10 +30,6 @@ export class DSLDataSpace_PureGraphManagerPlugin extends PureGraphManagerPlugin
|
|
|
31
30
|
super(packageJson.extensions.pureGraphManagerPlugin, packageJson.version);
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
install(pluginManager: GraphPluginManager): void {
|
|
35
|
-
pluginManager.registerPureGraphManagerPlugin(this);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
33
|
override getExtraPureGrammarParserNames(): string[] {
|
|
39
34
|
return [PURE_GRAMMAR_DATA_SPACE_PARSER_NAME];
|
|
40
35
|
}
|