This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 764
/
app.component.ts
81 lines (76 loc) · 3.04 KB
/
app.component.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
* Copyright (c) 2016-2019 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { Component, ElementRef, ViewChild } from '@angular/core';
import { ClrIconCustomTag, ClrLoading, ClrMainContainer } from '@clr/angular';
import { ClarityIcons } from '@clr/icons';
import { ClrShapeStore } from '@clr/icons/shapes/commerce-shapes';
import { ClrShapePin } from '@clr/icons/shapes/essential-shapes';
import { ClrShapeHeadphones } from '@clr/icons/shapes/media-shapes';
import { ClrShapeStar } from '@clr/icons/shapes/social-shapes';
import { ClrShapeHelix } from '@clr/icons/shapes/technology-shapes';
import { ClrShapeCar } from '@clr/icons/shapes/travel-shapes';
@Component({ selector: 'KS-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] })
export class AppComponent {
/**
* @description
* These exist so that the exported API from Clarity is tested when ks-app is compiled with --prod.
* This is a catchall for entities w/o explicit app demos.
*/
private aClrIconCustomTag: ClrIconCustomTag;
private aClrMainContainer: ClrMainContainer;
private aClrLoading: ClrLoading;
title = 'KS';
links = [
{ path: 'alerts', title: 'Alerts' },
{ path: 'badges', title: 'Badges' },
{ path: 'buttons', title: 'Buttons' },
{ path: 'cards', title: 'Cards' },
{ path: 'checkboxes', title: 'Checkboxes' },
{ path: 'colors', title: 'Colors' },
{ path: 'datagrids', title: 'Datagrid' },
{ path: 'drag-and-drop', title: 'Drag and Drop' },
{ path: 'datepicker', title: 'Datepicker' },
{ path: 'dropdowns', title: 'Dropdowns' },
{ path: 'forms', title: 'Forms' },
{ path: 'iconography', title: 'Iconography' },
{ path: 'inputs', title: 'Inputs' },
{ path: 'labels', title: 'Labels' },
{ path: 'lists', title: 'Lists' },
{ path: 'login', title: 'Login' },
{ path: 'modals', title: 'Modals' },
{ path: 'passwords', title: 'Passwords' },
{ path: 'progress-bars', title: 'Progress Bars' },
{ path: 'radios', title: 'Radios' },
{ path: 'selects', title: 'Selects' },
{ path: 'signposts', title: 'Signposts' },
{ path: 'spinners', title: 'Spinners' },
{ path: 'stackviews', title: 'Stack Views' },
{ path: 'tables', title: 'Tables' },
{ path: 'tabs', title: 'Tabs' },
{ path: 'textareas', title: 'Textareas' },
{ path: 'tooltips', title: 'Tooltips' },
{ path: 'toggle', title: 'Toggle' },
{ path: 'treeview', title: 'Tree View' },
{ path: 'typography', title: 'Typography' },
{ path: 'vertical-nav', title: 'Vertical Nav' },
{ path: 'wizards', title: 'Wizards' },
];
constructor() {
ClarityIcons.add({
store: ClrShapeStore,
pin: ClrShapePin,
headphones: ClrShapeHeadphones,
star: ClrShapeStar,
car: ClrShapeCar,
helix: ClrShapeHelix,
});
}
@ViewChild('main', { static: false })
main: ElementRef;
skipToContent() {
this.main.nativeElement.focus();
}
}