@finos/legend-extension-dsl-data-space 9.2.4 → 9.2.5

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 (62) hide show
  1. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts +2 -1
  2. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
  3. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +8 -0
  4. package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
  5. package/lib/components/DataSpaceDataAccess.d.ts.map +1 -1
  6. package/lib/components/DataSpaceDataAccess.js +70 -66
  7. package/lib/components/DataSpaceDataAccess.js.map +1 -1
  8. package/lib/components/DataSpaceDiagramViewer.js +1 -1
  9. package/lib/components/DataSpaceDiagramViewer.js.map +1 -1
  10. package/lib/components/DataSpaceModelsDocumentation.d.ts.map +1 -1
  11. package/lib/components/DataSpaceModelsDocumentation.js +337 -34
  12. package/lib/components/DataSpaceModelsDocumentation.js.map +1 -1
  13. package/lib/components/DataSpaceQuickStart.d.ts.map +1 -1
  14. package/lib/components/DataSpaceQuickStart.js +33 -12
  15. package/lib/components/DataSpaceQuickStart.js.map +1 -1
  16. package/lib/components/DataSpaceViewer.d.ts.map +1 -1
  17. package/lib/components/DataSpaceViewer.js +1 -1
  18. package/lib/components/DataSpaceViewer.js.map +1 -1
  19. package/lib/components/DataSpaceWiki.d.ts.map +1 -1
  20. package/lib/components/DataSpaceWiki.js +0 -1
  21. package/lib/components/DataSpaceWiki.js.map +1 -1
  22. package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +45 -9
  23. package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -1
  24. package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +55 -12
  25. package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -1
  26. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
  27. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +51 -8
  28. package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
  29. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +15 -3
  30. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +1 -1
  31. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +16 -2
  32. package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -1
  33. package/lib/index.css +2 -2
  34. package/lib/index.css.map +1 -1
  35. package/lib/package.json +7 -10
  36. package/lib/stores/DataSpaceModelsDocumentationState.d.ts +93 -0
  37. package/lib/stores/DataSpaceModelsDocumentationState.d.ts.map +1 -0
  38. package/lib/stores/DataSpaceModelsDocumentationState.js +396 -0
  39. package/lib/stores/DataSpaceModelsDocumentationState.js.map +1 -0
  40. package/lib/stores/DataSpaceViewerState.d.ts +5 -0
  41. package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
  42. package/lib/stores/DataSpaceViewerState.js +6 -1
  43. package/lib/stores/DataSpaceViewerState.js.map +1 -1
  44. package/package.json +18 -21
  45. package/src/components/DSL_DataSpace_LegendApplicationPlugin.ts +10 -0
  46. package/src/components/DataSpaceDataAccess.tsx +101 -96
  47. package/src/components/DataSpaceDiagramViewer.tsx +1 -1
  48. package/src/components/DataSpaceModelsDocumentation.tsx +1043 -46
  49. package/src/components/DataSpaceQuickStart.tsx +69 -15
  50. package/src/components/DataSpaceViewer.tsx +2 -4
  51. package/src/components/DataSpaceWiki.tsx +0 -2
  52. package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +71 -19
  53. package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +97 -29
  54. package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +22 -3
  55. package/src/stores/DataSpaceModelsDocumentationState.ts +588 -0
  56. package/src/stores/DataSpaceViewerState.ts +14 -0
  57. package/tsconfig.json +1 -1
  58. package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.d.ts +0 -57
  59. package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.d.ts.map +0 -1
  60. package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.js +0 -209
  61. package/lib/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.js.map +0 -1
  62. package/src/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.ts +0 -313
