@finos/legend-extension-dsl-text 1.0.2 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/lib/components/studio/DSLText_LegendStudioPlugin.d.ts +1 -3
- package/lib/components/studio/DSLText_LegendStudioPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSLText_LegendStudioPlugin.js +1 -4
- package/lib/components/studio/DSLText_LegendStudioPlugin.js.map +1 -1
- package/lib/components/studio/TextElementEditor.d.ts +1 -0
- package/lib/components/studio/TextElementEditor.d.ts.map +1 -1
- package/lib/graph/DSLText_PureGraphPlugin.d.ts +1 -3
- package/lib/graph/DSLText_PureGraphPlugin.d.ts.map +1 -1
- package/lib/graph/DSLText_PureGraphPlugin.js +0 -3
- package/lib/graph/DSLText_PureGraphPlugin.js.map +1 -1
- package/lib/graphManager/DSLText_PureGraphManagerPlugin.d.ts +1 -3
- package/lib/graphManager/DSLText_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSLText_PureGraphManagerPlugin.js +1 -4
- package/lib/graphManager/DSLText_PureGraphManagerPlugin.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/text/Text.d.ts +2 -3
- package/lib/models/metamodels/pure/model/packageableElements/text/Text.d.ts.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/text/Text.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/text/Text.js.map +1 -1
- package/lib/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.d.ts +1 -3
- package/lib/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.js +1 -4
- package/lib/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/text/V1_Text.d.ts +2 -3
- package/lib/models/protocols/pure/v1/model/packageableElements/text/V1_Text.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/text/V1_Text.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/text/V1_Text.js.map +1 -1
- package/lib/stores/studio/TextEditorState.d.ts +1 -2
- package/lib/stores/studio/TextEditorState.d.ts.map +1 -1
- package/lib/stores/studio/TextEditorState.js.map +1 -1
- package/package.json +19 -17
- package/src/components/studio/DSLText_LegendStudioPlugin.tsx +12 -17
- package/src/graph/DSLText_PureGraphPlugin.ts +1 -9
- package/src/graphManager/DSLText_PureGraphManagerPlugin.ts +4 -9
- package/src/models/metamodels/pure/model/packageableElements/text/Text.ts +5 -4
- package/src/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.ts +13 -17
- package/src/models/protocols/pure/v1/model/packageableElements/text/V1_Text.ts +5 -4
- package/src/stores/studio/TextEditorState.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -13,11 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { LegendStudioPlugin } from '@finos/legend-studio';
|
|
17
|
-
import type { LegendStudioPluginManager, NewElementFromStateCreator, ElementEditorStateCreator, ElementTypeGetter, ElementProjectExplorerDnDTypeGetter, ElementIconGetter, ElementEditorRenderer, DSL_LegendStudioPlugin_Extension } from '@finos/legend-studio';
|
|
16
|
+
import { LegendStudioPlugin, type NewElementFromStateCreator, type ElementEditorStateCreator, type ElementTypeGetter, type ElementProjectExplorerDnDTypeGetter, type ElementIconGetter, type ElementEditorRenderer, type DSL_LegendStudioPlugin_Extension } from '@finos/legend-studio';
|
|
18
17
|
export declare class DSLText_LegendStudioPlugin extends LegendStudioPlugin implements DSL_LegendStudioPlugin_Extension {
|
|
19
18
|
constructor();
|
|
20
|
-
install(pluginManager: LegendStudioPluginManager): void;
|
|
21
19
|
getExtraSupportedElementTypes(): string[];
|
|
22
20
|
getExtraElementTypeGetters(): ElementTypeGetter[];
|
|
23
21
|
getExtraElementIconGetters(): ElementIconGetter[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLText_LegendStudioPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLText_LegendStudioPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,
|
|
1
|
+
{"version":3,"file":"DSLText_LegendStudioPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DSLText_LegendStudioPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,kBAAkB,EAClB,KAAK,0BAA0B,EAG/B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,gCAAgC,EAEtC,MAAM,sBAAsB,CAAC;AAU9B,qBAAa,0BACX,SAAQ,kBACR,YAAW,gCAAgC;;IAM3C,6BAA6B,IAAI,MAAM,EAAE;IAIzC,0BAA0B,IAAI,iBAAiB,EAAE;IAWjD,0BAA0B,IAAI,iBAAiB,EAAE;IAejD,8BAA8B,IAAI,qBAAqB,EAAE;IAWzD,mCAAmC,IAAI,0BAA0B,EAAE;IAenE,kCAAkC,IAAI,yBAAyB,EAAE;IAcjE,4CAA4C,IAAI,mCAAmC,EAAE;IAWrF,iCAAiC,IAAI,MAAM,EAAE;CAG9C"}
|
|
@@ -15,7 +15,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import packageJson from '../../../package.json';
|
|
18
|
-
import { LegendStudioPlugin } from '@finos/legend-studio';
|
|
18
|
+
import { LegendStudioPlugin, } from '@finos/legend-studio';
|
|
19
19
|
import { FileIcon } from '@finos/legend-art';
|
|
20
20
|
import { TextEditorState } from '../../stores/studio/TextEditorState';
|
|
21
21
|
import { TextElementEditor } from './TextElementEditor';
|
|
@@ -26,9 +26,6 @@ export class DSLText_LegendStudioPlugin extends LegendStudioPlugin {
|
|
|
26
26
|
constructor() {
|
|
27
27
|
super(packageJson.extensions.studioPlugin, packageJson.version);
|
|
28
28
|
}
|
|
29
|
-
install(pluginManager) {
|
|
30
|
-
pluginManager.registerStudioPlugin(this);
|
|
31
|
-
}
|
|
32
29
|
getExtraSupportedElementTypes() {
|
|
33
30
|
return [TEXT_ELEMENT_TYPE];
|
|
34
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLText_LegendStudioPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSLText_LegendStudioPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"DSLText_LegendStudioPlugin.js","sourceRoot":"","sources":["../../../src/components/studio/DSLText_LegendStudioPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EACL,kBAAkB,GAWnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,IAAI,EAAE,MAAM,kEAAkE,CAAC;AAExF,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACjC,MAAM,sCAAsC,GAAG,uBAAuB,CAAC;AAEvE,MAAM,OAAO,0BACX,SAAQ,kBAAkB;IAG1B;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,6BAA6B;QAC3B,OAAO,CAAC,iBAAiB,CAAC,CAAC;I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AAI,EAAE;oBAC3B,OAAO,sCAAsC,CAAC;iBAC/C;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAED,iCAAiC;QAC/B,OAAO,CAAC,sCAAsC,CAAC,CAAC;IAClD,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextElementEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/TextElementEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"TextElementEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/TextElementEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAiCH,eAAO,MAAM,iBAAiB;;CAqE5B,CAAC"}
|
|
@@ -14,11 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Clazz } from '@finos/legend-shared';
|
|
17
|
-
import
|
|
18
|
-
import { PureGraphPlugin } from '@finos/legend-graph';
|
|
17
|
+
import { type PackageableElement, PureGraphPlugin } from '@finos/legend-graph';
|
|
19
18
|
export declare class DSLText_PureGraphPlugin extends PureGraphPlugin {
|
|
20
19
|
constructor();
|
|
21
|
-
install(pluginManager: GraphPluginManager): void;
|
|
22
20
|
getExtraPureGraphExtensionClasses(): Clazz<PackageableElement>[];
|
|
23
21
|
}
|
|
24
22
|
//# sourceMappingURL=DSLText_PureGraphPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLText_PureGraphPlugin.d.ts","sourceRoot":"","sources":["../../src/graph/DSLText_PureGraphPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"DSLText_PureGraphPlugin.d.ts","sourceRoot":"","sources":["../../src/graph/DSLText_PureGraphPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,KAAK,kBAAkB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE/E,qBAAa,uBAAwB,SAAQ,eAAe;;IAKjD,iCAAiC,IAAI,KAAK,CAAC,kBAAkB,CAAC,EAAE;CAG1E"}
|
|
@@ -20,9 +20,6 @@ export class DSLText_PureGraphPlugin extends PureGraphPlugin {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super(packageJson.extensions.pureGraphPlugin, packageJson.version);
|
|
22
22
|
}
|
|
23
|
-
install(pluginManager) {
|
|
24
|
-
pluginManager.registerPureGraphPlugin(this);
|
|
25
|
-
}
|
|
26
23
|
getExtraPureGraphExtensionClasses() {
|
|
27
24
|
return [Text];
|
|
28
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLText_PureGraphPlugin.js","sourceRoot":"","sources":["../../src/graph/DSLText_PureGraphPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"DSLText_PureGraphPlugin.js","sourceRoot":"","sources":["../../src/graph/DSLText_PureGraphPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,+DAA+D,CAAC;AAErF,OAAO,EAA2B,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE/E,MAAM,OAAO,uBAAwB,SAAQ,eAAe;IAC1D;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,eAAe,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACrE,CAAC;IAEQ,iCAAiC;QACxC,OAAO,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -13,11 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import
|
|
17
|
-
import { PureGraphManagerPlugin } from '@finos/legend-graph';
|
|
16
|
+
import { PureGraphManagerPlugin, type PureGrammarElementLabeler } from '@finos/legend-graph';
|
|
18
17
|
export declare class DSLText_PureGraphManagerPlugin extends PureGraphManagerPlugin {
|
|
19
18
|
constructor();
|
|
20
|
-
install(pluginManager: GraphPluginManager): void;
|
|
21
19
|
getExtraPureGrammarParserNames(): string[];
|
|
22
20
|
getExtraPureGrammarKeywords(): string[];
|
|
23
21
|
getExtraPureGrammarElementLabelers(): PureGrammarElementLabeler[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLText_PureGraphManagerPlugin.d.ts","sourceRoot":"","sources":["../../src/graphManager/DSLText_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,
|
|
1
|
+
{"version":3,"file":"DSLText_PureGraphManagerPlugin.d.ts","sourceRoot":"","sources":["../../src/graphManager/DSLText_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,sBAAsB,EAEtB,KAAK,yBAAyB,EAC/B,MAAM,qBAAqB,CAAC;AAK7B,qBAAa,8BAA+B,SAAQ,sBAAsB;;IAK/D,8BAA8B,IAAI,MAAM,EAAE;IAI1C,2BAA2B,IAAI,MAAM,EAAE;IAIvC,kCAAkC,IAAI,yBAAyB,EAAE;CAU3E"}
|
|
@@ -15,16 +15,13 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import packageJson from '../../package.json';
|
|
17
17
|
import { Text } from '../models/metamodels/pure/model/packageableElements/text/Text';
|
|
18
|
-
import { PureGraphManagerPlugin } from '@finos/legend-graph';
|
|
18
|
+
import { PureGraphManagerPlugin, } from '@finos/legend-graph';
|
|
19
19
|
const PURE_GRAMMAR_TEXT_PARSER_NAME = 'Text';
|
|
20
20
|
const PURE_GRAMMAR_TEXT_ELEMENT_TYPE_LABEL = 'Text';
|
|
21
21
|
export class DSLText_PureGraphManagerPlugin extends PureGraphManagerPlugin {
|
|
22
22
|
constructor() {
|
|
23
23
|
super(packageJson.extensions.pureGraphManagerPlugin, packageJson.version);
|
|
24
24
|
}
|
|
25
|
-
install(pluginManager) {
|
|
26
|
-
pluginManager.registerPureGraphManagerPlugin(this);
|
|
27
|
-
}
|
|
28
25
|
getExtraPureGrammarParserNames() {
|
|
29
26
|
return [PURE_GRAMMAR_TEXT_PARSER_NAME];
|
|
30
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLText_PureGraphManagerPlugin.js","sourceRoot":"","sources":["../../src/graphManager/DSLText_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,+DAA+D,CAAC;
|
|
1
|
+
{"version":3,"file":"DSLText_PureGraphManagerPlugin.js","sourceRoot":"","sources":["../../src/graphManager/DSLText_PureGraphManagerPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,+DAA+D,CAAC;AACrF,OAAO,EACL,sBAAsB,GAGvB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,6BAA6B,GAAG,MAAM,CAAC;AAC7C,MAAM,oCAAoC,GAAG,MAAM,CAAC;AAEpD,MAAM,OAAO,8BAA+B,SAAQ,sBAAsB;IACxE;QACE,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,sBAAsB,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC5E,CAAC;IAEQ,8BAA8B;QACrC,OAAO,CAAC,6BAA6B,CAAC,CAAC;IACzC,CAAC;IAEQ,2BAA2B;QAClC,OAAO,CAAC,oCAAoC,CAAC,CAAC;IAChD,CAAC;IAEQ,kCAAkC;QACzC,OAAO;YACL,CAAC,OAA2B,EAAsB,EAAE;gBAClD,IAAI,OAAO,YAAY,IAAI,EAAE;oBAC3B,OAAO,oCAAoC,CAAC;iBAC7C;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
package/lib/index.css
CHANGED
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
import type
|
|
18
|
-
import { PackageableElement } from '@finos/legend-graph';
|
|
16
|
+
import { type Hashable } from '@finos/legend-shared';
|
|
17
|
+
import { type PackageableElementVisitor, PackageableElement } from '@finos/legend-graph';
|
|
19
18
|
export declare enum TEXT_TYPE {
|
|
20
19
|
PLAIN_TEXT = "plainText",
|
|
21
20
|
MARKDOWN = "markdown"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/text/Text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/text/Text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EACL,KAAK,yBAAyB,EAC9B,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,oBAAY,SAAS;IACnB,UAAU,cAAc;IACxB,QAAQ,aAAa;CACtB;AAED,qBAAa,IAAK,SAAQ,kBAAmB,YAAW,QAAQ;IAC9D,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;gBAEJ,IAAI,EAAE,MAAM;IAexB,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAG9B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIjC,cAAuB,gBAAgB,IAAI,MAAM,CAOhD;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,CAAC;CAGL"}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { observable, action, makeObservable, override } from 'mobx';
|
|
17
17
|
import { hashArray } from '@finos/legend-shared';
|
|
18
18
|
import { TEXT_HASH_STRUCTURE } from '../../../../../DSLText_ModelUtils';
|
|
19
|
-
import { PackageableElement } from '@finos/legend-graph';
|
|
19
|
+
import { PackageableElement, } from '@finos/legend-graph';
|
|
20
20
|
export var TEXT_TYPE;
|
|
21
21
|
(function (TEXT_TYPE) {
|
|
22
22
|
TEXT_TYPE["PLAIN_TEXT"] = "plainText";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/text/Text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/model/packageableElements/text/Text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAEL,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,qCAAwB,CAAA;IACxB,kCAAqB,CAAA;AACvB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,OAAO,IAAK,SAAQ,kBAAkB;IAC1C,IAAI,CAAY;IAChB,OAAO,CAAS;IAEhB,YAAY,IAAY;QACtB,KAAK,CAAC,IAAI,CAAC,CAAC;QAEZ,cAAc,CAA2B,IAAI,EAAE;YAC7C,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,UAAU;YACnB,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,MAAM;YAClB,gBAAgB,EAAE,QAAQ;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,UAAU,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;IACpB,CAAC;IAED,OAAO,CAAC,IAAe;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IACD,UAAU,CAAC,OAAe;QACxB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,IAAuB,gBAAgB;QACrC,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,IAAI;YACxB,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAqC;QAErC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -13,11 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import
|
|
17
|
-
import { PureProtocolProcessorPlugin, V1_ElementBuilder } from '@finos/legend-graph';
|
|
16
|
+
import { type V1_ElementProtocolClassifierPathGetter, type V1_ElementProtocolDeserializer, type V1_ElementProtocolSerializer, type V1_ElementTransformer, type V1_PackageableElement, PureProtocolProcessorPlugin, V1_ElementBuilder } from '@finos/legend-graph';
|
|
18
17
|
export declare class DSLText_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
|
|
19
18
|
constructor();
|
|
20
|
-
install(pluginManager: GraphPluginManager): void;
|
|
21
19
|
V1_getExtraElementBuilders(): V1_ElementBuilder<V1_PackageableElement>[];
|
|
22
20
|
V1_getExtraElementClassifierPathGetters(): V1_ElementProtocolClassifierPathGetter[];
|
|
23
21
|
V1_getExtraElementProtocolSerializers(): V1_ElementProtocolSerializer[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLText_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DSLText_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,OAAO,EAEL,KAAK,sCAAsC,EAC3C,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAG1B,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAI7B,qBAAa,mCAAoC,SAAQ,2BAA2B;;IAQzE,0BAA0B,IAAI,iBAAiB,CAAC,qBAAqB,CAAC,EAAE;IAyCxE,uCAAuC,IAAI,sCAAsC,EAAE;IAWnF,qCAAqC,IAAI,4BAA4B,EAAE;IAcvE,uCAAuC,IAAI,8BAA8B,EAAE;IAc3E,8BAA8B,IAAI,qBAAqB,EAAE;CAmBnE"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import packageJson from '../../../../package.json';
|
|
17
17
|
import { V1_Text } from './v1/model/packageableElements/text/V1_Text';
|
|
18
|
-
import { guaranteeNonNullable, assertType } from '@finos/legend-shared';
|
|
18
|
+
import { guaranteeNonNullable, assertType, } from '@finos/legend-shared';
|
|
19
19
|
import { deserialize, serialize } from 'serializr';
|
|
20
20
|
import { V1_textModelSchema, V1_TEXT_ELEMENT_PROTOCOL_TYPE, } from './v1/transformation/pureProtocol/V1_DSLText_ProtocolHelper';
|
|
21
21
|
import { getText } from '../../../graphManager/DSLText_GraphManagerHelper';
|
|
@@ -26,9 +26,6 @@ export class DSLText_PureProtocolProcessorPlugin extends PureProtocolProcessorPl
|
|
|
26
26
|
constructor() {
|
|
27
27
|
super(packageJson.extensions.pureProtocolProcessorPlugin, packageJson.version);
|
|
28
28
|
}
|
|
29
|
-
install(pluginManager) {
|
|
30
|
-
pluginManager.registerPureProtocolProcessorPlugin(this);
|
|
31
|
-
}
|
|
32
29
|
V1_getExtraElementBuilders() {
|
|
33
30
|
return [
|
|
34
31
|
new V1_ElementBuilder({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSLText_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"DSLText_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/models/protocols/pure/DSLText_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC;AACtE,OAAO,EA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AS,YAAY,IAAI,EAAE;oBAC7B,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAC;oBAC/B,yBAAyB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;oBAC/C,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;oBAC/B,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,QAAQ,IAAI,EAAE,CAAC;oBACrD,QAAQ,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;oBACrC,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;oBAC/B,OAAO,QAAQ,CAAC;iBACjB;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
import type
|
|
18
|
-
import { V1_PackageableElement } from '@finos/legend-graph';
|
|
16
|
+
import { type Hashable } from '@finos/legend-shared';
|
|
17
|
+
import { type V1_PackageableElementVisitor, V1_PackageableElement } from '@finos/legend-graph';
|
|
19
18
|
export declare class V1_Text extends V1_PackageableElement implements Hashable {
|
|
20
19
|
type: string;
|
|
21
20
|
content: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_Text.d.ts","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/text/V1_Text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"V1_Text.d.ts","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/text/V1_Text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EACL,KAAK,4BAA4B,EACjC,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,OAAQ,SAAQ,qBAAsB,YAAW,QAAQ;IACpE,IAAI,EAAG,MAAM,CAAC;IACd,OAAO,EAAG,MAAM,CAAC;IAEjB,IAAa,QAAQ,IAAI,MAAM,CAO9B;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,4BAA4B,CAAC,CAAC,CAAC,GACvC,CAAC;CAGL"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { hashArray } from '@finos/legend-shared';
|
|
17
17
|
import { TEXT_HASH_STRUCTURE } from '../../../../../../DSLText_ModelUtils';
|
|
18
|
-
import { V1_PackageableElement } from '@finos/legend-graph';
|
|
18
|
+
import { V1_PackageableElement, } from '@finos/legend-graph';
|
|
19
19
|
export class V1_Text extends V1_PackageableElement {
|
|
20
20
|
type;
|
|
21
21
|
content;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_Text.js","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/text/V1_Text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"V1_Text.js","sourceRoot":"","sources":["../../../../../../../../src/models/protocols/pure/v1/model/packageableElements/text/V1_Text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAEL,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAO,OAAQ,SAAQ,qBAAqB;IAChD,IAAI,CAAU;IACd,OAAO,CAAU;IAEjB,IAAa,QAAQ;QACnB,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,IAAI;YACxB,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,OAAO;SACb,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAwC;QAExC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type
|
|
17
|
-
import { ElementEditorState } from '@finos/legend-studio';
|
|
16
|
+
import { type EditorStore, ElementEditorState } from '@finos/legend-studio';
|
|
18
17
|
import type { PackageableElement } from '@finos/legend-graph';
|
|
19
18
|
import { Text } from '../../models/metamodels/pure/model/packageableElements/text/Text';
|
|
20
19
|
export declare class TextEditorState extends ElementEditorState {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/TextEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"TextEditorState.d.ts","sourceRoot":"","sources":["../../../src/stores/studio/TextEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,KAAK,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,kEAAkE,CAAC;AAExF,qBAAa,eAAgB,SAAQ,kBAAkB;gBACzC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB;IASjE,IAAI,WAAW,IAAI,IAAI,CAMtB;IAED,SAAS,CACP,UAAU,EAAE,kBAAkB,EAC9B,WAAW,EAAE,WAAW,GACvB,kBAAkB;CAItB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextEditorState.js","sourceRoot":"","sources":["../../../src/stores/studio/TextEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"TextEditorState.js","sourceRoot":"","sources":["../../../src/stores/studio/TextEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAoB,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE5E,OAAO,EAAE,IAAI,EAAE,MAAM,kEAAkE,CAAC;AAExF,MAAM,OAAO,eAAgB,SAAQ,kBAAkB;IACrD,YAAY,WAAwB,EAAE,OAA2B;QAC/D,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAE5B,cAAc,CAAC,IAAI,EAAE;YACnB,WAAW,EAAE,QAAQ;YACrB,SAAS,EAAE,MAAM;SAClB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,WAAW;QACb,OAAO,aAAa,CAClB,IAAI,CAAC,OAAO,EACZ,IAAI,EACJ,iEAAiE,CAClE,CAAC;IACJ,CAAC;IAED,SAAS,CACP,UAA8B,EAC9B,WAAwB;QAExB,MAAM,eAAe,GAAG,IAAI,eAAe,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACrE,OAAO,eAAe,CAAC;IACzB,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-text",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Legend extension for Text DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
"build": "yarn clean && yarn build:sass && yarn build:tsc",
|
|
28
28
|
"build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js",
|
|
29
29
|
"build:tsc": "tsc --project ./tsconfig.build.json",
|
|
30
|
-
"clean": "
|
|
30
|
+
"clean": "npm-run-all clean:cache clean:lib",
|
|
31
|
+
"clean:cache": "rimraf \"build\"",
|
|
32
|
+
"clean:lib": "rimraf \"lib\"",
|
|
31
33
|
"dev": "npm-run-all --parallel dev:sass dev:tsc",
|
|
32
34
|
"dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
|
|
33
35
|
"dev:tsc": "tsc --watch --preserveWatchOutput",
|
|
@@ -38,28 +40,28 @@
|
|
|
38
40
|
"test:watch": "jest --watch"
|
|
39
41
|
},
|
|
40
42
|
"dependencies": {
|
|
41
|
-
"@finos/legend-application": "
|
|
42
|
-
"@finos/legend-art": "0.
|
|
43
|
-
"@finos/legend-graph": "0.
|
|
44
|
-
"@finos/legend-model-storage": "0.0.
|
|
45
|
-
"@finos/legend-shared": "
|
|
46
|
-
"@finos/legend-studio": "2.0
|
|
47
|
-
"@types/react": "17.0.
|
|
48
|
-
"mobx": "6.3.
|
|
49
|
-
"mobx-react-lite": "3.2.
|
|
50
|
-
"monaco-editor": "0.
|
|
43
|
+
"@finos/legend-application": "1.1.0",
|
|
44
|
+
"@finos/legend-art": "0.3.0",
|
|
45
|
+
"@finos/legend-graph": "1.0.0",
|
|
46
|
+
"@finos/legend-model-storage": "0.0.13",
|
|
47
|
+
"@finos/legend-shared": "1.1.0",
|
|
48
|
+
"@finos/legend-studio": "2.3.0",
|
|
49
|
+
"@types/react": "17.0.38",
|
|
50
|
+
"mobx": "6.3.12",
|
|
51
|
+
"mobx-react-lite": "3.2.3",
|
|
52
|
+
"monaco-editor": "0.31.1",
|
|
51
53
|
"react": "17.0.2",
|
|
52
54
|
"serializr": "2.0.5"
|
|
53
55
|
},
|
|
54
56
|
"devDependencies": {
|
|
55
|
-
"@finos/legend-dev-utils": "0.
|
|
57
|
+
"@finos/legend-dev-utils": "0.3.4",
|
|
56
58
|
"cross-env": "7.0.3",
|
|
57
|
-
"eslint": "8.
|
|
58
|
-
"jest": "27.
|
|
59
|
+
"eslint": "8.7.0",
|
|
60
|
+
"jest": "27.4.7",
|
|
59
61
|
"npm-run-all": "4.1.5",
|
|
60
62
|
"rimraf": "3.0.2",
|
|
61
|
-
"sass": "1.
|
|
62
|
-
"typescript": "4.5.
|
|
63
|
+
"sass": "1.49.0",
|
|
64
|
+
"typescript": "4.5.4"
|
|
63
65
|
},
|
|
64
66
|
"peerDependencies": {
|
|
65
67
|
"react": "^17.0.0"
|
|
@@ -15,19 +15,18 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../../package.json';
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
NewElementState,
|
|
18
|
+
import {
|
|
19
|
+
LegendStudioPlugin,
|
|
20
|
+
type NewElementFromStateCreator,
|
|
21
|
+
type EditorStore,
|
|
22
|
+
type ElementEditorState,
|
|
23
|
+
type ElementEditorStateCreator,
|
|
24
|
+
type ElementTypeGetter,
|
|
25
|
+
type ElementProjectExplorerDnDTypeGetter,
|
|
26
|
+
type ElementIconGetter,
|
|
27
|
+
type ElementEditorRenderer,
|
|
28
|
+
type DSL_LegendStudioPlugin_Extension,
|
|
29
|
+
type NewElementState,
|
|
31
30
|
} from '@finos/legend-studio';
|
|
32
31
|
import { FileIcon } from '@finos/legend-art';
|
|
33
32
|
import { TextEditorState } from '../../stores/studio/TextEditorState';
|
|
@@ -46,10 +45,6 @@ export class DSLText_LegendStudioPlugin
|
|
|
46
45
|
super(packageJson.extensions.studioPlugin, packageJson.version);
|
|
47
46
|
}
|
|
48
47
|
|
|
49
|
-
install(pluginManager: LegendStudioPluginManager): void {
|
|
50
|
-
pluginManager.registerStudioPlugin(this);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
48
|
getExtraSupportedElementTypes(): string[] {
|
|
54
49
|
return [TEXT_ELEMENT_TYPE];
|
|
55
50
|
}
|
|
@@ -17,21 +17,13 @@
|
|
|
17
17
|
import packageJson from '../../package.json';
|
|
18
18
|
import { Text } from '../models/metamodels/pure/model/packageableElements/text/Text';
|
|
19
19
|
import type { Clazz } from '@finos/legend-shared';
|
|
20
|
-
import type
|
|
21
|
-
GraphPluginManager,
|
|
22
|
-
PackageableElement,
|
|
23
|
-
} from '@finos/legend-graph';
|
|
24
|
-
import { PureGraphPlugin } from '@finos/legend-graph';
|
|
20
|
+
import { type PackageableElement, PureGraphPlugin } from '@finos/legend-graph';
|
|
25
21
|
|
|
26
22
|
export class DSLText_PureGraphPlugin extends PureGraphPlugin {
|
|
27
23
|
constructor() {
|
|
28
24
|
super(packageJson.extensions.pureGraphPlugin, packageJson.version);
|
|
29
25
|
}
|
|
30
26
|
|
|
31
|
-
install(pluginManager: GraphPluginManager): void {
|
|
32
|
-
pluginManager.registerPureGraphPlugin(this);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
27
|
override getExtraPureGraphExtensionClasses(): Clazz<PackageableElement>[] {
|
|
36
28
|
return [Text];
|
|
37
29
|
}
|
|
@@ -16,12 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../package.json';
|
|
18
18
|
import { Text } from '../models/metamodels/pure/model/packageableElements/text/Text';
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
PackageableElement,
|
|
22
|
-
PureGrammarElementLabeler,
|
|
19
|
+
import {
|
|
20
|
+
PureGraphManagerPlugin,
|
|
21
|
+
type PackageableElement,
|
|
22
|
+
type PureGrammarElementLabeler,
|
|
23
23
|
} from '@finos/legend-graph';
|
|
24
|
-
import { PureGraphManagerPlugin } from '@finos/legend-graph';
|
|
25
24
|
|
|
26
25
|
const PURE_GRAMMAR_TEXT_PARSER_NAME = 'Text';
|
|
27
26
|
const PURE_GRAMMAR_TEXT_ELEMENT_TYPE_LABEL = 'Text';
|
|
@@ -31,10 +30,6 @@ export class DSLText_PureGraphManagerPlugin extends PureGraphManagerPlugin {
|
|
|
31
30
|
super(packageJson.extensions.pureGraphManagerPlugin, packageJson.version);
|
|
32
31
|
}
|
|
33
32
|
|
|
34
|
-
install(pluginManager: GraphPluginManager): void {
|
|
35
|
-
pluginManager.registerPureGraphManagerPlugin(this);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
33
|
override getExtraPureGrammarParserNames(): string[] {
|
|
39
34
|
return [PURE_GRAMMAR_TEXT_PARSER_NAME];
|
|
40
35
|
}
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { observable, action, makeObservable, override } from 'mobx';
|
|
18
|
-
import { hashArray } from '@finos/legend-shared';
|
|
19
|
-
import type { Hashable } from '@finos/legend-shared';
|
|
18
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
|
20
19
|
import { TEXT_HASH_STRUCTURE } from '../../../../../DSLText_ModelUtils';
|
|
21
|
-
import
|
|
22
|
-
|
|
20
|
+
import {
|
|
21
|
+
type PackageableElementVisitor,
|
|
22
|
+
PackageableElement,
|
|
23
|
+
} from '@finos/legend-graph';
|
|
23
24
|
|
|
24
25
|
export enum TEXT_TYPE {
|
|
25
26
|
PLAIN_TEXT = 'plainText',
|
|
@@ -16,8 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../../../package.json';
|
|
18
18
|
import { V1_Text } from './v1/model/packageableElements/text/V1_Text';
|
|
19
|
-
import
|
|
20
|
-
|
|
19
|
+
import {
|
|
20
|
+
type PlainObject,
|
|
21
|
+
guaranteeNonNullable,
|
|
22
|
+
assertType,
|
|
23
|
+
} from '@finos/legend-shared';
|
|
21
24
|
import { deserialize, serialize } from 'serializr';
|
|
22
25
|
import {
|
|
23
26
|
V1_textModelSchema,
|
|
@@ -28,18 +31,15 @@ import {
|
|
|
28
31
|
Text,
|
|
29
32
|
TEXT_TYPE,
|
|
30
33
|
} from '../../metamodels/pure/model/packageableElements/text/Text';
|
|
31
|
-
import type {
|
|
32
|
-
GraphPluginManager,
|
|
33
|
-
PackageableElement,
|
|
34
|
-
V1_ElementProtocolClassifierPathGetter,
|
|
35
|
-
V1_ElementProtocolDeserializer,
|
|
36
|
-
V1_ElementProtocolSerializer,
|
|
37
|
-
V1_ElementTransformer,
|
|
38
|
-
V1_GraphBuilderContext,
|
|
39
|
-
V1_GraphTransformerContext,
|
|
40
|
-
V1_PackageableElement,
|
|
41
|
-
} from '@finos/legend-graph';
|
|
42
34
|
import {
|
|
35
|
+
type PackageableElement,
|
|
36
|
+
type V1_ElementProtocolClassifierPathGetter,
|
|
37
|
+
type V1_ElementProtocolDeserializer,
|
|
38
|
+
type V1_ElementProtocolSerializer,
|
|
39
|
+
type V1_ElementTransformer,
|
|
40
|
+
type V1_GraphBuilderContext,
|
|
41
|
+
type V1_GraphTransformerContext,
|
|
42
|
+
type V1_PackageableElement,
|
|
43
43
|
PureProtocolProcessorPlugin,
|
|
44
44
|
V1_ElementBuilder,
|
|
45
45
|
V1_initPackageableElement,
|
|
@@ -55,10 +55,6 @@ export class DSLText_PureProtocolProcessorPlugin extends PureProtocolProcessorPl
|
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
install(pluginManager: GraphPluginManager): void {
|
|
59
|
-
pluginManager.registerPureProtocolProcessorPlugin(this);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
58
|
override V1_getExtraElementBuilders(): V1_ElementBuilder<V1_PackageableElement>[] {
|
|
63
59
|
return [
|
|
64
60
|
new V1_ElementBuilder<V1_Text>({
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { hashArray } from '@finos/legend-shared';
|
|
18
|
-
import type { Hashable } from '@finos/legend-shared';
|
|
17
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
|
19
18
|
import { TEXT_HASH_STRUCTURE } from '../../../../../../DSLText_ModelUtils';
|
|
20
|
-
import
|
|
21
|
-
|
|
19
|
+
import {
|
|
20
|
+
type V1_PackageableElementVisitor,
|
|
21
|
+
V1_PackageableElement,
|
|
22
|
+
} from '@finos/legend-graph';
|
|
22
23
|
|
|
23
24
|
export class V1_Text extends V1_PackageableElement implements Hashable {
|
|
24
25
|
type!: string;
|
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { computed, action, makeObservable } from 'mobx';
|
|
18
|
-
import type { EditorStore } from '@finos/legend-studio';
|
|
19
18
|
import { guaranteeType } from '@finos/legend-shared';
|
|
20
|
-
import { ElementEditorState } from '@finos/legend-studio';
|
|
19
|
+
import { type EditorStore, ElementEditorState } from '@finos/legend-studio';
|
|
21
20
|
import type { PackageableElement } from '@finos/legend-graph';
|
|
22
21
|
import { Text } from '../../models/metamodels/pure/model/packageableElements/text/Text';
|
|
23
22
|
|