wacom 14.1.5 → 14.1.6
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/esm2020/lib/components/alert/wrapper/wrapper.component.mjs +3 -3
- package/esm2020/lib/services/socket.service.mjs +41 -31
- package/fesm2015/wacom.mjs +42 -32
- package/fesm2015/wacom.mjs.map +1 -1
- package/fesm2020/wacom.mjs +42 -32
- package/fesm2020/wacom.mjs.map +1 -1
- package/lib/services/socket.service.d.ts +10 -7
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@ export class WrapperComponent {
|
|
|
4
4
|
constructor() { }
|
|
5
5
|
}
|
|
6
6
|
WrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: WrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
-
WrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.1", type: WrapperComponent, selector: "lib-wrapper", ngImport: i0, template: "<div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomRight\" id=\"bottomRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomLeft\" id=\"bottomLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topRight\" id=\"topRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topLeft\" id=\"topLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topCenter\" id=\"topCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomCenter\" id=\"bottomCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-center\" id=\"center\"></div>\r\n\
|
|
7
|
+
WrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.1", type: WrapperComponent, selector: "lib-wrapper", ngImport: i0, template: "<div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomRight\" id=\"bottomRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomLeft\" id=\"bottomLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topRight\" id=\"topRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topLeft\" id=\"topLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topCenter\" id=\"topCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomCenter\" id=\"bottomCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-center\" id=\"center\"></div>\r\n\t<!-- [bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter or center] -->\r\n</div>\r\n", styles: [".waw-alert-wrapper{z-index:99999;position:fixed;width:100%;pointer-events:none;display:flex;flex-direction:column}.waw-alert-wrapper-bottomLeft{left:0;bottom:0;text-align:left}.waw-alert-wrapper-bottomRight{right:0;bottom:0;text-align:right}.waw-alert-wrapper-topLeft{left:0;top:0;text-align:left}.waw-alert-wrapper-topRight{top:0;right:0;text-align:right}.waw-alert-wrapper-topCenter{top:0;left:0;right:0;text-align:center}.waw-alert-wrapper-bottomCenter{bottom:0;left:0;right:0;text-align:center}.waw-alert-wrapper-center{top:0;bottom:0;left:0;right:0;text-align:center;justify-content:center;flex-flow:column;align-items:center}\n"] });
|
|
8
8
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: WrapperComponent, decorators: [{
|
|
9
9
|
type: Component,
|
|
10
|
-
args: [{ selector: 'lib-wrapper', template: "<div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomRight\" id=\"bottomRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomLeft\" id=\"bottomLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topRight\" id=\"topRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topLeft\" id=\"topLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topCenter\" id=\"topCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomCenter\" id=\"bottomCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-center\" id=\"center\"></div>\r\n\
|
|
10
|
+
args: [{ selector: 'lib-wrapper', template: "<div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomRight\" id=\"bottomRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomLeft\" id=\"bottomLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topRight\" id=\"topRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topLeft\" id=\"topLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topCenter\" id=\"topCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomCenter\" id=\"bottomCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-center\" id=\"center\"></div>\r\n\t<!-- [bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter or center] -->\r\n</div>\r\n", styles: [".waw-alert-wrapper{z-index:99999;position:fixed;width:100%;pointer-events:none;display:flex;flex-direction:column}.waw-alert-wrapper-bottomLeft{left:0;bottom:0;text-align:left}.waw-alert-wrapper-bottomRight{right:0;bottom:0;text-align:right}.waw-alert-wrapper-topLeft{left:0;top:0;text-align:left}.waw-alert-wrapper-topRight{top:0;right:0;text-align:right}.waw-alert-wrapper-topCenter{top:0;left:0;right:0;text-align:center}.waw-alert-wrapper-bottomCenter{bottom:0;left:0;right:0;text-align:center}.waw-alert-wrapper-center{top:0;bottom:0;left:0;right:0;text-align:center;justify-content:center;flex-flow:column;align-items:center}\n"] }]
|
|
11
11
|
}], ctorParameters: function () { return []; } });
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JhcHBlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93YWNvbS9zcmMvbGliL2NvbXBvbmVudHMvYWxlcnQvd3JhcHBlci93cmFwcGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3dhY29tL3NyYy9saWIvY29tcG9uZW50cy9hbGVydC93cmFwcGVyL3dyYXBwZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFPMUMsTUFBTSxPQUFPLGdCQUFnQjtJQUM1QixnQkFBZSxDQUFDOzs2R0FESixnQkFBZ0I7aUdBQWhCLGdCQUFnQixtRENQN0IseXVCQVVBOzJGREhhLGdCQUFnQjtrQkFMNUIsU0FBUzsrQkFDQyxhQUFhIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5AQ29tcG9uZW50KHtcclxuXHRzZWxlY3RvcjogJ2xpYi13cmFwcGVyJyxcclxuXHR0ZW1wbGF0ZVVybDogJy4vd3JhcHBlci5jb21wb25lbnQuaHRtbCcsXHJcblx0c3R5bGVVcmxzOiBbJy4vd3JhcHBlci5jb21wb25lbnQuc2NzcyddXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBXcmFwcGVyQ29tcG9uZW50e1xyXG5cdGNvbnN0cnVjdG9yKCkge31cclxufVxyXG4iLCI8ZGl2PlxyXG5cdDxkaXYgY2xhc3M9XCJ3YXctYWxlcnQtd3JhcHBlciB3YXctYWxlcnQtd3JhcHBlci1ib3R0b21SaWdodFwiIGlkPVwiYm90dG9tUmlnaHRcIj48L2Rpdj5cclxuXHQ8ZGl2IGNsYXNzPVwid2F3LWFsZXJ0LXdyYXBwZXIgd2F3LWFsZXJ0LXdyYXBwZXItYm90dG9tTGVmdFwiIGlkPVwiYm90dG9tTGVmdFwiPjwvZGl2PlxyXG5cdDxkaXYgY2xhc3M9XCJ3YXctYWxlcnQtd3JhcHBlciB3YXctYWxlcnQtd3JhcHBlci10b3BSaWdodFwiIGlkPVwidG9wUmlnaHRcIj48L2Rpdj5cclxuXHQ8ZGl2IGNsYXNzPVwid2F3LWFsZXJ0LXdyYXBwZXIgd2F3LWFsZXJ0LXdyYXBwZXItdG9wTGVmdFwiIGlkPVwidG9wTGVmdFwiPjwvZGl2PlxyXG5cdDxkaXYgY2xhc3M9XCJ3YXctYWxlcnQtd3JhcHBlciB3YXctYWxlcnQtd3JhcHBlci10b3BDZW50ZXJcIiBpZD1cInRvcENlbnRlclwiPjwvZGl2PlxyXG5cdDxkaXYgY2xhc3M9XCJ3YXctYWxlcnQtd3JhcHBlciB3YXctYWxlcnQtd3JhcHBlci1ib3R0b21DZW50ZXJcIiBpZD1cImJvdHRvbUNlbnRlclwiPjwvZGl2PlxyXG5cdDxkaXYgY2xhc3M9XCJ3YXctYWxlcnQtd3JhcHBlciB3YXctYWxlcnQtd3JhcHBlci1jZW50ZXJcIiBpZD1cImNlbnRlclwiPjwvZGl2PlxyXG5cdDwhLS0gW2JvdHRvbVJpZ2h0LCBib3R0b21MZWZ0LCB0b3BSaWdodCwgdG9wTGVmdCwgdG9wQ2VudGVyLCBib3R0b21DZW50ZXIgb3IgY2VudGVyXSAtLT5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -4,67 +4,77 @@ import * as io from "socket.io-client";
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "./core.service";
|
|
6
6
|
export class SocketService {
|
|
7
|
-
constructor(
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (this.
|
|
7
|
+
constructor(_config, _core) {
|
|
8
|
+
this._config = _config;
|
|
9
|
+
this._core = _core;
|
|
10
|
+
this._url = '';
|
|
11
|
+
this._connect = !!this._config.socket;
|
|
12
|
+
this._connected = false;
|
|
13
|
+
this._opts = {};
|
|
14
|
+
this._core.done('socket', this);
|
|
15
|
+
this._url = this._core.window.location.origin.replace('4200', '8080');
|
|
16
|
+
if (!this._config)
|
|
17
|
+
this._config = DEFAULT_CONFIG;
|
|
18
|
+
if (typeof this._config.socket === 'object') {
|
|
19
|
+
if (this._config.socket.url) {
|
|
20
|
+
this._url = this._config.socket.url;
|
|
21
|
+
}
|
|
22
|
+
if (this._config.socket.opts) {
|
|
23
|
+
this._opts = this._config.socket.opts;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (this._config.socket) {
|
|
17
27
|
this.load();
|
|
18
28
|
}
|
|
19
29
|
}
|
|
30
|
+
setUrl(url) {
|
|
31
|
+
this._url = url;
|
|
32
|
+
this.load();
|
|
33
|
+
}
|
|
20
34
|
load() {
|
|
21
|
-
if (!this.
|
|
35
|
+
if (!this._config.socket || !io) {
|
|
22
36
|
return;
|
|
23
|
-
const ioFunc = io.default ? io.default : io;
|
|
24
|
-
if (typeof this.config.socket == 'object' && this.config.socket.url) {
|
|
25
|
-
this.url = this.config.socket.url;
|
|
26
|
-
}
|
|
27
|
-
let opts = {};
|
|
28
|
-
if (typeof this.config.socket == 'object' && this.config.socket.opts) {
|
|
29
|
-
opts = this.config.socket.opts;
|
|
30
37
|
}
|
|
31
|
-
|
|
32
|
-
this.
|
|
33
|
-
|
|
38
|
+
const ioFunc = io.default ? io.default : io;
|
|
39
|
+
this._io = ioFunc(this._url, this._opts);
|
|
40
|
+
this._io.on('connect', (socket) => {
|
|
41
|
+
this._connected = true;
|
|
34
42
|
});
|
|
35
43
|
}
|
|
36
44
|
on(to, cb = (message) => { }) {
|
|
37
|
-
if (!this.
|
|
45
|
+
if (!this._config.socket) {
|
|
38
46
|
return;
|
|
39
|
-
|
|
47
|
+
}
|
|
48
|
+
if (!this._connected) {
|
|
40
49
|
return setTimeout(() => {
|
|
41
50
|
this.on(to, cb);
|
|
42
51
|
}, 100);
|
|
43
52
|
}
|
|
44
|
-
this.
|
|
53
|
+
this._io.on(to, cb);
|
|
45
54
|
}
|
|
46
55
|
emit(to, message, room = false) {
|
|
47
|
-
if (!this.
|
|
56
|
+
if (!this._config.socket) {
|
|
48
57
|
return;
|
|
49
|
-
|
|
58
|
+
}
|
|
59
|
+
if (!this._connected) {
|
|
50
60
|
return setTimeout(() => {
|
|
51
61
|
this.emit(to, message, room);
|
|
52
62
|
}, 100);
|
|
53
63
|
}
|
|
54
|
-
this.
|
|
64
|
+
this._io.emit(to, message, room);
|
|
55
65
|
}
|
|
56
66
|
}
|
|
57
|
-
SocketService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, deps: [{ token:
|
|
67
|
+
SocketService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, deps: [{ token: CONFIG_TOKEN, optional: true }, { token: i1.CoreService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
58
68
|
SocketService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, providedIn: 'root' });
|
|
59
69
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, decorators: [{
|
|
60
70
|
type: Injectable,
|
|
61
71
|
args: [{
|
|
62
72
|
providedIn: 'root'
|
|
63
73
|
}]
|
|
64
|
-
}], ctorParameters: function () { return [{ type:
|
|
74
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
65
75
|
type: Inject,
|
|
66
76
|
args: [CONFIG_TOKEN]
|
|
67
77
|
}, {
|
|
68
78
|
type: Optional
|
|
69
|
-
}] }]; } });
|
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
79
|
+
}] }, { type: i1.CoreService }]; } });
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ja2V0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93YWNvbS9zcmMvbGliL3NlcnZpY2VzL3NvY2tldC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQVUsY0FBYyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDNUUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTdELE9BQU8sS0FBSyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7OztBQUt2QyxNQUFNLE9BQU8sYUFBYTtJQWdDekIsWUFDMkMsT0FBZSxFQUNqRCxLQUFrQjtRQURnQixZQUFPLEdBQVAsT0FBTyxDQUFRO1FBQ2pELFVBQUssR0FBTCxLQUFLLENBQWE7UUFqQ25CLFNBQUksR0FBRyxFQUFFLENBQUM7UUFVVixhQUFRLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDO1FBRWpDLGVBQVUsR0FBRyxLQUFLLENBQUM7UUFFbkIsVUFBSyxHQUFRLEVBQUUsQ0FBQztRQXFCdkIsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFLElBQUksQ0FBQyxDQUFDO1FBRWhDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFB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XHR9XHJcbn1cclxuIl19
|
package/fesm2015/wacom.mjs
CHANGED
|
@@ -2360,10 +2360,10 @@ class WrapperComponent {
|
|
|
2360
2360
|
constructor() { }
|
|
2361
2361
|
}
|
|
2362
2362
|
WrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: WrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2363
|
-
WrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.1", type: WrapperComponent, selector: "lib-wrapper", ngImport: i0, template: "<div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomRight\" id=\"bottomRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomLeft\" id=\"bottomLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topRight\" id=\"topRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topLeft\" id=\"topLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topCenter\" id=\"topCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomCenter\" id=\"bottomCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-center\" id=\"center\"></div>\r\n\
|
|
2363
|
+
WrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.1", type: WrapperComponent, selector: "lib-wrapper", ngImport: i0, template: "<div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomRight\" id=\"bottomRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomLeft\" id=\"bottomLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topRight\" id=\"topRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topLeft\" id=\"topLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topCenter\" id=\"topCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomCenter\" id=\"bottomCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-center\" id=\"center\"></div>\r\n\t<!-- [bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter or center] -->\r\n</div>\r\n", styles: [".waw-alert-wrapper{z-index:99999;position:fixed;width:100%;pointer-events:none;display:flex;flex-direction:column}.waw-alert-wrapper-bottomLeft{left:0;bottom:0;text-align:left}.waw-alert-wrapper-bottomRight{right:0;bottom:0;text-align:right}.waw-alert-wrapper-topLeft{left:0;top:0;text-align:left}.waw-alert-wrapper-topRight{top:0;right:0;text-align:right}.waw-alert-wrapper-topCenter{top:0;left:0;right:0;text-align:center}.waw-alert-wrapper-bottomCenter{bottom:0;left:0;right:0;text-align:center}.waw-alert-wrapper-center{top:0;bottom:0;left:0;right:0;text-align:center;justify-content:center;flex-flow:column;align-items:center}\n"] });
|
|
2364
2364
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: WrapperComponent, decorators: [{
|
|
2365
2365
|
type: Component,
|
|
2366
|
-
args: [{ selector: 'lib-wrapper', template: "<div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomRight\" id=\"bottomRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomLeft\" id=\"bottomLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topRight\" id=\"topRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topLeft\" id=\"topLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topCenter\" id=\"topCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomCenter\" id=\"bottomCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-center\" id=\"center\"></div>\r\n\
|
|
2366
|
+
args: [{ selector: 'lib-wrapper', template: "<div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomRight\" id=\"bottomRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomLeft\" id=\"bottomLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topRight\" id=\"topRight\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topLeft\" id=\"topLeft\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-topCenter\" id=\"topCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-bottomCenter\" id=\"bottomCenter\"></div>\r\n\t<div class=\"waw-alert-wrapper waw-alert-wrapper-center\" id=\"center\"></div>\r\n\t<!-- [bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter or center] -->\r\n</div>\r\n", styles: [".waw-alert-wrapper{z-index:99999;position:fixed;width:100%;pointer-events:none;display:flex;flex-direction:column}.waw-alert-wrapper-bottomLeft{left:0;bottom:0;text-align:left}.waw-alert-wrapper-bottomRight{right:0;bottom:0;text-align:right}.waw-alert-wrapper-topLeft{left:0;top:0;text-align:left}.waw-alert-wrapper-topRight{top:0;right:0;text-align:right}.waw-alert-wrapper-topCenter{top:0;left:0;right:0;text-align:center}.waw-alert-wrapper-bottomCenter{bottom:0;left:0;right:0;text-align:center}.waw-alert-wrapper-center{top:0;bottom:0;left:0;right:0;text-align:center;justify-content:center;flex-flow:column;align-items:center}\n"] }]
|
|
2367
2367
|
}], ctorParameters: function () { return []; } });
|
|
2368
2368
|
|
|
2369
2369
|
class DomService {
|
|
@@ -2779,57 +2779,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
|
2779
2779
|
} });
|
|
2780
2780
|
|
|
2781
2781
|
class SocketService {
|
|
2782
|
-
constructor(
|
|
2783
|
-
this.
|
|
2784
|
-
this.
|
|
2785
|
-
this.
|
|
2786
|
-
this.
|
|
2787
|
-
this.
|
|
2788
|
-
this.
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
if (this.
|
|
2782
|
+
constructor(_config, _core) {
|
|
2783
|
+
this._config = _config;
|
|
2784
|
+
this._core = _core;
|
|
2785
|
+
this._url = '';
|
|
2786
|
+
this._connect = !!this._config.socket;
|
|
2787
|
+
this._connected = false;
|
|
2788
|
+
this._opts = {};
|
|
2789
|
+
this._core.done('socket', this);
|
|
2790
|
+
this._url = this._core.window.location.origin.replace('4200', '8080');
|
|
2791
|
+
if (!this._config)
|
|
2792
|
+
this._config = DEFAULT_CONFIG;
|
|
2793
|
+
if (typeof this._config.socket === 'object') {
|
|
2794
|
+
if (this._config.socket.url) {
|
|
2795
|
+
this._url = this._config.socket.url;
|
|
2796
|
+
}
|
|
2797
|
+
if (this._config.socket.opts) {
|
|
2798
|
+
this._opts = this._config.socket.opts;
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
if (this._config.socket) {
|
|
2792
2802
|
this.load();
|
|
2793
2803
|
}
|
|
2794
2804
|
}
|
|
2805
|
+
setUrl(url) {
|
|
2806
|
+
this._url = url;
|
|
2807
|
+
this.load();
|
|
2808
|
+
}
|
|
2795
2809
|
load() {
|
|
2796
|
-
if (!this.
|
|
2810
|
+
if (!this._config.socket || !io) {
|
|
2797
2811
|
return;
|
|
2798
|
-
const ioFunc = io.default ? io.default : io;
|
|
2799
|
-
if (typeof this.config.socket == 'object' && this.config.socket.url) {
|
|
2800
|
-
this.url = this.config.socket.url;
|
|
2801
|
-
}
|
|
2802
|
-
let opts = {};
|
|
2803
|
-
if (typeof this.config.socket == 'object' && this.config.socket.opts) {
|
|
2804
|
-
opts = this.config.socket.opts;
|
|
2805
2812
|
}
|
|
2806
|
-
|
|
2807
|
-
this.
|
|
2808
|
-
|
|
2813
|
+
const ioFunc = io.default ? io.default : io;
|
|
2814
|
+
this._io = ioFunc(this._url, this._opts);
|
|
2815
|
+
this._io.on('connect', (socket) => {
|
|
2816
|
+
this._connected = true;
|
|
2809
2817
|
});
|
|
2810
2818
|
}
|
|
2811
2819
|
on(to, cb = (message) => { }) {
|
|
2812
|
-
if (!this.
|
|
2820
|
+
if (!this._config.socket) {
|
|
2813
2821
|
return;
|
|
2814
|
-
|
|
2822
|
+
}
|
|
2823
|
+
if (!this._connected) {
|
|
2815
2824
|
return setTimeout(() => {
|
|
2816
2825
|
this.on(to, cb);
|
|
2817
2826
|
}, 100);
|
|
2818
2827
|
}
|
|
2819
|
-
this.
|
|
2828
|
+
this._io.on(to, cb);
|
|
2820
2829
|
}
|
|
2821
2830
|
emit(to, message, room = false) {
|
|
2822
|
-
if (!this.
|
|
2831
|
+
if (!this._config.socket) {
|
|
2823
2832
|
return;
|
|
2824
|
-
|
|
2833
|
+
}
|
|
2834
|
+
if (!this._connected) {
|
|
2825
2835
|
return setTimeout(() => {
|
|
2826
2836
|
this.emit(to, message, room);
|
|
2827
2837
|
}, 100);
|
|
2828
2838
|
}
|
|
2829
|
-
this.
|
|
2839
|
+
this._io.emit(to, message, room);
|
|
2830
2840
|
}
|
|
2831
2841
|
}
|
|
2832
|
-
SocketService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, deps: [{ token:
|
|
2842
|
+
SocketService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, deps: [{ token: CONFIG_TOKEN, optional: true }, { token: CoreService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2833
2843
|
SocketService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, providedIn: 'root' });
|
|
2834
2844
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, decorators: [{
|
|
2835
2845
|
type: Injectable,
|
|
@@ -2837,12 +2847,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
|
2837
2847
|
providedIn: 'root'
|
|
2838
2848
|
}]
|
|
2839
2849
|
}], ctorParameters: function () {
|
|
2840
|
-
return [{ type:
|
|
2850
|
+
return [{ type: undefined, decorators: [{
|
|
2841
2851
|
type: Inject,
|
|
2842
2852
|
args: [CONFIG_TOKEN]
|
|
2843
2853
|
}, {
|
|
2844
2854
|
type: Optional
|
|
2845
|
-
}] }];
|
|
2855
|
+
}] }, { type: CoreService }];
|
|
2846
2856
|
} });
|
|
2847
2857
|
|
|
2848
2858
|
class ModalService {
|