@@ -1 +0,0 @@
1
- {"version":3,"file":"HACKY__DataSpaceUsageShowcase.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,8BAAsB,yCAAyC;CAAG;AAElE,8BAAsB,8CAA8C;IAClE,QAAQ,CAAC,YAAY,EAAG,yCAAyC,CAAC;gBAEtD,YAAY,EAAE,yCAAyC;CAGpE;AAED,KAAK,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AAExD,qBAAa,4CAA6C,SAAQ,yCAAyC;IACzG,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAM;IAChC,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,CAAM;gBAEvB,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE;CAKpD;AAED,cAAM,0CAA0C;IAC9C,QAAQ,CAAC,IAAI,SAAU;IACvB,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,UAAU,EAAE,CAAM;gBAGvC,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,YAAY,EAAE,UAAU,EAAE;CAM7B;AAsBD,qBAAa,iDAAkD,SAAQ,8CAA8C;IACnH,QAAQ,CAAC,OAAO,EAAE,0CAA0C,EAAE,CAAM;gBAExD,OAAO,EAAE,0CAA0C,EAAE;CASlE;AAED,qBAAa,6BAA6B;IACxC,QAAQ,CAAC,IAAI,SAAU;IACvB,QAAQ,CAAC,KAAK,EAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,KAAK,EAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,iBAAiB,EAAG,8CAA8C,CAAC;IAE5E,SAAS,UAAS;IAClB,qBAAqB,UAAQ;IAC7B,gBAAgB,UAAS;gBAGvB,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,8CAA8C;IAiBnE,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIhC,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI5C,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;CAGxC;AAED,eAAO,MAAM,gBAAgB,+BA6D5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BAkE5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BA2C5B,CAAC"}
@@ -1,209 +0,0 @@
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 { Randomizer, uuid } from '@finos/legend-shared';
17
- import { action, makeObservable, observable } from 'mobx';
18
- export class HACKY__DataSpaceUsageShowcaseSampleOutput {
19
- }
20
- export class HACKY__DataSpaceUsageShowcaseOutputDescription {
21
- sampleOutput;
22
- constructor(sampleOutput) {
23
- this.sampleOutput = sampleOutput;
24
- }
25
- }
26
- export class HACKY__DataSpaceUsageShowcaseTDSSampleOutput extends HACKY__DataSpaceUsageShowcaseSampleOutput {
27
- headers = [];
28
- rows = [];
29
- constructor(headers, rows) {
30
- super();
31
- this.headers = headers;
32
- this.rows = rows;
33
- }
34
- }
35
- class HACKY__DataSpaceUsageShowcaseTDSColumnInfo {
36
- uuid = uuid();
37
- name;
38
- description;
39
- sampleValues = [];
40
- constructor(name, description, sampleValues) {
41
- this.name = name;
42
- this.description = description;
43
- this.sampleValues = sampleValues;
44
- }
45
- }
46
- const generateTDSSampleOutput = (columns, rowCount = 10) => {
47
- const randomizer = new Randomizer();
48
- const data = [];
49
- for (let i = 0; i < rowCount; ++i) {
50
- const rowData = [];
51
- columns.forEach((column) => {
52
- if (column.sampleValues.length) {
53
- rowData.push(randomizer.getRandomItemInCollection(column.sampleValues));
54
- }
55
- else {
56
- rowData.push(undefined);
57
- }
58
- });
59
- data.push(rowData);
60
- }
61
- return data;
62
- };
63
- export class HACKY__DataSpaceUsageShowcaseTDSOutputDescription extends HACKY__DataSpaceUsageShowcaseOutputDescription {
64
- columns = [];
65
- constructor(columns) {
66
- super(new HACKY__DataSpaceUsageShowcaseTDSSampleOutput(columns.map((col) => col.name), generateTDSSampleOutput(columns)));
67
- this.columns = columns;
68
- }
69
- }
70
- export class HACKY__DataSpaceUsageShowcase {
71
- uuid = uuid();
72
- title;
73
- description;
74
- query;
75
- outputDescription;
76
- showQuery = false;
77
- showOutputDescription = true;
78
- showSampleOutput = false;
79
- constructor(title, description, query, outputDescription) {
80
- makeObservable(this, {
81
- showQuery: observable,
82
- showOutputDescription: observable,
83
- showSampleOutput: observable,
84
- setShowQuery: action,
85
- setShowOutputDescription: action,
86
- setShowSampleOutput: action,
87
- });
88
- this.title = title;
89
- this.description = description;
90
- this.query = query;
91
- this.outputDescription = outputDescription;
92
- }
93
- setShowQuery(val) {
94
- this.showQuery = val;
95
- }
96
- setShowOutputDescription(val) {
97
- this.showOutputDescription = val;
98
- }
99
- setShowSampleOutput(val) {
100
- this.showSampleOutput = val;
101
- }
102
- }
103
- export const HACKY__SHOWCASE1 = new HACKY__DataSpaceUsageShowcase('Getting all COVID cases info', `## Illa figens scelerum operum tonitribus cumque ego
104
-
105
- Lorem markdownum meritis quoque narravere ea fallere caelumque enim magnoque! Et
106
- animam trabeati Iuppiter quos ossa erat coniuge tu secrevit glaebas viam vulgus,
107
- adsere eripitur saepe; eadem.
108
-
109
- ## Genualia quae
110
-
111
- Troezenius sceptri respondere curasque et quidem epulae oculos inornatos letique
112
- servaverat armi facta. Ille sentirent! Excipit Echecli [vos
113
- optatis](http://ante.io/quid.aspx): quo stipite dixit in supremis nec fatetur
114
- sentit; illa ultor. Multa abest terras facundis utque, omnique silvamque nam
115
- quamvis iners.
116
-
117
- real_basic = exbibyte - isoText / zebibyteLogicNorthbridge -
118
- ripcordingHeatCard;
119
- ppl(ppgaNosql(grayscaleFile(vpnBsod, file, balancing)), pop_cross_error(97 +
120
- cmos_mac), w);
121
- rich.fileClientTablet = impact.method_pharming(xml, w_external +
122
- softwareGpsDirect);
123
- search = -1;
124
-
125
- ## Trabes cepit mortalia`, `|domain::COVIDData.all()->project(
126
- [
127
- x|$x.cases,
128
- x|$x.caseType,
129
- x|$x.fips,
130
- x|$x.date
131
- ],
132
- [
133
- 'Cases',
134
- 'Case Type',
135
- 'Fips',
136
- 'Date'
137
- ]
138
- )`, new HACKY__DataSpaceUsageShowcaseTDSOutputDescription([
139
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('Cases', 'The number of cases', [123, 1416, 12453, 6234]),
140
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('Case Type', 'Type of the reported case: e.g. Active, Confirmed', ['Active', 'Confirmed']),
141
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('FIPS', 'The FIPS code', [1, 3, 5, 6, 7]),
142
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('Date', 'The date of case report', ['2020-10-10', '2023-10-15', '2022-03-03']),
143
- ]));
144
- export const HACKY__SHOWCASE2 = new HACKY__DataSpaceUsageShowcase('Getting COVID cases info for New York (FIPS: 20)', `## Citharam laudibus et mensas Numitorque eademque
145
-
146
- Lorem markdownum ferventia euntem adsensit tenetque fateri dirum intrasse
147
- [Naupliades](http://promisistis.net/): quod. Aequali somni vulnera frontem tamen
148
- circumdata quidem coniunctior rerum omnis reddite teneri Maiaque manebat
149
- corpora, Acmon caputque demptos.
150
-
151
- ## E tepidisque
152
-
153
- Fetus Sperchios, dumque bono spissus media ora desilit ingenti, lupo forsitan
154
- *se*. Extra et una **iuventus pronus** crinis nodum lucis casus quae pronus et.
155
-
156
- > **Latos fuit** bracchia contendere thalamos inmiti securibus Aeginam campus
157
- > maestaeque urbis, sic nobis quae colebat, manu. Nec fecit descendat dare
158
- > minus; a umbras iam inpetus **neci**. Quid talia, et pulsis, easdem, clamore,
159
- > putetis. AI inultam loqui **antiquo Liberfemineae** damna; nostra riget
160
- > liberat rogatus nisi recentibus. Putria turbineo terram virilem, est quoque
161
- > *esse Sabina* qui profatur rauca, hunc.
162
- `, `|domain::COVIDData.all()->filter(
163
- x|$x.demographics.fips == '20'
164
- )->project(
165
- [
166
- x|$x.cases,
167
- x|$x.caseType,
168
- x|$x.fips,
169
- x|$x.date,
170
- x|$x.demographics.state
171
- ],
172
- [
173
- 'Cases',
174
- 'Case Type',
175
- 'Fips',
176
- 'Date',
177
- 'Demographics/State'
178
- ]
179
- )`, new HACKY__DataSpaceUsageShowcaseTDSOutputDescription([
180
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('Cases', 'The number of cases', [123, 1416, 12453, 6234]),
181
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('Case Type', 'Type of the reported case: e.g. Active, Confirmed', ['Active', 'Confirmed']),
182
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('FIPS', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ante in nibh mauris cursus mattis. Placerat vestibulum lectus mauris ultrices eros. Dignissim diam quis enim lobortis scelerisque. Quam id leo in vitae turpis. Lobortis feugiat vivamus at augue eget arcu dictum varius duis. Tellus mauris a diam maecenas sed enim ut sem viverra. Nec feugiat nisl pretium fusce id. A iaculis at erat pellentesque adipiscing commodo. Turpis massa tincidunt dui ut ornare lectus sit. Nascetur ridiculus mus mauris vitae ultricies leo integer malesuada. Nisi lacus sed viverra tellus in hac habitasse platea dictumst. Commodo viverra maecenas accumsan lacus vel facilisis volutpat.', [1, 3, 5, 6, 7]),
183
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('Date', 'The date of case report', ['2020-10-10', '2023-10-15', '2022-03-03']),
184
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('State', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Imperdiet proin fermentum leo vel orci porta. Et tortor consequat id porta nibh venenatis cras. Ut etiam sit amet nisl purus in mollis. Iaculis eu non diam phasellus vestibulum lorem sed risus. Nisl vel pretium lectus quam id leo in vitae. Tellus molestie nunc non blandit massa enim nec dui. Lorem donec massa sapien faucibus et molestie ac. Pharetra convallis posuere morbi leo urna molestie at. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque elit ullamcorper. Non blandit massa enim nec dui nunc mattis. Scelerisque eleifend donec pretium vulputate sapien. In cursus turpis massa tincidunt dui ut ornare lectus sit. Turpis in eu mi bibendum neque. Congue mauris rhoncus aenean vel elit scelerisque mauris pellentesque pulvinar. Elit ullamcorper dignissim cras tincidunt lobortis feugiat. Pellentesque dignissim enim sit amet. Morbi tristique senectus et netus et malesuada fames ac. At tellus at urna condimentum mattis pellentesque id', ['New York', 'Minesota', 'New Jersey', 'California']),
185
- ]));
186
- export const HACKY__SHOWCASE3 = new HACKY__DataSpaceUsageShowcase('Getting COVID cases for today', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', `|domain::COVIDData.all()->filter(
187
- x|$x.date ==
188
- meta::pure::functions::date::today()
189
- )->project(
190
- [
191
- x|$x.cases,
192
- x|$x.caseType,
193
- x|$x.date,
194
- x|$x.demographics.state
195
- ],
196
- [
197
- 'Cases',
198
- 'Case Type',
199
- 'Date',
200
- 'Fips',
201
- 'Demographics/State'
202
- ]
203
- )`, new HACKY__DataSpaceUsageShowcaseTDSOutputDescription([
204
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('Cases', 'The number of cases', [123, 1416, 12453, 6234]),
205
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('Case Type', 'Type of the reported case: e.g. Active, Confirmed', ['Active', 'Confirmed']),
206
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('Date', 'The date of case report', ['2020-10-10', '2023-10-15', '2022-03-03']),
207
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo('State', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Imperdiet proin fermentum leo vel orci porta. Et tortor consequat id porta nibh venenatis cras. Ut etiam sit amet nisl purus in mollis. Iaculis eu non diam phasellus vestibulum lorem sed risus. Nisl vel pretium lectus quam id leo in vitae. Tellus molestie nunc non blandit massa enim nec dui. Lorem donec massa sapien faucibus et molestie ac. Pharetra convallis posuere morbi leo urna molestie at. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque elit ullamcorper. Non blandit massa enim nec dui nunc mattis. Scelerisque eleifend donec pretium vulputate sapien. In cursus turpis massa tincidunt dui ut ornare lectus sit. Turpis in eu mi bibendum neque. Congue mauris rhoncus aenean vel elit scelerisque mauris pellentesque pulvinar. Elit ullamcorper dignissim cras tincidunt lobortis feugiat. Pellentesque dignissim enim sit amet. Morbi tristique senectus et netus et malesuada fames ac. At tellus at urna condimentum mattis pellentesque id', ['New York', 'Minesota', 'New Jersey', 'California']),
208
- ]));
209
- //# sourceMappingURL=HACKY__DataSpaceUsageShowcase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HACKY__DataSpaceUsageShowcase.js","sourceRoot":"","sources":["../../../../src/graphManager/action/analytics/HACKY__DataSpaceUsageShowcase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAgB,yCAAyC;CAAG;AAElE,MAAM,OAAgB,8CAA8C;IACzD,YAAY,CAA6C;IAElE,YAAY,YAAuD;QACjE,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;CACF;AAID,MAAM,OAAO,4CAA6C,SAAQ,yCAAyC;IAChG,OAAO,GAAa,EAAE,CAAC;IACvB,IAAI,GAAmB,EAAE,CAAC;IAEnC,YAAY,OAAiB,EAAE,IAAoB;QACjD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,MAAM,0CAA0C;IACrC,IAAI,GAAG,IAAI,EAAE,CAAC;IACd,IAAI,CAAU;IACd,WAAW,CAAsB;IACjC,YAAY,GAAiB,EAA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,CACzB;IACD,IAAI,0CAA0C,CAC5C,WAAW,EACX,mDAAmD,EACnD,CAAC,QAAQ,EAAE,WAAW,CAAC,CACxB;IACD,IAAI,0CAA0C,CAC5C,MAAM,EACN,yBAAyB,EACzB,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAC3C;IACD,IAAI,0CAA0C,CAC5C,OAAO,EACP,2jCAA2jC,EAC3jC,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,CACrD;CACF,CAAC,CACH,CAAC"}
@@ -1,313 +0,0 @@
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
-
17
- import { Randomizer, uuid } from '@finos/legend-shared';
18
- import { action, makeObservable, observable } from 'mobx';
19
-
20
- export abstract class HACKY__DataSpaceUsageShowcaseSampleOutput {}
21
-
22
- export abstract class HACKY__DataSpaceUsageShowcaseOutputDescription {
23
- readonly sampleOutput!: HACKY__DataSpaceUsageShowcaseSampleOutput;
24
-
25
- constructor(sampleOutput: HACKY__DataSpaceUsageShowcaseSampleOutput) {
26
- this.sampleOutput = sampleOutput;
27
- }
28
- }
29
-
30
- type SampleData = boolean | string | number | undefined;
31
-
32
- export class HACKY__DataSpaceUsageShowcaseTDSSampleOutput extends HACKY__DataSpaceUsageShowcaseSampleOutput {
33
- readonly headers: string[] = [];
34
- readonly rows: SampleData[][] = [];
35
-
36
- constructor(headers: string[], rows: SampleData[][]) {
37
- super();
38
- this.headers = headers;
39
- this.rows = rows;
40
- }
41
- }
42
-
43
- class HACKY__DataSpaceUsageShowcaseTDSColumnInfo {
44
- readonly uuid = uuid();
45
- readonly name!: string;
46
- readonly description?: string | undefined;
47
- readonly sampleValues: SampleData[] = [];
48
-
49
- constructor(
50
- name: string,
51
- description: string | undefined,
52
- sampleValues: SampleData[],
53
- ) {
54
- this.name = name;
55
- this.description = description;
56
- this.sampleValues = sampleValues;
57
- }
58
- }
59
-
60
- const generateTDSSampleOutput = (
61
- columns: HACKY__DataSpaceUsageShowcaseTDSColumnInfo[],
62
- rowCount = 10,
63
- ): SampleData[][] => {
64
- const randomizer = new Randomizer();
65
- const data: SampleData[][] = [];
66
- for (let i = 0; i < rowCount; ++i) {
67
- const rowData: SampleData[] = [];
68
- columns.forEach((column) => {
69
- if (column.sampleValues.length) {
70
- rowData.push(randomizer.getRandomItemInCollection(column.sampleValues));
71
- } else {
72
- rowData.push(undefined);
73
- }
74
- });
75
- data.push(rowData);
76
- }
77
- return data;
78
- };
79
-
80
- export class HACKY__DataSpaceUsageShowcaseTDSOutputDescription extends HACKY__DataSpaceUsageShowcaseOutputDescription {
81
- readonly columns: HACKY__DataSpaceUsageShowcaseTDSColumnInfo[] = [];
82
-
83
- constructor(columns: HACKY__DataSpaceUsageShowcaseTDSColumnInfo[]) {
84
- super(
85
- new HACKY__DataSpaceUsageShowcaseTDSSampleOutput(
86
- columns.map((col) => col.name),
87
- generateTDSSampleOutput(columns),
88
- ),
89
- );
90
- this.columns = columns;
91
- }
92
- }
93
-
94
- export class HACKY__DataSpaceUsageShowcase {
95
- readonly uuid = uuid();
96
- readonly title!: string;
97
- readonly description?: string | undefined;
98
- readonly query!: string;
99
- readonly outputDescription!: HACKY__DataSpaceUsageShowcaseOutputDescription;
100
-
101
- showQuery = false;
102
- showOutputDescription = true;
103
- showSampleOutput = false;
104
-
105
- constructor(
106
- title: string,
107
- description: string | undefined,
108
- query: string,
109
- outputDescription: HACKY__DataSpaceUsageShowcaseOutputDescription,
110
- ) {
111
- makeObservable(this, {
112
- showQuery: observable,
113
- showOutputDescription: observable,
114
- showSampleOutput: observable,
115
- setShowQuery: action,
116
- setShowOutputDescription: action,
117
- setShowSampleOutput: action,
118
- });
119
-
120
- this.title = title;
121
- this.description = description;
122
- this.query = query;
123
- this.outputDescription = outputDescription;
124
- }
125
-
126
- setShowQuery(val: boolean): void {
127
- this.showQuery = val;
128
- }
129
-
130
- setShowOutputDescription(val: boolean): void {
131
- this.showOutputDescription = val;
132
- }
133
-
134
- setShowSampleOutput(val: boolean): void {
135
- this.showSampleOutput = val;
136
- }
137
- }
138
-
139
- export const HACKY__SHOWCASE1 = new HACKY__DataSpaceUsageShowcase(
140
- 'Getting all COVID cases info',
141
- `## Illa figens scelerum operum tonitribus cumque ego
142
-
143
- Lorem markdownum meritis quoque narravere ea fallere caelumque enim magnoque! Et
144
- animam trabeati Iuppiter quos ossa erat coniuge tu secrevit glaebas viam vulgus,
145
- adsere eripitur saepe; eadem.
146
-
147
- ## Genualia quae
148
-
149
- Troezenius sceptri respondere curasque et quidem epulae oculos inornatos letique
150
- servaverat armi facta. Ille sentirent! Excipit Echecli [vos
151
- optatis](http://ante.io/quid.aspx): quo stipite dixit in supremis nec fatetur
152
- sentit; illa ultor. Multa abest terras facundis utque, omnique silvamque nam
153
- quamvis iners.
154
-
155
- real_basic = exbibyte - isoText / zebibyteLogicNorthbridge -
156
- ripcordingHeatCard;
157
- ppl(ppgaNosql(grayscaleFile(vpnBsod, file, balancing)), pop_cross_error(97 +
158
- cmos_mac), w);
159
- rich.fileClientTablet = impact.method_pharming(xml, w_external +
160
- softwareGpsDirect);
161
- search = -1;
162
-
163
- ## Trabes cepit mortalia`,
164
- `|domain::COVIDData.all()->project(
165
- [
166
- x|$x.cases,
167
- x|$x.caseType,
168
- x|$x.fips,
169
- x|$x.date
170
- ],
171
- [
172
- 'Cases',
173
- 'Case Type',
174
- 'Fips',
175
- 'Date'
176
- ]
177
- )`,
178
- new HACKY__DataSpaceUsageShowcaseTDSOutputDescription([
179
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
180
- 'Cases',
181
- 'The number of cases',
182
- [123, 1416, 12453, 6234],
183
- ),
184
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
185
- 'Case Type',
186
- 'Type of the reported case: e.g. Active, Confirmed',
187
- ['Active', 'Confirmed'],
188
- ),
189
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
190
- 'FIPS',
191
- 'The FIPS code',
192
- [1, 3, 5, 6, 7],
193
- ),
194
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
195
- 'Date',
196
- 'The date of case report',
197
- ['2020-10-10', '2023-10-15', '2022-03-03'],
198
- ),
199
- ]),
200
- );
201
-
202
- export const HACKY__SHOWCASE2 = new HACKY__DataSpaceUsageShowcase(
203
- 'Getting COVID cases info for New York (FIPS: 20)',
204
- `## Citharam laudibus et mensas Numitorque eademque
205
-
206
- Lorem markdownum ferventia euntem adsensit tenetque fateri dirum intrasse
207
- [Naupliades](http://promisistis.net/): quod. Aequali somni vulnera frontem tamen
208
- circumdata quidem coniunctior rerum omnis reddite teneri Maiaque manebat
209
- corpora, Acmon caputque demptos.
210
-
211
- ## E tepidisque
212
-
213
- Fetus Sperchios, dumque bono spissus media ora desilit ingenti, lupo forsitan
214
- *se*. Extra et una **iuventus pronus** crinis nodum lucis casus quae pronus et.
215
-
216
- > **Latos fuit** bracchia contendere thalamos inmiti securibus Aeginam campus
217
- > maestaeque urbis, sic nobis quae colebat, manu. Nec fecit descendat dare
218
- > minus; a umbras iam inpetus **neci**. Quid talia, et pulsis, easdem, clamore,
219
- > putetis. AI inultam loqui **antiquo Liberfemineae** damna; nostra riget
220
- > liberat rogatus nisi recentibus. Putria turbineo terram virilem, est quoque
221
- > *esse Sabina* qui profatur rauca, hunc.
222
- `,
223
- `|domain::COVIDData.all()->filter(
224
- x|$x.demographics.fips == '20'
225
- )->project(
226
- [
227
- x|$x.cases,
228
- x|$x.caseType,
229
- x|$x.fips,
230
- x|$x.date,
231
- x|$x.demographics.state
232
- ],
233
- [
234
- 'Cases',
235
- 'Case Type',
236
- 'Fips',
237
- 'Date',
238
- 'Demographics/State'
239
- ]
240
- )`,
241
- new HACKY__DataSpaceUsageShowcaseTDSOutputDescription([
242
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
243
- 'Cases',
244
- 'The number of cases',
245
- [123, 1416, 12453, 6234],
246
- ),
247
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
248
- 'Case Type',
249
- 'Type of the reported case: e.g. Active, Confirmed',
250
- ['Active', 'Confirmed'],
251
- ),
252
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
253
- 'FIPS',
254
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ante in nibh mauris cursus mattis. Placerat vestibulum lectus mauris ultrices eros. Dignissim diam quis enim lobortis scelerisque. Quam id leo in vitae turpis. Lobortis feugiat vivamus at augue eget arcu dictum varius duis. Tellus mauris a diam maecenas sed enim ut sem viverra. Nec feugiat nisl pretium fusce id. A iaculis at erat pellentesque adipiscing commodo. Turpis massa tincidunt dui ut ornare lectus sit. Nascetur ridiculus mus mauris vitae ultricies leo integer malesuada. Nisi lacus sed viverra tellus in hac habitasse platea dictumst. Commodo viverra maecenas accumsan lacus vel facilisis volutpat.',
255
- [1, 3, 5, 6, 7],
256
- ),
257
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
258
- 'Date',
259
- 'The date of case report',
260
- ['2020-10-10', '2023-10-15', '2022-03-03'],
261
- ),
262
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
263
- 'State',
264
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Imperdiet proin fermentum leo vel orci porta. Et tortor consequat id porta nibh venenatis cras. Ut etiam sit amet nisl purus in mollis. Iaculis eu non diam phasellus vestibulum lorem sed risus. Nisl vel pretium lectus quam id leo in vitae. Tellus molestie nunc non blandit massa enim nec dui. Lorem donec massa sapien faucibus et molestie ac. Pharetra convallis posuere morbi leo urna molestie at. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque elit ullamcorper. Non blandit massa enim nec dui nunc mattis. Scelerisque eleifend donec pretium vulputate sapien. In cursus turpis massa tincidunt dui ut ornare lectus sit. Turpis in eu mi bibendum neque. Congue mauris rhoncus aenean vel elit scelerisque mauris pellentesque pulvinar. Elit ullamcorper dignissim cras tincidunt lobortis feugiat. Pellentesque dignissim enim sit amet. Morbi tristique senectus et netus et malesuada fames ac. At tellus at urna condimentum mattis pellentesque id',
265
- ['New York', 'Minesota', 'New Jersey', 'California'],
266
- ),
267
- ]),
268
- );
269
-
270
- export const HACKY__SHOWCASE3 = new HACKY__DataSpaceUsageShowcase(
271
- 'Getting COVID cases for today',
272
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
273
- `|domain::COVIDData.all()->filter(
274
- x|$x.date ==
275
- meta::pure::functions::date::today()
276
- )->project(
277
- [
278
- x|$x.cases,
279
- x|$x.caseType,
280
- x|$x.date,
281
- x|$x.demographics.state
282
- ],
283
- [
284
- 'Cases',
285
- 'Case Type',
286
- 'Date',
287
- 'Fips',
288
- 'Demographics/State'
289
- ]
290
- )`,
291
- new HACKY__DataSpaceUsageShowcaseTDSOutputDescription([
292
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
293
- 'Cases',
294
- 'The number of cases',
295
- [123, 1416, 12453, 6234],
296
- ),
297
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
298
- 'Case Type',
299
- 'Type of the reported case: e.g. Active, Confirmed',
300
- ['Active', 'Confirmed'],
301
- ),
302
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
303
- 'Date',
304
- 'The date of case report',
305
- ['2020-10-10', '2023-10-15', '2022-03-03'],
306
- ),
307
- new HACKY__DataSpaceUsageShowcaseTDSColumnInfo(
308
- 'State',
309
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Imperdiet proin fermentum leo vel orci porta. Et tortor consequat id porta nibh venenatis cras. Ut etiam sit amet nisl purus in mollis. Iaculis eu non diam phasellus vestibulum lorem sed risus. Nisl vel pretium lectus quam id leo in vitae. Tellus molestie nunc non blandit massa enim nec dui. Lorem donec massa sapien faucibus et molestie ac. Pharetra convallis posuere morbi leo urna molestie at. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque elit ullamcorper. Non blandit massa enim nec dui nunc mattis. Scelerisque eleifend donec pretium vulputate sapien. In cursus turpis massa tincidunt dui ut ornare lectus sit. Turpis in eu mi bibendum neque. Congue mauris rhoncus aenean vel elit scelerisque mauris pellentesque pulvinar. Elit ullamcorper dignissim cras tincidunt lobortis feugiat. Pellentesque dignissim enim sit amet. Morbi tristique senectus et netus et malesuada fames ac. At tellus at urna condimentum mattis pellentesque id',
310
- ['New York', 'Minesota', 'New Jersey', 'California'],
311
- ),
312
- ]),
313
- );