@rtsee/ngx 0.0.71 → 0.0.73

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.
@@ -1,20 +1,21 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, AfterViewInit, ElementRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef, OnDestroy, EventEmitter } from '@angular/core';
2
+ import { OnInit, AfterViewInit, ElementRef, ViewContainerRef, ComponentFactoryResolver, ChangeDetectorRef, OnDestroy } from '@angular/core';
3
3
  import { RTSeeConference, RTSeePeerConnection } from '@rtsee/conference';
4
4
  import { RTSeeMessenger, RTSeeMessengerSearch, RTSeeMessage, RTSeeChat, RTSeeChatMember } from '@rtsee/messenger';
5
- import { RTSeeEventsDashboard, RTSeeDashboardClientSession, RTSeeDashboardEvent, RTSeeDashboardClient } from '@rtsee/events-dashboard';
6
- import { RTSee, INavigationConfig, IRouteConfig } from '@rtsee/factory';
7
- import { RTSeePresentation, RTSeeStory, RTSeeStorySlide } from '@rtsee/presentation';
5
+ import { IPeer, IRTSeeCall } from '@rtsee/core';
8
6
  import { HttpClient } from '@angular/common/http';
9
7
  import { RTSeeAuth, RTSeeAuthConfiguration, IRtseeSignInRequestOptions, IRTSeeSignInResponse, IRtseeSignUpRequestOptions, IRTSeeSignUpResponse, AuthEndpointsKeys } from '@rtsee/auth';
10
8
  import { Observable, Subscription } from 'rxjs';
11
- import * as i43 from '@angular/forms';
12
- import { FormArray, FormGroup, FormControl, FormBuilder } from '@angular/forms';
13
9
  import * as i46 from '@angular/router';
14
10
  import { Router, ActivatedRoute } from '@angular/router';
15
- import { IRTSeeCall } from '@rtsee/core';
16
- import { IMessageThumbnail, RTSeeChatTypes } from '@rtsee/common';
11
+ import { RTSeeEventsDashboard, RTSeeDashboardClientSession, RTSeeDashboardEvent, RTSeeDashboardClient } from '@rtsee/events-dashboard';
12
+ import { RTSee, INavigationConfig, IRouteConfig } from '@rtsee/factory';
13
+ import { RTSeePresentation, RTSeeStory, RTSeeStorySlide } from '@rtsee/presentation';
14
+ import * as i43 from '@angular/forms';
15
+ import { FormArray, FormGroup, FormControl, FormBuilder } from '@angular/forms';
17
16
  import * as i42 from '@angular/common';
17
+ import { ViewportScroller } from '@angular/common';
18
+ import { IMessageThumbnail, RTSeeChatTypes } from '@rtsee/common';
18
19
  import * as i44 from 'ngx-autosize';
19
20
  import * as i45 from 'ngx-infinite-scroll';
20
21
  import * as i47 from 'ngx-captcha';
@@ -75,20 +76,55 @@ declare class RtseePeerComponent implements AfterViewInit {
75
76
  static ɵcmp: i0.ɵɵComponentDeclaration<RtseePeerComponent, "ngx-rtsee-peer", never, { "peer": { "alias": "peer"; "required": false; }; }, {}, never, never, true, never>;
76
77
  }
77
78
 
