@itcenteratunihelsinki/huds-lib 0.5.46 → 0.6.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.
Files changed (31) hide show
  1. package/dist/cjs/color-box_8.cjs.entry.js +1 -1
  2. package/dist/cjs/huds-lib.cjs.js +1 -1
  3. package/dist/cjs/{hy-accordion-container_91.cjs.entry.js → hy-accordion-container_89.cjs.entry.js} +3 -492
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-eeb7b089.js → utils-00f72b1e.js} +0 -2
  6. package/dist/collection/collection-manifest.json +0 -4
  7. package/dist/collection/components/hy-main/hy-main.css +3 -2
  8. package/dist/collection/components/navigation/menu/menu.js +1 -1
  9. package/dist/collection/components/navigation/menu-item/menu-item.js +1 -17
  10. package/dist/collection/components/navigation/menu-level-container/menu-level-container.css +0 -236
  11. package/dist/collection/components/navigation/menu-level-container/menu-level-container.js +1 -48
  12. package/dist/collection/components/site-header/site-header.js +1 -1
  13. package/dist/collection/utils/utils.js +0 -2
  14. package/dist/esm/color-box_8.entry.js +1 -1
  15. package/dist/esm/huds-lib.js +1 -1
  16. package/dist/esm/{hy-accordion-container_91.entry.js → hy-accordion-container_89.entry.js} +4 -491
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/esm/{utils-966ffdb5.js → utils-159098a4.js} +0 -2
  19. package/dist/huds-lib/huds-lib.esm.js +1 -1
  20. package/dist/huds-lib/{p-77f7df4b.entry.js → p-152d3e8d.entry.js} +54 -54
  21. package/dist/huds-lib/{p-d3ced29c.entry.js → p-2efc8ca0.entry.js} +1 -1
  22. package/dist/huds-lib/{p-cd2316f0.js → p-d9dc337b.js} +1 -1
  23. package/dist/types/components.d.ts +0 -200
  24. package/dist/types/utils/utils.d.ts +0 -2
  25. package/package.json +1 -1
  26. package/dist/collection/components/navigation/menu-item-sidebar/menu-item-sidebar.css +0 -399
  27. package/dist/collection/components/navigation/menu-item-sidebar/menu-item-sidebar.js +0 -580
  28. package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.css +0 -337
  29. package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.js +0 -677
  30. package/dist/types/components/navigation/menu-item-sidebar/menu-item-sidebar.d.ts +0 -34
  31. package/dist/types/components/navigation/menu-sidebar/menu-sidebar.d.ts +0 -90
