@gramlot/gramlot 0.3.20 → 0.3.26

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 (172) hide show
  1. package/dist/components/chat/__init__.py +13 -0
  2. package/dist/components/chat/assets/collection.js +9 -0
  3. package/dist/components/chat/assets/index.js +3 -0
  4. package/dist/components/chat/commands.json +7 -0
  5. package/dist/components/chat/grammar.json +48 -0
  6. package/dist/components/editors/__init__.py +2 -2
  7. package/dist/components/editors/assets/collection.js +26 -120912
  8. package/dist/components/editors/assets/index.js +2 -1
  9. package/dist/components/editors/assets/modules/chunk-74O4WKIV.js +1 -0
  10. package/dist/components/editors/assets/modules/chunk-AU4HFPIY.js +1 -0
  11. package/dist/components/editors/assets/modules/chunk-YSGSC7KM.js +1 -0
  12. package/dist/components/editors/assets/modules/code-mirror-engine-RWQTR5G5.js +92 -0
  13. package/dist/components/editors/assets/modules/jodit-engine-MTSA4GZ3.js +1853 -0
  14. package/dist/components/editors/assets/modules/markdown-document-VFC23FAY.js +1 -0
  15. package/dist/components/editors/assets/modules/prose-mirror-engine-GMZPJPNN.js +24 -0
  16. package/dist/components/grid/__init__.py +14 -0
  17. package/dist/components/grid/assets/collection.js +262 -0
  18. package/dist/components/grid/assets/index.js +3 -0
  19. package/dist/components/grid/commands.json +7 -0
  20. package/dist/components/grid/grammar.json +770 -0
  21. package/dist/components/grouplets/__init__.py +13 -0
  22. package/dist/components/grouplets/assets/collection.js +185 -0
  23. package/dist/components/grouplets/assets/index.js +3 -0
  24. package/dist/components/grouplets/assets/modules/chunk-BLMUM44K.js +1 -0
  25. package/dist/components/grouplets/assets/modules/markdown-document-YWNZTOKK.js +1 -0
  26. package/dist/components/grouplets/commands.json +7 -0
  27. package/dist/components/grouplets/grammar.json +355 -0
  28. package/dist/components/inputs/__init__.py +1 -1
  29. package/dist/components/inputs/assets/collection.js +65 -24511
  30. package/dist/components/inputs/assets/index.js +2 -1
  31. package/dist/components/inputs/grammar.json +278 -6
  32. package/dist/components/layout/__init__.py +1 -1
  33. package/dist/components/layout/assets/collection.js +68 -26732
  34. package/dist/components/layout/assets/index.js +2 -1
  35. package/dist/components/layout/grammar.json +39 -0
  36. package/dist/components/selection_trial/__init__.py +13 -0
  37. package/dist/components/selection_trial/assets/collection.js +4 -0
  38. package/dist/components/selection_trial/assets/index.js +3 -0
  39. package/dist/components/selection_trial/commands.json +7 -0
  40. package/dist/components/selection_trial/grammar.json +587 -0
  41. package/dist/components/tree/__init__.py +1 -1
  42. package/dist/components/tree/assets/collection.js +27 -24612
  43. package/dist/components/tree/assets/index.js +2 -1
  44. package/dist/components/tree/grammar.json +341 -1
  45. package/dist/components/typst/__init__.py +2 -2
  46. package/dist/components/typst/assets/collection.js +12 -4
  47. package/dist/components/typst/assets/index.js +2 -1
  48. package/dist/components/typst/assets/modules/chunk-BLMUM44K.js +1 -0
  49. package/dist/components/typst/assets/modules/typst-client-JHC6UVYG.js +4 -0
  50. package/dist/components/uploads/__init__.py +13 -0
  51. package/dist/components/uploads/assets/collection.js +67 -0
  52. package/dist/components/uploads/assets/index.js +3 -0
  53. package/dist/components/uploads/commands.json +7 -0
  54. package/dist/components/uploads/grammar.json +789 -0
  55. package/dist/gramlot-markdown.js +16 -0
  56. package/dist/gramlot.js +6861 -1395
  57. package/dist/gramlot.min.js +1595 -46
  58. package/dist/runtime-notices.json +28 -0
  59. package/package.json +10 -3
  60. package/src/binding/grid-struct.js +63 -0
  61. package/src/binding/installation.js +5 -2
  62. package/src/binding/providers.js +4 -1
  63. package/src/binding/remote-resolver.js +1 -8
  64. package/src/binding/runtime.js +90 -6
  65. package/src/binding/validation-context.js +40 -0
  66. package/src/browser-camera-provider.d.ts +8 -0
  67. package/src/browser-camera-provider.js +104 -0
  68. package/src/builder/gramlot-builder.d.ts +5 -0
  69. package/src/builder/gramlot-builder.js +16 -0
  70. package/src/builder/source.js +34 -0
  71. package/src/chat.d.ts +12 -0
  72. package/src/chat.js +198 -0
  73. package/src/collection-artifact.js +1 -1
  74. package/src/components/attachment-manager.js +160 -0
  75. package/src/components/bases.js +19 -6
  76. package/src/components/border-container.js +86 -8
  77. package/src/components/buttons.js +11 -1
  78. package/src/components/chat.js +28 -0
  79. package/src/components/choice-editor.js +106 -38
  80. package/src/components/database-choices.js +133 -9
  81. package/src/components/editing-status-styles.js +26 -0
  82. package/src/components/editing-status.js +115 -0
  83. package/src/components/field-state.js +42 -54
  84. package/src/components/grid-cell-editor.js +181 -0
  85. package/src/components/grid-grammar.json +258 -0
  86. package/src/components/grid-header-interaction.js +196 -0
  87. package/src/components/grid-row-interaction.js +184 -0
  88. package/src/components/grid-row-layout.js +96 -0
  89. package/src/components/grid-rows.js +28 -0
  90. package/src/components/grid-search-box.js +142 -0
  91. package/src/components/grid-search-styles.js +42 -0
  92. package/src/components/grid-search.js +37 -0
  93. package/src/components/grid-structure.js +85 -0
  94. package/src/components/grid-styles.js +201 -0
  95. package/src/components/grid.js +666 -0
  96. package/src/components/grouplet-card.js +445 -0
  97. package/src/components/grouplets.js +17 -0
  98. package/src/components/html-preview.js +17 -4
  99. package/src/components/image-crop-dialog.js +272 -0
  100. package/src/components/image-crop.js +79 -0
  101. package/src/components/image-uploader.js +252 -0
  102. package/src/components/inputs.js +2 -1
  103. package/src/components/jodit-engine.js +1 -1
  104. package/src/components/markdown-document.js +2 -2
  105. package/src/components/menus.js +1 -0
  106. package/src/components/registry.js +4 -3
  107. package/src/components/screen-capture.js +43 -0
  108. package/src/components/selected-container.js +6 -2
  109. package/src/components/tray-pane.js +32 -4
  110. package/src/components/tree.js +416 -17
  111. package/src/components/typed-editor.js +23 -11
  112. package/src/components/upload-engine.js +156 -0
  113. package/src/components/uploader.js +208 -0
  114. package/src/components/uploads.js +7 -0
  115. package/src/editing-session.d.ts +25 -0
  116. package/src/editing-session.js +396 -0
  117. package/src/experiments/selection-transfer.js +78 -0
  118. package/src/experiments/selection-trial.js +64 -0
  119. package/src/experiments/window-selection.js +124 -0
  120. package/src/format.js +22 -7
  121. package/src/gramlot.d.ts +2 -0
  122. package/src/gramlot.js +2 -1
  123. package/src/handlers/device-handler.d.ts +2 -1
  124. package/src/handlers/rpc-handler.d.ts +3 -3
  125. package/src/index-page-styles.js +2 -1
  126. package/src/index.d.ts +16 -1
  127. package/src/index.js +16 -1
  128. package/src/inout.d.ts +2 -0
  129. package/src/inout.js +6 -0
  130. package/src/markdown-loader.d.ts +1 -0
  131. package/src/markdown-loader.js +4 -0
  132. package/src/markdown.d.ts +1 -0
  133. package/src/markdown.js +2 -0
  134. package/src/media-frame.js +9 -0
  135. package/src/renderer/attributes.js +7 -1
  136. package/src/renderer/gramlot-renderer.d.ts +2 -0
  137. package/src/renderer/gramlot-renderer.js +39 -3
  138. package/src/server/assets.d.ts +1 -1
  139. package/src/server/assets.js +1 -1
  140. package/src/server/gramlot-server.d.ts +10 -1
  141. package/src/server/gramlot-server.js +96 -8
  142. package/src/server/index.d.ts +2 -0
  143. package/src/server/index.js +2 -0
  144. package/src/server/page-base.js +17 -4
  145. package/src/server/page.d.ts +13 -1
  146. package/src/server/page.js +6 -0
  147. package/src/server/source-import.d.ts +2 -0
  148. package/src/server/source-import.js +31 -0
  149. package/src/server/upload.d.ts +20 -0
  150. package/src/server/upload.js +142 -0
  151. package/src/server/visual-editor.d.ts +11 -0
  152. package/src/server/visual-editor.js +149 -0
  153. package/src/source-picker.d.ts +9 -0
  154. package/src/source-picker.js +57 -0
  155. package/src/stores/bag-collection-store.js +51 -0
  156. package/src/stores/bag-collection-view.js +127 -0
  157. package/src/stores/collection-filter.js +77 -0
  158. package/src/tree-store.d.ts +24 -0
  159. package/src/tree-store.js +193 -0
  160. package/src/validation-run.js +50 -0
  161. package/src/view/button.js +8 -5
  162. package/src/view/controls.js +31 -32
  163. package/src/view/grouplet-card.js +54 -0
  164. package/src/view/html.js +29 -4
  165. package/src/view/labelbox.js +7 -3
  166. package/src/visual-editor-icons.js +10 -0
  167. package/src/visual-editor.d.ts +56 -0
  168. package/src/visual-editor.js +844 -0
  169. package/themes/gramlot-base/theme.css +127 -0
  170. package/themes/gramlot-compact/theme.css +8 -0
  171. package/themes/joanna/theme.css +8 -0
  172. package/themes/mimi/theme.css +8 -0