79
+ interface IRtseeForgotPasswordRequestOptions {
80
+ email: string;
81
+ }
82
+ interface IRtseeResetPasswordRequestOptions {
83
+ password: string;
84
+ passwordConfirm: string;
85
+ token: string;
86
+ }
87
+ interface IRTSeeForgotPasswordResponse {
88
+ success: boolean;
89
+ message: string;
90
+ }
91
+ interface IRTSeeResetPasswordResponse {
92
+ success: boolean;
93
+ message: string;
94
+ }
95
+ declare class RTSeeAuthService {
96
+ private http;
97
+ rtseeAuth: RTSeeAuth<any>;
98
+ authConfiguration: RTSeeAuthConfiguration;
99
+ constructor(http: HttpClient);
100
+ init(auth: RTSeeAuth<any>): void;
101
+ signIn(credentials: IRtseeSignInRequestOptions): Observable<IRTSeeSignInResponse>;
102
+ signUp(credentials: IRtseeSignUpRequestOptions): Observable<IRTSeeSignUpResponse>;
103
+ forgotPassword(credentials: IRtseeForgotPasswordRequestOptions): Observable<IRTSeeForgotPasswordResponse>;
104
+ resetPassword(credentials: IRtseeResetPasswordRequestOptions): Observable<IRTSeeResetPasswordResponse>;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<RTSeeAuthService, never>;
106
+ static ɵprov: i0.ɵɵInjectableDeclaration<RTSeeAuthService>;
107
+ }
108
+
78
109
  declare class ProfileComponent {
110
+ private authService;
111
+ private router;
112
+ authConfiguration: RTSeeAuthConfiguration;
79
113
  messenger: RTSeeMessenger;
114
+ peer?: IPeer;
115
+ constructor(authService: RTSeeAuthService, router: Router);
80
116
  call(): void;
81
117
  videoCall(): void;
118
+ logOut(): void;
119
+ protected readonly AuthEndpointsKeys: typeof AuthEndpointsKeys;
82
120
  static ɵfac: i0.ɵɵFactoryDeclaration<ProfileComponent, never>;
83
- static ɵcmp: i0.ɵɵComponentDeclaration<ProfileComponent, "rtsee-profile", never, { "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
121
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProfileComponent, "rtsee-profile", never, { "messenger": { "alias": "messenger"; "required": false; }; "peer": { "alias": "peer"; "required": false; }; }, {}, never, never, true, never>;
84
122
  }
85
123
 
86
124
  declare class MessengerComponent {
87
- isHeaderExpanded: boolean;
88
125
  messenger: RTSeeMessenger;
89
126
  constructor();
90
127
  onScroll(): void;
91
- onHeaderExpandToggled(value: boolean): void;
92
128
  static ɵfac: i0.ɵɵFactoryDeclaration<MessengerComponent, never>;
93
129
  static ɵcmp: i0.ɵɵComponentDeclaration<MessengerComponent, "rtsee-messenger", never, { "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
94
130
  }
@@ -99,14 +135,17 @@ declare class RtseeEventsDashboardComponent {
99
135
  static ɵcmp: i0.ɵɵComponentDeclaration<RtseeEventsDashboardComponent, "rtsee-events-dashboard", never, { "eventsDashboard": { "alias": "eventsDashboard"; "required": false; }; }, {}, never, never, true, never>;
100
136
  }
101
137
 
102
- declare class RTSeeContainerComponent {
138
+ declare class RTSeeContainerComponent implements OnInit {
139
+ private authService;
103
140
  rtsee: RTSee;
104
141
  navigationConfig: INavigationConfig<IRouteConfig>;
142
+ auth: RTSeeAuth<any>;
143
+ constructor(authService: RTSeeAuthService);
105
144
  isSidenavExpanded: boolean;
106
- isSidenavExpandededed: boolean;
107
145
  onSidenavToggleClicked(): void;
146
+ ngOnInit(): void;
108
147
  static ɵfac: i0.ɵɵFactoryDeclaration<RTSeeContainerComponent, never>;
109
- static ɵcmp: i0.ɵɵComponentDeclaration<RTSeeContainerComponent, "rtsee-container", never, { "rtsee": { "alias": "rtsee"; "required": false; }; "navigationConfig": { "alias": "navigationConfig"; "required": false; }; }, {}, never, ["*"], true, never>;
148
+ static ɵcmp: i0.ɵɵComponentDeclaration<RTSeeContainerComponent, "rtsee-container", never, { "rtsee": { "alias": "rtsee"; "required": false; }; "navigationConfig": { "alias": "navigationConfig"; "required": false; }; "auth": { "alias": "auth"; "required": false; }; }, {}, never, ["*"], true, never>;
110
149
  }
111
150
 
112
151
  declare class PresentationComponent {
@@ -116,36 +155,6 @@ declare class PresentationComponent {
116
155
  static ɵcmp: i0.ɵɵComponentDeclaration<PresentationComponent, "rtsee-presentation", never, { "presentation": { "alias": "presentation"; "required": false; }; }, {}, never, never, true, never>;
117
156
  }
118
157
 
119
- interface IRtseeForgotPasswordRequestOptions {
120
- email: string;
121
- }
122
- interface IRtseeResetPasswordRequestOptions {
123
- password: string;
124
- passwordConfirm: string;
125
- token: string;
126
- }
127
- interface IRTSeeForgotPasswordResponse {
128
- success: boolean;
129
- message: string;
130
- }
131
- interface IRTSeeResetPasswordResponse {
132
- success: boolean;
133
- message: string;
134
- }
135
- declare class RTSeeAuthService {
136
- private http;
137
- rtseeAuth: RTSeeAuth<any>;
138
- authConfiguration: RTSeeAuthConfiguration;
139
- constructor(http: HttpClient);
140
- init(auth: RTSeeAuth<any>): void;
141
- signIn(credentials: IRtseeSignInRequestOptions): Observable<IRTSeeSignInResponse>;
142
- signUp(credentials: IRtseeSignUpRequestOptions): Observable<IRTSeeSignUpResponse>;
143
- forgotPassword(credentials: IRtseeForgotPasswordRequestOptions): Observable<IRTSeeForgotPasswordResponse>;
144
- resetPassword(credentials: IRtseeResetPasswordRequestOptions): Observable<IRTSeeResetPasswordResponse>;
145
- static ɵfac: i0.ɵɵFactoryDeclaration<RTSeeAuthService, never>;
146
- static ɵprov: i0.ɵɵInjectableDeclaration<RTSeeAuthService>;
147
- }
148
-
149
158
  declare class RTSeeAuthComponent implements OnInit {
150
159
  authService: RTSeeAuthService;
151
160
  auth: RTSeeAuth<any>;
@@ -296,6 +305,7 @@ declare class EventThumbnailComponent implements OnInit, AfterViewInit {
296
305
  timeFormatService: TimeFormatHelperService;
297
306
  private cd;
298
307
  tooltip?: string;
308
+ timeInAgoFormat: string;
299
309
  event: RTSeeDashboardEvent;
300
310
  widgetHost: WidgetDirective;
301
311
  constructor(widgetsService: EventsWidgetsService, componentFactoryResolver: ComponentFactoryResolver, timeFormatService: TimeFormatHelperService, cd: ChangeDetectorRef);
@@ -434,11 +444,12 @@ declare class MessageComponent implements AfterViewInit {
434
444
 
435
445
  declare class MessagesListComponent implements AfterViewInit, OnDestroy, OnInit {
436
446
  private timeFormatService;
447
+ private scroller;
437
448
  bindScrollFunction: () => void;
438
449
  chat: RTSeeChat;
439
450
  messenger: RTSeeMessenger;
440
451
  scrollContainer: ElementRef<HTMLDivElement>;
441
- constructor(timeFormatService: TimeFormatHelperService);
452
+ constructor(timeFormatService: TimeFormatHelperService, scroller: ViewportScroller);
442
453
  ngOnInit(): void;
443
454
  ngAfterViewInit(): void;
444
455
  onMessageSent(): void;
@@ -465,7 +476,10 @@ declare class ChatInputComponent {
465
476
  sendMessageForm: FormGroup;
466
477
  messenger: RTSeeMessenger;
467
478
  chat: RTSeeChat;
479
+ chatInput: ElementRef<HTMLTextAreaElement>;
468
480
  sendMessage(): void;
481
+ onKeyUp(event: KeyboardEvent): void;
482
+ handleResize(): void;
469
483
  static ɵfac: i0.ɵɵFactoryDeclaration<ChatInputComponent, never>;
470
484
  static ɵcmp: i0.ɵɵComponentDeclaration<ChatInputComponent, "rtsee-chat-input", never, { "messenger": { "alias": "messenger"; "required": false; }; "chat": { "alias": "chat"; "required": false; }; }, {}, never, never, true, never>;
471
485
  }
@@ -487,13 +501,11 @@ declare class RtseeSoundbarComponent implements OnInit {
487
501
 
488
502
  declare class MessengerHeaderComponent {
489
503
  defaultImagesService: DefaultImagesService;
490
- expandToggled: EventEmitter<any>;
491
- isExpanded?: boolean;
492
504
  messenger: RTSeeMessenger;
493
505
  constructor(defaultImagesService: DefaultImagesService);
494
- toggleExpand(): void;
506
+ openProfile(id: string): void;
495
507
  static ɵfac: i0.ɵɵFactoryDeclaration<MessengerHeaderComponent, never>;
496
- static ɵcmp: i0.ɵɵComponentDeclaration<MessengerHeaderComponent, "rtsee-messenger-header", never, { "isExpanded": { "alias": "isExpanded"; "required": false; }; "messenger": { "alias": "messenger"; "required": false; }; }, { "expandToggled": "expandToggled"; }, never, never, true, never>;
508
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessengerHeaderComponent, "rtsee-messenger-header", never, { "messenger": { "alias": "messenger"; "required": false; }; }, {}, never, never, true, never>;
497
509
  }
498
510
 
499
511
  declare class ChatsListComponent implements OnInit {
@@ -90,7 +90,7 @@ $rts-new-user-avatar-d-sm: 40px;
90
90
  $rts-new-default-border-radius: 8px;
91
91
  $rts-new-border-radius-rounded: 12px;
92
92
 
93
- $rts-new-primary-color: #ea7b00;
93
+ $rts-new-primary-color: #3b82f7;
94
94
  $rts-new-active-bg-color-light: #feefe0;
95
95
  $rts-new-secondary-bg-color-light: #e8e9eb;
96
96
 
@@ -30,6 +30,10 @@
30
30
  display: flex;
31
31
  flex-direction: row;
32
32
  justify-content: space-around;
33
+
34
+ .rtsee-nav-item-hidden {
35
+ display: none;
36
+ }
33
37
  }
34
38
 
35
39
  &.rtsee-sidenav-expanded {
@@ -36,16 +36,28 @@
36
36
  .rtsee-messenger-container {
37
37
  display: block;
38
38
 
39
- .rtsee-messenger-header-container {
40
- position: fixed;
41
- top: 0;
42
- z-index: 1;
43
- }
39
+ .rtsee-messenger {
40
+ &.rtsee-messenger-header-expanded {
41
+ padding-top: 0;
42
+
43
+ .rtsee-messenger-header-container {
44
+ position: static;
45
+ height: 100%;
46
+ overflow: auto;
47
+ }
48
+ }
44
49
 
45
- .rtsee-chat-footer-container {
46
- bottom: $rts-bottom-nav-height;
47
- position: fixed;
48
- z-index: 1;
50
+ .rtsee-messenger-header-container {
51
+ position: fixed;
52
+ top: 0;
53
+ z-index: 1;
54
+ }
55
+
56
+ .rtsee-chat-footer-container {
57
+ bottom: $rts-bottom-nav-height;
58
+ position: fixed;
59
+ z-index: 1;
60
+ }
49
61
  }
50
62
  }
51
63
 
@@ -92,6 +104,7 @@
92
104
 
93
105
  .rtsee-shell-panel {
94
106
  display: none;
107
+ //padding-bottom: $rts-bottom-nav-height + $rts-offset-md;
95
108
  background-color: #fff;
96
109
  }
97
110
 
@@ -116,7 +129,6 @@
116
129
  .rtsee-presentation-container {
117
130
  display: none;
118
131
  height: 100%;
119
- overflow: auto;
120
132
  }
121
133
 
122
134
  @media screen and (min-width: $rts-break-md) {
@@ -142,6 +154,13 @@
142
154
  position: fixed;
143
155
  right: 0;
144
156
  top: 0;
157
+ padding-bottom: 0;
158
+ padding-top: $video-container-height;
159
+
160
+ .rtsee-shell-panel-inner {
161
+ overflow: auto;
162
+ height: 100%;
163
+ }
145
164
  }
146
165
 
147
166
  .rtsee-conference-container {
@@ -176,14 +195,16 @@
176
195
  }
177
196
 
178
197
  .rtsee-messenger-container {
179
- .rtsee-messenger-header-container {
180
- top: 0;
181
- position: absolute;
182
- }
198
+ .rtsee-messenger {
199
+ .rtsee-messenger-header-container {
200
+ top: 0;
201
+ position: absolute;
202
+ }
183
203
 
184
- .rtsee-chat-footer-container {
185
- bottom: 0;
186
- position: absolute;
204
+ .rtsee-chat-footer-container {
205
+ bottom: 0;
206
+ position: absolute;
207
+ }
187
208
  }
188
209
  }
189
210
  }
@@ -2,50 +2,48 @@
2
2
  @import "../common-variables";
3
3
 
4
4
  .rtsee-chat-input {
5
- height: 100%;
6
5
  padding-right: $rtsee-chat-input-height;
7
6
  position: relative;
8
7
  overflow: hidden;
9
8
 
10
9
  .rtsee-send-message {
11
- height: 100%;
12
- overflow: auto;
13
- border-radius: $rts-new-border-radius-rounded;
14
-
15
10
  &::-webkit-scrollbar {
16
11
  display: none;
17
12
  }
18
13
 
19
14
  .rtsee-chat-input-form {
20
- height: 100%;
21
15
  overflow: hidden;
22
- }
16
+ line-height: 0;
23
17
 
24
- .rtsee-chat-input-field {
25
- width: 100%;
26
- max-height: $rtsee-chat-input-height;
27
- border: none;
28
- outline: none;
29
- resize: none;
30
- overflow: auto;
31
- padding: $rts-offset-sm;
32
-
33
- &::-webkit-input-placeholder {
34
- font-family: "Work Sans", sans-serif;;
18
+ .rtsee-chat-input-field {
19
+ width: 100%;
20
+ max-height: 130px;
21
+ border: none;
22
+ outline: none;
35
23
  }
36
24
  }
37
25
  }
38
26
 
39
27
  .rtsee-send-message-button {
40
28
  position: absolute;
29
+ height: 35px;
30
+ line-height: 0;
41
31
  right: 0;
42
- top: 0;
43
- height: 100%;
32
+ bottom: 0;
44
33
  width: $rtsee-chat-input-height;
45
34
  background: none;
46
35
  border: none;
47
36
  outline: none;
48
37
  font-size: 27px;
49
38
  color: $rts-new-primary-color;
39
+ cursor: pointer;
40
+
41
+ span {
42
+ line-height: 35px;
43
+ }
44
+
45
+ &:hover {
46
+ opacity: 0.7;
47
+ }
50
48
  }
51
49
  }
@@ -7,7 +7,7 @@ $last-message-text-color: #707579;
7
7
  .rtsee-chat-thumbnail {
8
8
  position: relative;
9
9
  height: $rts-user-avatar-d-sm + $rts-offset-sm * 2;
10
- padding: $rts-new-offset-sm $rts-new-offset-sm $rts-new-offset-sm $rts-new-offset-sm * 2 + $rts-new-user-avatar-d-sm;
10
+ padding: $rts-new-offset-xsm $rts-new-offset-xsm $rts-new-offset-sm $rts-new-offset-sm * 2 + $rts-new-user-avatar-d-sm;
11
11
  cursor: pointer;
12
12
 
13
13
  -webkit-touch-callout: none;
@@ -47,8 +47,6 @@ $last-message-text-color: #707579;
47
47
  white-space: nowrap;
48
48
  overflow: hidden;
49
49
  text-overflow: ellipsis;
50
-
51
-
52
50
  padding-right: $rts-message-status-width + $rts-offset-sm;
53
51
 
54
52
  .rtsee-chat-thumbnail-status {
@@ -4,7 +4,6 @@
4
4
 
5
5
  .rtsee-chat {
6
6
  height: 100%;
7
- padding-bottom: $rtsee-chat-input-height + $rts-offset-sm + $rts-offset-sm;
8
7
  background: $rts-new-secondary-bg-color-light;
9
8
 
10
9
  .rtsee-chat-body-container {
@@ -19,9 +18,8 @@
19
18
  width: 100%;
20
19
 
21
20
  .rtsee-chat-footer-container-inner {
22
- height: $rtsee-chat-input-height;
23
21
  background: $rts-main-bg-color-light;
24
- border-radius: $rts-new-border-radius-rounded;
22
+ border-radius: 4px;
25
23
  width: 100%;
26
24
  }
27
25
  }
@@ -9,4 +9,5 @@
9
9
  @import "./message-time-and-status";
10
10
  @import "./messenger-search";
11
11
  @import "./call-widget";
12
+ @import "./profile";
12
13
 
@@ -14,6 +14,10 @@ $messenger-date-background-color: #FFFFFF7F;
14
14
  &.rtsee-messenger-message-wrapper-consecutive {
15
15
  margin-bottom: 4px;
16
16
  }
17
+
18
+ &:last-child {
19
+ margin-bottom: $rts-bottom-nav-height;
20
+ }
17
21
  }
18
22
 
19
23
  .rtsee-messenger-message-date {
@@ -32,4 +36,11 @@ $messenger-date-background-color: #FFFFFF7F;
32
36
  }
33
37
  }
34
38
 
39
+ @media screen and (min-width: $rts-break-md) {
40
+ .rtsee-messenger-message-wrapper {
41
+ &:last-child {
42
+ margin-bottom: 0;
43
+ }
44
+ }
45
+ }
35
46
  }