@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.
Files changed (141) hide show
  1. package/assets/icons/align-center.svg +4 -0
  2. package/assets/icons/align-justify.svg +4 -0
  3. package/assets/icons/align-left.svg +4 -0
  4. package/assets/icons/align-right.svg +4 -0
  5. package/assets/icons/bold.svg +4 -0
  6. package/assets/icons/eraser.svg +4 -0
  7. package/assets/icons/horizontal-rule.svg +4 -0
  8. package/assets/icons/image.svg +4 -0
  9. package/assets/icons/indent.svg +4 -0
  10. package/assets/icons/italic.svg +4 -0
  11. package/assets/icons/list-bulleted.svg +4 -0
  12. package/assets/icons/list-numbered.svg +4 -0
  13. package/assets/icons/outdent.svg +4 -0
  14. package/assets/icons/paragraph.svg +4 -0
  15. package/assets/icons/select-all.svg +4 -0
  16. package/assets/icons/strikethrough.svg +4 -0
  17. package/assets/icons/underline.svg +4 -0
  18. package/dist/components/charts/__init__.py +1 -1
  19. package/dist/components/charts/assets/index.js +1 -1
  20. package/dist/components/charts/grammar.json +2032 -72
  21. package/dist/components/editors/__init__.py +1 -1
  22. package/dist/components/editors/assets/collection.js +1 -1
  23. package/dist/components/editors/assets/index.js +1 -1
  24. package/dist/components/editors/assets/libraries/codemirror.js +30 -30
  25. package/dist/components/editors/assets/libraries/jodit.js +452 -448
  26. package/dist/components/editors/commands.json +113 -1
  27. package/dist/components/editors/grammar.json +6 -4
  28. package/dist/components/grid/__init__.py +1 -1
  29. package/dist/components/grid/assets/index.js +1 -1
  30. package/dist/components/grid/grammar.json +61 -0
  31. package/dist/components/inputs/__init__.py +1 -1
  32. package/dist/components/inputs/assets/index.js +1 -1
  33. package/dist/components/inputs/grammar.json +35 -0
  34. package/dist/components/layout/__init__.py +1 -1
  35. package/dist/components/layout/assets/collection.js +1 -0
  36. package/dist/components/layout/assets/index.js +1 -1
  37. package/dist/components/layout/grammar.json +364 -0
  38. package/dist/components/tree/__init__.py +1 -1
  39. package/dist/components/tree/assets/index.js +1 -1
  40. package/dist/components/tree/grammar.json +35 -0
  41. package/dist/gramlot.js +1165 -420
  42. package/dist/gramlot.min.js +125 -100
  43. package/dist/libraries.json +5 -4
  44. package/dist/standard-collections.js +1 -1
  45. package/dist/standard-grammar.js +1 -1
  46. package/package.json +4 -2
  47. package/src/binding/providers.js +2 -1
  48. package/src/binding/remote.js +41 -6
  49. package/src/binding/runtime.js +24 -0
  50. package/src/builder/gramlot-builder.js +52 -18
  51. package/src/builder/source.js +66 -12
  52. package/src/chat.d.ts +1 -0
  53. package/src/chat.js +13 -1
  54. package/src/components/chart-bar3d-options.js +0 -1
  55. package/src/components/chart-boxplot-options.js +1 -1
  56. package/src/components/chart-candlestick-options.js +1 -1
  57. package/src/components/chart-engines/echarts-options.js +6 -5
  58. package/src/components/chart-engines/echarts.js +27 -10
  59. package/src/components/chart-engines/plotly-map.js +1 -1
  60. package/src/components/chart-engines/plotly.js +21 -14
  61. package/src/components/chart-engines/uplot.js +17 -11
  62. package/src/components/chart-engines/vega.js +17 -11
  63. package/src/components/chart-funnel-options.js +1 -1
  64. package/src/components/chart-geographic-options.js +1 -1
  65. package/src/components/chart-heatmap-options.js +1 -1
  66. package/src/components/chart-map-bar3d-options.js +2 -2
  67. package/src/components/chart-map-options.js +2 -2
  68. package/src/components/chart-parallel-options.js +1 -1
  69. package/src/components/chart-radar-options.js +1 -1
  70. package/src/components/chart-renderer.js +6 -1
  71. package/src/components/chart-sankey-options.js +1 -1
  72. package/src/components/chart-spatial-options.js +1 -1
  73. package/src/components/chart-sunburst-options.js +13 -1
  74. package/src/components/chart-theme.js +14 -0
  75. package/src/components/chart-treemap-options.js +1 -1
  76. package/src/components/chart-type-data.js +24 -4
  77. package/src/components/charts.js +7 -6
  78. package/src/components/check-box-tree.js +1 -1
  79. package/src/components/choice-editor.js +3 -3
  80. package/src/components/code-mirror-engine.js +2 -1
  81. package/src/components/code-mirror.js +1 -1
  82. package/src/components/editor-commands.js +69 -0
  83. package/src/components/editors.js +5 -3
  84. package/src/components/form-tray-pane.js +18 -0
  85. package/src/components/graphical-ranges.js +16 -3
  86. package/src/components/grid-check-sets.js +39 -3
  87. package/src/components/grid-header-interaction.js +3 -3
  88. package/src/components/grid-styles.js +19 -3
  89. package/src/components/grid.js +42 -9
  90. package/src/components/html-editor-commands.js +61 -0
  91. package/src/components/html-editor.js +18 -3
  92. package/src/components/inputs.js +1 -0
  93. package/src/components/jodit-engine.js +107 -6
  94. package/src/components/layout.js +3 -2
  95. package/src/components/menus.js +6 -1
  96. package/src/components/selected-container.js +16 -3
  97. package/src/components/tab-bar.js +20 -2
  98. package/src/components/tray-base.js +528 -0
  99. package/src/components/tray-pane.js +41 -518
  100. package/src/components/tree.js +44 -1
  101. package/src/components/typed-editor.js +5 -2
  102. package/src/editing-session.js +2 -1
  103. package/src/ide-runtime.js +3 -1
  104. package/src/index-page-runtime.js +11 -3
  105. package/src/index.d.ts +2 -1
  106. package/src/index.js +2 -1
  107. package/src/libraries.js +4 -4
  108. package/src/object-extract.d.ts +7 -0
  109. package/src/object-extract.js +31 -0
  110. package/src/renderer/attributes.js +1 -1
  111. package/src/renderer/gramlot-renderer.d.ts +2 -2
  112. package/src/server/chat.d.ts +3 -1
  113. package/src/server/chat.js +17 -6
  114. package/src/server/gramlot-server.js +5 -1
  115. package/src/server/index-page.js +27 -8
  116. package/src/server/toolbar-icon-name.d.ts +17 -0
  117. package/src/view/labelbox.js +6 -1
  118. package/src/visual-editor.d.ts +1 -0
  119. package/src/visual-editor.js +4 -3
  120. package/themes/gramlot-base/theme.css +7 -0
  121. package/themes/gramlot-index/icons/align-center.svg +4 -0
  122. package/themes/gramlot-index/icons/align-justify.svg +4 -0
  123. package/themes/gramlot-index/icons/align-left.svg +4 -0
  124. package/themes/gramlot-index/icons/align-right.svg +4 -0
  125. package/themes/gramlot-index/icons/bold.svg +4 -0
  126. package/themes/gramlot-index/icons/eraser.svg +4 -0
  127. package/themes/gramlot-index/icons/horizontal-rule.svg +4 -0
  128. package/themes/gramlot-index/icons/image.svg +4 -0
  129. package/themes/gramlot-index/icons/indent.svg +4 -0
  130. package/themes/gramlot-index/icons/italic.svg +4 -0
  131. package/themes/gramlot-index/icons/list-bulleted.svg +4 -0
  132. package/themes/gramlot-index/icons/list-numbered.svg +4 -0
  133. package/themes/gramlot-index/icons/outdent.svg +4 -0
  134. package/themes/gramlot-index/icons/paragraph.svg +4 -0
  135. package/themes/gramlot-index/icons/select-all.svg +4 -0
  136. package/themes/gramlot-index/icons/strikethrough.svg +4 -0
  137. package/themes/gramlot-index/icons/underline.svg +4 -0
  138. package/themes/gramlot-index/icons.json +17 -0
  139. package/themes/gramlot-index/theme.css +3 -0
  140. package/tools/gramlot-tools-inspector.js +11 -3
  141. package/src/builder/chart-icon.js +0 -2
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M7 10h10M4 14h16M7 19h10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M4 10h16M4 14h16M4 19h16"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M4 10h10M4 14h16M4 19h10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M10 10h10M4 14h16M10 19h10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M7 4h6a4 4 0 0 1 0 8H7zM7 12h7a4 4 0 0 1 0 8H7z"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M14.5 4l5.5 5.5L11 18.5H6.5L3 15zM8.5 9.5l6 6M11 20.5h10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M3 12h18M8 6h8M8 18h8"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <rect x="3" y="4" width="18" height="16" rx="2"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M21 15l-5-5-9 10"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M11 10h9M11 14h9M4 19h16M4 9l3 3-3 3"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M10 4h8M6 20h8M15 4L9 20"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M10 6h10M10 12h10M10 18h10"/><circle cx="5" cy="6" r="1"/><circle cx="5" cy="12" r="1"/><circle cx="5" cy="18" r="1"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M10 6h10M10 12h10M10 18h10M4 5l1.5-1v5M3.5 13a1.5 1.5 0 1 1 2.6 1L3.5 17h3"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M4 5h16M11 10h9M11 14h9M4 19h16M7 9l-3 3 3 3"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M13 4v16M17 4v16M19 4h-9a4 4 0 0 0 0 8h3"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <rect x="3.5" y="3.5" width="17" height="17" rx="2" stroke-dasharray="3 2.5"/><path d="M8 9h8M8 12h8M8 15h5"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M16.5 7C15.6 5.3 14 4.5 12 4.5c-2.8 0-4.7 1.5-4.7 3.6 0 1.6 1 2.7 3.2 3.4M4 12h16M7.5 16.5c.9 2 2.6 3 4.7 3 2.9 0 4.8-1.5 4.8-3.6 0-.8-.2-1.5-.7-2"/>
4
+ </svg>
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="color-scheme:light dark"
2
+ fill="none" stroke="ButtonText" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
3
+ <path d="M7 4v7a5 5 0 0 0 10 0V4M5 20h14"/>
4
+ </svg>
@@ -8,6 +8,6 @@ mygramlot = GramlotCollection(
8
8
  module="assets/index.js",
9
9
  css=(),
10
10
  dependencies=(),
11
- build_id="sha256:6868426a6e335acbfd41f025bbf3e001dd3075de452c10ed1c2d31d5ae60bca2",
11
+ build_id="sha256:92b89efd5d5210d7178f3ab2fa32c02c7f7351d864458489fbc0b5132794364b",
12
12
  files=("assets/collection.js", "assets/files/55ea01207028f76d844678511f29fc800f8a1e67a8a0fe80470128677847ad32-echarts-gl.txt", "assets/files/63727832aaf62004a2b249c933e327f3c90caf49e41a72f4bf436edf632cbda8-vega.txt", "assets/files/8c45d9eaf50c2f72dd9c7ab9ef440788ba58a3538484b5c51c1f17d5128752e7-plotly.txt", "assets/files/8f989229699b4fe2f1a0432d0e9edc338a8a911e250e2d1b01ecd770a5f5b1bd-uplot.txt", "assets/files/c8fa058cba98f7f288b5d8fa4116f441d6dacb25b96da859e518c973fff41d0c-claygl.txt", "assets/index.js", "assets/libraries/chunks/chunk-LVZ6SHV2.js", "assets/libraries/echarts.js", "assets/libraries/echartsGl.js", "assets/libraries/plotly.js", "assets/libraries/uplot.js", "assets/libraries/uplotStyle.js", "assets/libraries/vega.js", "commands.json", "grammar.json",),
13
13
  )
@@ -1,3 +1,3 @@
1
1
  export {default} from "./collection.js";
2
2
  export * from "./collection.js";
3
- export const buildId = "sha256:6868426a6e335acbfd41f025bbf3e001dd3075de452c10ed1c2d31d5ae60bca2";
3
+ export const buildId = "sha256:92b89efd5d5210d7178f3ab2fa32c02c7f7351d864458489fbc0b5132794364b";