@@ -1,2 +1,3 @@
1
1
  export {default} from "./collection.js";
2
- export const buildId = "sha256:6031287aa782b1190f98599925f20ad4af548de7f9a32cdde7448fbac6a4a8ce";
2
+ export * from "./collection.js";
3
+ export const buildId = "sha256:427da7b6b4f4089963c1c882cfaff77f5558b783146b0186d670cccc218c823e";
@@ -15535,10 +15535,22 @@
15535
15535
  "dataScope": false,
15536
15536
  "labelbox": true,
15537
15537
  "parameters": {
15538
+ "auxColumns": {
15539
+ "binding": "read",
15540
+ "dtype": "T"
15541
+ },
15542
+ "caption_field": {
15543
+ "binding": "read",
15544
+ "dtype": "T"
15545
+ },
15538
15546
  "columns": {
15539
15547
  "binding": "read",
15540
15548
  "dtype": "T"
15541
15549
  },
15550
+ "condition": {
15551
+ "binding": "read",
15552
+ "dtype": "T"
15553
+ },
15542
15554
  "dbtable": {
15543
15555
  "binding": "read",
15544
15556
  "dtype": "T"
@@ -15550,8 +15562,9 @@
15550
15562
  },
15551
15563
  "emptyLabel": {
15552
15564
  "binding": "read",
15553
- "default": "",
15554
- "dtype": "T"
15565
+ "default": "Clear selection",
15566
+ "dtype": "T",
15567
+ "qualification": "intl_str"
15555
15568
  },
15556
15569
  "hasDownArrow": {
15557
15570
  "binding": "read",
@@ -15632,6 +15645,15 @@
15632
15645
  "selectedRecord": {
15633
15646
  "dtype": "T"
15634
15647
  },
15648
+ "template": {
15649
+ "binding": "read",
15650
+ "dtype": "T"
15651
+ },
15652
+ "templateNull": {
15653
+ "binding": "read",
15654
+ "default": "",
15655
+ "dtype": "T"
15656
+ },
15635
15657
  "validate__onResult": {
15636
15658
  "dtype": "T",
15637
15659
  "nullable": true
@@ -16012,6 +16034,14 @@
16012
16034
  "binding": "twoWay",
16013
16035
  "dtype": "T",
16014
16036
  "nullable": true
16037
+ },
16038
+ "weakCondition": {
16039
+ "binding": "read",
16040
+ "default": false,
16041
+ "dtype": [
16042
+ "B",
16043
+ "T"
16044
+ ]
16015
16045
  }
16016
16046
  },
16017
16047
  "presentationDefaults": []
@@ -17757,6 +17787,62 @@
17757
17787
  "name": "dbtable",
17758
17788
  "role": "attribute"
17759
17789
  },
