@finos/legend-extension-dsl-data-space 6.1.11 → 6.1.13

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.
Files changed (74) hide show
  1. package/lib/DSLDataSpace_Const.d.ts +2 -0
  2. package/lib/DSLDataSpace_Const.d.ts.map +1 -1
  3. package/lib/DSLDataSpace_Const.js +2 -0
  4. package/lib/DSLDataSpace_Const.js.map +1 -1
  5. package/lib/components/{query/DataSpaceQueryEditor.d.ts → DSLDataSpace_Icon.d.ts} +2 -4
  6. package/lib/components/DSLDataSpace_Icon.d.ts.map +1 -0
  7. package/lib/components/DSLDataSpace_Icon.js +19 -0
  8. package/lib/components/DSLDataSpace_Icon.js.map +1 -0
  9. package/lib/components/DataSpaceViewer.d.ts +0 -1
  10. package/lib/components/DataSpaceViewer.d.ts.map +1 -1
  11. package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.d.ts +3 -2
  12. package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -1
  13. package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.js +99 -8
  14. package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.js.map +1 -1
  15. package/lib/components/query/DataSpaceQueryBuilder.d.ts +18 -0
  16. package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +1 -0
  17. package/lib/components/query/DataSpaceQueryBuilder.js +126 -0
  18. package/lib/components/query/DataSpaceQueryBuilder.js.map +1 -0
  19. package/lib/components/query/DataSpaceQueryCreator.d.ts +19 -0
  20. package/lib/components/query/DataSpaceQueryCreator.d.ts.map +1 -0
  21. package/lib/components/query/{DataSpaceQueryEditor.js → DataSpaceQueryCreator.js} +11 -11
  22. package/lib/components/query/DataSpaceQueryCreator.js.map +1 -0
  23. package/lib/components/query/DataSpaceQuerySetup.d.ts +0 -1
  24. package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
  25. package/lib/components/query/DataSpaceQuerySetup.js +6 -8
  26. package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
  27. package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.d.ts +4 -4
  28. package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -1
  29. package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js +5 -5
  30. package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js.map +1 -1
  31. package/lib/index.css +2 -2
  32. package/lib/index.css.map +1 -1
  33. package/lib/package.json +8 -7
  34. package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts +11 -8
  35. package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts.map +1 -1
  36. package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js +15 -11
  37. package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js.map +1 -1
  38. package/lib/stores/query/DataSpaceInfo.d.ts +31 -0
  39. package/lib/stores/query/DataSpaceInfo.d.ts.map +1 -0
  40. package/lib/stores/query/DataSpaceInfo.js +34 -0
  41. package/lib/stores/query/DataSpaceInfo.js.map +1 -0
  42. package/lib/stores/query/DataSpaceQueryBuilderState.d.ts +52 -0
  43. package/lib/stores/query/DataSpaceQueryBuilderState.d.ts.map +1 -0
  44. package/lib/stores/query/DataSpaceQueryBuilderState.js +112 -0
  45. package/lib/stores/query/DataSpaceQueryBuilderState.js.map +1 -0
  46. package/lib/stores/query/{DataSpaceQueryEditorStore.d.ts → DataSpaceQueryCreatorStore.d.ts} +6 -3
  47. package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +1 -0
  48. package/lib/stores/query/DataSpaceQueryCreatorStore.js +113 -0
  49. package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -0
  50. package/lib/stores/query/DataSpaceQuerySetupState.d.ts +5 -12
  51. package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
  52. package/lib/stores/query/DataSpaceQuerySetupState.js +9 -19
  53. package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
  54. package/package.json +18 -17
  55. package/src/DSLDataSpace_Const.ts +3 -0
  56. package/src/components/DSLDataSpace_Icon.tsx +23 -0
  57. package/src/components/query/DSLDataSpace_LegendQueryApplicationPlugin.tsx +170 -8
  58. package/src/components/query/DataSpaceQueryBuilder.tsx +344 -0
  59. package/src/components/query/{DataSpaceQueryEditor.tsx → DataSpaceQueryCreator.tsx} +13 -13
  60. package/src/components/query/DataSpaceQuerySetup.tsx +10 -14
  61. package/src/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.tsx +7 -11
  62. package/src/stores/query/DSLDataSpace_LegendQueryRouter.ts +17 -15
  63. package/src/stores/query/DataSpaceInfo.ts +57 -0
  64. package/src/stores/query/DataSpaceQueryBuilderState.ts +178 -0
  65. package/src/stores/query/DataSpaceQueryCreatorStore.ts +241 -0
  66. package/src/stores/query/DataSpaceQuerySetupState.ts +18 -32
  67. package/tsconfig.json +7 -3
  68. package/tsconfig.package.json +1 -1
  69. package/lib/components/query/DataSpaceQueryEditor.d.ts.map +0 -1
  70. package/lib/components/query/DataSpaceQueryEditor.js.map +0 -1
  71. package/lib/stores/query/DataSpaceQueryEditorStore.d.ts.map +0 -1
  72. package/lib/stores/query/DataSpaceQueryEditorStore.js +0 -98
  73. package/lib/stores/query/DataSpaceQueryEditorStore.js.map +0 -1
  74. package/src/stores/query/DataSpaceQueryEditorStore.ts +0 -173
