@gramlot/gramlot 0.4.0 → 0.5.0
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/assets/icons/align-center.svg +4 -0
- package/assets/icons/align-justify.svg +4 -0
- package/assets/icons/align-left.svg +4 -0
- package/assets/icons/align-right.svg +4 -0
- package/assets/icons/bold.svg +4 -0
- package/assets/icons/eraser.svg +4 -0
- package/assets/icons/horizontal-rule.svg +4 -0
- package/assets/icons/image.svg +4 -0
- package/assets/icons/indent.svg +4 -0
- package/assets/icons/italic.svg +4 -0
- package/assets/icons/list-bulleted.svg +4 -0
- package/assets/icons/list-numbered.svg +4 -0
- package/assets/icons/outdent.svg +4 -0
- package/assets/icons/paragraph.svg +4 -0
- package/assets/icons/select-all.svg +4 -0
- package/assets/icons/strikethrough.svg +4 -0
- package/assets/icons/underline.svg +4 -0
- package/dist/components/charts/__init__.py +1 -1
- package/dist/components/charts/assets/index.js +1 -1
- package/dist/components/charts/grammar.json +2032 -72
- package/dist/components/editors/__init__.py +1 -1
- package/dist/components/editors/assets/collection.js +1 -1
- package/dist/components/editors/assets/index.js +1 -1
- package/dist/components/editors/assets/libraries/codemirror.js +30 -30
- package/dist/components/editors/assets/libraries/jodit.js +452 -448
- package/dist/components/editors/commands.json +113 -1
- package/dist/components/editors/grammar.json +6 -4
- package/dist/components/grid/__init__.py +1 -1
- package/dist/components/grid/assets/index.js +1 -1
- package/dist/components/grid/grammar.json +61 -0
- package/dist/components/inputs/__init__.py +1 -1
- package/dist/components/inputs/assets/index.js +1 -1
- package/dist/components/inputs/grammar.json +35 -0
- package/dist/components/layout/__init__.py +1 -1
- package/dist/components/layout/assets/collection.js +1 -0
- package/dist/components/layout/assets/index.js +1 -1
- package/dist/components/layout/grammar.json +364 -0
- package/dist/components/tree/__init__.py +1 -1
- package/dist/components/tree/assets/index.js +1 -1
- package/dist/components/tree/grammar.json +35 -0
- package/dist/gramlot.js +1165 -420
- package/dist/gramlot.min.js +125 -100
- package/dist/libraries.json +5 -4
- package/dist/standard-collections.js +1 -1
- package/dist/standard-grammar.js +1 -1
- package/package.json +4 -2
- package/src/binding/providers.js +2 -1
- package/src/binding/remote.js +41 -6
- package/src/binding/runtime.js +24 -0
- package/src/builder/gramlot-builder.js +52 -18
- package/src/builder/source.js +66 -12
- package/src/chat.d.ts +1 -0
- package/src/chat.js +13 -1
- package/src/components/chart-bar3d-options.js +0 -1
- package/src/components/chart-boxplot-options.js +1 -1
- package/src/components/chart-candlestick-options.js +1 -1
- package/src/components/chart-engines/echarts-options.js +6 -5
- package/src/components/chart-engines/echarts.js +27 -10
- package/src/components/chart-engines/plotly-map.js +1 -1
- package/src/components/chart-engines/plotly.js +21 -14
- package/src/components/chart-engines/uplot.js +17 -11
- package/src/components/chart-engines/vega.js +17 -11
- package/src/components/chart-funnel-options.js +1 -1
- package/src/components/chart-geographic-options.js +1 -1
- package/src/components/chart-heatmap-options.js +1 -1
- package/src/components/chart-map-bar3d-options.js +2 -2
- package/src/components/chart-map-options.js +2 -2
- package/src/components/chart-parallel-options.js +1 -1
- package/src/components/chart-radar-options.js +1 -1
- package/src/components/chart-renderer.js +6 -1
- package/src/components/chart-sankey-options.js +1 -1
- package/src/components/chart-spatial-options.js +1 -1
- package/src/components/chart-sunburst-options.js +13 -1
- package/src/components/chart-theme.js +14 -0
- package/src/components/chart-treemap-options.js +1 -1
- package/src/components/chart-type-data.js +24 -4
- package/src/components/charts.js +7 -6
- package/src/components/check-box-tree.js +1 -1
- package/src/components/choice-editor.js +3 -3
- package/src/components/code-mirror-engine.js +2 -1
- package/src/components/code-mirror.js +1 -1
- package/src/components/editor-commands.js +69 -0
- package/src/components/editors.js +5 -3
- package/src/components/form-tray-pane.js +18 -0
- package/src/components/graphical-ranges.js +16 -3
- package/src/components/grid-check-sets.js +39 -3
- package/src/components/grid-header-interaction.js +3 -3
- package/src/components/grid-styles.js +19 -3
- package/src/components/grid.js +42 -9
- package/src/components/html-editor-commands.js +61 -0
- package/src/components/html-editor.js +18 -3
- package/src/components/inputs.js +1 -0
- package/src/components/jodit-engine.js +107 -6
- package/src/components/layout.js +3 -2
- package/src/components/menus.js +6 -1
- package/src/components/selected-container.js +16 -3
- package/src/components/tab-bar.js +20 -2
- package/src/components/tray-base.js +528 -0
- package/src/components/tray-pane.js +41 -518
- package/src/components/tree.js +44 -1
- package/src/components/typed-editor.js +5 -2
- package/src/editing-session.js +2 -1
- package/src/ide-runtime.js +3 -1
- package/src/index-page-runtime.js +11 -3
- package/src/index.d.ts +2 -1
- package/src/index.js +2 -1
- package/src/libraries.js +4 -4
- package/src/object-extract.d.ts +7 -0
- package/src/object-extract.js +31 -0
- package/src/renderer/attributes.js +1 -1
- package/src/renderer/gramlot-renderer.d.ts +2 -2
- package/src/server/chat.d.ts +3 -1
- package/src/server/chat.js +17 -6
- package/src/server/gramlot-server.js +5 -1
- package/src/server/index-page.js +27 -8
- package/src/server/toolbar-icon-name.d.ts +17 -0
- package/src/view/labelbox.js +6 -1
- package/src/visual-editor.d.ts +1 -0
- package/src/visual-editor.js +4 -3
- package/themes/gramlot-base/theme.css +7 -0
- package/themes/gramlot-index/icons/align-center.svg +4 -0
- package/themes/gramlot-index/icons/align-justify.svg +4 -0
- package/themes/gramlot-index/icons/align-left.svg +4 -0
- package/themes/gramlot-index/icons/align-right.svg +4 -0
- package/themes/gramlot-index/icons/bold.svg +4 -0
- package/themes/gramlot-index/icons/eraser.svg +4 -0
- package/themes/gramlot-index/icons/horizontal-rule.svg +4 -0
- package/themes/gramlot-index/icons/image.svg +4 -0
- package/themes/gramlot-index/icons/indent.svg +4 -0
- package/themes/gramlot-index/icons/italic.svg +4 -0
- package/themes/gramlot-index/icons/list-bulleted.svg +4 -0
- package/themes/gramlot-index/icons/list-numbered.svg +4 -0
- package/themes/gramlot-index/icons/outdent.svg +4 -0
- package/themes/gramlot-index/icons/paragraph.svg +4 -0
- package/themes/gramlot-index/icons/select-all.svg +4 -0
- package/themes/gramlot-index/icons/strikethrough.svg +4 -0
- package/themes/gramlot-index/icons/underline.svg +4 -0
- package/themes/gramlot-index/icons.json +17 -0
- package/themes/gramlot-index/theme.css +3 -0
- package/tools/gramlot-tools-inspector.js +11 -3
- package/src/builder/chart-icon.js +0 -2
|
@@ -3,5 +3,117 @@
|
|
|
3
3
|
"name": "gramlot_commands",
|
|
4
4
|
"version": "1.0"
|
|
5
5
|
},
|
|
6
|
-
"groups": {
|
|
6
|
+
"groups": {
|
|
7
|
+
"htmlEditor": {
|
|
8
|
+
"commands": {
|
|
9
|
+
"align": {
|
|
10
|
+
"icon": "align-left",
|
|
11
|
+
"label": "Align",
|
|
12
|
+
"publish": "align"
|
|
13
|
+
},
|
|
14
|
+
"bold": {
|
|
15
|
+
"icon": "bold",
|
|
16
|
+
"label": "Bold",
|
|
17
|
+
"publish": "bold"
|
|
18
|
+
},
|
|
19
|
+
"color": {
|
|
20
|
+
"icon": "palette",
|
|
21
|
+
"label": "Color",
|
|
22
|
+
"publish": "color",
|
|
23
|
+
"tooltip": "Text and background color"
|
|
24
|
+
},
|
|
25
|
+
"eraser": {
|
|
26
|
+
"icon": "eraser",
|
|
27
|
+
"label": "Clear formatting",
|
|
28
|
+
"publish": "eraser"
|
|
29
|
+
},
|
|
30
|
+
"find": {
|
|
31
|
+
"icon": "search",
|
|
32
|
+
"label": "Find",
|
|
33
|
+
"publish": "find",
|
|
34
|
+
"tooltip": "Find and replace"
|
|
35
|
+
},
|
|
36
|
+
"hr": {
|
|
37
|
+
"icon": "horizontal-rule",
|
|
38
|
+
"label": "Horizontal line",
|
|
39
|
+
"publish": "hr"
|
|
40
|
+
},
|
|
41
|
+
"image": {
|
|
42
|
+
"icon": "image",
|
|
43
|
+
"label": "Image",
|
|
44
|
+
"publish": "image",
|
|
45
|
+
"tooltip": "Insert an image"
|
|
46
|
+
},
|
|
47
|
+
"indent": {
|
|
48
|
+
"icon": "indent",
|
|
49
|
+
"label": "Increase indent",
|
|
50
|
+
"publish": "indent"
|
|
51
|
+
},
|
|
52
|
+
"italic": {
|
|
53
|
+
"icon": "italic",
|
|
54
|
+
"label": "Italic",
|
|
55
|
+
"publish": "italic"
|
|
56
|
+
},
|
|
57
|
+
"link": {
|
|
58
|
+
"icon": "link",
|
|
59
|
+
"label": "Link",
|
|
60
|
+
"publish": "link",
|
|
61
|
+
"tooltip": "Insert or edit a link"
|
|
62
|
+
},
|
|
63
|
+
"ol": {
|
|
64
|
+
"icon": "list-numbered",
|
|
65
|
+
"label": "Numbered list",
|
|
66
|
+
"publish": "ol"
|
|
67
|
+
},
|
|
68
|
+
"outdent": {
|
|
69
|
+
"icon": "outdent",
|
|
70
|
+
"label": "Decrease indent",
|
|
71
|
+
"publish": "outdent"
|
|
72
|
+
},
|
|
73
|
+
"paragraph": {
|
|
74
|
+
"icon": "paragraph",
|
|
75
|
+
"label": "Paragraph",
|
|
76
|
+
"publish": "paragraph",
|
|
77
|
+
"tooltip": "Block format"
|
|
78
|
+
},
|
|
79
|
+
"redo": {
|
|
80
|
+
"icon": "redo",
|
|
81
|
+
"label": "Redo",
|
|
82
|
+
"publish": "redo"
|
|
83
|
+
},
|
|
84
|
+
"selectall": {
|
|
85
|
+
"icon": "select-all",
|
|
86
|
+
"label": "Select all",
|
|
87
|
+
"publish": "selectall"
|
|
88
|
+
},
|
|
89
|
+
"strikethrough": {
|
|
90
|
+
"icon": "strikethrough",
|
|
91
|
+
"label": "Strikethrough",
|
|
92
|
+
"publish": "strikethrough"
|
|
93
|
+
},
|
|
94
|
+
"table": {
|
|
95
|
+
"icon": "table",
|
|
96
|
+
"label": "Table",
|
|
97
|
+
"publish": "table",
|
|
98
|
+
"tooltip": "Insert a table"
|
|
99
|
+
},
|
|
100
|
+
"ul": {
|
|
101
|
+
"icon": "list-bulleted",
|
|
102
|
+
"label": "Bulleted list",
|
|
103
|
+
"publish": "ul"
|
|
104
|
+
},
|
|
105
|
+
"underline": {
|
|
106
|
+
"icon": "underline",
|
|
107
|
+
"label": "Underline",
|
|
108
|
+
"publish": "underline"
|
|
109
|
+
},
|
|
110
|
+
"undo": {
|
|
111
|
+
"icon": "undo",
|
|
112
|
+
"label": "Undo",
|
|
113
|
+
"publish": "undo"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"description": "HTML editor toolbar commands"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
7
119
|
}
|
|
@@ -86,7 +86,8 @@
|
|
|
86
86
|
"xml",
|
|
87
87
|
"markdown",
|
|
88
88
|
"sql",
|
|
89
|
-
"typst"
|
|
89
|
+
"typst",
|
|
90
|
+
"yaml"
|
|
90
91
|
]
|
|
91
92
|
},
|
|
92
93
|
"lbl": {
|
|
@@ -2646,7 +2647,7 @@
|
|
|
2646
2647
|
"parent_tags": null,
|
|
2647
2648
|
"sub_tags": ""
|
|
2648
2649
|
},
|
|
2649
|
-
"
|
|
2650
|
+
"htmlEditorCanvas": {
|
|
2650
2651
|
"_meta": {
|
|
2651
2652
|
"gramlot_component": {
|
|
2652
2653
|
"command": false,
|
|
@@ -3081,9 +3082,10 @@
|
|
|
3081
3082
|
"dtype": "T"
|
|
3082
3083
|
}
|
|
3083
3084
|
},
|
|
3084
|
-
"presentationDefaults": []
|
|
3085
|
+
"presentationDefaults": [],
|
|
3086
|
+
"sourceContext": true
|
|
3085
3087
|
},
|
|
3086
|
-
"render_tag": "gramlot-html-editor"
|
|
3088
|
+
"render_tag": "gramlot-html-editor-canvas"
|
|
3087
3089
|
},
|
|
3088
3090
|
"attributes": {
|
|
3089
3091
|
"accepts_var_keyword": true,
|
|
@@ -9,6 +9,6 @@ mygramlot = GramlotCollection(
|
|
|
9
9
|
module="assets/index.js",
|
|
10
10
|
css=(),
|
|
11
11
|
dependencies=(_dependency_0,),
|
|
12
|
-
build_id="sha256:
|
|
12
|
+
build_id="sha256:b96cfd726e2958d7775be149a89c4bf0dacb176b18230489391741617bc8ed7c",
|
|
13
13
|
files=("assets/collection.js", "assets/files/0a1df3a083d0c010560aa342e87959c8c1070e6fd54545741f083f22d0c8b551-fflate.txt", "assets/files/8cf9b31947daf7adb4a7a00a037459e58241af050cd0a603bfcf1756e533f75e-write-excel-file.txt", "assets/index.js", "assets/libraries/writeExcelFile.js", "commands.json", "grammar.json",),
|
|
14
14
|
)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export {default} from "./collection.js";
|
|
2
2
|
export * from "./collection.js";
|
|
3
|
-
export const buildId = "sha256:
|
|
3
|
+
export const buildId = "sha256:b96cfd726e2958d7775be149a89c4bf0dacb176b18230489391741617bc8ed7c";
|
|
@@ -397,6 +397,11 @@
|
|
|
397
397
|
"command": false,
|
|
398
398
|
"dataScope": false,
|
|
399
399
|
"parameters": {
|
|
400
|
+
"autoHeight": {
|
|
401
|
+
"binding": "read",
|
|
402
|
+
"default": false,
|
|
403
|
+
"dtype": "B"
|
|
404
|
+
},
|
|
400
405
|
"columnFilters": {
|
|
401
406
|
"binding": "read",
|
|
402
407
|
"default": false,
|
|
@@ -413,6 +418,12 @@
|
|
|
413
418
|
"dtype": "T",
|
|
414
419
|
"nullable": true
|
|
415
420
|
},
|
|
421
|
+
"emptyText": {
|
|
422
|
+
"binding": "read",
|
|
423
|
+
"default": null,
|
|
424
|
+
"dtype": "T",
|
|
425
|
+
"nullable": true
|
|
426
|
+
},
|
|
416
427
|
"filter": {
|
|
417
428
|
"annotation": {
|
|
418
429
|
"kind": "type",
|
|
@@ -776,6 +787,56 @@
|
|
|
776
787
|
"name": "delrow_label",
|
|
777
788
|
"role": "attribute"
|
|
778
789
|
},
|
|
790
|
+
{
|
|
791
|
+
"annotation": {
|
|
792
|
+
"items": [
|
|
793
|
+
{
|
|
794
|
+
"dtype": "T",
|
|
795
|
+
"kind": "dtype"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"dtype": "NN",
|
|
799
|
+
"kind": "dtype"
|
|
800
|
+
}
|
|
801
|
+
],
|
|
802
|
+
"kind": "union"
|
|
803
|
+
},
|
|
804
|
+
"default": null,
|
|
805
|
+
"has_default": true,
|
|
806
|
+
"kind": "keyword_only",
|
|
807
|
+
"name": "emptyText",
|
|
808
|
+
"role": "attribute"
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"annotation": {
|
|
812
|
+
"items": [
|
|
813
|
+
{
|
|
814
|
+
"dtype": "B",
|
|
815
|
+
"kind": "dtype"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"base": {
|
|
819
|
+
"dtype": "T",
|
|
820
|
+
"kind": "dtype"
|
|
821
|
+
},
|
|
822
|
+
"kind": "annotated",
|
|
823
|
+
"metadata": [
|
|
824
|
+
{
|
|
825
|
+
"flags": 0,
|
|
826
|
+
"kind": "regex",
|
|
827
|
+
"pattern": "^[\\^=].+"
|
|
828
|
+
}
|
|
829
|
+
]
|
|
830
|
+
}
|
|
831
|
+
],
|
|
832
|
+
"kind": "union"
|
|
833
|
+
},
|
|
834
|
+
"default": false,
|
|
835
|
+
"has_default": true,
|
|
836
|
+
"kind": "keyword_only",
|
|
837
|
+
"name": "autoHeight",
|
|
838
|
+
"role": "attribute"
|
|
839
|
+
},
|
|
779
840
|
{
|
|
780
841
|
"annotation": {
|
|
781
842
|
"items": [
|
|
@@ -9,6 +9,6 @@ mygramlot = GramlotCollection(
|
|
|
9
9
|
module="assets/index.js",
|
|
10
10
|
css=(),
|
|
11
11
|
dependencies=(_dependency_0,),
|
|
12
|
-
build_id="sha256:
|
|
12
|
+
build_id="sha256:258b07fbc5e858ef71ef484fbf1ad5dc8bc7e7f2cf8a90d30007af63e5e5dfef",
|
|
13
13
|
files=("assets/collection.js", "assets/index.js", "commands.json", "grammar.json",),
|
|
14
14
|
)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export {default} from "./collection.js";
|
|
2
2
|
export * from "./collection.js";
|
|
3
|
-
export const buildId = "sha256:
|
|
3
|
+
export const buildId = "sha256:258b07fbc5e858ef71ef484fbf1ad5dc8bc7e7f2cf8a90d30007af63e5e5dfef";
|
|
@@ -2285,6 +2285,11 @@
|
|
|
2285
2285
|
"default": false,
|
|
2286
2286
|
"dtype": "B"
|
|
2287
2287
|
},
|
|
2288
|
+
"eagerCheck": {
|
|
2289
|
+
"binding": "read",
|
|
2290
|
+
"default": false,
|
|
2291
|
+
"dtype": "B"
|
|
2292
|
+
},
|
|
2288
2293
|
"hierarchical": {
|
|
2289
2294
|
"binding": "read",
|
|
2290
2295
|
"default": false,
|
|
@@ -4593,6 +4598,36 @@
|
|
|
4593
4598
|
"name": "hierarchical",
|
|
4594
4599
|
"role": "attribute"
|
|
4595
4600
|
},
|
|
4601
|
+
{
|
|
4602
|
+
"annotation": {
|
|
4603
|
+
"items": [
|
|
4604
|
+
{
|
|
4605
|
+
"dtype": "B",
|
|
4606
|
+
"kind": "dtype"
|
|
4607
|
+
},
|
|
4608
|
+
{
|
|
4609
|
+
"base": {
|
|
4610
|
+
"dtype": "T",
|
|
4611
|
+
"kind": "dtype"
|
|
4612
|
+
},
|
|
4613
|
+
"kind": "annotated",
|
|
4614
|
+
"metadata": [
|
|
4615
|
+
{
|
|
4616
|
+
"flags": 0,
|
|
4617
|
+
"kind": "regex",
|
|
4618
|
+
"pattern": "^[\\^=].+"
|
|
4619
|
+
}
|
|
4620
|
+
]
|
|
4621
|
+
}
|
|
4622
|
+
],
|
|
4623
|
+
"kind": "union"
|
|
4624
|
+
},
|
|
4625
|
+
"default": false,
|
|
4626
|
+
"has_default": true,
|
|
4627
|
+
"kind": "keyword_only",
|
|
4628
|
+
"name": "eagerCheck",
|
|
4629
|
+
"role": "attribute"
|
|
4630
|
+
},
|
|
4596
4631
|
{
|
|
4597
4632
|
"annotation": {
|
|
4598
4633
|
"items": [
|
|
@@ -8,6 +8,6 @@ mygramlot = GramlotCollection(
|
|
|
8
8
|
module="assets/index.js",
|
|
9
9
|
css=(),
|
|
10
10
|
dependencies=(),
|
|
11
|
-
build_id="sha256:
|
|
11
|
+
build_id="sha256:08386203d049908a90724a8877ecf4a5e4b7897a949b9ad71580f4f5a93d4b1f",
|
|
12
12
|
files=("assets/collection.js", "assets/index.js", "commands.json", "grammar.json",),
|
|
13
13
|
)
|
|
@@ -4,6 +4,7 @@ export const BorderContainer = /* @__PURE__ */ read("BorderContainer");
|
|
|
4
4
|
export const ContentPane = /* @__PURE__ */ read("ContentPane");
|
|
5
5
|
export const Dialog = /* @__PURE__ */ read("Dialog");
|
|
6
6
|
export const FloatingPane = /* @__PURE__ */ read("FloatingPane");
|
|
7
|
+
export const FormTrayPane = /* @__PURE__ */ read("FormTrayPane");
|
|
7
8
|
export const Formlet = /* @__PURE__ */ read("Formlet");
|
|
8
9
|
export const FramePane = /* @__PURE__ */ read("FramePane");
|
|
9
10
|
export const GroupBox = /* @__PURE__ */ read("GroupBox");
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export {default} from "./collection.js";
|
|
2
2
|
export * from "./collection.js";
|
|
3
|
-
export const buildId = "sha256:
|
|
3
|
+
export const buildId = "sha256:08386203d049908a90724a8877ecf4a5e4b7897a949b9ad71580f4f5a93d4b1f";
|