igniteui-astro-components 0.0.27 → 0.0.28
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 +82 -74
- package/package.json +15 -2
- package/src/components/CopyCode/CopyCode.astro +21 -7
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.astro +33 -21
- package/src/components/DocsBreadcrumb/DocsBreadcrumb.scss +44 -43
- package/src/components/DocsBreadcrumb/README.md +10 -14
- package/src/components/DocsSidebar/DocsSidebar.astro +47 -45
- package/src/components/DocsSidebar/DocsSidebar.scss +120 -122
- package/src/components/DocsSidebar/README.md +25 -21
- package/src/components/DocsSidebar/SidebarFilterInput.astro +24 -29
- package/src/components/DocsSidebar/SidebarFilterInput.scss +90 -89
- package/src/components/DocsSidebar/SidebarLabel.astro +35 -26
- package/src/components/DocsSidebar/sidebar-filter.ts +93 -56
- package/src/components/DocsSubHeader/DocsSubHeader.astro +256 -195
- package/src/components/DocsSubHeader/DocsSubHeader.scss +181 -178
- package/src/components/DocsSubHeader/README.md +18 -16
- package/src/components/DocsToc/DocsToc.astro +301 -280
- package/src/components/DocsToc/DocsToc.scss +20 -21
- package/src/components/DocsToc/README.md +11 -9
- package/src/components/DocsToc/toTreeNodes.ts +3 -8
- package/src/components/DocsTree/DocsTree.astro +32 -20
- package/src/components/DocsTree/DocsTreeItem.astro +35 -30
- package/src/components/DocsTree/README.md +16 -15
- package/src/components/DocsTree/docs-tree.scss +267 -268
- package/src/components/GlobalFooter/GlobalFooter.astro +10 -10
- package/src/components/GlobalFooter/README.md +3 -2
- package/src/components/GlobalNavBar/GlobalNavBar.astro +4 -2
- package/src/components/GlobalNavBar/GlobalNavBar.module.scss +222 -222
- package/src/components/GlobalNavBar/README.md +3 -2
- package/src/components/LicenseIndicator/LicenseIndicator.astro +7 -5
- package/src/components/LicenseIndicator/LicenseIndicator.scss +3 -3
- package/src/components/MobileSidebarToggle/MobileSidebarToggle.astro +16 -17
- package/src/components/MobileSidebarToggle/README.md +3 -2
- package/src/components/MobileTocToggle/MobileTocToggle.astro +75 -61
- package/src/components/MobileTocToggle/MobileTocToggle.scss +65 -59
- package/src/components/Search/README.md +1 -0
- package/src/components/Search/Search.astro +137 -109
- package/src/components/Search/Search.scss +20 -20
- package/src/components/SearchAdvanced/README.md +21 -15
- package/src/components/SearchAdvanced/SearchAdvanced.astro +205 -133
- package/src/components/SearchAdvanced/SearchAdvanced.scss +152 -153
- package/src/components/mdx/ApiLink/ApiLink.astro +133 -113
- package/src/components/mdx/ApiLink/ApiLink.scss +9 -9
- package/src/components/mdx/ApiLink/README.md +26 -22
- package/src/components/mdx/ApiLink/api-link-index.ts +196 -173
- package/src/components/mdx/ApiRef/ApiRef.astro +54 -51
- package/src/components/mdx/ApiRef/README.md +20 -15
- package/src/components/mdx/Badge/Badge.astro +14 -14
- package/src/components/mdx/Badge/Badge.scss +61 -56
- package/src/components/mdx/Badge/README.md +24 -19
- package/src/components/mdx/DocsAside/DocsAside.astro +30 -37
- package/src/components/mdx/DocsAside/DocsAside.scss +82 -82
- package/src/components/mdx/DocsAside/README.md +22 -22
- package/src/components/mdx/Faq/Faq.astro +86 -0
- package/src/components/mdx/Faq/Faq.scss +105 -0
- package/src/components/mdx/Faq/FaqItem.astro +117 -0
- package/src/components/mdx/Faq/README.md +223 -0
- package/src/components/mdx/Faq/types.ts +34 -0
- package/src/components/mdx/PlatformBlock/PlatformBlock.astro +3 -2
- package/src/components/mdx/PlatformBlock/README.md +6 -8
- package/src/components/mdx/Sample/README.md +21 -16
- package/src/components/mdx/Sample/Sample.astro +97 -74
- package/src/components/mdx/Sample/Sample.scss +132 -132
- package/src/content-helper.ts +71 -72
- package/src/content.config.ts +1 -6
- package/src/integration.ts +566 -512
- package/src/layouts/DocsLayout/DocsLayout.astro +228 -182
- package/src/layouts/DocsLayout/DocsLayout.scss +261 -261
- package/src/layouts/DocsLayout/README.md +24 -35
- package/src/lib/nav-helpers.ts +88 -82
- package/src/lib/types.ts +76 -76
- package/src/llms.ts +205 -166
- package/src/platform.ts +312 -162
- package/src/plugins/rehype-heading-anchors.ts +45 -45
- package/src/plugins/rehype-pagefind-ignore.ts +19 -19
- package/src/plugins/rehype-table-wrapper.ts +30 -30
- package/src/plugins/remark-docfx.ts +12 -0
- package/src/plugins/remark-env-vars.ts +12 -4
- package/src/plugins/remark-md-links.ts +10 -4
- package/src/scripts/icon-manifest.ts +13 -5
- package/src/scripts/sample-widget.ts +557 -501
- package/src/sidebar.ts +103 -97
- package/src/styles/global/_code-blocks.scss +43 -44
- package/src/styles/global/_component-themes.scss +151 -153
- package/src/styles/global/_icon-gallery.scss +81 -81
- package/src/styles/global/_index.scss +0 -1
- package/src/styles/global/_markdown.scss +816 -787
- package/src/styles/global/_palette.scss +456 -110
- package/src/styles/global/_search-shared.scss +402 -398
- package/src/styles/global/_type-scale.scss +127 -127
- package/src/styles/global/_variables.scss +138 -111
- package/src/styles/theme.scss +41 -41
- package/src/virtual-modules.d.ts +11 -2
package/src/platform.ts
CHANGED
|
@@ -15,23 +15,17 @@
|
|
|
15
15
|
|
|
16
16
|
/** HTML tag names accepted by the `head` array. */
|
|
17
17
|
export type HeadTag =
|
|
18
|
-
|
|
19
|
-
| 'meta' | 'script' | 'noscript' | 'template';
|
|
18
|
+
'title' | 'link' | 'style' | 'base' | 'meta' | 'script' | 'noscript' | 'template';
|
|
20
19
|
|
|
21
20
|
/** Single entry in the `head` array — tag, attrs, optional content. */
|
|
22
21
|
export type HeadEntry = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
tag: HeadTag;
|
|
23
|
+
attrs?: Record<string, string | boolean | undefined>;
|
|
24
|
+
content?: string;
|
|
26
25
|
};
|
|
27
26
|
|
|
28
27
|
export type PlatformKey =
|
|
29
|
-
|
|
30
|
-
| 'react'
|
|
31
|
-
| 'blazor'
|
|
32
|
-
| 'web-components'
|
|
33
|
-
| 'slingshot'
|
|
34
|
-
| 'appbuilder';
|
|
28
|
+
'angular' | 'react' | 'blazor' | 'web-components' | 'slingshot' | 'appbuilder';
|
|
35
29
|
|
|
36
30
|
/** Locale code for nav/API requests and UI string lookups. */
|
|
37
31
|
export type NavLang = 'en' | 'jp' | 'kr';
|
|
@@ -44,90 +38,178 @@ export type NavLang = 'en' | 'jp' | 'kr';
|
|
|
44
38
|
export type NavTheme = PlatformKey | 'igniteui';
|
|
45
39
|
|
|
46
40
|
export interface PlatformMeta {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
41
|
+
title: string;
|
|
42
|
+
description: string;
|
|
43
|
+
key: PlatformKey;
|
|
44
|
+
devPort: number;
|
|
45
|
+
base: string;
|
|
46
|
+
label: string;
|
|
47
|
+
lang: NavLang;
|
|
51
48
|
}
|
|
52
49
|
|
|
53
50
|
type NavType = 'infragistics' | 'appbuilder' | 'none';
|
|
54
51
|
|
|
55
52
|
interface PlatformDef {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
navType: NavType;
|
|
54
|
+
styles: HeadEntry[];
|
|
55
|
+
scripts: HeadEntry[];
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
export interface NavConfig {
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
navType: NavType;
|
|
60
|
+
navUrl: string | null;
|
|
64
61
|
}
|
|
65
62
|
|
|
66
63
|
// ---------------------------------------------------------------------------
|
|
67
64
|
// Shared IG styles — used by: angular, react, blazor, web-components, slingshot
|
|
68
65
|
// ---------------------------------------------------------------------------
|
|
69
66
|
const IG_STYLES: HeadEntry[] = [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
// Bootstrap is wrapped in a CSS cascade layer so its global resets do not
|
|
68
|
+
// bleed into the docs theme. The layer priority order is declared at
|
|
69
|
+
// the top of custom.scss: @layer bootstrap
|
|
70
|
+
// Note: @import layer() does not support the `integrity` SRI attribute.
|
|
71
|
+
{
|
|
72
|
+
tag: 'style',
|
|
73
|
+
content:
|
|
74
|
+
'@import url("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css") layer(bootstrap);',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
tag: 'link',
|
|
78
|
+
attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/assets/modern/css/layout.css' },
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
tag: 'link',
|
|
82
|
+
attrs: {
|
|
83
|
+
rel: 'stylesheet',
|
|
84
|
+
href: 'https://www.infragistics.com/assets/modern/css/animate-custom.css',
|
|
77
85
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
tag: 'link',
|
|
89
|
+
attrs: {
|
|
90
|
+
rel: 'stylesheet',
|
|
91
|
+
href: 'https://www.infragistics.com/assets/modern/css/fontello.css',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
tag: 'link',
|
|
96
|
+
attrs: { rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons' },
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
tag: 'link',
|
|
100
|
+
attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/css/navigation.css' },
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
tag: 'link',
|
|
104
|
+
attrs: { rel: 'stylesheet', href: 'https://www.infragistics.com/css/footer.css' },
|
|
105
|
+
},
|
|
84
106
|
];
|
|
85
107
|
|
|
86
108
|
// ---------------------------------------------------------------------------
|
|
87
109
|
// Shared IG scripts — used by: angular, react, blazor, web-components, slingshot
|
|
88
110
|
// ---------------------------------------------------------------------------
|
|
89
111
|
const IG_SCRIPTS: HeadEntry[] = [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
112
|
+
{
|
|
113
|
+
tag: 'script',
|
|
114
|
+
attrs: {
|
|
115
|
+
src: 'https://code.jquery.com/jquery-3.1.0.js',
|
|
116
|
+
integrity: 'sha256-slogkvB1K3VOkzAI8QITxV3VzpOnkeNVsKvtkYLMjfk=',
|
|
117
|
+
crossorigin: 'anonymous',
|
|
97
118
|
},
|
|
98
|
-
|
|
99
|
-
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
tag: 'script',
|
|
122
|
+
attrs: { src: 'https://www.infragistics.com/assets/modern/scripts/plugins.nav.js' },
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
tag: 'script',
|
|
126
|
+
attrs: { src: 'https://www.infragistics.com/assets/modern/scripts/navigation.js' },
|
|
127
|
+
},
|
|
100
128
|
];
|
|
101
129
|
|
|
102
130
|
// ---------------------------------------------------------------------------
|
|
103
131
|
// AppBuilder styles — source: head.tmpl.partial {{#_isAppBuilder}} block
|
|
104
132
|
// ---------------------------------------------------------------------------
|
|
105
133
|
const APPBUILDER_STYLES: HeadEntry[] = [
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
134
|
+
// Mega-menu plugin styles
|
|
135
|
+
{
|
|
136
|
+
tag: 'link',
|
|
137
|
+
attrs: {
|
|
138
|
+
rel: 'stylesheet',
|
|
139
|
+
href: 'https://staging.appbuilder.dev/wp-content/uploads/maxmegamenu/style.css?ver=631e5d',
|
|
140
|
+
media: 'all',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
tag: 'link',
|
|
145
|
+
attrs: {
|
|
146
|
+
rel: 'stylesheet',
|
|
147
|
+
href: 'https://staging.appbuilder.dev/wp-includes/css/dashicons.min.css',
|
|
148
|
+
media: 'all',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
tag: 'link',
|
|
153
|
+
attrs: {
|
|
154
|
+
rel: 'stylesheet',
|
|
155
|
+
href: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu-pro/icons/genericons/genericons/genericons.css',
|
|
156
|
+
media: 'all',
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
tag: 'link',
|
|
161
|
+
attrs: {
|
|
162
|
+
rel: 'stylesheet',
|
|
163
|
+
href: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu-pro/icons/fontawesome6/css/all.min.css',
|
|
164
|
+
media: 'all',
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
// Bootstrap v4.4 partials — wrapped in a CSS cascade layer so they don't
|
|
168
|
+
// override the docs theme. See custom.scss @layer declaration.
|
|
169
|
+
{
|
|
170
|
+
tag: 'style',
|
|
171
|
+
content: [
|
|
172
|
+
'@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_reboot.css") layer(bootstrap);',
|
|
173
|
+
'@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_type.css") layer(bootstrap);',
|
|
174
|
+
'@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_grid.css") layer(bootstrap);',
|
|
175
|
+
'@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_buttons.css") layer(bootstrap);',
|
|
176
|
+
'@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_forms.css") layer(bootstrap);',
|
|
177
|
+
'@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_input-group.css") layer(bootstrap);',
|
|
178
|
+
'@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_custom-forms.css") layer(bootstrap);',
|
|
179
|
+
'@import url("https://staging.appbuilder.dev/wp-content/themes/slingshot/css/bootstrap.v4.4/_utilities.css") layer(bootstrap);',
|
|
180
|
+
].join('\n'),
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
tag: 'link',
|
|
184
|
+
attrs: {
|
|
185
|
+
rel: 'stylesheet',
|
|
186
|
+
href: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/css/ig-modal.css',
|
|
187
|
+
media: 'all',
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
tag: 'link',
|
|
192
|
+
attrs: {
|
|
193
|
+
rel: 'stylesheet',
|
|
194
|
+
href: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/css/styles.css',
|
|
195
|
+
media: 'all',
|
|
125
196
|
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
197
|
+
},
|
|
198
|
+
// Fonts
|
|
199
|
+
{
|
|
200
|
+
tag: 'link',
|
|
201
|
+
attrs: {
|
|
202
|
+
rel: 'stylesheet',
|
|
203
|
+
href: 'https://fonts.googleapis.com/css?family=Figtree:300,400,700&display=swap',
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
tag: 'link',
|
|
208
|
+
attrs: {
|
|
209
|
+
rel: 'stylesheet',
|
|
210
|
+
href: 'https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap',
|
|
211
|
+
},
|
|
212
|
+
},
|
|
131
213
|
];
|
|
132
214
|
|
|
133
215
|
// ---------------------------------------------------------------------------
|
|
@@ -136,22 +218,66 @@ const APPBUILDER_STYLES: HeadEntry[] = [
|
|
|
136
218
|
// header HTML calls jQuery / maxmegamenu on load.
|
|
137
219
|
// ---------------------------------------------------------------------------
|
|
138
220
|
const APPBUILDER_SCRIPTS: HeadEntry[] = [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
221
|
+
// jQuery from staging (megamenu plugins may depend on this specific version)
|
|
222
|
+
{
|
|
223
|
+
tag: 'script',
|
|
224
|
+
attrs: { src: 'https://staging.appbuilder.dev/wp-includes/js/jquery/jquery.min.js?ver=3.7.1' },
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
tag: 'script',
|
|
228
|
+
attrs: {
|
|
229
|
+
src: 'https://staging.appbuilder.dev/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
// Site JS
|
|
233
|
+
{
|
|
234
|
+
tag: 'script',
|
|
235
|
+
attrs: {
|
|
236
|
+
src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/plugins.js?ver=1',
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
tag: 'script',
|
|
241
|
+
attrs: { src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/script.js?ver=1' },
|
|
242
|
+
},
|
|
243
|
+
// Mega-menu plugins
|
|
244
|
+
{
|
|
245
|
+
tag: 'script',
|
|
246
|
+
attrs: { src: 'https://staging.appbuilder.dev/wp-includes/js/hoverIntent.min.js?ver=1.10.2' },
|
|
247
|
+
},
|
|
248
|
+
// Inline megamenu config (must precede the megamenu plugin scripts)
|
|
249
|
+
{ tag: 'script', attrs: {}, content: 'var megamenu = {"timeout":"300","interval":"100"};' },
|
|
250
|
+
{
|
|
251
|
+
tag: 'script',
|
|
252
|
+
attrs: {
|
|
253
|
+
src: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu-pro/assets/public.js?ver=2.3.1.1',
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
tag: 'script',
|
|
258
|
+
attrs: {
|
|
259
|
+
src: 'https://staging.appbuilder.dev/wp-content/plugins/megamenu/js/maxmegamenu.js?ver=3.3.1',
|
|
260
|
+
},
|
|
261
|
+
},
|
|
262
|
+
// Contact form + lead tracking
|
|
263
|
+
{
|
|
264
|
+
tag: 'script',
|
|
265
|
+
attrs: {
|
|
266
|
+
src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/sf.common.js?ver=1',
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
tag: 'script',
|
|
271
|
+
attrs: {
|
|
272
|
+
src: 'https://www.google.com/recaptcha/api.js?render=6Lc-MFAaAAAAAIWi7UOrSUfUZnVmDUSsXjzS4BgY&ver=1',
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
tag: 'script',
|
|
277
|
+
attrs: {
|
|
278
|
+
src: 'https://staging.appbuilder.dev/wp-content/themes/slingshot/js/leadTracker.js?ver=1',
|
|
279
|
+
},
|
|
280
|
+
},
|
|
155
281
|
];
|
|
156
282
|
|
|
157
283
|
// ---------------------------------------------------------------------------
|
|
@@ -161,12 +287,12 @@ const APPBUILDER_SCRIPTS: HeadEntry[] = [
|
|
|
161
287
|
// 'appbuilder' → www.appbuilder.dev/header-footer-export
|
|
162
288
|
// ---------------------------------------------------------------------------
|
|
163
289
|
export const PLATFORM_DEFS: Record<PlatformKey, PlatformDef> = {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
290
|
+
angular: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
|
|
291
|
+
react: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
|
|
292
|
+
blazor: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
|
|
293
|
+
'web-components': { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
|
|
294
|
+
slingshot: { navType: 'infragistics', styles: IG_STYLES, scripts: IG_SCRIPTS },
|
|
295
|
+
appbuilder: { navType: 'appbuilder', styles: APPBUILDER_STYLES, scripts: APPBUILDER_SCRIPTS },
|
|
170
296
|
};
|
|
171
297
|
|
|
172
298
|
// ---------------------------------------------------------------------------
|
|
@@ -178,56 +304,80 @@ export const PLATFORM_DEFS: Record<PlatformKey, PlatformDef> = {
|
|
|
178
304
|
* Import this in `astro.config.ts` files instead of duplicating the data.
|
|
179
305
|
*/
|
|
180
306
|
export const IGDOCS_PLATFORMS: Record<string, PlatformMeta> = {
|
|
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
|
-
|
|
307
|
+
// English
|
|
308
|
+
Angular: {
|
|
309
|
+
lang: 'en',
|
|
310
|
+
label: 'Angular',
|
|
311
|
+
key: 'angular',
|
|
312
|
+
devPort: 4331,
|
|
313
|
+
base: '/docs-angular-new',
|
|
314
|
+
title: 'Ignite UI for Angular',
|
|
315
|
+
description: 'Component documentation for Ignite UI for Angular.',
|
|
316
|
+
},
|
|
317
|
+
React: {
|
|
318
|
+
lang: 'en',
|
|
319
|
+
label: 'React',
|
|
320
|
+
key: 'react',
|
|
321
|
+
devPort: 4332,
|
|
322
|
+
base: '/docs-react-new',
|
|
323
|
+
title: 'Ignite UI for React',
|
|
324
|
+
description: 'Component documentation for Ignite UI for React.',
|
|
325
|
+
},
|
|
326
|
+
WebComponents: {
|
|
327
|
+
lang: 'en',
|
|
328
|
+
label: 'Web Components',
|
|
329
|
+
key: 'web-components',
|
|
330
|
+
devPort: 4333,
|
|
331
|
+
base: '/docs-wc-new',
|
|
332
|
+
title: 'Ignite UI for Web Components',
|
|
333
|
+
description: 'Component documentation for Ignite UI for Web Components.',
|
|
334
|
+
},
|
|
335
|
+
Blazor: {
|
|
336
|
+
lang: 'en',
|
|
337
|
+
label: 'Blazor',
|
|
338
|
+
key: 'blazor',
|
|
339
|
+
devPort: 4334,
|
|
340
|
+
base: '/docs-blazor-new',
|
|
341
|
+
title: 'Ignite UI for Blazor',
|
|
342
|
+
description: 'Component documentation for Ignite UI for Blazor.',
|
|
343
|
+
},
|
|
344
|
+
// Japanese
|
|
345
|
+
AngularJP: {
|
|
346
|
+
lang: 'jp',
|
|
347
|
+
label: 'Angular',
|
|
348
|
+
key: 'angular',
|
|
349
|
+
devPort: 4341,
|
|
350
|
+
base: '/docs-angular-new',
|
|
351
|
+
title: 'Ignite UI for Angular',
|
|
352
|
+
description: 'Component documentation for Ignite UI for Angular.',
|
|
353
|
+
},
|
|
354
|
+
ReactJP: {
|
|
355
|
+
lang: 'jp',
|
|
356
|
+
label: 'React',
|
|
357
|
+
key: 'react',
|
|
358
|
+
devPort: 4342,
|
|
359
|
+
base: '/docs-react-new',
|
|
360
|
+
title: 'Ignite UI for React',
|
|
361
|
+
description: 'Component documentation for Ignite UI for React.',
|
|
362
|
+
},
|
|
363
|
+
WebComponentsJP: {
|
|
364
|
+
lang: 'jp',
|
|
365
|
+
label: 'Web Components',
|
|
366
|
+
key: 'web-components',
|
|
367
|
+
devPort: 4343,
|
|
368
|
+
base: '/docs-wc-new',
|
|
369
|
+
title: 'Ignite UI for Web Components',
|
|
370
|
+
description: 'Component documentation for Ignite UI for Web Components.',
|
|
371
|
+
},
|
|
372
|
+
BlazorJP: {
|
|
373
|
+
lang: 'jp',
|
|
374
|
+
label: 'Blazor',
|
|
375
|
+
key: 'blazor',
|
|
376
|
+
devPort: 4344,
|
|
377
|
+
base: '/docs-blazor-new',
|
|
378
|
+
title: 'Ignite UI for Blazor',
|
|
379
|
+
description: 'Component documentation for Ignite UI for Blazor.',
|
|
380
|
+
},
|
|
231
381
|
};
|
|
232
382
|
|
|
233
383
|
/**
|
|
@@ -237,17 +387,17 @@ export const IGDOCS_PLATFORMS: Record<string, PlatformMeta> = {
|
|
|
237
387
|
* @param platform - Platform identifier.
|
|
238
388
|
* @param lang - Locale — not currently used but kept for API completeness.
|
|
239
389
|
*/
|
|
240
|
-
export function getPlatformHead(platform: string,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
390
|
+
export function getPlatformHead(platform: string, _lang = 'en'): HeadEntry[] {
|
|
391
|
+
const def = PLATFORM_DEFS[platform as PlatformKey];
|
|
392
|
+
if (!def) {
|
|
393
|
+
console.warn(`[docs-template] Unknown platform "${platform}" — no head entries injected.`);
|
|
394
|
+
return [];
|
|
395
|
+
}
|
|
396
|
+
return [
|
|
397
|
+
{ tag: 'meta', attrs: { property: 'docs:platform', content: platform } },
|
|
398
|
+
...def.styles,
|
|
399
|
+
...def.scripts,
|
|
400
|
+
];
|
|
251
401
|
}
|
|
252
402
|
|
|
253
403
|
/**
|
|
@@ -258,17 +408,17 @@ export function getPlatformHead(platform: string, lang = 'en'): HeadEntry[] {
|
|
|
258
408
|
* @param lang - Locale for the nav URL ('en' | 'jp' | 'kr').
|
|
259
409
|
*/
|
|
260
410
|
export function getNavConfig(platform: string | null, lang = 'en'): NavConfig {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
411
|
+
const igBase = lang === 'jp' ? 'https://jp.infragistics.com' : 'https://www.infragistics.com';
|
|
412
|
+
switch (platform) {
|
|
413
|
+
case 'appbuilder':
|
|
414
|
+
return { navType: 'appbuilder', navUrl: 'https://www.appbuilder.dev/header-footer-export' };
|
|
415
|
+
case 'angular':
|
|
416
|
+
case 'react':
|
|
417
|
+
case 'blazor':
|
|
418
|
+
case 'web-components':
|
|
419
|
+
case 'slingshot':
|
|
420
|
+
return { navType: 'infragistics', navUrl: `${igBase}/navigation` };
|
|
421
|
+
default:
|
|
422
|
+
return { navType: 'none', navUrl: null };
|
|
423
|
+
}
|
|
274
424
|
}
|