@gramlot/gramlot 0.3.35 → 0.3.37

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 (117) hide show
  1. package/dist/components/charts/__init__.py +1 -1
  2. package/dist/components/charts/assets/collection.js +9 -9
  3. package/dist/components/charts/assets/index.js +1 -1
  4. package/dist/components/charts/grammar.json +0 -30
  5. package/dist/components/drawing/__init__.py +1 -1
  6. package/dist/components/drawing/assets/collection.js +3 -3
  7. package/dist/components/drawing/assets/index.js +1 -1
  8. package/dist/components/editors/__init__.py +2 -2
  9. package/dist/components/editors/assets/collection.js +4 -2
  10. package/dist/components/editors/assets/index.js +1 -1
  11. package/dist/components/editors/assets/modules/addon-fit-L6JK4OJX.js +12 -0
  12. package/dist/components/editors/assets/modules/xterm-BF3OSWRI.js +286 -0
  13. package/dist/components/editors/assets/modules/xterm-UBEXZEYY.js +47 -0
  14. package/dist/components/editors/grammar.json +207 -0
  15. package/dist/components/grid/__init__.py +1 -1
  16. package/dist/components/grid/assets/collection.js +6 -6
  17. package/dist/components/grid/assets/index.js +1 -1
  18. package/dist/components/grid/grammar.json +0 -2
  19. package/dist/components/inputs/__init__.py +1 -1
  20. package/dist/components/inputs/assets/collection.js +8 -8
  21. package/dist/components/inputs/assets/index.js +1 -1
  22. package/dist/components/inputs/grammar.json +2 -1
  23. package/dist/components/layout/__init__.py +1 -1
  24. package/dist/components/layout/assets/collection.js +9 -9
  25. package/dist/components/layout/assets/index.js +1 -1
  26. package/dist/components/layout/grammar.json +2 -2
  27. package/dist/components/selection_trial/__init__.py +1 -1
  28. package/dist/components/selection_trial/assets/collection.js +3 -3
  29. package/dist/components/selection_trial/assets/index.js +1 -1
  30. package/dist/components/tree/__init__.py +1 -1
  31. package/dist/components/tree/assets/collection.js +6 -6
  32. package/dist/components/tree/assets/index.js +1 -1
  33. package/dist/components/tree/grammar.json +0 -1
  34. package/dist/components/uploads/__init__.py +1 -1
  35. package/dist/components/uploads/assets/collection.js +3 -3
  36. package/dist/components/uploads/assets/index.js +1 -1
  37. package/dist/components/uploads/grammar.json +0 -3
  38. package/dist/gramlot.js +1238 -627
  39. package/dist/gramlot.min.js +45 -45
  40. package/dist/libraries.json +27 -0
  41. package/dist/standard-collections.js +1 -1
  42. package/package.json +4 -3
  43. package/src/binding/data-binder.js +11 -3
  44. package/src/binding/grid-struct.js +7 -4
  45. package/src/binding/runtime.js +203 -46
  46. package/src/builder/binding.json +23 -1
  47. package/src/builder/gramlot-builder.d.ts +1 -4
  48. package/src/builder/source.js +185 -29
  49. package/src/chat.js +26 -20
  50. package/src/components/attachment-manager.js +38 -34
  51. package/src/components/chart-data-view.js +4 -7
  52. package/src/components/chart-fields.js +18 -6
  53. package/src/components/chart-renderer.js +10 -3
  54. package/src/components/chart-timeline.js +7 -5
  55. package/src/components/charts.js +74 -67
  56. package/src/components/check-box-text-editor.js +3 -3
  57. package/src/components/check-box-text.js +7 -22
  58. package/src/components/check-box-tree.js +20 -16
  59. package/src/components/choice-editor.js +1 -1
  60. package/src/components/drawing.js +47 -34
  61. package/src/components/editors.js +3 -1
  62. package/src/components/grid-cell-editor.js +72 -29
  63. package/src/components/grid-column-filters.js +47 -40
  64. package/src/components/grid-formulas.js +22 -17
  65. package/src/components/grid-header-interaction.js +9 -11
  66. package/src/components/grid-row-interaction.js +25 -24
  67. package/src/components/grid-row-layout.js +28 -29
  68. package/src/components/grid-search-box.js +3 -3
  69. package/src/components/grid-search.js +3 -8
  70. package/src/components/grid-selection.js +33 -29
  71. package/src/components/grid-structure.js +48 -10
  72. package/src/components/grid-tools.js +14 -14
  73. package/src/components/grid.js +83 -79
  74. package/src/components/image-crop-dialog.js +2 -2
  75. package/src/components/image-crop.js +16 -9
  76. package/src/components/image-uploader.js +21 -28
  77. package/src/components/inputs.js +19 -1
  78. package/src/components/registry.js +3 -5
  79. package/src/components/terminal.js +158 -0
  80. package/src/components/tray-pane.js +85 -61
  81. package/src/components/tree.js +332 -239
  82. package/src/components/upload-engine.js +10 -2
  83. package/src/components/uploader.js +31 -27
  84. package/src/editing-session.d.ts +4 -1
  85. package/src/editing-session.js +120 -83
  86. package/src/experiments/window-selection.js +4 -6
  87. package/src/filesystem.js +2 -2
  88. package/src/gramlot.js +1 -0
  89. package/src/handlers/device-handler.js +219 -213
  90. package/src/handlers/rpc-handler.d.ts +17 -0
  91. package/src/handlers/rpc-handler.js +22 -0
  92. package/src/ide-documents.js +29 -11
  93. package/src/ide-runtime.js +33 -31
  94. package/src/index-page-runtime.d.ts +2 -2
  95. package/src/index-page-runtime.js +67 -48
  96. package/src/libraries.js +9 -0
  97. package/src/message-port-connection.js +100 -0
  98. package/src/message-port-store.js +158 -0
  99. package/src/page-store-connection.js +14 -1
  100. package/src/renderer/gramlot-renderer.js +21 -2
  101. package/src/source-picker.d.ts +2 -2
  102. package/src/source-picker.js +15 -6
  103. package/src/stores/bag-collection-store.js +25 -7
  104. package/src/stores/bag-collection-view.js +23 -22
  105. package/src/view/controls.js +1 -1
  106. package/src/view/html.js +45 -20
  107. package/src/visual-editor-canvas.js +1 -1
  108. package/src/visual-editor.js +18 -19
  109. package/tools/gramlot-tools-inspector.js +400 -374
  110. package/tools/inspector-agent.js +223 -49
  111. package/dist/components/vizabi/__init__.py +0 -13
  112. package/dist/components/vizabi/assets/collection.js +0 -4
  113. package/dist/components/vizabi/assets/index.js +0 -3
  114. package/dist/components/vizabi/commands.json +0 -7
  115. package/dist/components/vizabi/grammar.json +0 -128
  116. package/src/components/vizabi-session.js +0 -66
  117. package/src/components/vizabi.js +0 -66