17790
+ {
17791
+ "annotation": {
17792
+ "dtype": "T",
17793
+ "kind": "dtype"
17794
+ },
17795
+ "default": null,
17796
+ "has_default": true,
17797
+ "kind": "keyword_only",
17798
+ "name": "caption_field",
17799
+ "role": "attribute"
17800
+ },
17801
+ {
17802
+ "annotation": {
17803
+ "dtype": "T",
17804
+ "kind": "dtype"
17805
+ },
17806
+ "default": null,
17807
+ "has_default": true,
17808
+ "kind": "keyword_only",
17809
+ "name": "condition",
17810
+ "role": "attribute"
17811
+ },
17812
+ {
17813
+ "annotation": {
17814
+ "items": [
17815
+ {
17816
+ "dtype": "B",
17817
+ "kind": "dtype"
17818
+ },
17819
+ {
17820
+ "dtype": "T",
17821
+ "kind": "dtype"
17822
+ },
17823
+ {
17824
+ "base": {
17825
+ "dtype": "T",
17826
+ "kind": "dtype"
17827
+ },
17828
+ "kind": "annotated",
17829
+ "metadata": [
17830
+ {
17831
+ "flags": 0,
17832
+ "kind": "regex",
17833
+ "pattern": "^[\\^=].+"
17834
+ }
17835
+ ]
17836
+ }
17837
+ ],
17838
+ "kind": "union"
17839
+ },
17840
+ "default": false,
17841
+ "has_default": true,
17842
+ "kind": "keyword_only",
17843
+ "name": "weakCondition",
17844
+ "role": "attribute"
17845
+ },
17760
17846
  {
17761
17847
  "annotation": {
17762
17848
  "dtype": "T",
@@ -17790,6 +17876,39 @@
17790
17876
  "name": "hiddenColumns",
17791
17877
  "role": "attribute"
17792
17878
  },
17879
+ {
17880
+ "annotation": {
17881
+ "dtype": "T",
17882
+ "kind": "dtype"
17883
+ },
17884
+ "default": null,
17885
+ "has_default": true,
17886
+ "kind": "keyword_only",
17887
+ "name": "auxColumns",
17888
+ "role": "attribute"
17889
+ },
17890
+ {
17891
+ "annotation": {
17892
+ "dtype": "T",
17893
+ "kind": "dtype"
17894
+ },
17895
+ "default": null,
17896
+ "has_default": true,
17897
+ "kind": "keyword_only",
17898
+ "name": "template",
17899
+ "role": "attribute"
17900
+ },
17901
+ {
17902
+ "annotation": {
17903
+ "dtype": "T",
17904
+ "kind": "dtype"
17905
+ },
17906
+ "default": "",
17907
+ "has_default": true,
17908
+ "kind": "keyword_only",
17909
+ "name": "templateNull",
17910
+ "role": "attribute"
17911
+ },
17793
17912
  {
17794
17913
  "annotation": {
17795
17914
  "dtype": "T",
@@ -17926,7 +18045,7 @@
17926
18045
  "dtype": "T",
17927
18046
  "kind": "dtype"
17928
18047
  },
17929
- "default": "",
18048
+ "default": "Clear selection",
17930
18049
  "has_default": true,
17931
18050
  "kind": "keyword_only",
17932
18051
  "name": "emptyLabel",
@@ -17996,10 +18115,22 @@
17996
18115
  "default": false,
17997
18116
  "dtype": "B"
17998
18117
  },
18118
+ "auxColumns": {
18119
+ "binding": "read",
18120
+ "dtype": "T"
18121
+ },
18122
+ "caption_field": {
18123
+ "binding": "read",
18124
+ "dtype": "T"
18125
+ },
17999
18126
  "columns": {
18000
18127
  "binding": "read",
18001
18128
  "dtype": "T"
18002
18129
  },
18130
+ "condition": {
18131
+ "binding": "read",
18132
+ "dtype": "T"
18133
+ },
18003
18134
  "dbtable": {
18004
18135
  "binding": "read",
18005
18136
  "dtype": "T"
@@ -18011,8 +18142,9 @@
18011
18142
  },
18012
18143
  "emptyLabel": {
18013
18144
  "binding": "read",
18014
- "default": "",
18015
- "dtype": "T"
18145
+ "default": "Clear selection",
18146
+ "dtype": "T",
18147
+ "qualification": "intl_str"
18016
18148
  },
18017
18149
  "hasDownArrow": {
18018
18150
  "binding": "read",
@@ -18093,6 +18225,15 @@
18093
18225
  "selectedRecord": {
18094
18226
  "dtype": "T"
18095
18227
  },
18228
+ "template": {
18229
+ "binding": "read",
18230
+ "dtype": "T"
18231
+ },
18232
+ "templateNull": {
18233
+ "binding": "read",
18234
+ "default": "",
18235
+ "dtype": "T"
18236
+ },
18096
18237
  "validate__onResult": {
18097
18238
  "dtype": "T",
18098
18239
  "nullable": true
@@ -18476,6 +18617,14 @@
18476
18617
  "L"
18477
18618
  ],
18478
18619
  "nullable": true
18620
+ },
18621
+ "weakCondition": {
18622
+ "binding": "read",
18623
+ "default": false,
18624
+ "dtype": [
18625
+ "B",
18626
+ "T"
18627
+ ]
18479
18628
  }
18480
18629
  },
