@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
@@ -1271,6 +1271,320 @@
1271
1271
  "parent_tags": null,
1272
1272
  "sub_tags": "framePane"
1273
1273
  },
1274
+ "formTrayPane": {
1275
+ "_meta": {
1276
+ "gramlot_component": {
1277
+ "childParameters": {
1278
+ "aspectRatio": {
1279
+ "default": null,
1280
+ "dtype": "N",
1281
+ "nullable": true
1282
+ },
1283
+ "closable": {
1284
+ "default": false,
1285
+ "dtype": "B"
1286
+ },
1287
+ "minHeight": {
1288
+ "default": 64,
1289
+ "dtype": "N"
1290
+ },
1291
+ "minWidth": {
1292
+ "default": 100,
1293
+ "dtype": "N"
1294
+ }
1295
+ },
1296
+ "command": false,
1297
+ "dataScope": false,
1298
+ "dragSource": true,
1299
+ "parameters": {
1300
+ "autoArrange": {
1301
+ "binding": "twoWay",
1302
+ "default": false,
1303
+ "dtype": "B"
1304
+ },
1305
+ "autoSize": {
1306
+ "binding": "read",
1307
+ "default": false,
1308
+ "dtype": "B"
1309
+ },
1310
+ "autoSnap": {
1311
+ "binding": "read",
1312
+ "default": false,
1313
+ "dtype": "B"
1314
+ },
1315
+ "gridStep": {
1316
+ "binding": "read",
1317
+ "default": 10,
1318
+ "dtype": "L"
1319
+ },
1320
+ "gridVisible": {
1321
+ "binding": "read",
1322
+ "default": false,
1323
+ "dtype": "B"
1324
+ },
1325
+ "locked": {
1326
+ "binding": "read",
1327
+ "default": false,
1328
+ "dtype": "B"
1329
+ },
1330
+ "rotationStep": {
1331
+ "binding": "read",
1332
+ "default": 15,
1333
+ "dtype": "N"
1334
+ },
1335
+ "storepath": {
1336
+ "dtype": "T"
1337
+ }
1338
+ },
1339
+ "presentationDefaults": [],
1340
+ "sourceContext": true
1341
+ },
1342
+ "render_tag": "gramlot-form-tray-pane"
1343
+ },
1344
+ "attributes": {
1345
+ "accepts_var_keyword": true,
1346
+ "accepts_var_positional": false,
1347
+ "parameters": [
1348
+ {
1349
+ "annotation": {
1350
+ "dtype": "T",
1351
+ "kind": "dtype"
1352
+ },
1353
+ "default": null,
1354
+ "has_default": true,
1355
+ "kind": "keyword_only",
1356
+ "name": "storepath",
1357
+ "role": "attribute"
1358
+ },
1359
+ {
1360
+ "annotation": {
1361
+ "items": [
1362
+ {
1363
+ "dtype": "B",
1364
+ "kind": "dtype"
1365
+ },
1366
+ {
1367
+ "base": {
1368
+ "dtype": "T",
1369
+ "kind": "dtype"
1370
+ },
1371
+ "kind": "annotated",
1372
+ "metadata": [
1373
+ {
1374
+ "flags": 0,
1375
+ "kind": "regex",
1376
+ "pattern": "^[\\^=].+"
1377
+ }
1378
+ ]
1379
+ }
1380
+ ],
1381
+ "kind": "union"
1382
+ },
1383
+ "default": false,
1384
+ "has_default": true,
1385
+ "kind": "keyword_only",
1386
+ "name": "locked",
1387
+ "role": "attribute"
1388
+ },
1389
+ {
1390
+ "annotation": {
1391
+ "items": [
1392
+ {
1393
+ "dtype": "L",
1394
+ "kind": "dtype"
1395
+ },
1396
+ {
1397
+ "base": {
1398
+ "dtype": "T",
1399
+ "kind": "dtype"
1400
+ },
1401
+ "kind": "annotated",
1402
+ "metadata": [
1403
+ {
1404
+ "flags": 0,
1405
+ "kind": "regex",
1406
+ "pattern": "^[\\^=].+"
1407
+ }
1408
+ ]
1409
+ }
1410
+ ],
1411
+ "kind": "union"
1412
+ },
1413
+ "default": 10,
1414
+ "has_default": true,
1415
+ "kind": "keyword_only",
1416
+ "name": "gridStep",
1417
+ "role": "attribute"
1418
+ },
1419
+ {
1420
+ "annotation": {
1421
+ "items": [
1422
+ {
1423
+ "dtype": "B",
1424
+ "kind": "dtype"
1425
+ },
1426
+ {
1427
+ "base": {
1428
+ "dtype": "T",
1429
+ "kind": "dtype"
1430
+ },
1431
+ "kind": "annotated",
1432
+ "metadata": [
1433
+ {
1434
+ "flags": 0,
1435
+ "kind": "regex",
1436
+ "pattern": "^[\\^=].+"
1437
+ }
1438
+ ]
1439
+ }
1440
+ ],
1441
+ "kind": "union"
1442
+ },
1443
+ "default": false,
1444
+ "has_default": true,
1445
+ "kind": "keyword_only",
1446
+ "name": "gridVisible",
1447
+ "role": "attribute"
1448
+ },
1449
+ {
1450
+ "annotation": {
1451
+ "items": [
1452
+ {
1453
+ "dtype": "B",
1454
+ "kind": "dtype"
1455
+ },
1456
+ {
1457
+ "base": {
1458
+ "dtype": "T",
1459
+ "kind": "dtype"
1460
+ },
1461
+ "kind": "annotated",
1462
+ "metadata": [
1463
+ {
1464
+ "flags": 0,
1465
+ "kind": "regex",
1466
+ "pattern": "^[\\^=].+"
1467
+ }
1468
+ ]
1469
+ }
1470
+ ],
1471
+ "kind": "union"
1472
+ },
1473
+ "default": false,
1474
+ "has_default": true,
1475
+ "kind": "keyword_only",
1476
+ "name": "autoSnap",
1477
+ "role": "attribute"
1478
+ },
1479
+ {
1480
+ "annotation": {
1481
+ "items": [
1482
+ {
1483
+ "dtype": "N",
1484
+ "kind": "dtype"
1485
+ },
1486
+ {
1487
+ "base": {
1488
+ "dtype": "T",
1489
+ "kind": "dtype"
1490
+ },
1491
+ "kind": "annotated",
1492
+ "metadata": [
1493
+ {
1494
+ "flags": 0,
1495
+ "kind": "regex",
1496
+ "pattern": "^[\\^=].+"
1497
+ }
1498
+ ]
1499
+ }
1500
+ ],
1501
+ "kind": "union"
1502
+ },
1503
+ "default": 15,
1504
+ "has_default": true,
1505
+ "kind": "keyword_only",
1506
+ "name": "rotationStep",
1507
+ "role": "attribute"
1508
+ },
1509
+ {
1510
+ "annotation": {
1511
+ "items": [
1512
+ {
1513
+ "dtype": "B",
1514
+ "kind": "dtype"
1515
+ },
1516
+ {
1517
+ "base": {
1518
+ "dtype": "T",
1519
+ "kind": "dtype"
1520
+ },
1521
+ "kind": "annotated",
1522
+ "metadata": [
1523
+ {
1524
+ "flags": 0,
1525
+ "kind": "regex",
1526
+ "pattern": "^[\\^=].+"
1527
+ }
1528
+ ]
1529
+ }
1530
+ ],
1531
+ "kind": "union"
1532
+ },
1533
+ "default": false,
1534
+ "has_default": true,
1535
+ "kind": "keyword_only",
1536
+ "name": "autoArrange",
1537
+ "role": "attribute"
1538
+ },
1539
+ {
1540
+ "annotation": {
1541
+ "items": [
1542
+ {
1543
+ "dtype": "B",
1544
+ "kind": "dtype"
1545
+ },
1546
+ {
1547
+ "base": {
1548
+ "dtype": "T",
1549
+ "kind": "dtype"
1550
+ },
1551
+ "kind": "annotated",
1552
+ "metadata": [
1553
+ {
1554
+ "flags": 0,
1555
+ "kind": "regex",
1556
+ "pattern": "^[\\^=].+"
1557
+ }
1558
+ ]
1559
+ }
1560
+ ],
1561
+ "kind": "union"
1562
+ },
1563
+ "default": false,
1564
+ "has_default": true,
1565
+ "kind": "keyword_only",
1566
+ "name": "autoSize",
1567
+ "role": "attribute"
1568
+ },
1569
+ {
1570
+ "annotation": {
1571
+ "kind": "any"
1572
+ },
1573
+ "has_default": false,
1574
+ "kind": "var_keyword",
1575
+ "name": "attr",
1576
+ "role": "attribute"
1577
+ }
1578
+ ]
1579
+ },
1580
+ "collection_key": null,
1581
+ "doc": null,
1582
+ "inherits_from": null,
1583
+ "node_label": null,
1584
+ "ns": null,
1585
+ "parent_tags": null,
1586
+ "sub_tags": "*"
1587
+ },
1274
1588
  "formlet": {
1275
1589
  "_meta": {
1276
1590
  "gramlot_component": {
@@ -1869,6 +2183,11 @@
1869
2183
  "_meta": {
1870
2184
  "gramlot_component": {
1871
2185
  "childParameters": {
2186
+ "caption_color": {
2187
+ "binding": "read",
2188
+ "dtype": "T",
2189
+ "nullable": true
2190
+ },
1872
2191
  "detachable": {
1873
2192
  "dtype": "B"
1874
2193
  },
@@ -1880,6 +2199,15 @@
1880
2199
  "nullable": true,
1881
2200
  "unique": true
1882
2201
  },
2202
+ "tab_align": {
2203
+ "binding": "read",
2204
+ "default": "start",
2205
+ "dtype": "T",
2206
+ "enum": [
2207
+ "start",
2208
+ "end"
2209
+ ]
2210
+ },
1883
2211
  "title": {
1884
2212
  "default": "",
1885
2213
  "dtype": "T",
@@ -2376,6 +2704,7 @@
2376
2704
  },
2377
2705
  "command": false,
2378
2706
  "dataScope": false,
2707
+ "dragSource": true,
2379
2708
  "parameters": {
2380
2709
  "autoArrange": {
2381
2710
  "binding": "twoWay",
@@ -2387,6 +2716,11 @@
2387
2716
  "default": false,
2388
2717
  "dtype": "B"
2389
2718
  },
2719
+ "autoSnap": {
2720
+ "binding": "read",
2721
+ "default": false,
2722
+ "dtype": "B"
2723
+ },
2390
2724
  "gridStep": {
2391
2725
  "binding": "read",
2392
2726
  "default": 10,
@@ -2521,6 +2855,36 @@
2521
2855
  "name": "gridVisible",
2522
2856
  "role": "attribute"
2523
2857
  },
2858
+ {
2859
+ "annotation": {
2860
+ "items": [
2861
+ {
2862
+ "dtype": "B",
2863
+ "kind": "dtype"
2864
+ },
2865
+ {
2866
+ "base": {
2867
+ "dtype": "T",
2868
+ "kind": "dtype"
2869
+ },
2870
+ "kind": "annotated",
2871
+ "metadata": [
2872
+ {
2873
+ "flags": 0,
2874
+ "kind": "regex",
2875
+ "pattern": "^[\\^=].+"
2876
+ }
2877
+ ]
2878
+ }
2879
+ ],
2880
+ "kind": "union"
2881
+ },
2882
+ "default": false,
2883
+ "has_default": true,
2884
+ "kind": "keyword_only",
2885
+ "name": "autoSnap",
2886
+ "role": "attribute"
2887
+ },
2524
2888
  {
2525
2889
  "annotation": {
2526
2890
  "items": [
@@ -8,6 +8,6 @@ mygramlot = GramlotCollection(
8
8
  module="assets/index.js",
9
9
  css=(),
10
10
  dependencies=(),
11
- build_id="sha256:9d46e94d4c5b753bac291c82e897edaf311eaed570d4767a9cf59778848347b4",
11
+ build_id="sha256:5e1b207caf1f3f592ee7892316ddbb453cec7597bdc66cc4a29519bb697e7218",
12
12
  files=("assets/collection.js", "assets/index.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:9d46e94d4c5b753bac291c82e897edaf311eaed570d4767a9cf59778848347b4";
3
+ export const buildId = "sha256:5e1b207caf1f3f592ee7892316ddbb453cec7597bdc66cc4a29519bb697e7218";
@@ -152,6 +152,11 @@
152
152
  "default": false,
153
153
  "dtype": "B"
154
154
  },
155
+ "eagerCheck": {
156
+ "binding": "read",
157
+ "default": false,
158
+ "dtype": "B"
159
+ },
155
160
  "excludeRoot": {
156
161
  "binding": "read",
157
162
  "default": null,
@@ -777,6 +782,36 @@
777
782
  "name": "checkedPaths_joiner",
778
783
  "role": "attribute"
779
784
  },
785
+ {
786
+ "annotation": {
787
+ "items": [
788
+ {
789
+ "dtype": "B",
790
+ "kind": "dtype"
791
+ },
792
+ {
793
+ "base": {
794
+ "dtype": "T",
795
+ "kind": "dtype"
796
+ },
797
+ "kind": "annotated",
798
+ "metadata": [
799
+ {
800
+ "flags": 0,
801
+ "kind": "regex",
802
+ "pattern": "^[\\^=].+"
803
+ }
804
+ ]
805
+ }
806
+ ],
807
+ "kind": "union"
808
+ },
809
+ "default": false,
810
+ "has_default": true,
811
+ "kind": "keyword_only",
812
+ "name": "eagerCheck",
813
+ "role": "attribute"
814
+ },
780
815
  {
781
816
  "annotation": {
782
817
  "items": [