@@ -7187,6 +7187,213 @@
7187
7187
  "ns": null,
7188
7188
  "parent_tags": null,
7189
7189
  "sub_tags": ""
7190
+ },
7191
+ "terminal": {
7192
+ "_meta": {
7193
+ "gramlot_component": {
7194
+ "command": false,
7195
+ "dataScope": false,
7196
+ "parameters": {
7197
+ "columns": {
7198
+ "binding": "write",
7199
+ "default": 0,
7200
+ "dtype": "L"
7201
+ },
7202
+ "connected": {
7203
+ "binding": "write",
7204
+ "default": false,
7205
+ "dtype": "B"
7206
+ },
7207
+ "fontFamily": {
7208
+ "binding": "read",
7209
+ "default": "monospace",
7210
+ "dtype": "T"
7211
+ },
7212
+ "fontSize": {
7213
+ "binding": "read",
7214
+ "default": 14,
7215
+ "dtype": "L"
7216
+ },
7217
+ "rows": {
7218
+ "binding": "write",
7219
+ "default": 0,
7220
+ "dtype": "L"
7221
+ },
7222
+ "session": {
7223
+ "binding": "read",
7224
+ "default": "",
7225
+ "dtype": "T"
7226
+ }
7227
+ },
7228
+ "presentationDefaults": [],
7229
+ "sourceContext": true
7230
+ },
7231
+ "render_tag": "gramlot-terminal"
7232
+ },
7233
+ "attributes": {
7234
+ "accepts_var_keyword": true,
7235
+ "accepts_var_positional": false,
7236
+ "parameters": [
7237
+ {
7238
+ "annotation": {
7239
+ "dtype": "T",
7240
+ "kind": "dtype"
7241
+ },
7242
+ "default": "",
7243
+ "has_default": true,
7244
+ "kind": "keyword_only",
7245
+ "name": "session",
7246
+ "role": "attribute"
7247
+ },
7248
+ {
7249
+ "annotation": {
7250
+ "items": [
7251
+ {
7252
+ "dtype": "L",
7253
+ "kind": "dtype"
7254
+ },
7255
+ {
7256
+ "base": {
7257
+ "dtype": "T",
7258
+ "kind": "dtype"
7259
+ },
7260
+ "kind": "annotated",
7261
+ "metadata": [
7262
+ {
7263
+ "flags": 0,
7264
+ "kind": "regex",
7265
+ "pattern": "^[\\^=].+"
7266
+ }
7267
+ ]
7268
+ }
7269
+ ],
7270
+ "kind": "union"
7271
+ },
7272
+ "default": 14,
7273
+ "has_default": true,
7274
+ "kind": "keyword_only",
7275
+ "name": "fontSize",
7276
+ "role": "attribute"
7277
+ },
7278
+ {
7279
+ "annotation": {
7280
+ "dtype": "T",
7281
+ "kind": "dtype"
7282
+ },
7283
+ "default": "monospace",
7284
+ "has_default": true,
7285
+ "kind": "keyword_only",
7286
+ "name": "fontFamily",
7287
+ "role": "attribute"
7288
+ },
7289
+ {
7290
+ "annotation": {
7291
+ "items": [
7292
+ {
7293
+ "dtype": "B",
7294
+ "kind": "dtype"
7295
+ },
7296
+ {
7297
+ "base": {
7298
+ "dtype": "T",
7299
+ "kind": "dtype"
7300
+ },
7301
+ "kind": "annotated",
7302
+ "metadata": [
7303
+ {
7304
+ "flags": 0,
7305
+ "kind": "regex",
7306
+ "pattern": "^[\\^=].+"
7307
+ }
7308
+ ]
7309
+ }
7310
+ ],
7311
+ "kind": "union"
7312
+ },
7313
+ "default": false,
7314
+ "has_default": true,
7315
+ "kind": "keyword_only",
7316
+ "name": "connected",
7317
+ "role": "attribute"
7318
+ },
7319
+ {
7320
+ "annotation": {
7321
+ "items": [
7322
+ {
7323
+ "dtype": "L",
7324
+ "kind": "dtype"
7325
+ },
7326
+ {
7327
+ "base": {
7328
+ "dtype": "T",
7329
+ "kind": "dtype"
7330
+ },
7331
+ "kind": "annotated",
7332
+ "metadata": [
7333
+ {
7334
+ "flags": 0,
7335
+ "kind": "regex",
7336
+ "pattern": "^[\\^=].+"
7337
+ }
7338
+ ]
7339
+ }
7340
+ ],
7341
+ "kind": "union"
7342
+ },
7343
+ "default": 0,
7344
+ "has_default": true,
7345
+ "kind": "keyword_only",
7346
+ "name": "rows",
7347
+ "role": "attribute"
7348
+ },
7349
+ {
7350
+ "annotation": {
7351
+ "items": [
7352
+ {
7353
+ "dtype": "L",
7354
+ "kind": "dtype"
7355
+ },
7356
+ {
7357
+ "base": {
7358
+ "dtype": "T",
7359
+ "kind": "dtype"
7360
+ },
7361
+ "kind": "annotated",
7362
+ "metadata": [
7363
+ {
7364
+ "flags": 0,
7365
+ "kind": "regex",
7366
+ "pattern": "^[\\^=].+"
7367
+ }
7368
+ ]
7369
+ }
7370
+ ],
7371
+ "kind": "union"
7372
+ },
7373
+ "default": 0,
7374
+ "has_default": true,
7375
+ "kind": "keyword_only",
7376
+ "name": "columns",
7377
+ "role": "attribute"
7378
+ },
7379
+ {
7380
+ "annotation": {
7381
+ "kind": "any"
7382
+ },
7383
+ "has_default": false,
7384
+ "kind": "var_keyword",
7385
+ "name": "attr",
7386
+ "role": "attribute"
7387
+ }
7388
+ ]
7389
+ },
7390
+ "collection_key": null,
7391
+ "doc": "An interactive terminal connected to the @terminal method `session` of the page store.",
7392
+ "inherits_from": null,
7393
+ "node_label": null,
7394
+ "ns": null,
7395
+ "parent_tags": null,
7396
+ "sub_tags": ""
7190
7397
  }
7191
7398
  },
7192
7399
  "grammar": {
@@ -9,6 +9,6 @@ mygramlot = GramlotCollection(
9
9
  module="assets/index.js",
10
10
  css=(),
11
11
  dependencies=(_dependency_0,),
12
- build_id="sha256:2944064575e77e96bbf34e2b20912aed34e36d3ec003eeee1cf8f9f5e464553a",
12
+ build_id="sha256:92b20ec86b7a4dfe2e8430f4cafcbb06a15d95798ca180c082275302c4bb6663",
13
13
  files=("assets/collection.js", "assets/files/0a1df3a083d0c010560aa342e87959c8c1070e6fd54545741f083f22d0c8b551-fflate.txt", "assets/files/8cf9b31947daf7adb4a7a00a037459e58241af050cd0a603bfcf1756e533f75e-write-excel-file.txt", "assets/index.js", "assets/modules/browser-Y2BRNI3P.js", "assets/modules/chunk-BLMUM44K.js", "commands.json", "grammar.json",),
14
14
  )