@finos/legend-application-repl 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Const.d.ts +11 -5
- package/lib/Const.d.ts.map +1 -1
- package/lib/Const.js +13 -5
- package/lib/Const.js.map +1 -1
- package/lib/components/REPLGridClient.d.ts.map +1 -1
- package/lib/components/REPLGridClient.js +21 -10
- package/lib/components/REPLGridClient.js.map +1 -1
- package/lib/components/REPLQueryEditor.d.ts +29 -0
- package/lib/components/REPLQueryEditor.d.ts.map +1 -0
- package/lib/components/REPLQueryEditor.js +143 -0
- package/lib/components/REPLQueryEditor.js.map +1 -0
- package/lib/components/grid/TDSLambdaBuilder.d.ts +1 -1
- package/lib/components/grid/TDSLambdaBuilder.d.ts.map +1 -1
- package/lib/components/grid/TDSLambdaBuilder.js +38 -15
- package/lib/components/grid/TDSLambdaBuilder.js.map +1 -1
- package/lib/grid.css +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +2 -1
- package/lib/repl.css +2 -2
- package/lib/repl.css.map +1 -1
- package/lib/server/REPLServerClient.d.ts +5 -1
- package/lib/server/REPLServerClient.d.ts.map +1 -1
- package/lib/server/REPLServerClient.js +8 -1
- package/lib/server/REPLServerClient.js.map +1 -1
- package/lib/stores/CompletionResult.d.ts +22 -0
- package/lib/stores/CompletionResult.d.ts.map +1 -0
- package/lib/stores/CompletionResult.js +26 -0
- package/lib/stores/CompletionResult.js.map +1 -0
- package/lib/stores/REPLGridClientStore.d.ts +6 -1
- package/lib/stores/REPLGridClientStore.d.ts.map +1 -1
- package/lib/stores/REPLGridClientStore.js +85 -11
- package/lib/stores/REPLGridClientStore.js.map +1 -1
- package/lib/stores/REPLGridState.d.ts +5 -3
- package/lib/stores/REPLGridState.d.ts.map +1 -1
- package/lib/stores/REPLGridState.js +12 -7
- package/lib/stores/REPLGridState.js.map +1 -1
- package/package.json +4 -3
- package/src/Const.ts +12 -5
- package/src/components/REPLGridClient.tsx +129 -59
- package/src/components/REPLQueryEditor.tsx +205 -0
- package/src/components/grid/TDSLambdaBuilder.ts +40 -21
- package/src/server/REPLServerClient.ts +35 -5
- package/src/stores/CompletionResult.ts +30 -0
- package/src/stores/REPLGridClientStore.ts +140 -9
- package/src/stores/REPLGridState.ts +14 -8
- package/tsconfig.json +3 -1
package/lib/repl.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license @finos/legend-application-repl v0.0.
|
|
1
|
+
/** @license @finos/legend-application-repl v0.0.9
|
|
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
|
-
.repl{height:100%;display:flex;flex-direction:column;background-color:var(--color-dark-grey-100)}.repl__header{display:flex;align-items:center;height:4rem;padding:.2rem;background:var(--color-dark-grey-80);border:.1rem solid var(--color-dark-grey-100)}.repl__header__content{display:flex;align-items:center;display:flex;justify-content:space-between;height:100%;width:100%}.repl__header__content__title{color:var(--color-light-grey-180);flex:1;margin:0 1rem}.repl__header__content__title input{padding:0 .4rem}.repl__header__content__title__text{display:flex;align-items:center;padding:.6rem .5rem .5rem;margin:0 1rem;margin-right:10%;cursor:pointer}.repl__header__actions{display:flex;align-items:center;height:100%;display:flex}.repl__header__action{display:flex;align-items:center;justify-content:center;height:2.8rem;min-width:2rem;padding:0 1rem;border-radius:.2rem;margin:0 .3rem;border:.1rem solid var(--color-dark-grey-200);color:var(--color-light-grey-400);cursor:pointer}.repl__header__action--toggled:hover,.repl__header__action--toggled{border-color:var(--color-blue-200);color:var(--color-light-grey-50)}.repl__content{padding:2rem;width:100%;height:calc(100% - 28rem);margin-bottom:10rem}.repl__query{display:flex;width:100
|
|
17
|
+
.repl{height:100%;display:flex;flex-direction:column;background-color:var(--color-dark-grey-100)}.repl__header{display:flex;align-items:center;height:4rem;padding:.2rem;background:var(--color-dark-grey-80);border:.1rem solid var(--color-dark-grey-100)}.repl__header__content{display:flex;align-items:center;display:flex;justify-content:space-between;height:100%;width:100%}.repl__header__content__title{color:var(--color-light-grey-180);flex:1;margin:0 1rem}.repl__header__content__title input{padding:0 .4rem}.repl__header__content__title__text{display:flex;align-items:center;padding:.6rem .5rem .5rem;margin:0 1rem;margin-right:10%;cursor:pointer}.repl__header__actions{display:flex;align-items:center;height:100%;display:flex}.repl__header__action__pagination{display:flex;align-items:center;height:2.8rem;padding:.5rem;margin-right:.5rem;border:.1rem solid var(--color-dark-grey-300);color:var(--color-light-grey-400);background:var(--color-dark-grey-100)}.repl__header__action__pagination__label{display:flex;align-items:center;justify-content:center;padding:0 1rem;user-select:none}.repl__header__action__pagination__toggler__btn{display:flex;align-items:center;height:2.2rem}.repl__header__action__pagination__toggler__btn svg{font-size:2rem;color:var(--color-dark-grey-280)}.repl__header__action__pagination__toggler__btn[disabled] svg,.repl__header__action__pagination__toggler__btn[disabled]:hover svg{cursor:not-allowed;color:var(--color-dark-grey-180)}.repl__header__action__pagination__toggler__btn--toggled svg{font-size:2rem;color:var(--color-blue-150)}.repl__header__action__pagination__toggler__btn--toggled[disabled] svg,.repl__header__action__pagination__toggler__btn--toggled[disabled]:hover svg{cursor:not-allowed;color:var(--color-dark-grey-100)}.repl__header__action{display:flex;align-items:center;justify-content:center;height:2.8rem;min-width:2rem;padding:0 1rem;border-radius:.2rem;margin:0 .3rem;border:.1rem solid var(--color-dark-grey-200);color:var(--color-light-grey-400);cursor:pointer}.repl__header__action--toggled:hover,.repl__header__action--toggled{border-color:var(--color-blue-200);color:var(--color-light-grey-50)}.repl__content{padding:2rem;width:100%;height:calc(100% - 28rem);margin-bottom:10rem}.repl__content__query{display:flex}.repl__query__content__editor__content{height:100% !important;background:var(--color-dark-grey-50);padding-top:1rem}.repl__query{display:flex;width:100%;margin-right:1rem}.repl__query__editor{width:100%}.repl__query__header{display:flex}.repl__query__label{padding:1rem 0;color:var(--color-light-grey-100);font-size:1.5rem;font-weight:500;width:calc(100% - 10rem)}.repl__query__label__sub__query{padding:1rem 0;color:var(--color-light-grey-100);font-size:1.5rem;font-weight:500}.repl__query__label__sub__query__read--only{display:flex;align-items:center;font-size:1.2rem;font-weight:100;border:.1rem solid var(--color-dark-grey-500);padding:.2rem;margin:.2rem 1rem;background-color:var(--color-dark-grey-250);color:var(--color-light-grey-200);width:6rem;position:relative;top:.7rem;height:2rem}.repl__query__content{height:15rem;width:100%;font-size:1.3rem;color:var(--color-light-grey-100);background-color:var(--color-dark-grey-200);font-family:"Roboto Mono",monospace;border:.1rem solid var(--color-dark-grey-400);margin-bottom:1rem;position:relative;resize:vertical;overflow:auto}.repl__query__execute-btn{display:flex;align-items:center;justify-content:center}/*# sourceMappingURL=repl.css.map */
|
package/lib/repl.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../style/repl.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss"],"names":[],"mappings":"AAkBA,MACE,YACA,aACA,sBACA,4CAEA,cCMA,aACA,mBDJE,YACA,cACA,qCACA,8CAEA,uBCFF,aACA,mBAiBA,aACA,8BDbI,YACA,WAEA,8BACE,kCACA,OACA,cAEA,oCACE,gBAIJ,oCCnBJ,aACA,mBDqBM,0BACA,cACA,iBACA,eAIJ,uBC7BF,aACA,mBD+BI,YACA,aAGF,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../style/repl.scss","../../../node_modules/@finos/legend-art/scss/_mixins.scss"],"names":[],"mappings":"AAkBA,MACE,YACA,aACA,sBACA,4CAEA,cCMA,aACA,mBDJE,YACA,cACA,qCACA,8CAEA,uBCFF,aACA,mBAiBA,aACA,8BDbI,YACA,WAEA,8BACE,kCACA,OACA,cAEA,oCACE,gBAIJ,oCCnBJ,aACA,mBDqBM,0BACA,cACA,iBACA,eAIJ,uBC7BF,aACA,mBD+BI,YACA,aAGF,kCCpCF,aACA,mBDsCI,cACA,cACA,mBACA,8CACA,kCACA,sCAEA,yCCpDJ,aACA,mBACA,uBDqDM,eACA,iBAGF,gDCrDJ,aACA,mBDuDM,cAEA,oDACE,eACA,iCAGF,kIAEE,mBACA,iCAKF,6DACE,eACA,4BAGF,oJAEE,mBACA,iCAKN,sBC1FF,aACA,mBACA,uBD2FI,cACA,eACA,eACA,oBACA,eACA,8CACA,kCACA,eAEA,oEAEE,mCACA,iCAKN,eACE,aACA,WACA,0BACA,oBAEA,sBACE,aAKF,uCACE,uBACA,qCACA,iBAIJ,aACE,aACA,WACA,kBAEA,qBACE,WAGF,qBACE,aAGF,oBACE,eACA,kCACA,iBACA,gBACA,yBAGF,gCACE,eACA,kCACA,iBACA,gBAGF,4CCvJF,aACA,mBDyJI,iBACA,gBACA,8CACA,cACA,kBACA,4CACA,kCACA,WACA,kBACA,UACA,YAGF,sBACE,aACA,WACA,iBACA,kCACA,4CACA,oCACA,8CACA,mBACA,kBACA,gBACA,cAGF,0BC3LF,aACA,mBACA","file":"repl.css"}
|
|
@@ -16,13 +16,17 @@
|
|
|
16
16
|
import { type NetworkClient, type PlainObject } from '@finos/legend-shared';
|
|
17
17
|
import type { REPLGridServerResult } from '../components/grid/REPLGridServerResult.js';
|
|
18
18
|
import type { V1_Lambda } from '@finos/legend-graph';
|
|
19
|
+
import type { CompletionItem } from '../stores/CompletionResult.js';
|
|
19
20
|
export declare class REPLServerClient {
|
|
20
21
|
private readonly networkClient;
|
|
21
22
|
constructor(networkClient: NetworkClient);
|
|
22
23
|
get baseUrl(): string;
|
|
23
24
|
getREPLGridServerResult: (request: PlainObject<V1_Lambda>) => Promise<PlainObject<REPLGridServerResult>>;
|
|
24
25
|
getIntialQueryLambda: () => Promise<PlainObject<V1_Lambda>>;
|
|
25
|
-
|
|
26
|
+
executeLambda: (lambda: string, isPaginationEnabled: boolean) => Promise<PlainObject<REPLGridServerResult>>;
|
|
27
|
+
getTypeaheadResults: (lambda: string) => Promise<PlainObject<CompletionItem>[]>;
|
|
28
|
+
parseQuery: (lambda: string) => Promise<void>;
|
|
29
|
+
getInitialREPLGridServerResult: (isPaginationEnabled: boolean) => Promise<PlainObject<REPLGridServerResult>>;
|
|
26
30
|
getLicenseKey: () => Promise<string>;
|
|
27
31
|
}
|
|
28
32
|
//# sourceMappingURL=REPLServerClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLServerClient.d.ts","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"REPLServerClient.d.ts","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAEpE,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;gBAElC,aAAa,EAAE,aAAa;IAIxC,IAAI,OAAO,IAAI,MAAM,CAKpB;IAED,uBAAuB,YACZ,YAAY,SAAS,CAAC,KAC9B,QAAQ,YAAY,oBAAoB,CAAC,CAAC,CAMzC;IAEJ,oBAAoB,QAAO,QAAQ,YAAY,SAAS,CAAC,CAAC,CAMtD;IAEJ,aAAa,WACH,MAAM,uBACO,OAAO,KAC3B,QAAQ,YAAY,oBAAoB,CAAC,CAAC,CASzC;IAEJ,mBAAmB,WACT,MAAM,KACb,QAAQ,YAAY,cAAc,CAAC,EAAE,CAAC,CAMrC;IAEJ,UAAU,WAAY,MAAM,KAAG,QAAQ,IAAI,CAAC,CAMxC;IAEJ,8BAA8B,wBACP,OAAO,KAC3B,QAAQ,YAAY,oBAAoB,CAAC,CAAC,CAGxC;IAEL,aAAa,QAAO,QAAQ,MAAM,CAAC,CAM/B;CACL"}
|
|
@@ -24,7 +24,14 @@ export class REPLServerClient {
|
|
|
24
24
|
}
|
|
25
25
|
getREPLGridServerResult = (request) => this.networkClient.post(`${this.baseUrl}/gridResult`, request, undefined, undefined);
|
|
26
26
|
getIntialQueryLambda = () => this.networkClient.get(`${this.baseUrl}/initialLambda`, undefined, undefined, undefined);
|
|
27
|
-
|
|
27
|
+
executeLambda = (lambda, isPaginationEnabled) => this.networkClient.post(`${this.baseUrl}/executeLambda`, lambda, undefined, undefined, {
|
|
28
|
+
isPaginationEnabled,
|
|
29
|
+
});
|
|
30
|
+
getTypeaheadResults = (lambda) => this.networkClient.post(`${this.baseUrl}/typeahead`, lambda, undefined, undefined);
|
|
31
|
+
parseQuery = (lambda) => this.networkClient.post(`${this.baseUrl}/parseQuery`, lambda, undefined, undefined);
|
|
32
|
+
getInitialREPLGridServerResult = (isPaginationEnabled) => this.networkClient.get(`${this.baseUrl}/gridResult`, undefined, undefined, {
|
|
33
|
+
isPaginationEnabled,
|
|
34
|
+
});
|
|
28
35
|
getLicenseKey = () => this.networkClient.get(`${this.baseUrl}/licenseKey`, undefined, undefined, undefined);
|
|
29
36
|
}
|
|
30
37
|
//# sourceMappingURL=REPLServerClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLServerClient.js","sourceRoot":"","sources":["../../src/server/REPLServerClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,o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O,aAAa,EAC5B,MAAM,EACN,SAAS,EACT,SAAS,CACV,CAAC;IAEJ,8BAA8B,GAAG,CAC/B,mBAA4B,EACgB,EAAE,CAC9C,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE;QACzE,mBAAmB;KACpB,CAAC,CAAC;IAEL,aAAa,GAAG,GAAoB,EAAE,CACpC,IAAI,CAAC,aAAa,CAAC,GAAG,CACpB,GAAG,IAAI,CAAC,OAAO,aAAa,EAC5B,SAAS,EACT,SAAS,EACT,SAAS,CACV,CAAC;CACL"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { SerializationFactory } from '@finos/legend-shared';
|
|
17
|
+
export declare class CompletionItem {
|
|
18
|
+
display: string;
|
|
19
|
+
completion: string;
|
|
20
|
+
static readonly serialization: SerializationFactory<CompletionItem>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=CompletionResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompletionResult.d.ts","sourceRoot":"","sources":["../../src/stores/CompletionResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,qBAAa,cAAc;IACzB,OAAO,EAAG,MAAM,CAAC;IACjB,UAAU,EAAG,MAAM,CAAC;IAEpB,MAAM,CAAC,QAAQ,CAAC,aAAa,uCAK3B;CACH"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { createModelSchema, primitive } from 'serializr';
|
|
17
|
+
import { SerializationFactory } from '@finos/legend-shared';
|
|
18
|
+
export class CompletionItem {
|
|
19
|
+
display;
|
|
20
|
+
completion;
|
|
21
|
+
static serialization = new SerializationFactory(createModelSchema(CompletionItem, {
|
|
22
|
+
display: primitive(),
|
|
23
|
+
completion: primitive(),
|
|
24
|
+
}));
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=CompletionResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompletionResult.js","sourceRoot":"","sources":["../../src/stores/CompletionResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,OAAO,cAAc;IACzB,OAAO,CAAU;IACjB,UAAU,CAAU;IAEpB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,cAAc,EAAE;QAChC,OAAO,EAAE,SAAS,EAAE;QACpB,UAAU,EAAE,SAAS,EAAE;KACxB,CAAC,CACH,CAAC"}
|
|
@@ -15,15 +15,20 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { LegendREPLGridClientApplicationStore } from './LegendREPLGridClientBaseStore.js';
|
|
17
17
|
import { REPLServerClient } from '../server/REPLServerClient.js';
|
|
18
|
-
import { type GeneratorFn } from '@finos/legend-shared';
|
|
18
|
+
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
|
|
19
19
|
import type { TDSRequest } from '../components/grid/TDSRequest.js';
|
|
20
20
|
import { REPLGridState } from './REPLGridState.js';
|
|
21
|
+
import { languages as monacoLanguagesAPI, type IPosition, type editor as monacoEditorAPI } from 'monaco-editor';
|
|
21
22
|
export declare class REPLGridClientStore {
|
|
22
23
|
readonly applicationStore: LegendREPLGridClientApplicationStore;
|
|
23
24
|
readonly client: REPLServerClient;
|
|
24
25
|
replGridState: REPLGridState;
|
|
26
|
+
executeAction: ActionState;
|
|
25
27
|
constructor(applicationStore: LegendREPLGridClientApplicationStore);
|
|
26
28
|
getREPLGridServerResult(tdsRequest: TDSRequest): GeneratorFn<void>;
|
|
29
|
+
getTypeaheadResults(position: IPosition, model: monacoEditorAPI.ITextModel): Promise<monacoLanguagesAPI.CompletionItem[]>;
|
|
30
|
+
executeLambda(): GeneratorFn<void>;
|
|
31
|
+
parseQuery(): GeneratorFn<void>;
|
|
27
32
|
getInitialQueryLambda(): GeneratorFn<void>;
|
|
28
33
|
getInitialREPLGridServerResult(): GeneratorFn<void>;
|
|
29
34
|
getLicenseKey(): GeneratorFn<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLGridClientStore.d.ts","sourceRoot":"","sources":["../../src/stores/REPLGridClientStore.ts"],"names":[],"mappings":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AC;IAS1C,8BAA8B,IAAI,WAAW,CAAC,IAAI,CAAC;IAuCnD,aAAa,IAAI,WAAW,CAAC,IAAI,CAAC;CAIpC"}
|
|
@@ -14,24 +14,30 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { REPLServerClient } from '../server/REPLServerClient.js';
|
|
17
|
-
import { NetworkClient, assertErrorThrown, LogEvent, guaranteeNonNullable, guaranteeType, } from '@finos/legend-shared';
|
|
17
|
+
import { NetworkClient, assertErrorThrown, LogEvent, guaranteeNonNullable, guaranteeType, ActionState, HttpStatus, NetworkClientError, } from '@finos/legend-shared';
|
|
18
18
|
import { flow, flowResult, makeObservable, observable } from 'mobx';
|
|
19
19
|
import { REPLGridServerResult } from '../components/grid/REPLGridServerResult.js';
|
|
20
|
-
import { LEGEND_REPL_EVENT } from '../Const.js';
|
|
20
|
+
import { LEGEND_APPLICATION_REPL_SETTING_KEY, LEGEND_REPL_EVENT, } from '../Const.js';
|
|
21
21
|
import { REPLGridState } from './REPLGridState.js';
|
|
22
22
|
import { buildLambdaExpressions } from '../components/grid/TDSLambdaBuilder.js';
|
|
23
|
-
import { TDSExecutionResult, V1_Lambda, V1_buildExecutionResult, V1_deserializeValueSpecification, V1_serializeExecutionResult, V1_serializeValueSpecification, } from '@finos/legend-graph';
|
|
23
|
+
import { TDSExecutionResult, V1_Lambda, V1_buildExecutionResult, V1_deserializeValueSpecification, V1_serializeExecutionResult, V1_serializeValueSpecification, V1_ParserError, ParserError, SourceInformation, } from '@finos/legend-graph';
|
|
24
|
+
import { CompletionItem } from './CompletionResult.js';
|
|
25
|
+
import { languages as monacoLanguagesAPI, } from 'monaco-editor';
|
|
24
26
|
export class REPLGridClientStore {
|
|
25
27
|
applicationStore;
|
|
26
28
|
client;
|
|
27
29
|
replGridState;
|
|
30
|
+
executeAction = ActionState.create();
|
|
28
31
|
constructor(applicationStore) {
|
|
29
32
|
makeObservable(this, {
|
|
30
33
|
replGridState: observable,
|
|
34
|
+
executeAction: observable,
|
|
31
35
|
getREPLGridServerResult: flow,
|
|
32
36
|
getInitialQueryLambda: flow,
|
|
33
37
|
getInitialREPLGridServerResult: flow,
|
|
34
38
|
getLicenseKey: flow,
|
|
39
|
+
executeLambda: flow,
|
|
40
|
+
parseQuery: flow,
|
|
35
41
|
});
|
|
36
42
|
this.applicationStore = applicationStore;
|
|
37
43
|
this.client = new REPLServerClient(new NetworkClient({
|
|
@@ -39,12 +45,13 @@ export class REPLGridClientStore {
|
|
|
39
45
|
? window.location.origin
|
|
40
46
|
: this.applicationStore.config.replUrl,
|
|
41
47
|
}));
|
|
42
|
-
|
|
48
|
+
const isPaginationEnabled = applicationStore.settingService.getBooleanValue(LEGEND_APPLICATION_REPL_SETTING_KEY.PAGINATION) ?? true;
|
|
49
|
+
this.replGridState = new REPLGridState(isPaginationEnabled);
|
|
43
50
|
}
|
|
44
51
|
*getREPLGridServerResult(tdsRequest) {
|
|
45
52
|
try {
|
|
46
53
|
const isSubQuery = tdsRequest.groupBy.groupKeys.length !== 0;
|
|
47
|
-
const lambda = buildLambdaExpressions(guaranteeNonNullable(this.replGridState.initialQueryLambda?.body[0]), tdsRequest);
|
|
54
|
+
const lambda = buildLambdaExpressions(guaranteeNonNullable(this.replGridState.initialQueryLambda?.body[0]), tdsRequest, this.replGridState.isPaginationEnabled);
|
|
48
55
|
const resultObj = (yield flowResult(this.client.getREPLGridServerResult(V1_serializeValueSpecification(lambda, []))));
|
|
49
56
|
const replGridResult = REPLGridServerResult.serialization.fromJson(resultObj);
|
|
50
57
|
const tdsResult = JSON.parse(replGridResult.result);
|
|
@@ -53,7 +60,7 @@ export class REPLGridClientStore {
|
|
|
53
60
|
this.replGridState.setCurrentSubQuery(replGridResult.currentQuery);
|
|
54
61
|
}
|
|
55
62
|
else {
|
|
56
|
-
this.replGridState.
|
|
63
|
+
this.replGridState.queryEditorState.setQuery(replGridResult.currentQuery.substring(1));
|
|
57
64
|
this.replGridState.setCurrentSubQuery(undefined);
|
|
58
65
|
}
|
|
59
66
|
}
|
|
@@ -63,6 +70,72 @@ export class REPLGridClientStore {
|
|
|
63
70
|
this.applicationStore.logService.error(LogEvent.create(LEGEND_REPL_EVENT.FETCH_TDS_FAILURE), error);
|
|
64
71
|
}
|
|
65
72
|
}
|
|
73
|
+
async getTypeaheadResults(position, model) {
|
|
74
|
+
try {
|
|
75
|
+
const textUntilPosition = model.getValueInRange({
|
|
76
|
+
startLineNumber: 1,
|
|
77
|
+
startColumn: 1,
|
|
78
|
+
endLineNumber: position.lineNumber,
|
|
79
|
+
endColumn: position.column,
|
|
80
|
+
});
|
|
81
|
+
const resultObj = await this.client.getTypeaheadResults(textUntilPosition);
|
|
82
|
+
const result = resultObj.map((res) => CompletionItem.serialization.fromJson(res));
|
|
83
|
+
const currentWord = model.getWordUntilPosition(position);
|
|
84
|
+
return result.map((res) => ({
|
|
85
|
+
label: res.display,
|
|
86
|
+
kind: monacoLanguagesAPI.CompletionItemKind.Text,
|
|
87
|
+
range: {
|
|
88
|
+
startLineNumber: position.lineNumber,
|
|
89
|
+
startColumn: currentWord.startColumn + 1,
|
|
90
|
+
endLineNumber: position.lineNumber,
|
|
91
|
+
endColumn: currentWord.endColumn + 1,
|
|
92
|
+
},
|
|
93
|
+
insertText: res.completion,
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
catch (e) {
|
|
97
|
+
return [];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
*executeLambda() {
|
|
101
|
+
try {
|
|
102
|
+
this.executeAction.inProgress();
|
|
103
|
+
const resultObj = (yield this.client.executeLambda(this.replGridState.queryEditorState.query, this.replGridState.isPaginationEnabled));
|
|
104
|
+
const replGridResult = REPLGridServerResult.serialization.fromJson(resultObj);
|
|
105
|
+
const tdsResultObj = JSON.parse(replGridResult.result);
|
|
106
|
+
const tdsResult = guaranteeType(V1_buildExecutionResult(V1_serializeExecutionResult(tdsResultObj)), TDSExecutionResult);
|
|
107
|
+
this.replGridState.setInitialResult(tdsResult);
|
|
108
|
+
this.replGridState.queryEditorState.setQuery(replGridResult.currentQuery.substring(1));
|
|
109
|
+
this.replGridState.setCurrentSubQuery(undefined);
|
|
110
|
+
this.replGridState.setColumns(tdsResult.result.columns);
|
|
111
|
+
yield flowResult(this.getInitialQueryLambda());
|
|
112
|
+
this.executeAction.complete();
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
this.executeAction.fail();
|
|
116
|
+
assertErrorThrown(error);
|
|
117
|
+
this.applicationStore.notificationService.notifyError(error);
|
|
118
|
+
this.applicationStore.logService.error(LogEvent.create(LEGEND_REPL_EVENT.FETCH_TDS_FAILURE), error);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
*parseQuery() {
|
|
122
|
+
try {
|
|
123
|
+
this.replGridState.queryEditorState.setParserError(undefined);
|
|
124
|
+
yield flowResult(this.client.parseQuery(`|${this.replGridState.queryEditorState.query}`));
|
|
125
|
+
}
|
|
126
|
+
catch (error) {
|
|
127
|
+
assertErrorThrown(error);
|
|
128
|
+
if (error instanceof NetworkClientError &&
|
|
129
|
+
error.response.status === HttpStatus.BAD_REQUEST) {
|
|
130
|
+
const protocol = V1_ParserError.serialization.fromJson(error.payload);
|
|
131
|
+
const parserError = new ParserError(protocol.message);
|
|
132
|
+
if (protocol.sourceInformation) {
|
|
133
|
+
parserError.sourceInformation = new SourceInformation(protocol.sourceInformation.sourceId, protocol.sourceInformation.startLine, protocol.sourceInformation.startColumn, protocol.sourceInformation.endLine, protocol.sourceInformation.endColumn);
|
|
134
|
+
}
|
|
135
|
+
this.replGridState.queryEditorState.setParserError(parserError);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
66
139
|
*getInitialQueryLambda() {
|
|
67
140
|
const lambdaObj = (yield this.client.getIntialQueryLambda());
|
|
68
141
|
const lambda = V1_deserializeValueSpecification(lambdaObj, []);
|
|
@@ -72,22 +145,23 @@ export class REPLGridClientStore {
|
|
|
72
145
|
}
|
|
73
146
|
*getInitialREPLGridServerResult() {
|
|
74
147
|
try {
|
|
148
|
+
this.executeAction.inProgress();
|
|
75
149
|
if (!this.replGridState.licenseKey) {
|
|
76
150
|
yield flowResult(this.getLicenseKey());
|
|
77
151
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
const resultObj = (yield this.client.getInitialREPLGridServerResult());
|
|
152
|
+
yield flowResult(this.getInitialQueryLambda());
|
|
153
|
+
const resultObj = (yield this.client.getInitialREPLGridServerResult(this.replGridState.isPaginationEnabled));
|
|
82
154
|
const replGridResult = REPLGridServerResult.serialization.fromJson(resultObj);
|
|
83
155
|
const tdsResultObj = JSON.parse(replGridResult.result);
|
|
84
156
|
const tdsResult = guaranteeType(V1_buildExecutionResult(V1_serializeExecutionResult(tdsResultObj)), TDSExecutionResult);
|
|
85
157
|
this.replGridState.setInitialResult(tdsResult);
|
|
86
|
-
this.replGridState.
|
|
158
|
+
this.replGridState.queryEditorState.setQuery(replGridResult.currentQuery.substring(1));
|
|
87
159
|
this.replGridState.setCurrentSubQuery(undefined);
|
|
88
160
|
this.replGridState.setColumns(tdsResult.result.columns);
|
|
161
|
+
this.executeAction.complete();
|
|
89
162
|
}
|
|
90
163
|
catch (error) {
|
|
164
|
+
this.executeAction.fail();
|
|
91
165
|
assertErrorThrown(error);
|
|
92
166
|
this.applicationStore.notificationService.notifyError(error);
|
|
93
167
|
this.applicationStore.logService.error(LogEvent.create(LEGEND_REPL_EVENT.FETCH_TDS_FAILURE), error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLGridClientStore.js","sourceRoot":"","sources":["../../src/stores/REPLGridClientStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EACL,aAAa,EAGb,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EACpB,aAAa,
|
|
1
|
+
{"version":3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,CAAC,CAAC,EAClE,kBAAkB,CACnB,CAAC;YACF,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;YAC/C,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,QAAQ,CAC1C,cAAc,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CACzC,CAAC;YACF,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;YACjD,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACxD,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;SAC/B;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;YAC1B,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAC7D,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CACpC,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,EACpD,KAAK,CACN,CAAC;SACH;IACH,CAAC;IAED,CAAC,aAAa;QACZ,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAW,CAAC;QACjE,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IAC/C,CAAC;CACF"}
|
|
@@ -16,22 +16,24 @@
|
|
|
16
16
|
import { type TDSRowDataType } from '../components/grid/GridUtils.js';
|
|
17
17
|
import type { ColDef } from '@ag-grid-community/core';
|
|
18
18
|
import type { V1_Lambda, TDSExecutionResult } from '@finos/legend-graph';
|
|
19
|
+
import { QueryEditorState } from '../components/REPLQueryEditor.js';
|
|
19
20
|
export declare class REPLGridState {
|
|
20
21
|
initialResult?: TDSExecutionResult | undefined;
|
|
21
22
|
currentResult?: TDSExecutionResult | undefined;
|
|
22
23
|
columns?: string[] | undefined;
|
|
23
|
-
|
|
24
|
+
queryEditorState: QueryEditorState;
|
|
24
25
|
currentSubQuery?: string | undefined;
|
|
25
26
|
licenseKey?: string | undefined;
|
|
26
27
|
initialQueryLambda?: V1_Lambda | undefined;
|
|
27
|
-
|
|
28
|
+
isPaginationEnabled: boolean;
|
|
29
|
+
constructor(isPaginationEnabled: boolean);
|
|
28
30
|
setInitialQueryLambda(val: V1_Lambda | undefined): void;
|
|
29
|
-
setCurrentQuery(val: string | undefined): void;
|
|
30
31
|
setCurrentSubQuery(val: string | undefined): void;
|
|
31
32
|
setInitialResult(val: TDSExecutionResult | undefined): void;
|
|
32
33
|
setCurrentResult(val: TDSExecutionResult | undefined): void;
|
|
33
34
|
setColumns(val: string[]): void;
|
|
34
35
|
setLicenseKey(val: string | undefined): void;
|
|
36
|
+
setIsPaginationEnabled(val: boolean): void;
|
|
35
37
|
get rowData(): TDSRowDataType[];
|
|
36
38
|
get columnDefs(): ColDef[];
|
|
37
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLGridState.d.ts","sourceRoot":"","sources":["../../src/stores/REPLGridState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"REPLGridState.d.ts","sourceRoot":"","sources":["../../src/stores/REPLGridState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,qBAAa,aAAa;IACxB,aAAa,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC/C,aAAa,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC/B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,kBAAkB,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC3C,mBAAmB,EAAG,OAAO,CAAC;gBAElB,mBAAmB,EAAE,OAAO;IAyBxC,qBAAqB,CAAC,GAAG,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAIvD,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAIjD,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAI3D,gBAAgB,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI;IAI3D,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI;IAI/B,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAI5C,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI1C,IAAI,OAAO,IAAI,cAAc,EAAE,CAE9B;IAED,IAAI,UAAU,IAAI,MAAM,EAAE,CAYzB;CACF"}
|
|
@@ -16,40 +16,42 @@
|
|
|
16
16
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
17
17
|
import { getAggregationTDSColumnCustomizations, getTDSRowData, } from '../components/grid/GridUtils.js';
|
|
18
18
|
import { action, computed, makeObservable, observable } from 'mobx';
|
|
19
|
+
import { QueryEditorState } from '../components/REPLQueryEditor.js';
|
|
19
20
|
export class REPLGridState {
|
|
20
21
|
initialResult;
|
|
21
22
|
currentResult;
|
|
22
23
|
columns;
|
|
23
|
-
|
|
24
|
+
queryEditorState;
|
|
24
25
|
currentSubQuery;
|
|
25
26
|
licenseKey;
|
|
26
27
|
initialQueryLambda;
|
|
27
|
-
|
|
28
|
+
isPaginationEnabled;
|
|
29
|
+
constructor(isPaginationEnabled) {
|
|
28
30
|
makeObservable(this, {
|
|
29
31
|
initialResult: observable,
|
|
30
32
|
initialQueryLambda: observable,
|
|
31
33
|
currentResult: observable,
|
|
32
|
-
currentQuery: observable,
|
|
33
34
|
currentSubQuery: observable,
|
|
34
35
|
licenseKey: observable,
|
|
35
36
|
columns: observable,
|
|
37
|
+
isPaginationEnabled: observable,
|
|
38
|
+
queryEditorState: observable,
|
|
36
39
|
setInitialResult: action,
|
|
37
|
-
setCurrentQuery: action,
|
|
38
40
|
setCurrentSubQuery: action,
|
|
39
41
|
setColumns: action,
|
|
40
42
|
setInitialQueryLambda: action,
|
|
41
43
|
setCurrentResult: action,
|
|
42
44
|
setLicenseKey: action,
|
|
45
|
+
setIsPaginationEnabled: action,
|
|
43
46
|
rowData: computed,
|
|
44
47
|
columnDefs: computed,
|
|
45
48
|
});
|
|
49
|
+
this.queryEditorState = new QueryEditorState('');
|
|
50
|
+
this.isPaginationEnabled = isPaginationEnabled;
|
|
46
51
|
}
|
|
47
52
|
setInitialQueryLambda(val) {
|
|
48
53
|
this.initialQueryLambda = val;
|
|
49
54
|
}
|
|
50
|
-
setCurrentQuery(val) {
|
|
51
|
-
this.currentQuery = val;
|
|
52
|
-
}
|
|
53
55
|
setCurrentSubQuery(val) {
|
|
54
56
|
this.currentSubQuery = val;
|
|
55
57
|
}
|
|
@@ -65,6 +67,9 @@ export class REPLGridState {
|
|
|
65
67
|
setLicenseKey(val) {
|
|
66
68
|
this.licenseKey = val;
|
|
67
69
|
}
|
|
70
|
+
setIsPaginationEnabled(val) {
|
|
71
|
+
this.isPaginationEnabled = val;
|
|
72
|
+
}
|
|
68
73
|
get rowData() {
|
|
69
74
|
return this.initialResult ? getTDSRowData(this.initialResult.result) : [];
|
|
70
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"REPLGridState.js","sourceRoot":"","sources":["../../src/stores/REPLGridState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,qCAAqC,EACrC,aAAa,GAEd,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"REPLGridState.js","sourceRoot":"","sources":["../../src/stores/REPLGridState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,qCAAqC,EACrC,aAAa,GAEd,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,MAAM,OAAO,aAAa;IACxB,aAAa,CAAkC;IAC/C,aAAa,CAAkC;IAC/C,OAAO,CAAwB;IAC/B,gBAAgB,CAAmB;IACnC,eAAe,CAAsB;IACrC,UAAU,CAAsB;IAChC,kBAAkB,CAAyB;IAC3C,mBAAmB,CAAW;IAE9B,YAAY,mBAA4B;QACtC,cAAc,CAAC,IAAI,EAAE;YACnB,aAAa,EAAE,UAAU;YACzB,kBAAkB,EAAE,UAAU;YAC9B,aAAa,EAAE,UAAU;YACzB,eAAe,EAAE,UAAU;YAC3B,UAAU,EAAE,UAAU;YACtB,OAAO,E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AC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBACvB,KAAK,EAAE,CAAC;gBACR,UAAU,EAAE,CAAC;gBACb,GAAG,qCAAqC,CACtC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAC9B,oBAAoB,CAAC,IAAI,CAAC,aAAa,CAAC,EACxC,CAAC,CACF;aACF,CAAC,CAAC;YACL,CAAC,CAAC,EAAE,CAAC;IACT,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application-repl",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Legend REPL Grid client application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -52,8 +52,9 @@
|
|
|
52
52
|
"@ag-grid-enterprise/row-grouping": "30.2.0",
|
|
53
53
|
"@ag-grid-enterprise/server-side-row-model": "30.2.0",
|
|
54
54
|
"@finos/legend-application": "15.0.74",
|
|
55
|
-
"@finos/legend-
|
|
56
|
-
"@finos/legend-
|
|
55
|
+
"@finos/legend-art": "7.1.26",
|
|
56
|
+
"@finos/legend-graph": "31.9.11",
|
|
57
|
+
"@finos/legend-lego": "1.2.24",
|
|
57
58
|
"@finos/legend-shared": "10.0.34",
|
|
58
59
|
"@types/react": "18.2.31",
|
|
59
60
|
"@types/react-dom": "18.2.14",
|
package/src/Const.ts
CHANGED
|
@@ -19,10 +19,17 @@ export enum LEGEND_REPL_EVENT {
|
|
|
19
19
|
BUILD_TDS_EQUEST_FAILURE = 'repl.build-tds-request.failure',
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export
|
|
22
|
+
export enum LEGEND_APPLICATION_REPL_SETTING_KEY {
|
|
23
|
+
PAGINATION = 'application.pagination.enabled',
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export enum QUERY_FUNCTION {
|
|
27
|
+
FILTER = 'filter',
|
|
28
|
+
SORT = 'sort',
|
|
29
|
+
SLICE = 'slice',
|
|
30
|
+
GROUPBY = 'groupBy',
|
|
31
|
+
NOT = 'not',
|
|
32
|
+
FROM = 'from',
|
|
33
|
+
}
|
|
27
34
|
|
|
28
35
|
export const DEFAULT_VARIABLE_NAME = 'x';
|