@retalia/sidebar-navigation 21.1.7 → 21.1.9

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 (91) hide show
  1. package/fesm2022/retalia-sidebar-navigation.mjs +1359 -0
  2. package/fesm2022/retalia-sidebar-navigation.mjs.map +1 -0
  3. package/package.json +26 -14
  4. package/types/retalia-sidebar-navigation.d.ts +227 -0
  5. package/karma.conf.js +0 -44
  6. package/ng-package.json +0 -8
  7. package/src/assets/fonts/Effra_Std_It.eot +0 -0
  8. package/src/assets/fonts/Effra_Std_It.svg +0 -5123
  9. package/src/assets/fonts/Effra_Std_It.ttf +0 -0
  10. package/src/assets/fonts/Effra_Std_It.woff +0 -0
  11. package/src/assets/fonts/Effra_Std_It.woff2 +0 -0
  12. package/src/assets/fonts/Effra_Std_Md.eot +0 -0
  13. package/src/assets/fonts/Effra_Std_Md.svg +0 -4128
  14. package/src/assets/fonts/Effra_Std_Md.ttf +0 -0
  15. package/src/assets/fonts/Effra_Std_Md.woff +0 -0
  16. package/src/assets/fonts/Effra_Std_Md.woff2 +0 -0
  17. package/src/assets/fonts/Effra_Std_Rg.eot +0 -0
  18. package/src/assets/fonts/Effra_Std_Rg.svg +0 -4690
  19. package/src/assets/fonts/Effra_Std_Rg.ttf +0 -0
  20. package/src/assets/fonts/Effra_Std_Rg.woff +0 -0
  21. package/src/assets/fonts/Effra_Std_Rg.woff2 +0 -0
  22. package/src/assets/fonts/Poppins-Black.ttf +0 -0
  23. package/src/assets/fonts/Poppins-BlackItalic.ttf +0 -0
  24. package/src/assets/fonts/Poppins-Bold.ttf +0 -0
  25. package/src/assets/fonts/Poppins-BoldItalic.ttf +0 -0
  26. package/src/assets/fonts/Poppins-ExtraBold.ttf +0 -0
  27. package/src/assets/fonts/Poppins-ExtraBoldItalic.ttf +0 -0
  28. package/src/assets/fonts/Poppins-ExtraLight.ttf +0 -0
  29. package/src/assets/fonts/Poppins-ExtraLightItalic.ttf +0 -0
  30. package/src/assets/fonts/Poppins-Italic.ttf +0 -0
  31. package/src/assets/fonts/Poppins-Light.ttf +0 -0
  32. package/src/assets/fonts/Poppins-LightItalic.ttf +0 -0
  33. package/src/assets/fonts/Poppins-Medium.ttf +0 -0
  34. package/src/assets/fonts/Poppins-MediumItalic.ttf +0 -0
  35. package/src/assets/fonts/Poppins-Regular.ttf +0 -0
  36. package/src/assets/fonts/Poppins-SemiBold.ttf +0 -0
  37. package/src/assets/fonts/Poppins-SemiBoldItalic.ttf +0 -0
  38. package/src/assets/fonts/Poppins-Thin.ttf +0 -0
  39. package/src/assets/fonts/Poppins-ThinItalic.ttf +0 -0
  40. package/src/assets/icons/sidebar-burger.svg +0 -4
  41. package/src/assets/icons/sidebar-cross.svg +0 -4
  42. package/src/assets/icons/subItem-arrow.svg +0 -3
  43. package/src/assets/icons/topbar-avatar.png +0 -0
  44. package/src/assets/icons/topbar-info.svg +0 -3
  45. package/src/assets/icons/topbar-logout.svg +0 -4
  46. package/src/assets/icons/topbar-menu-burger.svg +0 -5
  47. package/src/assets/icons/topbar-menu-close.svg +0 -3
  48. package/src/assets/icons/topbar-notification.svg +0 -3
  49. package/src/assets/icons/topbar-profile.svg +0 -4
  50. package/src/assets/icons/topbar-settings.svg +0 -3
  51. package/src/assets/icons/topmenu-arrow.svg +0 -3
  52. package/src/assets/logo/_K3_imagine_White.svg +0 -14
  53. package/src/assets/logo/full-white.png +0 -0
  54. package/src/assets/logo/full.png +0 -0
  55. package/src/assets/logo/mobile-white.png +0 -0
  56. package/src/assets/logo/mobile.png +0 -0
  57. package/src/lib/data/support-routes.ts +0 -56
  58. package/src/lib/data/test-data.ts +0 -628
  59. package/src/lib/data/test-data2.ts +0 -1742
  60. package/src/lib/models/cookie-names.ts +0 -12
  61. package/src/lib/models/environment.ts +0 -4
  62. package/src/lib/models/http-response.ts +0 -3
  63. package/src/lib/models/module.ts +0 -39
  64. package/src/lib/navigation-lib.component.html +0 -20
  65. package/src/lib/navigation-lib.component.scss +0 -30
  66. package/src/lib/navigation-lib.component.ts +0 -26
  67. package/src/lib/navigation-lib.module.ts +0 -26
  68. package/src/lib/navigation-lib.service.ts +0 -9
  69. package/src/lib/services/auth.service.ts +0 -39
  70. package/src/lib/services/cookie.service.ts +0 -33
  71. package/src/lib/services/http.service.ts +0 -26
  72. package/src/lib/services/module.service.ts +0 -153
  73. package/src/lib/services/sub-item.service.ts +0 -56
  74. package/src/lib/sidebar/shop-modal/shop-modal.component.html +0 -17
  75. package/src/lib/sidebar/shop-modal/shop-modal.component.scss +0 -73
  76. package/src/lib/sidebar/shop-modal/shop-modal.component.ts +0 -36
  77. package/src/lib/sidebar/sidebar.component.html +0 -86
  78. package/src/lib/sidebar/sidebar.component.scss +0 -260
  79. package/src/lib/sidebar/sidebar.component.ts +0 -228
  80. package/src/lib/sidebar/sub-item/sub-item.component.html +0 -18
  81. package/src/lib/sidebar/sub-item/sub-item.component.scss +0 -153
  82. package/src/lib/sidebar/sub-item/sub-item.component.ts +0 -61
  83. package/src/lib/topbar/topbar.component.html +0 -29
  84. package/src/lib/topbar/topbar.component.scss +0 -176
  85. package/src/lib/topbar/topbar.component.ts +0 -76
  86. package/src/public-api.ts +0 -14
  87. package/src/styles/app.scss +0 -53
  88. package/src/test.ts +0 -15
  89. package/tsconfig.lib.json +0 -21
  90. package/tsconfig.lib.prod.json +0 -11
  91. package/tsconfig.spec.json +0 -17
