@rtsee/ngx 0.0.59 → 0.0.61

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 (172) hide show
  1. package/dist/ngx/fesm2022/rtsee-ngx.mjs +1689 -0
  2. package/dist/ngx/fesm2022/rtsee-ngx.mjs.map +1 -0
  3. package/dist/ngx/index.d.ts +538 -0
  4. package/package.json +21 -18
  5. package/.editorconfig +0 -16
  6. package/CHANGELOG.md +0 -120
  7. package/angular.json +0 -67
  8. package/jest.config.ts +0 -9
  9. package/projects/ngx/ng-package.json +0 -8
  10. package/projects/ngx/package.json +0 -20
  11. package/projects/ngx/src/lib/common/components/preloader/preloader.component.html +0 -5
  12. package/projects/ngx/src/lib/common/components/preloader/preloader.component.ts +0 -30
  13. package/projects/ngx/src/lib/common/interfaces/index.ts +0 -1
  14. package/projects/ngx/src/lib/common/interfaces/server-errors.ts +0 -5
  15. package/projects/ngx/src/lib/components/constans/common.const.ts +0 -8
  16. package/projects/ngx/src/lib/components/enums/form.enum.ts +0 -8
  17. package/projects/ngx/src/lib/components/rtsee/rtsee-conference.component.html +0 -70
  18. package/projects/ngx/src/lib/components/rtsee/rtsee-conference.component.ts +0 -35
  19. package/projects/ngx/src/lib/components/rtsee/rtsee-controls/rtsee-controls.component.html +0 -54
  20. package/projects/ngx/src/lib/components/rtsee/rtsee-controls/rtsee-controls.component.scss +0 -70
  21. package/projects/ngx/src/lib/components/rtsee/rtsee-controls/rtsee-controls.component.ts +0 -24
  22. package/projects/ngx/src/lib/components/rtsee-auth/auth/auth.component.html +0 -16
  23. package/projects/ngx/src/lib/components/rtsee-auth/auth/auth.component.ts +0 -48
  24. package/projects/ngx/src/lib/components/rtsee-auth/forgot-password/forgot-password.component.html +0 -35
  25. package/projects/ngx/src/lib/components/rtsee-auth/forgot-password/forgot-password.component.ts +0 -42
  26. package/projects/ngx/src/lib/components/rtsee-auth/reset-password/reset-password.component.html +0 -43
  27. package/projects/ngx/src/lib/components/rtsee-auth/reset-password/reset-password.component.ts +0 -83
  28. package/projects/ngx/src/lib/components/rtsee-auth/services/auth.service.ts +0 -40
  29. package/projects/ngx/src/lib/components/rtsee-auth/services/utils.service.ts +0 -20
  30. package/projects/ngx/src/lib/components/rtsee-auth/sign-in/sign-in.component.html +0 -84
  31. package/projects/ngx/src/lib/components/rtsee-auth/sign-in/sign-in.component.ts +0 -120
  32. package/projects/ngx/src/lib/components/rtsee-auth/sign-up/sign-up.component.html +0 -51
  33. package/projects/ngx/src/lib/components/rtsee-auth/sign-up/sign-up.component.ts +0 -67
  34. package/projects/ngx/src/lib/components/rtsee-auth/types/auth-form.type.ts +0 -36
  35. package/projects/ngx/src/lib/components/rtsee-auth/validators/form-fields-validators.ts +0 -27
  36. package/projects/ngx/src/lib/components/rtsee-auth/vendors/vendors.component.html +0 -1
  37. package/projects/ngx/src/lib/components/rtsee-auth/vendors/vendors.component.ts +0 -10
  38. package/projects/ngx/src/lib/components/rtsee-container/rtsee-container.component.html +0 -46
  39. package/projects/ngx/src/lib/components/rtsee-container/rtsee-container.component.ts +0 -34
  40. package/projects/ngx/src/lib/components/rtsee-container/rtsee-nav/rtsee-nav.component.html +0 -25
  41. package/projects/ngx/src/lib/components/rtsee-container/rtsee-nav/rtsee-nav.component.ts +0 -26
  42. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/event-thumbnail/event-thumbnail.component.html +0 -20
  43. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/event-thumbnail/event-thumbnail.component.ts +0 -89
  44. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client/rtsee-events-dashboard-client.component.html +0 -1
  45. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client/rtsee-events-dashboard-client.component.ts +0 -8
  46. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client-thumbnail/rtsee-events-dashboard-client-thumbnail.component.html +0 -25
  47. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client-thumbnail/rtsee-events-dashboard-client-thumbnail.component.ts +0 -40
  48. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-session/rtsee-events-dashboard-session.component.html +0 -32
  49. package/projects/ngx/src/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-session/rtsee-events-dashboard-session.component.ts +0 -21
  50. package/projects/ngx/src/lib/components/rtsee-events-dashboard/rtsee-events-dashboard.component.html +0 -12
  51. package/projects/ngx/src/lib/components/rtsee-events-dashboard/rtsee-events-dashboard.component.ts +0 -19
  52. package/projects/ngx/src/lib/components/rtsee-messenger/chat/chat.component.html +0 -10
  53. package/projects/ngx/src/lib/components/rtsee-messenger/chat/chat.component.ts +0 -18
  54. package/projects/ngx/src/lib/components/rtsee-messenger/chat-input/chat-input.component.html +0 -20
  55. package/projects/ngx/src/lib/components/rtsee-messenger/chat-input/chat-input.component.ts +0 -31
  56. package/projects/ngx/src/lib/components/rtsee-messenger/chat-thumbnail/chat-thumbnail.component.html +0 -28
  57. package/projects/ngx/src/lib/components/rtsee-messenger/chat-thumbnail/chat-thumbnail.component.ts +0 -27
  58. package/projects/ngx/src/lib/components/rtsee-messenger/chats-list/chats-list.component.html +0 -6
  59. package/projects/ngx/src/lib/components/rtsee-messenger/chats-list/chats-list.component.ts +0 -22
  60. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/contacts-multiselect/contacts-multiselect.component.html +0 -3
  61. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/contacts-multiselect/contacts-multiselect.component.scss +0 -0
  62. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/contacts-multiselect/contacts-multiselect.component.ts +0 -18
  63. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/manage-chat/manage-chat.component.html +0 -4
  64. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/manage-chat/manage-chat.component.scss +0 -0
  65. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/manage-chat/manage-chat.component.ts +0 -18
  66. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/models/MainMenuState.ts +0 -11
  67. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/search/search.component.html +0 -25
  68. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/components/search/search.component.ts +0 -36
  69. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/main-menu.component.html +0 -32
  70. package/projects/ngx/src/lib/components/rtsee-messenger/main-menu/main-menu.component.ts +0 -41
  71. package/projects/ngx/src/lib/components/rtsee-messenger/message/components/message-time-and-status/message-time-and-status.component.html +0 -9
  72. package/projects/ngx/src/lib/components/rtsee-messenger/message/components/message-time-and-status/message-time-and-status.component.ts +0 -23
  73. package/projects/ngx/src/lib/components/rtsee-messenger/message/message.component.html +0 -17
  74. package/projects/ngx/src/lib/components/rtsee-messenger/message/message.component.ts +0 -64
  75. package/projects/ngx/src/lib/components/rtsee-messenger/message-widgets/call-widget/call-widget.component.html +0 -10
  76. package/projects/ngx/src/lib/components/rtsee-messenger/message-widgets/call-widget/call-widget.component.scss +0 -1
  77. package/projects/ngx/src/lib/components/rtsee-messenger/message-widgets/call-widget/call-widget.component.ts +0 -36
  78. package/projects/ngx/src/lib/components/rtsee-messenger/messages-list/messages-list.component.html +0 -18
  79. package/projects/ngx/src/lib/components/rtsee-messenger/messages-list/messages-list.component.ts +0 -91
  80. package/projects/ngx/src/lib/components/rtsee-messenger/messenger/messenger.component.html +0 -31
  81. package/projects/ngx/src/lib/components/rtsee-messenger/messenger/messenger.component.ts +0 -45
  82. package/projects/ngx/src/lib/components/rtsee-messenger/messenger-header/messenger-header.component.html +0 -57
  83. package/projects/ngx/src/lib/components/rtsee-messenger/messenger-header/messenger-header.component.ts +0 -30
  84. package/projects/ngx/src/lib/components/rtsee-messenger/profile/profile.component.html +0 -20
  85. package/projects/ngx/src/lib/components/rtsee-messenger/profile/profile.component.ts +0 -25
  86. package/projects/ngx/src/lib/components/rtsee-peer/rtsee-peer.component.html +0 -28
  87. package/projects/ngx/src/lib/components/rtsee-peer/rtsee-peer.component.ts +0 -43
  88. package/projects/ngx/src/lib/components/rtsee-peers-list/rtsee-peers-list.component.html +0 -1
  89. package/projects/ngx/src/lib/components/rtsee-peers-list/rtsee-peers-list.component.scss +0 -0
  90. package/projects/ngx/src/lib/components/rtsee-peers-list/rtsee-peers-list.component.ts +0 -9
  91. package/projects/ngx/src/lib/components/rtsee-presentation/presentation/presentation.component.html +0 -25
  92. package/projects/ngx/src/lib/components/rtsee-presentation/presentation/presentation.component.ts +0 -24
  93. package/projects/ngx/src/lib/components/rtsee-presentation/presentation-header/presentation-header.component.html +0 -14
  94. package/projects/ngx/src/lib/components/rtsee-presentation/presentation-header/presentation-header.component.ts +0 -15
  95. package/projects/ngx/src/lib/components/rtsee-presentation/slide/slide.component.html +0 -33
  96. package/projects/ngx/src/lib/components/rtsee-presentation/slide/slide.component.ts +0 -26
  97. package/projects/ngx/src/lib/components/rtsee-presentation/story-player/story-player.component.html +0 -10
  98. package/projects/ngx/src/lib/components/rtsee-presentation/story-player/story-player.component.ts +0 -22
  99. package/projects/ngx/src/lib/components/rtsee-presentation/story-thumbnail/story-thumbnail.component.html +0 -15
  100. package/projects/ngx/src/lib/components/rtsee-presentation/story-thumbnail/story-thumbnail.component.scss +0 -0
  101. package/projects/ngx/src/lib/components/rtsee-presentation/story-thumbnail/story-thumbnail.component.ts +0 -19
  102. package/projects/ngx/src/lib/components/rtsee-settings/rtsee-settings.component.html +0 -44
  103. package/projects/ngx/src/lib/components/rtsee-settings/rtsee-settings.component.scss +0 -30
  104. package/projects/ngx/src/lib/components/rtsee-settings/rtsee-settings.component.ts +0 -57
  105. package/projects/ngx/src/lib/components/rtsee-soundbar/rtsee-soundbar.component.html +0 -19
  106. package/projects/ngx/src/lib/components/rtsee-soundbar/rtsee-soundbar.component.scss +0 -56
  107. package/projects/ngx/src/lib/components/rtsee-soundbar/rtsee-soundbar.component.ts +0 -66
  108. package/projects/ngx/src/lib/directives/shave.directive.ts +0 -15
  109. package/projects/ngx/src/lib/directives/widget.directive.ts +0 -9
  110. package/projects/ngx/src/lib/ngx.module.ts +0 -127
  111. package/projects/ngx/src/lib/ngx.service.spec.ts +0 -16
  112. package/projects/ngx/src/lib/ngx.service.ts +0 -11
  113. package/projects/ngx/src/lib/services/default-images.service.ts +0 -8
  114. package/projects/ngx/src/lib/services/events-widgets.service.ts +0 -19
  115. package/projects/ngx/src/lib/services/message-widgets.service.ts +0 -26
  116. package/projects/ngx/src/lib/services/time-format-helper.service.ts +0 -111
  117. package/projects/ngx/src/public-api.ts +0 -16
  118. package/projects/ngx/tsconfig.lib.json +0 -14
  119. package/projects/ngx/tsconfig.lib.prod.json +0 -10
  120. package/projects/ngx/tsconfig.spec.json +0 -10
  121. package/projects/ngx/yarn.lock +0 -8
  122. package/scss-bundle.config.json +0 -6
  123. package/setup-jest.ts +0 -1
  124. package/tsconfig.eslint.json +0 -4
  125. package/tsconfig.json +0 -35
  126. package/tsconfig.spec.json +0 -8
  127. /package/{projects → dist}/ngx/README.md +0 -0
  128. /package/{projects → dist}/ngx/src/lib/theme/auth/auth-container.scss +0 -0
  129. /package/{projects → dist}/ngx/src/lib/theme/auth/index.scss +0 -0
  130. /package/{projects → dist}/ngx/src/lib/theme/auth/variables.scss +0 -0
  131. /package/{projects → dist}/ngx/src/lib/theme/common-components/preloader.scss +0 -0
  132. /package/{projects → dist}/ngx/src/lib/theme/common-variables.scss +0 -0
  133. /package/{projects → dist}/ngx/src/lib/theme/common.scss +0 -0
  134. /package/{projects → dist}/ngx/src/lib/theme/containers/index.scss +0 -0
  135. /package/{projects → dist}/ngx/src/lib/theme/containers/nav-item.scss +0 -0
  136. /package/{projects → dist}/ngx/src/lib/theme/containers/nav.scss +0 -0
  137. /package/{projects → dist}/ngx/src/lib/theme/containers/shell.scss +0 -0
  138. /package/{projects → dist}/ngx/src/lib/theme/containers/variables.scss +0 -0
  139. /package/{projects → dist}/ngx/src/lib/theme/events-manager/client-thumbnail.scss +0 -0
  140. /package/{projects → dist}/ngx/src/lib/theme/events-manager/event-thumbnail.scss +0 -0
  141. /package/{projects → dist}/ngx/src/lib/theme/events-manager/events-dashboard-session.scss +0 -0
  142. /package/{projects → dist}/ngx/src/lib/theme/events-manager/events-dashboard.scss +0 -0
  143. /package/{projects → dist}/ngx/src/lib/theme/events-manager/events-manager.scss +0 -0
  144. /package/{projects → dist}/ngx/src/lib/theme/events-manager/index.scss +0 -0
  145. /package/{projects → dist}/ngx/src/lib/theme/events-manager.scss +0 -0
  146. /package/{projects → dist}/ngx/src/lib/theme/forms/common.scss +0 -0
  147. /package/{projects → dist}/ngx/src/lib/theme/forms/index.scss +0 -0
  148. /package/{projects → dist}/ngx/src/lib/theme/forms/variables.scss +0 -0
  149. /package/{projects → dist}/ngx/src/lib/theme/general.scss +0 -0
  150. /package/{projects → dist}/ngx/src/lib/theme/messenger/call-widget.scss +0 -0
  151. /package/{projects → dist}/ngx/src/lib/theme/messenger/chat-input.scss +0 -0
  152. /package/{projects → dist}/ngx/src/lib/theme/messenger/chat-thumbnail.scss +0 -0
  153. /package/{projects → dist}/ngx/src/lib/theme/messenger/chat.scss +0 -0
  154. /package/{projects → dist}/ngx/src/lib/theme/messenger/chats-list.scss +0 -0
  155. /package/{projects → dist}/ngx/src/lib/theme/messenger/index.scss +0 -0
  156. /package/{projects → dist}/ngx/src/lib/theme/messenger/message-time-and-status.scss +0 -0
  157. /package/{projects → dist}/ngx/src/lib/theme/messenger/message.scss +0 -0
  158. /package/{projects → dist}/ngx/src/lib/theme/messenger/messages-list.scss +0 -0
  159. /package/{projects → dist}/ngx/src/lib/theme/messenger/messenger-header.scss +0 -0
  160. /package/{projects → dist}/ngx/src/lib/theme/messenger/messenger-search.scss +0 -0
  161. /package/{projects → dist}/ngx/src/lib/theme/messenger/messenger.scss +0 -0
  162. /package/{projects → dist}/ngx/src/lib/theme/messenger/variables.scss +0 -0
  163. /package/{projects → dist}/ngx/src/lib/theme/presentation/index.scss +0 -0
  164. /package/{projects → dist}/ngx/src/lib/theme/presentation/slide.scss +0 -0
  165. /package/{projects → dist}/ngx/src/lib/theme/presentation/story-player.scss +0 -0
  166. /package/{projects → dist}/ngx/src/lib/theme/presentation/story-thumbnail.scss +0 -0
  167. /package/{projects → dist}/ngx/src/lib/theme/presentation/variables.scss +0 -0
  168. /package/{projects → dist}/ngx/src/lib/theme/styles.scss +0 -0
  169. /package/{projects → dist}/ngx/src/lib/theme/video-chat/index.scss +0 -0
  170. /package/{projects → dist}/ngx/src/lib/theme/video-chat/video-chat.scss +0 -0
  171. /package/{projects → dist}/ngx/src/lib/theme/video-chat/video-peer.scss +0 -0
  172. /package/{projects → dist}/ngx/src/lib/theme/video-chat.scss +0 -0
