@openelement/ui 1.0.0-alpha.6 → 1.0.0-alpha.8
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/README.md +2 -1
- package/package.json +8 -3
- package/src/component-recipes.js +60 -60
- package/src/generated-manifest.json +2 -2
- package/src/index.d.ts +15 -43
- package/src/index.js +15 -50
- package/src/instance-state.d.ts +16 -2
- package/src/instance-state.js +30 -24
- package/src/manifest.d.ts +5 -9
- package/src/manifest.js +6 -11
- package/src/open-badge.d.ts +113 -159
- package/src/open-badge.js +185 -239
- package/src/open-button.d.ts +296 -898
- package/src/open-button.js +1129 -1322
- package/src/open-callout.d.ts +225 -366
- package/src/open-callout.js +471 -569
- package/src/open-card.d.ts +114 -144
- package/src/open-card.js +182 -251
- package/src/open-code-block.d.ts +165 -168
- package/src/open-code-block.js +300 -366
- package/src/open-dialog.d.ts +241 -424
- package/src/open-dialog.js +626 -823
- package/src/open-dropdown.d.ts +195 -252
- package/src/open-dropdown.js +351 -471
- package/src/open-input.d.ts +404 -1420
- package/src/open-input.js +1788 -2095
- package/src/open-props-tokens.d.ts +5 -5
- package/src/open-props-tokens.js +13 -8
- package/src/open-tabs.d.ts +163 -191
- package/src/open-tabs.js +291 -361
- package/src/open-theme-toggle.d.ts +171 -287
- package/src/open-theme-toggle.js +513 -754
- package/src/register.d.ts +4 -1
- package/src/register.js +27 -58
package/src/open-callout.js
CHANGED
|
@@ -1,571 +1,473 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { CALLOUT_TYPE_ICONS, recipe } from "./component-recipes.js";
|
|
2
|
+
import { OpenElement, computed } from "@openelement/element";
|
|
3
|
+
//#region src/open-callout.tsx
|
|
4
4
|
const __partProgram = {
|
|
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
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
"attribute": null,
|
|
302
|
-
"type": "string",
|
|
303
|
-
"converter": "string",
|
|
304
|
-
"reflect": false,
|
|
305
|
-
"default": null,
|
|
306
|
-
"computed": true,
|
|
307
|
-
"deps": [
|
|
308
|
-
"type"
|
|
309
|
-
]
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"name": "headerHidden",
|
|
313
|
-
"attribute": null,
|
|
314
|
-
"type": "boolean",
|
|
315
|
-
"converter": "boolean",
|
|
316
|
-
"reflect": false,
|
|
317
|
-
"default": null,
|
|
318
|
-
"computed": true,
|
|
319
|
-
"deps": [
|
|
320
|
-
"label"
|
|
321
|
-
]
|
|
322
|
-
}
|
|
323
|
-
],
|
|
324
|
-
"observedAttributes": [
|
|
325
|
-
"type",
|
|
326
|
-
"label"
|
|
327
|
-
],
|
|
328
|
-
"cem": {
|
|
329
|
-
"tagName": "open-callout",
|
|
330
|
-
"className": "OpenCallout",
|
|
331
|
-
"declaration": {
|
|
332
|
-
"name": "OpenCallout",
|
|
333
|
-
"module": "open-callout.tsx"
|
|
334
|
-
},
|
|
335
|
-
"attributes": [
|
|
336
|
-
{
|
|
337
|
-
"name": "type",
|
|
338
|
-
"fieldName": "type",
|
|
339
|
-
"type": "string",
|
|
340
|
-
"reflect": true
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"name": "label",
|
|
344
|
-
"fieldName": "label",
|
|
345
|
-
"type": "string",
|
|
346
|
-
"reflect": false
|
|
347
|
-
}
|
|
348
|
-
],
|
|
349
|
-
"members": [
|
|
350
|
-
{
|
|
351
|
-
"name": "type",
|
|
352
|
-
"fieldName": "type",
|
|
353
|
-
"type": "string",
|
|
354
|
-
"attribute": "type",
|
|
355
|
-
"reflect": true
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
"name": "label",
|
|
359
|
-
"fieldName": "label",
|
|
360
|
-
"type": "string",
|
|
361
|
-
"attribute": "label",
|
|
362
|
-
"reflect": false
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"name": "icon",
|
|
366
|
-
"fieldName": "icon",
|
|
367
|
-
"type": "string",
|
|
368
|
-
"attribute": null,
|
|
369
|
-
"reflect": false
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"name": "headerHidden",
|
|
373
|
-
"fieldName": "headerHidden",
|
|
374
|
-
"type": "boolean",
|
|
375
|
-
"attribute": null,
|
|
376
|
-
"reflect": false
|
|
377
|
-
}
|
|
378
|
-
]
|
|
379
|
-
}
|
|
380
|
-
}
|
|
5
|
+
"version": 1,
|
|
6
|
+
"tag": "open-callout",
|
|
7
|
+
"root": {
|
|
8
|
+
"id": "root",
|
|
9
|
+
"kind": "shadow-open",
|
|
10
|
+
"nodes": ["e0"]
|
|
11
|
+
},
|
|
12
|
+
"template": [{
|
|
13
|
+
"k": "el",
|
|
14
|
+
"id": "e0",
|
|
15
|
+
"tag": "div",
|
|
16
|
+
"attrs": [["class", "callout"], ["part", "container"]],
|
|
17
|
+
"children": [{
|
|
18
|
+
"k": "el",
|
|
19
|
+
"id": "e1",
|
|
20
|
+
"tag": "div",
|
|
21
|
+
"attrs": [["class", "callout-header"]],
|
|
22
|
+
"children": [{
|
|
23
|
+
"k": "el",
|
|
24
|
+
"id": "e2",
|
|
25
|
+
"tag": "span",
|
|
26
|
+
"attrs": [["class", "callout-icon"], ["part", "icon"]],
|
|
27
|
+
"children": [{
|
|
28
|
+
"k": "part",
|
|
29
|
+
"id": "p1",
|
|
30
|
+
"index": 1
|
|
31
|
+
}]
|
|
32
|
+
}, {
|
|
33
|
+
"k": "el",
|
|
34
|
+
"id": "e3",
|
|
35
|
+
"tag": "span",
|
|
36
|
+
"attrs": [["class", "callout-title"]],
|
|
37
|
+
"children": [{
|
|
38
|
+
"k": "part",
|
|
39
|
+
"id": "p2",
|
|
40
|
+
"index": 2
|
|
41
|
+
}]
|
|
42
|
+
}]
|
|
43
|
+
}, {
|
|
44
|
+
"k": "el",
|
|
45
|
+
"id": "e4",
|
|
46
|
+
"tag": "div",
|
|
47
|
+
"attrs": [["class", "callout-body"], ["part", "content"]],
|
|
48
|
+
"children": [{
|
|
49
|
+
"k": "el",
|
|
50
|
+
"id": "e5",
|
|
51
|
+
"tag": "slot",
|
|
52
|
+
"attrs": [],
|
|
53
|
+
"children": []
|
|
54
|
+
}]
|
|
55
|
+
}]
|
|
56
|
+
}],
|
|
57
|
+
"parts": [
|
|
58
|
+
{
|
|
59
|
+
"k": "bool",
|
|
60
|
+
"signal": "headerHidden",
|
|
61
|
+
"name": "hidden",
|
|
62
|
+
"path": [0, 0],
|
|
63
|
+
"index": 0,
|
|
64
|
+
"location": {
|
|
65
|
+
"id": "p0",
|
|
66
|
+
"kind": "sink",
|
|
67
|
+
"path": [0, 0],
|
|
68
|
+
"node": "e1"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"k": "text",
|
|
73
|
+
"signal": "icon",
|
|
74
|
+
"index": 1,
|
|
75
|
+
"location": {
|
|
76
|
+
"id": "p1",
|
|
77
|
+
"kind": "anchor",
|
|
78
|
+
"path": [
|
|
79
|
+
0,
|
|
80
|
+
0,
|
|
81
|
+
0,
|
|
82
|
+
0
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"k": "text",
|
|
88
|
+
"signal": "label",
|
|
89
|
+
"index": 2,
|
|
90
|
+
"location": {
|
|
91
|
+
"id": "p2",
|
|
92
|
+
"kind": "anchor",
|
|
93
|
+
"path": [
|
|
94
|
+
0,
|
|
95
|
+
0,
|
|
96
|
+
1,
|
|
97
|
+
0
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"regions": [],
|
|
103
|
+
"dependencies": [
|
|
104
|
+
{
|
|
105
|
+
"signal": "headerHidden",
|
|
106
|
+
"owner": {
|
|
107
|
+
"kind": "part",
|
|
108
|
+
"index": 0
|
|
109
|
+
},
|
|
110
|
+
"location": "p0"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"signal": "icon",
|
|
114
|
+
"owner": {
|
|
115
|
+
"kind": "part",
|
|
116
|
+
"index": 1
|
|
117
|
+
},
|
|
118
|
+
"location": "p1"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"signal": "label",
|
|
122
|
+
"owner": {
|
|
123
|
+
"kind": "part",
|
|
124
|
+
"index": 2
|
|
125
|
+
},
|
|
126
|
+
"location": "p2"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"locations": [
|
|
130
|
+
{
|
|
131
|
+
"id": "e0",
|
|
132
|
+
"kind": "element",
|
|
133
|
+
"tag": "div",
|
|
134
|
+
"path": [0]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "e1",
|
|
138
|
+
"kind": "element",
|
|
139
|
+
"tag": "div",
|
|
140
|
+
"path": [0, 0]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "p0",
|
|
144
|
+
"kind": "sink",
|
|
145
|
+
"part": 0,
|
|
146
|
+
"node": "e1",
|
|
147
|
+
"path": [0, 0]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "e2",
|
|
151
|
+
"kind": "element",
|
|
152
|
+
"tag": "span",
|
|
153
|
+
"path": [
|
|
154
|
+
0,
|
|
155
|
+
0,
|
|
156
|
+
0
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "p1",
|
|
161
|
+
"kind": "anchor",
|
|
162
|
+
"part": 1,
|
|
163
|
+
"path": [
|
|
164
|
+
0,
|
|
165
|
+
0,
|
|
166
|
+
0,
|
|
167
|
+
0
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "e3",
|
|
172
|
+
"kind": "element",
|
|
173
|
+
"tag": "span",
|
|
174
|
+
"path": [
|
|
175
|
+
0,
|
|
176
|
+
0,
|
|
177
|
+
1
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"id": "p2",
|
|
182
|
+
"kind": "anchor",
|
|
183
|
+
"part": 2,
|
|
184
|
+
"path": [
|
|
185
|
+
0,
|
|
186
|
+
0,
|
|
187
|
+
1,
|
|
188
|
+
0
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"id": "e4",
|
|
193
|
+
"kind": "element",
|
|
194
|
+
"tag": "div",
|
|
195
|
+
"path": [0, 1]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"id": "e5",
|
|
199
|
+
"kind": "element",
|
|
200
|
+
"tag": "slot",
|
|
201
|
+
"path": [
|
|
202
|
+
0,
|
|
203
|
+
1,
|
|
204
|
+
0
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
"metadata": {
|
|
209
|
+
"tag": "open-callout",
|
|
210
|
+
"className": "OpenCallout",
|
|
211
|
+
"sourceFile": "open-callout.tsx",
|
|
212
|
+
"properties": [
|
|
213
|
+
{
|
|
214
|
+
"name": "type",
|
|
215
|
+
"attribute": "type",
|
|
216
|
+
"type": "string",
|
|
217
|
+
"converter": "string",
|
|
218
|
+
"reflect": true,
|
|
219
|
+
"default": "info"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "label",
|
|
223
|
+
"attribute": "label",
|
|
224
|
+
"type": "string",
|
|
225
|
+
"converter": "string",
|
|
226
|
+
"reflect": false,
|
|
227
|
+
"default": ""
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "icon",
|
|
231
|
+
"attribute": null,
|
|
232
|
+
"type": "string",
|
|
233
|
+
"converter": "string",
|
|
234
|
+
"reflect": false,
|
|
235
|
+
"default": null,
|
|
236
|
+
"computed": true,
|
|
237
|
+
"deps": ["type"]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "headerHidden",
|
|
241
|
+
"attribute": null,
|
|
242
|
+
"type": "boolean",
|
|
243
|
+
"converter": "boolean",
|
|
244
|
+
"reflect": false,
|
|
245
|
+
"default": null,
|
|
246
|
+
"computed": true,
|
|
247
|
+
"deps": ["label"]
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"observedAttributes": ["type", "label"],
|
|
251
|
+
"cem": {
|
|
252
|
+
"tagName": "open-callout",
|
|
253
|
+
"className": "OpenCallout",
|
|
254
|
+
"declaration": {
|
|
255
|
+
"name": "OpenCallout",
|
|
256
|
+
"module": "open-callout.tsx"
|
|
257
|
+
},
|
|
258
|
+
"attributes": [{
|
|
259
|
+
"name": "type",
|
|
260
|
+
"fieldName": "type",
|
|
261
|
+
"type": "string",
|
|
262
|
+
"reflect": true
|
|
263
|
+
}, {
|
|
264
|
+
"name": "label",
|
|
265
|
+
"fieldName": "label",
|
|
266
|
+
"type": "string",
|
|
267
|
+
"reflect": false
|
|
268
|
+
}],
|
|
269
|
+
"members": [
|
|
270
|
+
{
|
|
271
|
+
"name": "type",
|
|
272
|
+
"fieldName": "type",
|
|
273
|
+
"type": "string",
|
|
274
|
+
"attribute": "type",
|
|
275
|
+
"reflect": true
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "label",
|
|
279
|
+
"fieldName": "label",
|
|
280
|
+
"type": "string",
|
|
281
|
+
"attribute": "label",
|
|
282
|
+
"reflect": false
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "icon",
|
|
286
|
+
"fieldName": "icon",
|
|
287
|
+
"type": "string",
|
|
288
|
+
"attribute": null,
|
|
289
|
+
"reflect": false
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "headerHidden",
|
|
293
|
+
"fieldName": "headerHidden",
|
|
294
|
+
"type": "boolean",
|
|
295
|
+
"attribute": null,
|
|
296
|
+
"reflect": false
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
}
|
|
381
301
|
};
|
|
382
302
|
const __compiledProperties = [
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
"deps": [
|
|
420
|
-
"label"
|
|
421
|
-
]
|
|
422
|
-
}
|
|
303
|
+
{
|
|
304
|
+
"name": "type",
|
|
305
|
+
"attribute": "type",
|
|
306
|
+
"type": "string",
|
|
307
|
+
"converter": "string",
|
|
308
|
+
"reflect": true,
|
|
309
|
+
"default": "info"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"name": "label",
|
|
313
|
+
"attribute": "label",
|
|
314
|
+
"type": "string",
|
|
315
|
+
"converter": "string",
|
|
316
|
+
"reflect": false,
|
|
317
|
+
"default": ""
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "icon",
|
|
321
|
+
"attribute": null,
|
|
322
|
+
"type": "string",
|
|
323
|
+
"converter": "string",
|
|
324
|
+
"reflect": false,
|
|
325
|
+
"default": null,
|
|
326
|
+
"computed": true,
|
|
327
|
+
"deps": ["type"]
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "headerHidden",
|
|
331
|
+
"attribute": null,
|
|
332
|
+
"type": "boolean",
|
|
333
|
+
"converter": "boolean",
|
|
334
|
+
"reflect": false,
|
|
335
|
+
"default": null,
|
|
336
|
+
"computed": true,
|
|
337
|
+
"deps": ["label"]
|
|
338
|
+
}
|
|
423
339
|
];
|
|
424
340
|
const __elementMetadata = {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"name": "headerHidden",
|
|
519
|
-
"fieldName": "headerHidden",
|
|
520
|
-
"type": "boolean",
|
|
521
|
-
"attribute": null,
|
|
522
|
-
"reflect": false
|
|
523
|
-
}
|
|
524
|
-
]
|
|
525
|
-
}
|
|
341
|
+
"tag": "open-callout",
|
|
342
|
+
"className": "OpenCallout",
|
|
343
|
+
"sourceFile": "open-callout.tsx",
|
|
344
|
+
"properties": [
|
|
345
|
+
{
|
|
346
|
+
"name": "type",
|
|
347
|
+
"attribute": "type",
|
|
348
|
+
"type": "string",
|
|
349
|
+
"converter": "string",
|
|
350
|
+
"reflect": true,
|
|
351
|
+
"default": "info"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "label",
|
|
355
|
+
"attribute": "label",
|
|
356
|
+
"type": "string",
|
|
357
|
+
"converter": "string",
|
|
358
|
+
"reflect": false,
|
|
359
|
+
"default": ""
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "icon",
|
|
363
|
+
"attribute": null,
|
|
364
|
+
"type": "string",
|
|
365
|
+
"converter": "string",
|
|
366
|
+
"reflect": false,
|
|
367
|
+
"default": null,
|
|
368
|
+
"computed": true,
|
|
369
|
+
"deps": ["type"]
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "headerHidden",
|
|
373
|
+
"attribute": null,
|
|
374
|
+
"type": "boolean",
|
|
375
|
+
"converter": "boolean",
|
|
376
|
+
"reflect": false,
|
|
377
|
+
"default": null,
|
|
378
|
+
"computed": true,
|
|
379
|
+
"deps": ["label"]
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"observedAttributes": ["type", "label"],
|
|
383
|
+
"cem": {
|
|
384
|
+
"tagName": "open-callout",
|
|
385
|
+
"className": "OpenCallout",
|
|
386
|
+
"declaration": {
|
|
387
|
+
"name": "OpenCallout",
|
|
388
|
+
"module": "open-callout.tsx"
|
|
389
|
+
},
|
|
390
|
+
"attributes": [{
|
|
391
|
+
"name": "type",
|
|
392
|
+
"fieldName": "type",
|
|
393
|
+
"type": "string",
|
|
394
|
+
"reflect": true
|
|
395
|
+
}, {
|
|
396
|
+
"name": "label",
|
|
397
|
+
"fieldName": "label",
|
|
398
|
+
"type": "string",
|
|
399
|
+
"reflect": false
|
|
400
|
+
}],
|
|
401
|
+
"members": [
|
|
402
|
+
{
|
|
403
|
+
"name": "type",
|
|
404
|
+
"fieldName": "type",
|
|
405
|
+
"type": "string",
|
|
406
|
+
"attribute": "type",
|
|
407
|
+
"reflect": true
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "label",
|
|
411
|
+
"fieldName": "label",
|
|
412
|
+
"type": "string",
|
|
413
|
+
"attribute": "label",
|
|
414
|
+
"reflect": false
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "icon",
|
|
418
|
+
"fieldName": "icon",
|
|
419
|
+
"type": "string",
|
|
420
|
+
"attribute": null,
|
|
421
|
+
"reflect": false
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "headerHidden",
|
|
425
|
+
"fieldName": "headerHidden",
|
|
426
|
+
"type": "boolean",
|
|
427
|
+
"attribute": null,
|
|
428
|
+
"reflect": false
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
}
|
|
526
432
|
};
|
|
527
|
-
const __observedAttributes = [
|
|
528
|
-
"type",
|
|
529
|
-
"label"
|
|
530
|
-
];
|
|
433
|
+
const __observedAttributes = ["type", "label"];
|
|
531
434
|
const __compiledProps = {
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
435
|
+
type: {
|
|
436
|
+
type: String,
|
|
437
|
+
default: "info",
|
|
438
|
+
reflect: true,
|
|
439
|
+
attribute: "type"
|
|
440
|
+
},
|
|
441
|
+
label: {
|
|
442
|
+
type: String,
|
|
443
|
+
default: "",
|
|
444
|
+
reflect: false,
|
|
445
|
+
attribute: "label"
|
|
446
|
+
},
|
|
447
|
+
icon: {
|
|
448
|
+
type: Object,
|
|
449
|
+
default: void 0,
|
|
450
|
+
reflect: false,
|
|
451
|
+
attribute: false
|
|
452
|
+
},
|
|
453
|
+
headerHidden: {
|
|
454
|
+
type: Object,
|
|
455
|
+
default: void 0,
|
|
456
|
+
reflect: false,
|
|
457
|
+
attribute: false
|
|
458
|
+
}
|
|
556
459
|
};
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
recipe(`
|
|
460
|
+
var OpenCallout = class extends OpenElement {
|
|
461
|
+
static __partProgram = __partProgram;
|
|
462
|
+
static __compiledProperties = __compiledProperties;
|
|
463
|
+
static __elementMetadata = __elementMetadata;
|
|
464
|
+
static props = __compiledProps;
|
|
465
|
+
static observedAttributes = __observedAttributes;
|
|
466
|
+
static __computedFields = {
|
|
467
|
+
icon: (__s) => computed(() => CALLOUT_TYPE_ICONS[__s.type.value] ?? CALLOUT_TYPE_ICONS.info),
|
|
468
|
+
headerHidden: (__s) => computed(() => __s.label.value === "")
|
|
469
|
+
};
|
|
470
|
+
static styles = [recipe(`
|
|
569
471
|
:host { display: block; }
|
|
570
472
|
.callout {
|
|
571
473
|
padding: var(--size-3) var(--size-4);
|
|
@@ -592,12 +494,12 @@ export class OpenCallout extends OpenElement {
|
|
|
592
494
|
font-size: var(--font-size-1); line-height: var(--font-lineheight-4); color: var(--text-secondary);
|
|
593
495
|
}
|
|
594
496
|
.callout-body ::slotted(p) { margin: 0; }
|
|
595
|
-
`)
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
export {
|
|
497
|
+
`)];
|
|
498
|
+
type = "info";
|
|
499
|
+
label = "";
|
|
500
|
+
render() {
|
|
501
|
+
throw new Error("[open:compiled-element] open-callout is compiled to a Part Program; the runtime JSX render path is not available.");
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
//#endregion
|
|
505
|
+
export { OpenCallout, __elementMetadata, __partProgram };
|