igniteui-astro-components 0.0.6 → 0.0.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 +9 -8
- package/package.json +7 -5
- package/src/assets/icons/open-link-blank.svg +1 -1
- package/src/assets/logos/code-sandbox.svg +14 -0
- package/src/assets/logos/stackblitz.svg +13 -0
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +1 -1
- package/src/components/DocsSidebar/DocsSidebar.astro +15 -8
- package/src/components/DocsSidebar/DocsSidebar.scss +152 -2
- package/src/components/DocsSidebar/SidebarFilterInput.scss +7 -3
- package/src/components/DocsSidebar/SidebarLabel.astro +25 -4
- package/src/components/DocsSidebar/toTreeNodes.ts +1 -1
- package/src/components/DocsSubHeader/DocsSubHeader.astro +119 -302
- package/src/components/DocsSubHeader/DocsSubHeader.scss +111 -11
- package/src/components/DocsToc/DocsToc.astro +5 -2
- package/src/components/DocsToc/toTreeNodes.ts +1 -1
- package/src/components/DocsTree/DocsTree.astro +9 -0
- package/src/components/DocsTree/docs-tree.scss +139 -118
- package/src/components/GlobalFooter/GlobalFooter.astro +12 -62
- package/src/components/GlobalFooter/README.md +7 -10
- package/src/components/GlobalNavBar/GlobalNavBar.astro +8 -193
- package/src/components/GlobalNavBar/GlobalNavBar.module.scss +16 -6
- package/src/components/GlobalNavBar/README.md +8 -15
- package/src/components/LicenseIndicator/LicenseIndicator.astro +19 -0
- package/src/components/LicenseIndicator/LicenseIndicator.scss +5 -0
- package/src/components/Search/Search.astro +34 -15
- package/src/components/Search/Search.scss +10 -42
- package/src/components/SearchAdvanced/SearchAdvanced.astro +202 -366
- package/src/components/SearchAdvanced/SearchAdvanced.scss +177 -0
- package/src/components/ThemingWidget/ThemingWidget.astro +5 -10
- package/src/components/mdx/ApiRef/README.md +1 -1
- package/src/components/mdx/DocsAside/DocsAside.astro +37 -32
- package/src/components/mdx/DocsAside/DocsAside.scss +123 -35
- package/src/components/mdx/Sample/Sample.astro +55 -45
- package/src/components/mdx/Sample/Sample.scss +173 -30
- package/src/content.config.ts +1 -1
- package/src/integration.ts +25 -141
- package/src/layouts/DocsLayout/DocsLayout.astro +61 -20
- package/src/layouts/DocsLayout/DocsLayout.scss +51 -6
- package/src/lib/nav-helpers.ts +11 -4
- package/src/lib/sidebar/helpers.ts +14 -1
- package/src/lib/sidebar/types.ts +5 -7
- package/src/platform.ts +9 -16
- package/src/plugins/rehype-heading-anchors.ts +74 -0
- package/src/plugins/rehype-table-wrapper.ts +49 -0
- package/src/plugins/remark-docfx.ts +0 -368
- package/src/plugins/remark-env-vars.ts +110 -0
- package/src/plugins/remark-html-transforms.ts +32 -0
- package/src/plugins/remark-md-links.ts +75 -0
- package/src/scripts/sample-widget.ts +107 -116
- package/src/sidebar.ts +6 -7
- package/src/styles/global/_breakpoints.scss +4 -4
- package/src/styles/global/_code-blocks.scss +1 -1
- package/src/styles/global/_component-themes.scss +118 -18
- package/src/styles/global/_index.scss +2 -2
- package/src/styles/global/_markdown.scss +444 -32
- package/src/styles/global/_palette.scss +7 -0
- package/src/styles/global/_search-shared.scss +273 -0
- package/src/styles/global/_variables.scss +58 -3
- package/src/styles/theme.scss +80 -11
- package/src/virtual-modules.d.ts +1 -13
- package/src/assets/icons/copy-clipboard.svg +0 -3
- package/src/assets/icons/filter-clear.svg +0 -1
- package/src/styles/custom.scss +0 -20
|
@@ -77,4 +77,13 @@ const { nodes, variant, activeId, toggleNodeOnClick, ariaLabel, renderLabel } =
|
|
|
77
77
|
|
|
78
78
|
selectActiveTreeItem();
|
|
79
79
|
document.addEventListener('astro:page-load', selectActiveTreeItem);
|
|
80
|
+
|
|
81
|
+
// Suppress the active-indicator transition during window resize so the
|
|
82
|
+
// anchor-positioned ::before bar doesn't slowly slide to its new position.
|
|
83
|
+
let resizeTimer: ReturnType<typeof setTimeout>;
|
|
84
|
+
window.addEventListener('resize', () => {
|
|
85
|
+
document.body.classList.add('is-resizing');
|
|
86
|
+
clearTimeout(resizeTimer);
|
|
87
|
+
resizeTimer = setTimeout(() => document.body.classList.remove('is-resizing'), 150);
|
|
88
|
+
}, { passive: true });
|
|
80
89
|
</script>
|
|
@@ -14,172 +14,193 @@
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
igc-tree {
|
|
17
|
-
--ig-tree-background: transparent;
|
|
18
|
-
--ig-size: 1;
|
|
19
|
-
|
|
20
|
-
position: relative;
|
|
21
|
-
|
|
22
|
-
&::before {
|
|
23
|
-
content: '';
|
|
24
|
-
position: absolute;
|
|
25
|
-
position-anchor: --selected-tree-item;
|
|
26
|
-
top: anchor(top);
|
|
27
|
-
height: anchor-size(height);
|
|
28
|
-
inset-inline-start: 0;
|
|
29
|
-
width: rem(1px);
|
|
30
|
-
background-color: var(--igd-accent);
|
|
31
|
-
transition: top 0.2s ease, height 0.2s ease;
|
|
32
|
-
display: none;
|
|
33
|
-
z-index: 1;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&::
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
17
|
+
--ig-tree-background: transparent;
|
|
18
|
+
--ig-size: 1;
|
|
19
|
+
|
|
20
|
+
position: relative;
|
|
21
|
+
|
|
22
|
+
&::before {
|
|
23
|
+
content: '';
|
|
24
|
+
position: absolute;
|
|
25
|
+
position-anchor: --selected-tree-item;
|
|
26
|
+
top: anchor(top);
|
|
27
|
+
height: anchor-size(height);
|
|
28
|
+
inset-inline-start: 0;
|
|
29
|
+
width: rem(1px);
|
|
30
|
+
background-color: var(--igd-accent);
|
|
31
|
+
transition: top 0.2s ease, height 0.2s ease;
|
|
32
|
+
display: none;
|
|
33
|
+
z-index: 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
body.is-resizing &::before {
|
|
37
|
+
transition: none;
|
|
38
|
+
}
|
|
39
|
+
&::after {
|
|
40
|
+
content: '';
|
|
41
|
+
position: absolute;
|
|
42
|
+
width: rem(1px);
|
|
43
|
+
inset-inline-start: 0;
|
|
44
|
+
top: 0;
|
|
45
|
+
z-index: 0;
|
|
46
|
+
height: 100%;
|
|
47
|
+
background: light-dark(var(--ig-gray-200), var(--ig-gray-300));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:has(igc-tree-item[selected])::before {
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
/* Sidebar: only leaf items get selected, so item height = single row */
|
|
53
56
|
igc-tree[data-variant='sidebar'] igc-tree-item[selected] {
|
|
54
|
-
anchor-name: --selected-tree-item;
|
|
57
|
+
anchor-name: --selected-tree-item;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
/* TOC: groups can be selected (h2 with h3 children); anchor to the label div
|
|
58
61
|
so height tracks only the row, not the expanded children below */
|
|
59
62
|
igc-tree[data-variant='toc'] igc-tree-item[selected] > [slot='label'] {
|
|
60
|
-
anchor-name: --selected-tree-item;
|
|
63
|
+
anchor-name: --selected-tree-item;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
igc-tree-item {
|
|
64
|
-
--igc-tree-indentation-size: #{rem(20px)};
|
|
65
|
-
|
|
66
|
-
--
|
|
67
|
-
--
|
|
68
|
-
--background-
|
|
69
|
-
--
|
|
70
|
-
--foreground-
|
|
71
|
-
--
|
|
72
|
-
--
|
|
73
|
-
--hover-color: transparent;
|
|
74
|
-
--
|
|
75
|
-
--
|
|
76
|
-
--foreground-selected: var(--igd-accent);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
a {
|
|
80
|
-
position: absolute;
|
|
81
|
-
inset: 0;
|
|
82
|
-
align-items: center;
|
|
83
|
-
color: inherit;
|
|
84
|
-
text-decoration: none;
|
|
85
|
-
width: 100%;
|
|
86
|
-
height: 100%;
|
|
87
|
-
|
|
88
|
-
&:focus {
|
|
89
|
-
outline: none;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
cursor: default;
|
|
94
|
-
|
|
95
|
-
&:hover,
|
|
96
|
-
&:focus {
|
|
97
|
-
> a {
|
|
98
|
-
color: var(--igd-accent);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
67
|
+
--igc-tree-indentation-size: #{rem(20px)};
|
|
68
|
+
--background: transparent;
|
|
69
|
+
--foreground: light-dark(var(--ig-gray-600), var(--ig-gray-500));
|
|
70
|
+
--background-selected: transparent;
|
|
71
|
+
--background-active: transparent;
|
|
72
|
+
--foreground-active: var(--igd-accent);
|
|
73
|
+
--foreground-hover: var(--igd-accent);
|
|
74
|
+
--background-disabled: transparent;
|
|
75
|
+
--hover-color: transparent;
|
|
76
|
+
--hover-selected-color: transparent;
|
|
77
|
+
--background-active-selected: transparent;
|
|
78
|
+
--foreground-selected: var(--igd-accent);
|
|
79
|
+
--foreground-active-selected: var(--igd-accent);
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
a {
|
|
83
|
+
position: absolute;
|
|
84
|
+
inset: 0;
|
|
85
|
+
align-items: center;
|
|
86
|
+
color: inherit;
|
|
87
|
+
text-decoration: none;
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 100%;
|
|
90
|
+
|
|
91
|
+
&:focus {
|
|
92
|
+
outline: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
cursor: default;
|
|
97
|
+
|
|
98
|
+
&:hover,
|
|
99
|
+
&:focus {
|
|
100
|
+
> a {
|
|
101
|
+
color: var(--igd-accent);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
101
104
|
}
|
|
102
105
|
|
|
103
106
|
igc-tree-item::part(wrapper) {
|
|
104
|
-
@include type-style('body-2') {
|
|
105
|
-
margin-block: 0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
padding-inline-
|
|
107
|
+
@include type-style('body-2') {
|
|
108
|
+
margin-block: 0;
|
|
109
|
+
}
|
|
110
|
+
;
|
|
111
|
+
padding-inline-start: rem(24px);
|
|
112
|
+
padding-inline-end: rem(8px);
|
|
109
113
|
}
|
|
110
114
|
|
|
111
115
|
igc-tree-item::part(focused) {
|
|
112
|
-
box-shadow: none;
|
|
116
|
+
box-shadow: none;
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
igc-tree-item::part(indicator) {
|
|
116
|
-
display: none;
|
|
120
|
+
display: none;
|
|
117
121
|
}
|
|
118
122
|
|
|
119
123
|
igc-tree-item::part(label) {
|
|
120
|
-
width: 100%;
|
|
124
|
+
width: 100%;
|
|
125
|
+
max-height: 100%;
|
|
121
126
|
}
|
|
122
127
|
|
|
123
|
-
igc-tree-item[data-has-children]
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
128
|
+
igc-tree-item[data-has-children] {
|
|
129
|
+
> [slot='label'] {
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
width: 100%;
|
|
133
|
+
}
|
|
127
134
|
}
|
|
128
135
|
|
|
129
136
|
.tree-expand-icon {
|
|
130
|
-
margin-inline-start: auto;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
137
|
+
margin-inline-start: auto;
|
|
138
|
+
//margin-inline-end: rem(4px);
|
|
139
|
+
flex-shrink: 0;
|
|
140
|
+
color: inherit;
|
|
141
|
+
transform: rotate(-90deg);
|
|
142
|
+
transition: transform 0.2s ease;
|
|
135
143
|
}
|
|
136
144
|
|
|
137
|
-
igc-tree-item[aria-expanded='true']
|
|
138
|
-
|
|
139
|
-
|
|
145
|
+
igc-tree-item[aria-expanded='true'] {
|
|
146
|
+
.tree-expand-icon {
|
|
147
|
+
transform: rotate(0deg);
|
|
148
|
+
color: var(--igd-accent);
|
|
149
|
+
}
|
|
140
150
|
}
|
|
141
151
|
|
|
142
152
|
igc-tree-item[data-has-children][data-depth='0'] {
|
|
143
|
-
--igc-tree-indentation-size: 0;
|
|
153
|
+
--igc-tree-indentation-size: 0;
|
|
144
154
|
}
|
|
145
155
|
|
|
146
156
|
igc-tree-item[data-has-children] {
|
|
147
|
-
--foreground: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
148
|
-
--foreground-selected: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
149
|
-
--foreground-active-selected: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
150
|
-
--foreground-active: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
151
|
-
--foreground-hover: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
157
|
+
--foreground: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
158
|
+
--foreground-selected: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
159
|
+
--foreground-active-selected: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
160
|
+
--foreground-active: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
161
|
+
--foreground-hover: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
152
162
|
}
|
|
153
163
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
color: var(--igd-accent);
|
|
164
|
+
.docs-tree-label {
|
|
165
|
+
white-space: normal;
|
|
157
166
|
}
|
|
158
167
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
--foreground-active-selected: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
164
|
-
--foreground-active: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
165
|
-
--foreground-hover: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
166
|
-
}
|
|
168
|
+
/* Hover accent applies to leaf items (sidebar) and all linked items (TOC) */
|
|
169
|
+
.docs-tree-link:hover ~ .docs-tree-label,
|
|
170
|
+
igc-tree-item:not([data-has-children]):hover .docs-tree-label {
|
|
171
|
+
color: var(--igd-accent);
|
|
167
172
|
}
|
|
168
173
|
|
|
169
|
-
igc-tree[data-variant='
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
+
igc-tree[data-variant='sidebar'] {
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
|
|
177
|
+
igc-tree-item[data-has-children] {
|
|
178
|
+
--foreground: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
179
|
+
--foreground-selected: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
180
|
+
--foreground-active-selected: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
181
|
+
--foreground-active: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
182
|
+
--foreground-hover: light-dark(var(--ig-gray-900), var(--ig-gray-50));
|
|
183
|
+
}
|
|
174
184
|
}
|
|
175
185
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
186
|
+
igc-tree[data-variant='toc'] {
|
|
187
|
+
/* TOC variant — active link highlighted by scroll-spy via aria-current="true". */
|
|
188
|
+
.docs-tree-link[aria-current='true'] {
|
|
189
|
+
color: var(--igd-accent);
|
|
190
|
+
|
|
191
|
+
+ .docs-tree-label {
|
|
192
|
+
color: var(--igd-accent);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* No expand/collapse icons in the TOC — all items are links */
|
|
197
|
+
.tree-expand-icon {
|
|
198
|
+
display: none;
|
|
199
|
+
}
|
|
179
200
|
}
|
|
180
201
|
|
|
181
202
|
/* Filter visibility — driven by <sidebar-filter>. */
|
|
182
203
|
// Removing this will break the filter in the sidebar
|
|
183
204
|
sidebar-filter[data-filtering] igc-tree[data-variant='sidebar'] igc-tree-item[data-path]:not([data-filter-match]) {
|
|
184
|
-
display: none;
|
|
205
|
+
display: none;
|
|
185
206
|
}
|
|
@@ -2,89 +2,39 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* GlobalFooter
|
|
4
4
|
*
|
|
5
|
-
* Renders the
|
|
6
|
-
* This component is separate from Starlight's own Footer override (which
|
|
7
|
-
* provides the "Edit this page" link and pagination). Mount it INSIDE the
|
|
8
|
-
* Starlight Footer override to place it below the docs navigation footer.
|
|
5
|
+
* Renders the IG global footer directly in the light DOM.
|
|
9
6
|
*
|
|
10
7
|
* Props:
|
|
11
|
-
*
|
|
12
|
-
* lang – locale (default: 'en')
|
|
8
|
+
* lang – locale (default: 'en')
|
|
13
9
|
*/
|
|
14
10
|
interface Props {
|
|
15
|
-
|
|
16
|
-
theme?: NavTheme;
|
|
17
|
-
/** Override the locale. Defaults to virtual module navLang. */
|
|
18
|
-
lang?: NavLang;
|
|
11
|
+
lang: NavLang;
|
|
19
12
|
}
|
|
20
13
|
|
|
21
|
-
import {
|
|
22
|
-
platform as virtualPlatform,
|
|
23
|
-
navLang as virtualNavLang,
|
|
24
|
-
abPrefetched, abFooterHtml, abFooterUtilsHtml, abFooterCopyrightHtml, abContactSalesHtml,
|
|
25
|
-
} from 'virtual:docs-template/nav-html';
|
|
26
14
|
import { fetchIgNav } from '../../lib/nav-helpers.ts';
|
|
27
15
|
import styles from './GlobalFooter.module.scss';
|
|
28
|
-
import type { NavLang
|
|
16
|
+
import type { NavLang } from '../../platform.ts';
|
|
29
17
|
|
|
30
|
-
|
|
18
|
+
interface Props {
|
|
19
|
+
lang: NavLang;
|
|
20
|
+
}
|
|
31
21
|
|
|
32
|
-
|
|
33
|
-
const resolvedPlatform = theme ?? virtualPlatform ?? 'igniteui';
|
|
34
|
-
const resolvedLang = (lang ?? virtualNavLang ?? 'en') as NavLang;
|
|
22
|
+
const { lang } = Astro.props as Props;
|
|
35
23
|
|
|
36
|
-
const
|
|
37
|
-
const isIgPlatform = !isAppBuilder;
|
|
24
|
+
const resolvedLang = lang;
|
|
38
25
|
|
|
39
|
-
//
|
|
40
|
-
const igNav =
|
|
26
|
+
// Fetch footer HTML directly (cached per locale per build).
|
|
27
|
+
const igNav = await fetchIgNav(resolvedLang);
|
|
41
28
|
---
|
|
42
29
|
<div class={styles.footer} data-igd-footer>
|
|
43
30
|
|
|
44
31
|
{/* === IgniteUI / default Infragistics footer — fetched via fetchIgNav() === */}
|
|
45
32
|
{
|
|
46
|
-
|
|
33
|
+
igNav?.prefetched && (
|
|
47
34
|
<>
|
|
48
35
|
<Fragment set:html={igNav.uiFooterHtml} />
|
|
49
36
|
{igNav.footerHtml && <Fragment set:html={igNav.footerHtml} />}
|
|
50
37
|
</>
|
|
51
38
|
)
|
|
52
39
|
}
|
|
53
|
-
|
|
54
|
-
{/* === AppBuilder footer (prebuild) === */}
|
|
55
|
-
{
|
|
56
|
-
isAppBuilder && abPrefetched && (
|
|
57
|
-
<>
|
|
58
|
-
{abContactSalesHtml && <Fragment set:html={abContactSalesHtml} />}
|
|
59
|
-
<Fragment set:html={abFooterHtml} />
|
|
60
|
-
{abFooterUtilsHtml && <Fragment set:html={abFooterUtilsHtml} />}
|
|
61
|
-
{abFooterCopyrightHtml && <Fragment set:html={abFooterCopyrightHtml} />}
|
|
62
|
-
|
|
63
|
-
<script is:inline>
|
|
64
|
-
window.addEventListener('load', function () {
|
|
65
|
-
if (window.leadTracker && typeof window.leadTracker.execute === 'function') {
|
|
66
|
-
window.leadTracker.execute({
|
|
67
|
-
macro: 'LeadTracker', lang: 'en',
|
|
68
|
-
leadFormID: 'lead-form_2',
|
|
69
|
-
reaptchaKey: '6Lc-MFAaAAAAAIWi7UOrSUfUZnVmDUSsXjzS4BgY',
|
|
70
|
-
redirectUrl: '', thankYouMessage: '1',
|
|
71
|
-
formContainerId: 'modal-contact-sales-pricing',
|
|
72
|
-
productCode: 'B7', leadProductCode: '', packageName: '',
|
|
73
|
-
productResourceType: '', osSupport: '', installerType: '',
|
|
74
|
-
eventTypeParam: 'contact sales', eventDetailParam: 'form submitted',
|
|
75
|
-
prohibitFreeMail: true, showRequestDemo: false,
|
|
76
|
-
googleEventType: 'Form Submit',
|
|
77
|
-
googleEventLabel: 'Slingshot - Contact Sales Pricing',
|
|
78
|
-
googleEventTypeDownload: '', googleEventLabelDownload: '',
|
|
79
|
-
zoomWebinarId: ''
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
if (window.customModal && typeof window.customModal.init === 'function') {
|
|
83
|
-
window.customModal.init();
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
</script>
|
|
87
|
-
</>
|
|
88
|
-
)
|
|
89
|
-
}
|
|
90
40
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GlobalFooter
|
|
2
2
|
|
|
3
|
-
Renders the
|
|
3
|
+
Renders the global footer in the light DOM.
|
|
4
4
|
|
|
5
5
|
## Import
|
|
6
6
|
|
|
@@ -10,16 +10,13 @@ import GlobalFooter from 'igniteui-astro-components/components/GlobalFooter.astr
|
|
|
10
10
|
|
|
11
11
|
## Props
|
|
12
12
|
|
|
13
|
-
| Prop | Type |
|
|
14
|
-
|
|
15
|
-
| `
|
|
16
|
-
| `lang` | `NavLang` | virtual module value | Override the locale (`'en'` \| `'jp'` \| `'kr'`). |
|
|
13
|
+
| Prop | Type | Description |
|
|
14
|
+
|------|------|-------------|
|
|
15
|
+
| `lang` | `NavLang` | **Required.** Locale — `'en'` \| `'jp'` \| `'kr'`. |
|
|
17
16
|
|
|
18
17
|
## Behaviour
|
|
19
18
|
|
|
20
|
-
-
|
|
21
|
-
- **Static fallback** — falls back to a minimal server-side footer in dev.
|
|
22
|
-
- Separate from Starlight's own Footer override. If you are using Starlight, mount this component *inside* the Starlight Footer override so both footers appear in the correct order.
|
|
19
|
+
- Fetches the IG footer HTML at build time via `fetchIgNav(lang)`.
|
|
23
20
|
|
|
24
21
|
## Example
|
|
25
22
|
|
|
@@ -27,9 +24,9 @@ import GlobalFooter from 'igniteui-astro-components/components/GlobalFooter.astr
|
|
|
27
24
|
---
|
|
28
25
|
import GlobalFooter from 'igniteui-astro-components/components/GlobalFooter.astro';
|
|
29
26
|
---
|
|
30
|
-
<GlobalFooter />
|
|
27
|
+
<GlobalFooter lang="en" />
|
|
31
28
|
```
|
|
32
29
|
|
|
33
30
|
## Configuration
|
|
34
31
|
|
|
35
|
-
Same as `GlobalNavBar` —
|
|
32
|
+
Same as `GlobalNavBar` — `lang` is provided automatically by `DocsLayout` from `navLang` in `virtual:docs-template/site-meta`.
|