@gramlot/gramlot 0.3.19 → 0.3.24
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/dist/components/chat/__init__.py +13 -0
- package/dist/components/chat/assets/collection.js +9 -0
- package/dist/components/chat/assets/index.js +3 -0
- package/dist/components/chat/commands.json +7 -0
- package/dist/components/chat/grammar.json +48 -0
- package/dist/components/editors/__init__.py +2 -2
- package/dist/components/editors/assets/collection.js +22 -120909
- package/dist/components/editors/assets/index.js +2 -1
- package/dist/components/editors/assets/modules/chunk-AU4HFPIY.js +1 -0
- package/dist/components/editors/assets/modules/chunk-MMJXUHRQ.js +3 -0
- package/dist/components/editors/assets/modules/chunk-OCFLP2K4.js +16 -0
- package/dist/components/editors/assets/modules/chunk-YSGSC7KM.js +1 -0
- package/dist/components/editors/assets/modules/code-mirror-engine-QX4A5FVO.js +92 -0
- package/dist/components/editors/assets/modules/jodit-engine-MMSPIWM7.js +1853 -0
- package/dist/components/editors/assets/modules/prose-mirror-engine-IXTRTG6B.js +24 -0
- package/dist/components/grid/__init__.py +13 -0
- package/dist/components/grid/assets/collection.js +211 -0
- package/dist/components/grid/assets/index.js +3 -0
- package/dist/components/grid/commands.json +7 -0
- package/dist/components/grid/grammar.json +714 -0
- package/dist/components/grouplets/__init__.py +13 -0
- package/dist/components/grouplets/assets/collection.js +202 -0
- package/dist/components/grouplets/assets/index.js +3 -0
- package/dist/components/grouplets/commands.json +7 -0
- package/dist/components/grouplets/grammar.json +355 -0
- package/dist/components/inputs/__init__.py +1 -1
- package/dist/components/inputs/assets/collection.js +32 -24503
- package/dist/components/inputs/assets/index.js +2 -1
- package/dist/components/inputs/grammar.json +214 -6
- package/dist/components/layout/__init__.py +1 -1
- package/dist/components/layout/assets/collection.js +27 -26701
- package/dist/components/layout/assets/index.js +2 -1
- package/dist/components/layout/grammar.json +4 -0
- package/dist/components/selection_trial/__init__.py +13 -0
- package/dist/components/selection_trial/assets/collection.js +4 -0
- package/dist/components/selection_trial/assets/index.js +3 -0
- package/dist/components/selection_trial/commands.json +7 -0
- package/dist/components/selection_trial/grammar.json +552 -0
- package/dist/components/tree/__init__.py +1 -1
- package/dist/components/tree/assets/collection.js +24 -24612
- package/dist/components/tree/assets/index.js +2 -1
- package/dist/components/typst/__init__.py +2 -2
- package/dist/components/typst/assets/collection.js +12 -4
- package/dist/components/typst/assets/index.js +2 -1
- package/dist/components/typst/assets/modules/chunk-BLMUM44K.js +1 -0
- package/dist/components/typst/assets/modules/typst-client-JHC6UVYG.js +4 -0
- package/dist/gramlot.js +2749 -1627
- package/dist/gramlot.min.js +46 -41
- package/package.json +7 -2
- package/src/binding/grid-struct.js +63 -0
- package/src/binding/installation.js +5 -2
- package/src/binding/runtime.js +51 -6
- package/src/builder/gramlot-builder.d.ts +5 -0
- package/src/builder/gramlot-builder.js +16 -0
- package/src/builder/source.js +23 -0
- package/src/chat.d.ts +12 -0
- package/src/chat.js +198 -0
- package/src/collection-artifact.js +1 -1
- package/src/components/bases.js +2 -0
- package/src/components/chat.js +28 -0
- package/src/components/choice-editor.js +89 -34
- package/src/components/database-choices.js +131 -9
- package/src/components/field-state.js +10 -1
- package/src/components/grid-grammar.json +237 -0
- package/src/components/grid-header-interaction.js +196 -0
- package/src/components/grid-row-interaction.js +184 -0
- package/src/components/grid-row-layout.js +96 -0
- package/src/components/grid-rows.js +28 -0
- package/src/components/grid-search-box.js +142 -0
- package/src/components/grid-search-styles.js +42 -0
- package/src/components/grid-search.js +37 -0
- package/src/components/grid-structure.js +84 -0
- package/src/components/grid-styles.js +151 -0
- package/src/components/grid.js +589 -0
- package/src/components/grouplet-card.js +437 -0
- package/src/components/grouplets.js +17 -0
- package/src/components/menus.js +1 -0
- package/src/components/registry.js +4 -3
- package/src/components/tray-pane.js +32 -4
- package/src/components/typed-editor.js +4 -2
- package/src/experiments/selection-transfer.js +78 -0
- package/src/experiments/selection-trial.js +48 -0
- package/src/experiments/window-selection.js +124 -0
- package/src/form-state.d.ts +20 -0
- package/src/form-state.js +198 -0
- package/src/index-page-styles.js +1 -1
- package/src/index.d.ts +3 -1
- package/src/index.js +3 -1
- package/src/renderer/gramlot-renderer.js +8 -1
- package/src/server/gramlot-server.d.ts +2 -0
- package/src/server/gramlot-server.js +13 -1
- package/src/stores/bag-collection-store.js +51 -0
- package/src/stores/bag-collection-view.js +127 -0
- package/src/stores/collection-filter.js +77 -0
- package/src/view/controls.js +33 -1
- package/src/view/grouplet-card.js +54 -0
- package/src/view/html.js +20 -3
- package/src/view/labelbox.js +7 -3
- package/themes/gramlot-base/theme.css +28 -0
- package/themes/gramlot-compact/theme.css +8 -0
- package/themes/joanna/theme.css +8 -0
- package/themes/mimi/theme.css +8 -0
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
{
|
|
2
|
+
"abstracts": {},
|
|
3
|
+
"document_format": {
|
|
4
|
+
"name": "builder_grammar",
|
|
5
|
+
"version": "1.1"
|
|
6
|
+
},
|
|
7
|
+
"elements": {
|
|
8
|
+
"grouplet": {
|
|
9
|
+
"_meta": {
|
|
10
|
+
"gramlot_component": {
|
|
11
|
+
"command": false,
|
|
12
|
+
"dataScope": false,
|
|
13
|
+
"parameters": {
|
|
14
|
+
"remote": {
|
|
15
|
+
"binding": "read",
|
|
16
|
+
"dtype": "T",
|
|
17
|
+
"nullable": true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"presentationDefaults": []
|
|
21
|
+
},
|
|
22
|
+
"render_tag": "gramlot-grouplet"
|
|
23
|
+
},
|
|
24
|
+
"attributes": {
|
|
25
|
+
"accepts_var_keyword": true,
|
|
26
|
+
"accepts_var_positional": false,
|
|
27
|
+
"parameters": [
|
|
28
|
+
{
|
|
29
|
+
"annotation": {
|
|
30
|
+
"items": [
|
|
31
|
+
{
|
|
32
|
+
"dtype": "T",
|
|
33
|
+
"kind": "dtype"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"dtype": "NN",
|
|
37
|
+
"kind": "dtype"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"kind": "union"
|
|
41
|
+
},
|
|
42
|
+
"default": null,
|
|
43
|
+
"has_default": true,
|
|
44
|
+
"kind": "keyword_only",
|
|
45
|
+
"name": "remote",
|
|
46
|
+
"role": "attribute"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"annotation": {
|
|
50
|
+
"kind": "any"
|
|
51
|
+
},
|
|
52
|
+
"has_default": false,
|
|
53
|
+
"kind": "var_keyword",
|
|
54
|
+
"name": "attr",
|
|
55
|
+
"role": "attribute"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"collection_key": null,
|
|
60
|
+
"doc": null,
|
|
61
|
+
"inherits_from": null,
|
|
62
|
+
"node_label": null,
|
|
63
|
+
"ns": null,
|
|
64
|
+
"parent_tags": null,
|
|
65
|
+
"sub_tags": "*"
|
|
66
|
+
},
|
|
67
|
+
"groupletCard": {
|
|
68
|
+
"_meta": {
|
|
69
|
+
"gramlot_component": {
|
|
70
|
+
"command": false,
|
|
71
|
+
"dataScope": false,
|
|
72
|
+
"parameters": {
|
|
73
|
+
"checkbox": {
|
|
74
|
+
"binding": "twoWay",
|
|
75
|
+
"default": null,
|
|
76
|
+
"dtype": "B",
|
|
77
|
+
"nullable": true
|
|
78
|
+
},
|
|
79
|
+
"checkboxLabel": {
|
|
80
|
+
"binding": "read",
|
|
81
|
+
"default": "",
|
|
82
|
+
"dtype": "T",
|
|
83
|
+
"qualification": "intl_str"
|
|
84
|
+
},
|
|
85
|
+
"chromeSide": {
|
|
86
|
+
"binding": "read",
|
|
87
|
+
"default": "top",
|
|
88
|
+
"dtype": "T",
|
|
89
|
+
"enum": [
|
|
90
|
+
"top",
|
|
91
|
+
"left",
|
|
92
|
+
"right"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"collapsed": {
|
|
96
|
+
"binding": "twoWay",
|
|
97
|
+
"default": false,
|
|
98
|
+
"dtype": "B"
|
|
99
|
+
},
|
|
100
|
+
"collapsible": {
|
|
101
|
+
"binding": "read",
|
|
102
|
+
"default": false,
|
|
103
|
+
"dtype": "B"
|
|
104
|
+
},
|
|
105
|
+
"delitem": {
|
|
106
|
+
"binding": "read",
|
|
107
|
+
"default": null,
|
|
108
|
+
"dtype": "B",
|
|
109
|
+
"nullable": true
|
|
110
|
+
},
|
|
111
|
+
"doc": {
|
|
112
|
+
"binding": "read",
|
|
113
|
+
"default": "",
|
|
114
|
+
"dtype": "T"
|
|
115
|
+
},
|
|
116
|
+
"remote": {
|
|
117
|
+
"binding": "read",
|
|
118
|
+
"dtype": "T",
|
|
119
|
+
"nullable": true
|
|
120
|
+
},
|
|
121
|
+
"title": {
|
|
122
|
+
"binding": "read",
|
|
123
|
+
"default": "",
|
|
124
|
+
"dtype": "T",
|
|
125
|
+
"qualification": "intl_str"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"presentationDefaults": [],
|
|
129
|
+
"sourceContext": true
|
|
130
|
+
},
|
|
131
|
+
"render_tag": "gramlot-grouplet-card"
|
|
132
|
+
},
|
|
133
|
+
"attributes": {
|
|
134
|
+
"accepts_var_keyword": true,
|
|
135
|
+
"accepts_var_positional": false,
|
|
136
|
+
"parameters": [
|
|
137
|
+
{
|
|
138
|
+
"annotation": {
|
|
139
|
+
"items": [
|
|
140
|
+
{
|
|
141
|
+
"dtype": "T",
|
|
142
|
+
"kind": "dtype"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"dtype": "NN",
|
|
146
|
+
"kind": "dtype"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"kind": "union"
|
|
150
|
+
},
|
|
151
|
+
"default": null,
|
|
152
|
+
"has_default": true,
|
|
153
|
+
"kind": "keyword_only",
|
|
154
|
+
"name": "remote",
|
|
155
|
+
"role": "attribute"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"annotation": {
|
|
159
|
+
"dtype": "T",
|
|
160
|
+
"kind": "dtype"
|
|
161
|
+
},
|
|
162
|
+
"default": "",
|
|
163
|
+
"has_default": true,
|
|
164
|
+
"kind": "keyword_only",
|
|
165
|
+
"name": "title",
|
|
166
|
+
"role": "attribute"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"annotation": {
|
|
170
|
+
"dtype": "T",
|
|
171
|
+
"kind": "dtype"
|
|
172
|
+
},
|
|
173
|
+
"default": "top",
|
|
174
|
+
"has_default": true,
|
|
175
|
+
"kind": "keyword_only",
|
|
176
|
+
"name": "chromeSide",
|
|
177
|
+
"role": "attribute"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"annotation": {
|
|
181
|
+
"items": [
|
|
182
|
+
{
|
|
183
|
+
"dtype": "B",
|
|
184
|
+
"kind": "dtype"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"base": {
|
|
188
|
+
"dtype": "T",
|
|
189
|
+
"kind": "dtype"
|
|
190
|
+
},
|
|
191
|
+
"kind": "annotated",
|
|
192
|
+
"metadata": [
|
|
193
|
+
{
|
|
194
|
+
"flags": 0,
|
|
195
|
+
"kind": "regex",
|
|
196
|
+
"pattern": "^[\\^=].+"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"kind": "union"
|
|
202
|
+
},
|
|
203
|
+
"default": false,
|
|
204
|
+
"has_default": true,
|
|
205
|
+
"kind": "keyword_only",
|
|
206
|
+
"name": "collapsible",
|
|
207
|
+
"role": "attribute"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"annotation": {
|
|
211
|
+
"items": [
|
|
212
|
+
{
|
|
213
|
+
"dtype": "B",
|
|
214
|
+
"kind": "dtype"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"base": {
|
|
218
|
+
"dtype": "T",
|
|
219
|
+
"kind": "dtype"
|
|
220
|
+
},
|
|
221
|
+
"kind": "annotated",
|
|
222
|
+
"metadata": [
|
|
223
|
+
{
|
|
224
|
+
"flags": 0,
|
|
225
|
+
"kind": "regex",
|
|
226
|
+
"pattern": "^[\\^=].+"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"kind": "union"
|
|
232
|
+
},
|
|
233
|
+
"default": false,
|
|
234
|
+
"has_default": true,
|
|
235
|
+
"kind": "keyword_only",
|
|
236
|
+
"name": "collapsed",
|
|
237
|
+
"role": "attribute"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"annotation": {
|
|
241
|
+
"items": [
|
|
242
|
+
{
|
|
243
|
+
"dtype": "B",
|
|
244
|
+
"kind": "dtype"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"dtype": "NN",
|
|
248
|
+
"kind": "dtype"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"base": {
|
|
252
|
+
"dtype": "T",
|
|
253
|
+
"kind": "dtype"
|
|
254
|
+
},
|
|
255
|
+
"kind": "annotated",
|
|
256
|
+
"metadata": [
|
|
257
|
+
{
|
|
258
|
+
"flags": 0,
|
|
259
|
+
"kind": "regex",
|
|
260
|
+
"pattern": "^[\\^=].+"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"kind": "union"
|
|
266
|
+
},
|
|
267
|
+
"default": null,
|
|
268
|
+
"has_default": true,
|
|
269
|
+
"kind": "keyword_only",
|
|
270
|
+
"name": "checkbox",
|
|
271
|
+
"role": "attribute"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"annotation": {
|
|
275
|
+
"dtype": "T",
|
|
276
|
+
"kind": "dtype"
|
|
277
|
+
},
|
|
278
|
+
"default": "",
|
|
279
|
+
"has_default": true,
|
|
280
|
+
"kind": "keyword_only",
|
|
281
|
+
"name": "checkboxLabel",
|
|
282
|
+
"role": "attribute"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"annotation": {
|
|
286
|
+
"items": [
|
|
287
|
+
{
|
|
288
|
+
"dtype": "B",
|
|
289
|
+
"kind": "dtype"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"dtype": "NN",
|
|
293
|
+
"kind": "dtype"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"base": {
|
|
297
|
+
"dtype": "T",
|
|
298
|
+
"kind": "dtype"
|
|
299
|
+
},
|
|
300
|
+
"kind": "annotated",
|
|
301
|
+
"metadata": [
|
|
302
|
+
{
|
|
303
|
+
"flags": 0,
|
|
304
|
+
"kind": "regex",
|
|
305
|
+
"pattern": "^[\\^=].+"
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"kind": "union"
|
|
311
|
+
},
|
|
312
|
+
"default": null,
|
|
313
|
+
"has_default": true,
|
|
314
|
+
"kind": "keyword_only",
|
|
315
|
+
"name": "delitem",
|
|
316
|
+
"role": "attribute"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"annotation": {
|
|
320
|
+
"dtype": "T",
|
|
321
|
+
"kind": "dtype"
|
|
322
|
+
},
|
|
323
|
+
"default": "",
|
|
324
|
+
"has_default": true,
|
|
325
|
+
"kind": "keyword_only",
|
|
326
|
+
"name": "doc",
|
|
327
|
+
"role": "attribute"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"annotation": {
|
|
331
|
+
"kind": "any"
|
|
332
|
+
},
|
|
333
|
+
"has_default": false,
|
|
334
|
+
"kind": "var_keyword",
|
|
335
|
+
"name": "attr",
|
|
336
|
+
"role": "attribute"
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
"collection_key": null,
|
|
341
|
+
"doc": null,
|
|
342
|
+
"inherits_from": null,
|
|
343
|
+
"node_label": null,
|
|
344
|
+
"ns": null,
|
|
345
|
+
"parent_tags": null,
|
|
346
|
+
"sub_tags": "*"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"grammar": {
|
|
350
|
+
"description": null,
|
|
351
|
+
"name": "grouplets",
|
|
352
|
+
"title": "grouplets",
|
|
353
|
+
"version": null
|
|
354
|
+
}
|
|
355
|
+
}
|
|
@@ -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:ff8258604f2832d230246baf776aa0ab456ca91182bff4e37c47e3aea226bd5f",
|
|
12
12
|
files=("assets/collection.js", "assets/index.js", "commands.json", "grammar.json",),
|
|
13
13
|
)
|