@rtsee/ngx 0.0.57 → 0.0.59

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 (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +10 -7
  3. package/projects/ngx/src/lib/common/interfaces/index.ts +1 -0
  4. package/projects/ngx/src/lib/common/interfaces/server-errors.ts +5 -0
  5. package/projects/ngx/src/lib/components/rtsee-auth/auth/auth.component.html +14 -10
  6. package/projects/ngx/src/lib/components/rtsee-auth/auth/auth.component.ts +28 -2
  7. package/projects/ngx/src/lib/components/rtsee-auth/forgot-password/forgot-password.component.html +1 -1
  8. package/projects/ngx/src/lib/components/rtsee-auth/forgot-password/forgot-password.component.ts +12 -5
  9. package/projects/ngx/src/lib/components/rtsee-auth/reset-password/reset-password.component.ts +6 -2
  10. package/projects/ngx/src/lib/components/rtsee-auth/services/auth.service.ts +40 -0
  11. package/projects/ngx/src/lib/components/rtsee-auth/sign-in/sign-in.component.html +66 -28
  12. package/projects/ngx/src/lib/components/rtsee-auth/sign-in/sign-in.component.ts +96 -20
  13. package/projects/ngx/src/lib/components/rtsee-auth/sign-up/sign-up.component.html +1 -1
  14. package/projects/ngx/src/lib/components/rtsee-auth/sign-up/sign-up.component.ts +18 -2
  15. package/projects/ngx/src/lib/components/rtsee-auth/types/auth-form.type.ts +3 -3
  16. package/projects/ngx/src/lib/components/rtsee-container/rtsee-container.component.html +25 -29
  17. package/projects/ngx/src/lib/components/rtsee-container/rtsee-container.component.ts +5 -8
  18. package/projects/ngx/src/lib/components/rtsee-container/rtsee-nav/rtsee-nav.component.html +25 -0
  19. package/projects/ngx/src/lib/components/rtsee-container/rtsee-nav/rtsee-nav.component.ts +26 -0
  20. package/projects/ngx/src/lib/components/rtsee-presentation/presentation/presentation.component.html +18 -17
  21. package/projects/ngx/src/lib/components/rtsee-presentation/presentation/presentation.component.ts +0 -2
  22. package/projects/ngx/src/lib/components/rtsee-presentation/slide/slide.component.html +22 -18
  23. package/projects/ngx/src/lib/components/rtsee-presentation/slide/slide.component.ts +4 -3
  24. package/projects/ngx/src/lib/ngx.module.ts +17 -9
  25. package/projects/ngx/src/lib/theme/auth/auth-container.scss +189 -177
  26. package/projects/ngx/src/lib/theme/auth/index.scss +0 -1
  27. package/projects/ngx/src/lib/theme/auth/variables.scss +1 -64
  28. package/projects/ngx/src/lib/theme/common-variables.scss +1 -0
  29. package/projects/ngx/src/lib/theme/containers/index.scss +2 -2
  30. package/projects/ngx/src/lib/theme/containers/nav-item.scss +84 -55
  31. package/projects/ngx/src/lib/theme/containers/nav.scss +86 -0
  32. package/projects/ngx/src/lib/theme/containers/shell.scss +22 -31
  33. package/projects/ngx/src/lib/theme/containers/variables.scss +10 -1
  34. package/projects/ngx/src/lib/theme/forms/common.scss +51 -0
  35. package/projects/ngx/src/lib/theme/forms/index.scss +1 -0
  36. package/projects/ngx/src/lib/theme/forms/variables.scss +8 -0
  37. package/projects/ngx/src/lib/theme/styles.scss +1 -0
  38. package/tsconfig.json +2 -5
  39. package/projects/ngx/src/lib/components/rtsee-container/rtsee-bottom-nav/rtsee-bottom-nav.component.html +0 -15
  40. package/projects/ngx/src/lib/components/rtsee-container/rtsee-bottom-nav/rtsee-bottom-nav.component.ts +0 -20
  41. package/projects/ngx/src/lib/components/rtsee-container/rtsee-sidenav/rtsee-sidenav.component.html +0 -32
  42. package/projects/ngx/src/lib/components/rtsee-container/rtsee-sidenav/rtsee-sidenav.component.ts +0 -26
  43. package/projects/ngx/src/lib/theme/auth/auth.scss +0 -0
  44. package/projects/ngx/src/lib/theme/containers/bottom-nav.scss +0 -15
  45. package/projects/ngx/src/lib/theme/containers/sidenav.scss +0 -125
@@ -1,7 +1,7 @@
1
1
  @import "./variables";
2
2
 
3
3
  .rtsee-shell {
4
- background-color: yellow;
4
+ min-height: 100vh;
5
5
 
6
6
  &.rtsee-shell-conference-mode {
7
7
  padding-top: $video-container-height;
@@ -81,13 +81,10 @@
81
81
  }
82
82
  }
83
83
 
84
- .rtsee-sidenav-block {
85
- display: none;
84
+ .rtsee-nav-block {
86
85
  position: fixed;
87
- z-index: 4;
88
- top: 0;
89
- height: 100%;
90
- width: $sidenav-collapsed-width;
86
+ width: 100%;
87
+ bottom: 0;
91
88
  left: 0;
92
89
  }
93
90
 
@@ -120,29 +117,19 @@
120
117
  overflow: auto;
121
118
  }
122
119
 
123
- .rtsee-bottom-nav-block {
124
- position: fixed;
125
- width: 100%;
126
- bottom: 0;
127
- left: 0;
128
- }
129
-
130
120
  @media screen and (min-width: $rts-break-md) {
131
- .rtsee-content {
132
- display: block;
133
- }
134
-
135
- .rtsee-bottom-nav-block {
136
- display: none;
137
- }
138
-
139
- .rtsee-sidenav-block {
140
- display: block;
121
+ .rtsee-nav-block {
122
+ position: fixed;
123
+ height: 100%;
124
+ bottom: 0;
125
+ left: 0;
126
+ width: $rts-sidebar-width;
141
127
  }
142
128
 
143
129
  .rtsee-content {
144
- padding-left: $rts-header-height;
130
+ padding-left: $rts-sidebar-width;
145
131
  padding-right: $video-container-width;
132
+ min-height: 100vh;
146
133
  }
147
134
 
148
135
  .rtsee-shell-panel {
@@ -166,14 +153,8 @@
166
153
 
167
154
  &.rtsee-shell-side-nav-expanded {
168
155
  .rtsee-content {
169
- padding-left: $rts-sidenav-expanded-width;
170
156
  overflow: hidden;
171
157
  }
172
-
173
- .rtsee-sidenav-block {
174
- left: 0;
175
- width: $rts-sidenav-expanded-width;
176
- }
177
158
  }
178
159
 
179
160
  &.rtsee-shell-conference-mode {
@@ -187,6 +168,10 @@
187
168
  }
188
169
 
189
170
  &.rtsee-shell-messenger-active {
171
+ .rtsee-content {
172
+ display: block;
173
+ }
174
+
190
175
  .rtsee-messenger-container {
191
176
  .rtsee-messenger-header-container {
192
177
  top: 0;
@@ -199,5 +184,11 @@
199
184
  }
200
185
  }
201
186
  }
187
+
188
+ &.rtsee-shell-presentation-active {
189
+ .rtsee-content {
190
+ display: block;
191
+ }
192
+ }
202
193
  }
203
194
  }
@@ -1,6 +1,7 @@
1
1
  @import "../common-variables";
2
2
 
3
- $nav-item-height: $rts-header-height;
3
+ $nav-item-height: 43px;
4
+ $nav-item-width: $nav-item-height;
4
5
  $nav-icon-block-width: $rts-header-height;
5
6
  $nav-icon-size: 24px;
6
7
  $sidenav-toggle-width: 6px;
@@ -21,3 +22,11 @@ $new-nav-icon-size: 30px;
21
22
  $nav-font-color: #5d5d5d;
22
23
  $active-font-color: #6897bb;
23
24
  $active-bg-color: #e8f4f4;
25
+
26
+ // Light theme navigation
27
+ $nav-icon-color: #000;
28
+ $nav-icon-color-active: #fff;
29
+ $nav-icon-background-color: transparent;
30
+ $nav-icon-background-active-color: #000;
31
+ $nav-icon-background-hover-color: rgba(0,0,0,0.1);
32
+ $nav-icon-border-radius: .5rem;
@@ -0,0 +1,51 @@
1
+ @import "./variables";
2
+
3
+ .rtsee-form-container {
4
+ padding: $rts-offset-md;
5
+ background-color: $rts-form-background-color;
6
+ border-radius: $rts-default-border-radius;
7
+
8
+ .rtsee-form {
9
+ background-color: $rts-form-background-color;
10
+
11
+ .rtsee-form-field-container {
12
+ margin-bottom: $rts-offset-md;
13
+
14
+ .rtsee-form-field-error-message {
15
+ display: block;
16
+ padding: $rts-offset-sm $rts-offset-sm 0 $rts-offset-sm;
17
+ }
18
+
19
+ &:last-child {
20
+ margin-bottom: 0;
21
+ }
22
+ }
23
+ }
24
+
25
+ .rtsee-progress-spinner {
26
+ width: $rts-spinner-d-md;
27
+ height: $rts-spinner-d-md;
28
+ margin-left: $rts-offset-md;
29
+
30
+ &.rtsee-progress-spinner-sm {
31
+ width: $rts-spinner-d-sm;
32
+ height: $rts-spinner-d-sm;
33
+ }
34
+ }
35
+
36
+ .rtsee-form-submit-container {
37
+ display: flex;
38
+ flex-direction: row;
39
+ align-items: center;
40
+ justify-content: start;
41
+ }
42
+
43
+ .rtsee-form-label {
44
+ margin-bottom: $rts-offset-md;
45
+
46
+ &:last-child {
47
+ margin-bottom: 0;
48
+ }
49
+ }
50
+ }
51
+
@@ -0,0 +1 @@
1
+ @import "./common.scss";
@@ -0,0 +1,8 @@
1
+ @import "../common-variables";
2
+
3
+ $rts-form-field-offset: $rts-offset-md;
4
+ $rts-form-background-color: #fff;
5
+
6
+ $rts-spinner-d-md: 64px;
7
+ $rts-spinner-d-sm: 32px;
8
+
@@ -6,3 +6,4 @@
6
6
  @import "./presentation/index";
7
7
  @import "./containers/index";
8
8
  @import "./auth/index";
9
+ @import "./forms/index";
package/tsconfig.json CHANGED
@@ -17,7 +17,8 @@
17
17
  "experimentalDecorators": true,
18
18
  "importHelpers": true,
19
19
  "target": "ES2022",
20
- "module": "preserve"
20
+ "module": "preserve",
21
+ "useDefineForClassFields": false
21
22
  },
22
23
  "angularCompilerOptions": {
23
24
  "enableI18nLegacyMessageIdFormat": false,
@@ -26,11 +27,7 @@
26
27
  "typeCheckHostBindings": true,
27
28
  "strictTemplates": true
28
29
  },
29
- "files": [],
30
30
  "references": [
31
- {
32
- "path": "./projects/ngx/tsconfig.lib.json"
33
- },
34
31
  {
35
32
  "path": "./projects/ngx/tsconfig.spec.json"
36
33
  }
@@ -1,15 +0,0 @@
1
- <div class="rtsee-bottom-nav">
2
- <nav class="rtsee-nav-bar">
3
- <a *ngFor="let route of config.routes"
4
- [routerLink]="route.link"
5
- routerLinkActive
6
- [ngClass]="{'rtsee-nav-item-hidden': !route.isEnabled}"
7
- [routerLinkActiveOptions]="{exact:true}"
8
- class="rtsee-nav-bar-link rtsee-bottom-nav-bar-link"
9
- >
10
- <span class="rtsee-nav-bar-link-icon">
11
- <span class="rtsee-nav-item-icon" [ngClass]="route.iconClassName"></span>
12
- </span>
13
- </a>
14
- </nav>
15
- </div>
@@ -1,20 +0,0 @@
1
- import {Component, Input} from '@angular/core';
2
- import {INavigationConfig} from "@rtsee/factory/dist/factory/src/interfaces/NavigationConfig";
3
- import {RouterLink, RouterLinkActive} from "@angular/router";
4
- import {NgClass, NgForOf} from "@angular/common";
5
-
6
-
7
- @Component({
8
- selector: 'rtsee-bottom-nav',
9
- templateUrl: './rtsee-bottom-nav.component.html',
10
- imports: [
11
- RouterLink,
12
- RouterLinkActive,
13
- NgClass,
14
- NgForOf
15
- ],
16
- standalone: true
17
- })
18
- export class RtseeBottomNavComponent {
19
- @Input() public config!: INavigationConfig;
20
- }
@@ -1,32 +0,0 @@
1
- <div class="rtsee-sidenav"
2
- [ngClass]="{'rtsee-sidenav-expanded': isExpanded}">
3
- <div class="rtsee-sidenav-header">
4
- <div class="rtsee-site-logo">
5
- <a [routerLink]="['/']" class="rtsee-home-link">
6
- <span class="rtsee-site-logo-wrapper" *ngIf="config.siteLogo">
7
- <img [src]="config.siteLogo.src" [ngClass]="config.siteLogo.classNames" [alt]="config.siteLogo.alt">
8
- </span>
9
- <span class="rtsee-site-name">{{config.siteName}}</span>
10
- </a>
11
- </div>
12
- </div>
13
- <div class="rtsee-sidenav-body">
14
- <div id="rtsee-nav-items-container">
15
- <ul class="rtsee-nav-items">
16
- <li *ngFor="let route of config.routes"
17
- [ngClass]="{'rtsee-nav-item-hidden': !route.isEnabled}">
18
- <a [routerLink]="route.link"
19
- routerLinkActive="active"
20
- class="rtsee-nav-item">
21
- <span class="rtsee-nav-item-icon" [ngClass]="route.iconClassName"></span>
22
- <span class="rtsee-nav-item-name">{{route.name}}</span>
23
- </a>
24
- </li>
25
- </ul>
26
- </div>
27
- </div>
28
- <div class="rtsee-sidenav-toggle" (click)="toggleButtonClicked()">
29
- <i class="fa fa-angle-right sidenav-toggle-button" *ngIf="!isExpanded"></i>
30
- <i class="fa fa-angle-left sidenav-toggle-button" *ngIf="isExpanded"></i>
31
- </div>
32
- </div>
@@ -1,26 +0,0 @@
1
- import {Component, EventEmitter, Input, Output} from '@angular/core';
2
- import {INavigationConfig} from "@rtsee/factory";
3
- import {NgClass, NgForOf, NgIf} from "@angular/common";
4
- import {RouterLink} from "@angular/router";
5
-
6
-
7
- @Component({
8
- selector: 'rtsee-sidenav',
9
- templateUrl: './rtsee-sidenav.component.html',
10
- imports: [
11
- NgClass,
12
- RouterLink,
13
- NgIf,
14
- NgForOf
15
- ],
16
- standalone: true
17
- })
18
- export class RtseeSidenavComponent {
19
- @Input() public config!: INavigationConfig;
20
- @Input() isExpanded!: boolean;
21
- @Output() toggleClicked = new EventEmitter<boolean>();
22
-
23
- toggleButtonClicked() {
24
- this.toggleClicked.emit(true);
25
- }
26
- }
File without changes
@@ -1,15 +0,0 @@
1
- @import "./variables";
2
-
3
- .rtsee-bottom-nav {
4
- min-height: $rts-bottom-nav-height + $rts-new-offset-sm;
5
- border-top: 1px solid $default-border-color;
6
- background-color: #FFF;
7
-
8
- .rtsee-nav-bar {
9
- .rtsee-bottom-nav-bar-link {
10
- .rtsee-nav-bar-link-icon {
11
- width: 30px;
12
- }
13
- }
14
- }
15
- }
@@ -1,125 +0,0 @@
1
- @import "./variables";
2
-
3
-
4
- .rtsee-sidenav {
5
- background-color: $sidenav-bg-color;
6
- height: 100%;
7
- position: relative;
8
- border-right: 1px solid $default-border-color;
9
-
10
- .rtsee-sidenav-toggle {
11
- position: absolute;
12
- top: 0;
13
- right: -$sidenav-toggle-width;
14
- height: 100%;
15
- width: $sidenav-toggle-width;
16
- border-left: 2px solid transparent;
17
-
18
- .rtsee-sidenav-toggle-button {
19
- display: flex;
20
- justify-content: center;
21
- align-items: center;
22
- position: absolute;
23
- top: 66px;
24
- left: -17px;
25
- border-radius: 50%;
26
- border: 1px solid $default-border-color;
27
- height: 30px;
28
- width: 30px;
29
- cursor: pointer;
30
- color: $primary-blue;
31
- background-color: $sidenav-bg-color;
32
- }
33
- }
34
-
35
- .rtsee-sidenav-header {
36
- overflow: hidden;
37
- position: relative;
38
- height: $rts-header-height;
39
- border-bottom: 1px solid #e8e8e8;
40
-
41
- .rtsee-site-logo {
42
- float: left;
43
- line-height: $rts-header-height;
44
- height: $rts-header-height;
45
- width: $sidenav-collapsed-width;
46
- text-align: center;
47
-
48
- .rtsee-home-link {
49
- text-decoration: none;
50
- color: $nav-font-color;
51
-
52
- .rtsee-site-logo-wrapper {
53
- display: inline-block;
54
- vertical-align: middle;
55
- }
56
-
57
- img {
58
- height: $dark-logo-height;
59
- width: $logo-height;
60
- vertical-align: middle;
61
- }
62
- }
63
-
64
-
65
- }
66
-
67
- .rtsee-sidenav-toggle {
68
- position: absolute;
69
- right: 0;
70
- top: 0;
71
- height: 100%;
72
- width: 70px;
73
- font-size: 23px;
74
- text-align: center;
75
- line-height: $rts-header-height;
76
- color: $icon-color;
77
- cursor: pointer;
78
-
79
- :hover {
80
- opacity: 0.6;
81
- }
82
- }
83
- }
84
-
85
- .rtsee-sidenav-body {
86
- overflow: auto;
87
- height: calc(100% - #{$rts-header-height});
88
-
89
- .rtsee-nav-items {
90
- list-style-type: none;
91
- padding: 0;
92
- margin: 0;
93
-
94
- .nav-icon-img {
95
- margin-top: -5px;
96
- }
97
- }
98
- }
99
-
100
- &.rtsee-sidenav-expanded {
101
- .rtsee-sidenav-body {
102
- .rtsee-nav-items {
103
- .rtsee-nav-item {
104
- padding-left: $nav-icon-block-width;
105
-
106
- .rtsee-nav-item-name {
107
- display: block;
108
- }
109
-
110
- .rtsee-nav-item-icon {
111
- position: absolute;
112
- height: $nav-item-height;
113
- width: $nav-icon-block-width;
114
- }
115
- }
116
- }
117
- }
118
-
119
- .rtsee-sidenav-toggle {
120
- cursor: w-resize;
121
- }
122
- }
123
- }
124
-
125
-