@@ -1,153 +0,0 @@
1
- @import url('https://fonts.googleapis.com/css?family=Chakra+Petch:400,700&display=swap');
2
- @import "../../../styles/app.scss";
3
-
4
- .sub-item,
5
- .item-group {
6
- position: relative;
7
- list-style: none;
8
- pointer-events: all;
9
- text-transform: capitalize;
10
- font-family: "Chakra Petch", Arial, sans-serif;
11
- color: imagine-color(nav-inactive-text-color); // module text colour
12
- transition: color 0.15s ease-in-out;
13
- width: 258px;
14
- white-space: nowrap;
15
- text-overflow: ellipsis;
16
- overflow: hidden;
17
- font-weight: 400;
18
-
19
- @include responsive(mobileonly) {
20
- width: 100%;
21
- line-height: 45px;
22
- }
23
-
24
- }
25
-
26
- .item-group > * {
27
- text-indent: 30px;
28
- white-space: nowrap;
29
- text-overflow: ellipsis;
30
- overflow: hidden;
31
-
32
- }
33
-
34
- .sub-item {
35
- font-style: normal;
36
- font-weight: 700;
37
- font-size: 14px;
38
- line-height: 200%;
39
- letter-spacing: 0;
40
-
41
- &:hover {
42
- font-weight: 700;
43
- }
44
- }
45
-
46
- .item-label {
47
- display: block;
48
- position: relative;
49
- transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
50
- transform 0.15s ease-in-out;
51
- }
52
-
53
- .item-icon {
54
- width: 14px;
55
- height: 14px;
56
- margin-right: 8px;
57
- vertical-align: middle;
58
- object-fit: contain;
59
- }
60
-
61
- .item {
62
- display: inline-block;
63
- position: relative;
64
- list-style: none;
65
- text-indent: 12px;
66
- align-items: center;
67
- font-family: "Chakra Petch", Arial, sans-serif;
68
- line-height: 35px;
69
- border: 0px;
70
- cursor: pointer;
71
- font-weight: 400;
72
- font-size: 18px;
73
- color: imagine-color(nav-active-text-color); // module text colour
74
- transition: color 0.15s ease-in-out;
75
- padding: 6px 0px;
76
- padding-right: 15px !important;
77
- width: 245px;
78
- white-space: nowrap;
79
- text-overflow: ellipsis;
80
- overflow: hidden;
81
-
82
- @include responsive(mobileonly) {
83
- width: 100%;
84
- padding: 10px 0px !important;
85
- }
86
-
87
- }
88
-
89
- .item:hover > .item-label,
90
- .sub-item:hover > .item-label,
91
- .item-group:hover > .item-label {
92
- background: rgba(imagine-color(retalia-purple), 0.08); // softer branded hover state
93
- // box-shadow: inset 2px 0 0 rgba(imagine-color(retalia-purple), 0.28);
94
- transform: translateX(2px);
95
- }
96
-
97
- .sub-item-arrow {
98
- position: absolute !important;
99
- all: initial;
100
- pointer-events: none; // Forces click on module row, not icon
101
- height: 5px;
102
- right: 10px;
103
- padding: 12px 0px;
104
- transition: 0.1s linear all;
105
- user-select: none; // Prevent user from highlighting arrow
106
- -moz-user-select: none;
107
- -khtml-user-select: none;
108
- -webkit-user-select: none;
109
- -o-user-select: none;
110
- transform: rotate(180deg);
111
- }
112
-
113
- .rotated {
114
- transform: rotate(0deg);
115
- }
116
-
117
- .active > .item-label {
118
- color: imagine-color(retalia-blue); // brighter text for the active parent row
119
- background: rgba(imagine-color(nav-active-background), 0.8); // active row background only
120
- font-weight: 600; // bolder text
121
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); // subtle text shadow
122
- transform: scale(1.02); // slight zoom effect
123
-
124
- &::before {
125
- content: "";
126
- position: absolute;
127
- top: 0;
128
- bottom: 0;
129
- left: 0;
130
- width: 6px;
131
- background: imagine-color(retalia-blue);
132
- border-radius: 0 6px 6px 0;
133
- pointer-events: none;
134
- }
135
- }
136
-
137
- .selected-sub-item > .item-label {
138
- padding-left: 14px;
139
-
140
- &::before {
141
- content: "\2022";
142
- position: absolute;
143
- left: 0;
144
- top: 50%;
145
- transform: translateY(-50%);
146
- font-size: 14px;
147
- line-height: 1;
148
- }
149
- }
150
-
151
-
152
-
153
-
@@ -1,61 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import { ModuleItem, SidebarEntry } from '../../models/module';
3
- import { SubItemService } from '../../services/sub-item.service';
4
-
5
- @Component({
6
- selector: 'sub-item',
7
- templateUrl: './sub-item.component.html',
8
- styleUrls: ['./sub-item.component.scss'],
9
- standalone: false
10
- })
11
- export class SubItemComponent {
12
- @Input() items: ModuleItem[] | SidebarEntry[];
13
- activeItem = 'Yes';
14
- constructor(private subItemService: SubItemService) {}
15
-
16
- getClass = (item, items) => {
17
- let className = `item ${item.name}`;
18
- if (item.children.length > 0 && !items[0].authorizationId) {
19
- className = `item-group ${item.name}`;
20
- } else if (!item.authorizationId) {
21
- className = `sub-item ${item.name}`;
22
- }
23
-
24
- if (
25
- item.children.length > 0 &&
26
- (item.active || this.checkVisibleSubItems(item))
27
- ) {
28
- className += ' active';
29
- }
30
-
31
- if (item.active && item.children.length === 0) {
32
- className += ' selected-sub-item';
33
- }
34
-
35
- return className;
36
- };
37
-
38
- subItemClicked(e, item): void {
39
- e.stopPropagation();
40
- item.children.length > 0
41
- ? this.toggleSubItems(item)
42
- : this.onSubItemClick(item);
43
- }
44
-
45
- onSubItemClick(item: ModuleItem): void {
46
- this.subItemService.subItemclicked(item);
47
- }
48
-
49
- toggleSubItems(item: ModuleItem): void {
50
- item.children.map((si) => {
51
- si.visible = !si.visible;
52
- if (si.children && !si.visible) {
53
- si.children.map((si2) => (si2.visible = false)); // ensure nested items close with parent
54
- }
55
- });
56
- }
57
-
58
- checkVisibleSubItems(item: ModuleItem | SidebarEntry): boolean {
59
- return item && item.visible && item.children.some((se) => se.visible);
60
- }
61
- }
@@ -1,29 +0,0 @@
1
- <nav class="top-menu">
2
-
3
- <div id="profile">
4
-
5
- <div id="avatar" (click)="showDropdownOptions('profile')" data-testid="nav-profile">
6
- <svg class="profile-icon" width="24" height="24" viewBox="0 0 32 32" fill="#213244"
7
- xmlns="http://www.w3.org/2000/svg">
8
- <path
9
- d="M16 20C20.4183 20 24 16.4183 24 12C24 7.58172 20.4183 4 16 4C11.5817 4 8 7.58172 8 12C8 16.4183 11.5817 20 16 20Z"
10
- stroke="white" stroke-width="2" stroke-miterlimit="10" />
11
- <path
12
- d="M3.87354 26.9988C5.10299 24.8708 6.8708 23.1037 8.99939 21.8752C11.128 20.6467 13.5424 20 16.0001 20C18.4577 20 20.8721 20.6468 23.0007 21.8754C25.1292 23.1039 26.897 24.871 28.1264 26.9991"
13
- stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
14
- </svg>
15
- </div>
16
- @if (showProfileDropdown) {
17
- <div class="dropdown-items">
18
- <div class="option-text" (click)="clickDetails($event)" data-testid="nav-profile-settings">
19
- <img class="dropdown-icon" src="assets/icons/topbar-settings.svg" />
20
- Update details
21
- </div>
22
- <div class="option-text" (click)="logout()" data-testid="nav-profile-logout">
23
- <img class="dropdown-icon" src="assets/icons/topbar-logout.svg" />
24
- Logout
25
- </div>
26
- </div>
27
- }
28
- </div>
29
- </nav>
@@ -1,176 +0,0 @@
1
- @import "../../styles/app.scss";
2
-
3
- @font-face {
4
- font-family: 'Poppins';
5
- src: url('../../assets/fonts/Poppins-Regular.ttf') format('truetype');
6
- font-weight: 400;
7
- font-style: normal;
8
- }
9
-
10
- @font-face {
11
- font-family: 'Poppins';
12
- src: url('../../assets/fonts/Poppins-Bold.ttf') format('truetype');
13
- font-weight: 700;
14
- font-style: normal;
15
- }
16
-
17
- @font-face {
18
- font-family: 'Poppins';
19
- src: url('../../assets/fonts/Poppins-Italic.ttf') format('truetype');
20
- font-weight: 400;
21
- font-style: italic;
22
- }
23
-
24
- @font-face {
25
- font-family: 'Poppins';
26
- src: url('../../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
27
- font-weight: 600;
28
- font-style: normal;
29
- }
30
-
31
- #item-name {
32
- font-family: "Poppins", sans-serif;
33
- font-size: 24px;
34
- font-weight: 700;
35
- padding-left: 20px;
36
- overflow: hidden;
37
- white-space: nowrap;
38
- text-overflow: ellipsis;
39
- text-transform: capitalize;
40
-
41
- @include responsive(mobileonly) {
42
- padding-left: 70px;
43
- }
44
- }
45
-
46
- .top-menu {
47
- z-index: 20;
48
- margin: 0;
49
- top: 0;
50
- position: fixed;
51
- display: flex;
52
- align-items: center;
53
- height: 67px;
54
- width: 100vw;
55
- overflow: hidden;
56
- background-color: none;
57
-
58
- @include responsive(mobileonly) {
59
- min-height: 60px;
60
- height: 60px;
61
- }
62
-
63
- .dropdown-items {
64
- position: fixed;
65
- list-style-type: none;
66
- white-space: nowrap;
67
- padding: 0;
68
- min-width: 120px;
69
- border-radius: 10px;
70
- border: 1px solid #d8dde6;
71
- background-color: white;
72
- box-shadow: 0 2px 3px 0 imagine-color(shadow-gray);
73
- text-align-last: center;
74
-
75
- @include responsive(mobileonly) {
76
- top: 110px;
77
- }
78
-
79
- .option-text {
80
- cursor: pointer;
81
- font-family: "Poppins", sans-serif;
82
- font-size: 12px;
83
- text-align: left;
84
- margin: 0;
85
- padding: 10px 0px;
86
- color: black;
87
-
88
- &:hover {
89
- background-color: #f5f5f5;
90
- border-radius: 10px;
91
- }
92
- }
93
- }
94
-
95
- .dropdown-icon {
96
- pointer-events: none; /* Forces click on item row, not icon */
97
- float: left;
98
- margin-top: 2px;
99
- padding: 0px 8px;
100
- height: 10px;
101
- }
102
-
103
- #profile {
104
- position: fixed;
105
- right: 20px;
106
- display: flex;
107
- align-items: center;
108
-
109
- @include responsive(mobileonly) {
110
- height: 60px;
111
- }
112
-
113
- img {
114
- margin-left: 0px;
115
- }
116
-
117
- #avatar {
118
- cursor: pointer;
119
- position: relative;
120
- height: 30px;
121
- width: 30px;
122
- transition: 0.2s linear;
123
- border-radius: 50%;
124
- padding: 5px;
125
- background-color: #213244;
126
-
127
- &:hover {
128
- background-color: imagine-color(nav-active-text-color);
129
- }
130
-
131
- .profile-icon {
132
- margin: 0;
133
- position: absolute;
134
- top: 50%;
135
- left: 50%;
136
- -ms-transform: translate(-50%, -50%);
137
- transform: translate(-50%, -50%);
138
- pointer-events: none;
139
- }
140
- }
141
-
142
- #info {
143
- cursor: pointer;
144
- height: 30px;
145
- transition: 0.2s linear all;
146
-
147
- &:hover {
148
- transform: scale(1.1);
149
- }
150
- }
151
-
152
- .admin-group {
153
- right: 110px !important;
154
- }
155
-
156
- .info-group {
157
- right: 10px !important;
158
- }
159
-
160
- .dropdown-items {
161
- position: fixed;
162
- top: 70px;
163
- right: 30px;
164
-
165
- @include responsive(mobileonly) {
166
- top: 70px;
167
- }
168
- }
169
- }
170
- }
171
-
172
- @media print {
173
- .top-menu {
174
- display: none;
175
- }
176
- }
@@ -1,76 +0,0 @@
1
- import { Component, HostListener, Input } from '@angular/core';
2
- import { Environment } from '../models/environment';
3
- import { AuthService } from '../services/auth.service';
4
- import { ModuleService } from '../services/module.service';
5
-
6
- @Component({
7
- selector: 'topbar',
8
- templateUrl: './topbar.component.html',
9
- styleUrls: ['./topbar.component.scss'],
10
- standalone: false
11
- })
12
- export class TopbarComponent {
13
- @Input() environment: Environment;
14
- currentRouteName: string;
15
- isTenantAdmin = false;
16
- showProfileDropdown = false;
17
-
18
- constructor(
19
- private moduleService: ModuleService,
20
- private authService: AuthService
21
- ) {
22
- this.moduleService.storedModuleFlagsChange.subscribe((value) => {
23
- value ? (this.isTenantAdmin = value.includes('TenantAdmin')) : '';
24
- });
25
- this.moduleService.currentRouteName.subscribe((value) => {
26
- this.currentRouteName = value;
27
- });
28
- }
29
-
30
- @HostListener('document:click', ['$event'])
31
- clickout(event: Event): void {
32
- this.closeDropdown(event);
33
- }
34
-
35
- public showDropdownOptions(dropdownName: string): void {
36
- if (dropdownName === 'profile') {
37
- this.showProfileDropdown = true;
38
- }
39
- }
40
-
41
- public closeDropdown(event: Event): void {
42
- if (!(event.target instanceof Element)) {
43
- this.showProfileDropdown = false;
44
- return;
45
- }
46
-
47
- const element = event.composedPath()[0];
48
- if (!(element instanceof Element)) {
49
- this.showProfileDropdown = false;
50
- return;
51
- }
52
-
53
- if (event.target.id !== 'avatar' && element.id !== 'avatar') {
54
- this.showProfileDropdown = false;
55
- }
56
- }
57
-
58
- public clickDetails(e: Event): void {
59
- if (this.environment.portalUrl.slice(-1) !== `/`) {
60
- this.environment.portalUrl += `/`;
61
- }
62
-
63
- const detailsUrl = this.environment.portalUrl + 'profile/general';
64
- window.location.href = detailsUrl;
65
- }
66
-
67
- public logout(): void {
68
- if (this.environment.portalUrl.slice(-1) !== `/`) {
69
- this.environment.portalUrl += `/`;
70
- }
71
-
72
- this.authService.logout();
73
- const loginUrl = this.environment.portalUrl + 'auth/login';
74
- window.location.href = loginUrl;
75
- }
76
- }
package/src/public-api.ts DELETED
@@ -1,14 +0,0 @@
1
- /*
2
- * Public API Surface of sidebar-navigation
3
- */
4
-
5
- export * from './lib/navigation-lib.service';
6
- export * from './lib/navigation-lib.component';
7
- export * from './lib/navigation-lib.module';
8
-
9
- export * from './lib/models/module';
10
-
11
- export * from './lib/services/auth.service';
12
- export * from './lib/services/http.service';
13
- export * from './lib/services/module.service';
14
- export * from './lib/services/sub-item.service';
@@ -1,53 +0,0 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;1,300;1,400;1,600&display=swap');
2
- @import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;700&display=swap');
3
- @mixin responsive($point) {
4
- @if $point == desktop {
5
- @media (min-width: 70em) {
6
- @content;
7
- }
8
- } @else if $point == laptop {
9
- @media (min-width: 64em) {
10
- @content;
11
- }
12
- } @else if $point == tablet {
13
- @media (min-width: 50em) {
14
- @content;
15
- }
16
- } @else if $point == phablet {
17
- @media (min-width: 37.5em) {
18
- @content;
19
- }
20
- } @else if $point == mobileonly {
21
- @media (max-width: 37.5em) {
22
- @content;
23
- }
24
- }
25
- }
26
-
27
- @mixin rotate($degrees) {
28
- -webkit-transform: rotate($degrees);
29
- -moz-transform: rotate($degrees);
30
- -ms-transform: rotate($degrees);
31
- -o-transform: rotate($degrees);
32
- transform: rotate($degrees);
33
- }
34
-
35
- $imagine-colors: (
36
- nav-active-background: #FBF9FF,
37
- nav-inactive-background: #ffffff,
38
- nav-active-text-color: #545454,
39
- nav-inactive-text-color: #A5A5A5,
40
- nav-hover: #17293a,
41
- sidebar-border: #d4d6e4,
42
- bg-color: #fafbfc,
43
- retalia-blue: #B27BFB,
44
- retalia-purple: #5B02C7
45
- );
46
-
47
- @function imagine-color($key) {
48
- @return map-get($imagine-colors, $key);
49
- }
50
-
51
- .imagine-body {
52
- background-color: imagine-color(bg-color);
53
- }
package/src/test.ts DELETED
@@ -1,15 +0,0 @@
1
- // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
-
3
- import 'zone.js/dist/zone';
4
- import 'zone.js/dist/zone-testing';
5
- import { getTestBed } from '@angular/core/testing';
6
- import {
7
- BrowserDynamicTestingModule,
8
- platformBrowserDynamicTesting
9
- } from '@angular/platform-browser-dynamic/testing';
10
-
11
- // First, initialize the Angular testing environment.
12
- getTestBed().initTestEnvironment(
13
- BrowserDynamicTestingModule,
14
- platformBrowserDynamicTesting()
15
- );
package/tsconfig.lib.json DELETED
@@ -1,21 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/lib",
6
- "declaration": true,
7
- "declarationMap": true,
8
- "inlineSources": true,
9
- "types": []
10
- },
11
- "angularCompilerOptions": {
12
- "skipTemplateCodegen": true,
13
- "strictMetadataEmit": true,
14
- "enableResourceInlining": true,
15
- "fullTemplateTypeCheck": true
16
- },
17
- "exclude": [
18
- "src/test.ts",
19
- "**/*.spec.ts"
20
- ]
21
- }
@@ -1,11 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "./tsconfig.lib.json",
4
- "compilerOptions": {
5
- "declarationMap": false
6
- },
7
- "angularCompilerOptions": {
8
- "compilationMode": "partial"
9
- }
10
- }
11
-
@@ -1,17 +0,0 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
- {
3
- "extends": "../../tsconfig.json",
4
- "compilerOptions": {
5
- "outDir": "../../out-tsc/spec",
6
- "types": [
7
- "jasmine"
8
- ]
9
- },
10
- "files": [
11
- "src/test.ts"
12
- ],
13
- "include": [
14
- "**/*.spec.ts",
15
- "**/*.d.ts"
16
- ]
17
- }