@@ -1,43 +0,0 @@
1
- import {
2
- AfterViewInit,
3
- Component,
4
- ElementRef,
5
- Input,
6
- ViewChild,
7
- } from '@angular/core';
8
- import { RTSeePeerConnection } from '@rtsee/conference';
9
- import {NgClass, NgIf} from "@angular/common";
10
- import {RtseeSoundbarComponent} from "../rtsee-soundbar/rtsee-soundbar.component";
11
-
12
- @Component({
13
- selector: 'ngx-rtsee-peer',
14
- templateUrl: './rtsee-peer.component.html',
15
- imports: [
16
- NgClass,
17
- NgIf,
18
- RtseeSoundbarComponent
19
- ],
20
- standalone: true
21
- })
22
- export class RtseePeerComponent implements AfterViewInit {
23
- intervalLength: number;
24
- noiceLevel: number;
25
-
26
- @ViewChild('audioOutput') audioOutput?: ElementRef;
27
- @ViewChild('videoOutput') videoOutput?: ElementRef;
28
- @Input() peer!: RTSeePeerConnection;
29
-
30
- constructor() {
31
- this.intervalLength = 1000;
32
- this.noiceLevel = 0;
33
- }
34
-
35
- ngAfterViewInit(): void {
36
- if (!this.audioOutput) {
37
- return;
38
- }
39
- this.peer.setAudioOutputElement(
40
- this.audioOutput.nativeElement as HTMLAudioElement,
41
- );
42
- }
43
- }
@@ -1 +0,0 @@
1
- <p>rtsee-peers-list works!</p>
@@ -1,9 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'ngx-rtsee-peers-list',
5
- templateUrl: './rtsee-peers-list.component.html',
6
- styleUrls: ['./rtsee-peers-list.component.scss'],
7
- standalone: true
8
- })
9
- export class RtseePeersListComponent {}
@@ -1,25 +0,0 @@
1
- <div class="rtsee-presentation">
2
- <div class="rtsee-presentation-header-block">
3
- <rtsee-presentation-header [presentation]="presentation"
4
- ></rtsee-presentation-header>
5
- </div>
6
- @if (!presentation.activeStory) {
7
- <div class="rtsee-presentation-stories-list">
8
- @for (story of presentation.stories; track story.id) {
9
- <div class="rtsee-presentation-story-thumbnail-container"
10
- (click)="presentation.setActiveStory(story)"
11
- >
12
- <rtsee-story-thumbnail
13
- [story]="story"
14
- ></rtsee-story-thumbnail>
15
- </div>
16
- }
17
- </div>
18
- }
19
- @if (presentation.activeStory) {
20
- <div class="rtsee-presentation-story-viewer-container">
21
- <rtsee-story-player [story]="presentation.activeStory"
22
- ></rtsee-story-player>
23
- </div>
24
- }
25
- </div>
@@ -1,24 +0,0 @@
1
- import {Component, Input} from '@angular/core';
2
- import { RTSeePresentation } from "@rtsee/presentation";
3
- import {PresentationHeaderComponent} from "../presentation-header/presentation-header.component";
4
- import {StoryThumbnailComponent} from "../story-thumbnail/story-thumbnail.component";
5
- import {StoryPlayerComponent} from "../story-player/story-player.component";
6
-
7
- @Component({
8
- selector: 'rtsee-presentation',
9
- templateUrl: './presentation.component.html',
10
- imports: [
11
- PresentationHeaderComponent,
12
- StoryThumbnailComponent,
13
- StoryPlayerComponent
14
- ],
15
- standalone: true
16
- })
17
- export class PresentationComponent {
18
- @Input() presentation!: RTSeePresentation;
19
-
20
- constructor() {}
21
-
22
-
23
-
24
- }
@@ -1,14 +0,0 @@
1
- <div class="rtsee-presentation-header">
2
- <div class="rtsee-presentation-room-block">
3
- <div class="rtsee-presentation-active-room" *ngIf="presentation.activeRoom">
4
- <p>{{presentation.activeRoom.id}}</p>
5
- <button (click)="presentation.emitJoinRoomCallEvent()">Join Video Call</button>
6
- </div>
7
- </div>
8
- <div class="rtsee-story-info" *ngIf="presentation.activeStory">
9
- <p>{{presentation.activeStory.name}}</p>
10
- <span class="rtsee-story-thumbnail-info-time-icon material-icons-outlined"
11
- (click)="presentation.disableActiveStory()"
12
- >close</span>
13
- </div>
14
- </div>
@@ -1,15 +0,0 @@
1
- import {Component, Input} from '@angular/core';
2
- import {RTSeePresentation} from "@rtsee/presentation";
3
- import {NgIf} from "@angular/common";
4
-
5
- @Component({
6
- selector: 'rtsee-presentation-header',
7
- templateUrl: './presentation-header.component.html',
8
- imports: [
9
- NgIf
10
- ],
11
- standalone: true
12
- })
13
- export class PresentationHeaderComponent {
14
- @Input() public presentation!: RTSeePresentation;
15
- }
@@ -1,33 +0,0 @@
1
- <div class="rtsee-presentation-slide">
2
- @if (slide.widget) {
3
- <ng-template widgetHost></ng-template>
4
- }
5
- <div class="rtsee-presentation-slide-default">
6
- @if (slide.imageUrl) {
7
- <div class="rtsee-presentation-slide-image-container"
8
- [ngStyle]="{'background-image': 'url(' + slide.imageUrl + ')'}"
9
- >
10
- </div>
11
- }
12
- <div class="rtsee-presentation-slide-text">
13
- <p>{{slide.text}}</p>
14
- </div>
15
- <div class="rtsee-presentation-slide-controls">
16
- @if (story.activeSlideNumber !== 1) {
17
- <button class="slide-navigation-btn navigation-prev"
18
- (click)="slideRewindClicked(false)"
19
- >
20
- <span class="rtsee-story-thumbnail-info-time-icon material-icons-outlined">arrow_back_ios</span>
21
- </button>
22
- }
23
- @if (story.activeSlideNumber !== this.story.totalSlides) {
24
- <button class="slide-navigation-btn navigation-next"
25
- (click)="slideRewindClicked(true)"
26
- >
27
- <span class="rtsee-story-thumbnail-info-time-icon material-icons-outlined"
28
- >arrow_forward_ios</span>
29
- </button>
30
- }
31
- </div>
32
- </div>
33
- </div>
@@ -1,26 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import {RTSeeStory, RTSeeStorySlide} from "@rtsee/presentation";
3
- import { NgStyle } from "@angular/common";
4
- import {WidgetDirective} from "../../../directives/widget.directive";
5
-
6
- @Component({
7
- selector: 'rtsee-slide',
8
- templateUrl: './slide.component.html',
9
- imports: [
10
- NgStyle,
11
- WidgetDirective
12
- ],
13
- standalone: true
14
- })
15
- export class SlideComponent {
16
- @Input() story!: RTSeeStory;
17
- @Input() slide!: RTSeeStorySlide;
18
-
19
- slideRewindClicked(forward: boolean) {
20
- if (forward) {
21
- this.story.nextSlide();
22
- } else {
23
- this.story.previousSlide();
24
- }
25
- }
26
- }
@@ -1,10 +0,0 @@
1
- <div class="rtsee-story-player">
2
- <div class="rtsee-story-player-slider">
3
- <div class="story-player-slide-container"
4
- *ngFor="let slide of story.slides"
5
- [ngClass]="{'story-player-slide-active': slide.isActive}"
6
- >
7
- <rtsee-slide [slide]="slide" [story]="story"></rtsee-slide>
8
- </div>
9
- </div>
10
- </div>
@@ -1,22 +0,0 @@
1
- import { Component, Input, OnInit } from '@angular/core';
2
- import {RTSeeStory} from "@rtsee/presentation";
3
- import {NgClass, NgForOf} from "@angular/common";
4
- import {SlideComponent} from "../slide/slide.component";
5
-
6
- @Component({
7
- selector: 'rtsee-story-player',
8
- templateUrl: './story-player.component.html',
9
- imports: [
10
- NgForOf,
11
- NgClass,
12
- SlideComponent
13
- ],
14
- standalone: true
15
- })
16
- export class StoryPlayerComponent implements OnInit {
17
- @Input() story!: RTSeeStory;
18
-
19
- ngOnInit() {
20
- console.log('Story Player: Story = ', this.story);
21
- }
22
- }
@@ -1,15 +0,0 @@
1
- <div class="rtsee-story-thumbnail">
2
- <div class="rtsee-story-thumbnail-image-container"
3
- [ngStyle]="{'background-image': 'url(' + story.imageUrl + ')'}"
4
- >
5
- </div>
6
- <div class="rtsee-story-thumbnail-body-container">
7
- <div class="rtsee-story-thumbnail-title-container">
8
- <h4 class="rtsee-story-thumbnail-title">{{story.name}}</h4>
9
- </div>
10
- <div class="rtsee-story-thumbnail-info-container" *ngIf="story.averageReadTime">
11
- <span class="rtsee-story-thumbnail-info-time-icon material-icons-outlined">schedule</span>
12
- <span class="rtsee-story-thumbnail-info-read-time">{{ Math.ceil(story.averageReadTime / 60) }} хв</span>
13
- </div>
14
- </div>
15
- </div>
@@ -1,19 +0,0 @@
1
- import {Component, Input} from '@angular/core';
2
- import {RTSeeStory} from "@rtsee/presentation";
3
- import {NgIf, NgStyle} from "@angular/common";
4
-
5
- @Component({
6
- selector: 'rtsee-story-thumbnail',
7
- templateUrl: './story-thumbnail.component.html',
8
- styleUrls: ['./story-thumbnail.component.scss'],
9
- imports: [
10
- NgStyle,
11
- NgIf
12
- ],
13
- standalone: true
14
- })
15
- export class StoryThumbnailComponent {
16
- @Input() story!: RTSeeStory;
17
-
18
- protected readonly Math = Math;
19
- }
@@ -1,44 +0,0 @@
1
- <div class="rtsee-settings" [ngClass]="{'rtsee-full-screen-settings' : fullScreenMode}">
2
- <div class="rtsee-devices">
3
- <div class="rtsee-device-select-wrapper">
4
- <label class="rtsee-select-label" for="audio-input">Audio Input:</label>
5
- <select (click)="refreshSelectOptions()"
6
- (ngModelChange)="audioInputChanged()"
7
- [(ngModel)]="audioInputDeviceId"
8
- class="rtsee-select"
9
- id="audio-input"
10
- >
11
- <option *ngFor="let device of rtSee.audioInputDevices"
12
- [value]="device.deviceId">
13
- {{device.label}}
14
- </option>
15
- </select>
16
- </div>
17
- <div class="rtsee-device-select-wrapper">
18
- <label class="rtsee-select-label" for="audio-output">Audio Output:</label>
19
- <select (click)="refreshSelectOptions()"
20
- (ngModelChange)="audioOutputChanged()"
21
- [(ngModel)]="audioOutputDeviceId"
22
- class="rtsee-select"
23
- id="audio-output"
24
- >
25
- <option *ngFor="let device of rtSee.audioOutputDevices" [value]="device.deviceId" >
26
- {{device.label}}
27
- </option>
28
- </select>
29
- </div>
30
- <div class="rtsee-device-select-wrapper">
31
- <label class="rtsee-select-label" for="video-input">Video Input:</label>
32
- <select (click)="refreshSelectOptions()"
33
- (ngModelChange)="videoInputChanged()"
34
- [(ngModel)]="videoInputDeviceId"
35
- class="rtsee-select"
36
- id="video-input"
37
- >
38
- <option *ngFor="let device of rtSee.videoInputDevices" [value]="device.deviceId">
39
- {{device.label}}
40
- </option>
41
- </select>
42
- </div>
43
- </div>
44
- </div>
@@ -1,30 +0,0 @@
1
- $video-container-height: 240px;
2
- $container-offset: 16px;
3
- $container-inner-offset: 8px;
4
- $controls-panel-height: 60px;
5
-
6
- .rtsee-settings {
7
- box-sizing: border-box;
8
- background-color: #404040;
9
- border-bottom: 1px solid;
10
- max-height: $video-container-height - $controls-panel-height;
11
- padding: $container-offset 0;
12
- overflow: auto;
13
- color: #ffffff;
14
-
15
-
16
- .rtsee-device-select-wrapper {
17
- padding: 0 10px;
18
-
19
- .rtsee-select-label {
20
- font-family: monospace;
21
- display: inline-block;
22
- margin: $container-inner-offset;
23
- }
24
- }
25
-
26
- &.rtsee-full-screen-settings {
27
- max-height: unset;
28
- overflow: unset;
29
- }
30
- }
@@ -1,57 +0,0 @@
1
- import { Component, Input, OnInit } from '@angular/core';
2
- import { RTSeeConference } from '@rtsee/conference';
3
- import {NgClass, NgForOf} from "@angular/common";
4
- import {FormsModule} from "@angular/forms";
5
-
6
- @Component({
7
- selector: 'ngx-rtsee-settings',
8
- templateUrl: './rtsee-settings.component.html',
9
- styleUrls: ['./rtsee-settings.component.scss'],
10
- imports: [
11
- NgClass,
12
- FormsModule,
13
- NgForOf
14
- ],
15
- standalone: true
16
- })
17
- export class RtseeSettingsComponent implements OnInit {
18
- availableAudioInputDevices: MediaDeviceInfo[];
19
- availableVideoInputDevices: MediaDeviceInfo[];
20
- availableAudioOutputDevices: MediaDeviceInfo[];
21
-
22
- audioOutputDeviceId?: string;
23
- videoInputDeviceId?: string;
24
- audioInputDeviceId?: string;
25
-
26
- @Input() rtSee!: RTSeeConference;
27
- @Input() fullScreenMode!: boolean;
28
- constructor() {
29
- this.availableAudioInputDevices = [];
30
- this.availableVideoInputDevices = [];
31
- this.availableAudioOutputDevices = [];
32
- }
33
-
34
- ngOnInit(): void {
35
- this.refreshSelectOptions();
36
- }
37
-
38
- refreshSelectOptions() {
39
- void this.rtSee.refreshMediaDevicesList();
40
- }
41
-
42
- audioInputChanged() {
43
- if (!this.audioInputDeviceId) { return; }
44
- this.rtSee.setAudioInputDevice(this.audioInputDeviceId);
45
- console.log(this.audioInputDeviceId);
46
- }
47
-
48
- audioOutputChanged() {
49
- if (!this.audioOutputDeviceId) { return; }
50
- this.rtSee.setAudioOutputDevice(this.audioOutputDeviceId);
51
- }
52
-
53
- videoInputChanged() {
54
- if (!this.videoInputDeviceId) { return; }
55
- this.rtSee.setVideoInputDevice(this.videoInputDeviceId);
56
- }
57
- }
@@ -1,19 +0,0 @@
1
- <div class="rtsee-soundbar">
2
- <div class="rtsee-soundbar-scale">
3
- <div class="rtsee-soundbar-scale-item">
4
- <div class="rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-one"
5
- [style.height.%]="scaleOneLevel"
6
- ></div>
7
- </div>
8
- <div class="rtsee-soundbar-scale-item">
9
- <div class="rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-two"
10
- [style.height.%]="scaleTwoLevel"
11
- ></div>
12
- </div>
13
- <div class="rtsee-soundbar-scale-item">
14
- <div class="rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-three"
15
- [style.height.%]="scaleThreeLevel"
16
- ></div>
17
- </div>
18
- </div>
19
- </div>
@@ -1,56 +0,0 @@
1
- $scale-item-height: 15px;
2
- $scale-item-width: 5px;
3
- $soundbar-inner-offset: 2px;
4
- $soundbar-height: $scale-item-height + $soundbar-inner-offset * 2;
5
- $soundbar-width: $scale-item-width * 3 + $soundbar-inner-offset * 4;
6
- $min-scale-height: 25%;
7
- $soundbar-scale-item-color: #00CE00;
8
-
9
- .rtsee-soundbar {
10
- height: $soundbar-height;
11
- width: $soundbar-width;
12
- padding: $soundbar-inner-offset 0 0 0;
13
-
14
- .rtsee-soundbar-scale {
15
- height: 100%;
16
-
17
- .rtsee-soundbar-scale-item {
18
- float: left;
19
- height: 15px;
20
- width: 5px;
21
- margin-left: 2px;
22
- position: relative;
23
- border-radius: 4px;
24
-
25
- &:last-child:after {
26
- content: '';
27
- display: block;
28
- clear: both;
29
- }
30
-
31
- .rtsee-soundbar-scale-item-level {
32
- position: absolute;
33
- bottom: 0;
34
- left: 0;
35
- height: 10%;
36
- width: 100%;
37
- transition: height 0.05s;
38
- background-color: $soundbar-scale-item-color;
39
- min-height: $min-scale-height;
40
- border-radius: 1px;
41
-
42
- &.rtsee-soundbar-scale-item-level-one {
43
- max-height: 33.3%;
44
- }
45
-
46
- &.rtsee-soundbar-scale-item-level-two {
47
- max-height: 66.6%;
48
- }
49
-
50
- &.rtsee-soundbar-scale-item-level-three {
51
- max-height: 100%;
52
- }
53
- }
54
- }
55
- }
56
- }
@@ -1,66 +0,0 @@
1
- import { Component, Input, OnInit } from '@angular/core';
2
- import { RTSeePeerConnection } from '@rtsee/conference';
3
- import { interval } from 'rxjs';
4
-
5
- @Component({
6
- selector: 'ngx-rtsee-soundbar',
7
- templateUrl: './rtsee-soundbar.component.html',
8
- styleUrls: ['./rtsee-soundbar.component.scss'],
9
- standalone: true
10
- })
11
- export class RtseeSoundbarComponent implements OnInit {
12
- intervalLength: number;
13
- noiceLevel: number;
14
- scaleOneLevel: number;
15
- scaleTwoLevel: number;
16
- scaleThreeLevel: number;
17
-
18
- @Input() peer!: RTSeePeerConnection;
19
- constructor() {
20
- this.intervalLength = 1000;
21
- this.noiceLevel = 0;
22
- this.scaleOneLevel = 0;
23
- this.scaleTwoLevel = 0;
24
- this.scaleThreeLevel = 0;
25
- }
26
-
27
- ngOnInit(): void {
28
- this.startSoundMeterListening();
29
- }
30
-
31
- startSoundMeterListening() {
32
- const step = interval(1000 / 10);
33
- step.subscribe(() => {
34
- if (!this.peer.soundMeter || !this.peer.soundMeter.level) {
35
- this.noiceLevel = 0;
36
- } else {
37
- this.noiceLevel = this.peer.soundMeter?.level * 100 || 0;
38
- }
39
-
40
- this.setSoundMeterHeights();
41
- });
42
- }
43
-
44
- setSoundMeterHeights() {
45
- const ZERO_LEVEL = 25;
46
- const SCALE_STEP = 25;
47
- const SCALE_ONE_TOP = ZERO_LEVEL + SCALE_STEP;
48
- const SCALE_TWO_TOP = SCALE_ONE_TOP + SCALE_STEP;
49
-
50
- if (!this.peer || !this.peer.soundMeter || this.noiceLevel < ZERO_LEVEL) {
51
- this.scaleOneLevel = 0;
52
- this.scaleTwoLevel = 0;
53
- this.scaleThreeLevel = 0;
54
- }
55
-
56
- const scaleOneValue = ((this.noiceLevel - ZERO_LEVEL) / SCALE_STEP) * 100;
57
- const scaleTwoValue =
58
- ((this.noiceLevel - SCALE_ONE_TOP) / SCALE_STEP) * 100;
59
- const scaleThreeValue =
60
- ((this.noiceLevel - SCALE_TWO_TOP) / SCALE_STEP) * 100;
61
-
62
- this.scaleOneLevel = scaleOneValue > 0 ? scaleOneValue : 0;
63
- this.scaleTwoLevel = scaleTwoValue > 0 ? scaleTwoValue : 0;
64
- this.scaleThreeLevel = scaleThreeValue > 0 ? scaleTwoValue : 0;
65
- }
66
- }
@@ -1,15 +0,0 @@
1
- import { AfterViewInit, Directive, ElementRef } from '@angular/core';
2
- import shave from 'shave';
3
-
4
- @Directive({
5
- selector: '[rtseeShave]',
6
- standalone: true
7
- })
8
- export class ShaveDirective implements AfterViewInit {
9
- constructor(private elem: ElementRef<HTMLDivElement>) {}
10
-
11
- ngAfterViewInit() {
12
- const height = this.elem.nativeElement?.offsetHeight;
13
- shave(this.elem.nativeElement as unknown as NodeList, height);
14
- }
15
- }
@@ -1,9 +0,0 @@
1
- import { Directive, ViewContainerRef } from '@angular/core';
2
-
3
- @Directive({
4
- selector: '[widgetHost]',
5
- standalone: true
6
- })
7
- export class WidgetDirective {
8
- constructor(public viewContainerRef: ViewContainerRef) {}
9
- }