-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb-types.json
More file actions
288 lines (288 loc) · 8.98 KB
/
web-types.json
File metadata and controls
288 lines (288 loc) · 8.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
{
"$schema": "https://json.schemastore.org/web-types",
"js-types-syntax": "typescript",
"description-markup": "markdown",
"name": "@piglet/components",
"version": "1.0.0",
"contributions": {
"html": {
"elements": [
{
"name": "RenderIf",
"description": "Conditional rendering component that shows or hides its content based on the `condition` attribute. Supports boolean values, state keys, or nested paths (e.g., `user.loggedIn`). Negation is supported using the `!` prefix.",
"attributes": [
{
"name": "condition",
"description": "Boolean expression or state path to evaluate. Supports negation with `!`, e.g., `!user.loggedIn`.",
"value": {
"kind": "expression",
"type": "boolean | string"
},
"required": true
}
]
},
{
"name": "App",
"description": "Top-level application router component. Dynamically loads pages based on the current route and injects them into its shadow DOM.",
"attributes": [
{
"name": "route",
"description": "Current route value. Determines which page component should be dynamically loaded and rendered.",
"value": {
"kind": "expression",
"type": "string"
}
}
],
"js": {
"properties": [
{
"name": "route",
"description": "Current route string. Changing it updates the URL and re-renders the corresponding component.",
"type": "string"
}
],
"slots": []
}
},
{
"name": "routes",
"description": "Container for multiple <route> elements. Should be placed inside <app-root> to define routing table."
},
{
"name": "route",
"description": "Defines a single route entry. Must have a 'value' attribute and a page component as its child.",
"attributes": [
{
"name": "value",
"description": "Path for this route (e.g., '/', '/about', '/notfound').",
"value": {
"kind": "expression",
"type": "string"
},
"required": true
}
]
},
{
"name": "content",
"description": "Wrapper component used to structure page content. Typically used inside route components to group page layout and elements."
},
{
"name": "NavLink",
"description": "Navigation link component that displays a link with optional active state based on the current route.",
"attributes": [
{
"name": "to",
"description": "URL to navigate to when the link is clicked.",
"value": {
"kind": "expression",
"type": "string"
},
"required": true
}
]
},
{
"name": "KinderGarten",
"description": "Place where children of the component are rendered. There can be only one instance of this in the single component."
},
{
"name": "AppContent",
"description": "Container for the main content of the application. It is used inside the AppRoot component to define the layout and structure of the app's content."
},
{
"name": "HomePage",
"description": "Home page",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "NotFound",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "PigsPage",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "KeyGeneration",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "PerformanceTest",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "EasyPerformanceTest",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "ClickCounter",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "NavBar",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "EasyPerformanceComponent",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "PerformanceComponent",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "PerformanceEntry",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "TestDescription",
"description": "Test description for the performance tests",
"attributes": [
{
"name": "longDescription",
"value": {
"type": "boolean"
},
"default": false,
"description": "Whether to show the long description of the test"
},
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
},
{
"name": "PigsContainer",
"description": "No description found",
"attributes": [
{
"name": "fragment",
"description": "Indicates that the component should be rendered as a fragment.",
"value": {
"type": "boolean"
},
"default": "false"
}
]
}
]
}
}
}