@@ -13,17 +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 NewElementFromStateCreator, type ElementTypeGetter, type ElementProjectExplorerDnDTypeGetter, type ElementIconGetter, type DSL_LegendStudioApplicationPlugin_Extension, type ElementEditorStateCreator, type PureGrammarParserElementDocumentationGetter, type PureGrammarParserDocumentationGetter, type PureGrammarParserKeywordSuggestionGetter, type PureGrammarParserElementSnippetSuggestionsGetter, LegendStudioApplicationPlugin } from '@finos/legend-application-studio';
16
+ import { type NewElementFromStateCreator, type ElementClassifier, type DragElementClassifier, type ElementIconGetter, type DSL_LegendStudioApplicationPlugin_Extension, type ElementEditorStateCreator, type PureGrammarParserElementDocumentationGetter, type PureGrammarParserDocumentationGetter, type PureGrammarParserKeywordSuggestionGetter, type PureGrammarParserElementSnippetSuggestionsGetter, LegendStudioApplicationPlugin } from '@finos/legend-application-studio';
17
17
  export declare class DSLDataSpace_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin implements DSL_LegendStudioApplicationPlugin_Extension {
18
18
  constructor();
19
19
  getExtraRequiredDocumentationKeys(): string[];
20
20
  getExtraSupportedElementTypes(): string[];
21
- getExtraElementTypeGetters(): ElementTypeGetter[];
21
+ getExtraElementClassifiers(): ElementClassifier[];
22
22
  getExtraElementIconGetters(): ElementIconGetter[];
23
23
  getExtraNewElementFromStateCreators(): NewElementFromStateCreator[];
24
24
  getExtraElementEditorStateCreators(): ElementEditorStateCreator[];
25
- getExtraElementProjectExplorerDnDTypeGetters(): ElementProjectExplorerDnDTypeGetter[];
26
- getExtraPureGrammarTextEditorDnDTypes(): string[];
25
+ getExtraDragElementClassifiers(): DragElementClassifier[];
26
+ getExtraPureGrammarTextEditorDragElementTypes(): string[];
27
27
  getExtraPureGrammarParserElementDocumentationGetters(): PureGrammarParserElementDocumentationGetter[];
28
28
  getExtraPureGrammarParserDocumentationGetters(): PureGrammarParserDocumentationGetter[];
29
29
  getExtraPureGrammarParserKeywordSuggestionGetters(): PureGrammarParserKeywordSuggestionGetter[];
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDataSpace_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,2CAA2C,EAEhD,KAAK,yBAAyB,EAG9B,KAAK,2CAA2C,EAChD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAE7C,KAAK,gDAAgD,EAErD,6BAA6B,EAC9B,MAAM,kCAAkC,CAAC;AAwB1C,qBAAa,0CACX,SAAQ,6BACR,YAAW,2CAA2C;;IAM7C,iCAAiC,IAAI,MAAM,EAAE;IAOtD,6BAA6B,IAAI,MAAM,EAAE;IAIzC,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAejD,mCAAmC,IAAI,0BAA0B,EAAE;IA0BnE,kCAAkC,IAAI,yBAAyB,EAAE;IAcjE,4CAA4C,IAAI,mCAAmC,EAAE;IAWrF,qCAAqC,IAAI,MAAM,EAAE;IAIjD,oDAAoD,IAAI,2CAA2C,EAAE;IAmBrG,6CAA6C,IAAI,oCAAoC,EAAE;IAgBvF,iDAAiD,IAAI,wCAAwC,EAAE;IAgB/F,yDAAyD,IAAI,gDAAgD,EAAE;CAgBhH"}
1
+ {"version":3,"file":"DSLDataSpace_LegendStudioApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,2CAA2C,EAEhD,KAAK,yBAAyB,EAG9B,KAAK,2CAA2C,EAChD,KAAK,oCAAoC,EACzC,KAAK,wCAAwC,EAE7C,KAAK,gDAAgD,EAErD,6BAA6B,EAC9B,MAAM,kCAAkC,CAAC;AAwB1C,qBAAa,0CACX,SAAQ,6BACR,YAAW,2CAA2C;;IAM7C,iCAAiC,IAAI,MAAM,EAAE;IAOtD,6BAA6B,IAAI,MAAM,EAAE;IAIzC,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,mCAAmC,IAAI,0BAA0B,EAAE;IA0BnE,kCAAkC,IAAI,yBAAyB,EAAE;IAcjE,8BAA8B,IAAI,qBAAqB,EAAE;IAWzD,6CAA6C,IAAI,MAAM,EAAE;IAIzD,oDAAoD,IAAI,2CAA2C,EAAE;IAmBrG,6CAA6C,IAAI,oCAAoC,EAAE;IAgBvF,iDAAiD,IAAI,wCAAwC,EAAE;IAgB/F,yDAAyD,IAAI,gDAAgD,EAAE;CAgBhH"}
@@ -16,12 +16,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
16
16
  */
17
17
  import packageJson from '../../../package.json';
18
18
  import { UnsupportedElementEditorState, LegendStudioApplicationPlugin, } from '@finos/legend-application-studio';
19
- import { SquareIcon } from '@finos/legend-art';
20
19
  import { PackageableElementExplicitReference, stub_Mapping, stub_PackageableRuntime, } from '@finos/legend-graph';
21
20
  import { DataSpace, DataSpaceExecutionContext, } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
22
21
  import { DSL_DATA_SPACE_LEGEND_STUDIO_DOCUMENTATION_KEY } from './DSLDataSpace_LegendStudioDocumentation.js';
23
22
  import { PURE_GRAMMAR_DATA_SPACE_ELEMENT_TYPE_LABEL, PURE_GRAMMAR_DATA_SPACE_PARSER_NAME, } from '../../graphManager/DSLDataSpace_PureGraphManagerPlugin.js';
24
23
  import { SIMPLE_DATA_SPACE_SNIPPET } from './DSLDataSpace_CodeSnippets.js';
24
+ import { DataSpaceIcon } from '../DSLDataSpace_Icon.js';
25
25
  const DATA_SPACE_ELEMENT_TYPE = 'DATA SPACE';
26
26
  const DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE = 'PROJECT_EXPLORER_DATA_SPACE';
27
27
  export class DSLDataSpace_LegendStudioApplicationPlugin extends LegendStudioApplicationPlugin {
@@ -37,7 +37,7 @@ export class DSLDataSpace_LegendStudioApplicationPlugin extends LegendStudioAppl
37
37
  getExtraSupportedElementTypes() {
38
38
  return [DATA_SPACE_ELEMENT_TYPE];
39
39
  }
40
- getExtraElementTypeGetters() {
40
+ getExtraElementClassifiers() {
41
41
  return [
42
42
  (element) => {
43
43
  if (element instanceof DataSpace) {
@@ -51,7 +51,7 @@ export class DSLDataSpace_LegendStudioApplicationPlugin extends LegendStudioAppl
51
51
  return [
52
52
  (type) => {
53
53
  if (type === DATA_SPACE_ELEMENT_TYPE) {
54
- return (_jsx("div", { className: "icon icon--data-space", children: _jsx(SquareIcon, {}) }));
54
+ return _jsx(DataSpaceIcon, {});
55
55
  }
56
56
  return undefined;
57
57
  },
@@ -86,7 +86,7 @@ export class DSLDataSpace_LegendStudioApplicationPlugin extends LegendStudioAppl
86
86
  },
87
87
  ];
88
88
  }
89
- getExtraElementProjectExplorerDnDTypeGetters() {
89
+ getExtraDragElementClassifiers() {
90
90
  return [
91
91
  (element) => {
92
92
  if (element instanceof DataSpace) {
@@ -96,7 +96,7 @@ export class DSLDataSpace_LegendStudioApplicationPlugin extends LegendStudioAppl
96
96
  },
97
97
  ];
98
98
  }
99
- getExtraPureGrammarTextEditorDnDTypes() {
99
+ getExtraPureGrammarTextEditorDragElementTypes() {
100
100
  return [DATA_SPACE_ELEMENT_PROJECT_EXPLORER_DND_TYPE];
101
101
  }
102
102
  getExtraPureGrammarParserElementDocumentationGetters() {
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDataSpace_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAeL,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EACL,mCAAmC,EACnC,YAAY,EACZ,uBAAuB,GAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,SAAS,EACT,yBAAy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O,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,6CAA6C;QAC3C,OAAO;YACL,CACE,WAAwB,EACxB,aAAqB,EACW,EAAE;gBAClC,IAAI,aAAa,KAAK,mCAAmC,EAAE;oBACzD,OAAO,WAAW,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAClE,8CAA8C,CAAC,cAAc,CAC9D,CAAC;iBACH;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,iDAAiD;QAC/C,OAAO;YACL,CAAC,WAAwB,EAA+B,EAAE,CAAC;gBACzD;oBACE,IAAI,EAAE,mCAAmC;oBACzC,WAAW,EAAE,OAAO;oBACpB,aAAa,EACX,WAAW,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAC3D,8CAA8C,CAAC,cAAc,CAC9D;oBACH,UAAU,EAAE,mCAAmC;iBAChD;aACF;SACF,CAAC;IACJ,CAAC;IAED,yDAAyD;QACvD,OAAO;YACL,CACE,WAAwB,EACxB,aAAqB,EACoB,EAAE,CAC3C,aAAa,KAAK,mCAAmC;gBACnD,CAAC,CAAC;oBACE;wBACE,IAAI,EAAE,0CAA0C;wBAChD,UAAU,EAAE,yBAAyB;qBACtC;iBACF;gBACH,CAAC,CAAC,SAAS;SAChB,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"DSLDataSpace_LegendStudioApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAeL,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,mCAAmC,EACnC,YAAY,EACZ,uBAAuB,GAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,SAAS,EACT,yBAAyB,GAC1B,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SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,6CAA6C;QAC3C,OAAO;YACL,CACE,WAAwB,EACxB,aAAqB,EACW,EAAE;gBAClC,IAAI,aAAa,KAAK,mCAAmC,EAAE;oBACzD,OAAO,WAAW,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAClE,8CAA8C,CAAC,cAAc,CAC9D,CAAC;iBACH;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,iDAAiD;QAC/C,OAAO;YACL,CAAC,WAAwB,EAA+B,EAAE,CAAC;gBACzD;oBACE,IAAI,EAAE,mCAAmC;oBACzC,WAAW,EAAE,OAAO;oBACpB,aAAa,EACX,WAAW,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,WAAW,CAC3D,8CAA8C,CAAC,cAAc,CAC9D;oBACH,UAAU,EAAE,mCAAmC;iBAChD;aACF;SACF,CAAC;IACJ,CAAC;IAED,yDAAyD;QACvD,OAAO;YACL,CACE,WAAwB,EACxB,aAAqB,EACoB,EAAE,CAC3C,aAAa,KAAK,mCAAmC;gBACnD,CAAC,CAAC;oBACE;wBACE,IAAI,EAAE,0CAA0C;wBAChD,UAAU,EAAE,yBAAyB;qBACtC;iBACF;gBACH,CAAC,CAAC,SAAS;SAChB,CAAC;IACJ,CAAC;CACF"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-data-space v6.1.11
1
+ /** @license @finos/legend-extension-dsl-data-space v6.1.13
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%;background:var(--color-dark-grey-80)}.data-space__viewer__header{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:2rem;height:13rem}.data-space__viewer__title{display:flex;align-items:center;justify-content:center;height:3.4rem;max-width:100%;background:var(--color-blue-150)}.data-space__viewer__title__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;height:100%;width:calc(100% - 3.4rem);font-family:"Roboto Mono",monospace;font-size:1.6rem;padding:0 1rem;user-select:none;color:var(--color-light-grey-0);line-height:3.4rem;text-align:left}.data-space__viewer__title__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__title__link svg{font-size:1.6rem;color:var(--color-light-grey-0)}.data-space__viewer__description{cursor:default;user-select:none;padding:1rem;margin-top: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% - 13rem);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__footer__icon{display:flex;align-items:center;justify-content:center;height:100%}.data-space__viewer__diagrams__footer__icon svg{font-size:1.2rem}.data-space__viewer__diagrams__footer__text{margin-left:.5rem;font-size:1.2rem;font-weight:500}.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__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__info{padding:2rem}.data-space__viewer__info__project-info__label{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-blue-100);color:var(--color-dark-grey-100);font-weight:500}.data-space__viewer__info__project-info__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;height:100%;width:calc(100% - 17.8rem);padding:0 1rem;background:var(--color-dark-grey-100);font-weight:500;color:var(--color-blue-50);font-family:"Roboto Mono",monospace}.data-space__viewer__info__project-info__link{display:flex;align-items:center;justify-content:center;height:100%;width:2.8rem;background:var(--color-dark-grey-100);color:var(--color-light-shade-100);border-radius:0 .2rem .2rem 0;border-left:.1rem solid var(--color-dark-shade-250)}.data-space__viewer__info__project-info__link svg{font-size:1.2rem}.data-space__viewer__info__section{cursor:default;margin:.5rem 0 3rem}.data-space__viewer__info__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__info__section__entry{display:flex;align-items:center;height:2.8rem;margin:.5rem 0;width:100%}.data-space__viewer__info__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__info__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__info__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__info__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__path{font-size:1.2rem;color:var(--color-dark-grey-400);margin-left:.5rem;line-height:1.4rem}.query-setup__data-space__option__gav{font-size:1.2rem;color:var(--color-blue-50);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 */
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:13rem}.data-space__viewer__title{display:flex;align-items:center;justify-content:center;height:3.4rem;max-width:100%;background:var(--color-blue-150)}.data-space__viewer__title__label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;height:100%;width:calc(100% - 3.4rem);font-family:"Roboto Mono",monospace;font-size:1.6rem;padding:0 1rem;user-select:none;color:var(--color-light-grey-0);line-height:3.4rem;text-align:left}.data-space__viewer__title__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__title__link svg{font-size:1.6rem;color:var(--color-light-grey-0)}.data-space__viewer__description{cursor:default;user-select:none;padding:1rem;margin-top: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% - 13rem);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__footer__icon{display:flex;align-items:center;justify-content:center;height:100%}.data-space__viewer__diagrams__footer__icon svg{font-size:1.2rem}.data-space__viewer__diagrams__footer__text{margin-left:.5rem;font-size:1.2rem;font-weight:500}.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__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__info{padding:2rem}.data-space__viewer__info__project-info__label{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-blue-100);color:var(--color-dark-grey-100);font-weight:500}.data-space__viewer__info__project-info__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;height:100%;width:calc(100% - 17.8rem);padding:0 1rem;background:var(--color-dark-grey-100);font-weight:500;color:var(--color-blue-50);font-family:"Roboto Mono",monospace}.data-space__viewer__info__project-info__link{display:flex;align-items:center;justify-content:center;height:100%;width:2.8rem;background:var(--color-dark-grey-100);color:var(--color-light-shade-100);border-radius:0 .2rem .2rem 0;border-left:.1rem solid var(--color-dark-shade-250)}.data-space__viewer__info__project-info__link svg{font-size:1.2rem}.data-space__viewer__info__section{cursor:default;margin:.5rem 0 3rem}.data-space__viewer__info__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__info__section__entry{display:flex;align-items:center;height:2.8rem;margin:.5rem 0;width:100%}.data-space__viewer__info__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__info__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__info__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__info__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__path{font-size:1.2rem;color:var(--color-dark-grey-400);margin-left:.5rem;line-height:1.4rem}.query-setup__data-space__option__gav{font-size:1.2rem;color:var(--color-blue-50);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}.query-builder__setup__data-space--with-runtime .query-builder__setup.panel{height:16.4rem}.query-builder__setup__data-space--with-runtime .query-builder__side-bar__content{height:calc(100% - 16.4rem)}.query-builder__setup__data-space__option{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-word;text-align:left;display:inline-flex}.query-builder__setup__data-space__option__path{font-size:1.2rem;color:var(--color-dark-grey-400);margin-left:.5rem;line-height:1.4rem}.query-builder__setup__data-space__option__gav{font-size:1.2rem;color:var(--color-blue-50);margin-left:.5rem;line-height:1.4rem}.query-builder__setup__data-space__icon__execution-context{color:var(--color-lime-75)}: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","../../../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,2BCTA,aACA,mBACA,uBDUE,cACA,eACA,iCAEA,qDCCF,uBACA,gBACA,sBACA,gBDDI,YACA,0BACA,oCACA,iBACA,eACA,iBACA,gCACA,mBACA,gBAGF,iCC9BF,aACA,mBACA,uBD+BI,cACA,aACA,oDAEA,qCACE,iBACA,gCAKN,iCACE,eACA,iBACA,aACA,gBACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,wCC1DF,aACA,mBACA,uBD2DI,gBACA,iCAIJ,6BClEA,aACA,mBACA,uBDmEE,0BACA,oBAGF,0BCzEA,aACA,mBACA,uBD0EE,WACA,YAGF,kCACE,WACA,sCACA,YACA,kBACA,kBAEA,yCACE,YACA,gBACA,kBAGF,wCC7FF,aACA,mBACA,uBD8FI,YACA,WACA,iCACA,eAGF,4CACE,eAGF,8CACE,kCACA,eAGF,gDACE,kCAIJ,gCACE,YACA,wBACA,8CACA,cAEA,yCACE,YACA,WAIJ,8BACE,aACA,sBACA,YACA,WAEA,sCChIF,aACA,mBDkII,cACA,WAGF,sCCvIF,aACA,mBDyII,YACA,sCACA,kCACA,gBACA,iBACA,eAEA,4CCvJJ,aACA,mBACA,uBDwJM,YAEA,gDACE,iBAIJ,4CACE,kBACA,iBACA,gBAIJ,gDACE,WAGF,uCACE,2BACA,WAGF,wCACE,WAEA,mDACE,cAKN,+BACE,aAEA,6CACE,kCAGF,sCC3LF,aACA,mBD6LI,cACA,WAEA,4CCvMJ,aACA,mBACA,uBDwMM,cACA,aACA,8BACA,sCAEA,gDACE,iBAIJ,+CC9MJ,aACA,mBDgNM,cACA,0BACA,8BACA,8CACA,kCACA,eACA,sCACA,kDACA,iBAEA,yDACE,WAEA,oEACE,cAGF,iEClOR,aACA,mBDqOQ,sECtOR,aACA,mBDwOU,iCACA,cACA,gBACA,kBACA,oBACA,iBACA,kCAIJ,qDACE,oCAKN,4CACE,iBACA,oBACA,eACA,iBACA,aACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,mDC9QJ,aACA,mBACA,uBD+QM,gBACA,iCAIJ,wCACE,oBAIJ,0BACE,aAEA,+CC9QF,mBACA,uBACA,gBACA,sBACA,gBD6QI,YACA,YACA,8BACA,eACA,mBACA,iCACA,iCACA,gBAGF,+CC3RF,mBACA,uBACA,gBACA,sBACA,gBD0RI,YACA,2BACA,eACA,sCACA,gBACA,2BACA,oCAGF,8CCvTF,aACA,mBACA,uBDwTI,YACA,aACA,sCACA,mCACA,8BACA,oDAEA,kDACE,iBAIJ,mCACE,eACA,oBAGF,0CCrUF,aACA,mBDuUI,gBACA,iCACA,mBACA,iBACA,eAGF,0CC/UF,aACA,mBDiVI,cACA,eACA,WAGF,6CC7UF,mBACA,uBACA,gBACA,sBACA,gBD4UI,YACA,YACA,8BACA,eACA,mBACA,mCACA,kCACA,gBAGF,+CC1VF,mBACA,uBACA,gBACA,sBACA,gBDyVI,YACA,yBACA,8BACA,eACA,mBACA,sCACA,kCAGF,uCChXF,aACA,mBDkXI,YACA,oBACA,eACA,mBACA,mCACA,kCACA,gBAGF,gDClYF,aACA,mBACA,uBDmYI,YACA,WACA,iCACA,gBACA,+CAIJ,kCACE,aAIA,0CC5YF,aACA,mBD8YI,cACA,WAEA,gDCxZJ,aACA,mBACA,uBDyZM,cACA,aACA,8BACA,sCAEA,oDACE,iBACA,kCAIJ,mDChaJ,aACA,mBDkaM,cACA,0BACA,8BACA,8CACA,kCACA,eACA,oCACA,sCACA,kDACA,iBExbR,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,uCACE,iBACA,iCACA,kBACA,mBAGF,sCACE,iBACA,2BACA,kBACA,mBAGF,+BACE,2BACA,WAEA,uCDxDF,aACA,mBC0DI,cAEA,6CDnEJ,aACA,mBACA,uBCoEM,YAGF,6CACE,kBACA,iCACA,gBACA,eACA,iBACA,kBACA,mBCpFR,MACE,yCAGF,kBACE","file":"index.css"}
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,2BCTA,aACA,mBACA,uBDUE,cACA,eACA,iCAEA,qDCCF,uBACA,gBACA,sBACA,gBDDI,YACA,0BACA,oCACA,iBACA,eACA,iBACA,gCACA,mBACA,gBAGF,iCC9BF,aACA,mBACA,uBD+BI,cACA,aACA,oDAEA,qCACE,iBACA,gCAKN,iCACE,eACA,iBACA,aACA,gBACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,wCC1DF,aACA,mBACA,uBD2DI,gBACA,iCAIJ,6BClEA,aACA,mBACA,uBDmEE,0BACA,oBAGF,0BCzEA,aACA,mBACA,uBD0EE,WACA,YAGF,kCACE,WACA,sCACA,YACA,kBACA,kBAEA,yCACE,YACA,gBACA,kBAGF,wCC7FF,aACA,mBACA,uBD8FI,YACA,WACA,iCACA,eAGF,4CACE,eAGF,8CACE,kCACA,eAGF,gDACE,kCAIJ,gCACE,YACA,wBACA,8CACA,cAEA,yCACE,YACA,WAIJ,8BACE,aACA,sBACA,YACA,WAEA,sCChIF,aACA,mBDkII,cACA,WAGF,sCCvIF,aACA,mBDyII,YACA,sCACA,kCACA,gBACA,iBACA,eAEA,4CCvJJ,aACA,mBACA,uBDwJM,YAEA,gDACE,iBAIJ,4CACE,kBACA,iBACA,gBAIJ,gDACE,WAGF,uCACE,2BACA,WAGF,wCACE,WAEA,mDACE,cAKN,+BACE,aAEA,6CACE,kCAGF,sCC3LF,aACA,mBD6LI,cACA,WAEA,4CCvMJ,aACA,mBACA,uBDwMM,cACA,aACA,8BACA,sCAEA,gDACE,iBAIJ,+CC9MJ,aACA,mBDgNM,cACA,0BACA,8BACA,8CACA,kCACA,eACA,sCACA,kDACA,iBAEA,yDACE,WAEA,oEACE,cAGF,iEClOR,aACA,mBDqOQ,sECtOR,aACA,mBDwOU,iCACA,cACA,gBACA,kBACA,oBACA,iBACA,kCAIJ,qDACE,oCAKN,4CACE,iBACA,oBACA,eACA,iBACA,aACA,YACA,WACA,sCACA,cACA,mBACA,iCACA,8BACA,iBAEA,mDC9QJ,aACA,mBACA,uBD+QM,gBACA,iCAIJ,wCACE,oBAIJ,0BACE,aAEA,+CC9QF,mBACA,uBACA,gBACA,sBACA,gBD6QI,YACA,YACA,8BACA,eACA,mBACA,iCACA,iCACA,gBAGF,+CC3RF,mBACA,uBACA,gBACA,sBACA,gBD0RI,YACA,2BACA,eACA,sCACA,gBACA,2BACA,oCAGF,8CCvTF,aACA,mBACA,uBDwTI,YACA,aACA,sCACA,mCACA,8BACA,oDAEA,kDACE,iBAIJ,mCACE,eACA,oBAGF,0CCrUF,aACA,mBDuUI,gBACA,iCACA,mBACA,iBACA,eAGF,0CC/UF,aACA,mBDiVI,cACA,eACA,WAGF,6CC7UF,mBACA,uBACA,gBACA,sBACA,gBD4UI,YACA,YACA,8BACA,eACA,mBACA,mCACA,kCACA,gBAGF,+CC1VF,mBACA,uBACA,gBACA,sBACA,gBDyVI,YACA,yBACA,8BACA,eACA,mBACA,sCACA,kCAGF,uCChXF,aACA,mBDkXI,YACA,oBACA,eACA,mBACA,mCACA,kCACA,gBAGF,gDClYF,aACA,mBACA,uBDmYI,YACA,WACA,iCACA,gBACA,+CAIJ,kCACE,aAIA,0CC5YF,aACA,mBD8YI,cACA,WAEA,gDCxZJ,aACA,mBACA,uBDyZM,cACA,aACA,8BACA,sCAEA,oDACE,iBACA,kCAIJ,mDChaJ,aACA,mBDkaM,cACA,0BACA,8BACA,8CACA,kCACA,eACA,oCACA,sCACA,kDACA,iBExbR,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,uCACE,iBACA,iCACA,kBACA,mBAGF,sCACE,iBACA,2BACA,kBACA,mBAGF,+BACE,2BACA,WAEA,uCDxDF,aACA,mBC0DI,cAEA,6CDnEJ,aACA,mBACA,uBCoEM,YAGF,6CACE,kBACA,iCACA,gBACA,eACA,iBACA,kBACA,mBAQJ,4EACE,eAGF,kFACE,4BAIJ,0CDjFA,mBACA,uBACA,gBACA,sBACA,gBCgFE,oBAGF,gDACE,iBACA,iCACA,kBACA,mBAGF,+CACE,iBACA,2BACA,kBACA,mBAGF,2DACE,2BC1HJ,MACE,yCAGF,kBACE","file":"index.css"}
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "6.1.11",
3
+ "version": "6.1.13",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -49,10 +49,11 @@
49
49
  "@finos/legend-art": "workspace:*",
50
50
  "@finos/legend-extension-dsl-diagram": "workspace:*",
51
51
  "@finos/legend-graph": "workspace:*",
52
+ "@finos/legend-query-builder": "workspace:*",
52
53
  "@finos/legend-server-depot": "workspace:*",
53
54
  "@finos/legend-shared": "workspace:*",
54
55
  "@finos/legend-storage": "workspace:*",
55
- "@types/react": "18.0.18",
56
+ "@types/react": "18.0.20",
56
57
  "mobx": "6.6.2",
57
58
  "mobx-react-lite": "3.4.0",
58
59
  "react": "18.2.0",
@@ -63,14 +64,14 @@
63
64
  },
64
65
  "devDependencies": {
65
66
  "@finos/legend-dev-utils": "workspace:*",
66
- "@jest/globals": "29.0.2",
67
+ "@jest/globals": "29.0.3",
67
68
  "cross-env": "7.0.3",
68
- "eslint": "8.23.0",
69
- "jest": "29.0.2",
69
+ "eslint": "8.23.1",
70
+ "jest": "29.0.3",
70
71
  "npm-run-all": "4.1.5",
71
72
  "rimraf": "3.0.2",
72
- "sass": "1.54.8",
73
- "typescript": "4.8.2"
73
+ "sass": "1.54.9",
74
+ "typescript": "4.8.3"
74
75
  },
75
76
  "peerDependencies": {
76
77
  "react": "^18.0.0"
@@ -13,20 +13,23 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { LEGEND_QUERY_PATH_PARAM_TOKEN, LEGEND_QUERY_QUERY_PARAM_TOKEN } from '@finos/legend-application-query';
17
- export declare enum DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN {
16
+ import { LEGEND_QUERY_PATH_PARAM_TOKEN } from '@finos/legend-application-query';
17
+ export declare enum DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN {
18
18
  DATA_SPACE_PATH = "dataSpacePath",
19
19
  EXECUTION_CONTEXT = "executionContext"
20
20
  }
21
- export interface DataSpaceQueryEditorPathParams {
21
+ export declare enum DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN {
22
+ CLASS_PATH = "class"
23
+ }
24
+ export interface DataSpaceQueryCreatorPathParams {
22
25
  [LEGEND_QUERY_PATH_PARAM_TOKEN.GAV]: string;
23
- [DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH]: string;
24
- [DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT]: string;
26
+ [DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH]: string;
27
+ [DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT]: string;
25
28
  [LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH]?: string;
26
29
  }
27
30
  export interface DataSpaceQueryEditorQueryParams {
28
- [LEGEND_QUERY_QUERY_PARAM_TOKEN.CLASS_PATH]?: string;
31
+ [DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]?: string;
29
32
  }
30
- export declare const DATA_SPACE_QUERY_EDITOR_ROUTE_PATTERN: string;
31
- export declare const generateDataSpaceQueryEditorRoute: (groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContextKey: string, runtimePath?: string | undefined, classPath?: string | undefined) => string;
33
+ export declare const CREATE_QUERY_FROM_DATA_SPACE_ROUTE_PATTERN: string;
34
+ export declare const generateDataSpaceQueryCreatorRoute: (groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContextKey: string, runtimePath?: string | undefined, classPath?: string | undefined) => string;
32
35
  //# sourceMappingURL=DSLDataSpace_LegendQueryRouter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDataSpace_LegendQueryRouter.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DSLDataSpace_LegendQueryRouter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,iCAAiC,CAAC;AAIzC,oBAAY,wCAAwC;IAClD,eAAe,kBAAkB;IACjC,iBAAiB,qBAAqB;CACvC;AAED,MAAM,WAAW,8BAA8B;IAC7C,CAAC,6BAA6B,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAC5C,CAAC,wCAAwC,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IACnE,CAAC,wCAAwC,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACrE,CAAC,6BAA6B,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;CACvD;AAED,MAAM,WAAW,+BAA+B;IAC9C,CAAC,8BAA8B,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC;CACtD;AAED,eAAO,MAAM,qCAAqC,QAAiO,CAAC;AAEpR,eAAO,MAAM,iCAAiC,YACnC,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,uBACA,MAAM,gBACb,MAAM,GAAG,SAAS,cACpB,MAAM,GAAG,SAAS,KAC7B,MAkBC,CAAC"}
1
+ {"version":3,"file":"DSLDataSpace_LegendQueryRouter.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DSLDataSpace_LegendQueryRouter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAIhF,oBAAY,yCAAyC;IACnD,eAAe,kBAAkB;IACjC,iBAAiB,qBAAqB;CACvC;AAED,oBAAY,0CAA0C;IACpD,UAAU,UAAU;CACrB;AAED,MAAM,WAAW,+BAA+B;IAC9C,CAAC,6BAA6B,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAC5C,CAAC,yCAAyC,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IACpE,CAAC,yCAAyC,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACtE,CAAC,6BAA6B,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC;CACvD;AAED,MAAM,WAAW,+BAA+B;IAC9C,CAAC,0CAA0C,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC;CAClE;AAED,eAAO,MAAM,0CAA0C,QAA+O,CAAC;AAEvS,eAAO,MAAM,kCAAkC,YACpC,MAAM,cACH,MAAM,aACP,MAAM,iBACF,MAAM,uBACA,MAAM,gBACb,MAAM,GAAG,SAAS,cACpB,MAAM,GAAG,SAAS,KAC7B,MAmBC,CAAC"}
@@ -14,21 +14,25 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { generateExtensionUrlPattern } from '@finos/legend-application';
17
- import { LEGEND_QUERY_PATH_PARAM_TOKEN, LEGEND_QUERY_QUERY_PARAM_TOKEN, } from '@finos/legend-application-query';
17
+ import { LEGEND_QUERY_PATH_PARAM_TOKEN } from '@finos/legend-application-query';
18
18
  import { generateGAVCoordinates } from '@finos/legend-server-depot';
19
19
  import { generatePath } from 'react-router';
20
- export var DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN;
21
- (function (DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN) {
22
- DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN["DATA_SPACE_PATH"] = "dataSpacePath";
23
- DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN["EXECUTION_CONTEXT"] = "executionContext";
24
- })(DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN = DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN || (DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN = {}));
25
- export const DATA_SPACE_QUERY_EDITOR_ROUTE_PATTERN = `/dataspace/:${LEGEND_QUERY_PATH_PARAM_TOKEN.GAV}/:${DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT}/:${LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH}?`;
26
- export const generateDataSpaceQueryEditorRoute = (groupId, artifactId, versionId, dataSpacePath, executionContextKey, runtimePath, classPath) => `${generatePath(generateExtensionUrlPattern(DATA_SPACE_QUERY_EDITOR_ROUTE_PATTERN), {
20
+ export var DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN;
21
+ (function (DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN) {
22
+ DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN["DATA_SPACE_PATH"] = "dataSpacePath";
23
+ DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN["EXECUTION_CONTEXT"] = "executionContext";
24
+ })(DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN = DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN || (DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN = {}));
25
+ export var DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN;
26
+ (function (DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN) {
27
+ DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN["CLASS_PATH"] = "class";
28
+ })(DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN = DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN || (DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN = {}));
29
+ export const CREATE_QUERY_FROM_DATA_SPACE_ROUTE_PATTERN = `/create-from-dataspace/:${LEGEND_QUERY_PATH_PARAM_TOKEN.GAV}/:${DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT}/:${LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH}?`;
30
+ export const generateDataSpaceQueryCreatorRoute = (groupId, artifactId, versionId, dataSpacePath, executionContextKey, runtimePath, classPath) => `${generatePath(generateExtensionUrlPattern(CREATE_QUERY_FROM_DATA_SPACE_ROUTE_PATTERN), {
27
31
  [LEGEND_QUERY_PATH_PARAM_TOKEN.GAV]: generateGAVCoordinates(groupId, artifactId, versionId),
28
- [DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH]: dataSpacePath,
29
- [DATA_SPACE_QUERY_EDITOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT]: executionContextKey,
32
+ [DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN.DATA_SPACE_PATH]: dataSpacePath,
33
+ [DATA_SPACE_QUERY_CREATOR_PATH_PARAM_TOKEN.EXECUTION_CONTEXT]: executionContextKey,
30
34
  [LEGEND_QUERY_PATH_PARAM_TOKEN.RUNTIME_PATH]: runtimePath,
31
35
  })}${classPath
32
- ? `?${LEGEND_QUERY_QUERY_PARAM_TOKEN.CLASS_PATH}=${classPath}`
36
+ ? `?${DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH}=${classPath}`
33
37
  : ''}`;
34
38
  //# sourceMappingURL=DSLDataSpace_LegendQueryRouter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DSLDataSpace_LegendQueryRouter.js","sourceRoot":"","sources":["../../../src/stores/query/DSLDataSpace_LegendQueryRouter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,CAAN,IAAY,wCAGX;AAHD,WAAY,wCAAwC;IAClD,6EAAiC,CAAA;IACjC,kFAAsC,CAAA;AACxC,CAAC,EAHW,wCAAwC,GAAxC,wCAAwC,KAAxC,wCAAwC,QAGnD;AAaD,MAAM,CAAC,MAAM,qCAAqC,GAAG,eAAe,6BAA6B,CAAC,GAAG,KAAK,wCAAwC,CAAC,eAAe,KAAK,wCAAwC,CAAC,iBAAiB,KAAK,6BAA6B,CAAC,YAAY,GAAG,CAAC;AAEpR,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,aAAqB,EACrB,mBAA2B,EAC3B,WAAgC,EAChC,SAA8B,EACtB,EAAE,CACV,GAAG,YAAY,CACb,2BAA2B,CAAC,qCAAqC,CAAC,EAClE;IACE,CAAC,6BAA6B,CAAC,GAAG,CAAC,EAAE,sBAAsB,CACzD,OAAO,EACP,UAAU,EACV,SAAS,CACV;IACD,CAAC,wCAAwC,CAAC,eAAe,CAAC,EAAE,aAAa;IACzE,CAAC,wCAAwC,CAAC,iBAAiB,CAAC,EAC1D,mBAAmB;IACrB,CAAC,6BAA6B,CAAC,YAAY,CAAC,EAAE,WAAW;CAC1D,CACF,GACC,SAAS;IACP,CAAC,CAAC,IAAI,8BAA8B,CAAC,UAAU,IAAI,SAAS,EAAE;IAC9D,CAAC,CAAC,EACN,EAAE,CAAC"}
1
+ {"version":3,"file":"DSLDataSpace_LegendQueryRouter.js","sourceRoot":"","sources":["../../../src/stores/query/DSLDataSpace_LegendQueryRouter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,CAAN,IAAY,yCAGX;AAHD,WAAY,yCAAyC;IACnD,8EAAiC,CAAA;IACjC,mFAAsC,CAAA;AACxC,CAAC,EAHW,yCAAyC,GAAzC,yCAAyC,KAAzC,yCAAyC,QAGpD;AAED,MAAM,CAAN,IAAY,0CAEX;AAFD,WAAY,0CAA0C;IACpD,kEAAoB,CAAA;AACtB,CAAC,EAFW,0CAA0C,GAA1C,0CAA0C,KAA1C,0CAA0C,QAErD;AAaD,MAAM,CAAC,MAAM,0CAA0C,GAAG,2BAA2B,6BAA6B,CAAC,GAAG,KAAK,yCAAyC,CAAC,eAAe,KAAK,yCAAyC,CAAC,iBAAiB,KAAK,6BAA6B,CAAC,YAAY,GAAG,CAAC;AAEvS,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,aAAqB,EACrB,mBAA2B,EAC3B,WAAgC,EAChC,SAA8B,EACtB,EAAE,CACV,GAAG,YAAY,CACb,2BAA2B,CAAC,0CAA0C,CAAC,EACvE;IACE,CAAC,6BAA6B,CAAC,GAAG,CAAC,EAAE,sBAAsB,CACzD,OAAO,EACP,UAAU,EACV,SAAS,CACV;IACD,CAAC,yCAAyC,CAAC,eAAe,CAAC,EACzD,aAAa;IACf,CAAC,yCAAyC,CAAC,iBAAiB,CAAC,EAC3D,mBAAmB;IACrB,CAAC,6BAA6B,CAAC,YAAY,CAAC,EAAE,WAAW;CAC1D,CACF,GACC,SAAS;IACP,CAAC,CAAC,IAAI,0CAA0C,CAAC,UAAU,IAAI,SAAS,EAAE;IAC1E,CAAC,CAAC,EACN,EAAE,CAAC"}
@@ -0,0 +1,31 @@
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 StoredEntity } from '@finos/legend-server-depot';
17
+ export interface DataSpaceInfo {
18
+ groupId: string;
19
+ artifactId: string;
20
+ versionId: string;
21
+ title: string | undefined;
22
+ name: string;
23
+ path: string;
24
+ /**
25
+ * NOTE: technically, this should be always available, but we must not
26
+ * assume that no dataspace is marlformed, so we leave it as optional
27
+ */
28
+ defaultExecutionContext: string | undefined;
29
+ }
30
+ export declare const extractDataSpaceInfo: (storedEntity: StoredEntity, isSnapshot: boolean) => DataSpaceInfo;
31
+ //# sourceMappingURL=DataSpaceInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceInfo.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,YAAY,EAClB,MAAM,4BAA4B,CAAC;AAIpC,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,uBAAuB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7C;AAED,eAAO,MAAM,oBAAoB,iBACjB,YAAY,cACd,OAAO,KAClB,aAgBD,CAAC"}
@@ -0,0 +1,34 @@
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 { SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
17
+ import { isString } from '@finos/legend-shared';
18
+ import { extractEntityNameFromPath } from '@finos/legend-storage';
19
+ export const extractDataSpaceInfo = (storedEntity, isSnapshot) => ({
20
+ groupId: storedEntity.groupId,
21
+ artifactId: storedEntity.artifactId,
22
+ versionId: isSnapshot ? SNAPSHOT_VERSION_ALIAS : storedEntity.versionId,
23
+ path: storedEntity.entity.path,
24
+ name: extractEntityNameFromPath(storedEntity.entity.path),
25
+ title: isString(storedEntity.entity.content.title)
26
+ ? storedEntity.entity.content.title
27
+ : undefined,
28
+ // NOTE: we don't want to assert the existence of this field even when it
29
+ // is required in the specification of data space, so we don't throw error here
30
+ defaultExecutionContext: isString(storedEntity.entity.content.defaultExecutionContext)
31
+ ? storedEntity.entity.content.defaultExecutionContext
32
+ : undefined,
33
+ });
34
+ //# sourceMappingURL=DataSpaceInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceInfo.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,sBAAsB,GAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAgBlE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,YAA0B,EAC1B,UAAmB,EACJ,EAAE,CAAC,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC,OAAO;IAC7B,UAAU,EAAE,YAAY,CAAC,UAAU;IACnC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS;IACvE,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,IAAI;IAC9B,IAAI,EAAE,yBAAyB,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC;IACzD,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;QAChD,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK;QACnC,CAAC,CAAC,SAAS;IACb,yEAAyE;IACzE,+EAA+E;IAC/E,uBAAuB,EAAE,QAAQ,CAC/B,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,uBAAuB,CACpD;QACC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,uBAAuB;QACrD,CAAC,CAAC,SAAS;CACd,CAAC,CAAC"}
@@ -0,0 +1,52 @@
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 { GenericLegendApplicationStore } from '@finos/legend-application';
17
+ import { QueryBuilderState } from '@finos/legend-query-builder';
18
+ import { type GraphManagerState, type Runtime, type Class } from '@finos/legend-graph';
19
+ import { type DepotServerClient } from '@finos/legend-server-depot';
20
+ import { type GeneratorFn, ActionState } from '@finos/legend-shared';
21
+ import type { DataSpace, DataSpaceExecutionContext } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js';
22
+ import { type DataSpaceInfo } from './DataSpaceInfo.js';
23
+ export declare class DataSpaceQueryBuilderState extends QueryBuilderState {
24
+ readonly dataSpace: DataSpace;
25
+ readonly groupId: string;
26
+ readonly artifactId: string;
27
+ readonly versionId: string;
28
+ readonly depotServerClient: DepotServerClient;
29
+ readonly loadDataSpacesState: ActionState;
30
+ readonly onDataSpaceChange: (val: DataSpaceInfo) => void;
31
+ readonly onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined;
32
+ readonly onRuntimeChange?: ((val: Runtime) => void) | undefined;
33
+ readonly onClassChange?: ((val: Class) => void) | undefined;
34
+ TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
35
+ executionContext: DataSpaceExecutionContext;
36
+ dataSpaces: DataSpaceInfo[];
37
+ showRuntimeSelector: boolean;
38
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, depotServerClient: DepotServerClient, dataSpace: DataSpace, executionContext: DataSpaceExecutionContext, groupId: string, versionId: string, artifactId: string, onDataSpaceChange: (val: DataSpaceInfo) => void, onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, onClassChange?: ((val: Class) => void) | undefined);
39
+ get sideBarClassName(): string | undefined;
40
+ setExecutionContext(val: DataSpaceExecutionContext): void;
41
+ setShowRuntimeSelector(val: boolean): void;
42
+ loadDataSpaces(searchText: string): GeneratorFn<void>;
43
+ /**
44
+ * Propagation after changing the execution context:
45
+ * - The mapping will be updated to the mapping of the execution context
46
+ * - The runtime will be updated to the default runtime of the execution context
47
+ * - If no class is selected, try to select a compatible class
48
+ * - If the chosen class is compatible with the new selected execution context mapping, do nothing, otherwise, try to select a compatible class
49
+ */
50
+ propagateExecutionContextChange(executionContext: DataSpaceExecutionContext): void;
51
+ }
52
+ //# sourceMappingURL=DataSpaceQueryBuilderState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EACL,KAAK,iBAAiB,EAGtB,KAAK,OAAO,EACZ,KAAK,KAAK,EACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,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,UAAU,EAAE,MAAM,EAClB,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,EAC/C,wBAAwB,CAAC,EACrB,CAAC,CAAC,GAAG,EAAE,yBAAyB,KAAK,IAAI,CAAC,GAC1C,SAAS,EACb,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,aAAa,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS;IAyBpD,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIlD;IAED,mBAAmB,CAAC,GAAG,EAAE,yBAAyB,GAAG,IAAI;IAIzD,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIzC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;IA0BtD;;;;;;OAMG;IACH,+BAA+B,CAC7B,gBAAgB,EAAE,yBAAyB,GAC1C,IAAI;CAkBR"}
@@ -0,0 +1,112 @@
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 { QueryBuilderState } from '@finos/legend-query-builder';
17
+ import { getMappingCompatibleClasses, RuntimePointer, } from '@finos/legend-graph';
18
+ import { DepotScope, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
19
+ import { ActionState, assertErrorThrown, getNullableFirstElement, } from '@finos/legend-shared';
20
+ import { action, flow, makeObservable, observable } from 'mobx';
21
+ import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/query/DataSpaceQueryBuilder.js';
22
+ import { DEFAULT_DATA_SPACE_LOADER_LIMIT, MINIMUM_DATA_SPACE_LOADER_SEARCH_LENGTH, } from '../../DSLDataSpace_Const.js';
23
+ import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
24
+ import { extractDataSpaceInfo } from './DataSpaceInfo.js';
25
+ export class DataSpaceQueryBuilderState extends QueryBuilderState {
26
+ dataSpace;
27
+ groupId;
28
+ artifactId;
29
+ versionId;
30
+ depotServerClient;
31
+ loadDataSpacesState = ActionState.create();
32
+ onDataSpaceChange;
33
+ onExecutionContextChange;
34
+ onRuntimeChange;
35
+ onClassChange;
36
+ TEMPORARY__setupPanelContentRenderer = () => renderDataSpaceQueryBuilderSetupPanelContent(this);
37
+ executionContext;
38
+ dataSpaces = [];
39
+ showRuntimeSelector = false;
40
+ constructor(applicationStore, graphManagerState, depotServerClient, dataSpace, executionContext, groupId, versionId, artifactId, onDataSpaceChange, onExecutionContextChange, onRuntimeChange, onClassChange) {
41
+ super(applicationStore, graphManagerState);
42
+ makeObservable(this, {
43
+ dataSpaces: observable,
44
+ executionContext: observable,
45
+ showRuntimeSelector: observable,
46
+ setExecutionContext: action,
47
+ setShowRuntimeSelector: action,
48
+ loadDataSpaces: flow,
49
+ });
50
+ this.depotServerClient = depotServerClient;
51
+ this.dataSpace = dataSpace;
52
+ this.executionContext = executionContext;
53
+ this.groupId = groupId;
54
+ this.artifactId = artifactId;
55
+ this.versionId = versionId;
56
+ this.onDataSpaceChange = onDataSpaceChange;
57
+ this.onExecutionContextChange = onExecutionContextChange;
58
+ this.onRuntimeChange = onRuntimeChange;
59
+ this.onClassChange = onClassChange;
60
+ }
61
+ get sideBarClassName() {
62
+ return this.showRuntimeSelector
63
+ ? 'query-builder__setup__data-space--with-runtime'
64
+ : 'query-builder__setup__data-space';
65
+ }
66
+ setExecutionContext(val) {
67
+ this.executionContext = val;
68
+ }
69
+ setShowRuntimeSelector(val) {
70
+ this.showRuntimeSelector = val;
71
+ }
72
+ *loadDataSpaces(searchText) {
73
+ const isValidSearchString = searchText.length >= MINIMUM_DATA_SPACE_LOADER_SEARCH_LENGTH;
74
+ this.loadDataSpacesState.inProgress();
75
+ const toGetSnapShot = this.versionId === SNAPSHOT_VERSION_ALIAS;
76
+ try {
77
+ this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifierPath(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
78
+ search: isValidSearchString ? searchText : undefined,
79
+ scope: toGetSnapShot ? DepotScope.SNAPSHOT : DepotScope.RELEASES,
80
+ limit: DEFAULT_DATA_SPACE_LOADER_LIMIT,
81
+ })).map((storedEntity) => extractDataSpaceInfo(storedEntity, toGetSnapShot));
82
+ this.loadDataSpacesState.pass();
83
+ }
84
+ catch (error) {
85
+ assertErrorThrown(error);
86
+ this.loadDataSpacesState.fail();
87
+ this.applicationStore.notifyError(error);
88
+ }
89
+ }
90
+ /**
91
+ * Propagation after changing the execution context:
92
+ * - The mapping will be updated to the mapping of the execution context
93
+ * - The runtime will be updated to the default runtime of the execution context
94
+ * - If no class is selected, try to select a compatible class
95
+ * - If the chosen class is compatible with the new selected execution context mapping, do nothing, otherwise, try to select a compatible class
96
+ */
97
+ propagateExecutionContextChange(executionContext) {
98
+ const mapping = executionContext.mapping.value;
99
+ this.changeMapping(mapping);
100
+ this.changeRuntime(new RuntimePointer(executionContext.defaultRuntime));
101
+ const compatibleClasses = getMappingCompatibleClasses(mapping, this.graphManagerState.usableClasses);
102
+ // if there is no chosen class or the chosen one is not compatible
103
+ // with the mapping then pick a compatible class if possible
104
+ if (!this.class || !compatibleClasses.includes(this.class)) {
105
+ const possibleNewClass = getNullableFirstElement(compatibleClasses);
106
+ if (possibleNewClass) {
107
+ this.changeClass(possibleNewClass);
108
+ }
109
+ }
110
+ }
111
+ }
112
+ //# sourceMappingURL=DataSpaceQueryBuilderState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAEL,2BAA2B,EAC3B,cAAc,GAGf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,sBAAsB,GAGvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAAE,4CAA4C,EAAE,MAAM,iDAAiD,CAAC;AAC/G,OAAO,EACL,+BAA+B,EAC/B,uCAAuC,GACxC,MAAM,6BAA6B,CAAC;AAKrC,OAAO,EAAE,kCAAkC,EAAE,MAAM,8EAA8E,CAAC;AAClI,OAAO,EAAsB,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE9E,MAAM,OAAO,0BAA2B,SAAQ,iBAAiB;IACtD,SAAS,CAAY;IACrB,OAAO,CAAS;IAChB,UAAU,CAAS;IACnB,SAAS,CAAS;IAClB,iBAAiB,CAAoB;IACrC,mBAAmB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAC3C,iBAAiB,CAA+B;IAChD,wBAAwB,CAEnB;IACL,eAAe,CAAwC;IACvD,aAAa,CAAsC;IAEnD,oCAAoC,GAAG,GAAoB,EAAE,CACpE,4CAA4C,CAAC,IAAI,CAAC,CAAC;IAErD,gBAAgB,CAA6B;IAC7C,UAAU,GAAoB,EAAE,CAAC;IACjC,mBAAmB,GAAG,KAAK,CAAC;IAE5B,YACE,gBAA+C,EAC/C,iBAAoC,EACpC,iBAAoC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I,CAAC,KAAK,CAAC,EAAE;YAC1D,MAAM,gBAAgB,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;YACpE,IAAI,gBAAgB,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;aACpC;SACF;IACH,CAAC;CACF"}
@@ -13,9 +13,12 @@
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 { QueryEditorStore, type QueryExportConfiguration, type LegendQueryPluginManager, type LegendQueryApplicationStore } from '@finos/legend-application-query';
17
18
  import type { DepotServerClient, ProjectGAVCoordinates } from '@finos/legend-server-depot';
18
- export declare class DataSpaceQueryEditorStore extends QueryEditorStore {
19
+ import type { QueryBuilderState } from '@finos/legend-query-builder';
20
+ export declare const createQueryDataSpaceTaggedValue: (dataSpacePath: string) => QueryTaggedValue;
21
+ export declare class DataSpaceQueryCreatorStore extends QueryEditorStore {
19
22
  groupId: string;
20
23
  artifactId: string;
21
24
  versionId: string;
@@ -25,7 +28,7 @@ export declare class DataSpaceQueryEditorStore extends QueryEditorStore {
25
28
  classPath: string | undefined;
26
29
  constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, pluginManager: LegendQueryPluginManager, groupId: string, artifactId: string, versionId: string, dataSpacePath: string, executionContext: string, runtimePath: string | undefined, executionKey: string | undefined);
27
30
  getProjectInfo(): ProjectGAVCoordinates;
28
- setUpBuilderState(): Promise<void>;
31
+ initializeQueryBuilderState(): Promise<QueryBuilderState>;
29
32
  getExportConfiguration(): Promise<QueryExportConfiguration>;
30
33
  }
31
- //# sourceMappingURL=DataSpaceQueryEditorStore.d.ts.map
34
+ //# sourceMappingURL=DataSpaceQueryCreatorStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataSpaceQueryCreatorStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,gBAAgB,EAKjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EACjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAepC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,eAAO,MAAM,+BAA+B,kBAC3B,MAAM,KACpB,gBAMF,CAAC;AAEF,qBAAa,0BAA2B,SAAQ,gBAAgB;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;gBAG5B,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,wBAAwB,EACvC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,YAAY,EAAE,MAAM,GAAG,SAAS;IAalC,cAAc,IAAI,qBAAqB;IAQjC,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA2HzD,sBAAsB,IAAI,OAAO,CAAC,wBAAwB,CAAC;CAgBlE"}