18481
18630
  "presentationDefaults": []
@@ -20239,6 +20388,62 @@
20239
20388
  "name": "dbtable",
20240
20389
  "role": "attribute"
20241
20390
  },
20391
+ {
20392
+ "annotation": {
20393
+ "dtype": "T",
20394
+ "kind": "dtype"
20395
+ },
20396
+ "default": null,
20397
+ "has_default": true,
20398
+ "kind": "keyword_only",
20399
+ "name": "caption_field",
20400
+ "role": "attribute"
20401
+ },
20402
+ {
20403
+ "annotation": {
20404
+ "dtype": "T",
20405
+ "kind": "dtype"
20406
+ },
20407
+ "default": null,
20408
+ "has_default": true,
20409
+ "kind": "keyword_only",
20410
+ "name": "condition",
20411
+ "role": "attribute"
20412
+ },
20413
+ {
20414
+ "annotation": {
20415
+ "items": [
20416
+ {
20417
+ "dtype": "B",
20418
+ "kind": "dtype"
20419
+ },
20420
+ {
20421
+ "dtype": "T",
20422
+ "kind": "dtype"
20423
+ },
20424
+ {
20425
+ "base": {
20426
+ "dtype": "T",
20427
+ "kind": "dtype"
20428
+ },
20429
+ "kind": "annotated",
20430
+ "metadata": [
20431
+ {
20432
+ "flags": 0,
20433
+ "kind": "regex",
20434
+ "pattern": "^[\\^=].+"
20435
+ }
20436
+ ]
20437
+ }
20438
+ ],
20439
+ "kind": "union"
20440
+ },
20441
+ "default": false,
20442
+ "has_default": true,
20443
+ "kind": "keyword_only",
20444
+ "name": "weakCondition",
20445
+ "role": "attribute"
20446
+ },
20242
20447
  {
20243
20448
  "annotation": {
20244
20449
  "dtype": "T",
@@ -20272,6 +20477,39 @@
20272
20477
  "name": "hiddenColumns",
20273
20478
  "role": "attribute"
20274
20479
  },
20480
+ {
20481
+ "annotation": {
20482
+ "dtype": "T",
20483
+ "kind": "dtype"
20484
+ },
20485
+ "default": null,
20486
+ "has_default": true,
20487
+ "kind": "keyword_only",
20488
+ "name": "auxColumns",
20489
+ "role": "attribute"
20490
+ },
20491
+ {
20492
+ "annotation": {
20493
+ "dtype": "T",
20494
+ "kind": "dtype"
20495
+ },
20496
+ "default": null,
20497
+ "has_default": true,
20498
+ "kind": "keyword_only",
20499
+ "name": "template",
20500
+ "role": "attribute"
20501
+ },
20502
+ {
20503
+ "annotation": {
20504
+ "dtype": "T",
20505
+ "kind": "dtype"
20506
+ },
20507
+ "default": "",
20508
+ "has_default": true,
20509
+ "kind": "keyword_only",
20510
+ "name": "templateNull",
20511
+ "role": "attribute"
20512
+ },
20275
20513
  {
20276
20514
  "annotation": {
20277
20515
  "dtype": "T",
@@ -20408,7 +20646,7 @@
20408
20646
  "dtype": "T",
20409
20647
  "kind": "dtype"
20410
20648
  },
20411
- "default": "",
20649
+ "default": "Clear selection",
20412
20650
  "has_default": true,
20413
20651
  "kind": "keyword_only",
20414
20652
  "name": "emptyLabel",
@@ -20496,6 +20734,40 @@
20496
20734
  "parent_tags": null,
20497
20735
  "sub_tags": ""
20498
20736
  },
20737
+ "editingStatus": {
20738
+ "_meta": {
20739
+ "gramlot_component": {
20740
+ "command": false,
20741
+ "dataScope": false,
20742
+ "parameters": {},
20743
+ "presentationDefaults": [],
20744
+ "sourceContext": true
20745
+ },
20746
+ "render_tag": "gramlot-editing-status"
20747
+ },
20748
+ "attributes": {
20749
+ "accepts_var_keyword": true,
20750
+ "accepts_var_positional": false,
20751
+ "parameters": [
20752
+ {
20753
+ "annotation": {
20754
+ "kind": "any"
20755
+ },
20756
+ "has_default": false,
20757
+ "kind": "var_keyword",
20758
+ "name": "attr",
20759
+ "role": "attribute"
20760
+ }
20761
+ ]
20762
+ },
20763
+ "collection_key": null,
20764
+ "doc": null,
20765
+ "inherits_from": null,
20766
+ "node_label": null,
20767
+ "ns": null,
20768
+ "parent_tags": null,
20769
+ "sub_tags": ""
20770
+ },
20499
20771
  "filteringSelect": {
20500
20772
  "_meta": {
20501
20773
  "gramlot_component": {
@@ -8,6 +8,6 @@ mygramlot = GramlotCollection(
8
8
  module="assets/index.js",
9
9
  css=(),
10
10
  dependencies=(),
11
- build_id="sha256:5dc580e4c9fce6697cfbbee96494ae5856595b1646d4b1fc30fab8108592e7d8",
11
+ build_id="sha256:36d4e99591418b1819cb6998466b25aee138248db83e30a1a209a3bdef8e4e28",
12
12
  files=("assets/collection.js", "assets/index.js", "commands.json", "grammar.json",),
13
13
  )