@rtsee/ngx 0.0.38 → 0.0.40
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.
- package/dist/ngx/esm2022/lib/common/components/preloader/preloader.component.mjs +33 -0
- package/dist/ngx/esm2022/lib/components/rtsee/rtsee-controls/rtsee-controls.component.mjs +25 -0
- package/dist/ngx/esm2022/lib/components/rtsee/rtsee.component.mjs +32 -0
- package/dist/ngx/esm2022/lib/components/rtsee-container/rtsee-container.component.mjs +11 -0
- package/dist/ngx/esm2022/lib/components/rtsee-events-dashboard/components/event-thumbnail/event-thumbnail.component.mjs +76 -0
- package/dist/ngx/esm2022/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client/rtsee-events-dashboard-client.component.mjs +11 -0
- package/dist/ngx/esm2022/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client-thumbnail/rtsee-events-dashboard-client-thumbnail.component.mjs +33 -0
- package/dist/ngx/esm2022/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-session/rtsee-events-dashboard-session.component.mjs +21 -0
- package/dist/ngx/esm2022/lib/components/rtsee-events-dashboard/rtsee-events-dashboard.component.mjs +16 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/chat/chat.component.mjs +19 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/chat-input/chat-input.component.mjs +33 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/chat-thumbnail/chat-thumbnail.component.mjs +27 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/chats-list/chats-list.component.mjs +22 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/main-menu/components/contacts-multiselect/contacts-multiselect.component.mjs +18 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/main-menu/components/manage-chat/manage-chat.component.mjs +21 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/main-menu/components/search/search.component.mjs +31 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/main-menu/main-menu.component.mjs +32 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/message/components/message-time-and-status/message-time-and-status.component.mjs +24 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/message/message.component.mjs +58 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/message-widgets/call-widget/call-widget.component.mjs +34 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/messages-list/messages-list.component.mjs +70 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/messenger/messenger.component.mjs +31 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/messenger-header/messenger-header.component.mjs +33 -0
- package/dist/ngx/esm2022/lib/components/rtsee-messenger/profile/profile.component.mjs +26 -0
- package/dist/ngx/esm2022/lib/components/rtsee-peer/rtsee-peer.component.mjs +36 -0
- package/dist/ngx/esm2022/lib/components/rtsee-peers-list/rtsee-peers-list.component.mjs +11 -0
- package/dist/ngx/esm2022/lib/components/rtsee-settings/rtsee-settings.component.mjs +43 -0
- package/dist/ngx/esm2022/lib/components/rtsee-soundbar/rtsee-soundbar.component.mjs +59 -0
- package/dist/ngx/esm2022/lib/directives/shave.directive.mjs +22 -0
- package/dist/ngx/esm2022/lib/directives/widget.directive.mjs +17 -0
- package/dist/ngx/esm2022/lib/ngx.module.mjs +141 -0
- package/dist/ngx/esm2022/lib/ngx.service.mjs +17 -0
- package/dist/ngx/esm2022/lib/services/default-images.service.mjs +14 -0
- package/dist/ngx/esm2022/lib/services/events-widgets.service.mjs +23 -0
- package/dist/ngx/esm2022/lib/services/message-widgets.service.mjs +26 -0
- package/dist/ngx/esm2022/lib/services/time-format-helper.service.mjs +92 -0
- package/dist/ngx/fesm2022/rtsee-ngx.mjs +1089 -0
- package/dist/ngx/fesm2022/rtsee-ngx.mjs.map +1 -0
- package/dist/ngx/lib/common/components/preloader/preloader.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee/rtsee-controls/rtsee-controls.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee/rtsee.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-container/rtsee-container.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-events-dashboard/components/event-thumbnail/event-thumbnail.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client/rtsee-events-dashboard-client.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client-thumbnail/rtsee-events-dashboard-client-thumbnail.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-session/rtsee-events-dashboard-session.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-events-dashboard/rtsee-events-dashboard.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/chat/chat.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/chat-input/chat-input.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/chat-thumbnail/chat-thumbnail.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/chats-list/chats-list.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/main-menu/components/contacts-multiselect/contacts-multiselect.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/main-menu/components/manage-chat/manage-chat.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/main-menu/components/search/search.component.d.ts +2 -2
- package/dist/ngx/lib/components/rtsee-messenger/main-menu/main-menu.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/message/components/message-time-and-status/message-time-and-status.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/message/message.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/message-widgets/call-widget/call-widget.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/messages-list/messages-list.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/messenger/messenger.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/messenger-header/messenger-header.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-messenger/profile/profile.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-peer/rtsee-peer.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-peers-list/rtsee-peers-list.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-settings/rtsee-settings.component.d.ts +1 -1
- package/dist/ngx/lib/components/rtsee-soundbar/rtsee-soundbar.component.d.ts +1 -1
- package/dist/ngx/lib/directives/shave.directive.d.ts +1 -1
- package/dist/ngx/lib/directives/widget.directive.d.ts +1 -1
- package/dist/ngx/package.json +13 -6
- package/package.json +30 -38
- package/dist/ngx/bundles/rtsee-ngx.umd.js +0 -1208
- package/dist/ngx/bundles/rtsee-ngx.umd.js.map +0 -1
- package/dist/ngx/esm2015/lib/common/components/preloader/preloader.component.js +0 -34
- package/dist/ngx/esm2015/lib/components/rtsee/rtsee-controls/rtsee-controls.component.js +0 -27
- package/dist/ngx/esm2015/lib/components/rtsee/rtsee.component.js +0 -33
- package/dist/ngx/esm2015/lib/components/rtsee-container/rtsee-container.component.js +0 -14
- package/dist/ngx/esm2015/lib/components/rtsee-events-dashboard/components/event-thumbnail/event-thumbnail.component.js +0 -73
- package/dist/ngx/esm2015/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client/rtsee-events-dashboard-client.component.js +0 -14
- package/dist/ngx/esm2015/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-client-thumbnail/rtsee-events-dashboard-client-thumbnail.component.js +0 -32
- package/dist/ngx/esm2015/lib/components/rtsee-events-dashboard/components/rtsee-events-dashboard-session/rtsee-events-dashboard-session.component.js +0 -22
- package/dist/ngx/esm2015/lib/components/rtsee-events-dashboard/rtsee-events-dashboard.component.js +0 -18
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/chat/chat.component.js +0 -20
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/chat-input/chat-input.component.js +0 -37
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/chat-thumbnail/chat-thumbnail.component.js +0 -27
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/chats-list/chats-list.component.js +0 -23
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/main-menu/components/contacts-multiselect/contacts-multiselect.component.js +0 -20
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/main-menu/components/manage-chat/manage-chat.component.js +0 -23
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/main-menu/components/search/search.component.js +0 -34
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/main-menu/main-menu.component.js +0 -35
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/message/components/message-time-and-status/message-time-and-status.component.js +0 -24
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/message/message.component.js +0 -53
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/message-widgets/call-widget/call-widget.component.js +0 -37
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/messages-list/messages-list.component.js +0 -69
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/messenger/messenger.component.js +0 -32
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/messenger-header/messenger-header.component.js +0 -33
- package/dist/ngx/esm2015/lib/components/rtsee-messenger/profile/profile.component.js +0 -28
- package/dist/ngx/esm2015/lib/components/rtsee-peer/rtsee-peer.component.js +0 -35
- package/dist/ngx/esm2015/lib/components/rtsee-peers-list/rtsee-peers-list.component.js +0 -15
- package/dist/ngx/esm2015/lib/components/rtsee-settings/rtsee-settings.component.js +0 -42
- package/dist/ngx/esm2015/lib/components/rtsee-soundbar/rtsee-soundbar.component.js +0 -58
- package/dist/ngx/esm2015/lib/directives/shave.directive.js +0 -22
- package/dist/ngx/esm2015/lib/directives/widget.directive.js +0 -16
- package/dist/ngx/esm2015/lib/ngx.module.js +0 -143
- package/dist/ngx/esm2015/lib/ngx.service.js +0 -16
- package/dist/ngx/esm2015/lib/services/default-images.service.js +0 -16
- package/dist/ngx/esm2015/lib/services/events-widgets.service.js +0 -25
- package/dist/ngx/esm2015/lib/services/message-widgets.service.js +0 -28
- package/dist/ngx/esm2015/lib/services/time-format-helper.service.js +0 -92
- package/dist/ngx/fesm2015/rtsee-ngx.js +0 -1121
- package/dist/ngx/fesm2015/rtsee-ngx.js.map +0 -1
- /package/dist/ngx/{esm2015/lib/components/rtsee-messenger/main-menu/components/models/MainMenuState.js → esm2022/lib/components/rtsee-messenger/main-menu/components/models/MainMenuState.mjs} +0 -0
- /package/dist/ngx/{esm2015/public-api.js → esm2022/public-api.mjs} +0 -0
- /package/dist/ngx/{esm2015/rtsee-ngx.js → esm2022/rtsee-ngx.mjs} +0 -0
- /package/dist/ngx/{rtsee-ngx.d.ts → index.d.ts} +0 -0
|
@@ -1,1208 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/material/button'), require('@angular/common'), require('@angular/material/form-field'), require('@angular/forms'), require('rxjs'), require('@rtsee/common'), require('dayjs'), require('dayjs/plugin/relativeTime'), require('shave'), require('@rtsee/messenger'), require('ngx-infinite-scroll'), require('ngx-autosize'), require('rxjs/operators'), require('@angular/material/icon'), require('@angular/material/select'), require('@angular/platform-browser/animations')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@rtsee/ngx', ['exports', '@angular/core', '@angular/material/button', '@angular/common', '@angular/material/form-field', '@angular/forms', 'rxjs', '@rtsee/common', 'dayjs', 'dayjs/plugin/relativeTime', 'shave', '@rtsee/messenger', 'ngx-infinite-scroll', 'ngx-autosize', 'rxjs/operators', '@angular/material/icon', '@angular/material/select', '@angular/platform-browser/animations'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rtsee = global.rtsee || {}, global.rtsee.ngx = {}), global.ng.core, global.ng.material.button, global.ng.common, global.ng.material.formField, global.ng.forms, global.rxjs, global.common, global.dayjs, global.relativeTime, global.shave, global.messenger, global.i3$2, global.i2, global.rxjs.operators, global.ng.material.icon, global.ng.material.select, global.ng.platformBrowser.animations));
|
|
5
|
-
}(this, (function (exports, i0, i1, i3, i3$1, i1$1, rxjs, common, dayjs, relativeTime, shave, messenger, i3$2, i2, operators, icon, select, animations) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () {
|
|
19
|
-
return e[k];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
n['default'] = e;
|
|
26
|
-
return Object.freeze(n);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
30
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
31
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
32
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
33
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
34
|
-
var dayjs__namespace = /*#__PURE__*/_interopNamespace(dayjs);
|
|
35
|
-
var relativeTime__namespace = /*#__PURE__*/_interopNamespace(relativeTime);
|
|
36
|
-
var shave__default = /*#__PURE__*/_interopDefaultLegacy(shave);
|
|
37
|
-
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
38
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
39
|
-
|
|
40
|
-
var NgxService = /** @class */ (function () {
|
|
41
|
-
function NgxService() {
|
|
42
|
-
this.lol = 'lol';
|
|
43
|
-
}
|
|
44
|
-
return NgxService;
|
|
45
|
-
}());
|
|
46
|
-
NgxService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NgxService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
47
|
-
NgxService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NgxService, providedIn: 'root' });
|
|
48
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: NgxService, decorators: [{
|
|
49
|
-
type: i0.Injectable,
|
|
50
|
-
args: [{
|
|
51
|
-
providedIn: 'root',
|
|
52
|
-
}]
|
|
53
|
-
}], ctorParameters: function () { return []; } });
|
|
54
|
-
|
|
55
|
-
var RTSeeControlsComponent = /** @class */ (function () {
|
|
56
|
-
function RTSeeControlsComponent() {
|
|
57
|
-
}
|
|
58
|
-
RTSeeControlsComponent.prototype.onPresentClicked = function () {
|
|
59
|
-
return this.rtsee.isPresenter
|
|
60
|
-
? this.rtsee.stopScreenShare()
|
|
61
|
-
: this.rtsee.startScreenShare();
|
|
62
|
-
};
|
|
63
|
-
return RTSeeControlsComponent;
|
|
64
|
-
}());
|
|
65
|
-
RTSeeControlsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RTSeeControlsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
66
|
-
RTSeeControlsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RTSeeControlsComponent, selector: "ngx-rtsee-controls", inputs: { rtsee: "rtsee", fullScreenMode: "fullScreenMode" }, ngImport: i0__namespace, template: "<div class=\"rtsee-controls\" [ngClass]=\"{'rtsee-full-screen-controls' : fullScreenMode }\">\n <div class=\"rtsee-bottom-panel\">\n <div class=\"mic rtsee-buttons-container\">\n <button mat-icon-button matSuffix\n class=\"rtsee-ripple-button\"\n *ngIf=\"rtsee.microphone\"\n type=\"button\"\n (click)=\"this.rtsee.disableMicrophone()\"\n >\n <span class=\"material-icons-outlined\">mic_none</span>\n </button>\n <button mat-icon-button matSuffix\n class=\"rtsee-ripple-button\"\n *ngIf=\"!rtsee.microphone\"\n type=\"button\" (click)=\"this.rtsee.enableMicrophone()\"\n >\n <span class=\"material-icons-outlined\">mic_off</span>\n </button>\n </div>\n\n <div class=\"video-camera rtsee-buttons-container\">\n <button mat-icon-button matSuffix\n class=\"rtsee-ripple-button\"\n *ngIf=\"rtsee.camera\"\n type=\"button\"\n (click)=\"rtsee.disableCamera()\"\n >\n <span class=\"material-icons-outlined\">videocam</span>\n </button>\n <button mat-icon-button matSuffix\n class=\"rtsee-ripple-button\"\n *ngIf=\"!rtsee.camera\"\n type=\"button\"\n (click)=\"rtsee.enableCamera()\"\n >\n <span class=\"material-icons-outlined\">videocam_off</span>\n </button>\n </div>\n <div class=\"present rtsee-buttons-container\" [ngClass]=\"{'rtsee-present-button-container': rtsee.isPresenter}\">\n <button mat-icon-button matSuffix\n class=\"rtsee-ripple-button\"\n type=\"button\"\n (click)=\"onPresentClicked()\"\n >\n <span class=\"material-icons-outlined\">present_to_all</span>\n </button>\n </div>\n <div class=\"call-end rtsee-buttons-container\">\n <button mat-icon-button matSuffix\n class=\"rtsee-ripple-button\"\n type=\"button\"\n (click)=\"rtsee.end()\"\n >\n <span class=\"material-icons-outlined\">call_end</span>\n </button>\n </div>\n </div>\n</div>\n", styles: [".rtsee-controls{display:inline-block;height:100%}.rtsee-controls .rtsee-buttons-container{height:35px;width:35px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 6px;cursor:pointer}.rtsee-controls .rtsee-buttons-container:last-child{margin-right:0}.rtsee-controls .rtsee-buttons-container:first-child{margin-left:0}.rtsee-controls .rtsee-buttons-container .mat-icon-button{background-color:#333;color:#fff}.rtsee-controls .rtsee-buttons-container.call-end .mat-icon-button{background-color:red}.rtsee-controls .rtsee-buttons-container.rtsee-present-button-container .mat-icon-button{background-color:#090}.rtsee-controls .full-screen{align-self:flex-end;padding:12px;cursor:pointer}.rtsee-controls .rtsee-bottom-panel{padding:12px;display:flex;justify-content:center;align-items:center;border-radius:45px;background-color:rgba(0,0,0,.7)}.rtsee-controls.rtsee-full-screen-controls .rtsee-buttons-container{height:60px;width:60px}"], components: [{ type: i1__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.MatSuffix, selector: "[matSuffix]" }] });
|
|
67
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RTSeeControlsComponent, decorators: [{
|
|
68
|
-
type: i0.Component,
|
|
69
|
-
args: [{
|
|
70
|
-
selector: 'ngx-rtsee-controls',
|
|
71
|
-
templateUrl: './rtsee-controls.component.html',
|
|
72
|
-
styleUrls: ['./rtsee-controls.component.scss'],
|
|
73
|
-
}]
|
|
74
|
-
}], propDecorators: { rtsee: [{
|
|
75
|
-
type: i0.Input
|
|
76
|
-
}], fullScreenMode: [{
|
|
77
|
-
type: i0.Input
|
|
78
|
-
}] } });
|
|
79
|
-
|
|
80
|
-
var RtseeSettingsComponent = /** @class */ (function () {
|
|
81
|
-
function RtseeSettingsComponent() {
|
|
82
|
-
this.availableAudioInputDevices = [];
|
|
83
|
-
this.availableVideoInputDevices = [];
|
|
84
|
-
this.availableAudioOutputDevices = [];
|
|
85
|
-
}
|
|
86
|
-
RtseeSettingsComponent.prototype.ngOnInit = function () {
|
|
87
|
-
this.refreshSelectOptions();
|
|
88
|
-
};
|
|
89
|
-
RtseeSettingsComponent.prototype.refreshSelectOptions = function () {
|
|
90
|
-
void this.rtSee.refreshMediaDevicesList();
|
|
91
|
-
};
|
|
92
|
-
RtseeSettingsComponent.prototype.setAudioInput = function (deviceId) {
|
|
93
|
-
this.rtSee.setAudioInputDevice(deviceId);
|
|
94
|
-
console.log(deviceId);
|
|
95
|
-
};
|
|
96
|
-
RtseeSettingsComponent.prototype.setAudioOutput = function (deviceId) {
|
|
97
|
-
this.rtSee.setAudioOutputDevice(deviceId);
|
|
98
|
-
};
|
|
99
|
-
RtseeSettingsComponent.prototype.setVideoInput = function (deviceId) {
|
|
100
|
-
this.rtSee.setVideoInputDevice(deviceId);
|
|
101
|
-
};
|
|
102
|
-
return RtseeSettingsComponent;
|
|
103
|
-
}());
|
|
104
|
-
RtseeSettingsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeSettingsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
105
|
-
RtseeSettingsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RtseeSettingsComponent, selector: "ngx-rtsee-settings", inputs: { rtSee: "rtSee", fullScreenMode: "fullScreenMode" }, ngImport: i0__namespace, template: "<div class=\"rtsee-settings\" [ngClass]=\"{'rtsee-full-screen-settings' : fullScreenMode}\">\n <div class=\"rtsee-devices\">\n <div class=\"rtsee-device-select-wrapper\">\n <label class=\"rtsee-select-label\" for=\"audio-input\">Audio Input:</label>\n <select class=\"rtsee-select\" id=\"audio-input\" (click)=\"refreshSelectOptions()\">\n <option *ngFor=\"let device of rtSee.audioInputDevices\" [value]=\"device.deviceId\" (click)=\"setAudioInput(device.deviceId)\">\n {{device.label}}\n </option>\n </select>\n </div>\n <div class=\"rtsee-device-select-wrapper\">\n <label class=\"rtsee-select-label\" for=\"audio-output\">Audio Output:</label>\n <select class=\"rtsee-select\" id=\"audio-output\" (click)=\"refreshSelectOptions()\">\n <option *ngFor=\"let device of rtSee.audioOutputDevices\" [value]=\"device.deviceId\" (click)=\"setAudioOutput(device.deviceId)\">\n {{device.label}}\n </option>\n </select>\n </div>\n <div class=\"rtsee-device-select-wrapper\">\n <label class=\"rtsee-select-label\" for=\"video-input\">Video Input:</label>\n <select class=\"rtsee-select\" id=\"video-input\" (click)=\"refreshSelectOptions()\">\n <option *ngFor=\"let device of rtSee.videoInputDevices\" [value]=\"device.deviceId\" (click)=\"setVideoInput(device.deviceId)\">\n {{device.label}}\n </option>\n </select>\n </div>\n </div>\n</div>\n", styles: [".rtsee-settings{box-sizing:border-box;background-color:#404040;border-bottom:1px solid;max-height:180px;padding:16px 0;overflow:auto;color:#fff}.rtsee-settings .rtsee-device-select-wrapper{padding:0 10px}.rtsee-settings .rtsee-device-select-wrapper .rtsee-select-label{font-family:monospace;display:inline-block;margin:8px}.rtsee-settings.rtsee-full-screen-settings{max-height:unset;overflow:unset}"], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1__namespace$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }] });
|
|
106
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeSettingsComponent, decorators: [{
|
|
107
|
-
type: i0.Component,
|
|
108
|
-
args: [{
|
|
109
|
-
selector: 'ngx-rtsee-settings',
|
|
110
|
-
templateUrl: './rtsee-settings.component.html',
|
|
111
|
-
styleUrls: ['./rtsee-settings.component.scss'],
|
|
112
|
-
}]
|
|
113
|
-
}], ctorParameters: function () { return []; }, propDecorators: { rtSee: [{
|
|
114
|
-
type: i0.Input
|
|
115
|
-
}], fullScreenMode: [{
|
|
116
|
-
type: i0.Input
|
|
117
|
-
}] } });
|
|
118
|
-
|
|
119
|
-
var RtseeSoundbarComponent = /** @class */ (function () {
|
|
120
|
-
function RtseeSoundbarComponent() {
|
|
121
|
-
this.intervalLength = 1000;
|
|
122
|
-
this.noiceLevel = 0;
|
|
123
|
-
this.scaleOneLevel = 0;
|
|
124
|
-
this.scaleTwoLevel = 0;
|
|
125
|
-
this.scaleThreeLevel = 0;
|
|
126
|
-
}
|
|
127
|
-
RtseeSoundbarComponent.prototype.ngOnInit = function () {
|
|
128
|
-
this.startSoundMeterListening();
|
|
129
|
-
};
|
|
130
|
-
RtseeSoundbarComponent.prototype.startSoundMeterListening = function () {
|
|
131
|
-
var _this = this;
|
|
132
|
-
var step = rxjs.interval(1000 / 10);
|
|
133
|
-
step.subscribe(function () {
|
|
134
|
-
var _a;
|
|
135
|
-
if (!_this.peer.soundMeter || !_this.peer.soundMeter.level) {
|
|
136
|
-
_this.noiceLevel = 0;
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
_this.noiceLevel = ((_a = _this.peer.soundMeter) === null || _a === void 0 ? void 0 : _a.level) * 100 || 0;
|
|
140
|
-
}
|
|
141
|
-
_this.setSoundMeterHeights();
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
RtseeSoundbarComponent.prototype.setSoundMeterHeights = function () {
|
|
145
|
-
var ZERO_LEVEL = 25;
|
|
146
|
-
var SCALE_STEP = 25;
|
|
147
|
-
var SCALE_ONE_TOP = ZERO_LEVEL + SCALE_STEP;
|
|
148
|
-
var SCALE_TWO_TOP = SCALE_ONE_TOP + SCALE_STEP;
|
|
149
|
-
if (!this.peer || !this.peer.soundMeter || this.noiceLevel < ZERO_LEVEL) {
|
|
150
|
-
this.scaleOneLevel = 0;
|
|
151
|
-
this.scaleTwoLevel = 0;
|
|
152
|
-
this.scaleThreeLevel = 0;
|
|
153
|
-
}
|
|
154
|
-
var scaleOneValue = ((this.noiceLevel - ZERO_LEVEL) / SCALE_STEP) * 100;
|
|
155
|
-
var scaleTwoValue = ((this.noiceLevel - SCALE_ONE_TOP) / SCALE_STEP) * 100;
|
|
156
|
-
var scaleThreeValue = ((this.noiceLevel - SCALE_TWO_TOP) / SCALE_STEP) * 100;
|
|
157
|
-
this.scaleOneLevel = scaleOneValue > 0 ? scaleOneValue : 0;
|
|
158
|
-
this.scaleTwoLevel = scaleTwoValue > 0 ? scaleTwoValue : 0;
|
|
159
|
-
this.scaleThreeLevel = scaleThreeValue > 0 ? scaleTwoValue : 0;
|
|
160
|
-
};
|
|
161
|
-
return RtseeSoundbarComponent;
|
|
162
|
-
}());
|
|
163
|
-
RtseeSoundbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeSoundbarComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
164
|
-
RtseeSoundbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RtseeSoundbarComponent, selector: "ngx-rtsee-soundbar", inputs: { peer: "peer" }, ngImport: i0__namespace, template: "<div class=\"rtsee-soundbar\">\n <div class=\"rtsee-soundbar-scale\">\n <div class=\"rtsee-soundbar-scale-item\">\n <div class=\"rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-one\"\n [style.height.%]=\"scaleOneLevel\"\n ></div>\n </div>\n <div class=\"rtsee-soundbar-scale-item\">\n <div class=\"rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-two\"\n [style.height.%]=\"scaleTwoLevel\"\n ></div>\n </div>\n <div class=\"rtsee-soundbar-scale-item\">\n <div class=\"rtsee-soundbar-scale-item-level rtsee-soundbar-scale-item-level-three\"\n [style.height.%]=\"scaleThreeLevel\"\n ></div>\n </div>\n </div>\n</div>\n", styles: [".rtsee-soundbar{height:19px;width:23px;padding:2px 0 0}.rtsee-soundbar .rtsee-soundbar-scale{height:100%}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item{float:left;height:15px;width:5px;margin-left:2px;position:relative;border-radius:4px}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item:last-child:after{content:\"\";display:block;clear:both}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level{position:absolute;bottom:0;left:0;height:10%;width:100%;transition:height .05s;background-color:#00ce00;min-height:25%;border-radius:1px}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level.rtsee-soundbar-scale-item-level-one{max-height:33.3%}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level.rtsee-soundbar-scale-item-level-two{max-height:66.6%}.rtsee-soundbar .rtsee-soundbar-scale .rtsee-soundbar-scale-item .rtsee-soundbar-scale-item-level.rtsee-soundbar-scale-item-level-three{max-height:100%}"] });
|
|
165
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeSoundbarComponent, decorators: [{
|
|
166
|
-
type: i0.Component,
|
|
167
|
-
args: [{
|
|
168
|
-
selector: 'ngx-rtsee-soundbar',
|
|
169
|
-
templateUrl: './rtsee-soundbar.component.html',
|
|
170
|
-
styleUrls: ['./rtsee-soundbar.component.scss'],
|
|
171
|
-
}]
|
|
172
|
-
}], ctorParameters: function () { return []; }, propDecorators: { peer: [{
|
|
173
|
-
type: i0.Input
|
|
174
|
-
}] } });
|
|
175
|
-
|
|
176
|
-
var RtseePeerComponent = /** @class */ (function () {
|
|
177
|
-
function RtseePeerComponent() {
|
|
178
|
-
this.intervalLength = 1000;
|
|
179
|
-
this.noiceLevel = 0;
|
|
180
|
-
}
|
|
181
|
-
RtseePeerComponent.prototype.ngAfterViewInit = function () {
|
|
182
|
-
if (!this.audioOutput) {
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
this.peer.setAudioOutputElement(this.audioOutput.nativeElement);
|
|
186
|
-
};
|
|
187
|
-
return RtseePeerComponent;
|
|
188
|
-
}());
|
|
189
|
-
RtseePeerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseePeerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
190
|
-
RtseePeerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RtseePeerComponent, selector: "ngx-rtsee-peer", inputs: { peer: "peer" }, viewQueries: [{ propertyName: "audioOutput", first: true, predicate: ["audioOutput"], descendants: true }, { propertyName: "videoOutput", first: true, predicate: ["videoOutput"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"rtsee-peer\" [ngClass]=\"{\n'rtsee-peer-video-disabled': !peer.remoteVideoStream || !peer.camera\n}\">\n <div class=\"rtsee-peer-content\">\n <div class=\"rtsee-peer-photo\" *ngIf=\"!peer.camera\">\n <div class=\"rtsee-peer-photo-wrapper\">\n <div *ngIf=\"peer.imageUrl\"\n [style.background-image]=\"'url(' + peer.imageUrl + ')'\"\n class=\"rtsee-peer-photo-image\"\n ></div>\n <img *ngIf=\"!peer.imageUrl\" [src]=\"\" alt=\"peer_photo\" class=\"rtsee-peer-photo-image\">\n </div>\n <div class=\"rtsee-peer-info\">\n <p class=\"rtsee-peer-name\" *ngIf=\"peer.name\">{{peer.name}}</p>\n </div>\n </div>\n <video #videoOutput\n class=\"rtsee-peer-video\"\n [autoplay]=\"true\"\n [srcObject]=\"peer.remoteVideoStream\"\n playsinline=\"true\"\n >\n </video>\n <div class=\"rtsee-peer-soundbar\">\n <ngx-rtsee-soundbar [peer]=\"peer\"></ngx-rtsee-soundbar>\n </div>\n </div>\n</div>\n", styles: [".rtsee-peer{height:100%;width:100%;overflow:hidden}.rtsee-peer .rtsee-peer-content{height:100%;text-align:center;background-color:#404040;border-radius:4px}.rtsee-peer .rtsee-peer-content .rtsee-peer-photo .rtsee-peer-photo-wrapper{display:inline-block;height:120px;width:120px;border-radius:50%;position:relative;border:0 solid #fff}.rtsee-peer .rtsee-peer-content .rtsee-peer-photo .rtsee-peer-photo-wrapper .rtsee-peer-photo-image{border:0 solid #fff;height:100%;left:0;background-size:cover;border-radius:50%}.rtsee-peer .rtsee-peer-content .rtsee-peer-info{color:#fff}.rtsee-peer .rtsee-peer-content .rtsee-peer-info .rtsee-peer-name{font-family:monospace;padding:8px 0 0;margin-top:-8px}.rtsee-peer .rtsee-peer-content .rtsee-peer-soundbar{position:absolute;right:16px;bottom:16px;background:#404040;padding:7px 6px 8px;border-radius:50%;border:1px solid}.rtsee-peer .rtsee-peer-video{height:100%;max-width:100%}.rtsee-peer.rtsee-peer-video-disabled .rtsee-peer-video{position:absolute;left:-3000px}"], components: [{ type: RtseeSoundbarComponent, selector: "ngx-rtsee-soundbar", inputs: ["peer"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
191
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseePeerComponent, decorators: [{
|
|
192
|
-
type: i0.Component,
|
|
193
|
-
args: [{
|
|
194
|
-
selector: 'ngx-rtsee-peer',
|
|
195
|
-
templateUrl: './rtsee-peer.component.html',
|
|
196
|
-
styleUrls: ['./rtsee-peer.component.scss'],
|
|
197
|
-
}]
|
|
198
|
-
}], ctorParameters: function () { return []; }, propDecorators: { audioOutput: [{
|
|
199
|
-
type: i0.ViewChild,
|
|
200
|
-
args: ['audioOutput']
|
|
201
|
-
}], videoOutput: [{
|
|
202
|
-
type: i0.ViewChild,
|
|
203
|
-
args: ['videoOutput']
|
|
204
|
-
}], peer: [{
|
|
205
|
-
type: i0.Input
|
|
206
|
-
}] } });
|
|
207
|
-
|
|
208
|
-
var RTSeeComponent = /** @class */ (function () {
|
|
209
|
-
function RTSeeComponent() {
|
|
210
|
-
this.settingsViewEnabled = false;
|
|
211
|
-
this.fullScreenModeEnabled = false;
|
|
212
|
-
}
|
|
213
|
-
RTSeeComponent.prototype.toggleSettings = function () {
|
|
214
|
-
this.settingsViewEnabled = !this.settingsViewEnabled;
|
|
215
|
-
};
|
|
216
|
-
RTSeeComponent.prototype.toggleFullScreenMode = function () {
|
|
217
|
-
this.fullScreenModeEnabled = !this.fullScreenModeEnabled;
|
|
218
|
-
};
|
|
219
|
-
return RTSeeComponent;
|
|
220
|
-
}());
|
|
221
|
-
RTSeeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RTSeeComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
222
|
-
RTSeeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RTSeeComponent, selector: "ngx-rtsee", inputs: { rtSee: "rtSee" }, ngImport: i0__namespace, template: "<div class=\"rtsee-shell\" [ngClass]=\"{\n'rtsee-shell-expanded': rtSee.uiControls.isExpanded || fullScreenModeEnabled,\n'rtsee-shell-no-companions': !rtSee.rtcPeerConnections.connections?.length\n}\">\n <div class=\"rtsee-local-peer\" *ngIf=\"rtSee.localStream && rtSee.camera\">\n <video class=\"rtsee-local-video\"\n [autoplay]=\"true\"\n [muted]=\"true\"\n [srcObject]=\"rtSee.localStream\"\n playsinline=\"true\"\n ></video>\n </div>\n <div class=\"rtsee-window-controls\">\n <button mat-icon-button matSuffix\n type=\"button\"\n (click)=\"this.toggleSettings()\"\n class=\"rtsee-window-controls-button rtsee-ripple-button\"\n >\n <span class=\"material-icons-outlined\">settings</span>\n </button>\n <button mat-icon-button matSuffix\n type=\"button\"\n (click)=\"this.toggleFullScreenMode()\"\n class=\"rtsee-window-controls-button rtsee-ripple-button\"\n >\n <span class=\"material-icons-outlined\">open_in_full</span>\n </button>\n </div>\n <div class=\"rtsee-settings-container\" *ngIf=\"settingsViewEnabled\">\n <button mat-icon-button matSuffix\n type=\"button\"\n (click)=\"this.toggleSettings()\"\n class=\"rtsee-close-settings-button\"\n >\n <span class=\"material-icons-outlined\">close</span>\n </button>\n <ngx-rtsee-settings [rtSee]=\"rtSee\" [fullScreenMode]=\"fullScreenModeEnabled\"></ngx-rtsee-settings>\n </div>\n <div class=\"rtsee-screen-share\" *ngIf=\"rtSee.screenSharePeer\" >\n <video [autoplay]=\"true\"\n [muted]=\"true\"\n [srcObject]=\"rtSee.screenSharePeer.remoteVideoStream\"\n playsinline=\"true\"\n class=\"rtsee-screen-share-video\"\n ></video>\n </div>\n <div class=\"rtsee-peers\" [ngClass]=\"{\n 'rtsee-peers-alone': !rtSee.rtcPeerConnections.connections?.length,\n 'rtsee-peers-one': rtSee.rtcPeerConnections.connections?.length === 1,\n 'rtsee-peers-three-grid': rtSee.rtcPeerConnections.connections?.length\n && rtSee.rtcPeerConnections.connections.length > 1\n && rtSee.rtcPeerConnections.connections.length < 4,\n 'rtsee-peers-six-grid': rtSee.rtcPeerConnections.connections?.length\n && rtSee.rtcPeerConnections.connections.length > 3\n && rtSee.rtcPeerConnections.connections.length < 7,\n 'rtsee-peers-nine-grid': rtSee.rtcPeerConnections.connections?.length\n && rtSee.rtcPeerConnections.connections.length >= 7\n }\">\n <div class=\"rtsee-peer-wrapper\"\n *ngFor=\"let peer of rtSee.rtcPeerConnections.connections\"\n >\n <ngx-rtsee-peer [peer]=\"peer\"></ngx-rtsee-peer>\n </div>\n </div>\n <div class=\"rtsee-peers-list\"></div>\n <div class=\"rtsee-controls-wrapper\">\n <ngx-rtsee-controls [rtsee]=\"rtSee\" [fullScreenMode]=\"fullScreenModeEnabled\"></ngx-rtsee-controls>\n </div>\n</div>\n\n", styles: [".rtsee-shell{position:fixed;z-index:10;right:16px;bottom:16px;background-color:#333;width:100%;max-width:320px;height:240px;overflow:hidden;border-radius:8px}.rtsee-shell:hover .rtsee-controls-wrapper{bottom:8px}.rtsee-shell:hover .rtsee-window-controls{top:8px}.rtsee-shell .rtsee-local-peer{position:absolute;top:8px;left:8px;width:80px;height:60px;text-align:center}.rtsee-shell .rtsee-local-peer .rtsee-local-video{height:100%;max-width:100%;border-radius:8px}.rtsee-shell .rtsee-screen-share{height:100%}.rtsee-shell .rtsee-screen-share .rtsee-screen-share-video{width:100%;height:calc(100% - 50px)}.rtsee-shell .rtsee-peers{height:100%}.rtsee-shell .rtsee-peers .rtsee-peer-wrapper{padding:8px;box-sizing:border-box;height:100%}.rtsee-shell .rtsee-peers .rtsee-peer-wrapper .rtsee-peer{position:relative}.rtsee-shell .rtsee-peers .rtsee-peer-wrapper .rtsee-peer ::ng-deep .rtsee-peer-video{border-radius:8px}.rtsee-shell .rtsee-controls-wrapper{height:60px;width:100%;position:absolute;left:0;bottom:-60px;transition:bottom .1s;text-align:center}.rtsee-shell .rtsee-window-controls{position:absolute;top:-60px;right:8px;transition:top .1s;z-index:4}.rtsee-shell .rtsee-window-controls .rtsee-window-controls-button{margin-left:8px;background-color:rgba(0,0,0,.7);color:#fff}.rtsee-shell .rtsee-settings-container{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto;z-index:4}.rtsee-shell.rtsee-shell-no-companions .rtsee-local-peer{box-sizing:border-box;padding:8px;height:100%;width:100%;top:0;bottom:0;left:0}.rtsee-shell .rtsee-close-settings-button{position:absolute;right:25px;top:5px;width:30px;height:30px;line-height:30px}.rtsee-shell.rtsee-shell-expanded{position:absolute;border-radius:0;max-width:unset;height:unset;width:unset;bottom:0;right:0;left:0;top:0}.rtsee-shell.rtsee-shell-expanded:hover .rtsee-controls-wrapper{bottom:16px}.rtsee-shell.rtsee-shell-expanded:hover .rtsee-window-controls{top:16px;right:16px}.rtsee-shell.rtsee-shell-expanded .rtsee-local-peer{top:unset;left:unset;width:211.2px;height:158.4px;bottom:16px;right:16px;padding:0;z-index:5}.rtsee-shell.rtsee-shell-expanded .rtsee-peers{width:100%;height:100%;display:table;table-layout:fixed}.rtsee-shell.rtsee-shell-expanded .rtsee-peers .rtsee-peer-wrapper{display:table-cell;vertical-align:middle}.rtsee-shell.rtsee-shell-expanded .rtsee-peers .rtsee-peer-wrapper ::ng-deep .rtsee-peer-video{border-radius:0}.rtsee-shell.rtsee-shell-expanded .rtsee-peers.rtsee-peers-one .rtsee-peer-wrapper{width:100%;height:100%}.rtsee-shell.rtsee-shell-expanded .rtsee-peers.rtsee-peers-one .rtsee-peer-wrapper ::ng-deep .rtsee-peer{height:70%;position:relative}.rtsee-shell.rtsee-shell-expanded .rtsee-peers.rtsee-peers-three-grid .rtsee-peer-wrapper{width:50%;height:100%}.rtsee-shell.rtsee-shell-expanded .rtsee-peers.rtsee-peers-three-grid .rtsee-peer-wrapper ::ng-deep .rtsee-peer{height:70%;position:relative}.rtsee-shell.rtsee-shell-expanded .rtsee-peers.rtsee-peers-six-grid .rtsee-peer-wrapper{width:33.3%;height:50%;float:left}.rtsee-shell.rtsee-shell-expanded .rtsee-peers.rtsee-shell-no-companions .rtsee-local-peer{height:100%;max-width:100%}.rtsee-shell.rtsee-shell-expanded .rtsee-controls-wrapper{height:84px;bottom:-84px}::ng-deep .rtsee-ripple-button{background-position:50%;transition:background .2s;outline:none}::ng-deep .rtsee-ripple-button:hover{background:hsla(0,0%,96%,.1) radial-gradient(circle,transparent 1%,hsla(0,0%,96%,.1) 0) 50%/15000%}::ng-deep .rtsee-ripple-button:active{background-size:100%;transition:background 0s}::ng-deep .rtsee-select{padding:8px;border-radius:4px;width:100%;outline:none}::ng-deep .material-icons-outlined{font-size:18px}::ng-deep .rtsee-shell.rtsee-shell-expanded .material-icons-outlined{font-size:24px}::ng-deep .rtsee-shell.rtsee-shell-expanded .rtsee-ripple-button{height:60px;width:60px;line-height:60px}"], components: [{ type: i1__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: RtseeSettingsComponent, selector: "ngx-rtsee-settings", inputs: ["rtSee", "fullScreenMode"] }, { type: RtseePeerComponent, selector: "ngx-rtsee-peer", inputs: ["peer"] }, { type: RTSeeControlsComponent, selector: "ngx-rtsee-controls", inputs: ["rtsee", "fullScreenMode"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.MatSuffix, selector: "[matSuffix]" }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
223
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RTSeeComponent, decorators: [{
|
|
224
|
-
type: i0.Component,
|
|
225
|
-
args: [{
|
|
226
|
-
selector: 'ngx-rtsee',
|
|
227
|
-
templateUrl: './rtsee.component.html',
|
|
228
|
-
styleUrls: ['./rtsee.component.scss'],
|
|
229
|
-
}]
|
|
230
|
-
}], ctorParameters: function () { return []; }, propDecorators: { rtSee: [{
|
|
231
|
-
type: i0.Input
|
|
232
|
-
}] } });
|
|
233
|
-
|
|
234
|
-
var DefaultImagesService = /** @class */ (function () {
|
|
235
|
-
function DefaultImagesService() {
|
|
236
|
-
this.PROFILE = 'https://werf-assets.s3.amazonaws.com/default-profile-logo.png';
|
|
237
|
-
}
|
|
238
|
-
return DefaultImagesService;
|
|
239
|
-
}());
|
|
240
|
-
DefaultImagesService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: DefaultImagesService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
241
|
-
DefaultImagesService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: DefaultImagesService, providedIn: 'root' });
|
|
242
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: DefaultImagesService, decorators: [{
|
|
243
|
-
type: i0.Injectable,
|
|
244
|
-
args: [{
|
|
245
|
-
providedIn: 'root',
|
|
246
|
-
}]
|
|
247
|
-
}] });
|
|
248
|
-
|
|
249
|
-
var ProfileComponent = /** @class */ (function () {
|
|
250
|
-
function ProfileComponent() {
|
|
251
|
-
}
|
|
252
|
-
ProfileComponent.prototype.call = function () {
|
|
253
|
-
if (!this.messenger.openedChat) {
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
void this.messenger.initializeVideoCall(this.messenger.openedChat);
|
|
257
|
-
};
|
|
258
|
-
ProfileComponent.prototype.videoCall = function () {
|
|
259
|
-
if (!this.messenger.openedChat) {
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
void this.messenger.initializeVideoCall(this.messenger.openedChat);
|
|
263
|
-
};
|
|
264
|
-
return ProfileComponent;
|
|
265
|
-
}());
|
|
266
|
-
ProfileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ProfileComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
267
|
-
ProfileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: ProfileComponent, selector: "rtsee-profile", inputs: { messenger: "messenger" }, ngImport: i0__namespace, template: "<div class=\"rtsee-messenger-profile\">\n <ul class=\"rtsee-messenger-profile-controls\">\n <li class=\"rtsee-messenger-profile-control\">\n <div class=\"rtsee-messenger-control-item\" (click)=\"call()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">call</span>\n </div>\n <span>Call</span>\n </div>\n </li>\n <li class=\"rtsee-messenger-profile-control\">\n <div class=\"rtsee-messenger-control-item\" (click)=\"videoCall()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">videocam</span>\n </div>\n <span>Video</span>\n </div>\n </li>\n </ul>\n</div>\n" });
|
|
268
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ProfileComponent, decorators: [{
|
|
269
|
-
type: i0.Component,
|
|
270
|
-
args: [{
|
|
271
|
-
selector: 'rtsee-profile',
|
|
272
|
-
templateUrl: './profile.component.html',
|
|
273
|
-
}]
|
|
274
|
-
}], propDecorators: { messenger: [{
|
|
275
|
-
type: i0.Input
|
|
276
|
-
}] } });
|
|
277
|
-
|
|
278
|
-
var MessengerHeaderComponent = /** @class */ (function () {
|
|
279
|
-
function MessengerHeaderComponent(defaultImagesService) {
|
|
280
|
-
this.defaultImagesService = defaultImagesService;
|
|
281
|
-
this.expandToggled = new i0.EventEmitter();
|
|
282
|
-
this.isExpanded = false;
|
|
283
|
-
this.expandToggled.emit(this.isExpanded);
|
|
284
|
-
}
|
|
285
|
-
MessengerHeaderComponent.prototype.toggleExpand = function () {
|
|
286
|
-
this.isExpanded = !this.isExpanded;
|
|
287
|
-
this.expandToggled.emit(this.isExpanded);
|
|
288
|
-
};
|
|
289
|
-
return MessengerHeaderComponent;
|
|
290
|
-
}());
|
|
291
|
-
MessengerHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessengerHeaderComponent, deps: [{ token: DefaultImagesService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
292
|
-
MessengerHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: MessengerHeaderComponent, selector: "rtsee-messenger-header", inputs: { isExpanded: "isExpanded", messenger: "messenger" }, outputs: { expandToggled: "expandToggled" }, ngImport: i0__namespace, template: "<div class=\"rtsee-messenger-header\"\n [ngClass]=\"{\n 'rtsee-messenger-header-chat-opened': messenger.openedChat,\n 'rtsee-messenger-header-expanded': isExpanded\n }\"\n>\n <div class=\"rtsee-messenger-profile-image-container \">\n <div *ngIf=\"!messenger.openedChat\"\n [style.background-image]=\"'url(' + messenger.myPeer?.imageUrl || defaultImagesService.PROFILE + ')'\"\n class=\"rtsee-messenger-profile-image\">\n </div>\n </div>\n\n <button class=\"rtsee-messenger-close-chat\"\n *ngIf=\"messenger.openedChat\"\n (click)=\"messenger.closeChat()\"\n >\n <span class=\"material-icons-outlined\">arrow_back</span>\n <span class=\"unread-count\" *ngIf=\"messenger.unreadMessagesCount\">{{messenger.unreadMessagesCount}}</span>\n </button>\n\n <button class=\"rtsee-messenger-menu-toggle\"\n *ngIf=\"!messenger.openedChat\"\n (click)=\"messenger.openMainMenu(true)\"\n >\n <span class=\"material-icons-outlined rtsee-messenger-menu-toggle-icon\">menu</span>\n </button>\n <div *ngIf=\"messenger.openedChat\"\n [ngClass]=\"{'rtsee-messenger-header-opened-chat-info-expanded': isExpanded}\"\n class=\"rtsee-messenger-header-opened-chat-info\">\n <div class=\"rtsee-messenger-profile-header-placeholder\">\n <p *ngIf=\"messenger.openedChat\"\n class=\"rtsee-messenger-header-chat-title\"\n >{{ messenger.openedChat.name }}</p>\n <div class=\"rtsee-messenger-profile-image-container\" (click)=\"toggleExpand()\">\n <div class=\"rtsee-messenger-profile-image\"\n [style.background-image]=\"'url(' + messenger.openedChat.imageUrl || defaultImagesService.PROFILE + ')'\"\n ></div>\n </div>\n </div>\n <div class=\"rtsee-messenger-profile-data-container\">\n <rtsee-profile *ngIf=\"isExpanded\" [messenger]=\"messenger\"></rtsee-profile>\n </div>\n </div>\n\n <p *ngIf=\"!messenger.openedChat\"\n class=\"rtsee-messenger-header-title\"\n >Messaging</p>\n</div>\n", components: [{ type: ProfileComponent, selector: "rtsee-profile", inputs: ["messenger"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
293
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessengerHeaderComponent, decorators: [{
|
|
294
|
-
type: i0.Component,
|
|
295
|
-
args: [{
|
|
296
|
-
selector: 'rtsee-messenger-header',
|
|
297
|
-
templateUrl: './messenger-header.component.html',
|
|
298
|
-
}]
|
|
299
|
-
}], ctorParameters: function () { return [{ type: DefaultImagesService }]; }, propDecorators: { expandToggled: [{
|
|
300
|
-
type: i0.Output
|
|
301
|
-
}], isExpanded: [{
|
|
302
|
-
type: i0.Input
|
|
303
|
-
}], messenger: [{
|
|
304
|
-
type: i0.Input
|
|
305
|
-
}] } });
|
|
306
|
-
|
|
307
|
-
dayjs__namespace.extend(relativeTime__namespace);
|
|
308
|
-
var TimeFormatHelperService = /** @class */ (function () {
|
|
309
|
-
function TimeFormatHelperService() {
|
|
310
|
-
}
|
|
311
|
-
TimeFormatHelperService.prototype.toAgo = function (time) {
|
|
312
|
-
/* eslint-disable */
|
|
313
|
-
return dayjs__namespace(time).fromNow();
|
|
314
|
-
/* eslint-enable */
|
|
315
|
-
};
|
|
316
|
-
TimeFormatHelperService.prototype.toDayOfWeek = function (time) {
|
|
317
|
-
/* eslint-disable */
|
|
318
|
-
return dayjs__namespace(time).format('ddd');
|
|
319
|
-
/* eslint-enable */
|
|
320
|
-
};
|
|
321
|
-
TimeFormatHelperService.prototype.toTime = function (time) {
|
|
322
|
-
/* eslint-disable */
|
|
323
|
-
return dayjs__namespace(time).format('HH:mm');
|
|
324
|
-
/* eslint-enable */
|
|
325
|
-
};
|
|
326
|
-
TimeFormatHelperService.prototype.toDate = function (time) {
|
|
327
|
-
/* eslint-disable */
|
|
328
|
-
return dayjs__namespace(time).format('D MMMM');
|
|
329
|
-
/* eslint-enable */
|
|
330
|
-
};
|
|
331
|
-
TimeFormatHelperService.prototype.toDateNumeral = function (time) {
|
|
332
|
-
/* eslint-disable */
|
|
333
|
-
return dayjs__namespace(time).format('DD.MM');
|
|
334
|
-
/* eslint-enable */
|
|
335
|
-
};
|
|
336
|
-
TimeFormatHelperService.prototype.toDateNumeralWithYear = function (time) {
|
|
337
|
-
/* eslint-disable */
|
|
338
|
-
return dayjs__namespace(time).format('DD.MM.YY');
|
|
339
|
-
/* eslint-enable */
|
|
340
|
-
};
|
|
341
|
-
TimeFormatHelperService.prototype.toDateWithYear = function (time) {
|
|
342
|
-
/* eslint-disable */
|
|
343
|
-
return dayjs__namespace(time).format('MMMM D, YYYY ');
|
|
344
|
-
/* eslint-enable */
|
|
345
|
-
};
|
|
346
|
-
TimeFormatHelperService.prototype.formatDate = function (time) {
|
|
347
|
-
var today = new Date();
|
|
348
|
-
var dayMs = 1000 * 60 * 60 * 24;
|
|
349
|
-
var twoDays = dayMs * 2;
|
|
350
|
-
if (!time) {
|
|
351
|
-
return '';
|
|
352
|
-
}
|
|
353
|
-
if (today.getTime() - time.getTime() < dayMs &&
|
|
354
|
-
today.getDay() === time.getDay()) {
|
|
355
|
-
return 'Today';
|
|
356
|
-
}
|
|
357
|
-
if (today.getTime() - time.getTime() < twoDays &&
|
|
358
|
-
today.getTime() - time.getTime() > dayMs &&
|
|
359
|
-
today.getDay() !== time.getDay()) {
|
|
360
|
-
return 'Yesterday';
|
|
361
|
-
}
|
|
362
|
-
if (today.getFullYear() === time.getFullYear()) {
|
|
363
|
-
return this.toDate(time);
|
|
364
|
-
}
|
|
365
|
-
return this.toDateWithYear(time);
|
|
366
|
-
};
|
|
367
|
-
TimeFormatHelperService.prototype.formatTimeOrDate = function (time) {
|
|
368
|
-
if (!time) {
|
|
369
|
-
return '';
|
|
370
|
-
}
|
|
371
|
-
var today = new Date();
|
|
372
|
-
var dayMs = 1000 * 60 * 60 * 24;
|
|
373
|
-
if (today.getTime() - time.getTime() < dayMs &&
|
|
374
|
-
today.getDay() === time.getDay()) {
|
|
375
|
-
return this.toTime(time);
|
|
376
|
-
}
|
|
377
|
-
if (today.getTime() - time.getTime() > dayMs &&
|
|
378
|
-
today.getTime() - time.getTime() < dayMs * 7) {
|
|
379
|
-
return this.toDayOfWeek(time);
|
|
380
|
-
}
|
|
381
|
-
if (today.getTime() - time.getTime() > dayMs * 7 &&
|
|
382
|
-
today.getFullYear() === time.getFullYear()) {
|
|
383
|
-
return this.toDateNumeral(time);
|
|
384
|
-
}
|
|
385
|
-
return this.toDateNumeralWithYear(time);
|
|
386
|
-
};
|
|
387
|
-
return TimeFormatHelperService;
|
|
388
|
-
}());
|
|
389
|
-
TimeFormatHelperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: TimeFormatHelperService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
390
|
-
TimeFormatHelperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: TimeFormatHelperService, providedIn: 'root' });
|
|
391
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: TimeFormatHelperService, decorators: [{
|
|
392
|
-
type: i0.Injectable,
|
|
393
|
-
args: [{
|
|
394
|
-
providedIn: 'root',
|
|
395
|
-
}]
|
|
396
|
-
}] });
|
|
397
|
-
|
|
398
|
-
var PreloaderComponent = /** @class */ (function () {
|
|
399
|
-
function PreloaderComponent() {
|
|
400
|
-
this.viewBox = '0 0 100 100';
|
|
401
|
-
this.d = 'M 50 96 a 46 46 0 0 1 0 -92 46 46 0 0 1 0 92';
|
|
402
|
-
this.color = '#000000';
|
|
403
|
-
if (this.diameter) {
|
|
404
|
-
this.viewBox = "0 0 " + this.diameter + " " + this.diameter;
|
|
405
|
-
this.d = "M " + this.diameter / 2 + " " + this.diameter * 0.96 + " a " + this.diameter * 0.46 + " " + this.diameter * 0.46 + " 0 0 1 0 -" + this.diameter * 0.92 + " " + this.diameter * 0.46 + " " + this.diameter * 0.46 + " 0 0 1 0 " + this.diameter * 0.92;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
PreloaderComponent.prototype.ngOnInit = function () {
|
|
409
|
-
//viewBox="0 0 100 100"
|
|
410
|
-
//d="M 50 96 a 46 46 0 0 1 0 -92 46 46 0 0 1 0 92"
|
|
411
|
-
};
|
|
412
|
-
return PreloaderComponent;
|
|
413
|
-
}());
|
|
414
|
-
PreloaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: PreloaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
415
|
-
PreloaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: PreloaderComponent, selector: "rtsee-preloader", inputs: { diameter: "diameter", color: "color" }, viewQueries: [{ propertyName: "canvas", first: true, predicate: ["canvas"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"rtsee-preloader\">\n <svg [style.max-width.px]=\"diameter\" #canvas [attr.viewBox]=\"viewBox\">\n <path [attr.d]=\"d\" [attr.stroke]=\"color\"/>\n </svg>\n</div>\n" });
|
|
416
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: PreloaderComponent, decorators: [{
|
|
417
|
-
type: i0.Component,
|
|
418
|
-
args: [{
|
|
419
|
-
selector: 'rtsee-preloader',
|
|
420
|
-
templateUrl: './preloader.component.html',
|
|
421
|
-
}]
|
|
422
|
-
}], ctorParameters: function () { return []; }, propDecorators: { canvas: [{
|
|
423
|
-
type: i0.ViewChild,
|
|
424
|
-
args: ['canvas']
|
|
425
|
-
}], diameter: [{
|
|
426
|
-
type: i0.Input
|
|
427
|
-
}], color: [{
|
|
428
|
-
type: i0.Input
|
|
429
|
-
}] } });
|
|
430
|
-
|
|
431
|
-
var MessageTimeAndStatusComponent = /** @class */ (function () {
|
|
432
|
-
function MessageTimeAndStatusComponent(timeFormatService) {
|
|
433
|
-
this.timeFormatService = timeFormatService;
|
|
434
|
-
}
|
|
435
|
-
return MessageTimeAndStatusComponent;
|
|
436
|
-
}());
|
|
437
|
-
MessageTimeAndStatusComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessageTimeAndStatusComponent, deps: [{ token: TimeFormatHelperService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
438
|
-
MessageTimeAndStatusComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: MessageTimeAndStatusComponent, selector: "rtsee-message-time-and-status", inputs: { message: "message", hideStatus: "hideStatus" }, ngImport: i0__namespace, template: "<div class=\"rtsee-messenger-message-time-and-status\">\n <span class=\"rtsee-messenger-message-status\" *ngIf=\"!hideStatus\">\n <span *ngIf=\"message.status === 'pending'\"><rtsee-preloader [diameter]=\"5\"></rtsee-preloader></span>\n <span *ngIf=\"message.status === 'sent'\" class=\"material-icons-outlined rtsee-message-sent-status\">check</span>\n <span *ngIf=\"message.status === 'delivered'\" class=\"material-icons-outlined rtsee-message-delivered-status\">check</span>\n <span *ngIf=\"message.status === 'seen'\" class=\"material-icons-outlined rtsee-message-seen-status\">done_all</span>\n </span>\n <span class=\"rtsee-messenger-message-time\">{{timeFormatService.formatTimeOrDate(message.createdAt)}}</span>\n</div>\n", components: [{ type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
439
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessageTimeAndStatusComponent, decorators: [{
|
|
440
|
-
type: i0.Component,
|
|
441
|
-
args: [{
|
|
442
|
-
selector: 'rtsee-message-time-and-status',
|
|
443
|
-
templateUrl: './message-time-and-status.component.html',
|
|
444
|
-
}]
|
|
445
|
-
}], ctorParameters: function () { return [{ type: TimeFormatHelperService }]; }, propDecorators: { message: [{
|
|
446
|
-
type: i0.Input
|
|
447
|
-
}], hideStatus: [{
|
|
448
|
-
type: i0.Input
|
|
449
|
-
}] } });
|
|
450
|
-
|
|
451
|
-
var ShaveDirective = /** @class */ (function () {
|
|
452
|
-
function ShaveDirective(elem) {
|
|
453
|
-
this.elem = elem;
|
|
454
|
-
}
|
|
455
|
-
ShaveDirective.prototype.ngAfterViewInit = function () {
|
|
456
|
-
var _a;
|
|
457
|
-
var height = (_a = this.elem.nativeElement) === null || _a === void 0 ? void 0 : _a.offsetHeight;
|
|
458
|
-
shave__default['default'](this.elem.nativeElement, height);
|
|
459
|
-
};
|
|
460
|
-
return ShaveDirective;
|
|
461
|
-
}());
|
|
462
|
-
ShaveDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ShaveDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
463
|
-
ShaveDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.1.2", type: ShaveDirective, selector: "[rtseeShave]", ngImport: i0__namespace });
|
|
464
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ShaveDirective, decorators: [{
|
|
465
|
-
type: i0.Directive,
|
|
466
|
-
args: [{
|
|
467
|
-
selector: '[rtseeShave]',
|
|
468
|
-
}]
|
|
469
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; } });
|
|
470
|
-
|
|
471
|
-
var ChatThumbnailComponent = /** @class */ (function () {
|
|
472
|
-
function ChatThumbnailComponent(timeFormatService) {
|
|
473
|
-
this.timeFormatService = timeFormatService;
|
|
474
|
-
this.RTSeeChatTypes = common.RTSeeChatTypes;
|
|
475
|
-
}
|
|
476
|
-
return ChatThumbnailComponent;
|
|
477
|
-
}());
|
|
478
|
-
ChatThumbnailComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ChatThumbnailComponent, deps: [{ token: TimeFormatHelperService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
479
|
-
ChatThumbnailComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: ChatThumbnailComponent, selector: "rtsee-chat-thumbnail", inputs: { chat: "chat", messenger: "messenger" }, ngImport: i0__namespace, template: "<div class=\"rtsee-chat-thumbnail\" (click)=\"messenger.openChatById(chat.chatId)\">\n <div class=\"rtsee-chat-thumbnail-image\">\n <img [src]=\"chat.chatImageUrl\" alt=\"chat-img\">\n </div>\n <div class=\"rtsee-chat-thumbnail-left\">\n <div class=\"rtsee-chat-thumbnail-name\">\n <span>{{ chat.chatName }}</span>\n <div class=\"rtsee-chat-thumbnail-status\">\n <rtsee-message-time-and-status [message]=\"chat\"></rtsee-message-time-and-status>\n </div>\n </div>\n <div class=\"rtsee-chat-thumbnail-last-message\"\n [ngClass]=\"{'rtsee-has-unread': chat.unreadMessagesCount}\"\n rtseeShave>\n <span class=\"rtsee-chat-thumbnail-last-message-sender\"\n *ngIf=\"chat.chatType !== RTSeeChatTypes.INDIVIDUAL && chat.senderName\"\n >{{chat.senderName}}</span>\n <span class=\"rtsee-chat-thumbnail-last-message-text\"\n *ngIf=\"chat.text\"\n >{{chat.text}}</span>\n <div class=\"rtsee-messenger-thumbnail-unread\" *ngIf=\"chat.unreadMessagesCount\">\n <span class=\"rtsee-messenger-thumbnail-unread-count\">{{chat.unreadMessagesCount}}</span>\n </div>\n </div>\n </div>\n</div>\n", components: [{ type: MessageTimeAndStatusComponent, selector: "rtsee-message-time-and-status", inputs: ["message", "hideStatus"] }], directives: [{ type: ShaveDirective, selector: "[rtseeShave]" }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
480
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ChatThumbnailComponent, decorators: [{
|
|
481
|
-
type: i0.Component,
|
|
482
|
-
args: [{
|
|
483
|
-
selector: 'rtsee-chat-thumbnail',
|
|
484
|
-
templateUrl: './chat-thumbnail.component.html',
|
|
485
|
-
}]
|
|
486
|
-
}], ctorParameters: function () { return [{ type: TimeFormatHelperService }]; }, propDecorators: { chat: [{
|
|
487
|
-
type: i0.Input
|
|
488
|
-
}], messenger: [{
|
|
489
|
-
type: i0.Input
|
|
490
|
-
}] } });
|
|
491
|
-
|
|
492
|
-
var ChatsListComponent = /** @class */ (function () {
|
|
493
|
-
function ChatsListComponent() {
|
|
494
|
-
}
|
|
495
|
-
ChatsListComponent.prototype.ngOnInit = function () {
|
|
496
|
-
// console.log(this.chats);
|
|
497
|
-
};
|
|
498
|
-
return ChatsListComponent;
|
|
499
|
-
}());
|
|
500
|
-
ChatsListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ChatsListComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
501
|
-
ChatsListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: ChatsListComponent, selector: "rtsee-chats-list", inputs: { messenger: "messenger", chats: "chats" }, ngImport: i0__namespace, template: "<div class=\"rtsee-chats-list\">\n <div class=\"rtsee-chat-thumbnail-container\" *ngFor=\"let chat of chats; let last = last;\">\n <rtsee-chat-thumbnail [chat]=\"chat.thumbnail\" [messenger]=\"messenger\"></rtsee-chat-thumbnail>\n<!-- <div class=\"rtsee-chat-thumbnail-separator\" *ngIf=\"!last\"></div>-->\n </div>\n</div>\n", components: [{ type: ChatThumbnailComponent, selector: "rtsee-chat-thumbnail", inputs: ["chat", "messenger"] }], directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
502
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ChatsListComponent, decorators: [{
|
|
503
|
-
type: i0.Component,
|
|
504
|
-
args: [{
|
|
505
|
-
selector: 'rtsee-chats-list',
|
|
506
|
-
templateUrl: './chats-list.component.html',
|
|
507
|
-
}]
|
|
508
|
-
}], propDecorators: { messenger: [{
|
|
509
|
-
type: i0.Input
|
|
510
|
-
}], chats: [{
|
|
511
|
-
type: i0.Input
|
|
512
|
-
}] } });
|
|
513
|
-
|
|
514
|
-
var WidgetDirective = /** @class */ (function () {
|
|
515
|
-
function WidgetDirective(viewContainerRef) {
|
|
516
|
-
this.viewContainerRef = viewContainerRef;
|
|
517
|
-
}
|
|
518
|
-
return WidgetDirective;
|
|
519
|
-
}());
|
|
520
|
-
WidgetDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WidgetDirective, deps: [{ token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
521
|
-
WidgetDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.1.2", type: WidgetDirective, selector: "[widgetHost]", ngImport: i0__namespace });
|
|
522
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: WidgetDirective, decorators: [{
|
|
523
|
-
type: i0.Directive,
|
|
524
|
-
args: [{
|
|
525
|
-
selector: '[widgetHost]',
|
|
526
|
-
}]
|
|
527
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ViewContainerRef }]; } });
|
|
528
|
-
|
|
529
|
-
var CallWidgetComponent = /** @class */ (function () {
|
|
530
|
-
function CallWidgetComponent() {
|
|
531
|
-
}
|
|
532
|
-
CallWidgetComponent.prototype.ngOnInit = function () {
|
|
533
|
-
var _a, _b, _c;
|
|
534
|
-
if (this.messenger.clientId === ((_a = this.message.data) === null || _a === void 0 ? void 0 : _a.callerId)) {
|
|
535
|
-
this.callerName = 'You';
|
|
536
|
-
}
|
|
537
|
-
else {
|
|
538
|
-
this.callerName = (_c = (_b = this.message.data) === null || _b === void 0 ? void 0 : _b.caller) === null || _c === void 0 ? void 0 : _c.name;
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
CallWidgetComponent.prototype.joinCall = function () {
|
|
542
|
-
var _a;
|
|
543
|
-
if (!this.messenger || !((_a = this.message.data) === null || _a === void 0 ? void 0 : _a.roomId)) {
|
|
544
|
-
console.log('No Room Id specified or no messenger!');
|
|
545
|
-
return;
|
|
546
|
-
}
|
|
547
|
-
void this.messenger.joinCall(this.message.data.roomId);
|
|
548
|
-
};
|
|
549
|
-
return CallWidgetComponent;
|
|
550
|
-
}());
|
|
551
|
-
CallWidgetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CallWidgetComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
552
|
-
CallWidgetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: CallWidgetComponent, selector: "ngx-call-widget", inputs: { message: "message", messenger: "messenger" }, ngImport: i0__namespace, template: "<div class=\"rtsee-call-widget\">\n <p *ngIf=\"callerName\"> {{ callerName }} has started a call</p>\n <p *ngIf=\"callerName === 'You'\"> You have started a call</p>\n <p *ngIf=\"!callerName\"> The call has started</p>\n <button (click)=\"joinCall()\">Join Call</button>\n</div>\n", styles: [""], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
553
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: CallWidgetComponent, decorators: [{
|
|
554
|
-
type: i0.Component,
|
|
555
|
-
args: [{
|
|
556
|
-
selector: 'ngx-call-widget',
|
|
557
|
-
templateUrl: './call-widget.component.html',
|
|
558
|
-
styleUrls: ['./call-widget.component.css'],
|
|
559
|
-
}]
|
|
560
|
-
}], propDecorators: { message: [{
|
|
561
|
-
type: i0.Input
|
|
562
|
-
}], messenger: [{
|
|
563
|
-
type: i0.Input
|
|
564
|
-
}] } });
|
|
565
|
-
|
|
566
|
-
var MessageWidgetsService = /** @class */ (function () {
|
|
567
|
-
function MessageWidgetsService() {
|
|
568
|
-
this.widgetsMap = [
|
|
569
|
-
{ name: 'rtsee-call', component: CallWidgetComponent },
|
|
570
|
-
];
|
|
571
|
-
}
|
|
572
|
-
MessageWidgetsService.prototype.getWidgetComponentByName = function (name) {
|
|
573
|
-
/* eslint-disable */
|
|
574
|
-
var mapping = this.widgetsMap.find(function (e) { return e.name === name; });
|
|
575
|
-
if (!mapping) {
|
|
576
|
-
return null;
|
|
577
|
-
}
|
|
578
|
-
return mapping.component;
|
|
579
|
-
/* eslint-enable */
|
|
580
|
-
};
|
|
581
|
-
return MessageWidgetsService;
|
|
582
|
-
}());
|
|
583
|
-
MessageWidgetsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessageWidgetsService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
584
|
-
MessageWidgetsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessageWidgetsService, providedIn: 'root' });
|
|
585
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessageWidgetsService, decorators: [{
|
|
586
|
-
type: i0.Injectable,
|
|
587
|
-
args: [{
|
|
588
|
-
providedIn: 'root',
|
|
589
|
-
}]
|
|
590
|
-
}] });
|
|
591
|
-
|
|
592
|
-
var MessageComponent = /** @class */ (function () {
|
|
593
|
-
function MessageComponent(widgetsService, componentFactoryResolver, timeFormatService) {
|
|
594
|
-
this.widgetsService = widgetsService;
|
|
595
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
596
|
-
this.timeFormatService = timeFormatService;
|
|
597
|
-
}
|
|
598
|
-
MessageComponent.prototype.ngAfterViewInit = function () {
|
|
599
|
-
/* eslint-disable */
|
|
600
|
-
if (this.message.widget) {
|
|
601
|
-
var widget = this.widgetsService.getWidgetComponentByName(this.message.widget);
|
|
602
|
-
if (!widget) {
|
|
603
|
-
return;
|
|
604
|
-
}
|
|
605
|
-
var viewContainerRef = this.widgetHost.viewContainerRef;
|
|
606
|
-
viewContainerRef.clear();
|
|
607
|
-
var componentToShow = this.componentFactoryResolver.resolveComponentFactory(widget);
|
|
608
|
-
var componentRef = viewContainerRef.createComponent(componentToShow);
|
|
609
|
-
componentRef.instance.message = this.message;
|
|
610
|
-
componentRef.instance.messenger = this.messenger;
|
|
611
|
-
componentRef.changeDetectorRef.detectChanges();
|
|
612
|
-
}
|
|
613
|
-
/* eslint-enable */
|
|
614
|
-
};
|
|
615
|
-
return MessageComponent;
|
|
616
|
-
}());
|
|
617
|
-
MessageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessageComponent, deps: [{ token: MessageWidgetsService }, { token: i0__namespace.ComponentFactoryResolver }, { token: TimeFormatHelperService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
618
|
-
MessageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: MessageComponent, selector: "rtsee-message", inputs: { chat: "chat", message: "message", member: "member", messenger: "messenger" }, viewQueries: [{ propertyName: "widgetHost", first: true, predicate: WidgetDirective, descendants: true }], ngImport: i0__namespace, template: "<div class=\"rtsee-messenger-message-container\" #rtsMessageContainer\n [ngClass]=\"{'rtsee-message-from-me': message.from === messenger.clientId}\"\n>\n <div class=\"rtsee-messenger-message\">\n <ng-template *ngIf=\"message.widget\" widgetHost></ng-template>\n <p *ngIf=\"!message.widget\"\n class=\"rtsee-messenger-message-text\"\n >{{ message.text }}</p>\n <div class=\"rtsee-messenger-message-info\" #rtsMessageInfo>\n <rtsee-message-time-and-status [message]=\"message\"\n [hideStatus]=\"message.from !== messenger.clientId\"\n ></rtsee-message-time-and-status>\n </div>\n </div>\n <div class=\"message-tail\"></div>\n</div>\n", components: [{ type: MessageTimeAndStatusComponent, selector: "rtsee-message-time-and-status", inputs: ["message", "hideStatus"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: WidgetDirective, selector: "[widgetHost]" }] });
|
|
619
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessageComponent, decorators: [{
|
|
620
|
-
type: i0.Component,
|
|
621
|
-
args: [{
|
|
622
|
-
selector: 'rtsee-message',
|
|
623
|
-
templateUrl: './message.component.html',
|
|
624
|
-
}]
|
|
625
|
-
}], ctorParameters: function () { return [{ type: MessageWidgetsService }, { type: i0__namespace.ComponentFactoryResolver }, { type: TimeFormatHelperService }]; }, propDecorators: { chat: [{
|
|
626
|
-
type: i0.Input
|
|
627
|
-
}], message: [{
|
|
628
|
-
type: i0.Input
|
|
629
|
-
}], member: [{
|
|
630
|
-
type: i0.Input
|
|
631
|
-
}], messenger: [{
|
|
632
|
-
type: i0.Input
|
|
633
|
-
}], widgetHost: [{
|
|
634
|
-
type: i0.ViewChild,
|
|
635
|
-
args: [WidgetDirective, { static: false }]
|
|
636
|
-
}] } });
|
|
637
|
-
|
|
638
|
-
var MessagesListComponent = /** @class */ (function () {
|
|
639
|
-
function MessagesListComponent(timeFormatService) {
|
|
640
|
-
this.timeFormatService = timeFormatService;
|
|
641
|
-
this.bindScrollFunction = this.scrollToBottom.bind(this);
|
|
642
|
-
}
|
|
643
|
-
MessagesListComponent.prototype.ngOnInit = function () {
|
|
644
|
-
this.chat.on(messenger.RTSeeChatEvents.MESSAGE_ADDED, this.bindScrollFunction);
|
|
645
|
-
};
|
|
646
|
-
MessagesListComponent.prototype.ngAfterViewInit = function () {
|
|
647
|
-
this.scrollToBottom();
|
|
648
|
-
};
|
|
649
|
-
MessagesListComponent.prototype.onMessageSent = function () {
|
|
650
|
-
this.scrollToBottom();
|
|
651
|
-
};
|
|
652
|
-
MessagesListComponent.prototype.ngOnDestroy = function () {
|
|
653
|
-
this.chat.off(messenger.RTSeeChatEvents.MESSAGE_ADDED, this.bindScrollFunction);
|
|
654
|
-
};
|
|
655
|
-
MessagesListComponent.prototype.onScrolledToTop = function () {
|
|
656
|
-
if (this.chat.messagesLoadInProgress) {
|
|
657
|
-
return;
|
|
658
|
-
}
|
|
659
|
-
this.chat.loadRemoteMessages();
|
|
660
|
-
};
|
|
661
|
-
MessagesListComponent.prototype.onScroll = function () {
|
|
662
|
-
if (this.scrollContainer.nativeElement.scrollTop < 1) {
|
|
663
|
-
this.scrollContainer.nativeElement.scrollTop = 1;
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
MessagesListComponent.prototype.scrollToBottom = function () {
|
|
667
|
-
var _a, _b;
|
|
668
|
-
if (!((_b = (_a = this.scrollContainer) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.scrollHeight)) {
|
|
669
|
-
return;
|
|
670
|
-
}
|
|
671
|
-
try {
|
|
672
|
-
this.scrollContainer.nativeElement.scrollTop =
|
|
673
|
-
this.scrollContainer.nativeElement.scrollHeight;
|
|
674
|
-
}
|
|
675
|
-
catch (err) {
|
|
676
|
-
console.log('Failed to Scroll');
|
|
677
|
-
}
|
|
678
|
-
};
|
|
679
|
-
MessagesListComponent.prototype.formatDate = function (message) {
|
|
680
|
-
return this.timeFormatService.formatDate(message.createdAt);
|
|
681
|
-
};
|
|
682
|
-
return MessagesListComponent;
|
|
683
|
-
}());
|
|
684
|
-
MessagesListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessagesListComponent, deps: [{ token: TimeFormatHelperService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
685
|
-
MessagesListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: MessagesListComponent, selector: "rtsee-messages-list", inputs: { chat: "chat", messenger: "messenger" }, viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollBlock"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"rtsee-messenger-messages-list\"\n #scrollBlock\n infiniteScroll\n [infiniteScrollUpDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n [scrollWindow]=\"false\"\n (scrolledUp)=\"onScrolledToTop()\"\n (scroll)=\"onScroll()\"\n>\n <div *ngFor=\"let message of chat.messages; let i = index;\"\n [ngClass]=\"{'rtsee-messenger-message-wrapper-consecutive': message.from === chat.messages[i+1]?.from}\"\n class=\"rtsee-messenger-message-wrapper\"\n >\n <div *ngIf=\"message.hasDateChanged\" class=\"rtsee-messenger-message-date\">\n <span>{{formatDate(message)}}</span>\n </div>\n <rtsee-message [message]=\"message\" [messenger]=\"messenger\" [chat]=\"chat\"></rtsee-message>\n </div>\n</div>\n", components: [{ type: MessageComponent, selector: "rtsee-message", inputs: ["chat", "message", "member", "messenger"] }], directives: [{ type: i3__namespace$2.InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
686
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessagesListComponent, decorators: [{
|
|
687
|
-
type: i0.Component,
|
|
688
|
-
args: [{
|
|
689
|
-
selector: 'rtsee-messages-list',
|
|
690
|
-
templateUrl: './messages-list.component.html',
|
|
691
|
-
}]
|
|
692
|
-
}], ctorParameters: function () { return [{ type: TimeFormatHelperService }]; }, propDecorators: { chat: [{
|
|
693
|
-
type: i0.Input
|
|
694
|
-
}], messenger: [{
|
|
695
|
-
type: i0.Input
|
|
696
|
-
}], scrollContainer: [{
|
|
697
|
-
type: i0.ViewChild,
|
|
698
|
-
args: ['scrollBlock']
|
|
699
|
-
}] } });
|
|
700
|
-
|
|
701
|
-
var ChatInputComponent = /** @class */ (function () {
|
|
702
|
-
function ChatInputComponent() {
|
|
703
|
-
this.sendMessageForm = new i1$1.FormGroup({
|
|
704
|
-
/* eslint-disable */
|
|
705
|
-
message: new i1$1.FormControl('', i1$1.Validators.required),
|
|
706
|
-
/* eslint-enable */
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
ChatInputComponent.prototype.sendMessage = function () {
|
|
710
|
-
var _a, _b;
|
|
711
|
-
var text = (_a = this.sendMessageForm.get('message')) === null || _a === void 0 ? void 0 : _a.value;
|
|
712
|
-
if (!text) {
|
|
713
|
-
return;
|
|
714
|
-
}
|
|
715
|
-
this.chat.sendMessage(text);
|
|
716
|
-
(_b = this.sendMessageForm.get('message')) === null || _b === void 0 ? void 0 : _b.setValue('');
|
|
717
|
-
};
|
|
718
|
-
return ChatInputComponent;
|
|
719
|
-
}());
|
|
720
|
-
ChatInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ChatInputComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
721
|
-
ChatInputComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: ChatInputComponent, selector: "rtsee-chat-input", inputs: { messenger: "messenger", chat: "chat" }, ngImport: i0__namespace, template: "<div class=\"rtsee-chat-input\" xmlns=\"http://www.w3.org/1999/html\">\n <div class=\"rtsee-send-message\">\n <form [formGroup]=\"sendMessageForm\">\n <textarea\n placeholder=\"Type message...\"\n type=\"text\"\n formControlName=\"message\"\n class=\"rtsee-chat-input-field\"\n autosize\n required\n ></textarea>\n </form>\n </div>\n <button (click)=\"sendMessage()\"\n class=\"rtsee-send-message-button\"\n type=\"submit\">\n <span class=\"material-icons-outlined\">send</span>\n </button>\n</div>\n", directives: [{ type: i1__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i1__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2__namespace.AutosizeDirective, selector: "[autosize]", inputs: ["onlyGrow", "useImportant", "minRows", "autosize", "maxRows"], outputs: ["resized"] }, { type: i1__namespace$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }] });
|
|
722
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ChatInputComponent, decorators: [{
|
|
723
|
-
type: i0.Component,
|
|
724
|
-
args: [{
|
|
725
|
-
selector: 'rtsee-chat-input',
|
|
726
|
-
templateUrl: './chat-input.component.html',
|
|
727
|
-
}]
|
|
728
|
-
}], propDecorators: { messenger: [{
|
|
729
|
-
type: i0.Input
|
|
730
|
-
}], chat: [{
|
|
731
|
-
type: i0.Input
|
|
732
|
-
}] } });
|
|
733
|
-
|
|
734
|
-
var ChatComponent = /** @class */ (function () {
|
|
735
|
-
function ChatComponent() {
|
|
736
|
-
}
|
|
737
|
-
return ChatComponent;
|
|
738
|
-
}());
|
|
739
|
-
ChatComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ChatComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
740
|
-
ChatComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: ChatComponent, selector: "rtsee-chat", inputs: { chat: "chat", messenger: "messenger" }, ngImport: i0__namespace, template: "<div class=\"rtsee-chat\">\n <div class=\"rtsee-chat-body-container\">\n <rtsee-messages-list [messenger]=\"messenger\" [chat]=\"chat\"></rtsee-messages-list>\n </div>\n <div class=\"rtsee-chat-footer-container\">\n <rtsee-chat-input [messenger]=\"messenger\" [chat]=\"chat\"></rtsee-chat-input>\n </div>\n</div>\n", components: [{ type: MessagesListComponent, selector: "rtsee-messages-list", inputs: ["chat", "messenger"] }, { type: ChatInputComponent, selector: "rtsee-chat-input", inputs: ["messenger", "chat"] }] });
|
|
741
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ChatComponent, decorators: [{
|
|
742
|
-
type: i0.Component,
|
|
743
|
-
args: [{
|
|
744
|
-
selector: 'rtsee-chat',
|
|
745
|
-
templateUrl: './chat.component.html',
|
|
746
|
-
}]
|
|
747
|
-
}], propDecorators: { chat: [{
|
|
748
|
-
type: i0.Input
|
|
749
|
-
}], messenger: [{
|
|
750
|
-
type: i0.Input
|
|
751
|
-
}] } });
|
|
752
|
-
|
|
753
|
-
var MainMenuPanels;
|
|
754
|
-
(function (MainMenuPanels) {
|
|
755
|
-
MainMenuPanels["HOME"] = "home";
|
|
756
|
-
MainMenuPanels["CONTACTS_SELECT"] = "contacts-select";
|
|
757
|
-
MainMenuPanels["MANAGE_CHAT"] = "manage-chat";
|
|
758
|
-
})(MainMenuPanels || (MainMenuPanels = {}));
|
|
759
|
-
var DEFAULT_MAIN_MENU_STATE = MainMenuPanels.HOME;
|
|
760
|
-
|
|
761
|
-
var SearchComponent = /** @class */ (function () {
|
|
762
|
-
function SearchComponent() {
|
|
763
|
-
this.queryControl = new i1$1.FormControl();
|
|
764
|
-
}
|
|
765
|
-
SearchComponent.prototype.ngOnInit = function () {
|
|
766
|
-
var _this = this;
|
|
767
|
-
this.queryCtrlSub = this.queryControl.valueChanges
|
|
768
|
-
.pipe(operators.debounceTime(200))
|
|
769
|
-
.subscribe(function (value) { return _this.search.onQueryChange(value); });
|
|
770
|
-
};
|
|
771
|
-
SearchComponent.prototype.ngOnDestroy = function () {
|
|
772
|
-
if (this.queryCtrlSub) {
|
|
773
|
-
this.queryCtrlSub.unsubscribe();
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
return SearchComponent;
|
|
777
|
-
}());
|
|
778
|
-
SearchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: SearchComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
779
|
-
SearchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: SearchComponent, selector: "rtsee-search", inputs: { search: "search" }, ngImport: i0__namespace, template: "<div class=\"rtsee-messenger-search\">\n <input type=\"text\"\n [formControl]=\"queryControl\"\n class=\"rtsee-messenger-search-input\"\n placeholder=\"Search\"/>\n</div>\n\n<div class=\"rtsee-messenger-search-results\">\n <rtsee-preloader [diameter]=\"50\" *ngIf=\"search.searchInProgress\"></rtsee-preloader>\n <p>Chats</p>\n <div class=\"rtsee-messenger-search-results-chats\">\n <div *ngFor=\"let chat of search.results.chats\" class=\"rtsee-messenger-search-results-chat-wrapper\">\n <p>{{chat.name}}</p>\n </div>\n </div>\n <p>Messages</p>\n <div class=\"rtsee-messenger-search-results-messages\">\n <div *ngFor=\"let message of search.results.messages\" class=\"rtsee-messenger-search-results-message-wrapper\">\n <p>{{message.chatName || message.senderName }}</p>\n </div>\n </div>\n</div>\n", components: [{ type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }], directives: [{ type: i1__namespace$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
780
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: SearchComponent, decorators: [{
|
|
781
|
-
type: i0.Component,
|
|
782
|
-
args: [{
|
|
783
|
-
selector: 'rtsee-search',
|
|
784
|
-
templateUrl: './search.component.html',
|
|
785
|
-
}]
|
|
786
|
-
}], propDecorators: { search: [{
|
|
787
|
-
type: i0.Input
|
|
788
|
-
}] } });
|
|
789
|
-
|
|
790
|
-
var ManageChatComponent = /** @class */ (function () {
|
|
791
|
-
function ManageChatComponent() {
|
|
792
|
-
}
|
|
793
|
-
ManageChatComponent.prototype.onInviteContactsClicked = function () {
|
|
794
|
-
this.menuState.activePanel = MainMenuPanels.CONTACTS_SELECT;
|
|
795
|
-
};
|
|
796
|
-
return ManageChatComponent;
|
|
797
|
-
}());
|
|
798
|
-
ManageChatComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ManageChatComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
799
|
-
ManageChatComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: ManageChatComponent, selector: "rtsee-manage-chat", inputs: { messenger: "messenger", menuState: "menuState" }, ngImport: i0__namespace, template: "<div class=\"rtsee-messenger-manage-chat\">\n <p>We are going to manage chat here</p>\n <button (click)=\"onInviteContactsClicked()\">Invite Contacts</button>\n</div>\n", styles: [""] });
|
|
800
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ManageChatComponent, decorators: [{
|
|
801
|
-
type: i0.Component,
|
|
802
|
-
args: [{
|
|
803
|
-
selector: 'rtsee-manage-chat',
|
|
804
|
-
templateUrl: './manage-chat.component.html',
|
|
805
|
-
styleUrls: ['./manage-chat.component.scss'],
|
|
806
|
-
}]
|
|
807
|
-
}], propDecorators: { messenger: [{
|
|
808
|
-
type: i0.Input
|
|
809
|
-
}], menuState: [{
|
|
810
|
-
type: i0.Input
|
|
811
|
-
}] } });
|
|
812
|
-
|
|
813
|
-
var ContactsMultiselectComponent = /** @class */ (function () {
|
|
814
|
-
function ContactsMultiselectComponent() {
|
|
815
|
-
}
|
|
816
|
-
return ContactsMultiselectComponent;
|
|
817
|
-
}());
|
|
818
|
-
ContactsMultiselectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ContactsMultiselectComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
819
|
-
ContactsMultiselectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: ContactsMultiselectComponent, selector: "rtsee-contacts-multiselect", inputs: { menuState: "menuState", search: "search" }, ngImport: i0__namespace, template: "<div class=\"rtsee-messenger-contacts-multiselect\">\n <rtsee-search [search]=\"search\"></rtsee-search>\n</div>\n", styles: [""], components: [{ type: SearchComponent, selector: "rtsee-search", inputs: ["search"] }] });
|
|
820
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: ContactsMultiselectComponent, decorators: [{
|
|
821
|
-
type: i0.Component,
|
|
822
|
-
args: [{
|
|
823
|
-
selector: 'rtsee-contacts-multiselect',
|
|
824
|
-
templateUrl: './contacts-multiselect.component.html',
|
|
825
|
-
styleUrls: ['./contacts-multiselect.component.scss'],
|
|
826
|
-
}]
|
|
827
|
-
}], propDecorators: { menuState: [{
|
|
828
|
-
type: i0.Input
|
|
829
|
-
}], search: [{
|
|
830
|
-
type: i0.Input
|
|
831
|
-
}] } });
|
|
832
|
-
|
|
833
|
-
var MainMenuComponent = /** @class */ (function () {
|
|
834
|
-
function MainMenuComponent() {
|
|
835
|
-
this.MainMenuPanels = MainMenuPanels;
|
|
836
|
-
this.state = {
|
|
837
|
-
activePanel: DEFAULT_MAIN_MENU_STATE,
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
MainMenuComponent.prototype.onNewGroupClicked = function () {
|
|
841
|
-
this.state.activePanel = MainMenuPanels.CONTACTS_SELECT;
|
|
842
|
-
};
|
|
843
|
-
MainMenuComponent.prototype.onNewChannelClicked = function () {
|
|
844
|
-
this.state.activePanel = MainMenuPanels.MANAGE_CHAT;
|
|
845
|
-
};
|
|
846
|
-
return MainMenuComponent;
|
|
847
|
-
}());
|
|
848
|
-
MainMenuComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MainMenuComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
849
|
-
MainMenuComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: MainMenuComponent, selector: "rtsee-main-menu", inputs: { search: "search", messenger: "messenger" }, ngImport: i0__namespace, template: "<div class=\"rtsee-messenger-main-menu\">\n <div class=\"rtsee-messenger-main-menu-home\" *ngIf=\"state.activePanel === MainMenuPanels.HOME\">\n <ul class=\"rtsee-messenger-controls\">\n <li>\n <div class=\"rtsee-messenger-control-item\" (click)=\"onNewGroupClicked()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">people</span>\n </div>\n <span>New Group</span>\n </div>\n </li>\n <li>\n <div class=\"rtsee-messenger-control-item\" (click)=\"onNewChannelClicked()\">\n <div class=\"rtsee-messenger-control-icon\">\n <span class=\"material-icons-outlined\">campaign</span>\n </div>\n <span>New Channel</span>\n </div>\n </li>\n </ul>\n <rtsee-search [search]=\"search\" ></rtsee-search>\n </div>\n\n <rtsee-manage-chat *ngIf=\"state.activePanel === MainMenuPanels.MANAGE_CHAT\"\n [messenger]=\"messenger\"\n [menuState]=\"state\"\n ></rtsee-manage-chat>\n <rtsee-contacts-multiselect [search]=\"search\"\n [menuState]=\"state\"\n *ngIf=\"state.activePanel === MainMenuPanels.CONTACTS_SELECT\"\n ></rtsee-contacts-multiselect>\n</div>\n", components: [{ type: SearchComponent, selector: "rtsee-search", inputs: ["search"] }, { type: ManageChatComponent, selector: "rtsee-manage-chat", inputs: ["messenger", "menuState"] }, { type: ContactsMultiselectComponent, selector: "rtsee-contacts-multiselect", inputs: ["menuState", "search"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
850
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MainMenuComponent, decorators: [{
|
|
851
|
-
type: i0.Component,
|
|
852
|
-
args: [{
|
|
853
|
-
selector: 'rtsee-main-menu',
|
|
854
|
-
templateUrl: './main-menu.component.html',
|
|
855
|
-
}]
|
|
856
|
-
}], propDecorators: { search: [{
|
|
857
|
-
type: i0.Input
|
|
858
|
-
}], messenger: [{
|
|
859
|
-
type: i0.Input
|
|
860
|
-
}] } });
|
|
861
|
-
|
|
862
|
-
var MessengerComponent = /** @class */ (function () {
|
|
863
|
-
function MessengerComponent() {
|
|
864
|
-
this.isHeaderExpanded = false;
|
|
865
|
-
}
|
|
866
|
-
MessengerComponent.prototype.onScroll = function () {
|
|
867
|
-
this.messenger.loadChats();
|
|
868
|
-
};
|
|
869
|
-
MessengerComponent.prototype.onHeaderExpandToggled = function (value) {
|
|
870
|
-
this.isHeaderExpanded = value;
|
|
871
|
-
};
|
|
872
|
-
return MessengerComponent;
|
|
873
|
-
}());
|
|
874
|
-
MessengerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessengerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
875
|
-
MessengerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: MessengerComponent, selector: "rtsee-messenger", inputs: { messenger: "messenger" }, ngImport: i0__namespace, template: "<div class=\"rtsee-messenger\" [ngClass]=\"{\n 'rtsee-messenger-main-menu-opened': messenger.mainMenuOpened,\n 'rtsee-messenger-header-expanded': isHeaderExpanded\n}\">\n <div class=\"rtsee-messenger-header-container\">\n <rtsee-messenger-header [messenger]=\"messenger\" (expandToggled)=\"onHeaderExpandToggled($event)\"></rtsee-messenger-header>\n </div>\n <div class=\"rtsee-messenger-body-container\"\n infiniteScroll\n [infiniteScrollDistance]=\"2\"\n [infiniteScrollThrottle]=\"50\"\n [scrollWindow]=\"false\"\n (scrolled)=\"onScroll()\"\n >\n <rtsee-chats-list *ngIf=\"!messenger.openedChat\" [chats]=\"messenger.chats\" [messenger]=\"messenger\"></rtsee-chats-list>\n <rtsee-chat *ngIf=\"messenger.openedChat\" [messenger]=\"messenger\" [chat]=\"messenger.openedChat\"></rtsee-chat>\n <rtsee-preloader [diameter]=\"50\" *ngIf=\"messenger.loadingChatsInProgress\" ></rtsee-preloader>\n </div>\n <div class=\"rtsee-messenger-main-menu-container\">\n <rtsee-main-menu\n *ngIf=\"messenger.mainMenuOpened\"\n [search]=\"messenger.search\"\n [messenger]=\"messenger\"></rtsee-main-menu>\n </div>\n <div class=\"rtsee-messenger-overlay\" (click)=\"messenger.openMainMenu(false)\"></div>\n</div>\n\n\n", components: [{ type: MessengerHeaderComponent, selector: "rtsee-messenger-header", inputs: ["isExpanded", "messenger"], outputs: ["expandToggled"] }, { type: ChatsListComponent, selector: "rtsee-chats-list", inputs: ["messenger", "chats"] }, { type: ChatComponent, selector: "rtsee-chat", inputs: ["chat", "messenger"] }, { type: PreloaderComponent, selector: "rtsee-preloader", inputs: ["diameter", "color"] }, { type: MainMenuComponent, selector: "rtsee-main-menu", inputs: ["search", "messenger"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace$2.InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
876
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: MessengerComponent, decorators: [{
|
|
877
|
-
type: i0.Component,
|
|
878
|
-
args: [{
|
|
879
|
-
selector: 'rtsee-messenger',
|
|
880
|
-
templateUrl: './messenger.component.html',
|
|
881
|
-
}]
|
|
882
|
-
}], ctorParameters: function () { return []; }, propDecorators: { messenger: [{
|
|
883
|
-
type: i0.Input
|
|
884
|
-
}] } });
|
|
885
|
-
|
|
886
|
-
var EventsWidgetsService = /** @class */ (function () {
|
|
887
|
-
function EventsWidgetsService() {
|
|
888
|
-
this.widgetsMap = [];
|
|
889
|
-
}
|
|
890
|
-
EventsWidgetsService.prototype.getWidgetComponentByName = function (name) {
|
|
891
|
-
/* eslint-disable */
|
|
892
|
-
var mapping = this.widgetsMap.find(function (e) { return e.name === name; });
|
|
893
|
-
if (!mapping) {
|
|
894
|
-
return null;
|
|
895
|
-
}
|
|
896
|
-
return mapping.component;
|
|
897
|
-
/* eslint-enable */
|
|
898
|
-
};
|
|
899
|
-
return EventsWidgetsService;
|
|
900
|
-
}());
|
|
901
|
-
EventsWidgetsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: EventsWidgetsService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
902
|
-
EventsWidgetsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: EventsWidgetsService, providedIn: 'root' });
|
|
903
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: EventsWidgetsService, decorators: [{
|
|
904
|
-
type: i0.Injectable,
|
|
905
|
-
args: [{
|
|
906
|
-
providedIn: 'root',
|
|
907
|
-
}]
|
|
908
|
-
}] });
|
|
909
|
-
|
|
910
|
-
var EventThumbnailComponent = /** @class */ (function () {
|
|
911
|
-
function EventThumbnailComponent(widgetsService, componentFactoryResolver, timeFormatService) {
|
|
912
|
-
this.widgetsService = widgetsService;
|
|
913
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
914
|
-
this.timeFormatService = timeFormatService;
|
|
915
|
-
}
|
|
916
|
-
EventThumbnailComponent.prototype.ngOnInit = function () {
|
|
917
|
-
if (this.event.data) {
|
|
918
|
-
this.generateTooltip();
|
|
919
|
-
}
|
|
920
|
-
};
|
|
921
|
-
EventThumbnailComponent.prototype.generateTooltip = function () {
|
|
922
|
-
/* eslint-disable */
|
|
923
|
-
var tooltip = '';
|
|
924
|
-
if (typeof this.event.data !== 'object') {
|
|
925
|
-
return;
|
|
926
|
-
}
|
|
927
|
-
try {
|
|
928
|
-
for (var key in this.event.data) {
|
|
929
|
-
if (this.event.data.hasOwnProperty(key)) {
|
|
930
|
-
if (tooltip) {
|
|
931
|
-
tooltip += '
';
|
|
932
|
-
}
|
|
933
|
-
tooltip += key + ' -> ' + this.event.data[key];
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
this.tooltip = tooltip;
|
|
937
|
-
}
|
|
938
|
-
catch (e) {
|
|
939
|
-
console.log('Failed to generate a tooltip');
|
|
940
|
-
}
|
|
941
|
-
/* eslint-enable */
|
|
942
|
-
};
|
|
943
|
-
EventThumbnailComponent.prototype.ngAfterViewInit = function () {
|
|
944
|
-
/* eslint-disable */
|
|
945
|
-
if (this.event.widget) {
|
|
946
|
-
var widget = this.widgetsService.getWidgetComponentByName(this.event.widget);
|
|
947
|
-
if (!widget) {
|
|
948
|
-
return;
|
|
949
|
-
}
|
|
950
|
-
var viewContainerRef = this.widgetHost.viewContainerRef;
|
|
951
|
-
viewContainerRef.clear();
|
|
952
|
-
var componentToShow = this.componentFactoryResolver.resolveComponentFactory(widget);
|
|
953
|
-
var componentRef = viewContainerRef.createComponent(componentToShow);
|
|
954
|
-
componentRef.instance.event = this.event;
|
|
955
|
-
componentRef.instance.event = this.event;
|
|
956
|
-
componentRef.changeDetectorRef.detectChanges();
|
|
957
|
-
}
|
|
958
|
-
/* eslint-enable */
|
|
959
|
-
};
|
|
960
|
-
return EventThumbnailComponent;
|
|
961
|
-
}());
|
|
962
|
-
EventThumbnailComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: EventThumbnailComponent, deps: [{ token: EventsWidgetsService }, { token: i0__namespace.ComponentFactoryResolver }, { token: TimeFormatHelperService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
963
|
-
EventThumbnailComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: EventThumbnailComponent, selector: "rtsee-event-thumbnail", inputs: { event: "event" }, viewQueries: [{ propertyName: "widgetHost", first: true, predicate: WidgetDirective, descendants: true }], ngImport: i0__namespace, template: "<div class=\"rtsee-events-dashboard-event-thumbnail\">\n <ng-template *ngIf=\"event.widget\" widgetHost></ng-template>\n <div *ngIf=\"!event.widget\" class=\"rtsee-events-dashboard-default-event-thumbnail\"\n [ngClass]=\"{'rtsee-events-dashboard-default-event-thumbnail-with-data': event.data}\"\n >\n <div class=\"rtsee-events-dashboard-default-event-thumbnail-name\">{{event.name}}</div>\n <div class=\"rtsee-events-dashboard-default-event-thumbnail-info\">\n <div *ngIf=\"event.data\" class=\"rtsee-events-dashboard-default-event-thumbnail-details\"\n [title]=\"tooltip\"\n >\n <span class=\"rtsee-events-dashboard-default-event-thumbnail-details-icon material-icons-outlined\"\n >info</span>\n </div>\n <div class=\"rtsee-events-dashboard-default-event-thumbnail-time\">\n <span>{{ timeFormatService.toAgo(event.createdAt) }}</span>\n </div>\n </div>\n\n </div>\n</div>\n", directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: WidgetDirective, selector: "[widgetHost]" }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
964
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: EventThumbnailComponent, decorators: [{
|
|
965
|
-
type: i0.Component,
|
|
966
|
-
args: [{
|
|
967
|
-
selector: 'rtsee-event-thumbnail',
|
|
968
|
-
templateUrl: './event-thumbnail.component.html',
|
|
969
|
-
}]
|
|
970
|
-
}], ctorParameters: function () { return [{ type: EventsWidgetsService }, { type: i0__namespace.ComponentFactoryResolver }, { type: TimeFormatHelperService }]; }, propDecorators: { event: [{
|
|
971
|
-
type: i0.Input
|
|
972
|
-
}], widgetHost: [{
|
|
973
|
-
type: i0.ViewChild,
|
|
974
|
-
args: [WidgetDirective, { static: false }]
|
|
975
|
-
}] } });
|
|
976
|
-
|
|
977
|
-
var RtseeEventsDashboardSessionComponent = /** @class */ (function () {
|
|
978
|
-
function RtseeEventsDashboardSessionComponent(timeFormatService) {
|
|
979
|
-
this.timeFormatService = timeFormatService;
|
|
980
|
-
}
|
|
981
|
-
return RtseeEventsDashboardSessionComponent;
|
|
982
|
-
}());
|
|
983
|
-
RtseeEventsDashboardSessionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeEventsDashboardSessionComponent, deps: [{ token: TimeFormatHelperService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
984
|
-
RtseeEventsDashboardSessionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RtseeEventsDashboardSessionComponent, selector: "rtsee-rtsee-events-dashboard-session", inputs: { session: "session" }, ngImport: i0__namespace, template: "<div class=\"rtsee-events-dashboard-session\">\n <div class=\"rtsee-events-dashboard-session-header\" *ngIf=\"session.info\">\n <p class=\"rtsee-events-dashboard-session-client-info\">{{session.info.clientThumbnail}}</p>\n <p class=\"rtsee-events-dashboard-session-os-info\">{{session.info.osThumbnail}}</p>\n <div class=\"rtsee-events-dashboard-session-device-info\" [title]=\"session.info.deviceThumbnail\">\n <span *ngIf=\"session.info.deviceType === 'smartphone' && !session.info.botName\"\n class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n >phone_iphone</span>\n <span class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n *ngIf=\"session.info.deviceType === 'tablet' && !session.info.botName\"\n >tablet_mac</span>\n <span class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n *ngIf=\"session.info.deviceType === 'desktop' && !session.info.botName\"\n >computer</span>\n <span class=\"material-icons-outlined rtsee-events-dashboard-session-device-info-icon\"\n *ngIf=\"session.info.botName\"\n >smart_toy</span>\n </div>\n </div>\n <ul *ngIf=\"session.events && session.events.length\"\n class=\"rtsee-events-dashboard-session-events-list\"\n >\n <li *ngFor=\"let event of session.events | slice:0:5;\" class=\"rtsee-events-dashboard-session-event\">\n <rtsee-event-thumbnail [event]=\"event\"></rtsee-event-thumbnail>\n </li>\n </ul>\n <div class=\"rtsee-events-dashboard-session-footer\">\n <button *ngIf=\"session.events.length > 5\">{{session.events.length - 5}} more</button>\n </div>\n</div>\n", components: [{ type: EventThumbnailComponent, selector: "rtsee-event-thumbnail", inputs: ["event"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "slice": i3__namespace.SlicePipe } });
|
|
985
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeEventsDashboardSessionComponent, decorators: [{
|
|
986
|
-
type: i0.Component,
|
|
987
|
-
args: [{
|
|
988
|
-
selector: 'rtsee-rtsee-events-dashboard-session',
|
|
989
|
-
templateUrl: './rtsee-events-dashboard-session.component.html',
|
|
990
|
-
}]
|
|
991
|
-
}], ctorParameters: function () { return [{ type: TimeFormatHelperService }]; }, propDecorators: { session: [{
|
|
992
|
-
type: i0.Input
|
|
993
|
-
}] } });
|
|
994
|
-
|
|
995
|
-
var RtseeEventsDashboardClientThumbnailComponent = /** @class */ (function () {
|
|
996
|
-
function RtseeEventsDashboardClientThumbnailComponent(timeFormatService, defaultImagesService) {
|
|
997
|
-
this.timeFormatService = timeFormatService;
|
|
998
|
-
this.defaultImagesService = defaultImagesService;
|
|
999
|
-
}
|
|
1000
|
-
RtseeEventsDashboardClientThumbnailComponent.prototype.ngOnInit = function () {
|
|
1001
|
-
console.log('client id', this.client.id);
|
|
1002
|
-
};
|
|
1003
|
-
RtseeEventsDashboardClientThumbnailComponent.prototype.openChat = function () {
|
|
1004
|
-
this.dashboard.openChat(this.client);
|
|
1005
|
-
};
|
|
1006
|
-
return RtseeEventsDashboardClientThumbnailComponent;
|
|
1007
|
-
}());
|
|
1008
|
-
RtseeEventsDashboardClientThumbnailComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeEventsDashboardClientThumbnailComponent, deps: [{ token: TimeFormatHelperService }, { token: DefaultImagesService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1009
|
-
RtseeEventsDashboardClientThumbnailComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RtseeEventsDashboardClientThumbnailComponent, selector: "ngx-rtsee-events-dashboard-client-thumbnail", inputs: { dashboard: "dashboard", client: "client" }, ngImport: i0__namespace, template: "<div class=\"rtsee-dashboard-client-thumbnail\">\n <div class=\"rtsee-dashboard-client-header\">\n <div class=\"rtsee-dashboard-client-header-photo\">\n <div class=\"rtsee-dashboard-client-header-image\"\n [style.background-image]=\"'url(' + client.imageUrl || defaultImagesService.PROFILE + ')'\"\n ></div>\n <div class=\"rtsee-dashboard-client-live-indicator\" *ngIf=\"client.isConnected\"></div>\n </div>\n <p class=\"rtsee-dashboard-client-name\">\n <span class=\"rtsee-dashboard-client-name-text\">{{ client.name || client.id }}</span>\n <button (click)=\"openChat()\" class=\"rtsee-dashboard-client-engage\">\n <span class=\"rtsee-dashboard-client-engage-icon material-icons-outlined\">chat_bubble</span>\n </button>\n </p>\n </div>\n <div class=\"rtsee-dashboard-sessions\">\n <div *ngFor=\"let session of client.sessions\"\n class=\"rtsee-dashboard-sessions-container\">\n <rtsee-rtsee-events-dashboard-session [session]=\"session\"></rtsee-rtsee-events-dashboard-session>\n </div>\n </div>\n</div>\n", components: [{ type: RtseeEventsDashboardSessionComponent, selector: "rtsee-rtsee-events-dashboard-session", inputs: ["session"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1010
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeEventsDashboardClientThumbnailComponent, decorators: [{
|
|
1011
|
-
type: i0.Component,
|
|
1012
|
-
args: [{
|
|
1013
|
-
selector: 'ngx-rtsee-events-dashboard-client-thumbnail',
|
|
1014
|
-
templateUrl: './rtsee-events-dashboard-client-thumbnail.component.html',
|
|
1015
|
-
}]
|
|
1016
|
-
}], ctorParameters: function () { return [{ type: TimeFormatHelperService }, { type: DefaultImagesService }]; }, propDecorators: { dashboard: [{
|
|
1017
|
-
type: i0.Input
|
|
1018
|
-
}], client: [{
|
|
1019
|
-
type: i0.Input
|
|
1020
|
-
}] } });
|
|
1021
|
-
|
|
1022
|
-
var RtseeEventsDashboardComponent = /** @class */ (function () {
|
|
1023
|
-
function RtseeEventsDashboardComponent() {
|
|
1024
|
-
}
|
|
1025
|
-
return RtseeEventsDashboardComponent;
|
|
1026
|
-
}());
|
|
1027
|
-
RtseeEventsDashboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeEventsDashboardComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1028
|
-
RtseeEventsDashboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RtseeEventsDashboardComponent, selector: "ngx-rtsee-events-dashboard", inputs: { eventsDashboard: "eventsDashboard" }, ngImport: i0__namespace, template: "<div class=\"rtsee-events-dashboard\">\n <div class=\"rtsee-events-dashboard-client-thumbnails\">\n <div class=\"rtsee-events-dashboard-client-thumbnail-wrapper\"\n *ngFor=\"let client of eventsDashboard.clients\">\n <ngx-rtsee-events-dashboard-client-thumbnail\n [client]=\"client\"\n [dashboard]=\"eventsDashboard\"\n ></ngx-rtsee-events-dashboard-client-thumbnail>\n </div>\n </div>\n</div>\n", components: [{ type: RtseeEventsDashboardClientThumbnailComponent, selector: "ngx-rtsee-events-dashboard-client-thumbnail", inputs: ["dashboard", "client"] }], directives: [{ type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1029
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeEventsDashboardComponent, decorators: [{
|
|
1030
|
-
type: i0.Component,
|
|
1031
|
-
args: [{
|
|
1032
|
-
selector: 'ngx-rtsee-events-dashboard',
|
|
1033
|
-
templateUrl: './rtsee-events-dashboard.component.html',
|
|
1034
|
-
}]
|
|
1035
|
-
}], propDecorators: { eventsDashboard: [{
|
|
1036
|
-
type: i0.Input
|
|
1037
|
-
}] } });
|
|
1038
|
-
|
|
1039
|
-
var RtseePeersListComponent = /** @class */ (function () {
|
|
1040
|
-
function RtseePeersListComponent() {
|
|
1041
|
-
}
|
|
1042
|
-
return RtseePeersListComponent;
|
|
1043
|
-
}());
|
|
1044
|
-
RtseePeersListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseePeersListComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1045
|
-
RtseePeersListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RtseePeersListComponent, selector: "ngx-rtsee-peers-list", ngImport: i0__namespace, template: "<p>rtsee-peers-list works!</p>\n", styles: [""] });
|
|
1046
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseePeersListComponent, decorators: [{
|
|
1047
|
-
type: i0.Component,
|
|
1048
|
-
args: [{
|
|
1049
|
-
selector: 'ngx-rtsee-peers-list',
|
|
1050
|
-
templateUrl: './rtsee-peers-list.component.html',
|
|
1051
|
-
styleUrls: ['./rtsee-peers-list.component.scss'],
|
|
1052
|
-
}]
|
|
1053
|
-
}] });
|
|
1054
|
-
|
|
1055
|
-
var RtseeEventsDashboardClientComponent = /** @class */ (function () {
|
|
1056
|
-
function RtseeEventsDashboardClientComponent() {
|
|
1057
|
-
}
|
|
1058
|
-
return RtseeEventsDashboardClientComponent;
|
|
1059
|
-
}());
|
|
1060
|
-
RtseeEventsDashboardClientComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeEventsDashboardClientComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1061
|
-
RtseeEventsDashboardClientComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RtseeEventsDashboardClientComponent, selector: "ngx-rtsee-events-dashboard-client", ngImport: i0__namespace, template: "<p>rtsee-events-dashboard-client works!</p>\n" });
|
|
1062
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeEventsDashboardClientComponent, decorators: [{
|
|
1063
|
-
type: i0.Component,
|
|
1064
|
-
args: [{
|
|
1065
|
-
selector: 'ngx-rtsee-events-dashboard-client',
|
|
1066
|
-
templateUrl: './rtsee-events-dashboard-client.component.html',
|
|
1067
|
-
}]
|
|
1068
|
-
}] });
|
|
1069
|
-
|
|
1070
|
-
var RtseeContainerComponent = /** @class */ (function () {
|
|
1071
|
-
function RtseeContainerComponent() {
|
|
1072
|
-
}
|
|
1073
|
-
return RtseeContainerComponent;
|
|
1074
|
-
}());
|
|
1075
|
-
RtseeContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeContainerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1076
|
-
RtseeContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.2", type: RtseeContainerComponent, selector: "rtsee-rtsee-container", ngImport: i0__namespace, template: "<p>rtsee-container works!</p>\n" });
|
|
1077
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RtseeContainerComponent, decorators: [{
|
|
1078
|
-
type: i0.Component,
|
|
1079
|
-
args: [{
|
|
1080
|
-
selector: 'rtsee-rtsee-container',
|
|
1081
|
-
templateUrl: './rtsee-container.component.html',
|
|
1082
|
-
}]
|
|
1083
|
-
}] });
|
|
1084
|
-
|
|
1085
|
-
var RTSeeModule = /** @class */ (function () {
|
|
1086
|
-
function RTSeeModule() {
|
|
1087
|
-
}
|
|
1088
|
-
return RTSeeModule;
|
|
1089
|
-
}());
|
|
1090
|
-
RTSeeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RTSeeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1091
|
-
RTSeeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RTSeeModule, declarations: [RTSeeComponent,
|
|
1092
|
-
RTSeeControlsComponent,
|
|
1093
|
-
RtseePeerComponent,
|
|
1094
|
-
RtseeSoundbarComponent,
|
|
1095
|
-
RtseePeersListComponent,
|
|
1096
|
-
RtseeSettingsComponent,
|
|
1097
|
-
MessengerComponent,
|
|
1098
|
-
ChatComponent,
|
|
1099
|
-
MessageComponent,
|
|
1100
|
-
ChatsListComponent,
|
|
1101
|
-
MessagesListComponent,
|
|
1102
|
-
ChatThumbnailComponent,
|
|
1103
|
-
ChatInputComponent,
|
|
1104
|
-
MessengerHeaderComponent,
|
|
1105
|
-
RtseeEventsDashboardComponent,
|
|
1106
|
-
RtseeEventsDashboardClientComponent,
|
|
1107
|
-
RtseeEventsDashboardClientThumbnailComponent,
|
|
1108
|
-
WidgetDirective,
|
|
1109
|
-
CallWidgetComponent,
|
|
1110
|
-
MainMenuComponent,
|
|
1111
|
-
MessageTimeAndStatusComponent,
|
|
1112
|
-
PreloaderComponent,
|
|
1113
|
-
SearchComponent,
|
|
1114
|
-
ManageChatComponent,
|
|
1115
|
-
ContactsMultiselectComponent,
|
|
1116
|
-
ShaveDirective,
|
|
1117
|
-
ProfileComponent,
|
|
1118
|
-
EventThumbnailComponent,
|
|
1119
|
-
RtseeEventsDashboardSessionComponent,
|
|
1120
|
-
RtseeContainerComponent], imports: [i3.CommonModule,
|
|
1121
|
-
icon.MatIconModule,
|
|
1122
|
-
i1.MatButtonModule,
|
|
1123
|
-
select.MatSelectModule,
|
|
1124
|
-
animations.BrowserAnimationsModule,
|
|
1125
|
-
i3$1.MatFormFieldModule,
|
|
1126
|
-
i1$1.ReactiveFormsModule,
|
|
1127
|
-
i2.AutosizeModule,
|
|
1128
|
-
i3$2.InfiniteScrollModule], exports: [RTSeeComponent, MessengerComponent, RtseeEventsDashboardComponent] });
|
|
1129
|
-
RTSeeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RTSeeModule, imports: [[
|
|
1130
|
-
i3.CommonModule,
|
|
1131
|
-
icon.MatIconModule,
|
|
1132
|
-
i1.MatButtonModule,
|
|
1133
|
-
select.MatSelectModule,
|
|
1134
|
-
animations.BrowserAnimationsModule,
|
|
1135
|
-
i3$1.MatFormFieldModule,
|
|
1136
|
-
i1$1.ReactiveFormsModule,
|
|
1137
|
-
i2.AutosizeModule,
|
|
1138
|
-
i3$2.InfiniteScrollModule,
|
|
1139
|
-
]] });
|
|
1140
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: RTSeeModule, decorators: [{
|
|
1141
|
-
type: i0.NgModule,
|
|
1142
|
-
args: [{
|
|
1143
|
-
declarations: [
|
|
1144
|
-
RTSeeComponent,
|
|
1145
|
-
RTSeeControlsComponent,
|
|
1146
|
-
RtseePeerComponent,
|
|
1147
|
-
RtseeSoundbarComponent,
|
|
1148
|
-
RtseePeersListComponent,
|
|
1149
|
-
RtseeSettingsComponent,
|
|
1150
|
-
MessengerComponent,
|
|
1151
|
-
ChatComponent,
|
|
1152
|
-
MessageComponent,
|
|
1153
|
-
ChatsListComponent,
|
|
1154
|
-
MessagesListComponent,
|
|
1155
|
-
ChatThumbnailComponent,
|
|
1156
|
-
ChatInputComponent,
|
|
1157
|
-
MessengerHeaderComponent,
|
|
1158
|
-
RtseeEventsDashboardComponent,
|
|
1159
|
-
RtseeEventsDashboardClientComponent,
|
|
1160
|
-
RtseeEventsDashboardClientThumbnailComponent,
|
|
1161
|
-
WidgetDirective,
|
|
1162
|
-
CallWidgetComponent,
|
|
1163
|
-
MainMenuComponent,
|
|
1164
|
-
MessageTimeAndStatusComponent,
|
|
1165
|
-
PreloaderComponent,
|
|
1166
|
-
SearchComponent,
|
|
1167
|
-
ManageChatComponent,
|
|
1168
|
-
ContactsMultiselectComponent,
|
|
1169
|
-
ShaveDirective,
|
|
1170
|
-
ProfileComponent,
|
|
1171
|
-
EventThumbnailComponent,
|
|
1172
|
-
RtseeEventsDashboardSessionComponent,
|
|
1173
|
-
RtseeContainerComponent,
|
|
1174
|
-
],
|
|
1175
|
-
imports: [
|
|
1176
|
-
i3.CommonModule,
|
|
1177
|
-
icon.MatIconModule,
|
|
1178
|
-
i1.MatButtonModule,
|
|
1179
|
-
select.MatSelectModule,
|
|
1180
|
-
animations.BrowserAnimationsModule,
|
|
1181
|
-
i3$1.MatFormFieldModule,
|
|
1182
|
-
i1$1.ReactiveFormsModule,
|
|
1183
|
-
i2.AutosizeModule,
|
|
1184
|
-
i3$2.InfiniteScrollModule,
|
|
1185
|
-
],
|
|
1186
|
-
exports: [RTSeeComponent, MessengerComponent, RtseeEventsDashboardComponent],
|
|
1187
|
-
}]
|
|
1188
|
-
}] });
|
|
1189
|
-
|
|
1190
|
-
/*
|
|
1191
|
-
* Public API Surface of ngx
|
|
1192
|
-
*/
|
|
1193
|
-
|
|
1194
|
-
/**
|
|
1195
|
-
* Generated bundle index. Do not edit.
|
|
1196
|
-
*/
|
|
1197
|
-
|
|
1198
|
-
exports.MessengerComponent = MessengerComponent;
|
|
1199
|
-
exports.NgxService = NgxService;
|
|
1200
|
-
exports.RTSeeComponent = RTSeeComponent;
|
|
1201
|
-
exports.RTSeeControlsComponent = RTSeeControlsComponent;
|
|
1202
|
-
exports.RTSeeModule = RTSeeModule;
|
|
1203
|
-
exports.RtseeEventsDashboardComponent = RtseeEventsDashboardComponent;
|
|
1204
|
-
|
|
1205
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1206
|
-
|
|
1207
|
-
})));
|
|
1208
|
-
//# sourceMappingURL=rtsee-ngx.umd.js.map
|