@gramlot/gramlot 0.3.20 → 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
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export {default} from "./collection.js";
|
|
2
|
-
export
|
|
2
|
+
export * from "./collection.js";
|
|
3
|
+
export const buildId = "sha256:226133f0d38b60fbf90d6de2fd0888f1debb7a2f7a6b7b5dc17e522296c05ad6";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from gramlot import GramlotCollection
|
|
2
|
+
|
|
3
|
+
mygramlot = GramlotCollection(
|
|
4
|
+
name="selection_trial",
|
|
5
|
+
package=__package__,
|
|
6
|
+
grammar="grammar.json",
|
|
7
|
+
commands="commands.json",
|
|
8
|
+
module="assets/index.js",
|
|
9
|
+
css=(),
|
|
10
|
+
dependencies=(),
|
|
11
|
+
build_id="sha256:fd24380deae54ec6903aa69ee419ce992922c477cc716fdb0f5873353e7c3def",
|
|
12
|
+
files=("assets/collection.js", "assets/index.js", "commands.json", "grammar.json",),
|
|
13
|
+
)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var b=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var E=(i,e)=>{for(var r in e)b(i,r,{get:e[r],enumerable:!0})},g=(i,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of T(e))!v.call(i,s)&&s!==r&&b(i,s,{get:()=>e[s],enumerable:!(t=S(e,s))||t.enumerable});return i},w=(i,e,r)=>(g(i,e,"default"),r&&g(r,e,"default"));import{Bag as B}from"@gramlot/gramlot";var u={};E(u,{defineCollection:()=>O});w(u,D);import*as D from"@gramlot/gramlot/components";import{defineCollection as k}from"@gramlot/gramlot/components";function O(i){if(i.name!=="selection_trial")throw new Error("Unexpected bundled collection");let e=[],r={};i.css?.forEach((t,s)=>{t.href=e[s].href});for(let[t,s]of Object.entries(i.assets??{}))s.href=r[t].href;return k({...i,css:e,assets:r})}function y(i,e){return i.parameters=Object.fromEntries(Object.entries(i.constructor.gramlotComponent.parameters).map(([r,t])=>[r,Object.hasOwn(e,r)?e[r]:t.default])),Object.fromEntries(Object.entries(e).filter(([r])=>!Object.hasOwn(i.parameters,r)))}function p(i){return class extends i{constructor(){super();let e=this.attachShadow({mode:"open"}),r=this.ownerDocument.createElement("style");r.textContent=`:host{box-sizing:border-box;display:block;min-width:0;font:inherit;color:var(--gramlot-ink,CanvasText)}
|
|
2
|
+
*,*::before,*::after{box-sizing:border-box}.control-box{min-width:0}slot{display:contents}
|
|
3
|
+
::slotted(*){min-width:0;max-width:100%}`,this.controlBox=this.ownerDocument.createElement("div"),this.controlBox.className="control-box",this.control=this.controlBox,this.control.id="control",this.control.append(this.ownerDocument.createElement("slot")),e.append(r,this.controlBox)}projectAttributes(e){return y(this,e)}}}p.parameters={};import{Bag as f}from"@gramlot/gramlot";var x=(0,u.defineComponent)({name:"windowSelection",tag:"gramlot-window-selection",base:p,sourceContext:!0,parameters:{ready:{dtype:"B",default:!1,binding:"read"},inbox:{dtype:"X",nullable:!0,default:null,binding:"read"},limit:{dtype:"T",binding:"read"},seed:{dtype:"T",default:"",binding:"read"},sortedBy:{dtype:"T",default:"",binding:"read"},viewport:{dtype:"X",nullable:!0,default:null,binding:"read"},reload:{dtype:"L",default:0,binding:"read"},result:{dtype:"X",nullable:!0,default:null,binding:"write"},metrics:{dtype:"X",nullable:!0,default:null,binding:"write"},status:{dtype:"T",default:"",binding:"write"}},implementation:i=>class extends i{#e;#t;#r;#o;#s;#i;#n=!1;#a={};setSourceContext(e){this.#e=e}projectAttributes(e,r){let t=super.projectAttributes(e,r);return this.isConnected&&this.#l(),t}connectedCallback(){this.#l()}disconnectedCallback(){clearTimeout(this.#i),this.#s=null,this.#t=null,this.#n=!1}#l(){if(!this.parameters.ready)return;let e=this.parameters,r=JSON.stringify([e.limit,e.seed,e.sortedBy,e.reload]);if(r!==this.#t){let c=this.#t?JSON.parse(this.#t):null;this.#t=r,this.#r=JSON.stringify(e.viewport),this.#o=e.inbox,clearTimeout(this.#i),this.#s=null,this.#n=!0;let h=!c||c[0]!==e.limit||c[3]!==e.reload?"open":c[1]!==e.seed?"search":"sort";this.#e.writeParameter("status",h==="search"?"Searching\u2026":"Loading\u2026");let a=performance.now();this.#i=setTimeout(()=>this.#c(0,200,h,a),h==="search"?200:0)}else JSON.stringify(e.viewport)!==this.#r&&(this.#r=JSON.stringify(e.viewport),e.viewport&&!this.#n&&(clearTimeout(this.#i),this.#i=setTimeout(()=>this.#c(e.viewport.start,e.viewport.count,"scroll",performance.now()),0)));let t=e.inbox;if(!t||t===this.#o)return;this.#o=t;let s=this.#s;if(!s||t.getItem("request_id")!==s.id)return;if(this.#s=null,this.#n=!1,t.getItem("error")){this.#e.writeParameter("status",`Failed: ${t.getItem("error")}`);return}let l=t.getItem("rows"),o=t.getItem("window");if(!(l instanceof f)||!(o instanceof f)||!Number.isSafeInteger(o.getItem("start"))||o.getItem("start")<0||!Number.isSafeInteger(o.getItem("total"))||o.getItem("total")<o.getItem("start")+l.length||l.length>Math.max(1e3,t.getItem("threshold"))){this.#e.writeParameter("status","Failed: invalid window response");return}let d=new f;for(let c of l.getNodes())d.setItem(c.label,null,{...c.attr});let n=performance.now()-s.started;s.kind==="open"?this.#a={first_ms:n}:this.#a[s.kind==="scroll"?"scroll_ms":`${s.kind}_total_ms`]=n;for(let c of["materialize_ms","count_ms","window_ms","search_ms","sort_ms"])this.#a[c]=t.getItem(c);let m=new f(Object.fromEntries(["start","total","revision","sortedBy"].map(c=>[c,o.getItem(c)])));this.#e.writeParameter("result",new f({rows:d,window:m,count:o.getItem("total"),resident:d.length,mode:t.getItem("mode"),threshold:t.getItem("threshold")})),this.#e.writeParameter("metrics",new f(this.#a)),this.#e.writeParameter("status","Loaded")}#c(e,r,t,s){if(!this.isConnected)return;let l=crypto.randomUUID();this.#s={id:l,kind:t,started:s},this.#e.writeParameter("status",t==="scroll"?"Loading window\u2026":"Loading\u2026");let o=this.parameters,d=this.#e.sourceNode.rootBuilder.binding.gramlot,n=m=>{this.isConnected&&this.#s?.id===l&&(this.#n=!1,this.#e.writeParameter("status",`Failed: ${m.message}`))};try{Promise.resolve(d.publish({topic:"selection_request",server:!0},{request_id:l,limit:o.limit,seed:o.seed,sorted_by:o.sortedBy,start:e,count:r,refresh:t==="open"})).catch(n)}catch(m){n(m)}}}});import{Bag as I,toTytx as j,fromTytxIter as P}from"@gramlot/gramlot";async function*N(i,e,r=()=>performance.now()){let t=i.getReader(),s=new TextDecoder("utf-8",{fatal:!0}),l="",o=!1;try{for(;;){let{value:d,done:n}=await t.read();if(n){l+=s.decode(),o=!0;break}e.bytes+=d.byteLength,l+=s.decode(d,{stream:!0});let m;for(;(m=l.indexOf(`
|
|
4
|
+
`))>=0;){let c=l.slice(0,m);if(l=l.slice(m+1),!c)throw new Error("Empty selection stream record");let h=r(),a=JSON.parse(c);e.decode_ms+=r()-h,yield a}}if(l)throw new Error("Incomplete selection stream record")}finally{try{o||await t.cancel()}finally{t.releaseLock()}}}async function q(i,e,r,t=()=>performance.now()){let s=new I,l=!1,o=!1,d=0,n,m=N(i,r,t),c;async function*h(){for await(let a of m)c=t(),yield a}for await(let a of P(h())){if(r.decode_ms+=t()-c,o)throw new Error("Data after selection completion");if(!l){if(a.kind!=="start"||a.id!==e)throw new Error("Invalid selection stream start");l=!0;continue}if(a.kind==="error")throw new Error(a.message);if(a.kind==="row"){if(!a.record||typeof a.record!="object"||Array.isArray(a.record))throw new Error("Invalid selection row");let C=t();s.setItem(`r${d++}`,null,a.record),r.bag_ms+=t()-C}else if(a.kind==="end"){if(a.id!==e||a.count!==d||!Number.isInteger(a.requested)||d>a.requested)throw new Error("Invalid selection completion");o=!0,n=a}else throw new Error("Unknown selection stream record")}if(!o)throw new Error("Selection stream ended without completion");return new I({rows:s,count:d,requested:n.requested,query_ms:n.query_ms,encode_ms:n.encode_ms})}async function _({url:i,pageId:e,method:r,limit:t,signal:s,fetcher:l=globalThis.fetch,now:o=()=>performance.now()}){let d=crypto.randomUUID(),n={bytes:0,decode_ms:0,bag_ms:0,search_ms:null},m=o(),c=await l(i,{method:"POST",credentials:"same-origin",signal:s,headers:{"Content-Type":"application/json"},body:j({id:d,pageId:e,contentType:"data",name:r,params:{limit:t}})});if(c.status!==200)throw new Error(`Selection request failed: HTTP ${c.status}`);if(!c.headers.get("content-type")?.startsWith("application/x-ndjson"))throw new Error("Expected JSONL response");let h=o();n.headers_ms=h-m;let a=await q(c.body,d,n,o);return n.receive_ms=o()-h,n.total_ms=o()-m,n.query_ms=a.getItem("query_ms"),n.encode_ms=a.getItem("encode_ms"),n.count=a.getItem("count"),n.mb=n.bytes/1e6,s.throwIfAborted(),{selection:a,metrics:n}}var L=(0,u.defineComponent)({name:"selectionTrial",tag:"gramlot-selection-trial",base:p,sourceContext:!0,parameters:{url:{dtype:"T"},method:{dtype:"T"},limit:{dtype:"T",binding:"read"},reload:{dtype:"L",default:0,binding:"read"},result:{dtype:"X",nullable:!0,default:null,binding:"write"},metrics:{dtype:"X",nullable:!0,default:null,binding:"write"},status:{dtype:"T",default:"",binding:"write"}},implementation:i=>class extends i{#e;#t;#r;setSourceContext(e){this.#e=e}projectAttributes(e,r){let t=super.projectAttributes(e,r);return this.isConnected&&this.#o(),t}connectedCallback(){this.#o()}disconnectedCallback(){this.#t?.abort(),this.#r=void 0}async#o(){let{url:e,method:r,limit:t,reload:s}=this.parameters,l=JSON.stringify([e,r,t,s]);if(l===this.#r)return;this.#r=l,this.#t?.abort();let o=new AbortController;this.#t=o;let d=this.#e.sourceNode.rootBuilder.binding.gramlot;this.#e.writeParameter("status","Loading\u2026");try{let{selection:n,metrics:m}=await _({url:e,method:r,limit:t,pageId:d.pageId,signal:o.signal});if(this.#t!==o||!this.isConnected)return;this.#e.writeParameter("result",n),this.#e.writeParameter("metrics",new B(m)),this.#e.writeParameter("status","Loaded")}catch(n){if(o.signal.aborted||this.#t!==o)return;this.#e.writeParameter("status",`Failed: ${n.message}`)}}}}),te=new u.ComponentCollection({name:"selection_trial",components:[L,x]});export{te as default};
|
|
@@ -0,0 +1,552 @@
|
|
|
1
|
+
{
|
|
2
|
+
"abstracts": {},
|
|
3
|
+
"document_format": {
|
|
4
|
+
"name": "builder_grammar",
|
|
5
|
+
"version": "1.1"
|
|
6
|
+
},
|
|
7
|
+
"elements": {
|
|
8
|
+
"selectionTrial": {
|
|
9
|
+
"_meta": {
|
|
10
|
+
"gramlot_component": {
|
|
11
|
+
"command": false,
|
|
12
|
+
"dataScope": false,
|
|
13
|
+
"parameters": {
|
|
14
|
+
"limit": {
|
|
15
|
+
"binding": "read",
|
|
16
|
+
"dtype": "T"
|
|
17
|
+
},
|
|
18
|
+
"method": {
|
|
19
|
+
"dtype": "T"
|
|
20
|
+
},
|
|
21
|
+
"metrics": {
|
|
22
|
+
"binding": "write",
|
|
23
|
+
"default": null,
|
|
24
|
+
"dtype": "X",
|
|
25
|
+
"nullable": true
|
|
26
|
+
},
|
|
27
|
+
"reload": {
|
|
28
|
+
"binding": "read",
|
|
29
|
+
"default": 0,
|
|
30
|
+
"dtype": "L"
|
|
31
|
+
},
|
|
32
|
+
"result": {
|
|
33
|
+
"binding": "write",
|
|
34
|
+
"default": null,
|
|
35
|
+
"dtype": "X",
|
|
36
|
+
"nullable": true
|
|
37
|
+
},
|
|
38
|
+
"status": {
|
|
39
|
+
"binding": "write",
|
|
40
|
+
"default": "",
|
|
41
|
+
"dtype": "T"
|
|
42
|
+
},
|
|
43
|
+
"url": {
|
|
44
|
+
"dtype": "T"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"presentationDefaults": [],
|
|
48
|
+
"sourceContext": true
|
|
49
|
+
},
|
|
50
|
+
"render_tag": "gramlot-selection-trial"
|
|
51
|
+
},
|
|
52
|
+
"attributes": {
|
|
53
|
+
"accepts_var_keyword": true,
|
|
54
|
+
"accepts_var_positional": false,
|
|
55
|
+
"parameters": [
|
|
56
|
+
{
|
|
57
|
+
"annotation": {
|
|
58
|
+
"dtype": "T",
|
|
59
|
+
"kind": "dtype"
|
|
60
|
+
},
|
|
61
|
+
"default": null,
|
|
62
|
+
"has_default": true,
|
|
63
|
+
"kind": "keyword_only",
|
|
64
|
+
"name": "url",
|
|
65
|
+
"role": "attribute"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"annotation": {
|
|
69
|
+
"dtype": "T",
|
|
70
|
+
"kind": "dtype"
|
|
71
|
+
},
|
|
72
|
+
"default": null,
|
|
73
|
+
"has_default": true,
|
|
74
|
+
"kind": "keyword_only",
|
|
75
|
+
"name": "method",
|
|
76
|
+
"role": "attribute"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"annotation": {
|
|
80
|
+
"dtype": "T",
|
|
81
|
+
"kind": "dtype"
|
|
82
|
+
},
|
|
83
|
+
"default": null,
|
|
84
|
+
"has_default": true,
|
|
85
|
+
"kind": "keyword_only",
|
|
86
|
+
"name": "limit",
|
|
87
|
+
"role": "attribute"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"annotation": {
|
|
91
|
+
"items": [
|
|
92
|
+
{
|
|
93
|
+
"dtype": "L",
|
|
94
|
+
"kind": "dtype"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"base": {
|
|
98
|
+
"dtype": "T",
|
|
99
|
+
"kind": "dtype"
|
|
100
|
+
},
|
|
101
|
+
"kind": "annotated",
|
|
102
|
+
"metadata": [
|
|
103
|
+
{
|
|
104
|
+
"flags": 0,
|
|
105
|
+
"kind": "regex",
|
|
106
|
+
"pattern": "^[\\^=].+"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"kind": "union"
|
|
112
|
+
},
|
|
113
|
+
"default": 0,
|
|
114
|
+
"has_default": true,
|
|
115
|
+
"kind": "keyword_only",
|
|
116
|
+
"name": "reload",
|
|
117
|
+
"role": "attribute"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"annotation": {
|
|
121
|
+
"items": [
|
|
122
|
+
{
|
|
123
|
+
"dtype": "X",
|
|
124
|
+
"kind": "dtype"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"dtype": "NN",
|
|
128
|
+
"kind": "dtype"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"base": {
|
|
132
|
+
"dtype": "T",
|
|
133
|
+
"kind": "dtype"
|
|
134
|
+
},
|
|
135
|
+
"kind": "annotated",
|
|
136
|
+
"metadata": [
|
|
137
|
+
{
|
|
138
|
+
"flags": 0,
|
|
139
|
+
"kind": "regex",
|
|
140
|
+
"pattern": "^[\\^=].+"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"kind": "union"
|
|
146
|
+
},
|
|
147
|
+
"default": null,
|
|
148
|
+
"has_default": true,
|
|
149
|
+
"kind": "keyword_only",
|
|
150
|
+
"name": "result",
|
|
151
|
+
"role": "attribute"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"annotation": {
|
|
155
|
+
"items": [
|
|
156
|
+
{
|
|
157
|
+
"dtype": "X",
|
|
158
|
+
"kind": "dtype"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"dtype": "NN",
|
|
162
|
+
"kind": "dtype"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"base": {
|
|
166
|
+
"dtype": "T",
|
|
167
|
+
"kind": "dtype"
|
|
168
|
+
},
|
|
169
|
+
"kind": "annotated",
|
|
170
|
+
"metadata": [
|
|
171
|
+
{
|
|
172
|
+
"flags": 0,
|
|
173
|
+
"kind": "regex",
|
|
174
|
+
"pattern": "^[\\^=].+"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"kind": "union"
|
|
180
|
+
},
|
|
181
|
+
"default": null,
|
|
182
|
+
"has_default": true,
|
|
183
|
+
"kind": "keyword_only",
|
|
184
|
+
"name": "metrics",
|
|
185
|
+
"role": "attribute"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"annotation": {
|
|
189
|
+
"dtype": "T",
|
|
190
|
+
"kind": "dtype"
|
|
191
|
+
},
|
|
192
|
+
"default": "",
|
|
193
|
+
"has_default": true,
|
|
194
|
+
"kind": "keyword_only",
|
|
195
|
+
"name": "status",
|
|
196
|
+
"role": "attribute"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"annotation": {
|
|
200
|
+
"kind": "any"
|
|
201
|
+
},
|
|
202
|
+
"has_default": false,
|
|
203
|
+
"kind": "var_keyword",
|
|
204
|
+
"name": "attr",
|
|
205
|
+
"role": "attribute"
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
"collection_key": null,
|
|
210
|
+
"doc": null,
|
|
211
|
+
"inherits_from": null,
|
|
212
|
+
"node_label": null,
|
|
213
|
+
"ns": null,
|
|
214
|
+
"parent_tags": null,
|
|
215
|
+
"sub_tags": ""
|
|
216
|
+
},
|
|
217
|
+
"windowSelection": {
|
|
218
|
+
"_meta": {
|
|
219
|
+
"gramlot_component": {
|
|
220
|
+
"command": false,
|
|
221
|
+
"dataScope": false,
|
|
222
|
+
"parameters": {
|
|
223
|
+
"inbox": {
|
|
224
|
+
"binding": "read",
|
|
225
|
+
"default": null,
|
|
226
|
+
"dtype": "X",
|
|
227
|
+
"nullable": true
|
|
228
|
+
},
|
|
229
|
+
"limit": {
|
|
230
|
+
"binding": "read",
|
|
231
|
+
"dtype": "T"
|
|
232
|
+
},
|
|
233
|
+
"metrics": {
|
|
234
|
+
"binding": "write",
|
|
235
|
+
"default": null,
|
|
236
|
+
"dtype": "X",
|
|
237
|
+
"nullable": true
|
|
238
|
+
},
|
|
239
|
+
"ready": {
|
|
240
|
+
"binding": "read",
|
|
241
|
+
"default": false,
|
|
242
|
+
"dtype": "B"
|
|
243
|
+
},
|
|
244
|
+
"reload": {
|
|
245
|
+
"binding": "read",
|
|
246
|
+
"default": 0,
|
|
247
|
+
"dtype": "L"
|
|
248
|
+
},
|
|
249
|
+
"result": {
|
|
250
|
+
"binding": "write",
|
|
251
|
+
"default": null,
|
|
252
|
+
"dtype": "X",
|
|
253
|
+
"nullable": true
|
|
254
|
+
},
|
|
255
|
+
"seed": {
|
|
256
|
+
"binding": "read",
|
|
257
|
+
"default": "",
|
|
258
|
+
"dtype": "T"
|
|
259
|
+
},
|
|
260
|
+
"sortedBy": {
|
|
261
|
+
"binding": "read",
|
|
262
|
+
"default": "",
|
|
263
|
+
"dtype": "T"
|
|
264
|
+
},
|
|
265
|
+
"status": {
|
|
266
|
+
"binding": "write",
|
|
267
|
+
"default": "",
|
|
268
|
+
"dtype": "T"
|
|
269
|
+
},
|
|
270
|
+
"viewport": {
|
|
271
|
+
"binding": "read",
|
|
272
|
+
"default": null,
|
|
273
|
+
"dtype": "X",
|
|
274
|
+
"nullable": true
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"presentationDefaults": [],
|
|
278
|
+
"sourceContext": true
|
|
279
|
+
},
|
|
280
|
+
"render_tag": "gramlot-window-selection"
|
|
281
|
+
},
|
|
282
|
+
"attributes": {
|
|
283
|
+
"accepts_var_keyword": true,
|
|
284
|
+
"accepts_var_positional": false,
|
|
285
|
+
"parameters": [
|
|
286
|
+
{
|
|
287
|
+
"annotation": {
|
|
288
|
+
"items": [
|
|
289
|
+
{
|
|
290
|
+
"dtype": "B",
|
|
291
|
+
"kind": "dtype"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"base": {
|
|
295
|
+
"dtype": "T",
|
|
296
|
+
"kind": "dtype"
|
|
297
|
+
},
|
|
298
|
+
"kind": "annotated",
|
|
299
|
+
"metadata": [
|
|
300
|
+
{
|
|
301
|
+
"flags": 0,
|
|
302
|
+
"kind": "regex",
|
|
303
|
+
"pattern": "^[\\^=].+"
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"kind": "union"
|
|
309
|
+
},
|
|
310
|
+
"default": false,
|
|
311
|
+
"has_default": true,
|
|
312
|
+
"kind": "keyword_only",
|
|
313
|
+
"name": "ready",
|
|
314
|
+
"role": "attribute"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"annotation": {
|
|
318
|
+
"items": [
|
|
319
|
+
{
|
|
320
|
+
"dtype": "X",
|
|
321
|
+
"kind": "dtype"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"dtype": "NN",
|
|
325
|
+
"kind": "dtype"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"base": {
|
|
329
|
+
"dtype": "T",
|
|
330
|
+
"kind": "dtype"
|
|
331
|
+
},
|
|
332
|
+
"kind": "annotated",
|
|
333
|
+
"metadata": [
|
|
334
|
+
{
|
|
335
|
+
"flags": 0,
|
|
336
|
+
"kind": "regex",
|
|
337
|
+
"pattern": "^[\\^=].+"
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
"kind": "union"
|
|
343
|
+
},
|
|
344
|
+
"default": null,
|
|
345
|
+
"has_default": true,
|
|
346
|
+
"kind": "keyword_only",
|
|
347
|
+
"name": "inbox",
|
|
348
|
+
"role": "attribute"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"annotation": {
|
|
352
|
+
"dtype": "T",
|
|
353
|
+
"kind": "dtype"
|
|
354
|
+
},
|
|
355
|
+
"default": null,
|
|
356
|
+
"has_default": true,
|
|
357
|
+
"kind": "keyword_only",
|
|
358
|
+
"name": "limit",
|
|
359
|
+
"role": "attribute"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"annotation": {
|
|
363
|
+
"dtype": "T",
|
|
364
|
+
"kind": "dtype"
|
|
365
|
+
},
|
|
366
|
+
"default": "",
|
|
367
|
+
"has_default": true,
|
|
368
|
+
"kind": "keyword_only",
|
|
369
|
+
"name": "seed",
|
|
370
|
+
"role": "attribute"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"annotation": {
|
|
374
|
+
"dtype": "T",
|
|
375
|
+
"kind": "dtype"
|
|
376
|
+
},
|
|
377
|
+
"default": "",
|
|
378
|
+
"has_default": true,
|
|
379
|
+
"kind": "keyword_only",
|
|
380
|
+
"name": "sortedBy",
|
|
381
|
+
"role": "attribute"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"annotation": {
|
|
385
|
+
"items": [
|
|
386
|
+
{
|
|
387
|
+
"dtype": "X",
|
|
388
|
+
"kind": "dtype"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"dtype": "NN",
|
|
392
|
+
"kind": "dtype"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"base": {
|
|
396
|
+
"dtype": "T",
|
|
397
|
+
"kind": "dtype"
|
|
398
|
+
},
|
|
399
|
+
"kind": "annotated",
|
|
400
|
+
"metadata": [
|
|
401
|
+
{
|
|
402
|
+
"flags": 0,
|
|
403
|
+
"kind": "regex",
|
|
404
|
+
"pattern": "^[\\^=].+"
|
|
405
|
+
}
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"kind": "union"
|
|
410
|
+
},
|
|
411
|
+
"default": null,
|
|
412
|
+
"has_default": true,
|
|
413
|
+
"kind": "keyword_only",
|
|
414
|
+
"name": "viewport",
|
|
415
|
+
"role": "attribute"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"annotation": {
|
|
419
|
+
"items": [
|
|
420
|
+
{
|
|
421
|
+
"dtype": "L",
|
|
422
|
+
"kind": "dtype"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"base": {
|
|
426
|
+
"dtype": "T",
|
|
427
|
+
"kind": "dtype"
|
|
428
|
+
},
|
|
429
|
+
"kind": "annotated",
|
|
430
|
+
"metadata": [
|
|
431
|
+
{
|
|
432
|
+
"flags": 0,
|
|
433
|
+
"kind": "regex",
|
|
434
|
+
"pattern": "^[\\^=].+"
|
|
435
|
+
}
|
|
436
|
+
]
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"kind": "union"
|
|
440
|
+
},
|
|
441
|
+
"default": 0,
|
|
442
|
+
"has_default": true,
|
|
443
|
+
"kind": "keyword_only",
|
|
444
|
+
"name": "reload",
|
|
445
|
+
"role": "attribute"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"annotation": {
|
|
449
|
+
"items": [
|
|
450
|
+
{
|
|
451
|
+
"dtype": "X",
|
|
452
|
+
"kind": "dtype"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"dtype": "NN",
|
|
456
|
+
"kind": "dtype"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"base": {
|
|
460
|
+
"dtype": "T",
|
|
461
|
+
"kind": "dtype"
|
|
462
|
+
},
|
|
463
|
+
"kind": "annotated",
|
|
464
|
+
"metadata": [
|
|
465
|
+
{
|
|
466
|
+
"flags": 0,
|
|
467
|
+
"kind": "regex",
|
|
468
|
+
"pattern": "^[\\^=].+"
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
],
|
|
473
|
+
"kind": "union"
|
|
474
|
+
},
|
|
475
|
+
"default": null,
|
|
476
|
+
"has_default": true,
|
|
477
|
+
"kind": "keyword_only",
|
|
478
|
+
"name": "result",
|
|
479
|
+
"role": "attribute"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"annotation": {
|
|
483
|
+
"items": [
|
|
484
|
+
{
|
|
485
|
+
"dtype": "X",
|
|
486
|
+
"kind": "dtype"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"dtype": "NN",
|
|
490
|
+
"kind": "dtype"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"base": {
|
|
494
|
+
"dtype": "T",
|
|
495
|
+
"kind": "dtype"
|
|
496
|
+
},
|
|
497
|
+
"kind": "annotated",
|
|
498
|
+
"metadata": [
|
|
499
|
+
{
|
|
500
|
+
"flags": 0,
|
|
501
|
+
"kind": "regex",
|
|
502
|
+
"pattern": "^[\\^=].+"
|
|
503
|
+
}
|
|
504
|
+
]
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
"kind": "union"
|
|
508
|
+
},
|
|
509
|
+
"default": null,
|
|
510
|
+
"has_default": true,
|
|
511
|
+
"kind": "keyword_only",
|
|
512
|
+
"name": "metrics",
|
|
513
|
+
"role": "attribute"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"annotation": {
|
|
517
|
+
"dtype": "T",
|
|
518
|
+
"kind": "dtype"
|
|
519
|
+
},
|
|
520
|
+
"default": "",
|
|
521
|
+
"has_default": true,
|
|
522
|
+
"kind": "keyword_only",
|
|
523
|
+
"name": "status",
|
|
524
|
+
"role": "attribute"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"annotation": {
|
|
528
|
+
"kind": "any"
|
|
529
|
+
},
|
|
530
|
+
"has_default": false,
|
|
531
|
+
"kind": "var_keyword",
|
|
532
|
+
"name": "attr",
|
|
533
|
+
"role": "attribute"
|
|
534
|
+
}
|
|
535
|
+
]
|
|
536
|
+
},
|
|
537
|
+
"collection_key": null,
|
|
538
|
+
"doc": null,
|
|
539
|
+
"inherits_from": null,
|
|
540
|
+
"node_label": null,
|
|
541
|
+
"ns": null,
|
|
542
|
+
"parent_tags": null,
|
|
543
|
+
"sub_tags": ""
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
"grammar": {
|
|
547
|
+
"description": null,
|
|
548
|
+
"name": "selection_trial",
|
|
549
|
+
"title": "selection_trial",
|
|
550
|
+
"version": null
|
|
551
|
+
}
|
|
552
|
+
}
|
|
@@ -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:41859c8895b4c980662c79455c1115c009666a73241e39c78149c0cc2d6e410c",
|
|
12
12
|
files=("assets/collection.js", "assets/index.js", "commands.json", "grammar.json",),
|
|
13
13
|
)
|