wacom 14.1.5 → 14.1.7
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 +44 -31
- package/fesm2015/wacom.mjs +45 -32
- package/fesm2015/wacom.mjs.map +1 -1
- package/fesm2020/wacom.mjs +45 -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,80 @@ 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
|
+
if (!this._config.socket) {
|
|
33
|
+
this._config.socket = true;
|
|
34
|
+
}
|
|
35
|
+
this.load();
|
|
36
|
+
}
|
|
20
37
|
load() {
|
|
21
|
-
if (!this.
|
|
38
|
+
if (!this._config.socket || !io) {
|
|
22
39
|
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
40
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
this.io = ioFunc(this.url, opts);
|
|
32
|
-
this.io.on('connect', (socket) => {
|
|
33
|
-
this.connected = true;
|
|
41
|
+
const ioFunc = io.default ? io.default : io;
|
|
42
|
+
this._io = ioFunc(this._url, this._opts);
|
|
43
|
+
this._io.on('connect', (socket) => {
|
|
44
|
+
this._connected = true;
|
|
34
45
|
});
|
|
35
46
|
}
|
|
36
47
|
on(to, cb = (message) => { }) {
|
|
37
|
-
if (!this.
|
|
48
|
+
if (!this._config.socket) {
|
|
38
49
|
return;
|
|
39
|
-
|
|
50
|
+
}
|
|
51
|
+
if (!this._connected) {
|
|
40
52
|
return setTimeout(() => {
|
|
41
53
|
this.on(to, cb);
|
|
42
54
|
}, 100);
|
|
43
55
|
}
|
|
44
|
-
this.
|
|
56
|
+
this._io.on(to, cb);
|
|
45
57
|
}
|
|
46
58
|
emit(to, message, room = false) {
|
|
47
|
-
if (!this.
|
|
59
|
+
if (!this._config.socket) {
|
|
48
60
|
return;
|
|
49
|
-
|
|
61
|
+
}
|
|
62
|
+
if (!this._connected) {
|
|
50
63
|
return setTimeout(() => {
|
|
51
64
|
this.emit(to, message, room);
|
|
52
65
|
}, 100);
|
|
53
66
|
}
|
|
54
|
-
this.
|
|
67
|
+
this._io.emit(to, message, room);
|
|
55
68
|
}
|
|
56
69
|
}
|
|
57
|
-
SocketService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, deps: [{ token:
|
|
70
|
+
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
71
|
SocketService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, providedIn: 'root' });
|
|
59
72
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, decorators: [{
|
|
60
73
|
type: Injectable,
|
|
61
74
|
args: [{
|
|
62
75
|
providedIn: 'root'
|
|
63
76
|
}]
|
|
64
|
-
}], ctorParameters: function () { return [{ type:
|
|
77
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
65
78
|
type: Inject,
|
|
66
79
|
args: [CONFIG_TOKEN]
|
|
67
80
|
}, {
|
|
68
81
|
type: Optional
|
|
69
|
-
}] }]; } });
|
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
82
|
+
}] }, { type: i1.CoreService }]; } });
|
|
83
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ja2V0LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy93YWNvbS9zcmMvbGliL3NlcnZpY2VzL3NvY2tldC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQVUsY0FBYyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDNUUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTdELE9BQU8sS0FBSyxFQUFFLE1BQU0sa0JBQWtCLENBQUM7OztBQUt2QyxNQUFNLE9BQU8sYUFBYTtJQW9DekIsWUFDMkMsT0FBZSxFQUNqRCxLQUFrQjtRQURnQixZQUFPLEdBQVAsT0FBTyxDQUFRO1FBQ2pELFVBQUssR0FBTCxLQUFLLENBQWE7UUFyQ25CLFNBQUksR0FBRyxFQUFFLENBQUM7UUFjVixhQUFRLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDO1FBRWpDLGVBQVUsR0FBRyxLQUFLLENBQUM7UUFFbkIsVUFBSyxHQUFRLEVBQUUsQ0FBQztRQXFCdkIsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFLElBQUksQ0FBQyxDQU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GlmKCF0aGlzLl9jb25maWcuc29ja2V0KSB7XHJcblx0XHRcdHJldHVybjtcclxuXHRcdH1cclxuXHJcblx0XHRpZighdGhpcy5fY29ubmVjdGVkKXtcclxuXHRcdFx0cmV0dXJuIHNldFRpbWVvdXQoKCk9PntcclxuXHRcdFx0XHR0aGlzLmVtaXQodG8sIG1lc3NhZ2UsIHJvb20pO1xyXG5cdFx0XHR9LCAxMDApO1xyXG5cdFx0fVxyXG5cclxuXHRcdHRoaXMuX2lvLmVtaXQodG8sIG1lc3NhZ2UsIHJvb20pO1xyXG5cdH1cclxufVxyXG4iXX0=
|
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,70 @@ 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
|
+
if (!this._config.socket) {
|
|
2808
|
+
this._config.socket = true;
|
|
2809
|
+
}
|
|
2810
|
+
this.load();
|
|
2811
|
+
}
|
|
2795
2812
|
load() {
|
|
2796
|
-
if (!this.
|
|
2813
|
+
if (!this._config.socket || !io) {
|
|
2797
2814
|
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
2815
|
}
|
|
2806
|
-
|
|
2807
|
-
this.
|
|
2808
|
-
|
|
2816
|
+
const ioFunc = io.default ? io.default : io;
|
|
2817
|
+
this._io = ioFunc(this._url, this._opts);
|
|
2818
|
+
this._io.on('connect', (socket) => {
|
|
2819
|
+
this._connected = true;
|
|
2809
2820
|
});
|
|
2810
2821
|
}
|
|
2811
2822
|
on(to, cb = (message) => { }) {
|
|
2812
|
-
if (!this.
|
|
2823
|
+
if (!this._config.socket) {
|
|
2813
2824
|
return;
|
|
2814
|
-
|
|
2825
|
+
}
|
|
2826
|
+
if (!this._connected) {
|
|
2815
2827
|
return setTimeout(() => {
|
|
2816
2828
|
this.on(to, cb);
|
|
2817
2829
|
}, 100);
|
|
2818
2830
|
}
|
|
2819
|
-
this.
|
|
2831
|
+
this._io.on(to, cb);
|
|
2820
2832
|
}
|
|
2821
2833
|
emit(to, message, room = false) {
|
|
2822
|
-
if (!this.
|
|
2834
|
+
if (!this._config.socket) {
|
|
2823
2835
|
return;
|
|
2824
|
-
|
|
2836
|
+
}
|
|
2837
|
+
if (!this._connected) {
|
|
2825
2838
|
return setTimeout(() => {
|
|
2826
2839
|
this.emit(to, message, room);
|
|
2827
2840
|
}, 100);
|
|
2828
2841
|
}
|
|
2829
|
-
this.
|
|
2842
|
+
this._io.emit(to, message, room);
|
|
2830
2843
|
}
|
|
2831
2844
|
}
|
|
2832
|
-
SocketService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, deps: [{ token:
|
|
2845
|
+
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
2846
|
SocketService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, providedIn: 'root' });
|
|
2834
2847
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: SocketService, decorators: [{
|
|
2835
2848
|
type: Injectable,
|
|
@@ -2837,12 +2850,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.1", ngImpor
|
|
|
2837
2850
|
providedIn: 'root'
|
|
2838
2851
|
}]
|
|
2839
2852
|
}], ctorParameters: function () {
|
|
2840
|
-
return [{ type:
|
|
2853
|
+
return [{ type: undefined, decorators: [{
|
|
2841
2854
|
type: Inject,
|
|
2842
2855
|
args: [CONFIG_TOKEN]
|
|
2843
2856
|
}, {
|
|
2844
2857
|
type: Optional
|
|
2845
|
-
}] }];
|
|
2858
|
+
}] }, { type: CoreService }];
|
|
2846
2859
|
} });
|
|
2847
2860
|
|
|
2848
2861
|
class ModalService {
|