@hpcc-js/codemirror 2.58.0 → 2.59.3
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/README.md +27 -1
- package/dist/index.es6.js +230 -210
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +233 -213
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +8 -24
- package/src/__package__.ts +2 -2
- package/types/__package__.d.ts +2 -2
- package/types-3.4/__package__.d.ts +2 -2
package/README.md
CHANGED
|
@@ -31,4 +31,30 @@ This package is part of the mono repository "@hpcc-js" (aka Visualization Framew
|
|
|
31
31
|
</script>
|
|
32
32
|
</body>
|
|
33
33
|
</html>
|
|
34
|
-
```
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
<ClientOnly>
|
|
37
|
+
<hpcc-vitepress style="width:100%;height:600px">
|
|
38
|
+
<div id="target" style="height:600px">
|
|
39
|
+
</div>
|
|
40
|
+
<script type="module">
|
|
41
|
+
import { ECLEditor } from "@hpcc-js/codemirror";
|
|
42
|
+
|
|
43
|
+
const code = `\
|
|
44
|
+
MySample := SAMPLE(Person,10,1) // get every 10th record
|
|
45
|
+
SomeFile := DATASET([{'A'},{'B'},{'C'},{'D'},{'E'},
|
|
46
|
+
{'F'},{'G'},{'H'},{'I'},{'J'},
|
|
47
|
+
{'K'},{'L'},{'M'},{'N'},{'O'},
|
|
48
|
+
{'P'},{'Q'},{'R'},{'S'},{'T'},
|
|
49
|
+
{'U'},{'V'},{'W'},{'X'},{'Y'}],
|
|
50
|
+
{STRING1 Letter});
|
|
51
|
+
Set1 := SAMPLE(SomeFile,5,1); // returns A, F, K, P, U`;
|
|
52
|
+
|
|
53
|
+
new ECLEditor()
|
|
54
|
+
.ecl(code)
|
|
55
|
+
.target("target")
|
|
56
|
+
.render()
|
|
57
|
+
;
|
|
58
|
+
</script>
|
|
59
|
+
</hpcc-vitepress>
|
|
60
|
+
</ClientOnly>
|