@@ -1,677 +0,0 @@
1
- import { Component, Element, h, State, Listen, Prop } from '@stencil/core';
2
- import { MenuType, SiteLogoSize, ColorVariant } from '../../../utils/utils';
3
- import ResizeObserver from 'resize-observer-polyfill';
4
- let sidebarClickTimeout = null;
5
- let sidepanelClickTimeout = null;
6
- export class MenuSidebar {
7
- constructor() {
8
- /**
9
- * Is menu open boolean.
10
- */
11
- this.menuIsOpen = false;
12
- /**
13
- * Menu type. Defaults to sidenav.
14
- */
15
- this.menuType = MenuType.sidenav;
16
- this.pageSize = MenuType.mobile;
17
- /**
18
- * Upper menus panel boolean.
19
- */
20
- this.panelOpen = false;
21
- /**
22
- * Logo size
23
- */
24
- this.size = SiteLogoSize.big;
25
- /**
26
- * Isdemo
27
- */
28
- this.isDemo = false;
29
- /**
30
- * Should have link to front page or show full menu button
31
- */
32
- this.noChildren = false;
33
- /**
34
- * IsResearchGroup
35
- */
36
- this.isResearchGroup = false;
37
- /**
38
- * is Active helps to define how to render Research Group link.
39
- */
40
- this.isActive = false;
41
- this.minHeight = null;
42
- }
43
- panelToggle(e) {
44
- if (this.menuIsOpen) {
45
- this.closeWholeTree();
46
- this.panelOpen = !this.panelOpen;
47
- }
48
- else {
49
- this.panelOpen = !this.panelOpen;
50
- }
51
- e.preventDefault();
52
- e.stopPropagation();
53
- }
54
- async componentWillLoad() {
55
- if (this.pageSize === MenuType.mobile)
56
- return;
57
- const sideBar = document.querySelector('.layout-sidebar-first');
58
- if (sideBar) {
59
- if (this.menuIsOpen) {
60
- sideBar.classList.add('menu-is-open');
61
- }
62
- else if (sideBar.classList.contains('menu-is-open')) {
63
- sideBar.classList.remove('menu-is-open');
64
- }
65
- }
66
- }
67
- componentDidLoad() {
68
- this.ro = new ResizeObserver((entries) => {
69
- for (const entry of entries) {
70
- this.applySize(entry.contentRect.width);
71
- }
72
- });
73
- this.ro.observe(document.body);
74
- const panels = document.querySelectorAll('.hy-menu-level-container');
75
- if (panels) {
76
- const height = Math.max.apply(Math, [...panels].map((panel) => panel.scrollHeight));
77
- this.minHeight = height;
78
- }
79
- }
80
- applySize(size) {
81
- // Set the menu-type based on the width of the browser.
82
- if (size <= 960) {
83
- this.pageSize = MenuType.mobile;
84
- }
85
- else {
86
- this.pageSize = MenuType.desktop;
87
- }
88
- }
89
- handlePanel(e) {
90
- const target = e.target;
91
- const targetElement = target.tagName.toLowerCase();
92
- const possibleTags = [targetElement].some((r) => ['svg', 'path'].indexOf(r) >= 0);
93
- if (target.classList.contains('hy-menu-item__label__icon') || possibleTags) {
94
- const menuItem = target.closest('.hy-menu-item-sidebar');
95
- const menuItemId = menuItem.getAttribute('data-link-id');
96
- const menuItemLevel = menuItem.getAttribute('item-level');
97
- const menuPanel = menuItem.closest('.hy-menu-level-container');
98
- const childList = menuItem.querySelector('.hy-menu-level-container');
99
- const menu = target.closest('.hy-menu');
100
- if (menu.classList.contains('hy-menu-sidepanel') && !this.previousPanel) {
101
- const sameLevelItem = menuPanel.querySelector('.is-active-item');
102
- if (sameLevelItem) {
103
- const sameLevelChildList = sameLevelItem.querySelector('.hy-menu-level-container');
104
- this.updatePrevious(menuPanel, sameLevelItem);
105
- this.togglePanel(sameLevelItem, sameLevelChildList, true);
106
- this.togglePanel(menuItem, childList);
107
- return;
108
- }
109
- }
110
- // If no previous, as in first time clicking menu
111
- if (!this.previousPanel) {
112
- this.updatePrevious(menuPanel, menuItem);
113
- this.togglePanel(menuItem, childList);
114
- return;
115
- }
116
- const prevId = this.previousItem.dataset.linkId;
117
- const prevLevel = this.previousItem.getAttribute('item-level');
118
- // If clicking same menu item again.
119
- if (menuItemId === prevId) {
120
- if (menuItem.classList.contains('is-active-item')) {
121
- this.togglePanel(menuItem, childList, true);
122
- if (menuItemLevel == 0) {
123
- this.menuIsOpen = false;
124
- this.toggleSidebarBg();
125
- }
126
- }
127
- else {
128
- this.togglePanel(menuItem, childList);
129
- }
130
- return;
131
- }
132
- // If clicking menu item on same level or going back up
133
- if (menuItemLevel <= prevLevel) {
134
- // If clicking already active, close children
135
- if (menuItem.classList.contains('is-active-item')) {
136
- this.togglePanel(menuItem, childList, true);
137
- this.updatePrevious(menuPanel, menuItem);
138
- return;
139
- }
140
- // Close previous panels
141
- this.togglePanel(this.previousItem, menuPanel, true);
142
- // Open newly clicked panel
143
- this.togglePanel(menuItem, childList);
144
- // Update previous
145
- this.updatePrevious(menuPanel, menuItem);
146
- }
147
- else if (menuItemLevel > prevLevel) {
148
- this.togglePanel(menuItem, childList);
149
- this.updatePrevious(menuPanel, menuItem);
150
- }
151
- }
152
- e.stopImmediatePropagation();
153
- e.stopPropagation();
154
- }
155
- updatePrevious(panel, item) {
156
- this.previousPanel = panel;
157
- this.previousItem = item;
158
- }
159
- closeWholeTree() {
160
- const sidebarLevel1 = document.querySelector('.hy-menu-level-container--level-0');
161
- let firstItem = document.querySelector('.hy-menu-item-sidebar--sidenav.hy-menu-item--level-0.has-children.is-active-item');
162
- if (firstItem) {
163
- this.togglePanel(firstItem, sidebarLevel1, true);
164
- }
165
- else {
166
- firstItem = document.querySelector('.hy-menu-item-sidebar--sidenav.hy-menu-item--level-0.is-active-item');
167
- }
168
- const body = document.querySelector('body');
169
- const container = document.querySelector('.hy-menu-sidebar--container');
170
- if (container.classList.contains('sidebar-open') && firstItem) {
171
- container.classList.remove('sidebar-open');
172
- body.classList.remove('hy-menu-sidebar__no-scroll');
173
- }
174
- }
175
- togglePanel(menuItem, panel, shouldClose = false) {
176
- const buttonElement = menuItem.querySelector('button');
177
- const level = menuItem.getAttribute('item-level');
178
- if (level == 0 && !this.menuIsOpen) {
179
- if (window.pageYOffset > 50 && !this.isDemo) {
180
- window.scrollTo({ top: 0 });
181
- }
182
- this.menuIsOpen = true;
183
- }
184
- if (shouldClose) {
185
- const children = panel.querySelectorAll('.hy-menu-item-sidebar');
186
- const activeChild = [...children].filter((c) => c.classList.contains('is-active-item'));
187
- if (level == 0 && activeChild) {
188
- this.menuIsOpen = false;
189
- this.toggleSidebarBg();
190
- }
191
- if (activeChild.length > 0) {
192
- for (let i = 0; i < activeChild.length; i++) {
193
- const element = activeChild[i];
194
- this.closeChildren(element);
195
- }
196
- }
197
- if (buttonElement) {
198
- buttonElement.setAttribute('aria-expanded', 'false');
199
- }
200
- this.closeChildren(menuItem);
201
- return;
202
- }
203
- buttonElement.setAttribute('aria-expanded', 'true');
204
- panel.classList.add('is-open');
205
- menuItem.classList.add('is-active-item');
206
- }
207
- closeChildren(menuItem) {
208
- if (menuItem.classList.contains('is-active-item')) {
209
- menuItem.classList.remove('is-active-item');
210
- }
211
- if (menuItem.classList.contains('has-children')) {
212
- const menuButton = menuItem.querySelector('button');
213
- menuButton.setAttribute('aria-expanded', 'false');
214
- const childList = menuItem.querySelector('.hy-menu-level-container');
215
- childList.classList.remove('is-open');
216
- const childItems = childList.querySelectorAll('.hy-menu-item-sidebar');
217
- if (childList.classList.contains('is-active')) {
218
- childList.classList.remove('is-active');
219
- }
220
- childItems.forEach((element) => {
221
- element.classList.remove('is-active-item');
222
- if (element.classList.contains('has-children')) {
223
- const menuButton = element.querySelector('button');
224
- menuButton.setAttribute('aria-expanded', 'false');
225
- this.closeChildren(element);
226
- }
227
- else {
228
- return;
229
- }
230
- });
231
- }
232
- }
233
- toggleSidebarBg() {
234
- const sideBar = document.querySelector('.layout-sidebar-first');
235
- if (this.menuIsOpen) {
236
- sideBar.classList.add('menu-is-open');
237
- }
238
- else if (sideBar.classList.contains('menu-is-open')) {
239
- sideBar.classList.remove('menu-is-open');
240
- }
241
- }
242
- render() {
243
- const sidebarContainer = document.querySelector('.hy-menu-sidebar--container');
244
- if (sidebarContainer) {
245
- sidebarContainer.addEventListener('click', (e) => {
246
- clearTimeout(sidebarClickTimeout);
247
- sidebarClickTimeout = setTimeout(() => {
248
- if (e.target.classList.contains('sidebar-open')) {
249
- this.closeWholeTree();
250
- }
251
- }, 250);
252
- });
253
- }
254
- const sidepanelContainer = document.querySelector('.hy-menu-sidepanel--container');
255
- if (sidepanelContainer) {
256
- sidepanelContainer.addEventListener('click', (e) => {
257
- clearTimeout(sidepanelClickTimeout);
258
- sidepanelClickTimeout = setTimeout(() => {
259
- if (e.target.classList.contains('sidepanel-open')) {
260
- this.panelToggle(e);
261
- }
262
- }, 250);
263
- });
264
- }
265
- const logoColor = ColorVariant.black;
266
- const panelClassAttributes = ['hy-menu-sidepanel--container', this.panelOpen ? 'sidepanel-open' : ''].join(' ');
267
- switch (this.menuType) {
268
- case MenuType.sidepanel:
269
- return (h("div", { class: "hy-menu-sidebar__container", style: {
270
- '--minHeight': `${this.minHeight}px`,
271
- } },
272
- this.noChildren && this.isResearchGroup && this.isActive && (h("a", { "aria-label": this.frontLabel, class: "hy-menu-sidebar__panel-toggle", href: this.frontUrl },
273
- h("hy-icon", { icon: 'hy-icon-caret-left', fill: 'currentColor', size: 10 }),
274
- this.frontLabel)),
275
- this.noChildren && this.isResearchGroup && !this.isActive && (h("a", { "aria-label": this.frontLabel, class: "hy-menu-sidebar__panel-toggle", href: this.frontUrl },
276
- h("hy-icon", { icon: 'hy-icon-caret-left', fill: 'currentColor', size: 10 }),
277
- h("hy-icon", { icon: 'hy-icon-caret-left', fill: 'currentColor', size: 10 }),
278
- this.frontLabel)),
279
- this.noChildren && !this.isResearchGroup && (h("a", { "aria-label": this.frontLabel, class: "hy-menu-sidebar__panel-toggle", href: this.frontUrl },
280
- h("hy-icon", { icon: 'hy-icon-caret-left', fill: 'currentColor', size: 10 }),
281
- h("hy-icon", { icon: 'hy-icon-caret-left', fill: 'currentColor', size: 10 }),
282
- this.frontLabel)),
283
- !this.noChildren && (h("button", { "aria-label": this.panelToggleAriaLabel, class: "hy-menu-sidebar__panel-toggle", onClick: (e) => this.panelToggle(e) },
284
- h("hy-icon", { icon: 'hy-icon-caret-left', fill: 'currentColor', size: 10 }),
285
- h("hy-icon", { icon: 'hy-icon-caret-left', fill: 'currentColor', size: 10 }),
286
- this.panelToggleLabel)),
287
- h("div", { class: panelClassAttributes, "aria-hidden": this.panelOpen ? 'false' : 'true', "aria-expanded": this.panelOpen ? 'true' : 'false' },
288
- h("div", { class: "hy-menu-sidepanel__nav-container" },
289
- h("div", { class: "hy-menu-sidepanel__logo-container" },
290
- h("div", { class: "hy-menu-sidepanel__logo", "aria-hidden": this.panelOpen ? 'false' : 'true', tabindex: this.panelOpen ? '0' : '-1' },
291
- h("hy-site-logo", { size: 56, color: logoColor, url: this.logoUrl, label: this.logoLabel })),
292
- h("button", { "aria-label": this.panelToggleCloseAriaLabel, "aria-hidden": this.panelOpen ? 'false' : 'true', tabindex: this.panelOpen ? '0' : '-1', class: "hy-menu-sidebar__panel-toggle", onClick: (e) => this.panelToggle(e) },
293
- h("hy-icon", { icon: 'hy-icon-remove', fill: 'currentColor', size: 10 }),
294
- this.panelToggleCloseLabel)),
295
- h("nav", { role: 'navigation', "aria-hidden": this.panelOpen ? 'false' : 'true', tabindex: this.panelOpen ? '0' : '-1', class: {
296
- 'hy-menu': true,
297
- 'hy-menu-sidepanel': true,
298
- 'is-demo': this.isDemo,
299
- } },
300
- h("slot", null))))));
301
- case MenuType.sidenav:
302
- return (h("div", { class: "hy-menu-sidebar--container", style: {
303
- '--minHeight': `${this.minHeight}px`,
304
- } },
305
- h("div", { class: "hy-menu-sidebar__logo" },
306
- h("hy-site-logo", { size: 56, color: logoColor, url: this.logoUrl, label: this.logoLabel })),
307
- h("button", { "aria-label": this.panelToggleAriaLabel, class: "hy-menu-sidebar__panel-toggle", onClick: (e) => this.panelToggle(e) },
308
- h("hy-icon", { icon: 'hy-icon-caret-left', fill: 'currentColor', size: 10 }),
309
- h("hy-icon", { icon: 'hy-icon-caret-left', fill: 'currentColor', size: 10 }),
310
- this.panelToggleLabel),
311
- h("nav", { role: 'navigation', "aria-hidden": this.menuIsOpen ? 'false' : 'true', class: {
312
- 'hy-menu': true,
313
- 'hy-menu-sidebar': true,
314
- 'is-demo': this.isDemo,
315
- } },
316
- h("slot", null))));
317
- }
318
- }
319
- static get is() { return "hy-menu-sidebar"; }
320
- static get originalStyleUrls() { return {
321
- "$": ["menu-sidebar.scss"]
322
- }; }
323
- static get styleUrls() { return {
324
- "$": ["menu-sidebar.css"]
325
- }; }
326
- static get properties() { return {
327
- "menuIsOpen": {
328
- "type": "boolean",
329
- "mutable": false,
330
- "complexType": {
331
- "original": "boolean",
332
- "resolved": "boolean",
333
- "references": {}
334
- },
335
- "required": false,
336
- "optional": false,
337
- "docs": {
338
- "tags": [],
339
- "text": "Is menu open boolean."
340
- },
341
- "attribute": "menu-is-open",
342
- "reflect": false,
343
- "defaultValue": "false"
344
- },
345
- "menuType": {
346
- "type": "string",
347
- "mutable": false,
348
- "complexType": {
349
- "original": "MenuType",
350
- "resolved": "MenuType.desktop | MenuType.mobile | MenuType.sidenav | MenuType.sidepanel | MenuType.tablet",
351
- "references": {
352
- "MenuType": {
353
- "location": "import",
354
- "path": "../../../utils/utils"
355
- }
356
- }
357
- },
358
- "required": false,
359
- "optional": false,
360
- "docs": {
361
- "tags": [],
362
- "text": "Menu type. Defaults to sidenav."
363
- },
364
- "attribute": "menu-type",
365
- "reflect": false,
366
- "defaultValue": "MenuType.sidenav"
367
- },
368
- "pageSize": {
369
- "type": "string",
370
- "mutable": false,
371
- "complexType": {
372
- "original": "MenuType",
373
- "resolved": "MenuType.desktop | MenuType.mobile | MenuType.sidenav | MenuType.sidepanel | MenuType.tablet",
374
- "references": {
375
- "MenuType": {
376
- "location": "import",
377
- "path": "../../../utils/utils"
378
- }
379
- }
380
- },
381
- "required": false,
382
- "optional": false,
383
- "docs": {
384
- "tags": [],
385
- "text": ""
386
- },
387
- "attribute": "page-size",
388
- "reflect": false,
389
- "defaultValue": "MenuType.mobile"
390
- },
391
- "panelOpen": {
392
- "type": "boolean",
393
- "mutable": false,
394
- "complexType": {
395
- "original": "boolean",
396
- "resolved": "boolean",
397
- "references": {}
398
- },
399
- "required": false,
400
- "optional": false,
401
- "docs": {
402
- "tags": [],
403
- "text": "Upper menus panel boolean."
404
- },
405
- "attribute": "panel-open",
406
- "reflect": false,
407
- "defaultValue": "false"
408
- },
409
- "panelToggleLabel": {
410
- "type": "string",
411
- "mutable": false,
412
- "complexType": {
413
- "original": "string",
414
- "resolved": "string",
415
- "references": {}
416
- },
417
- "required": false,
418
- "optional": true,
419
- "docs": {
420
- "tags": [],
421
- "text": "Label for panel toggle button."
422
- },
423
- "attribute": "panel-toggle-label",
424
- "reflect": false
425
- },
426
- "panelToggleAriaLabel": {
427
- "type": "string",
428
- "mutable": false,
429
- "complexType": {
430
- "original": "string",
431
- "resolved": "string",
432
- "references": {}
433
- },
434
- "required": false,
435
- "optional": true,
436
- "docs": {
437
- "tags": [],
438
- "text": "Label for panel toggle button."
439
- },
440
- "attribute": "panel-toggle-aria-label",
441
- "reflect": false
442
- },
443
- "panelToggleCloseLabel": {
444
- "type": "string",
445
- "mutable": false,
446
- "complexType": {
447
- "original": "string",
448
- "resolved": "string",
449
- "references": {}
450
- },
451
- "required": false,
452
- "optional": true,
453
- "docs": {
454
- "tags": [],
455
- "text": "Label for panel toggle button."
456
- },
457
- "attribute": "panel-toggle-close-label",
458
- "reflect": false
459
- },
460
- "panelToggleCloseAriaLabel": {
461
- "type": "string",
462
- "mutable": false,
463
- "complexType": {
464
- "original": "string",
465
- "resolved": "string",
466
- "references": {}
467
- },
468
- "required": false,
469
- "optional": true,
470
- "docs": {
471
- "tags": [],
472
- "text": "Label for panel toggle button."
473
- },
474
- "attribute": "panel-toggle-close-aria-label",
475
- "reflect": false
476
- },
477
- "logoUrl": {
478
- "type": "string",
479
- "mutable": false,
480
- "complexType": {
481
- "original": "string",
482
- "resolved": "string",
483
- "references": {}
484
- },
485
- "required": false,
486
- "optional": true,
487
- "docs": {
488
- "tags": [],
489
- "text": "Url for logo."
490
- },
491
- "attribute": "logo-url",
492
- "reflect": false
493
- },
494
- "logoLabel": {
495
- "type": "string",
496
- "mutable": false,
497
- "complexType": {
498
- "original": "string",
499
- "resolved": "string",
500
- "references": {}
501
- },
502
- "required": false,
503
- "optional": true,
504
- "docs": {
505
- "tags": [],
506
- "text": "Logo label"
507
- },
508
- "attribute": "logo-label",
509
- "reflect": false
510
- },
511
- "size": {
512
- "type": "number",
513
- "mutable": false,
514
- "complexType": {
515
- "original": "SiteLogoSize",
516
- "resolved": "SiteLogoSize.big | SiteLogoSize.large | SiteLogoSize.small",
517
- "references": {
518
- "SiteLogoSize": {
519
- "location": "import",
520
- "path": "../../../utils/utils"
521
- }
522
- }
523
- },
524
- "required": false,
525
- "optional": false,
526
- "docs": {
527
- "tags": [],
528
- "text": "Logo size"
529
- },
530
- "attribute": "size",
531
- "reflect": false,
532
- "defaultValue": "SiteLogoSize.big"
533
- },
534
- "isDemo": {
535
- "type": "boolean",
536
- "mutable": false,
537
- "complexType": {
538
- "original": "boolean",
539
- "resolved": "boolean",
540
- "references": {}
541
- },
542
- "required": false,
543
- "optional": false,
544
- "docs": {
545
- "tags": [],
546
- "text": "Isdemo"
547
- },
548
- "attribute": "is-demo",
549
- "reflect": false,
550
- "defaultValue": "false"
551
- },
552
- "noChildren": {
553
- "type": "boolean",
554
- "mutable": false,
555
- "complexType": {
556
- "original": "boolean",
557
- "resolved": "boolean",
558
- "references": {}
559
- },
560
- "required": false,
561
- "optional": false,
562
- "docs": {
563
- "tags": [],
564
- "text": "Should have link to front page or show full menu button"
565
- },
566
- "attribute": "no-children",
567
- "reflect": false,
568
- "defaultValue": "false"
569
- },
570
- "frontUrl": {
571
- "type": "string",
572
- "mutable": false,
573
- "complexType": {
574
- "original": "string",
575
- "resolved": "string",
576
- "references": {}
577
- },
578
- "required": false,
579
- "optional": false,
580
- "docs": {
581
- "tags": [],
582
- "text": "Url to frontpage"
583
- },
584
- "attribute": "front-url",
585
- "reflect": false
586
- },
587
- "frontLabel": {
588
- "type": "string",
589
- "mutable": false,
590
- "complexType": {
591
- "original": "string",
592
- "resolved": "string",
593
- "references": {}
594
- },
595
- "required": false,
596
- "optional": false,
597
- "docs": {
598
- "tags": [],
599
- "text": "Label for frontpage"
600
- },
601
- "attribute": "front-label",
602
- "reflect": false
603
- },
604
- "isResearchGroup": {
605
- "type": "boolean",
606
- "mutable": false,
607
- "complexType": {
608
- "original": "boolean",
609
- "resolved": "boolean",
610
- "references": {}
611
- },
612
- "required": false,
613
- "optional": false,
614
- "docs": {
615
- "tags": [],
616
- "text": "IsResearchGroup"
617
- },
618
- "attribute": "is-research-group",
619
- "reflect": false,
620
- "defaultValue": "false"
621
- },
622
- "isActive": {
623
- "type": "boolean",
624
- "mutable": false,
625
- "complexType": {
626
- "original": "boolean",
627
- "resolved": "boolean",
628
- "references": {}
629
- },
630
- "required": false,
631
- "optional": false,
632
- "docs": {
633
- "tags": [],
634
- "text": "is Active helps to define how to render Research Group link."
635
- },
636
- "attribute": "is-active",
637
- "reflect": false,
638
- "defaultValue": "false"
639
- },
640
- "minHeight": {
641
- "type": "any",
642
- "mutable": true,
643
- "complexType": {
644
- "original": "any",
645
- "resolved": "any",
646
- "references": {}
647
- },
648
- "required": false,
649
- "optional": false,
650
- "docs": {
651
- "tags": [],
652
- "text": ""
653
- },
654
- "attribute": "min-height",
655
- "reflect": false,
656
- "defaultValue": "null"
657
- }
658
- }; }
659
- static get states() { return {
660
- "previousPanel": {},
661
- "previousItem": {}
662
- }; }
663
- static get elementRef() { return "el"; }
664
- static get listeners() { return [{
665
- "name": "panelToggle",
666
- "method": "panelToggle",
667
- "target": undefined,
668
- "capture": false,
669
- "passive": false
670
- }, {
671
- "name": "click",
672
- "method": "handlePanel",
673
- "target": undefined,
674
- "capture": false,
675
- "passive": false
676
- }]; }
677
- }