@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.
- 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 +26 -120912
- package/dist/components/editors/assets/index.js +2 -1
- package/dist/components/editors/assets/modules/chunk-74O4WKIV.js +1 -0
- package/dist/components/editors/assets/modules/chunk-AU4HFPIY.js +1 -0
- package/dist/components/editors/assets/modules/chunk-YSGSC7KM.js +1 -0
- package/dist/components/editors/assets/modules/code-mirror-engine-RWQTR5G5.js +92 -0
- package/dist/components/editors/assets/modules/jodit-engine-MTSA4GZ3.js +1853 -0
- package/dist/components/editors/assets/modules/markdown-document-VFC23FAY.js +1 -0
- package/dist/components/editors/assets/modules/prose-mirror-engine-GMZPJPNN.js +24 -0
- package/dist/components/grid/__init__.py +14 -0
- package/dist/components/grid/assets/collection.js +262 -0
- package/dist/components/grid/assets/index.js +3 -0
- package/dist/components/grid/commands.json +7 -0
- package/dist/components/grid/grammar.json +770 -0
- package/dist/components/grouplets/__init__.py +13 -0
- package/dist/components/grouplets/assets/collection.js +185 -0
- package/dist/components/grouplets/assets/index.js +3 -0
- package/dist/components/grouplets/assets/modules/chunk-BLMUM44K.js +1 -0
- package/dist/components/grouplets/assets/modules/markdown-document-YWNZTOKK.js +1 -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 +65 -24511
- package/dist/components/inputs/assets/index.js +2 -1
- package/dist/components/inputs/grammar.json +278 -6
- package/dist/components/layout/__init__.py +1 -1
- package/dist/components/layout/assets/collection.js +68 -26732
- package/dist/components/layout/assets/index.js +2 -1
- package/dist/components/layout/grammar.json +39 -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 +587 -0
- package/dist/components/tree/__init__.py +1 -1
- package/dist/components/tree/assets/collection.js +27 -24612
- package/dist/components/tree/assets/index.js +2 -1
- package/dist/components/tree/grammar.json +341 -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/components/uploads/__init__.py +13 -0
- package/dist/components/uploads/assets/collection.js +67 -0
- package/dist/components/uploads/assets/index.js +3 -0
- package/dist/components/uploads/commands.json +7 -0
- package/dist/components/uploads/grammar.json +789 -0
- package/dist/gramlot-markdown.js +16 -0
- package/dist/gramlot.js +6861 -1395
- package/dist/gramlot.min.js +1595 -46
- package/dist/runtime-notices.json +28 -0
- package/package.json +10 -3
- package/src/binding/grid-struct.js +63 -0
- package/src/binding/installation.js +5 -2
- package/src/binding/providers.js +4 -1
- package/src/binding/remote-resolver.js +1 -8
- package/src/binding/runtime.js +90 -6
- package/src/binding/validation-context.js +40 -0
- package/src/browser-camera-provider.d.ts +8 -0
- package/src/browser-camera-provider.js +104 -0
- package/src/builder/gramlot-builder.d.ts +5 -0
- package/src/builder/gramlot-builder.js +16 -0
- package/src/builder/source.js +34 -0
- package/src/chat.d.ts +12 -0
- package/src/chat.js +198 -0
- package/src/collection-artifact.js +1 -1
- package/src/components/attachment-manager.js +160 -0
- package/src/components/bases.js +19 -6
- package/src/components/border-container.js +86 -8
- package/src/components/buttons.js +11 -1
- package/src/components/chat.js +28 -0
- package/src/components/choice-editor.js +106 -38
- package/src/components/database-choices.js +133 -9
- package/src/components/editing-status-styles.js +26 -0
- package/src/components/editing-status.js +115 -0
- package/src/components/field-state.js +42 -54
- package/src/components/grid-cell-editor.js +181 -0
- package/src/components/grid-grammar.json +258 -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 +85 -0
- package/src/components/grid-styles.js +201 -0
- package/src/components/grid.js +666 -0
- package/src/components/grouplet-card.js +445 -0
- package/src/components/grouplets.js +17 -0
- package/src/components/html-preview.js +17 -4
- package/src/components/image-crop-dialog.js +272 -0
- package/src/components/image-crop.js +79 -0
- package/src/components/image-uploader.js +252 -0
- package/src/components/inputs.js +2 -1
- package/src/components/jodit-engine.js +1 -1
- package/src/components/markdown-document.js +2 -2
- package/src/components/menus.js +1 -0
- package/src/components/registry.js +4 -3
- package/src/components/screen-capture.js +43 -0
- package/src/components/selected-container.js +6 -2
- package/src/components/tray-pane.js +32 -4
- package/src/components/tree.js +416 -17
- package/src/components/typed-editor.js +23 -11
- package/src/components/upload-engine.js +156 -0
- package/src/components/uploader.js +208 -0
- package/src/components/uploads.js +7 -0
- package/src/editing-session.d.ts +25 -0
- package/src/editing-session.js +396 -0
- package/src/experiments/selection-transfer.js +78 -0
- package/src/experiments/selection-trial.js +64 -0
- package/src/experiments/window-selection.js +124 -0
- package/src/format.js +22 -7
- package/src/gramlot.d.ts +2 -0
- package/src/gramlot.js +2 -1
- package/src/handlers/device-handler.d.ts +2 -1
- package/src/handlers/rpc-handler.d.ts +3 -3
- package/src/index-page-styles.js +2 -1
- package/src/index.d.ts +16 -1
- package/src/index.js +16 -1
- package/src/inout.d.ts +2 -0
- package/src/inout.js +6 -0
- package/src/markdown-loader.d.ts +1 -0
- package/src/markdown-loader.js +4 -0
- package/src/markdown.d.ts +1 -0
- package/src/markdown.js +2 -0
- package/src/media-frame.js +9 -0
- package/src/renderer/attributes.js +7 -1
- package/src/renderer/gramlot-renderer.d.ts +2 -0
- package/src/renderer/gramlot-renderer.js +39 -3
- package/src/server/assets.d.ts +1 -1
- package/src/server/assets.js +1 -1
- package/src/server/gramlot-server.d.ts +10 -1
- package/src/server/gramlot-server.js +96 -8
- package/src/server/index.d.ts +2 -0
- package/src/server/index.js +2 -0
- package/src/server/page-base.js +17 -4
- package/src/server/page.d.ts +13 -1
- package/src/server/page.js +6 -0
- package/src/server/source-import.d.ts +2 -0
- package/src/server/source-import.js +31 -0
- package/src/server/upload.d.ts +20 -0
- package/src/server/upload.js +142 -0
- package/src/server/visual-editor.d.ts +11 -0
- package/src/server/visual-editor.js +149 -0
- package/src/source-picker.d.ts +9 -0
- package/src/source-picker.js +57 -0
- 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/tree-store.d.ts +24 -0
- package/src/tree-store.js +193 -0
- package/src/validation-run.js +50 -0
- package/src/view/button.js +8 -5
- package/src/view/controls.js +31 -32
- package/src/view/grouplet-card.js +54 -0
- package/src/view/html.js +29 -4
- package/src/view/labelbox.js +7 -3
- package/src/visual-editor-icons.js +10 -0
- package/src/visual-editor.d.ts +56 -0
- package/src/visual-editor.js +844 -0
- package/themes/gramlot-base/theme.css +127 -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,13 @@
|
|
|
1
|
+
from gramlot import GramlotCollection
|
|
2
|
+
|
|
3
|
+
mygramlot = GramlotCollection(
|
|
4
|
+
name="grouplets",
|
|
5
|
+
package=__package__,
|
|
6
|
+
grammar="grammar.json",
|
|
7
|
+
commands="commands.json",
|
|
8
|
+
module="assets/index.js",
|
|
9
|
+
css=(),
|
|
10
|
+
dependencies=(),
|
|
11
|
+
build_id="sha256:5f2fc131879e219057b993c4f69c901a8f2bd9523027545a7a58417c2cba1568",
|
|
12
|
+
files=("assets/collection.js", "assets/index.js", "assets/modules/chunk-BLMUM44K.js", "assets/modules/markdown-document-YWNZTOKK.js", "commands.json", "grammar.json",),
|
|
13
|
+
)
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import{a as L,b as p}from"./modules/chunk-BLMUM44K.js";var n={};L(n,{defineCollection:()=>g});p(n,O);import*as O from"@gramlot/gramlot/components";import{defineCollection as I}from"@gramlot/gramlot/components";function g(o){if(o.name!=="grouplets")throw new Error("Unexpected bundled collection");let t=[],a={};o.css?.forEach((e,i)=>{e.href=t[i].href});for(let[e,i]of Object.entries(o.assets??{}))i.href=a[e].href;return I({...o,css:t,assets:a})}function B(o,t){return o.parameters=Object.fromEntries(Object.entries(o.constructor.gramlotComponent.parameters).map(([a,e])=>[a,Object.hasOwn(t,a)?t[a]:e.default])),Object.fromEntries(Object.entries(t).filter(([a])=>!Object.hasOwn(o.parameters,a)))}function d(o){return class extends o{constructor(){super();let t=this.attachShadow({mode:"open"}),a=this.ownerDocument.createElement("style");a.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")),t.append(a,this.controlBox)}projectAttributes(t){return B(this,t)}}}d.parameters={};function E(o){return o?.labelbox?o.labelbox.controlBox.firstElementChild:o}function x(o,t,{align:a="start",matchWidth:e=!1,inset:i=0,placement:r="bottom",point:c=null}={}){let s=t.ownerDocument.defaultView,l=c?{left:c.x,right:c.x,top:c.y,bottom:c.y,width:0}:t.getBoundingClientRect(),f=Math.max(0,s.innerWidth-16);o.style.setProperty("--gramlot-popup-available-width",`${f}px`),e&&(o.style.width=`${Math.min(Math.max(0,l.width-2*i),f)}px`),o.style.removeProperty("--gramlot-popup-available-height");let w=o.getBoundingClientRect();if(r==="side"){let m=Math.max(0,s.innerWidth-8-l.right-3),k=Math.max(0,l.left-8-3),C=w.width>m&&k>m;o.style.setProperty("--gramlot-popup-available-width",`${C?k:m}px`),o.style.setProperty("--gramlot-popup-available-height",`${Math.max(0,s.innerHeight-16)}px`);let u=o.getBoundingClientRect(),M=C?l.left-u.width-3:l.right+3;o.style.left=`${Math.max(8,Math.min(M,s.innerWidth-u.width-8))}px`,o.style.top=`${Math.max(8,Math.min(l.top,s.innerHeight-u.height-8))}px`;return}let b=Math.max(0,s.innerHeight-8-l.bottom-3),v=Math.max(0,l.top-8-3),y=w.height>b&&v>b;o.style.setProperty("--gramlot-popup-available-height",`${y?v:b}px`);let h=o.getBoundingClientRect(),A=a==="end"?l.right-h.width-i:l.left+i,R=y?l.top-h.height-3:l.bottom+3;o.style.left=`${Math.max(8,Math.min(A,s.innerWidth-h.width-8))}px`,o.style.top=`${Math.max(8,Math.min(R,s.innerHeight-h.height-8))}px`}var P=(0,n.defineComponent)({name:"groupletCard",tag:"gramlot-grouplet-card",base:d,subTags:"*",sourceContext:!0,parameters:{remote:{dtype:"T",nullable:!0,binding:"read"},title:{dtype:"T",default:"",qualification:"intl_str",binding:"read"},chromeSide:{dtype:"T",default:"top",enum:["top","left","right"],binding:"read"},collapsible:{dtype:"B",default:!1,binding:"read"},collapsed:{dtype:"B",default:!1,binding:"twoWay"},checkbox:{dtype:"B",nullable:!0,default:null,binding:"twoWay"},checkboxLabel:{dtype:"T",default:"",qualification:"intl_str",binding:"read"},delitem:{dtype:"B",nullable:!0,default:null,binding:"read"},doc:{dtype:"T",default:"",binding:"read"}},implementation:o=>class extends o{#e;#i;#o;#a;#t;#l;#r;constructor(){super();let t=this.ownerDocument,a=t.createElement("style");a.textContent=`
|
|
4
|
+
:host {
|
|
5
|
+
border: 1px solid var(--gramlot-border-control, #aaa);
|
|
6
|
+
border-radius: var(--gramlot-window-radius, 8px);
|
|
7
|
+
background: var(--gramlot-surface, Canvas);
|
|
8
|
+
}
|
|
9
|
+
.card-shell {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
border-radius: inherit;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
.card-header {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: .65rem;
|
|
20
|
+
padding: .6rem .85rem;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
background: var(--gramlot-card-header-background, var(--gramlot-header-background, #303946));
|
|
23
|
+
color: var(--gramlot-card-header-color, var(--gramlot-header-color, #fff));
|
|
24
|
+
}
|
|
25
|
+
button {
|
|
26
|
+
font: inherit;
|
|
27
|
+
color: inherit;
|
|
28
|
+
background: transparent;
|
|
29
|
+
border: 0;
|
|
30
|
+
border-radius: var(--gramlot-radius-sm, 4px);
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
}
|
|
33
|
+
button:focus-visible,
|
|
34
|
+
input:focus-visible {
|
|
35
|
+
outline: 2px solid var(--gramlot-focus-ring, Highlight);
|
|
36
|
+
outline-offset: 2px;
|
|
37
|
+
}
|
|
38
|
+
.card-title {
|
|
39
|
+
flex: 1;
|
|
40
|
+
min-width: 0;
|
|
41
|
+
padding: 0;
|
|
42
|
+
font-size: 1rem;
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
line-height: 1.5;
|
|
45
|
+
text-align: start;
|
|
46
|
+
overflow-wrap: break-word;
|
|
47
|
+
}
|
|
48
|
+
.card-title:disabled {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
cursor: default;
|
|
51
|
+
}
|
|
52
|
+
.card-collapse {
|
|
53
|
+
display: grid;
|
|
54
|
+
place-items: center;
|
|
55
|
+
flex: none;
|
|
56
|
+
min-width: var(--gramlot-touch-target, 36px);
|
|
57
|
+
min-height: var(--gramlot-touch-target, 36px);
|
|
58
|
+
padding: .5rem;
|
|
59
|
+
font-size: 0;
|
|
60
|
+
}
|
|
61
|
+
.card-collapse::before {
|
|
62
|
+
content: '';
|
|
63
|
+
width: .5rem;
|
|
64
|
+
height: .5rem;
|
|
65
|
+
border-right: 2px solid currentColor;
|
|
66
|
+
border-bottom: 2px solid currentColor;
|
|
67
|
+
transform: translateY(-2px) rotate(45deg);
|
|
68
|
+
}
|
|
69
|
+
.card-collapse:hover,
|
|
70
|
+
.card-actions:hover,
|
|
71
|
+
.card-doc-button:hover,
|
|
72
|
+
.card-doc-close:hover,
|
|
73
|
+
.card-title:not(:disabled):hover {
|
|
74
|
+
background: color-mix(in srgb, currentColor 12%, transparent);
|
|
75
|
+
}
|
|
76
|
+
.card-check {
|
|
77
|
+
flex: none;
|
|
78
|
+
width: 1.2rem;
|
|
79
|
+
height: 1.2rem;
|
|
80
|
+
margin: .4rem;
|
|
81
|
+
accent-color: var(--gramlot-action, Highlight);
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
.card-check-label {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: .35rem;
|
|
88
|
+
min-width: 0;
|
|
89
|
+
max-width: 100%;
|
|
90
|
+
font-size: .9rem;
|
|
91
|
+
line-height: 1.4;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
}
|
|
94
|
+
.card-check-label > .card-check { margin: .25rem 0; }
|
|
95
|
+
.card-check-caption {
|
|
96
|
+
min-width: 0;
|
|
97
|
+
overflow-wrap: anywhere;
|
|
98
|
+
}
|
|
99
|
+
.card-actions {
|
|
100
|
+
flex: none;
|
|
101
|
+
min-height: var(--gramlot-touch-target, 36px);
|
|
102
|
+
padding: .35rem .5rem;
|
|
103
|
+
font-size: .9rem;
|
|
104
|
+
}
|
|
105
|
+
.card-header { flex-wrap: wrap; }
|
|
106
|
+
.card-doc-button, .card-doc-close {
|
|
107
|
+
flex: none;
|
|
108
|
+
min-height: var(--gramlot-touch-target, 36px);
|
|
109
|
+
min-width: var(--gramlot-touch-target, 36px);
|
|
110
|
+
padding: .35rem .5rem;
|
|
111
|
+
}
|
|
112
|
+
.card-doc-popup {
|
|
113
|
+
position: fixed;
|
|
114
|
+
inset: auto;
|
|
115
|
+
margin: 0;
|
|
116
|
+
padding: 0;
|
|
117
|
+
width: 34rem;
|
|
118
|
+
max-width: var(--gramlot-popup-available-width, calc(100vw - 16px));
|
|
119
|
+
max-height: var(--gramlot-popup-available-height, calc(100vh - 16px));
|
|
120
|
+
overflow: auto;
|
|
121
|
+
border: 1px solid var(--gramlot-border-control, #aaa);
|
|
122
|
+
border-radius: var(--gramlot-window-radius, 8px);
|
|
123
|
+
background: var(--gramlot-surface, Canvas);
|
|
124
|
+
color: var(--gramlot-ink, CanvasText);
|
|
125
|
+
box-shadow: 0 8px 28px #0003;
|
|
126
|
+
font-size: max(1rem, 15px);
|
|
127
|
+
line-height: 1.6;
|
|
128
|
+
overflow-wrap: anywhere;
|
|
129
|
+
}
|
|
130
|
+
.card-doc-heading {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
gap: 1rem;
|
|
134
|
+
padding: .6rem 1rem;
|
|
135
|
+
border-bottom: 1px solid var(--gramlot-border-control, #aaa);
|
|
136
|
+
}
|
|
137
|
+
.card-doc-heading h2 { flex: 1; font-size: 1.1em; margin: 0; }
|
|
138
|
+
.card-doc-body { padding: .25rem 1.25rem 1rem; }
|
|
139
|
+
.card-doc-body :is(h1, h2, h3) { font-size: 1.05em; line-height: 1.4; }
|
|
140
|
+
.card-doc-body :is(ul, ol) { padding-inline-start: 1.5rem; }
|
|
141
|
+
.card-doc-body li + li { margin-top: .4rem; }
|
|
142
|
+
.card-doc-body a { color: var(--gramlot-action, LinkText); }
|
|
143
|
+
.card-doc-body pre { overflow: auto; }
|
|
144
|
+
.card-doc-body img { max-width: 100%; }
|
|
145
|
+
.card-doc-body table { display: block; overflow: auto; border-collapse: collapse; }
|
|
146
|
+
.card-doc-body :is(th, td) { border: 1px solid var(--gramlot-border-control, #aaa); padding: .3rem .5rem; }
|
|
147
|
+
.control-box {
|
|
148
|
+
flex: 1;
|
|
149
|
+
min-width: 0;
|
|
150
|
+
padding: 1.25rem;
|
|
151
|
+
}
|
|
152
|
+
[hidden] { display: none !important; }
|
|
153
|
+
|
|
154
|
+
/* Side headers occupy their content height, not a solid wall. */
|
|
155
|
+
.card-shell[data-side=left],
|
|
156
|
+
.card-shell[data-side=right] {
|
|
157
|
+
flex-direction: row;
|
|
158
|
+
align-items: flex-start;
|
|
159
|
+
}
|
|
160
|
+
.card-shell[data-side=right] > .card-header { order: 1; }
|
|
161
|
+
.card-shell:not([data-side=top]) > .card-header {
|
|
162
|
+
flex: 0 0 8rem;
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
align-items: flex-start;
|
|
165
|
+
max-width: 35%;
|
|
166
|
+
gap: .5rem;
|
|
167
|
+
padding: .75rem;
|
|
168
|
+
}
|
|
169
|
+
.card-shell[data-side=left] > .card-header { border-bottom-right-radius: .5rem; }
|
|
170
|
+
.card-shell[data-side=right] > .card-header { border-bottom-left-radius: .5rem; }
|
|
171
|
+
.card-shell:not([data-side=top]) > .card-header > .card-title { flex: 0; }
|
|
172
|
+
|
|
173
|
+
.card-shell[data-collapsed] { display: block; }
|
|
174
|
+
.card-shell[data-collapsed] > .card-header {
|
|
175
|
+
flex-direction: row;
|
|
176
|
+
align-items: center;
|
|
177
|
+
width: auto;
|
|
178
|
+
max-width: none;
|
|
179
|
+
border-radius: 0;
|
|
180
|
+
}
|
|
181
|
+
.card-shell[data-collapsed] > .card-header > .card-title { flex: 1; }
|
|
182
|
+
.card-shell[data-collapsed] > .card-header > .card-collapse::before {
|
|
183
|
+
transform: translateX(-2px) rotate(-45deg);
|
|
184
|
+
}
|
|
185
|
+
`,this.shell=t.createElement("div"),this.shell.className="card-shell",this.header=t.createElement("div"),this.header.className="card-header",this.collapseButton=t.createElement("button"),this.collapseButton.type="button",this.collapseButton.className="card-collapse",this.collapseButton.setAttribute("aria-controls","control"),this.heading=t.createElement("button"),this.heading.type="button",this.heading.className="card-title",this.heading.setAttribute("aria-controls","control"),this.check=t.createElement("input"),this.check.type="checkbox",this.check.className="card-check",this.checkLabel=t.createElement("label"),this.checkLabel.className="card-check-label",this.checkCaption=t.createElement("span"),this.checkCaption.className="card-check-caption",this.checkLabel.append(this.check,this.checkCaption),this.actionsButton=t.createElement("button"),this.actionsButton.type="button",this.actionsButton.className="card-actions",this.actionsButton.textContent="Actions \u22EE",this.actionsButton.setAttribute("aria-haspopup","menu"),this.actionsButton.setAttribute("aria-expanded","false"),this.actionsButton.hidden=!0;let e=t.createElement("slot");e.name="card-menu",this.docButton=t.createElement("button"),this.docButton.type="button",this.docButton.className="card-doc-button",this.docButton.textContent="\u24D8",this.docButton.hidden=!0,this.docButton.setAttribute("aria-haspopup","dialog"),this.docButton.setAttribute("aria-controls","card-doc"),this.docButton.setAttribute("aria-expanded","false"),this.docPopup=t.createElement("section"),this.docPopup.id="card-doc",this.docPopup.className="card-doc-popup",this.docPopup.setAttribute("popover","manual"),this.docPopup.setAttribute("role","dialog"),this.docPopup.setAttribute("aria-labelledby","card-doc-title");let i=t.createElement("div");i.className="card-doc-heading",this.docTitle=t.createElement("h2"),this.docTitle.id="card-doc-title",this.docClose=t.createElement("button"),this.docClose.type="button",this.docClose.className="card-doc-close",this.docClose.textContent="Close",this.docClose.setAttribute("aria-label","Close guide"),i.append(this.docTitle,this.docClose),this.docBody=t.createElement("div"),this.docBody.className="card-doc-body",this.docPopup.append(i,this.docBody),this.header.append(this.collapseButton,this.heading,this.docButton,this.checkLabel,this.actionsButton),this.shell.append(this.header,this.controlBox),this.shadowRoot.append(a,this.shell,e,this.docPopup),this.docButton.addEventListener("click",r=>{r.stopPropagation(),this.#t?this.closeDoc():this.openDoc()}),this.docClose.addEventListener("click",r=>{r.stopPropagation(),this.closeDoc()}),this.docPopup.addEventListener("click",r=>r.stopPropagation()),this.controlBox.setAttribute("role","group"),this.controlBox.tabIndex=-1,this.collapseButton.addEventListener("click",r=>{r.stopPropagation(),this.isConnected&&this.parameters.collapsible&&this.#e.writeParameter("collapsed",!this.parameters.collapsed)}),this.heading.addEventListener("click",r=>{r.stopPropagation(),this.isConnected&&this.parameters.collapsible&&this.parameters.collapsed&&this.#e.writeParameter("collapsed",!1)}),this.check.addEventListener("click",r=>r.stopPropagation()),this.checkLabel.addEventListener("click",r=>r.stopPropagation()),this.check.addEventListener("change",r=>{r.stopPropagation(),this.isConnected&&this.parameters.checkbox!==null&&(this.#e.writeParameter("checkbox",this.check.checked),this.check.checked=this.parameters.checkbox)}),this.actionsButton.addEventListener("click",r=>{r.stopPropagation(),this.actionsMenu?.opened?this.actionsMenu.close():this.openMenu()}),this.actionsButton.addEventListener("keydown",r=>{["ArrowDown","ArrowUp"].includes(r.key)&&(r.preventDefault(),r.stopPropagation(),this.openMenu(r.key==="ArrowUp"))}),this.#i=new this.ownerDocument.defaultView.MutationObserver(()=>this.refreshMenu())}setSourceContext(t){this.#e=t}connectedCallback(){this.#i.observe(this,{childList:!0}),this.refreshMenu()}disconnectedCallback(){this.closeDoc(!1),this.#i.disconnect(),this.actionsMenu?.close(!1),this.clearItem?.remove(),this.#o=null}get actionsMenu(){return this.#o}refreshMenu(){if(!this.parameters||!this.isConnected)return;let t=[...this.children].map(E).filter(i=>i.localName==="gramlot-menu");if(t.length>1||t[0]?.permanent)throw new TypeError("groupletCard accepts one direct popup menu");let a=this.parameters.delitem!==null;!t.length&&a&&!this.#a&&(this.#a=this.ownerDocument.createElement("gramlot-menu"),this.#a.projectAttributes({}),this.shadowRoot.append(this.#a));let e=t[0]??(a?this.#a:null);this.#o!==e&&(this.#o?.close(!1),this.clearItem?.remove(),this.#o=e),t[0]&&(t[0].slot="card-menu"),this.actionsButton.hidden=!e,this.actionsButton.setAttribute("aria-label",`Actions for ${this.parameters.title||"card"}`),e&&(a?(this.clearItem||(this.clearItem=this.ownerDocument.createElement("gramlot-menu-line"),this.clearItem.addEventListener("click",i=>{i.stopPropagation(),!(!this.isConnected||this.clearItem.disabled)&&(this.actionsMenu.close(),this.cardActions.clear().catch(r=>this.#e.reportError(r,"Clear card fields")))})),this.clearItem.projectAttributes({caption:"Clear",disabled:this.parameters.delitem!==!0}),this.clearItem.parentElement!==e&&e.append(this.clearItem)):this.clearItem?.remove(),e.refreshItems())}openMenu(t=!1){this.isConnected&&(this.closeDoc(!1),this.refreshMenu(),this.actionsMenu?.open(this.actionsButton,t))}refreshDoc(){let t=this.parameters.doc;if(typeof t!="string")throw new TypeError("groupletCard doc must be Markdown text");let a=t.trim().length>0;!a&&this.#t&&(this.closeDoc(!1),(this.parameters.collapsible?this.collapseButton:this.controlBox).focus({preventScroll:!0})),this.docButton.hidden=!a,this.docButton.setAttribute("aria-label",`Guide for ${this.parameters.title||"card"}`),this.docTitle.textContent=this.parameters.title||"Card guide",this.#t&&!this.#r&&!this.docReady&&(this.docReady=import("./modules/markdown-document-YWNZTOKK.js").then(e=>{this.#r=e.markdownRenderer,this.isConnected&&this.#t&&this.refreshDoc()}),this.docReady.catch(e=>console.error(e))),this.#t&&this.#r&&this.#l!==t&&(this.docBody.innerHTML=this.#r.render(t),this.#l=t),this.#t&&x(this.docPopup,this.docButton,{align:"end"})}openDoc(){if(!this.isConnected||!this.parameters.doc.trim()||(this.actionsMenu?.close(!1),this.refreshDoc(),this.#t))return;this.docPopup.showPopover(),this.#t=new this.ownerDocument.defaultView.AbortController,this.refreshDoc();let t={signal:this.#t.signal},a=()=>x(this.docPopup,this.docButton,{align:"end"});this.ownerDocument.addEventListener("keydown",e=>{e.key==="Escape"&&!e.defaultPrevented&&(e.preventDefault(),e.stopPropagation(),this.closeDoc())},t),this.ownerDocument.addEventListener("pointerdown",e=>{!e.composedPath().includes(this.docPopup)&&!e.composedPath().includes(this.docButton)&&this.closeDoc(!1)},t),this.ownerDocument.addEventListener("focusin",e=>{!e.composedPath().includes(this.docPopup)&&!e.composedPath().includes(this.docButton)&&this.closeDoc(!1)},t),this.ownerDocument.addEventListener("scroll",a,{...t,capture:!0}),this.ownerDocument.defaultView.addEventListener("resize",a,t),this.docButton.setAttribute("aria-expanded","true"),a(),this.docClose.focus({preventScroll:!0})}closeDoc(t=!0){this.#t&&(this.#t.abort(),this.#t=null,this.docPopup.hidePopover(),this.docButton.setAttribute("aria-expanded","false"),t&&this.isConnected&&this.docButton.focus({preventScroll:!0}))}projectAttributes(t){let a=super.projectAttributes(t),e=this.parameters;if(!["top","left","right"].includes(e.chromeSide))throw new TypeError("groupletCard chromeSide must be top, left or right");if(typeof e.title!="string"||typeof e.checkboxLabel!="string"||typeof e.collapsible!="boolean"||typeof e.collapsed!="boolean"||e.delitem!==null&&typeof e.delitem!="boolean"||e.checkbox!==null&&typeof e.checkbox!="boolean")throw new TypeError("groupletCard requires text labels and boolean states");let i=e.collapsible&&e.collapsed;return i&&!this.controlBox.hidden&&this.contains(this.ownerDocument.activeElement)&&this.ownerDocument.activeElement!==this&&this.collapseButton.focus(),this.heading.textContent=e.title,this.heading.disabled=!i,this.heading.setAttribute("aria-expanded",String(!i)),this.controlBox.setAttribute("aria-label",e.title),this.collapseButton.hidden=!e.collapsible,this.collapseButton.textContent=i?"\u25B8":"\u25BE",this.collapseButton.title=i?"Expand card":"Collapse card",this.collapseButton.setAttribute("aria-label",this.collapseButton.title),this.collapseButton.setAttribute("aria-expanded",String(!i)),this.check.hidden=e.checkbox===null,this.checkLabel.hidden=e.checkbox===null,this.checkCaption.textContent=e.checkboxLabel,this.check.checked=e.checkbox===!0,this.check.setAttribute("aria-label",e.checkboxLabel||(e.title?`Select ${e.title}`:"Select card")),this.shell.dataset.side=e.chromeSide,this.shell.toggleAttribute("data-collapsed",i),this.controlBox.hidden=i,this.refreshMenu(),this.refreshDoc(),a}}});var T=(0,n.defineComponent)({name:"grouplet",tag:"gramlot-grouplet",base:d,subTags:"*",parameters:{remote:{dtype:"T",nullable:!0,binding:"read"}},implementation:o=>class extends o{}}),J=g({name:"grouplets",components:[T,P]});export{T as Grouplet,P as GroupletCard,J as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var g=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var k=(b,a)=>{for(var c in a)g(b,c,{get:a[c],enumerable:!0})},f=(b,a,c,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!j.call(b,d)&&d!==c&&g(b,d,{get:()=>a[d],enumerable:!(e=h(a,d))||e.enumerable});return b},l=(b,a,c)=>(f(b,a,"default"),c&&f(c,a,"default"));export{k as a,l as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-BLMUM44K.js";import t from"@gramlot/gramlot/markdown";import{createDOMPurify as d}from"@gramlot/gramlot";var a=new t({html:!1}),i=new t({html:!0}),l="body{font:16px/1.6 system-ui;color:#243449;background:white;padding:24px;margin:0;overflow-wrap:anywhere}table{border-collapse:collapse}td,th{border:1px solid #ccd3dd;padding:6px 12px}pre{overflow:auto;background:#edf1f7;padding:12px;border-radius:4px}code{font-size:.9em}img{max-width:100%}blockquote{border-left:3px solid #ccd3dd;margin-left:0;padding-left:16px}a{color:#3566aa}";function m(e,{allowHtml:r=!1,document:o}={}){if(typeof e!="string")throw new TypeError("Markdown preview value must be a string");let n=r?d(o.defaultView).sanitize(i.render(e),{USE_PROFILES:{html:!0},FORBID_TAGS:["style","form","input","button","select","textarea"]}):a.render(e);return`<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:; form-action 'none'"><style>${l}</style></head><body>${n}</body></html>`}export{a as markdownRenderer,m as renderMarkdownDocument};
|
|
@@ -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:427da7b6b4f4089963c1c882cfaff77f5558b783146b0186d670cccc218c823e",
|
|
12
12
|
files=("assets/collection.js", "assets/index.js", "commands.json", "grammar.json",),
|
|
13
13
|
)
|