@fuzdev/fuz_ui 0.199.0 → 0.201.0
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 -2
- package/dist/ApiDeclarationList.svelte +1 -0
- package/dist/ApiDeclarationList.svelte.d.ts.map +1 -1
- package/dist/ApiModule.svelte +2 -2
- package/dist/DeclarationDetail.svelte +185 -125
- package/dist/DeclarationDetail.svelte.d.ts.map +1 -1
- package/dist/Dialog.svelte +174 -165
- package/dist/Dialog.svelte.d.ts +44 -13
- package/dist/Dialog.svelte.d.ts.map +1 -1
- package/dist/DialogContent.svelte +140 -0
- package/dist/DialogContent.svelte.d.ts +69 -0
- package/dist/DialogContent.svelte.d.ts.map +1 -0
- package/dist/ProjectLinks.svelte +1 -1
- package/dist/api_search.svelte.d.ts.map +1 -1
- package/dist/api_search.svelte.js +4 -2
- package/dist/declaration.svelte.d.ts +11 -0
- package/dist/declaration.svelte.d.ts.map +1 -1
- package/dist/declaration.svelte.js +13 -1
- package/dist/dialog.d.ts +32 -18
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.js +3 -12
- package/dist/module.svelte.d.ts +2 -0
- package/dist/module.svelte.d.ts.map +1 -1
- package/dist/module.svelte.js +2 -0
- package/package.json +6 -6
- package/src/lib/api_search.svelte.ts +4 -2
- package/src/lib/declaration.svelte.ts +16 -1
- package/src/lib/dialog.ts +30 -27
- package/src/lib/module.svelte.ts +4 -0
- package/dist/Dialogs.svelte +0 -28
- package/dist/Dialogs.svelte.d.ts +0 -11
- package/dist/Dialogs.svelte.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# fuz_ui
|
|
2
2
|
|
|
3
3
|
[<img src="static/logo.svg" alt="a friendly brown spider facing you" align="right" width="192" height="192">](https://ui.fuz.dev/)
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
fuz_ui is a Svelte UI library with components and helpers for making zippy
|
|
8
8
|
websites. It's built on [fuz_css](https://css.fuz.dev/)
|
|
9
|
-
and provides
|
|
9
|
+
and provides a documentation system built on
|
|
10
10
|
[svelte-docinfo](https://svelte-docinfo.fuz.dev/).
|
|
11
11
|
It's in early alpha with breaking changes ahead.
|
|
12
12
|
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
{:else}
|
|
25
25
|
{#each declarations as declaration (`${declaration.module_path}:${declaration.name}`)}
|
|
26
26
|
<TomeSection>
|
|
27
|
+
<!-- Show the bare name; generic parameters are documented in the detail below (generics/type signature). -->
|
|
27
28
|
<TomeSectionHeader text={declaration.name}>
|
|
28
29
|
<div class="word-break:break-all">{declaration.name}</div>
|
|
29
30
|
</TomeSectionHeader>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiDeclarationList.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/ApiDeclarationList.svelte"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAKxD,KAAK,gBAAgB,GAAI;IACxB,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiDeclarationList.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/ApiDeclarationList.svelte"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAKxD,KAAK,gBAAgB,GAAI;IACxB,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAqCH,QAAA,MAAM,kBAAkB,sDAAwC,CAAC;AACjE,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAChE,eAAe,kBAAkB,CAAC"}
|
package/dist/ApiModule.svelte
CHANGED
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
</TomeSection>
|
|
116
116
|
|
|
117
117
|
<!-- Depends on section -->
|
|
118
|
-
{#if module.
|
|
118
|
+
{#if module.has_dependencies}
|
|
119
119
|
<TomeSection>
|
|
120
120
|
<TomeSectionHeader text="Depends on" />
|
|
121
121
|
<ul>
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
{/if}
|
|
130
130
|
|
|
131
131
|
<!-- Imported by section -->
|
|
132
|
-
{#if module.
|
|
132
|
+
{#if module.has_dependents}
|
|
133
133
|
<TomeSection>
|
|
134
134
|
<TomeSectionHeader text="Imported by" />
|
|
135
135
|
<ul>
|
|
@@ -11,6 +11,7 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
11
11
|
-->
|
|
12
12
|
<script lang="ts">
|
|
13
13
|
import Code from '@fuzdev/fuz_code/Code.svelte';
|
|
14
|
+
import type {ParameterJsonInput} from 'svelte-docinfo/types.js';
|
|
14
15
|
|
|
15
16
|
import type {Declaration} from './declaration.svelte.js';
|
|
16
17
|
import TypeLink from './TypeLink.svelte';
|
|
@@ -19,8 +20,106 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
19
20
|
import {tsdoc_see_to_mdz} from './tsdoc_mdz.js';
|
|
20
21
|
|
|
21
22
|
const {declaration}: {declaration: Declaration} = $props();
|
|
23
|
+
|
|
24
|
+
// Optional prose metadata shared by component props and nested members,
|
|
25
|
+
// rendered in a compact form (the top-level declaration uses prominent
|
|
26
|
+
// sections for the same fields instead).
|
|
27
|
+
interface DocExtras {
|
|
28
|
+
deprecatedMessage?: string;
|
|
29
|
+
since?: string;
|
|
30
|
+
examples?: Array<string>;
|
|
31
|
+
seeAlso?: Array<string>;
|
|
32
|
+
throws?: Array<{type?: string; description: string}>;
|
|
33
|
+
}
|
|
22
34
|
</script>
|
|
23
35
|
|
|
36
|
+
<!-- A single function/method parameter: name, description, type, and optional/default. -->
|
|
37
|
+
{#snippet param_detail(param: ParameterJsonInput)}
|
|
38
|
+
<section>
|
|
39
|
+
<h4>
|
|
40
|
+
<code
|
|
41
|
+
>{param.name}{#if param.optional}<strong>?</strong>{/if}</code
|
|
42
|
+
>
|
|
43
|
+
</h4>
|
|
44
|
+
{#if param.description}
|
|
45
|
+
<Mdz content={param.description} />
|
|
46
|
+
{/if}
|
|
47
|
+
<div class="row gap_md mb_sm">
|
|
48
|
+
<strong>type</strong>
|
|
49
|
+
<TypeLink type={param.type} />
|
|
50
|
+
</div>
|
|
51
|
+
{#if param.optional || param.defaultValue}
|
|
52
|
+
<div class="row gap_md">
|
|
53
|
+
{#if param.optional}
|
|
54
|
+
<strong>optional</strong>
|
|
55
|
+
{/if}
|
|
56
|
+
{#if param.defaultValue}
|
|
57
|
+
<strong>default</strong>
|
|
58
|
+
<Code lang="ts" content={param.defaultValue} />
|
|
59
|
+
{/if}
|
|
60
|
+
</div>
|
|
61
|
+
{/if}
|
|
62
|
+
</section>
|
|
63
|
+
{/snippet}
|
|
64
|
+
|
|
65
|
+
<!-- A compact parameter row: name (with optional marker) and type, for snippet params and overloads. -->
|
|
66
|
+
{#snippet param_row(param: ParameterJsonInput)}
|
|
67
|
+
<div class="row gap_md">
|
|
68
|
+
<code
|
|
69
|
+
>{param.name}{#if param.optional}?{/if}</code
|
|
70
|
+
>
|
|
71
|
+
<TypeLink type={param.type} />
|
|
72
|
+
</div>
|
|
73
|
+
{/snippet}
|
|
74
|
+
|
|
75
|
+
<!-- Compact prose metadata for props and members (deprecated, since, examples, see also, throws). -->
|
|
76
|
+
{#snippet doc_extras(item: DocExtras)}
|
|
77
|
+
<!-- eslint-disable-next-line @typescript-eslint/no-deprecated -->
|
|
78
|
+
{#if item.deprecatedMessage !== undefined}
|
|
79
|
+
<p class="row gap_md">
|
|
80
|
+
<span class="chip">⚠️ deprecated</span>
|
|
81
|
+
<!-- eslint-disable-next-line @typescript-eslint/no-deprecated -->
|
|
82
|
+
{#if item.deprecatedMessage}{item.deprecatedMessage}{/if}
|
|
83
|
+
</p>
|
|
84
|
+
{/if}
|
|
85
|
+
{#if item.since}
|
|
86
|
+
<p><strong>since</strong> {item.since}</p>
|
|
87
|
+
{/if}
|
|
88
|
+
{#if item.examples?.length}
|
|
89
|
+
{#each item.examples as example (example)}
|
|
90
|
+
<Mdz content={example} />
|
|
91
|
+
{/each}
|
|
92
|
+
{/if}
|
|
93
|
+
{#if item.seeAlso?.length}
|
|
94
|
+
<p><strong>see also</strong></p>
|
|
95
|
+
<ul>
|
|
96
|
+
{#each item.seeAlso as ref (ref)}
|
|
97
|
+
<li><Mdz content={tsdoc_see_to_mdz(ref)} /></li>
|
|
98
|
+
{/each}
|
|
99
|
+
</ul>
|
|
100
|
+
{/if}
|
|
101
|
+
{#if item.throws?.length}
|
|
102
|
+
<p><strong>throws</strong></p>
|
|
103
|
+
<ul>
|
|
104
|
+
{#each item.throws as thrown (thrown)}
|
|
105
|
+
<li>
|
|
106
|
+
{#if thrown.type}
|
|
107
|
+
<code>{thrown.type}</code> - {thrown.description}
|
|
108
|
+
{:else}
|
|
109
|
+
{thrown.description}
|
|
110
|
+
{/if}
|
|
111
|
+
</li>
|
|
112
|
+
{/each}
|
|
113
|
+
</ul>
|
|
114
|
+
{/if}
|
|
115
|
+
{/snippet}
|
|
116
|
+
|
|
117
|
+
<!-- A comma-separated inline list of type links (extends, implements, intersects are rarely more than one). -->
|
|
118
|
+
{#snippet type_list(types: Array<string>)}
|
|
119
|
+
{#each types as type, i (type)}{#if i > 0},
|
|
120
|
+
{/if}<TypeLink {type} />{/each}
|
|
121
|
+
{/snippet}
|
|
122
|
+
|
|
24
123
|
<!-- Metadata -->
|
|
25
124
|
<p class="row justify-content:space-between">
|
|
26
125
|
<ModuleLink module_path={declaration.module_path} />
|
|
@@ -31,21 +130,37 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
31
130
|
</p>
|
|
32
131
|
|
|
33
132
|
<!-- chips -->
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
133
|
+
<!-- eslint-disable-next-line @typescript-eslint/no-deprecated -->
|
|
134
|
+
{#if declaration.is_deprecated || declaration.reactivity || declaration.accepts_children || declaration.alias_of}
|
|
135
|
+
<p class="row gap_md flex-wrap:wrap">
|
|
136
|
+
<!-- eslint-disable-next-line @typescript-eslint/no-deprecated -->
|
|
137
|
+
{#if declaration.is_deprecated}
|
|
138
|
+
<span class="chip">⚠️ deprecated</span>
|
|
139
|
+
{/if}
|
|
140
|
+
{#if declaration.reactivity}
|
|
141
|
+
<span class="chip">{declaration.reactivity}</span>
|
|
142
|
+
{/if}
|
|
143
|
+
{#if declaration.accepts_children}
|
|
144
|
+
<span class="chip">accepts children</span>
|
|
145
|
+
{/if}
|
|
146
|
+
{#if declaration.alias_of}
|
|
147
|
+
<span class="chip"
|
|
148
|
+
>alias of {declaration.alias_of.name}{#if declaration.alias_of.module}
|
|
149
|
+
in {declaration.alias_of.module}{/if}</span
|
|
150
|
+
>
|
|
151
|
+
{/if}
|
|
152
|
+
</p>
|
|
153
|
+
{/if}
|
|
154
|
+
|
|
155
|
+
<!-- also exported from -->
|
|
156
|
+
{#if declaration.also_exported_from?.length}
|
|
157
|
+
<p class="row gap_md flex-wrap:wrap">
|
|
158
|
+
<strong>also exported from</strong>
|
|
159
|
+
{#each declaration.also_exported_from as module_path (module_path)}
|
|
160
|
+
<ModuleLink {module_path} />
|
|
161
|
+
{/each}
|
|
162
|
+
</p>
|
|
163
|
+
{/if}
|
|
49
164
|
|
|
50
165
|
<!-- eslint-disable-next-line @typescript-eslint/no-deprecated -->
|
|
51
166
|
{#if declaration.deprecated_message}
|
|
@@ -60,6 +175,9 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
60
175
|
<Code lang="ts" content={declaration.type_signature} />
|
|
61
176
|
{/if}
|
|
62
177
|
|
|
178
|
+
<!-- import statement -->
|
|
179
|
+
<Code lang="ts" content={declaration.import_statement} />
|
|
180
|
+
|
|
63
181
|
<!-- documentation -->
|
|
64
182
|
{#if declaration.has_documentation}
|
|
65
183
|
<Mdz content={declaration.doc_comment!} />
|
|
@@ -69,31 +187,7 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
69
187
|
{#if declaration.parameters?.length}
|
|
70
188
|
<section>
|
|
71
189
|
{#each declaration.parameters as param (param)}
|
|
72
|
-
|
|
73
|
-
<h4>
|
|
74
|
-
<code
|
|
75
|
-
>{param.name}{#if param.optional}<strong>?</strong>{/if}</code
|
|
76
|
-
>
|
|
77
|
-
</h4>
|
|
78
|
-
{#if param.description}
|
|
79
|
-
<Mdz content={param.description} />
|
|
80
|
-
{/if}
|
|
81
|
-
<div class="row gap_md">
|
|
82
|
-
<strong>type</strong>
|
|
83
|
-
<TypeLink type={param.type} />
|
|
84
|
-
</div>
|
|
85
|
-
{#if param.optional || param.defaultValue}
|
|
86
|
-
<div class="row gap_md">
|
|
87
|
-
{#if param.optional}
|
|
88
|
-
<span class="chip">optional</span>
|
|
89
|
-
{/if}
|
|
90
|
-
{#if param.defaultValue}
|
|
91
|
-
<strong>default</strong>
|
|
92
|
-
<Code lang="ts" content={param.defaultValue} />
|
|
93
|
-
{/if}
|
|
94
|
-
</div>
|
|
95
|
-
{/if}
|
|
96
|
-
</section>
|
|
190
|
+
{@render param_detail(param)}
|
|
97
191
|
{/each}
|
|
98
192
|
</section>
|
|
99
193
|
{/if}
|
|
@@ -111,17 +205,17 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
111
205
|
{#if prop.description}
|
|
112
206
|
<Mdz content={prop.description} />
|
|
113
207
|
{/if}
|
|
114
|
-
<div class="row gap_md
|
|
208
|
+
<div class="row gap_md mb_sm">
|
|
115
209
|
<strong>type</strong>
|
|
116
210
|
<TypeLink type={prop.type} />
|
|
117
211
|
</div>
|
|
118
212
|
{#if prop.optional || prop.bindable || prop.defaultValue}
|
|
119
213
|
<div class="row gap_md">
|
|
120
214
|
{#if prop.optional}
|
|
121
|
-
<
|
|
215
|
+
<strong>optional</strong>
|
|
122
216
|
{/if}
|
|
123
217
|
{#if prop.bindable}
|
|
124
|
-
<
|
|
218
|
+
<strong>bindable</strong>
|
|
125
219
|
{/if}
|
|
126
220
|
{#if prop.defaultValue}
|
|
127
221
|
<strong>default</strong>
|
|
@@ -133,15 +227,11 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
133
227
|
<section>
|
|
134
228
|
<h5>snippet parameters</h5>
|
|
135
229
|
{#each prop.parameters as param (param)}
|
|
136
|
-
|
|
137
|
-
<code
|
|
138
|
-
>{param.name}{#if param.optional}?{/if}</code
|
|
139
|
-
>
|
|
140
|
-
<TypeLink type={param.type} />
|
|
141
|
-
</div>
|
|
230
|
+
{@render param_row(param)}
|
|
142
231
|
{/each}
|
|
143
232
|
</section>
|
|
144
233
|
{/if}
|
|
234
|
+
{@render doc_extras(prop)}
|
|
145
235
|
</section>
|
|
146
236
|
{/each}
|
|
147
237
|
</section>
|
|
@@ -159,12 +249,7 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
159
249
|
{/if}
|
|
160
250
|
{#if overload.parameters?.length}
|
|
161
251
|
{#each overload.parameters as param (param)}
|
|
162
|
-
|
|
163
|
-
<code
|
|
164
|
-
>{param.name}{#if param.optional}?{/if}</code
|
|
165
|
-
>
|
|
166
|
-
<TypeLink type={param.type} />
|
|
167
|
-
</div>
|
|
252
|
+
{@render param_row(param)}
|
|
168
253
|
{/each}
|
|
169
254
|
{/if}
|
|
170
255
|
{#if overload.returnType}
|
|
@@ -185,11 +270,9 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
185
270
|
{#if declaration.intersects?.length}
|
|
186
271
|
<section>
|
|
187
272
|
<h4>intersects</h4>
|
|
188
|
-
<
|
|
189
|
-
{
|
|
190
|
-
|
|
191
|
-
{/each}
|
|
192
|
-
</ul>
|
|
273
|
+
<div class="row gap_md flex-wrap:wrap">
|
|
274
|
+
{@render type_list(declaration.intersects)}
|
|
275
|
+
</div>
|
|
193
276
|
</section>
|
|
194
277
|
{/if}
|
|
195
278
|
|
|
@@ -207,10 +290,13 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
207
290
|
<!-- generics -->
|
|
208
291
|
{#if declaration.generic_params.length}
|
|
209
292
|
<section>
|
|
210
|
-
<
|
|
293
|
+
<div class="row gap_md">
|
|
294
|
+
<h4>generics</h4>
|
|
295
|
+
<TypeLink type={declaration.display_name} />
|
|
296
|
+
</div>
|
|
211
297
|
{#each declaration.generic_params as generic (generic)}
|
|
212
298
|
<section>
|
|
213
|
-
<
|
|
299
|
+
<h5><code>{generic.name}</code></h5>
|
|
214
300
|
{#if generic.constraint}
|
|
215
301
|
<div class="row gap_md">
|
|
216
302
|
<strong>constraint</strong>
|
|
@@ -233,27 +319,19 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
233
319
|
<section>
|
|
234
320
|
<h4>inheritance</h4>
|
|
235
321
|
{#if declaration.extends_type}
|
|
236
|
-
<div>
|
|
322
|
+
<div class="row gap_md flex-wrap:wrap">
|
|
237
323
|
<strong>extends:</strong>
|
|
238
|
-
{
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
</ul>
|
|
244
|
-
{:else}
|
|
245
|
-
<TypeLink type={declaration.extends_type} />
|
|
246
|
-
{/if}
|
|
324
|
+
{@render type_list(
|
|
325
|
+
Array.isArray(declaration.extends_type)
|
|
326
|
+
? declaration.extends_type
|
|
327
|
+
: [declaration.extends_type],
|
|
328
|
+
)}
|
|
247
329
|
</div>
|
|
248
330
|
{/if}
|
|
249
331
|
{#if declaration.implements_types?.length}
|
|
250
|
-
<div>
|
|
332
|
+
<div class="row gap_md flex-wrap:wrap">
|
|
251
333
|
<strong>implements:</strong>
|
|
252
|
-
|
|
253
|
-
{#each declaration.implements_types as impl (impl)}
|
|
254
|
-
<li><TypeLink type={impl} /></li>
|
|
255
|
-
{/each}
|
|
256
|
-
</ul>
|
|
334
|
+
{@render type_list(declaration.implements_types)}
|
|
257
335
|
</div>
|
|
258
336
|
{/if}
|
|
259
337
|
</section>
|
|
@@ -326,7 +404,12 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
326
404
|
<section>
|
|
327
405
|
{#each declaration.members as member (member)}
|
|
328
406
|
<section>
|
|
329
|
-
<h4
|
|
407
|
+
<h4>
|
|
408
|
+
<code
|
|
409
|
+
>{member.name}{#if member.kind !== 'constructor' && member.optional}<strong>?</strong
|
|
410
|
+
>{/if}</code
|
|
411
|
+
>
|
|
412
|
+
</h4>
|
|
330
413
|
{#if member.docComment}
|
|
331
414
|
<Mdz content={member.docComment} />
|
|
332
415
|
{/if}
|
|
@@ -340,42 +423,29 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
340
423
|
/>
|
|
341
424
|
</p>
|
|
342
425
|
{/if}
|
|
343
|
-
{#if member.modifiers?.length}
|
|
426
|
+
{#if member.modifiers?.length || (member.kind === 'variable' && member.reactivity)}
|
|
427
|
+
<div class="row gap_md flex-wrap:wrap">
|
|
428
|
+
{#if member.modifiers?.length}
|
|
429
|
+
{#each member.modifiers as modifier (modifier)}
|
|
430
|
+
<span class="chip">{modifier}</span>
|
|
431
|
+
{/each}
|
|
432
|
+
{/if}
|
|
433
|
+
{#if member.kind === 'variable' && member.reactivity}
|
|
434
|
+
<span class="chip">{member.reactivity}</span>
|
|
435
|
+
{/if}
|
|
436
|
+
</div>
|
|
437
|
+
{/if}
|
|
438
|
+
{#if member.kind === 'variable' && member.defaultValue}
|
|
344
439
|
<div class="row gap_md">
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
{/each}
|
|
440
|
+
<strong>default</strong>
|
|
441
|
+
<Code lang="ts" content={member.defaultValue} />
|
|
348
442
|
</div>
|
|
349
443
|
{/if}
|
|
350
444
|
<!-- parameters for methods and constructors -->
|
|
351
445
|
{#if (member.kind === 'function' || member.kind === 'constructor') && member.parameters?.length}
|
|
352
446
|
<section>
|
|
353
447
|
{#each member.parameters as param (param)}
|
|
354
|
-
|
|
355
|
-
<h5>
|
|
356
|
-
<code
|
|
357
|
-
>{param.name}{#if param.optional}<strong>?</strong>{/if}</code
|
|
358
|
-
>
|
|
359
|
-
</h5>
|
|
360
|
-
{#if param.description}
|
|
361
|
-
<Mdz content={param.description} />
|
|
362
|
-
{/if}
|
|
363
|
-
<div class="row gap_md">
|
|
364
|
-
<strong>type</strong>
|
|
365
|
-
<TypeLink type={param.type} />
|
|
366
|
-
</div>
|
|
367
|
-
{#if param.optional || param.defaultValue}
|
|
368
|
-
<div class="row gap_md">
|
|
369
|
-
{#if param.optional}
|
|
370
|
-
<span class="chip">optional</span>
|
|
371
|
-
{/if}
|
|
372
|
-
{#if param.defaultValue}
|
|
373
|
-
<strong>default</strong>
|
|
374
|
-
<Code lang="ts" content={param.defaultValue} />
|
|
375
|
-
{/if}
|
|
376
|
-
</div>
|
|
377
|
-
{/if}
|
|
378
|
-
</section>
|
|
448
|
+
{@render param_detail(param)}
|
|
379
449
|
{/each}
|
|
380
450
|
</section>
|
|
381
451
|
{/if}
|
|
@@ -389,24 +459,14 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
389
459
|
<Mdz content={member.returnDescription} />
|
|
390
460
|
{/if}
|
|
391
461
|
{/if}
|
|
392
|
-
|
|
393
|
-
{#if member.throws?.length}
|
|
394
|
-
<div>
|
|
395
|
-
<strong>throws</strong>
|
|
396
|
-
<ul>
|
|
397
|
-
{#each member.throws as thrown (thrown)}
|
|
398
|
-
<li>
|
|
399
|
-
{#if thrown.type}
|
|
400
|
-
<code>{thrown.type}</code> - {thrown.description}
|
|
401
|
-
{:else}
|
|
402
|
-
{thrown.description}
|
|
403
|
-
{/if}
|
|
404
|
-
</li>
|
|
405
|
-
{/each}
|
|
406
|
-
</ul>
|
|
407
|
-
</div>
|
|
408
|
-
{/if}
|
|
462
|
+
{@render doc_extras(member)}
|
|
409
463
|
</section>
|
|
410
464
|
{/each}
|
|
411
465
|
</section>
|
|
412
466
|
{/if}
|
|
467
|
+
|
|
468
|
+
<style>
|
|
469
|
+
section section:not(:last-child) {
|
|
470
|
+
margin-bottom: var(--space_xl4);
|
|
471
|
+
}
|
|
472
|
+
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeclarationDetail.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/DeclarationDetail.svelte"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeclarationDetail.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/DeclarationDetail.svelte"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAiBxD,KAAK,gBAAgB,GAAI;IAAC,WAAW,EAAE,WAAW,CAAA;CAAC,CAAC;AAqbrD;;;;;;;;GAQG;AACH,QAAA,MAAM,iBAAiB,sDAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
|