@supersoniks/concorde 5.0.5 → 5.1.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/.github/workflows/ci.yml +21 -0
- package/.github-export-ignore +30 -0
- package/.tmp-cem/custom-elements.json +13705 -0
- package/CONTRIBUTING.md +59 -0
- package/DEV.md +54 -0
- package/LICENSE +21 -0
- package/OPEN_SOURCE_CHECKPOINT.md +133 -0
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +3960 -0
- package/concorde-3d.es.js +33433 -0
- package/concorde-core.bundle.js +196 -196
- package/concorde-core.es.js +3685 -3405
- package/concorde-hugging-face-infer.bundle.js +32 -0
- package/concorde-hugging-face-infer.es.js +2952 -0
- package/concorde-interactive.bundle.js +1157 -0
- package/concorde-interactive.es.js +10734 -0
- package/concorde-shader.bundle.js +116 -0
- package/concorde-shader.es.js +8353 -0
- package/concorde-webgpu.bundle.js +307 -0
- package/concorde-webgpu.es.js +8627 -0
- package/custom-elements-manifest.config.mjs +14 -0
- package/dist/concorde-core.bundle.js +196 -196
- package/dist/concorde-core.es.js +3685 -3405
- package/docs/assets/{index-wVZpLVYW.js → index-D8MVWqY6.js} +1351 -1222
- package/docs/assets/index-DiD0qYvE.css +1 -0
- package/docs/crawl/core/components/ui/alert/alert.html +71 -172
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +5 -113
- package/docs/crawl/core/components/ui/badge/badge.html +79 -157
- package/docs/crawl/core/components/ui/button/button.html +0 -1
- package/docs/crawl/core/components/ui/captcha/captcha.html +8 -90
- package/docs/crawl/core/components/ui/card/card.html +68 -222
- package/docs/crawl/core/components/ui/divider/divider.html +31 -117
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +101 -232
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +52 -95
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +38 -97
- package/docs/crawl/core/components/ui/form/input/input.html +3 -3
- package/docs/crawl/core/components/ui/form/textarea/textarea.html +3 -3
- package/docs/crawl/core/components/ui/group/group.html +38 -60
- package/docs/crawl/core/components/ui/icon/icon.html +47 -136
- package/docs/crawl/core/components/ui/image/image.html +56 -244
- package/docs/crawl/core/components/ui/link/link.html +9 -67
- package/docs/crawl/core/components/ui/loader/loader.html +23 -97
- package/docs/crawl/core/components/ui/menu/menu.html +90 -162
- package/docs/crawl/core/components/ui/modal/modal.html +50 -275
- package/docs/crawl/core/components/ui/pop/pop.html +66 -260
- package/docs/crawl/core/components/ui/progress/progress.html +30 -103
- package/docs/crawl/core/components/ui/table/table.html +171 -303
- package/docs/crawl/core/components/ui/toast/toast.html +59 -170
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +29 -90
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +2 -3
- package/docs/crawl/docs/_getting-started/concorde-outside.html +3 -3
- package/docs/crawl/docs/_getting-started/start.html +1 -1
- package/docs/crawl/docs/_getting-started/theming.html +63 -311
- package/docs/crawl/hubs/form-components.html +53 -75
- package/docs/crawl/index.html +6 -7
- package/docs/docs-mock-api-sw.js +0 -2
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +7 -9
- package/docs/llms-full.txt +456 -1703
- package/docs/llms.txt +32 -25
- package/docs/sitemap.xml +0 -3
- package/docs/src/core/components/functional/fetch/fetch.md +0 -0
- package/docs/src/core/components/functional/if/if.md +0 -0
- package/docs/src/core/components/functional/list/list.md +0 -0
- package/docs/src/core/components/functional/router/router.md +0 -0
- package/docs/src/core/components/functional/sdui/sdui.md +0 -0
- package/docs/src/core/components/functional/states/states.md +0 -0
- package/docs/src/core/components/functional/submit/submit.md +0 -0
- package/docs/src/core/components/ui/alert/alert.md +72 -147
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -85
- package/docs/src/core/components/ui/badge/badge.md +80 -141
- package/docs/src/core/components/ui/button/button.md +0 -1
- package/docs/src/core/components/ui/captcha/captcha.md +6 -65
- package/docs/src/core/components/ui/card/card.md +65 -183
- package/docs/src/core/components/ui/divider/divider.md +13 -107
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +99 -175
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +52 -75
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +34 -109
- package/docs/src/core/components/ui/form/input/input.md +1 -1
- package/docs/src/core/components/ui/form/radio/radio.md +0 -0
- package/docs/src/core/components/ui/form/select/select.md +0 -0
- package/docs/src/core/components/ui/form/switch/switch.md +0 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +1 -1
- package/docs/src/core/components/ui/group/group.md +36 -36
- package/docs/src/core/components/ui/icon/icon.md +43 -132
- package/docs/src/core/components/ui/image/image.md +53 -179
- package/docs/src/core/components/ui/link/link.md +7 -45
- package/docs/src/core/components/ui/loader/loader.md +22 -79
- package/docs/src/core/components/ui/menu/menu.md +92 -133
- package/docs/src/core/components/ui/modal/modal.md +47 -163
- package/docs/src/core/components/ui/pop/pop.md +64 -262
- package/docs/src/core/components/ui/progress/progress.md +30 -76
- package/docs/src/core/components/ui/table/table.md +171 -147
- package/docs/src/core/components/ui/toast/toast.md +58 -108
- package/docs/src/core/components/ui/tooltip/tooltip.md +26 -68
- package/docs/src/docs/_core-concept/subscriber.md +0 -0
- package/docs/src/docs/_decorators/ancestor-attribute.md +2 -3
- package/docs/src/docs/_getting-started/concorde-outside.md +3 -3
- package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/docs/src/docs/_getting-started/pubsub.md +0 -0
- package/docs/src/docs/_getting-started/start.md +1 -1
- package/docs/src/docs/_getting-started/theming.md +61 -223
- package/docs/src/docs/search/docs-search.json +348 -3083
- package/docs/src/tsconfig.declarations.json +22 -0
- package/docs/src/tsconfig.emit.json +23 -0
- package/docs/src/tsconfig.json +3 -63
- package/gitlab/job_github_mirror.sh +39 -0
- package/package.json +36 -2
- package/scripts/generate-sdui-catalog.mjs +250 -0
- package/scripts/generate-sdui-catalog.spec.ts +91 -0
- package/scripts/github-export.mjs +150 -0
- package/scripts/post-build-docs.js +0 -0
- package/scripts/post-build.mjs +0 -0
- package/scripts/pre-build.mjs +15 -0
- package/src/core/components/functional/fetch/fetch.md +0 -0
- package/src/core/components/functional/if/if.md +0 -0
- package/src/core/components/functional/if/if.ts +0 -0
- package/src/core/components/functional/list/list.demo.ts +0 -0
- package/src/core/components/functional/list/list.md +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +5 -5
- package/src/core/components/functional/sdui/__fixtures__/descriptors.ts +251 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-action.spec.ts.snap +73 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-incremental.spec.ts.snap +50 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-partial.spec.ts.snap +50 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui.regression.spec.ts.snap +461 -0
- package/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
- package/src/core/components/functional/sdui/component-catalog.json +3103 -0
- package/src/core/components/functional/sdui/component-catalog.spec.ts +23 -0
- package/src/core/components/functional/sdui/sdui-action.spec.ts +99 -0
- package/src/core/components/functional/sdui/sdui-dom-snapshot.ts +61 -0
- package/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
- package/src/core/components/functional/sdui/sdui-incremental.spec.ts +137 -0
- package/src/core/components/functional/sdui/sdui-partial.spec.ts +83 -0
- package/src/core/components/functional/sdui/sdui-partial.ts +19 -0
- package/src/core/components/functional/sdui/sdui-safe.spec.ts +188 -0
- package/src/core/components/functional/sdui/sdui-safe.ts +100 -0
- package/src/core/components/functional/sdui/sdui.md +122 -0
- package/src/core/components/functional/sdui/sdui.regression.spec.ts +64 -0
- package/src/core/components/functional/sdui/sdui.ts +442 -34
- package/src/core/components/functional/sdui/types.ts +49 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/submit/submit.md +0 -0
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +0 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/switch/switch.md +0 -0
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/css.d.ts +19 -0
- package/src/docs/_core-concept/subscriber.md +0 -0
- package/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/src/docs/_getting-started/pubsub.md +0 -0
- package/src/docs/example/users.ts +0 -0
- package/src/docs/search/page.ts +0 -0
- package/src/tsconfig.declarations.json +22 -0
- package/src/tsconfig.emit.json +23 -0
- package/src/tsconfig.json +90 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/docs/assets/index-CD4WyL6o.css +0 -1
- package/docs/crawl/core/components/ui/theme/theme.html +0 -131
- package/docs/src/core/components/ui/theme/theme.md +0 -122
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Image — Concorde</title>
|
|
7
|
-
<meta name="description" content="
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/image/image, image, Image, UI component, sonic-image, web component
|
|
7
|
+
<meta name="description" content="src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/image/image, image, Image, UI component, sonic-image, web component">
|
|
9
9
|
<meta name="concorde-doc-id" content="core/components/ui/image/image">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/image/image.html">
|
|
11
11
|
</head>
|
|
@@ -15,282 +15,94 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Image</strong>.
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Image</strong>. src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg" <span>Doc ID: <code>core/components/ui/image/image</code>. Keywords: Concorde, supersoniks, core/components/ui/image/image, image, Image, UI component, sonic-image, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/image/image.html">https://concorde.supersoniks.org/crawl/core/components/ui/image/image.html</a>.</span></p>
|
|
19
19
|
<h1 id="image">Image</h1>
|
|
20
|
-
<p><strong><code>sonic-image</code></strong> wraps a responsive <strong><code><img></code></strong> with aspect ratio, <code>object-fit: cover</code>, optional rounded corners, and load transitions. The host shows a placeholder background (<code>--sc-placeholder-bg</code>) until the asset loads. Default <strong><code>loading</code></strong> is <code>lazy</code>; use <strong><code>loading="eager"</code></strong> for above-the-fold heroes.</p>
|
|
21
20
|
<h2 id="rounded">Rounded</h2>
|
|
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
|
-
ratio="1/1"
|
|
59
|
-
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
60
|
-
></sonic-image>
|
|
61
|
-
<p class="mt-2">lg</p>
|
|
62
|
-
</div>
|
|
63
|
-
<div>
|
|
64
|
-
<sonic-image
|
|
65
|
-
rounded="xl"
|
|
66
|
-
ratio="1/1"
|
|
67
|
-
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
68
|
-
></sonic-image>
|
|
69
|
-
<p class="mt-2">xl</p>
|
|
70
|
-
</div>
|
|
71
|
-
<div >
|
|
72
|
-
<div >
|
|
73
|
-
<sonic-image
|
|
74
|
-
rounded="full"
|
|
75
|
-
ratio="1/1"
|
|
76
|
-
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
77
|
-
></sonic-image>
|
|
78
|
-
<p class="mt-2">full</p>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
21
|
+
<pre><code><div class="grid gap-8 grid-cols-3 items-center">
|
|
22
|
+
<sonic-image
|
|
23
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
24
|
+
ratio="1/1"
|
|
25
|
+
>
|
|
26
|
+
</sonic-image>
|
|
27
|
+
<sonic-image
|
|
28
|
+
rounded="sm"
|
|
29
|
+
ratio="1/1"
|
|
30
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
31
|
+
>
|
|
32
|
+
</sonic-image>
|
|
33
|
+
<sonic-image
|
|
34
|
+
rounded
|
|
35
|
+
ratio="1/1"
|
|
36
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
37
|
+
>
|
|
38
|
+
</sonic-image>
|
|
39
|
+
<sonic-image
|
|
40
|
+
rounded="md"
|
|
41
|
+
ratio="1/1"
|
|
42
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
43
|
+
>
|
|
44
|
+
</sonic-image>
|
|
45
|
+
<sonic-image
|
|
46
|
+
rounded="lg"
|
|
47
|
+
ratio="1/1"
|
|
48
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
49
|
+
>
|
|
50
|
+
</sonic-image>
|
|
51
|
+
<sonic-image
|
|
52
|
+
rounded="full"
|
|
53
|
+
ratio="1/1"
|
|
54
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
55
|
+
>
|
|
56
|
+
</sonic-image>
|
|
81
57
|
</div>
|
|
82
58
|
</code></pre>
|
|
83
|
-
<h2 id="
|
|
84
|
-
<p><strong><code>ratio</code></strong> sets CSS <code>aspect-ratio</code> on the image (default <strong><code>auto</code></strong>). The image still fills the host width (<code>width: 100%</code>).</p>
|
|
59
|
+
<h2 id="ratio">Ratio</h2>
|
|
85
60
|
<pre><code><div class="grid gap-8 grid-cols-2 items-center">
|
|
86
61
|
<sonic-image
|
|
87
62
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
88
|
-
>
|
|
63
|
+
>
|
|
64
|
+
</sonic-image>
|
|
89
65
|
<sonic-image
|
|
90
66
|
ratio="16/9"
|
|
91
67
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
92
|
-
>
|
|
68
|
+
>
|
|
69
|
+
</sonic-image>
|
|
93
70
|
<sonic-image
|
|
94
71
|
ratio="1/1"
|
|
95
72
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
96
|
-
>
|
|
73
|
+
>
|
|
74
|
+
</sonic-image>
|
|
97
75
|
<sonic-image
|
|
98
76
|
ratio="2/3"
|
|
99
77
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
100
|
-
>
|
|
78
|
+
>
|
|
79
|
+
</sonic-image>
|
|
101
80
|
</div>
|
|
102
81
|
</code></pre>
|
|
103
82
|
<h2 id="object-position">Object position</h2>
|
|
104
|
-
<p><strong><code>objectPosition</code></strong> maps to CSS <code>object-position</code> (default <strong><code>center center</code></strong>). Useful on wide crops when the subject sits off-center.</p>
|
|
105
83
|
<pre><code><div class="grid gap-8 grid-cols-2 items-center">
|
|
106
84
|
<sonic-image
|
|
107
|
-
ratio="11/4"
|
|
108
85
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
109
|
-
|
|
86
|
+
ratio="11/4"
|
|
87
|
+
>
|
|
88
|
+
</sonic-image>
|
|
110
89
|
<sonic-image
|
|
111
90
|
objectPosition="center top"
|
|
112
|
-
ratio="11/4"
|
|
113
91
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
114
|
-
|
|
92
|
+
ratio="11/4"
|
|
93
|
+
>
|
|
94
|
+
</sonic-image>
|
|
115
95
|
</div>
|
|
116
96
|
</code></pre>
|
|
117
97
|
<h2 id="cover">Cover</h2>
|
|
118
|
-
<
|
|
119
|
-
<pre><code><div class="h-96 relative rounded-lg overflow-hidden">
|
|
98
|
+
<pre><code><div class="h-96 relative">
|
|
120
99
|
<sonic-image
|
|
121
100
|
cover
|
|
122
101
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
123
|
-
></sonic-image>
|
|
124
|
-
</div>
|
|
125
|
-
</code></pre>
|
|
126
|
-
<h2 id="load-transition">Load transition</h2>
|
|
127
|
-
<p>Set <strong><code>transition</code></strong> to <strong><code>fade</code></strong> (default when the attribute is present) or <strong><code>fade-scale-out</code></strong>. The image stays at <code>opacity: 0</code> until the browser fires <strong><code>load</code></strong>, then the <strong><code>loaded</code></strong> class runs the animation. Changing <code>src</code> on an existing element does not replay the effect — mount a new <code>sonic-image</code> when you need another entrance (galleries, infinite scroll).</p>
|
|
128
|
-
<p>Click <strong>Add image</strong> to append small thumbnails and replay the transition. <strong>Clear</strong> resets the row.</p>
|
|
129
|
-
<pre><code><div class="flex flex-wrap gap-2 mb-4">
|
|
130
|
-
<sonic-button
|
|
131
|
-
size="sm"
|
|
132
|
-
onclick="(function () {
|
|
133
|
-
var host = document.getElementById('sonic-image-transition-host');
|
|
134
|
-
var img = document.createElement('sonic-image');
|
|
135
|
-
img.transition = 'fade';
|
|
136
|
-
img.ratio = '1/1';
|
|
137
|
-
img.rounded = 'md';
|
|
138
|
-
img.loading = 'eager';
|
|
139
|
-
img.style.width = '8rem';
|
|
140
|
-
img.src = 'https://picsum.photos/seed/' + Date.now() + '/120/120';
|
|
141
|
-
host.appendChild(img);
|
|
142
|
-
})()"
|
|
143
|
-
>
|
|
144
|
-
Add image (fade)
|
|
145
|
-
</sonic-button>
|
|
146
|
-
<sonic-button
|
|
147
|
-
size="sm"
|
|
148
|
-
variant="outline"
|
|
149
|
-
onclick="(function () {
|
|
150
|
-
var host = document.getElementById('sonic-image-transition-host');
|
|
151
|
-
var img = document.createElement('sonic-image');
|
|
152
|
-
img.transition = 'fade-scale-out';
|
|
153
|
-
img.ratio = '1/1';
|
|
154
|
-
img.rounded = 'md';
|
|
155
|
-
img.loading = 'eager';
|
|
156
|
-
img.style.width = '8rem';
|
|
157
|
-
img.src = 'https://picsum.photos/seed/' + Date.now() + '/120/120';
|
|
158
|
-
host.appendChild(img);
|
|
159
|
-
})()"
|
|
160
102
|
>
|
|
161
|
-
|
|
162
|
-
</sonic-button>
|
|
163
|
-
<sonic-button
|
|
164
|
-
size="sm"
|
|
165
|
-
variant="ghost"
|
|
166
|
-
onclick="document.getElementById('sonic-image-transition-host').replaceChildren()"
|
|
167
|
-
>
|
|
168
|
-
Clear
|
|
169
|
-
</sonic-button>
|
|
103
|
+
</sonic-image>
|
|
170
104
|
</div>
|
|
171
|
-
<div id="sonic-image-transition-host" class="flex flex-wrap gap-2 min-h-[5rem]"></div>
|
|
172
|
-
</code></pre>
|
|
173
|
-
<h2 id="accessibility-and-parts">Accessibility and parts</h2>
|
|
174
|
-
<p>Always set meaningful <strong><code>alt</code></strong> text (empty string only for decorative images). </p>
|
|
175
|
-
<pre><code><sonic-image
|
|
176
|
-
rounded="md"
|
|
177
|
-
ratio="16/9"
|
|
178
|
-
alt="Concorde aircraft in flight"
|
|
179
|
-
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
180
|
-
></sonic-image>
|
|
181
105
|
</code></pre>
|
|
182
|
-
<h2 id="api-reference">API reference</h2>
|
|
183
|
-
<table>
|
|
184
|
-
<thead>
|
|
185
|
-
<tr>
|
|
186
|
-
<th>Attribute</th>
|
|
187
|
-
<th>Values</th>
|
|
188
|
-
<th>Description</th>
|
|
189
|
-
</tr>
|
|
190
|
-
</thead>
|
|
191
|
-
<tbody><tr>
|
|
192
|
-
<td><code>src</code></td>
|
|
193
|
-
<td>URL</td>
|
|
194
|
-
<td>Image URL passed to <code><img src></code></td>
|
|
195
|
-
</tr>
|
|
196
|
-
<tr>
|
|
197
|
-
<td><code>alt</code></td>
|
|
198
|
-
<td>string</td>
|
|
199
|
-
<td>Accessible description; use <code>""</code> only for decorative images</td>
|
|
200
|
-
</tr>
|
|
201
|
-
<tr>
|
|
202
|
-
<td><code>loading</code></td>
|
|
203
|
-
<td><code>lazy</code> (default), <code>eager</code></td>
|
|
204
|
-
<td>Native lazy loading</td>
|
|
205
|
-
</tr>
|
|
206
|
-
<tr>
|
|
207
|
-
<td><code>ratio</code></td>
|
|
208
|
-
<td>CSS ratio, <code>auto</code> (default)</td>
|
|
209
|
-
<td>Host <code>aspect-ratio</code> on the image (ignored when <code>cover</code> is set)</td>
|
|
210
|
-
</tr>
|
|
211
|
-
<tr>
|
|
212
|
-
<td><code>rounded</code></td>
|
|
213
|
-
<td><code>none</code> (default), boolean, <code>base</code>, <code>sm</code>, <code>md</code>, <code>lg</code>, <code>xl</code>, <code>full</code></td>
|
|
214
|
-
<td>Corner radius from theme tokens; <code>full</code> is a circle (often with <code>ratio="1/1"</code>)</td>
|
|
215
|
-
</tr>
|
|
216
|
-
<tr>
|
|
217
|
-
<td><code>objectPosition</code></td>
|
|
218
|
-
<td>CSS position</td>
|
|
219
|
-
<td>Maps to <code>object-position</code> (default <code>center center</code>)</td>
|
|
220
|
-
</tr>
|
|
221
|
-
<tr>
|
|
222
|
-
<td><code>imageRendering</code></td>
|
|
223
|
-
<td>CSS value</td>
|
|
224
|
-
<td>Maps to <code>image-rendering</code> (default <code>auto</code>)</td>
|
|
225
|
-
</tr>
|
|
226
|
-
<tr>
|
|
227
|
-
<td><code>cover</code></td>
|
|
228
|
-
<td>boolean</td>
|
|
229
|
-
<td>Absolutely fills a positioned parent; host aspect ratio is ignored</td>
|
|
230
|
-
</tr>
|
|
231
|
-
<tr>
|
|
232
|
-
<td><code>transition</code></td>
|
|
233
|
-
<td><code>fade</code>, <code>fade-scale-out</code></td>
|
|
234
|
-
<td>Opacity (and scale) animation after <code>load</code>; remount to replay on <code>src</code> change</td>
|
|
235
|
-
</tr>
|
|
236
|
-
</tbody></table>
|
|
237
|
-
<p>No slots — content is driven entirely by attributes on the inner <code><img></code>.</p>
|
|
238
|
-
<h2 id="api-reference-1">API reference</h2>
|
|
239
|
-
<table>
|
|
240
|
-
<thead>
|
|
241
|
-
<tr>
|
|
242
|
-
<th>Attribute</th>
|
|
243
|
-
<th>Values</th>
|
|
244
|
-
<th>Description</th>
|
|
245
|
-
</tr>
|
|
246
|
-
</thead>
|
|
247
|
-
<tbody><tr>
|
|
248
|
-
<td><code>src</code></td>
|
|
249
|
-
<td>URL</td>
|
|
250
|
-
<td>Image URL passed to <code><img src></code></td>
|
|
251
|
-
</tr>
|
|
252
|
-
<tr>
|
|
253
|
-
<td><code>alt</code></td>
|
|
254
|
-
<td>string</td>
|
|
255
|
-
<td>Accessible description; use <code>""</code> only for decorative images</td>
|
|
256
|
-
</tr>
|
|
257
|
-
<tr>
|
|
258
|
-
<td><code>loading</code></td>
|
|
259
|
-
<td><code>lazy</code> (default), <code>eager</code></td>
|
|
260
|
-
<td>Native lazy loading</td>
|
|
261
|
-
</tr>
|
|
262
|
-
<tr>
|
|
263
|
-
<td><code>ratio</code></td>
|
|
264
|
-
<td>CSS ratio, <code>auto</code> (default)</td>
|
|
265
|
-
<td>Host <code>aspect-ratio</code> on the image (ignored when <code>cover</code> is set)</td>
|
|
266
|
-
</tr>
|
|
267
|
-
<tr>
|
|
268
|
-
<td><code>rounded</code></td>
|
|
269
|
-
<td><code>none</code> (default), boolean, <code>base</code>, <code>sm</code>, <code>md</code>, <code>lg</code>, <code>xl</code>, <code>full</code></td>
|
|
270
|
-
<td>Corner radius from theme tokens; <code>full</code> is a circle (often with <code>ratio="1/1"</code>)</td>
|
|
271
|
-
</tr>
|
|
272
|
-
<tr>
|
|
273
|
-
<td><code>objectPosition</code></td>
|
|
274
|
-
<td>CSS position</td>
|
|
275
|
-
<td>Maps to <code>object-position</code> (default <code>center center</code>)</td>
|
|
276
|
-
</tr>
|
|
277
|
-
<tr>
|
|
278
|
-
<td><code>imageRendering</code></td>
|
|
279
|
-
<td>CSS value</td>
|
|
280
|
-
<td>Maps to <code>image-rendering</code> (default <code>auto</code>)</td>
|
|
281
|
-
</tr>
|
|
282
|
-
<tr>
|
|
283
|
-
<td><code>cover</code></td>
|
|
284
|
-
<td>boolean</td>
|
|
285
|
-
<td>Absolutely fills a positioned parent; host aspect ratio is ignored</td>
|
|
286
|
-
</tr>
|
|
287
|
-
<tr>
|
|
288
|
-
<td><code>transition</code></td>
|
|
289
|
-
<td><code>fade</code>, <code>fade-scale-out</code></td>
|
|
290
|
-
<td>Opacity (and scale) animation after <code>load</code>; remount to replay on <code>src</code> change</td>
|
|
291
|
-
</tr>
|
|
292
|
-
</tbody></table>
|
|
293
|
-
<p>No slots — content is driven entirely by attributes on the inner <code><img></code>.</p>
|
|
294
106
|
|
|
295
107
|
</article>
|
|
296
108
|
</main>
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Link — Concorde</title>
|
|
7
|
-
<meta name="description" content="
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/link/link, link, Link, UI component, sonic-link, web component
|
|
7
|
+
<meta name="description" content="Link: Basic link with href attibute">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/link/link, link, Link, UI component, sonic-link, web component">
|
|
9
9
|
<meta name="concorde-doc-id" content="core/components/ui/link/link">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/link/link.html">
|
|
11
11
|
</head>
|
|
@@ -15,84 +15,26 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Link</strong>.
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Link</strong>. Link: Basic link with href attibute <span>Doc ID: <code>core/components/ui/link/link</code>. Keywords: Concorde, supersoniks, core/components/ui/link/link, link, Link, UI component, sonic-link, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/link/link.html">https://concorde.supersoniks.org/crawl/core/components/ui/link/link.html</a>.</span></p>
|
|
19
19
|
<h1 id="link">Link</h1>
|
|
20
|
-
<
|
|
21
|
-
<
|
|
22
|
-
<pre><code><sonic-link href="/">Basic link with href attribute</sonic-link>
|
|
20
|
+
<h2 id="href">Href</h2>
|
|
21
|
+
<pre><code><sonic-link href="/">Basic link with href attibute</sonic-link>
|
|
23
22
|
</code></pre>
|
|
24
23
|
<h2 id="target">Target</h2>
|
|
25
|
-
<
|
|
26
|
-
<pre><code><sonic-link href="/" target="_blank">Link with target attribute</sonic-link>
|
|
27
|
-
</code></pre>
|
|
28
|
-
<h2 id="pushstate">Pushstate</h2>
|
|
29
|
-
<p>Set <strong><code>pushstate</code></strong> on same-origin <strong><code>href</code></strong> values to intercept clicks and navigate through Concorde’s client router without a full reload.</p>
|
|
30
|
-
<pre><code><sonic-link href="/#core/components" pushstate>Client navigation (pushstate)</sonic-link>
|
|
24
|
+
<pre><code><sonic-link href="/" target="_blank">Link with target attibute</sonic-link>
|
|
31
25
|
</code></pre>
|
|
32
26
|
<h2 id="autoactive">AutoActive</h2>
|
|
33
|
-
<
|
|
34
|
-
<pre><code><sonic-link href="/#core/components" class="[&[active]]:text-success">autoActive partial (default)</sonic-link>
|
|
27
|
+
<pre><code><sonic-link href="/#core/components" class="[&[active]]:text-success">autoActive partial (default)</sonic-link>
|
|
35
28
|
</code></pre>
|
|
36
|
-
<h3 id="autoactive-strict-vs-partial">AutoActive
|
|
37
|
-
<p><strong><code>strict</code></strong> requires pathname, search, and hash to match. <strong><code>strict-path-only</code></strong> matches pathname and hash but ignores search.</p>
|
|
29
|
+
<h3 id="autoactive-strict-vs-partial">AutoActive Strict vs partial</h3>
|
|
38
30
|
<pre><code><div class="grid gap-3">
|
|
39
31
|
<sonic-link href="/#core" autoActive="strict" class="[&[active]]:text-success">autoActive strict</sonic-link>
|
|
40
|
-
<sonic-link href="/./link.html#link" autoActive="strict" class="[&[active]]:text-success">autoActive strict
|
|
41
|
-
<sonic-link href="/#core/components" autoActive="strict-path-only" class="[&[active]]:text-success">autoActive strict-path-only</sonic-link>
|
|
32
|
+
<sonic-link href="/./link.html#link" autoActive="strict" class="[&[active]]:text-success">autoActive strict</sonic-link>
|
|
42
33
|
</div>
|
|
43
34
|
</code></pre>
|
|
44
35
|
<h3 id="autoactive-disabled">AutoActive disabled</h3>
|
|
45
36
|
<pre><code><sonic-link href="/./link.html#link" autoActive="disabled" class="[&[active]]:text-success">autoActive disabled</sonic-link>
|
|
46
37
|
</code></pre>
|
|
47
|
-
<h2 id="accessibility">Accessibility</h2>
|
|
48
|
-
<p>The inner <strong><code><a></code></strong> uses <strong><code>focus-visible</code></strong> outline styling. Set <strong><code>data-aria-label</code></strong> when the slot text is not sufficient on its own.</p>
|
|
49
|
-
<h2 id="api-reference">API reference</h2>
|
|
50
|
-
<table>
|
|
51
|
-
<thead>
|
|
52
|
-
<tr>
|
|
53
|
-
<th>Attribute</th>
|
|
54
|
-
<th>Values</th>
|
|
55
|
-
<th>Description</th>
|
|
56
|
-
</tr>
|
|
57
|
-
</thead>
|
|
58
|
-
<tbody><tr>
|
|
59
|
-
<td><code>href</code></td>
|
|
60
|
-
<td>URL</td>
|
|
61
|
-
<td>Link target; without <strong><code>href</code></strong>, only the slot is rendered (no <strong><code><a></code></strong>)</td>
|
|
62
|
-
</tr>
|
|
63
|
-
<tr>
|
|
64
|
-
<td><code>target</code></td>
|
|
65
|
-
<td>e.g. <code>_blank</code></td>
|
|
66
|
-
<td>Navigation target; <strong><code>_blank</code></strong> adds <strong><code>rel="noopener noreferrer"</code></strong></td>
|
|
67
|
-
</tr>
|
|
68
|
-
<tr>
|
|
69
|
-
<td><code>pushstate</code></td>
|
|
70
|
-
<td>boolean</td>
|
|
71
|
-
<td>Intercepts click for Concorde client navigation without reload</td>
|
|
72
|
-
</tr>
|
|
73
|
-
<tr>
|
|
74
|
-
<td><code>autoActive</code></td>
|
|
75
|
-
<td><code>partial</code> (default) · <code>strict</code> · <code>strict-path-only</code> · <code>disabled</code></td>
|
|
76
|
-
<td>When the host gets the <strong><code>active</code></strong> attribute (same-origin <strong><code>href</code></strong> only)</td>
|
|
77
|
-
</tr>
|
|
78
|
-
<tr>
|
|
79
|
-
<td><code>data-aria-label</code></td>
|
|
80
|
-
<td>string</td>
|
|
81
|
-
<td>Accessible <strong><code>aria-label</code></strong> when the slot text is not enough</td>
|
|
82
|
-
</tr>
|
|
83
|
-
</tbody></table>
|
|
84
|
-
<table>
|
|
85
|
-
<thead>
|
|
86
|
-
<tr>
|
|
87
|
-
<th>Slot</th>
|
|
88
|
-
<th>Description</th>
|
|
89
|
-
</tr>
|
|
90
|
-
</thead>
|
|
91
|
-
<tbody><tr>
|
|
92
|
-
<td><em>(default)</em></td>
|
|
93
|
-
<td>Link content (text, icons)</td>
|
|
94
|
-
</tr>
|
|
95
|
-
</tbody></table>
|
|
96
38
|
|
|
97
39
|
</article>
|
|
98
40
|
</main>
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Loader — Concorde</title>
|
|
7
|
-
<meta name="description" content="
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/loader/loader, loader, Loader, UI component, sonic-loader, web component
|
|
7
|
+
<meta name="description" content="import {Loader} from "@supersoniks/concorde/core/components/ui/loader/loader";">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/loader/loader, loader, Loader, UI component, sonic-loader, web component">
|
|
9
9
|
<meta name="concorde-doc-id" content="core/components/ui/loader/loader">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/loader/loader.html">
|
|
11
11
|
</head>
|
|
@@ -15,108 +15,34 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Loader</strong>.
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Loader</strong>. import {Loader} from "@supersoniks/concorde/core/components/ui/loader/loader"; <span>Doc ID: <code>core/components/ui/loader/loader</code>. Keywords: Concorde, supersoniks, core/components/ui/loader/loader, loader, Loader, UI component, sonic-loader, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/loader/loader.html">https://concorde.supersoniks.org/crawl/core/components/ui/loader/loader.html</a>.</span></p>
|
|
19
19
|
<h1 id="loader">Loader</h1>
|
|
20
|
-
<
|
|
21
|
-
<h2 id="basic-example">Basic example</h2>
|
|
22
|
-
<p>Inline loaders fit content areas; they use the theme primary color unless <strong><code>currentColor</code></strong> is set.</p>
|
|
20
|
+
<h2 id="inline-mode">Inline mode</h2>
|
|
23
21
|
<pre><code><sonic-loader mode="inline"></sonic-loader>
|
|
24
22
|
</code></pre>
|
|
25
|
-
<h2 id="
|
|
26
|
-
<
|
|
27
|
-
<pre><code><sonic-loader mode="inline"></sonic-loader>
|
|
28
|
-
</code></pre>
|
|
29
|
-
<p>Use the checkbox below to toggle a <strong><code>fixed</code></strong> loader over the page (default <strong><code>mode</code></strong> on <strong><code>sonic-loader</code></strong>).</p>
|
|
30
|
-
<p><docs-lit-demo for="docs-toggle-loader-demo"></docs-lit-demo></p>
|
|
31
|
-
<h2 id="inline-alignment-and-color">Inline alignment and color</h2>
|
|
32
|
-
<p><strong><code>align</code></strong> only affects <strong><code>mode="inline"</code></strong>: <strong><code>left</code></strong> · <strong><code>center</code></strong> (default) · <strong><code>right</code></strong>. Set <strong><code>currentColor</code></strong> so dots follow the host <code>color</code> (for example on a purple parent).</p>
|
|
33
|
-
<pre><code><div class="grid gap-4">
|
|
34
|
-
<sonic-loader mode="inline" currentColor style="color: purple;"></sonic-loader>
|
|
35
|
-
<div class="flex flex-col gap-2">
|
|
36
|
-
<sonic-loader mode="inline" align="left"></sonic-loader>
|
|
37
|
-
<sonic-loader mode="inline" align="center"></sonic-loader>
|
|
38
|
-
<sonic-loader mode="inline" align="right"></sonic-loader>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</code></pre>
|
|
42
|
-
<h2 id="nodelay"><code>noDelay</code></h2>
|
|
43
|
-
<p>By default <strong><code>mode="fixed"</code></strong> waits briefly before fading in. <strong><code>mode="inline"</code></strong> already skips that wait. Set <strong><code>noDelay</code></strong> on <strong><code>fixed</code></strong> (or pass <strong><code>noDelay: true</code></strong> to <strong><code>Loader.show()</code></strong>) to appear immediately.</p>
|
|
44
|
-
<pre><code><sonic-loader mode="inline" noDelay></sonic-loader>
|
|
23
|
+
<h2 id="currentcolor">CurrentColor</h2>
|
|
24
|
+
<pre><code><sonic-loader mode="inline" currentColor style="color:purple;"></sonic-loader>
|
|
45
25
|
</code></pre>
|
|
46
|
-
<h2 id="
|
|
47
|
-
<
|
|
48
|
-
|
|
26
|
+
<h2 id="align">Align</h2>
|
|
27
|
+
<pre><code><sonic-loader mode="inline" align="left"></sonic-loader>
|
|
28
|
+
<sonic-loader mode="inline" align="center"></sonic-loader>
|
|
29
|
+
<sonic-loader mode="inline" align="right"></sonic-loader>
|
|
49
30
|
</code></pre>
|
|
50
|
-
<h2 id="
|
|
51
|
-
<p
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
Loader.show({
|
|
55
|
-
mode: "fixed",
|
|
56
|
-
noDelay: false,
|
|
57
|
-
announce: true,
|
|
58
|
-
container: document.querySelector("#foo"),
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
Loader.hide();
|
|
31
|
+
<h2 id="fixed-mode">Fixed mode</h2>
|
|
32
|
+
<p><docs-lit-demo for="docs-toggle-loader-demo"></docs-lit-demo></p>
|
|
33
|
+
<h2 id="loading-button">Loading button</h2>
|
|
34
|
+
<pre><code><sonic-button loading>A loading button</sonic-button>
|
|
62
35
|
</code></pre>
|
|
63
|
-
<h2 id="
|
|
64
|
-
<
|
|
65
|
-
|
|
36
|
+
<h2 id="hide--show-programmatically">Hide / show programmatically</h2>
|
|
37
|
+
<pre><code class="language-javascript">import {Loader} from "@supersoniks/concorde/core/components/ui/loader/loader";
|
|
38
|
+
// Show
|
|
39
|
+
Loader.show({
|
|
40
|
+
mode:"fixed" // optional : fixed | inline
|
|
41
|
+
container : document.querySelector('#foo') // optional, default : parent sonic-theme || document.body
|
|
42
|
+
});
|
|
43
|
+
// Hide
|
|
44
|
+
Loader.hide();
|
|
66
45
|
</code></pre>
|
|
67
|
-
<h2 id="api-reference">API reference</h2>
|
|
68
|
-
<table>
|
|
69
|
-
<thead>
|
|
70
|
-
<tr>
|
|
71
|
-
<th>Attribute</th>
|
|
72
|
-
<th>Values</th>
|
|
73
|
-
<th>Description</th>
|
|
74
|
-
</tr>
|
|
75
|
-
</thead>
|
|
76
|
-
<tbody><tr>
|
|
77
|
-
<td><code>mode</code></td>
|
|
78
|
-
<td><code>inline</code> · <code>fixed</code> (default <code>fixed</code>)</td>
|
|
79
|
-
<td>Layout: in-flow ellipsis vs viewport-centered overlay</td>
|
|
80
|
-
</tr>
|
|
81
|
-
<tr>
|
|
82
|
-
<td><code>noDelay</code></td>
|
|
83
|
-
<td>boolean</td>
|
|
84
|
-
<td>Skips the initial fade-in delay before the animation appears</td>
|
|
85
|
-
</tr>
|
|
86
|
-
<tr>
|
|
87
|
-
<td><code>announce</code></td>
|
|
88
|
-
<td>boolean</td>
|
|
89
|
-
<td><strong><code>role="status"</code></strong> and <strong><code>aria-live="polite"</code></strong> with localized loading label when the loader should be announced</td>
|
|
90
|
-
</tr>
|
|
91
|
-
<tr>
|
|
92
|
-
<td><code>align</code></td>
|
|
93
|
-
<td><code>left</code> · <code>center</code> · <code>right</code></td>
|
|
94
|
-
<td>Horizontal alignment for <strong><code>mode="inline"</code></strong> only (attribute selector; default centered)</td>
|
|
95
|
-
</tr>
|
|
96
|
-
<tr>
|
|
97
|
-
<td><code>currentColor</code></td>
|
|
98
|
-
<td>boolean</td>
|
|
99
|
-
<td>Uses <code>currentColor</code> for dot fill instead of <strong><code>--sc-primary</code></strong></td>
|
|
100
|
-
</tr>
|
|
101
|
-
</tbody></table>
|
|
102
|
-
<p>This component has <strong>no slots</strong>. The animation markup is internal.</p>
|
|
103
|
-
<h3 id="static-methods">Static methods</h3>
|
|
104
|
-
<table>
|
|
105
|
-
<thead>
|
|
106
|
-
<tr>
|
|
107
|
-
<th>Method</th>
|
|
108
|
-
<th>Description</th>
|
|
109
|
-
</tr>
|
|
110
|
-
</thead>
|
|
111
|
-
<tbody><tr>
|
|
112
|
-
<td><code>Loader.show(conf?)</code></td>
|
|
113
|
-
<td>Mounts the shared loader instance. <strong><code>conf.mode</code></strong>, <strong><code>conf.noDelay</code></strong>, <strong><code>conf.announce</code></strong>, optional <strong><code>conf.container</code></strong>. Without <strong><code>container</code></strong>, uses the theme pop container and forces <strong><code>fixed</code></strong>.</td>
|
|
114
|
-
</tr>
|
|
115
|
-
<tr>
|
|
116
|
-
<td><code>Loader.hide()</code></td>
|
|
117
|
-
<td>Decrements the show counter and removes the instance from the DOM when it reaches zero.</td>
|
|
118
|
-
</tr>
|
|
119
|
-
</tbody></table>
|
|
120
46
|
|
|
121
47
|
</article>
|
|
122
48
|
</main>
|