@illinois-toolkit/ilw-header-megamenu 1.0.1 → 1.1.6
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 +12 -7
- package/builder/ilw-header-megamenu.json +24 -10
- package/builder/versions/ilw-header-megamenu.1.0.json +63 -67
- package/builder/versions/ilw-header-megamenu.1.1.json +66 -0
- package/dist/cdn/ilw-header-megamenu.css +1 -1
- package/dist/cdn/ilw-header-megamenu.js +337 -307
- package/dist/ilw-header-megamenu.css +1 -1
- package/dist/ilw-header-megamenu.js +129 -99
- package/package.json +6 -5
- package/src/MegaMenu.styles.css +1 -1
- package/src/MegaMenu.ts +52 -50
- package/src/MegaMenuSection.css +50 -3
- package/src/MegaMenuSection.styles.css +8 -9
- package/src/MegaMenuSection.ts +83 -15
- package/builder/versions/ilw-header-megamenu.1.0-alpha.json +0 -70
- package/builder/versions/ilw-header-megamenu.1.0.1.json +0 -70
- package/builder/versions/ilw-header-megamenu.2.0-alpha.json +0 -76
- package/dist/MegaMenu.d.ts +0 -27
- package/dist/MegaMenu.d.ts.map +0 -1
- package/dist/MegaMenuSection.d.ts +0 -26
- package/dist/MegaMenuSection.d.ts.map +0 -1
- package/dist/ilw-header-megamenu.d.ts +0 -1
- package/dist/ilw-header-megamenu.d.ts.map +0 -1
package/src/MegaMenuSection.css
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
+
ilw-header-megamenu-section[linked] a[slot="link"] {
|
|
2
|
+
all: initial;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
text-indent: var(--ilw-header-megamenu-section--anchor--text-indent);
|
|
8
|
+
position: relative;
|
|
9
|
+
font: var(--ilw-header-megamenu--font);
|
|
10
|
+
background: var(--ilw-header-megamenu--link-background);
|
|
11
|
+
color: var(--ilw-header-megamenu--link-color);
|
|
12
|
+
outline: 0;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
padding: 9px 2px 6px 20px;
|
|
15
|
+
border-width: 0 0 3px 0;
|
|
16
|
+
border-style: solid;
|
|
17
|
+
border-color: transparent;
|
|
18
|
+
border-bottom: var(--ilw-header-megamenu--link-border-bottom-highlight);
|
|
19
|
+
border-left: var(--ilw-header-megamenu--link-border-left-highlight);
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
background: var(--ilw-header-megamenu--link-background--hover);
|
|
23
|
+
border-bottom: var(--ilw-header-megamenu--link-border-bottom-highlight--hover);
|
|
24
|
+
color: var(--ilw-header-megamenu--link-color--hover);
|
|
25
|
+
text-decoration: underline;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:focus {
|
|
29
|
+
background: var(--ilw-header-megamenu--link-background--focus);
|
|
30
|
+
border-bottom: var(--ilw-header-megamenu--link-border-bottom-highlight--focus);
|
|
31
|
+
color: var(--ilw-header-megamenu--link-color--focus);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
ilw-header-megamenu-section[linked][aria-current="page"] a[slot="link"] {
|
|
36
|
+
border-color: var(--il-blue);
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
border-bottom: var(--ilw-header-megamenu--link-border-bottom-highlight--hover);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:focus {
|
|
43
|
+
border-bottom: var(--ilw-header-megamenu--link-border-bottom-highlight--focus);
|
|
44
|
+
color: var(--ilw-header-megamenu--link-color--focus)
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
1
49
|
ilw-header-megamenu-section {
|
|
2
50
|
|
|
3
51
|
img {
|
|
@@ -69,7 +117,7 @@ ilw-header-megamenu-section {
|
|
|
69
117
|
|
|
70
118
|
li {
|
|
71
119
|
list-style: none;
|
|
72
|
-
padding
|
|
120
|
+
padding: 0 30px;
|
|
73
121
|
|
|
74
122
|
span {
|
|
75
123
|
display: inline-block;
|
|
@@ -135,8 +183,7 @@ ilw-header-megamenu-section {
|
|
|
135
183
|
}
|
|
136
184
|
}
|
|
137
185
|
|
|
138
|
-
li>img
|
|
139
|
-
ul li:nth-child(n+21) {
|
|
186
|
+
li>img {
|
|
140
187
|
display: none
|
|
141
188
|
}
|
|
142
189
|
|
|
@@ -188,10 +188,8 @@ button[aria-expanded="true"] {
|
|
|
188
188
|
/* make single ul list */
|
|
189
189
|
|
|
190
190
|
:host(.solo-list) ::slotted(ul) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
grid-template-rows: repeat(5, 34px);
|
|
194
|
-
grid-auto-flow: column;
|
|
191
|
+
columns: 4;
|
|
192
|
+
break-inside: avoid;
|
|
195
193
|
max-width: 100vw;
|
|
196
194
|
}
|
|
197
195
|
|
|
@@ -199,14 +197,15 @@ button[aria-expanded="true"] {
|
|
|
199
197
|
/* make distinct lists */
|
|
200
198
|
div.list-wrapper {
|
|
201
199
|
display: grid;
|
|
202
|
-
grid-template-columns: repeat(4,
|
|
203
|
-
max-width: 100vw;
|
|
200
|
+
grid-template-columns: repeat(4, 1fr);
|
|
204
201
|
overflow: hidden;
|
|
205
202
|
}
|
|
206
203
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
204
|
+
/* @media (max-width: 989px) {
|
|
205
|
+
div.list-wrapper {
|
|
206
|
+
all: unset;
|
|
207
|
+
}
|
|
208
|
+
} */
|
|
210
209
|
|
|
211
210
|
::slotted(ul:last-of-type) {
|
|
212
211
|
border: none !important;
|
package/src/MegaMenuSection.ts
CHANGED
|
@@ -27,10 +27,24 @@ export default class MegaMenuSection extends LitElement {
|
|
|
27
27
|
})
|
|
28
28
|
mouseover = false;
|
|
29
29
|
|
|
30
|
+
@property({
|
|
31
|
+
reflect: true,
|
|
32
|
+
type: Boolean
|
|
33
|
+
})
|
|
34
|
+
linked = false;
|
|
35
|
+
|
|
30
36
|
static get styles() {
|
|
31
37
|
return unsafeCSS(styles);
|
|
32
38
|
}
|
|
33
39
|
|
|
40
|
+
constructor() {
|
|
41
|
+
super();
|
|
42
|
+
this.addEventListener('keydown', this.handleWindowKeydown.bind(this));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
connectedCallback() {
|
|
46
|
+
super.connectedCallback();
|
|
47
|
+
}
|
|
34
48
|
|
|
35
49
|
handleToggleClick(evt: Event) {
|
|
36
50
|
this.expanded = !this.expanded;
|
|
@@ -44,6 +58,26 @@ export default class MegaMenuSection extends LitElement {
|
|
|
44
58
|
this.moveToNextItem();
|
|
45
59
|
this.closeAllExceptOneSections(evt.target);
|
|
46
60
|
}
|
|
61
|
+
else if (evt.key === 'ArrowRight' || evt.key === 'ArrowLeft') {
|
|
62
|
+
if (this.isOnAnchorInLinked() && evt.key === 'ArrowRight') {
|
|
63
|
+
evt.stopPropagation();
|
|
64
|
+
evt.preventDefault();
|
|
65
|
+
this.expanded = false;
|
|
66
|
+
this.setFocus(true);
|
|
67
|
+
} else if (this.isOnButtonInLinked() && evt.key === 'ArrowLeft') {
|
|
68
|
+
evt.stopPropagation();
|
|
69
|
+
evt.preventDefault();
|
|
70
|
+
this.expanded = false;
|
|
71
|
+
this.setFocus();
|
|
72
|
+
} else if (this.isOnButtonInLinked() && evt.key === 'ArrowRight') {
|
|
73
|
+
this.expanded = false;
|
|
74
|
+
} else if (this.isOnAnchorInLinked() && evt.key === 'ArrowLeft') {
|
|
75
|
+
this.expanded = false;
|
|
76
|
+
} else {
|
|
77
|
+
this.expanded = false;
|
|
78
|
+
this.setFocus();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
47
81
|
else if (evt.key === 'ArrowUp') {
|
|
48
82
|
evt.stopPropagation();
|
|
49
83
|
evt.preventDefault();
|
|
@@ -59,18 +93,37 @@ export default class MegaMenuSection extends LitElement {
|
|
|
59
93
|
}
|
|
60
94
|
}
|
|
61
95
|
|
|
96
|
+
isEmbedded() {
|
|
97
|
+
return this.parentElement && this.parentElement.closest('ilw-header-megamenu-section') != null;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
isOnAnchorInLinked() {
|
|
101
|
+
return this.linked && document.activeElement && document.activeElement.tagName === 'A';
|
|
102
|
+
}
|
|
62
103
|
|
|
63
|
-
|
|
64
|
-
|
|
104
|
+
isOnButtonInLinked() {
|
|
105
|
+
return this.linked && document.activeElement && document.activeElement.tagName === 'ILW-HEADER-MEGAMENU-SECTION';
|
|
106
|
+
}
|
|
65
107
|
|
|
66
|
-
|
|
67
|
-
|
|
108
|
+
setFocus(useButton: Boolean = false) {
|
|
109
|
+
let newNode: Element | null = null;
|
|
110
|
+
if (this.linked && !useButton) {
|
|
111
|
+
newNode = this.querySelector('a');
|
|
112
|
+
}
|
|
113
|
+
else if (this.shadowRoot) {
|
|
114
|
+
newNode = this.shadowRoot.querySelector('a');
|
|
115
|
+
if (newNode == null) {
|
|
116
|
+
newNode = this.shadowRoot.querySelector('button');
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if (newNode != null) {
|
|
120
|
+
(newNode as HTMLElement).focus();
|
|
121
|
+
}
|
|
68
122
|
}
|
|
69
|
-
}
|
|
70
123
|
|
|
71
124
|
|
|
72
125
|
moveToNextItem() {
|
|
73
|
-
if (!this.expanded) {
|
|
126
|
+
if (!this.expanded && !this.isEmbedded()) {
|
|
74
127
|
this.expanded = true;
|
|
75
128
|
}
|
|
76
129
|
|
|
@@ -173,7 +226,7 @@ export default class MegaMenuSection extends LitElement {
|
|
|
173
226
|
let columnend = Math.floor(listitems / 5) * 5;
|
|
174
227
|
columnend = Math.min(columnend, 15);
|
|
175
228
|
lists.forEach((list, index) => {
|
|
176
|
-
const position = index
|
|
229
|
+
const position = index;
|
|
177
230
|
if (position <= columnend) {
|
|
178
231
|
list.style.borderRight = 'solid 2px var(--il-storm-85, #d5d3d3)';
|
|
179
232
|
} else {
|
|
@@ -183,21 +236,36 @@ export default class MegaMenuSection extends LitElement {
|
|
|
183
236
|
});
|
|
184
237
|
|
|
185
238
|
let isSubMenu = this.parentElement != null && this.parentElement.closest("ilw-header-megamenu-section") != null;
|
|
239
|
+
let isSolo = this.parentElement != null && this.parentElement.closest("ilw-header-megamenu-section") != null;
|
|
186
240
|
|
|
187
241
|
this.current = this.current || (this.getAttribute('aria-current') != null && (this.getAttribute('aria-current') === 'page' || this.getAttribute('aria-current') === 'true'));
|
|
242
|
+
|
|
243
|
+
var withLink = html`
|
|
244
|
+
<div class="header-link ${this.mouseover ? "highlighted" : ""} ${this.compact ? "compact" : ""} ${this.current ? "current" : ""}" @mouseover="${this.toggleMouseOver.bind(this)}" @mouseout="${this.toggleMouseOver.bind(this)}">
|
|
245
|
+
<slot name="link"></slot>
|
|
246
|
+
<button class="arrow-only" @click=${this.handleToggleClick.bind(this)} aria-expanded=${this.expanded ? 'true' : 'false'} aria-label=${this.querySelector('a[slot="link"]')?.textContent + ' submenu'} aria-controls="items">
|
|
247
|
+
${this.renderArrow()}
|
|
248
|
+
</button>
|
|
249
|
+
</div>
|
|
250
|
+
`;
|
|
251
|
+
|
|
252
|
+
var withoutLink = html`
|
|
253
|
+
<button class="${this.current ? "current" : ""}" @click=${this.handleToggleClick.bind(this)} aria-expanded=${this.expanded ? 'true' : 'false'} aria-controls="items">
|
|
254
|
+
<div class="header">
|
|
255
|
+
<div class="label"><slot name="label"></slot> </div>
|
|
256
|
+
<div class="icon">${this.renderArrow()}</div>
|
|
257
|
+
</div>
|
|
258
|
+
</button>
|
|
259
|
+
`;
|
|
260
|
+
|
|
188
261
|
|
|
189
262
|
const isSoloList = this.classList.contains('solo-list');
|
|
190
263
|
|
|
191
264
|
const needsWrapper = !isSoloList;
|
|
192
|
-
|
|
265
|
+
|
|
193
266
|
return html`
|
|
194
|
-
<div class="${isSubMenu ? 'submenu' : 'menu'} parent" @ilw-header-megamenu-section-expanded=${this.handleNavigationSectionToggleClick}
|
|
195
|
-
|
|
196
|
-
<div class="header">
|
|
197
|
-
<div class="label"><slot name="label"></slot> </div>
|
|
198
|
-
<div class="icon">${this.renderArrow()}</div>
|
|
199
|
-
</div>
|
|
200
|
-
</button>
|
|
267
|
+
<div class="${isSubMenu ? 'submenu' : 'menu'} parent" @ilw-header-megamenu-section-expanded=${this.handleNavigationSectionToggleClick}>
|
|
268
|
+
${this.linked ? withLink : withoutLink}
|
|
201
269
|
<div id="items" class="${this.expanded ? 'expanded' : ''}">
|
|
202
270
|
${needsWrapper
|
|
203
271
|
? html`
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "Header Mega Menu",
|
|
3
|
-
"tag": "ilw-header-megamenu",
|
|
4
|
-
"github": "https://github.com/web-illinois/ilw-header-megamenu/",
|
|
5
|
-
"type": "web component",
|
|
6
|
-
"element-name": "ilw-header-megamenu",
|
|
7
|
-
"description": "Mega Menu for the top of the page.",
|
|
8
|
-
"builder-version": "1.0.1-alpha",
|
|
9
|
-
"version": "1.0.1-alpha",
|
|
10
|
-
"date": "11/06/2025",
|
|
11
|
-
"css": "https://cdn.toolkit.illinois.edu/ilw-header-megamenu/1.0.1-alpha/ilw-header-megamenu.css",
|
|
12
|
-
"js": "https://cdn.toolkit.illinois.edu/ilw-header-megamenu/1.0.1-alpha/ilw-header-megamenu.js",
|
|
13
|
-
"production": false,
|
|
14
|
-
"notes": "",
|
|
15
|
-
"parent-style": "",
|
|
16
|
-
"samples": [
|
|
17
|
-
{
|
|
18
|
-
"name": "Default",
|
|
19
|
-
"description": "Default Links",
|
|
20
|
-
"text": "<ul> <li> <ilw-header-megamenu-section linked='true'> <a slot='link' href='/'>About</a> <ul> <li><a href='/'>Directory</a></li> <li><a href='/'>Departments</a></li> <li><a href='/'>News</a></li> <li><a href='/'>Events</a></li> <li><a href='/'>Careers</a></li> <li><a href='/'>Contact</a></li> <li><a href='/'>Visit</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Admissions</span> <div> <ul> <li><a href='/'>Undergrad Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> </ul> <ul> <li><a href='/'>Graduate Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> </ul> <ul> <li><a href='/'>International Admissions</a></li> </ul> </div> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Academics</span> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Honors Programs</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Academic Calendar</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Research</span> <ul> <li><a href='/'>Research Centers</a></li> <li><a href='/'>History</a></li> <li><a href='/'>Resources</a> </ul> </span> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Community</span> <ul> <li><a href='/'>Visit</a></li> <li><a href='/'>Student Life</a></li> <li><a href='/'>Public Events</a></li> <li><a href='/'>First-Gen Services</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Alumni</span> <ul> <li><a href='/'>Get Involved</a></li> <li><a href='/'>Awards</a></li> <li><a href='/'>Give</a></li> <li><a href='/'>Events</a></li> </ul> </ilw-header-megamenu-section> </li> </ul>"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "All Variations",
|
|
24
|
-
"description": "Includes every variation of the mega menu settings",
|
|
25
|
-
"text": "<ul> <li> <ilw-header-megamenu-section linked='true'> <a slot='link' href='/'>Basic top links, no groups or nesting</a> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Four columns, destinct groups with some nesting and a vanilla image</span> <div> <!-- column 1 --> <ul> <li><a href='/'>Undergrad Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> <li><a href='/'>Graduate Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> <li><a href='/'>International Admissions</a></li> </ul> <!-- column 1 --> <!-- column 2 --> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> </ul> <!-- column 2 --> <!-- column 3 --> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <!-- column 3 --> <!-- column 4 --> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> </ul> <!-- column 4 --> </div> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Links, with decorative image aligned left</span> <div> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <img class='align-left' src='https://fastly.picsum.photos/id/1025/500/400.jpg?hmac=MPFZjsU2UG1Mr3SjMkYP2F9jnhQWyatt6soxbOj0TN4'> </div> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Links with image call to action</span> <div> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <span slot='action' class='span-3'> <p> Prospective students </p> <button class='ilw-button ilw-theme-orange-2'>Link 2</button> <img src='https://picsum.photos/id/37/300/300'> </span> </div> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Links with plain call to action</span> <div> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <span slot='action' class='span-2 align-left'> <p> Prospective students </p> <button class='ilw-button ilw-theme-orange-2'>Link 2</button> </span> </div> </ilw-header-megamenu-section> </li> </ul>"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"attributes-fixed": [],
|
|
29
|
-
"attributes-text": [],
|
|
30
|
-
"attributes": [
|
|
31
|
-
{
|
|
32
|
-
"name": "compact",
|
|
33
|
-
"description": "Whether or not it is compact",
|
|
34
|
-
"deprecated": false,
|
|
35
|
-
"values": [
|
|
36
|
-
"",
|
|
37
|
-
"true"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "width",
|
|
42
|
-
"description": "The width it switches to compact, in pixels. Must be a number. Default is 990.",
|
|
43
|
-
"deprecated": false,
|
|
44
|
-
"values": [
|
|
45
|
-
"",
|
|
46
|
-
"990"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"classes-fixed": [],
|
|
51
|
-
"classes": [
|
|
52
|
-
{
|
|
53
|
-
"name": "align-left",
|
|
54
|
-
"description": "forces a secondary item to go to the left-most column of the menu dropdown",
|
|
55
|
-
"deprecated": false
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "span-2",
|
|
59
|
-
"description": "Allows a secondary item to fill up two columns at a time",
|
|
60
|
-
"deprecated": false
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "span-3",
|
|
64
|
-
"description": "Allows a secondary item to fill up three columns at a time",
|
|
65
|
-
"deprecated": false
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"css-variables": [
|
|
69
|
-
]
|
|
70
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "Header Mega Menu",
|
|
3
|
-
"tag": "ilw-header-megamenu",
|
|
4
|
-
"github": "https://github.com/web-illinois/ilw-header-megamenu/",
|
|
5
|
-
"type": "web component",
|
|
6
|
-
"element-name": "ilw-header-megamenu",
|
|
7
|
-
"description": "Mega Menu for the top of the page.",
|
|
8
|
-
"builder-version": "1.0.1",
|
|
9
|
-
"version": "1.0.1",
|
|
10
|
-
"date": "8/11/2026",
|
|
11
|
-
"css": "https://cdn.toolkit.illinois.edu/ilw-header-megamenu/1.0.1/ilw-header-megamenu.css",
|
|
12
|
-
"js": "https://cdn.toolkit.illinois.edu/ilw-header-megamenu/1.0.1/ilw-header-megamenu.js",
|
|
13
|
-
"production": true,
|
|
14
|
-
"notes": "",
|
|
15
|
-
"parent-style": "",
|
|
16
|
-
"samples": [
|
|
17
|
-
{
|
|
18
|
-
"name": "Default",
|
|
19
|
-
"description": "Default Links",
|
|
20
|
-
"text": "<ul> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>About</span> <ul> <li><a href='/'>Directory</a></li> <li><a href='/'>Departments</a></li> <li><a href='/'>News</a></li> <li><a href='/'>Events</a></li> <li><a href='/'>Careers</a></li> <li><a href='/'>Contact</a></li> <li><a href='/'>Visit</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Admissions</span> <ul> <li><a href='/'>Undergrad Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> </ul> <ul> <li><a href='/'>Graduate Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> </ul> <ul> <li><a href='/'>International Admissions</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>Academics</span> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Honors Programs</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Academic Calendar</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>Research</span> <ul> <li><a href='/'>Research Centers</a></li> <li><a href='/'>History</a></li> <li><a href='/'>Resources</a> </ul> </span> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>Community</span> <ul> <li><a href='/'>Visit</a></li> <li><a href='/'>Student Life</a></li> <li><a href='/'>Public Events</a></li> <li><a href='/'>First-Gen Services</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>Alumni</span> <ul> <li><a href='/'>Get Involved</a></li> <li><a href='/'>Awards</a></li> <li><a href='/'>Give</a></li> <li><a href='/'>Events</a></li> </ul> </ilw-header-megamenu-section> </li> </ul>"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "All Variations",
|
|
24
|
-
"description": "Includes every variation of the mega menu settings",
|
|
25
|
-
"text": "<ul> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>Single Unordered List</span> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Distinct Columns</span> <ul> <li><a href='/'>Undergrad Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> <li><a href='/'>Graduate Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> <li><a href='/'>International Admissions</a></li> </ul> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Decorative Image</span> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> </ul> <span slot='action-left' class='span-3'> <img src='https://fastly.picsum.photos/id/1025/500/400.jpg?hmac=MPFZjsU2UG1Mr3SjMkYP2F9jnhQWyatt6soxbOj0TN4' alt=''> </span> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>CTA with image</span> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <span slot='action-left' class=''> <p> Prospective students </p> <button class='ilw-button ilw-theme-orange-1'>Link 2</button> <img src='https://picsum.photos/id/37/300/300' alt=''> </span> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Plain CTA</span> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <span slot='action-right' class='span-2'> <p> Prospective students </p> <button class='ilw-button ilw-theme-orange-1'>Link 2</button> </span> <span slot='action-left' class='span-2'> <p> Prospective students </p> <button class='ilw-button ilw-theme-orange-1'>Link 2</button> </span> </ilw-header-megamenu-section> </li> </ul>"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"attributes-fixed": [],
|
|
29
|
-
"attributes-text": [],
|
|
30
|
-
"attributes": [
|
|
31
|
-
{
|
|
32
|
-
"name": "compact",
|
|
33
|
-
"description": "Whether or not it is compact",
|
|
34
|
-
"deprecated": false,
|
|
35
|
-
"values": [
|
|
36
|
-
"",
|
|
37
|
-
"true"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "width",
|
|
42
|
-
"description": "The width it switches to compact, in pixels. Must be a number. Default is 990.",
|
|
43
|
-
"deprecated": false,
|
|
44
|
-
"values": [
|
|
45
|
-
"",
|
|
46
|
-
"990"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"classes-fixed": [],
|
|
51
|
-
"classes": [
|
|
52
|
-
{
|
|
53
|
-
"name": "align-left",
|
|
54
|
-
"description": "forces a secondary item to go to the left-most column of the menu dropdown",
|
|
55
|
-
"deprecated": false
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "span-2",
|
|
59
|
-
"description": "Allows a secondary item to fill up two columns at a time",
|
|
60
|
-
"deprecated": false
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "span-3",
|
|
64
|
-
"description": "Allows a secondary item to fill up three columns at a time",
|
|
65
|
-
"deprecated": false
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"css-variables": [
|
|
69
|
-
]
|
|
70
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "Header Mega Menu",
|
|
3
|
-
"tag": "ilw-header-megamenu",
|
|
4
|
-
"github": "https://github.com/web-illinois/ilw-header-megamenu/",
|
|
5
|
-
"type": "web component",
|
|
6
|
-
"element-name": "ilw-header-megamenu",
|
|
7
|
-
"description": "Mega Menu for the top of the page.",
|
|
8
|
-
"builder-version": "latest",
|
|
9
|
-
"version": "2.0-alpha",
|
|
10
|
-
"date": "06/12/2026",
|
|
11
|
-
"css": "https://dev.toolkit.illinois.edu/ilw-header-megamenu/latest/ilw-header-megamenu.css",
|
|
12
|
-
"js": "https://dev.toolkit.illinois.edu/ilw-header-megamenu/latest/ilw-header-megamenu.js",
|
|
13
|
-
"production": false,
|
|
14
|
-
"notes": "",
|
|
15
|
-
"parent-style": "",
|
|
16
|
-
"samples": [
|
|
17
|
-
{
|
|
18
|
-
"name": "Default",
|
|
19
|
-
"description": "Default Links",
|
|
20
|
-
"text": "<ul> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>About</span> <ul> <li><a href='/'>Directory</a></li> <li><a href='/'>Departments</a></li> <li><a href='/'>News</a></li> <li><a href='/'>Events</a></li> <li><a href='/'>Careers</a></li> <li><a href='/'>Contact</a></li> <li><a href='/'>Visit</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Admissions</span> <ul> <li><a href='/'>Undergrad Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> </ul> <ul> <li><a href='/'>Graduate Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> </ul> <ul> <li><a href='/'>International Admissions</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>Academics</span> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Honors Programs</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Academic Calendar</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>Research</span> <ul> <li><a href='/'>Research Centers</a></li> <li><a href='/'>History</a></li> <li><a href='/'>Resources</a> </ul> </span> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>Community</span> <ul> <li><a href='/'>Visit</a></li> <li><a href='/'>Student Life</a></li> <li><a href='/'>Public Events</a></li> <li><a href='/'>First-Gen Services</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>Alumni</span> <ul> <li><a href='/'>Get Involved</a></li> <li><a href='/'>Awards</a></li> <li><a href='/'>Give</a></li> <li><a href='/'>Events</a></li> </ul> </ilw-header-megamenu-section> </li> </ul>"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "All Variations",
|
|
24
|
-
"description": "Includes every variation of the mega menu settings",
|
|
25
|
-
"text": "<ul> <li> <ilw-header-megamenu-section class='solo-list'> <span slot='label'>Single Unordered List</span> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Distinct Columns</span> <ul> <li><a href='/'>Undergrad Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> <li><a href='/'>Graduate Admissions</a> <ul> <li><a href='/'>Apply</a></li> <li><a href='/'>Majors</a></li> <li><a href='/'>Cost and Aid</a></li> </ul> </li> <li><a href='/'>International Admissions</a></li> </ul> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> </ul> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Decorative Image</span> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> </ul> <span slot='action-left' class='span-3'> <img src='https://fastly.picsum.photos/id/1025/500/400.jpg?hmac=MPFZjsU2UG1Mr3SjMkYP2F9jnhQWyatt6soxbOj0TN4' alt=''> </span> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>CTA with image</span> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <span slot='action-left' class=''> <p> Prospective students </p> <button class='ilw-button ilw-theme-orange-1'>Link 2</button> <img src='https://picsum.photos/id/37/300/300' alt=''> </span> </ilw-header-megamenu-section> </li> <li> <ilw-header-megamenu-section> <span slot='label'>Plain CTA</span> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a></li> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> </ul> <ul> <li><a href='/'>Undergrad Admissions</a></li> <li><a href='/'>Graduate Admissions</a></li> <li><a href='/'>International Admissions</a> <ul> <li><a href='/'>Degrees</a></li> <li><a href='/'>Certificates</a></li> <li><a href='/'>Online Programs</a></li> <li><a href='/'>Research Focus Areas</a></li> </ul> </li> <li><a href='/'>Find a mentor</a></li> <li><a href='/'>Student Handbook</a></li> </ul> <span slot='action-right' class='span-2'> <p> Prospective students </p> <button class='ilw-button ilw-theme-orange-1'>Link 2</button> </span> <span slot='action-left' class='span-2'> <p> Prospective students </p> <button class='ilw-button ilw-theme-orange-1'>Link 2</button> </span> </ilw-header-megamenu-section> </li> </ul>"
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"attributes-fixed": [],
|
|
29
|
-
"attributes-text": [],
|
|
30
|
-
"attributes": [
|
|
31
|
-
{
|
|
32
|
-
"name": "compact",
|
|
33
|
-
"description": "Whether or not it is compact",
|
|
34
|
-
"deprecated": false,
|
|
35
|
-
"values": [
|
|
36
|
-
"",
|
|
37
|
-
"true"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "width",
|
|
42
|
-
"description": "The width it switches to compact, in pixels. Must be a number. Default is 990.",
|
|
43
|
-
"deprecated": false,
|
|
44
|
-
"values": [
|
|
45
|
-
"",
|
|
46
|
-
"990"
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"classes-fixed": [
|
|
51
|
-
{
|
|
52
|
-
"name": "wrapper-list",
|
|
53
|
-
"description": "allows you to break mulitple uls within a slot into a 4 column grid",
|
|
54
|
-
"deprecated": false
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"classes": [
|
|
58
|
-
{
|
|
59
|
-
"name": "solo-list",
|
|
60
|
-
"description": "allows you to have a single list with a fixed background height and fills up the 4 columns, maxing out at 20 items with no nesting",
|
|
61
|
-
"deprecated": false
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "span-2",
|
|
65
|
-
"description": "Allows a secondary item to fill up two columns at a time",
|
|
66
|
-
"deprecated": false
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "span-3",
|
|
70
|
-
"description": "Allows a secondary item to fill up three columns at a time",
|
|
71
|
-
"deprecated": false
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"css-variables": [
|
|
75
|
-
]
|
|
76
|
-
}
|
package/dist/MegaMenu.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { LitElement, CSSResultGroup } from 'lit';
|
|
2
|
-
import { default as MegaMenuSection } from './MegaMenuSection';
|
|
3
|
-
export default class MegaMenu extends LitElement {
|
|
4
|
-
compact: boolean;
|
|
5
|
-
width: number;
|
|
6
|
-
static get styles(): CSSResultGroup;
|
|
7
|
-
constructor();
|
|
8
|
-
connectedCallback(): void;
|
|
9
|
-
disconnectedCallback(): void;
|
|
10
|
-
handleWindowClick(evt: MouseEvent): void;
|
|
11
|
-
handleWindowKeydown(evt: KeyboardEvent): void;
|
|
12
|
-
handleNavigationSectionToggleClick(evt: CustomEvent): void;
|
|
13
|
-
gotoPreviousSection(): void;
|
|
14
|
-
gotoNextSection(): void;
|
|
15
|
-
handleWindowResize(): void;
|
|
16
|
-
setCompactTrue(): void;
|
|
17
|
-
setCompactFalse(): void;
|
|
18
|
-
getSections(): NodeListOf<MegaMenuSection>;
|
|
19
|
-
closeAllExceptOneSections(target: EventTarget | null): void;
|
|
20
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
21
|
-
}
|
|
22
|
-
declare global {
|
|
23
|
-
interface HTMLElementTagNameMap {
|
|
24
|
-
"ilw-header-megamenu": MegaMenu;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=MegaMenu.d.ts.map
|
package/dist/MegaMenu.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MegaMenu.d.ts","sourceRoot":"","sources":["../src/MegaMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,cAAc,EAAE,MAAM,KAAK,CAAC;AAGlE,OAAO,gBAAgB,CAAC;AAExB,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAGhD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,UAAU;IAM5C,OAAO,UAAS;IAKhB,KAAK,SAAO;IAGZ,MAAM,KAAK,MAAM,IAAK,cAAc,CAEnC;;IASD,iBAAiB;IAOjB,oBAAoB;IAMpB,iBAAiB,CAAC,GAAG,EAAE,UAAU;IAIjC,mBAAmB,CAAC,GAAG,EAAE,aAAa;IActC,kCAAkC,CAAC,GAAG,EAAE,WAAW;IAIrD,mBAAmB;IA4BrB,eAAe;IA4BX,kBAAkB;IAUlB,cAAc;IAKd,eAAe;IAKf,WAAW;IAIX,yBAAyB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAMpD,MAAM;CAST;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,qBAAqB,EAAE,QAAQ,CAAC;KACnC;CACJ"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export default class MegaMenuSection extends LitElement {
|
|
3
|
-
current: boolean;
|
|
4
|
-
compact: boolean;
|
|
5
|
-
expanded: boolean;
|
|
6
|
-
mouseover: boolean;
|
|
7
|
-
static get styles(): import('lit').CSSResult;
|
|
8
|
-
handleToggleClick(evt: Event): void;
|
|
9
|
-
handleWindowKeydown(evt: KeyboardEvent): void;
|
|
10
|
-
setFocus(): void;
|
|
11
|
-
moveToNextItem(): void;
|
|
12
|
-
moveToPreviousItem(): void;
|
|
13
|
-
renderArrow(): import('lit-html').TemplateResult<1>;
|
|
14
|
-
toggleMouseOver(): void;
|
|
15
|
-
handleNavigationSectionToggleClick(evt: CustomEvent): void;
|
|
16
|
-
getSections(): NodeListOf<MegaMenuSection>;
|
|
17
|
-
closeAllExceptOneSections(target: EventTarget | null): void;
|
|
18
|
-
private hasSlotContent;
|
|
19
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
20
|
-
}
|
|
21
|
-
declare global {
|
|
22
|
-
interface HTMLElementTagNameMap {
|
|
23
|
-
"ilw-header-megamenu-section": MegaMenuSection;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=MegaMenuSection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MegaMenuSection.d.ts","sourceRoot":"","sources":["../src/MegaMenuSection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAGlD,OAAO,uBAAuB,CAAC;AAI/B,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,UAAU;IAKnD,OAAO,UAAS;IAKhB,OAAO,UAAS;IAKhB,QAAQ,UAAS;IAKjB,SAAS,UAAS;IAElB,MAAM,KAAK,MAAM,4BAEhB;IAGD,iBAAiB,CAAC,GAAG,EAAE,KAAK;IAK5B,mBAAmB,CAAC,GAAG,EAAE,aAAa;IAuBvC,QAAQ;IASP,cAAc;IAyBd,kBAAkB;IAqBlB,WAAW;IAMT,eAAe;IAIf,kCAAkC,CAAC,GAAG,EAAE,WAAW;IAKrD,WAAW;IAIX,yBAAyB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAIpD,OAAO,CAAC,cAAc;IAMtB,MAAM;CAoET;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,6BAA6B,EAAE,eAAe,CAAC;KAClD;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=ilw-header-megamenu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ilw-header-megamenu.d.ts","sourceRoot":"","sources":["../src/ilw-header-megamenu.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AACpB,OAAO,mBAAmB,CAAC"}
|