ngx-presentationcommons-esm-survey 0.0.2
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/README.md +63 -0
- package/fesm2022/ngx-presentationcommons-esm-survey.mjs +435 -0
- package/fesm2022/ngx-presentationcommons-esm-survey.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/client-board/client-board.component.d.ts +11 -0
- package/lib/components/client-puck/client-puck.component.d.ts +21 -0
- package/lib/components/client-puck-board/client-puck-board.component.d.ts +18 -0
- package/lib/components/host-board/host-board.component.d.ts +8 -0
- package/lib/components/host-puck-board/host-puck-board.component.d.ts +24 -0
- package/lib/consts/timings.d.ts +2 -0
- package/lib/helpers/expiry.d.ts +2 -0
- package/lib/interfaces/iclient-puck.d.ts +6 -0
- package/lib/interfaces/ihost-puck.d.ts +7 -0
- package/lib/services/puck-client.service.d.ts +5 -0
- package/lib/services/puck-host.service.d.ts +8 -0
- package/lib/services/survey-client.service.d.ts +16 -0
- package/lib/services/survey-host.service.d.ts +13 -0
- package/lib/types/tclient-puck.d.ts +4 -0
- package/package.json +29 -0
- package/public-api.d.ts +8 -0
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# NgxPresentationcommonsEsmSurvey
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build ngx-presentationcommons-esm-survey
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
```bash
|
|
35
|
+
cd dist/ngx-presentationcommons-esm-survey
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
+
```bash
|
|
40
|
+
npm publish
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Running unit tests
|
|
44
|
+
|
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ng test
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Running end-to-end tests
|
|
52
|
+
|
|
53
|
+
For end-to-end (e2e) testing, run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ng e2e
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
+
|
|
61
|
+
## Additional Resources
|
|
62
|
+
|
|
63
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import { CommonsFixedDuration, commonsBase62IsId, commonsTypeHasPropertyNumber, commonsNumberMedian } from 'tscommons-esm-core';
|
|
2
|
+
import { CommonsNetworkSocketIoService } from 'ngx-httpcommons-esm-network';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { EventEmitter, input, Component, model, HostListener, output } from '@angular/core';
|
|
5
|
+
import { BehaviorSubject } from 'rxjs';
|
|
6
|
+
import { commonsAsyncInterval, ECommonsInvocation, commonsAsyncAbortInterval } from 'tscommons-esm-async';
|
|
7
|
+
import { CommonsComponent } from 'ngx-angularcommons-esm-core';
|
|
8
|
+
|
|
9
|
+
function expireInDuration(duration) {
|
|
10
|
+
const date = new Date();
|
|
11
|
+
date.setTime(date.getTime() + duration.millis);
|
|
12
|
+
return date;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const PACKET_TIMEOUT_DURATION = CommonsFixedDuration.fromHis('00:00:05');
|
|
16
|
+
|
|
17
|
+
class CommonsPresentationSurveyHostService extends CommonsNetworkSocketIoService {
|
|
18
|
+
internalDebug = false;
|
|
19
|
+
set debug(state) {
|
|
20
|
+
this.internalDebug = state;
|
|
21
|
+
}
|
|
22
|
+
internalConnected = false;
|
|
23
|
+
get connected() {
|
|
24
|
+
return this.internalConnected;
|
|
25
|
+
}
|
|
26
|
+
ns;
|
|
27
|
+
constructor(url, ns, channel, deviceId) {
|
|
28
|
+
super(url, false);
|
|
29
|
+
this.ns = ns;
|
|
30
|
+
if (!commonsBase62IsId(channel))
|
|
31
|
+
throw new Error('Invalid channel id. Must be base62id');
|
|
32
|
+
if (!commonsBase62IsId(deviceId))
|
|
33
|
+
throw new Error('Invalid device id. Must be base62id');
|
|
34
|
+
this.channel = channel;
|
|
35
|
+
this.deviceId = deviceId;
|
|
36
|
+
this.connectObservable
|
|
37
|
+
.subscribe(() => {
|
|
38
|
+
this.internalConnected = true;
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
if (!this.internalConnected)
|
|
41
|
+
return;
|
|
42
|
+
void this.broadcastDeclareHost();
|
|
43
|
+
}, 500);
|
|
44
|
+
});
|
|
45
|
+
this.disconnectObservable
|
|
46
|
+
.subscribe(() => {
|
|
47
|
+
this.internalConnected = false;
|
|
48
|
+
});
|
|
49
|
+
this.receiveObservable
|
|
50
|
+
.subscribe((packet) => {
|
|
51
|
+
if (packet.ns !== this.ns)
|
|
52
|
+
return;
|
|
53
|
+
if (packet.source === this.deviceId)
|
|
54
|
+
return; // present infinite cascade
|
|
55
|
+
if (packet.command === 'identify-host') {
|
|
56
|
+
void this.declareHost(packet.source);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
async reset() {
|
|
61
|
+
if (!this.internalConnected)
|
|
62
|
+
return;
|
|
63
|
+
await this.broadcast(this.ns, 'reset', undefined, expireInDuration(PACKET_TIMEOUT_DURATION), true);
|
|
64
|
+
}
|
|
65
|
+
async declareHost(dest) {
|
|
66
|
+
if (!this.internalConnected)
|
|
67
|
+
return;
|
|
68
|
+
if (this.internalDebug)
|
|
69
|
+
console.log(`Request from ${dest} for host details. Declaring as host (${this.deviceId}) via direct`);
|
|
70
|
+
await this.direct(dest, this.ns, 'declare-host', undefined, expireInDuration(PACKET_TIMEOUT_DURATION));
|
|
71
|
+
}
|
|
72
|
+
async broadcastDeclareHost() {
|
|
73
|
+
if (!this.internalConnected)
|
|
74
|
+
return;
|
|
75
|
+
if (this.internalDebug)
|
|
76
|
+
console.log(`Declaring as host (${this.deviceId}) via broadcast`);
|
|
77
|
+
await this.broadcast(this.ns, 'declare-host', undefined, expireInDuration(PACKET_TIMEOUT_DURATION), true);
|
|
78
|
+
}
|
|
79
|
+
async shutdown() {
|
|
80
|
+
if (!this.internalConnected)
|
|
81
|
+
return;
|
|
82
|
+
await this.broadcast(this.ns, 'shutdown', undefined, expireInDuration(PACKET_TIMEOUT_DURATION), true);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
class CommonsPresentationSurveyClientService extends CommonsNetworkSocketIoService {
|
|
87
|
+
ns;
|
|
88
|
+
onReset = new EventEmitter(true);
|
|
89
|
+
get resetObservable() {
|
|
90
|
+
return this.onReset;
|
|
91
|
+
}
|
|
92
|
+
onReady = new BehaviorSubject(false);
|
|
93
|
+
get readyObservable() {
|
|
94
|
+
return this.onReady;
|
|
95
|
+
}
|
|
96
|
+
internalHost;
|
|
97
|
+
get host() {
|
|
98
|
+
return this.internalHost;
|
|
99
|
+
}
|
|
100
|
+
internalDebug = false;
|
|
101
|
+
set debug(state) {
|
|
102
|
+
this.internalDebug = state;
|
|
103
|
+
}
|
|
104
|
+
constructor(url, ns, channel, deviceId) {
|
|
105
|
+
super(url, false);
|
|
106
|
+
this.ns = ns;
|
|
107
|
+
if (!commonsBase62IsId(channel))
|
|
108
|
+
throw new Error('Invalid channel id. Must be base62id');
|
|
109
|
+
if (!commonsBase62IsId(deviceId))
|
|
110
|
+
throw new Error('Invalid device id. Must be base62id');
|
|
111
|
+
this.channel = channel;
|
|
112
|
+
this.deviceId = deviceId;
|
|
113
|
+
this.connectObservable
|
|
114
|
+
.subscribe(() => {
|
|
115
|
+
commonsAsyncInterval(PACKET_TIMEOUT_DURATION, ECommonsInvocation.IF, async () => {
|
|
116
|
+
await this.requestHost();
|
|
117
|
+
}, 'rerequest-host');
|
|
118
|
+
setTimeout(() => {
|
|
119
|
+
void this.requestHost();
|
|
120
|
+
}, 500);
|
|
121
|
+
});
|
|
122
|
+
this.disconnectObservable
|
|
123
|
+
.subscribe(() => {
|
|
124
|
+
this.onReady.next(false);
|
|
125
|
+
});
|
|
126
|
+
this.receiveObservable
|
|
127
|
+
.subscribe((packet) => {
|
|
128
|
+
if (packet.ns !== this.ns)
|
|
129
|
+
return;
|
|
130
|
+
if (packet.command === 'declare-host') {
|
|
131
|
+
if (this.internalDebug)
|
|
132
|
+
console.log(`Host declared itself as ${packet.source}`);
|
|
133
|
+
this.internalHost = packet.source;
|
|
134
|
+
commonsAsyncAbortInterval('rerequest-host');
|
|
135
|
+
this.onReady.next(true);
|
|
136
|
+
}
|
|
137
|
+
if (packet.command === 'reset')
|
|
138
|
+
this.onReset.emit();
|
|
139
|
+
if (packet.command === 'shutdown') {
|
|
140
|
+
this.onReady.next(false);
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
async requestHost() {
|
|
145
|
+
if (this.internalDebug)
|
|
146
|
+
console.log(`Requesting host via broadcast. My deviceId is ${this.deviceId}`);
|
|
147
|
+
await this.broadcast(this.ns, 'identify-host', undefined, expireInDuration(PACKET_TIMEOUT_DURATION), true);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
class CommonsPresentationSurveyPuckHostService extends CommonsPresentationSurveyHostService {
|
|
152
|
+
onMove = new EventEmitter(true);
|
|
153
|
+
get moveObservable() {
|
|
154
|
+
return this.onMove.asObservable();
|
|
155
|
+
}
|
|
156
|
+
constructor(url, ns, channel, deviceId) {
|
|
157
|
+
super(url, ns, channel, deviceId);
|
|
158
|
+
this.receiveObservable
|
|
159
|
+
.subscribe((packet) => {
|
|
160
|
+
if (packet.ns !== this.ns)
|
|
161
|
+
return;
|
|
162
|
+
if (packet.command === 'move') {
|
|
163
|
+
if (!commonsTypeHasPropertyNumber(packet.data, 'x')) {
|
|
164
|
+
console.log('No x value');
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
if (!commonsTypeHasPropertyNumber(packet.data, 'y')) {
|
|
168
|
+
console.log('No y value');
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
// console.log(`Moving received from ${packet.source} for (${(packet.data as TXy).x},${(packet.data as TXy).y})`);
|
|
172
|
+
this.onMove.emit({
|
|
173
|
+
deviceId: packet.source,
|
|
174
|
+
x: packet.data.x,
|
|
175
|
+
y: packet.data.y
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
class CommonsPresentationSurveyPuckClientService extends CommonsPresentationSurveyClientService {
|
|
183
|
+
async move(xy) {
|
|
184
|
+
if (!this.host)
|
|
185
|
+
return;
|
|
186
|
+
const simplified = {
|
|
187
|
+
x: Math.round(xy.x * 1000) / 1000,
|
|
188
|
+
y: Math.round(xy.y * 1000) / 1000
|
|
189
|
+
};
|
|
190
|
+
await this.direct(this.host, this.ns, 'move', simplified, expireInDuration(PACKET_TIMEOUT_DURATION));
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// This is a true interface
|
|
195
|
+
|
|
196
|
+
// This is a true interface
|
|
197
|
+
|
|
198
|
+
class CommonsPresentationSurveyHostBoardComponent {
|
|
199
|
+
pucks = input.required();
|
|
200
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSurveyHostBoardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
201
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: CommonsPresentationSurveyHostBoardComponent, isStandalone: true, selector: "commons-survey-host-board", inputs: { pucks: { classPropertyName: "pucks", publicName: "pucks", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<section board>\n\t@for (puck of this.pucks(); track puck.deviceId) {\n\t\t<section class=\"dot\"\n\t\t\t\t[style.left.%]=\"puck.x * 100\"\n\t\t\t\t[style.top.%]=\"puck.y * 100\"\n\t\t></section>\n\t}\n</section>\n", styles: ["section.board{width:100%;height:100%;position:relative;top:0;left:0}section.dot{position:absolute;top:0;left:0;width:.5rem;height:.5rem;transform:translate(-.25rem,-.25rem);border-radius:.25rem;background-color:#d9006d}\n"] });
|
|
202
|
+
}
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSurveyHostBoardComponent, decorators: [{
|
|
204
|
+
type: Component,
|
|
205
|
+
args: [{ selector: 'commons-survey-host-board', standalone: true, imports: [], template: "<section board>\n\t@for (puck of this.pucks(); track puck.deviceId) {\n\t\t<section class=\"dot\"\n\t\t\t\t[style.left.%]=\"puck.x * 100\"\n\t\t\t\t[style.top.%]=\"puck.y * 100\"\n\t\t></section>\n\t}\n</section>\n", styles: ["section.board{width:100%;height:100%;position:relative;top:0;left:0}section.dot{position:absolute;top:0;left:0;width:.5rem;height:.5rem;transform:translate(-.25rem,-.25rem);border-radius:.25rem;background-color:#d9006d}\n"] }]
|
|
206
|
+
}] });
|
|
207
|
+
|
|
208
|
+
class CommonsPresentationSurveyHostPuckBoardComponent extends CommonsComponent {
|
|
209
|
+
topLeft = input();
|
|
210
|
+
bottomLeft = input();
|
|
211
|
+
topRight = input();
|
|
212
|
+
bottomRight = input();
|
|
213
|
+
connected = false;
|
|
214
|
+
pucks = [];
|
|
215
|
+
set service(service) {
|
|
216
|
+
this.subscribe(service.connectedObservable, (state) => {
|
|
217
|
+
this.connected = state;
|
|
218
|
+
});
|
|
219
|
+
this.subscribe(service.puckUpdatedObservable, (puck) => {
|
|
220
|
+
const existing = this.pucks
|
|
221
|
+
.find((p) => p.deviceId === puck.deviceId);
|
|
222
|
+
if (existing) {
|
|
223
|
+
existing.x = puck.x;
|
|
224
|
+
existing.y = puck.y;
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
this.pucks.push({ ...puck });
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
this.subscribe(service.resetObservable, () => {
|
|
231
|
+
this.pucks = [];
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
get isLeft() {
|
|
235
|
+
const xs = this.pucks
|
|
236
|
+
.map((xy) => xy.x);
|
|
237
|
+
return (commonsNumberMedian(xs) ?? 0.5) <= 0.5;
|
|
238
|
+
}
|
|
239
|
+
get isRight() {
|
|
240
|
+
const xs = this.pucks
|
|
241
|
+
.map((xy) => xy.x);
|
|
242
|
+
return (commonsNumberMedian(xs) ?? 0.5) >= 0.5;
|
|
243
|
+
}
|
|
244
|
+
get isTop() {
|
|
245
|
+
const xs = this.pucks
|
|
246
|
+
.map((xy) => xy.y);
|
|
247
|
+
return (commonsNumberMedian(xs) ?? 0.5) <= 0.5;
|
|
248
|
+
}
|
|
249
|
+
get isBottom() {
|
|
250
|
+
const xs = this.pucks
|
|
251
|
+
.map((xy) => xy.y);
|
|
252
|
+
return (commonsNumberMedian(xs) ?? 0.5) >= 0.5;
|
|
253
|
+
}
|
|
254
|
+
get isTopLeft() {
|
|
255
|
+
if ((this.topLeft() && !this.bottomLeft()) || (!this.topLeft() && this.bottomLeft()))
|
|
256
|
+
return this.isLeft;
|
|
257
|
+
if ((this.topLeft() && !this.topRight()) || (!this.topLeft() && this.topRight()))
|
|
258
|
+
return this.isTop;
|
|
259
|
+
return this.isLeft && this.isTop;
|
|
260
|
+
}
|
|
261
|
+
get isBottomLeft() {
|
|
262
|
+
if ((this.topLeft() && !this.bottomLeft()) || (!this.topLeft() && this.bottomLeft()))
|
|
263
|
+
return this.isLeft;
|
|
264
|
+
if ((this.bottomLeft() && !this.bottomRight()) || (!this.bottomLeft() && this.bottomRight()))
|
|
265
|
+
return this.isBottom;
|
|
266
|
+
return this.isLeft && this.isBottom;
|
|
267
|
+
}
|
|
268
|
+
get isTopRight() {
|
|
269
|
+
if ((this.topLeft() && !this.bottomLeft()) || (!this.topLeft() && this.bottomLeft()))
|
|
270
|
+
return this.isRight;
|
|
271
|
+
if ((this.topLeft() && !this.topRight()) || (!this.topLeft() && this.topRight()))
|
|
272
|
+
return this.isTop;
|
|
273
|
+
return this.isRight && this.isTop;
|
|
274
|
+
}
|
|
275
|
+
get isBottomRight() {
|
|
276
|
+
if ((this.topLeft() && !this.bottomLeft()) || (!this.topLeft() && this.bottomLeft()))
|
|
277
|
+
return this.isRight;
|
|
278
|
+
if ((this.bottomLeft() && !this.bottomRight()) || (!this.bottomLeft() && this.bottomRight()))
|
|
279
|
+
return this.isBottom;
|
|
280
|
+
return this.isRight && this.isBottom;
|
|
281
|
+
}
|
|
282
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSurveyHostPuckBoardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
283
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: CommonsPresentationSurveyHostPuckBoardComponent, isStandalone: true, selector: "commons-survey-host-puck-board", inputs: { topLeft: { classPropertyName: "topLeft", publicName: "topLeft", isSignal: true, isRequired: false, transformFunction: null }, bottomLeft: { classPropertyName: "bottomLeft", publicName: "bottomLeft", isSignal: true, isRequired: false, transformFunction: null }, topRight: { classPropertyName: "topRight", publicName: "topRight", isSignal: true, isRequired: false, transformFunction: null }, bottomRight: { classPropertyName: "bottomRight", publicName: "bottomRight", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<section>\n\t<commons-survey-host-board\n\t\t\t[pucks]=\"this.pucks\"\n\t></commons-survey-host-board>\n\n\t@if (this.topLeft()) {\n\t\t<label class=\"top-left\"\n\t\t\t\t[class.selected]=\"this.isTopLeft\"\n\t\t>{{ this.topLeft() }}</label>\n\t}\n\t@if (this.topRight()) {\n\t\t<label class=\"top-right\"\n\t\t\t\t[class.selected]=\"this.isTopRight\"\n\t\t>{{ this.topRight() }}</label>\n\t}\n\t@if (this.bottomLeft()) {\n\t\t<label class=\"bottom-left\"\n\t\t\t\t[class.selected]=\"this.isBottomLeft\"\n\t\t>{{ this.bottomLeft() }}</label>\n\t}\n\t@if (this.bottomRight()) {\n\t\t<label class=\"bottom-right\"\n\t\t\t\t[class.selected]=\"this.isBottomRight\"\n\t\t>{{ this.bottomRight() }}</label>\n\t}\n</section>\n", styles: ["section{box-sizing:border-box;width:100%;height:100%;position:relative;top:0;left:0}label{position:absolute;display:block;margin:0;padding:0;color:teal;transition:color .5s ease-in-out}label.selected{color:#d9006d}label.top-left{top:0;left:0}label.top-right{top:0;right:0}label.bottom-left{bottom:0;left:0}label.bottom-right{bottom:0;right:0}\n"], dependencies: [{ kind: "component", type: CommonsPresentationSurveyHostBoardComponent, selector: "commons-survey-host-board", inputs: ["pucks"] }] });
|
|
284
|
+
}
|
|
285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSurveyHostPuckBoardComponent, decorators: [{
|
|
286
|
+
type: Component,
|
|
287
|
+
args: [{ selector: 'commons-survey-host-puck-board', standalone: true, imports: [
|
|
288
|
+
CommonsPresentationSurveyHostBoardComponent
|
|
289
|
+
], template: "<section>\n\t<commons-survey-host-board\n\t\t\t[pucks]=\"this.pucks\"\n\t></commons-survey-host-board>\n\n\t@if (this.topLeft()) {\n\t\t<label class=\"top-left\"\n\t\t\t\t[class.selected]=\"this.isTopLeft\"\n\t\t>{{ this.topLeft() }}</label>\n\t}\n\t@if (this.topRight()) {\n\t\t<label class=\"top-right\"\n\t\t\t\t[class.selected]=\"this.isTopRight\"\n\t\t>{{ this.topRight() }}</label>\n\t}\n\t@if (this.bottomLeft()) {\n\t\t<label class=\"bottom-left\"\n\t\t\t\t[class.selected]=\"this.isBottomLeft\"\n\t\t>{{ this.bottomLeft() }}</label>\n\t}\n\t@if (this.bottomRight()) {\n\t\t<label class=\"bottom-right\"\n\t\t\t\t[class.selected]=\"this.isBottomRight\"\n\t\t>{{ this.bottomRight() }}</label>\n\t}\n</section>\n", styles: ["section{box-sizing:border-box;width:100%;height:100%;position:relative;top:0;left:0}label{position:absolute;display:block;margin:0;padding:0;color:teal;transition:color .5s ease-in-out}label.selected{color:#d9006d}label.top-left{top:0;left:0}label.top-right{top:0;right:0}label.bottom-left{bottom:0;left:0}label.bottom-right{bottom:0;right:0}\n"] }]
|
|
290
|
+
}] });
|
|
291
|
+
|
|
292
|
+
class CommonsPresentationSurveyClientPuckComponent {
|
|
293
|
+
windowResized() {
|
|
294
|
+
this.centrePosition();
|
|
295
|
+
}
|
|
296
|
+
disabled = input(false);
|
|
297
|
+
xy = model.required();
|
|
298
|
+
eventStart;
|
|
299
|
+
start;
|
|
300
|
+
get isMoving() {
|
|
301
|
+
return this.eventStart !== undefined;
|
|
302
|
+
}
|
|
303
|
+
ngAfterViewInit() {
|
|
304
|
+
setTimeout(() => {
|
|
305
|
+
this.centrePosition();
|
|
306
|
+
}, 0);
|
|
307
|
+
setTimeout(() => {
|
|
308
|
+
this.centrePosition();
|
|
309
|
+
}, 500);
|
|
310
|
+
}
|
|
311
|
+
centrePosition() {
|
|
312
|
+
this.xy.set({
|
|
313
|
+
x: window.innerWidth / 2,
|
|
314
|
+
y: window.innerHeight / 2
|
|
315
|
+
});
|
|
316
|
+
this.eventStart = undefined;
|
|
317
|
+
}
|
|
318
|
+
doMouseDown(event) {
|
|
319
|
+
if (this.disabled())
|
|
320
|
+
return;
|
|
321
|
+
this.eventStart = {
|
|
322
|
+
x: event.screenX,
|
|
323
|
+
y: event.screenY
|
|
324
|
+
};
|
|
325
|
+
this.start = { ...this.xy() };
|
|
326
|
+
}
|
|
327
|
+
doMouseUp(_event) {
|
|
328
|
+
this.eventStart = undefined;
|
|
329
|
+
}
|
|
330
|
+
doMouseMove(event) {
|
|
331
|
+
if (!this.eventStart)
|
|
332
|
+
return;
|
|
333
|
+
const dx = event.screenX - this.eventStart.x;
|
|
334
|
+
const dy = event.screenY - this.eventStart.y;
|
|
335
|
+
this.xy.set({
|
|
336
|
+
x: this.start.x + dx,
|
|
337
|
+
y: this.start.y + dy
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
doTouchStart(event) {
|
|
341
|
+
if (this.disabled())
|
|
342
|
+
return;
|
|
343
|
+
if (event.touches.length < 1)
|
|
344
|
+
return;
|
|
345
|
+
this.eventStart = {
|
|
346
|
+
x: event.touches[0].screenX,
|
|
347
|
+
y: event.touches[0].screenY
|
|
348
|
+
};
|
|
349
|
+
this.start = { ...this.xy() };
|
|
350
|
+
}
|
|
351
|
+
doTouchEnd(_event) {
|
|
352
|
+
this.eventStart = undefined;
|
|
353
|
+
}
|
|
354
|
+
doTouchMove(event) {
|
|
355
|
+
if (!this.eventStart)
|
|
356
|
+
return;
|
|
357
|
+
const dx = event.touches[0].screenX - this.eventStart.x;
|
|
358
|
+
const dy = event.touches[0].screenY - this.eventStart.y;
|
|
359
|
+
this.xy.set({
|
|
360
|
+
x: this.start.x + dx,
|
|
361
|
+
y: this.start.y + dy
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSurveyClientPuckComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
365
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: CommonsPresentationSurveyClientPuckComponent, isStandalone: true, selector: "commons-survey-client-puck", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, xy: { classPropertyName: "xy", publicName: "xy", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { xy: "xyChange" }, host: { listeners: { "window:resize": "windowResized()" } }, ngImport: i0, template: "<aside\n\t\t[style.top.px]=\"this.xy().y\"\n\t\t[style.left.px]=\"this.xy().x\"\n>\n\t<section outer\n\t\t\t(mousedown)=\"this.doMouseDown($event);\"\n\t\t\t(mouseup)=\"this.doMouseUp($event);\"\n\t\t\t(mousemove)=\"this.doMouseMove($event);\"\n\t\t\t(touchstart)=\"this.doTouchStart($event);\"\n\t\t\t(touchend)=\"this.doTouchEnd($event);\"\n\t\t\t(touchmove)=\"this.doTouchMove($event);\"\n\t></section>\n\t<section inner\n\t\t\t[class.moving]=\"this.isMoving\"\n\t\t\t[class.disabled]=\"this.disabled()\"\n\t></section>\n</aside>\n", styles: ["aside{position:fixed;top:0;left:0;width:1px;height:1px;-webkit-user-select:none;user-select:none}section[outer]{position:absolute;top:0;left:0;width:40vmin;height:40vmin;border-radius:20vmin;background-color:#fff0;transform:translate(-20vmin,-20vmin)}section[inner]{position:absolute;top:0;left:0;width:20vmin;height:20vmin;border-radius:10vmin;background-color:teal;transform:translate(-10vmin,-10vmin);pointer-events:none}section[inner].moving{background-color:#d9006d}section[inner].disabled{background-color:#e0e0e0}\n"] });
|
|
366
|
+
}
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSurveyClientPuckComponent, decorators: [{
|
|
368
|
+
type: Component,
|
|
369
|
+
args: [{ selector: 'commons-survey-client-puck', standalone: true, template: "<aside\n\t\t[style.top.px]=\"this.xy().y\"\n\t\t[style.left.px]=\"this.xy().x\"\n>\n\t<section outer\n\t\t\t(mousedown)=\"this.doMouseDown($event);\"\n\t\t\t(mouseup)=\"this.doMouseUp($event);\"\n\t\t\t(mousemove)=\"this.doMouseMove($event);\"\n\t\t\t(touchstart)=\"this.doTouchStart($event);\"\n\t\t\t(touchend)=\"this.doTouchEnd($event);\"\n\t\t\t(touchmove)=\"this.doTouchMove($event);\"\n\t></section>\n\t<section inner\n\t\t\t[class.moving]=\"this.isMoving\"\n\t\t\t[class.disabled]=\"this.disabled()\"\n\t></section>\n</aside>\n", styles: ["aside{position:fixed;top:0;left:0;width:1px;height:1px;-webkit-user-select:none;user-select:none}section[outer]{position:absolute;top:0;left:0;width:40vmin;height:40vmin;border-radius:20vmin;background-color:#fff0;transform:translate(-20vmin,-20vmin)}section[inner]{position:absolute;top:0;left:0;width:20vmin;height:20vmin;border-radius:10vmin;background-color:teal;transform:translate(-10vmin,-10vmin);pointer-events:none}section[inner].moving{background-color:#d9006d}section[inner].disabled{background-color:#e0e0e0}\n"] }]
|
|
370
|
+
}], propDecorators: { windowResized: [{
|
|
371
|
+
type: HostListener,
|
|
372
|
+
args: ['window:resize', []]
|
|
373
|
+
}] } });
|
|
374
|
+
|
|
375
|
+
class CommonsPresentationSurveyClientBoardComponent {
|
|
376
|
+
connected = input.required();
|
|
377
|
+
moved = output();
|
|
378
|
+
xy = { x: 0, y: 0 };
|
|
379
|
+
doCascade(xy) {
|
|
380
|
+
if (!this.connected)
|
|
381
|
+
return;
|
|
382
|
+
this.moved.emit({
|
|
383
|
+
x: xy.x / window.outerWidth,
|
|
384
|
+
y: xy.y / window.outerHeight
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSurveyClientBoardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
388
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: CommonsPresentationSurveyClientBoardComponent, isStandalone: true, selector: "commons-survey-client-board", inputs: { connected: { classPropertyName: "connected", publicName: "connected", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { moved: "moved" }, ngImport: i0, template: "<section board></section>\n<commons-survey-client-puck\n\t\t[(xy)]=\"this.xy\"\n\t\t(xyChange)=\"this.doCascade($event);\"\n\t\t[disabled]=\"!this.connected\"\n></commons-survey-client-puck>\n", styles: ["section[board]{position:fixed;top:0;left:0;width:100%;height:100vh;background-color:#fff;overflow:hidden}\n"], dependencies: [{ kind: "component", type: CommonsPresentationSurveyClientPuckComponent, selector: "commons-survey-client-puck", inputs: ["disabled", "xy"], outputs: ["xyChange"] }] });
|
|
389
|
+
}
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSurveyClientBoardComponent, decorators: [{
|
|
391
|
+
type: Component,
|
|
392
|
+
args: [{ selector: 'commons-survey-client-board', standalone: true, imports: [
|
|
393
|
+
CommonsPresentationSurveyClientPuckComponent
|
|
394
|
+
], template: "<section board></section>\n<commons-survey-client-puck\n\t\t[(xy)]=\"this.xy\"\n\t\t(xyChange)=\"this.doCascade($event);\"\n\t\t[disabled]=\"!this.connected\"\n></commons-survey-client-puck>\n", styles: ["section[board]{position:fixed;top:0;left:0;width:100%;height:100vh;background-color:#fff;overflow:hidden}\n"] }]
|
|
395
|
+
}] });
|
|
396
|
+
|
|
397
|
+
class CommonsPresentationSurveyClientPuckBoardComponent extends CommonsComponent {
|
|
398
|
+
title = input.required();
|
|
399
|
+
topLeft = input();
|
|
400
|
+
bottomLeft = input();
|
|
401
|
+
topRight = input();
|
|
402
|
+
bottomRight = input();
|
|
403
|
+
internalService;
|
|
404
|
+
connected = false;
|
|
405
|
+
set service(service) {
|
|
406
|
+
this.internalService = service;
|
|
407
|
+
this.subscribe(service.connectedObservable, (state) => {
|
|
408
|
+
this.connected = state;
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
doUpdate(xy) {
|
|
412
|
+
if (!this.internalService)
|
|
413
|
+
return;
|
|
414
|
+
void this.internalService.move(xy);
|
|
415
|
+
}
|
|
416
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSurveyClientPuckBoardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
417
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: CommonsPresentationSurveyClientPuckBoardComponent, isStandalone: true, selector: "commons-survey-client-puck-board", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, topLeft: { classPropertyName: "topLeft", publicName: "topLeft", isSignal: true, isRequired: false, transformFunction: null }, bottomLeft: { classPropertyName: "bottomLeft", publicName: "bottomLeft", isSignal: true, isRequired: false, transformFunction: null }, topRight: { classPropertyName: "topRight", publicName: "topRight", isSignal: true, isRequired: false, transformFunction: null }, bottomRight: { classPropertyName: "bottomRight", publicName: "bottomRight", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<commons-survey-client-board\n\t\t[connected]=\"this.connected\"\n\t\t(moved)=\"this.doUpdate($event);\"\n></commons-survey-client-board>\n\n<label class=\"title\">{{ this.title() }}</label>\n\n@if (this.topLeft()) {\n\t<label class=\"top-left\">{{ this.topLeft() }}</label>\n}\n@if (this.topRight()) {\n\t<label class=\"top-right\">{{ this.topRight() }}</label>\n}\n@if (this.bottomLeft()) {\n\t<label class=\"bottom-left\">{{ this.bottomLeft() }}</label>\n}\n@if (this.bottomRight()) {\n\t<label class=\"bottom-right\">{{ this.bottomRight() }}</label>\n}\n", styles: ["label{font-family:Rubik,Roboto,sans-serif;font-weight:600;text-transform:uppercase;font-size:5vw;position:fixed;color:#0003;pointer-events:none}label.title{top:5vmin;left:0;right:0;text-align:center}label.top-left{top:5vmin;left:5vmin}label.top-right{top:5vmin;right:5vmin}label.bottom-left{bottom:5vmin;left:5vmin}label.bottom-right{bottom:5vmin;right:5vmin}\n"], dependencies: [{ kind: "component", type: CommonsPresentationSurveyClientBoardComponent, selector: "commons-survey-client-board", inputs: ["connected"], outputs: ["moved"] }] });
|
|
418
|
+
}
|
|
419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: CommonsPresentationSurveyClientPuckBoardComponent, decorators: [{
|
|
420
|
+
type: Component,
|
|
421
|
+
args: [{ selector: 'commons-survey-client-puck-board', standalone: true, imports: [
|
|
422
|
+
CommonsPresentationSurveyClientBoardComponent
|
|
423
|
+
], template: "<commons-survey-client-board\n\t\t[connected]=\"this.connected\"\n\t\t(moved)=\"this.doUpdate($event);\"\n></commons-survey-client-board>\n\n<label class=\"title\">{{ this.title() }}</label>\n\n@if (this.topLeft()) {\n\t<label class=\"top-left\">{{ this.topLeft() }}</label>\n}\n@if (this.topRight()) {\n\t<label class=\"top-right\">{{ this.topRight() }}</label>\n}\n@if (this.bottomLeft()) {\n\t<label class=\"bottom-left\">{{ this.bottomLeft() }}</label>\n}\n@if (this.bottomRight()) {\n\t<label class=\"bottom-right\">{{ this.bottomRight() }}</label>\n}\n", styles: ["label{font-family:Rubik,Roboto,sans-serif;font-weight:600;text-transform:uppercase;font-size:5vw;position:fixed;color:#0003;pointer-events:none}label.title{top:5vmin;left:0;right:0;text-align:center}label.top-left{top:5vmin;left:5vmin}label.top-right{top:5vmin;right:5vmin}label.bottom-left{bottom:5vmin;left:5vmin}label.bottom-right{bottom:5vmin;right:5vmin}\n"] }]
|
|
424
|
+
}] });
|
|
425
|
+
|
|
426
|
+
/*
|
|
427
|
+
* Public API Surface of ngx-presentationcommons-esm-survey
|
|
428
|
+
*/
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Generated bundle index. Do not edit.
|
|
432
|
+
*/
|
|
433
|
+
|
|
434
|
+
export { CommonsPresentationSurveyClientPuckBoardComponent, CommonsPresentationSurveyClientService, CommonsPresentationSurveyHostPuckBoardComponent, CommonsPresentationSurveyHostService, CommonsPresentationSurveyPuckClientService, CommonsPresentationSurveyPuckHostService };
|
|
435
|
+
//# sourceMappingURL=ngx-presentationcommons-esm-survey.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-presentationcommons-esm-survey.mjs","sources":["../../../projects/ngx-presentationcommons-esm-survey/src/lib/helpers/expiry.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/consts/timings.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/services/survey-host.service.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/services/survey-client.service.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/services/puck-host.service.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/services/puck-client.service.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/interfaces/iclient-puck.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/interfaces/ihost-puck.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/components/host-board/host-board.component.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/components/host-board/host-board.component.html","../../../projects/ngx-presentationcommons-esm-survey/src/lib/components/host-puck-board/host-puck-board.component.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/components/host-puck-board/host-puck-board.component.html","../../../projects/ngx-presentationcommons-esm-survey/src/lib/components/client-puck/client-puck.component.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/components/client-puck/client-puck.component.html","../../../projects/ngx-presentationcommons-esm-survey/src/lib/components/client-board/client-board.component.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/components/client-board/client-board.component.html","../../../projects/ngx-presentationcommons-esm-survey/src/lib/components/client-puck-board/client-puck-board.component.ts","../../../projects/ngx-presentationcommons-esm-survey/src/lib/components/client-puck-board/client-puck-board.component.html","../../../projects/ngx-presentationcommons-esm-survey/src/public-api.ts","../../../projects/ngx-presentationcommons-esm-survey/src/ngx-presentationcommons-esm-survey.ts"],"sourcesContent":["import { CommonsFixedDuration } from 'tscommons-esm-core/dist/index.mjs';\n\nexport function expireInDuration(duration: CommonsFixedDuration): Date {\n\tconst date: Date = new Date();\n\tdate.setTime(date.getTime() + duration.millis);\n\n\treturn date;\n}\n","import { CommonsFixedDuration } from 'tscommons-esm-core';\n\nexport const PACKET_TIMEOUT_DURATION: CommonsFixedDuration = CommonsFixedDuration.fromHis('00:00:05');\n","import { commonsBase62IsId } from 'tscommons-esm-core';\nimport { ICommonsNetworkPacket } from 'tscommons-esm-network';\n\nimport { CommonsNetworkSocketIoService } from 'ngx-httpcommons-esm-network';\n\nimport { expireInDuration } from '../helpers/expiry';\nimport { PACKET_TIMEOUT_DURATION } from '../consts/timings';\n\nexport abstract class CommonsPresentationSurveyHostService extends CommonsNetworkSocketIoService {\n\tprivate internalDebug: boolean = false;\n\tpublic set debug(state: boolean) {\n\t\tthis.internalDebug = state;\n\t}\n\n\tprivate internalConnected: boolean = false;\n\tprotected get connected(): boolean {\n\t\treturn this.internalConnected;\n\t}\n\n\tprotected readonly ns: string;\n\n\tconstructor(\n\t\t\turl: string,\n\t\t\tns: string,\n\t\t\tchannel: string,\n\t\t\tdeviceId: string\n\t) {\n\t\tsuper(\n\t\t\t\turl,\n\t\t\t\tfalse\n\t\t);\n\t\tthis.ns = ns;\n\n\t\tif (!commonsBase62IsId(channel)) throw new Error('Invalid channel id. Must be base62id');\n\t\tif (!commonsBase62IsId(deviceId)) throw new Error('Invalid device id. Must be base62id');\n\n\t\tthis.channel = channel;\n\t\tthis.deviceId = deviceId;\n\n\t\tthis.connectObservable\n\t\t\t\t.subscribe((): void => {\n\t\t\t\t\tthis.internalConnected = true;\n\t\t\t\t\tsetTimeout(\n\t\t\t\t\t\t\t(): void => {\n\t\t\t\t\t\t\t\tif (!this.internalConnected) return;\n\n\t\t\t\t\t\t\t\tvoid this.broadcastDeclareHost();\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t500\n\t\t\t\t\t);\n\t\t\t\t});\n\t\t\n\t\tthis.disconnectObservable\n\t\t\t\t.subscribe((): void => {\n\t\t\t\t\tthis.internalConnected = false;\n\t\t\t\t});\n\n\t\tthis.receiveObservable\n\t\t\t\t.subscribe((packet: ICommonsNetworkPacket): void => {\n\t\t\t\t\tif (packet.ns !== this.ns) return;\n\t\t\t\t\tif (packet.source === this.deviceId) return;\t// present infinite cascade\n\n\t\t\t\t\tif (packet.command === 'identify-host') {\n\t\t\t\t\t\tvoid this.declareHost(packet.source);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}\n\n\tpublic async reset(): Promise<void> {\n\t\tif (!this.internalConnected) return;\n\n\t\tawait this.broadcast(\n\t\t\t\tthis.ns,\n\t\t\t\t'reset',\n\t\t\t\tundefined,\n\t\t\t\texpireInDuration(PACKET_TIMEOUT_DURATION),\n\t\t\t\ttrue\n\t\t);\n\t}\n\n\tprivate async declareHost(dest: string): Promise<void> {\n\t\tif (!this.internalConnected) return;\n\n\t\tif (this.internalDebug) console.log(`Request from ${dest} for host details. Declaring as host (${this.deviceId}) via direct`);\n\t\tawait this.direct(\n\t\t\t\tdest,\n\t\t\t\tthis.ns,\n\t\t\t\t'declare-host',\n\t\t\t\tundefined,\n\t\t\t\texpireInDuration(PACKET_TIMEOUT_DURATION)\n\t\t);\n\t}\n\n\tpublic async broadcastDeclareHost(): Promise<void> {\n\t\tif (!this.internalConnected) return;\n\n\t\tif (this.internalDebug) console.log(`Declaring as host (${this.deviceId}) via broadcast`);\n\t\tawait this.broadcast(\n\t\t\t\tthis.ns,\n\t\t\t\t'declare-host',\n\t\t\t\tundefined,\n\t\t\t\texpireInDuration(PACKET_TIMEOUT_DURATION),\n\t\t\t\ttrue\n\t\t);\n\t}\n\n\tpublic async shutdown(): Promise<void> {\n\t\tif (!this.internalConnected) return;\n\n\t\tawait this.broadcast(\n\t\t\t\tthis.ns,\n\t\t\t\t'shutdown',\n\t\t\t\tundefined,\n\t\t\t\texpireInDuration(PACKET_TIMEOUT_DURATION),\n\t\t\t\ttrue\n\t\t);\n\t}\n}\n","import { EventEmitter } from '@angular/core';\n\nimport { BehaviorSubject, Observable } from 'rxjs';\n\nimport { commonsBase62IsId } from 'tscommons-esm-core';\nimport { ECommonsInvocation, commonsAsyncAbortInterval, commonsAsyncInterval } from 'tscommons-esm-async';\nimport { ICommonsNetworkPacket } from 'tscommons-esm-network';\n\nimport { CommonsNetworkSocketIoService } from 'ngx-httpcommons-esm-network';\n\nimport { expireInDuration } from '../helpers/expiry';\nimport { PACKET_TIMEOUT_DURATION } from '../consts/timings';\n\nexport abstract class CommonsPresentationSurveyClientService extends CommonsNetworkSocketIoService {\n\tprivate onReset: EventEmitter<void> = new EventEmitter<void>(true);\n\tpublic get resetObservable(): EventEmitter<void> {\n\t\treturn this.onReset;\n\t}\n\n\tprivate onReady: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);\n\tpublic get readyObservable(): Observable<boolean> {\n\t\treturn this.onReady;\n\t}\n\n\tprivate internalHost: string|undefined;\n\tprotected get host(): string|undefined {\n\t\treturn this.internalHost;\n\t}\n\t\n\tprivate internalDebug: boolean = false;\n\tpublic set debug(state: boolean) {\n\t\tthis.internalDebug = state;\n\t}\n\n\tconstructor(\n\t\t\turl: string,\n\t\t\tprotected ns: string,\n\t\t\tchannel: string,\n\t\t\tdeviceId: string\n\t) {\n\t\tsuper(\n\t\t\t\turl,\n\t\t\t\tfalse\n\t\t);\n\n\t\tif (!commonsBase62IsId(channel)) throw new Error('Invalid channel id. Must be base62id');\n\t\tif (!commonsBase62IsId(deviceId)) throw new Error('Invalid device id. Must be base62id');\n\n\t\tthis.channel = channel;\n\t\tthis.deviceId = deviceId;\n\n\t\tthis.connectObservable\n\t\t\t\t.subscribe((): void => {\n\t\t\t\t\tcommonsAsyncInterval(\n\t\t\t\t\t\t\tPACKET_TIMEOUT_DURATION,\n\t\t\t\t\t\t\tECommonsInvocation.IF,\n\t\t\t\t\t\t\tasync (): Promise<void> => {\n\t\t\t\t\t\t\t\tawait this.requestHost();\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t'rerequest-host'\n\t\t\t\t\t);\n\n\t\t\t\t\tsetTimeout(\n\t\t\t\t\t\t\t(): void => {\n\t\t\t\t\t\t\t\tvoid this.requestHost();\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t500\n\t\t\t\t\t);\n\t\t\t\t});\n\n\t\tthis.disconnectObservable\n\t\t\t\t.subscribe((): void => {\n\t\t\t\t\tthis.onReady.next(false);\n\t\t\t\t});\n\n\t\tthis.receiveObservable\n\t\t\t\t.subscribe((packet: ICommonsNetworkPacket): void => {\n\t\t\t\t\tif (packet.ns !== this.ns) return;\n\n\t\t\t\t\tif (packet.command === 'declare-host') {\n\t\t\t\t\t\tif (this.internalDebug) console.log(`Host declared itself as ${packet.source}`);\n\t\t\t\t\t\tthis.internalHost = packet.source;\n\n\t\t\t\t\t\tcommonsAsyncAbortInterval('rerequest-host');\n\n\t\t\t\t\t\tthis.onReady.next(true);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (packet.command === 'reset') this.onReset.emit();\n\n\t\t\t\t\tif (packet.command === 'shutdown') {\n\t\t\t\t\t\tthis.onReady.next(false);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}\n\n\tprivate async requestHost(): Promise<void> {\n\t\tif (this.internalDebug) console.log(`Requesting host via broadcast. My deviceId is ${this.deviceId}`);\n\t\tawait this.broadcast(\n\t\t\t\tthis.ns,\n\t\t\t\t'identify-host',\n\t\t\t\tundefined,\n\t\t\t\texpireInDuration(PACKET_TIMEOUT_DURATION),\n\t\t\t\ttrue\n\t\t);\n\t}\n}\n","import { EventEmitter } from '@angular/core';\n\nimport { Observable } from 'rxjs';\n\nimport { commonsTypeHasPropertyNumber } from 'tscommons-esm-core';\nimport { ICommonsNetworkPacket } from 'tscommons-esm-network';\nimport { TXy } from 'tscommons-esm-graphics';\n\nimport { TCommonsPresentationSurveyClientPuck } from '../types/tclient-puck';\n\nimport { CommonsPresentationSurveyHostService } from './survey-host.service';\n\nexport abstract class CommonsPresentationSurveyPuckHostService extends CommonsPresentationSurveyHostService {\n\tprivate onMove: EventEmitter<TCommonsPresentationSurveyClientPuck> = new EventEmitter<TCommonsPresentationSurveyClientPuck>(true);\n\n\tpublic get moveObservable(): Observable<TCommonsPresentationSurveyClientPuck> {\n\t\treturn this.onMove.asObservable();\n\t}\n\n\tconstructor(\n\t\t\turl: string,\n\t\t\tns: string,\n\t\t\tchannel: string,\n\t\t\tdeviceId: string\n\t) {\n\t\tsuper(\n\t\t\t\turl,\n\t\t\t\tns,\n\t\t\t\tchannel,\n\t\t\t\tdeviceId\n\t\t);\n\t\t\n\t\tthis.receiveObservable\n\t\t\t\t.subscribe((packet: ICommonsNetworkPacket): void => {\n\t\t\t\t\tif (packet.ns !== this.ns) return;\n\n\t\t\t\t\tif (packet.command === 'move') {\n\t\t\t\t\t\tif (!commonsTypeHasPropertyNumber(packet.data, 'x')) {\n\t\t\t\t\t\t\tconsole.log('No x value');\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!commonsTypeHasPropertyNumber(packet.data, 'y')) {\n\t\t\t\t\t\t\tconsole.log('No y value');\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// console.log(`Moving received from ${packet.source} for (${(packet.data as TXy).x},${(packet.data as TXy).y})`);\n\t\t\t\t\t\tthis.onMove.emit({\n\t\t\t\t\t\t\t\tdeviceId: packet.source,\n\t\t\t\t\t\t\t\tx: (packet.data as TXy).x,\n\t\t\t\t\t\t\t\ty: (packet.data as TXy).y\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t}\n}\n","import { TXy } from 'tscommons-esm-graphics';\n\nimport { expireInDuration } from '../helpers/expiry';\nimport { PACKET_TIMEOUT_DURATION } from '../consts/timings';\n\nimport { CommonsPresentationSurveyClientService } from './survey-client.service';\n\nexport abstract class CommonsPresentationSurveyPuckClientService extends CommonsPresentationSurveyClientService {\n\tpublic async move(\n\t\t\txy: TXy\n\t): Promise<void> {\n\t\tif (!this.host) return;\n\n\t\tconst simplified: TXy = {\n\t\t\t\tx: Math.round(xy.x * 1000) / 1000,\n\t\t\t\ty: Math.round(xy.y * 1000) / 1000\n\t\t};\n\n\t\tawait this.direct(\n\t\t\t\tthis.host,\n\t\t\t\tthis.ns,\n\t\t\t\t'move',\n\t\t\t\tsimplified,\n\t\t\t\texpireInDuration(PACKET_TIMEOUT_DURATION)\n\t\t);\n\t}\n}\n","// This is a true interface\n\nimport { Observable } from 'rxjs';\n\nimport { TXy } from 'tscommons-esm-graphics';\n\nexport interface ICommonsPresentationSurveyClientPuck {\n\tget connectedObservable(): Observable<boolean>;\n\tmove(xy: TXy): Promise<void>;\n}\n","// This is a true interface\n\nimport { Observable } from 'rxjs';\n\nimport { TCommonsPresentationSurveyClientPuck } from '../types/tclient-puck';\n\nexport interface ICommonsPresentationSurveyHostPuck {\n\tget connectedObservable(): Observable<boolean>;\n\tget puckUpdatedObservable(): Observable<TCommonsPresentationSurveyClientPuck>;\n\tget resetObservable(): Observable<void>;\n}\n","import { Component, input, InputSignal } from '@angular/core';\n\nimport { TCommonsPresentationSurveyClientPuck } from '../../types/tclient-puck';\n\n@Component({\n\t\tselector: 'commons-survey-host-board',\n\t\tstandalone: true,\n\t\timports: [],\n\t\ttemplateUrl: './host-board.component.html',\n\t\tstyleUrls: ['./host-board.component.scss']\n})\nexport class CommonsPresentationSurveyHostBoardComponent {\n\tpublic pucks: InputSignal<TCommonsPresentationSurveyClientPuck[]> = input.required<TCommonsPresentationSurveyClientPuck[]>();\n}\n","<section board>\n\t@for (puck of this.pucks(); track puck.deviceId) {\n\t\t<section class=\"dot\"\n\t\t\t\t[style.left.%]=\"puck.x * 100\"\n\t\t\t\t[style.top.%]=\"puck.y * 100\"\n\t\t></section>\n\t}\n</section>\n","import { Component, input, InputSignal } from '@angular/core';\n\nimport { commonsNumberMedian } from 'tscommons-esm-core';\nimport { TXy } from 'tscommons-esm-graphics';\n\nimport { CommonsComponent } from 'ngx-angularcommons-esm-core';\n\nimport { TCommonsPresentationSurveyClientPuck } from '../../types/tclient-puck';\nimport { ICommonsPresentationSurveyHostPuck } from '../../interfaces/ihost-puck';\n\nimport { CommonsPresentationSurveyHostBoardComponent } from '../host-board/host-board.component';\n\n@Component({\n\t\tselector: 'commons-survey-host-puck-board',\n\t\tstandalone: true,\n\t\timports: [\n\t\t\t\tCommonsPresentationSurveyHostBoardComponent\n\t\t],\n\t\ttemplateUrl: './host-puck-board.component.html',\n\t\tstyleUrls: ['./host-puck-board.component.scss']\n})\nexport class CommonsPresentationSurveyHostPuckBoardComponent extends CommonsComponent {\n\tpublic topLeft: InputSignal<string|undefined> = input<string>();\n\tpublic bottomLeft: InputSignal<string|undefined> = input<string>();\n\tpublic topRight: InputSignal<string|undefined> = input<string>();\n\tpublic bottomRight: InputSignal<string|undefined> = input<string>();\n\n\tprotected connected: boolean = false;\n\n\tprotected pucks: TCommonsPresentationSurveyClientPuck[] = [];\n\n\tpublic set service(service: ICommonsPresentationSurveyHostPuck) {\n\t\tthis.subscribe(\n\t\t\t\tservice.connectedObservable,\n\t\t\t\t(state: boolean): void => {\n\t\t\t\t\tthis.connected = state;\n\t\t\t\t}\n\t\t);\n\n\t\tthis.subscribe(\n\t\t\t\tservice.puckUpdatedObservable,\n\t\t\t\t(puck: TCommonsPresentationSurveyClientPuck): void => {\n\t\t\t\t\tconst existing: TCommonsPresentationSurveyClientPuck|undefined = this.pucks\n\t\t\t\t\t\t\t.find((p: TCommonsPresentationSurveyClientPuck): boolean => p.deviceId === puck.deviceId);\n\t\t\t\t\tif (existing) {\n\t\t\t\t\t\texisting.x = puck.x;\n\t\t\t\t\t\texisting.y = puck.y;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.pucks.push({ ...puck });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t);\n\n\t\tthis.subscribe(\n\t\t\t\tservice.resetObservable,\n\t\t\t\t(): void => {\n\t\t\t\t\tthis.pucks = [];\n\t\t\t\t}\n\t\t);\n\t}\n\n\tprotected get isLeft(): boolean {\n\t\tconst xs: number[] = this.pucks\n\t\t\t\t.map((xy: TXy): number => xy.x);\n\n\t\treturn (commonsNumberMedian(xs) ?? 0.5) <= 0.5;\n\t}\n\n\tprotected get isRight(): boolean {\n\t\tconst xs: number[] = this.pucks\n\t\t\t\t.map((xy: TXy): number => xy.x);\n\n\t\treturn (commonsNumberMedian(xs) ?? 0.5) >= 0.5;\n\t}\n\n\tprotected get isTop(): boolean {\n\t\tconst xs: number[] = this.pucks\n\t\t\t\t.map((xy: TXy): number => xy.y);\n\n\t\treturn (commonsNumberMedian(xs) ?? 0.5) <= 0.5;\n\t}\n\n\tprotected get isBottom(): boolean {\n\t\tconst xs: number[] = this.pucks\n\t\t\t\t.map((xy: TXy): number => xy.y);\n\n\t\treturn (commonsNumberMedian(xs) ?? 0.5) >= 0.5;\n\t}\n\n\tprotected get isTopLeft(): boolean {\n\t\tif ((this.topLeft() && !this.bottomLeft()) || (!this.topLeft() && this.bottomLeft())) return this.isLeft;\n\t\tif ((this.topLeft() && !this.topRight()) || (!this.topLeft() && this.topRight())) return this.isTop;\n\t\treturn this.isLeft && this.isTop;\n\t}\n\n\tprotected get isBottomLeft(): boolean {\n\t\tif ((this.topLeft() && !this.bottomLeft()) || (!this.topLeft() && this.bottomLeft())) return this.isLeft;\n\t\tif ((this.bottomLeft() && !this.bottomRight()) || (!this.bottomLeft() && this.bottomRight())) return this.isBottom;\n\t\treturn this.isLeft && this.isBottom;\n\t}\n\n\tprotected get isTopRight(): boolean {\n\t\tif ((this.topLeft() && !this.bottomLeft()) || (!this.topLeft() && this.bottomLeft())) return this.isRight;\n\t\tif ((this.topLeft() && !this.topRight()) || (!this.topLeft() && this.topRight())) return this.isTop;\n\t\treturn this.isRight && this.isTop;\n\t}\n\n\tprotected get isBottomRight(): boolean {\n\t\tif ((this.topLeft() && !this.bottomLeft()) || (!this.topLeft() && this.bottomLeft())) return this.isRight;\n\t\tif ((this.bottomLeft() && !this.bottomRight()) || (!this.bottomLeft() && this.bottomRight())) return this.isBottom;\n\t\treturn this.isRight && this.isBottom;\n\t}\n}\n","<section>\n\t<commons-survey-host-board\n\t\t\t[pucks]=\"this.pucks\"\n\t></commons-survey-host-board>\n\n\t@if (this.topLeft()) {\n\t\t<label class=\"top-left\"\n\t\t\t\t[class.selected]=\"this.isTopLeft\"\n\t\t>{{ this.topLeft() }}</label>\n\t}\n\t@if (this.topRight()) {\n\t\t<label class=\"top-right\"\n\t\t\t\t[class.selected]=\"this.isTopRight\"\n\t\t>{{ this.topRight() }}</label>\n\t}\n\t@if (this.bottomLeft()) {\n\t\t<label class=\"bottom-left\"\n\t\t\t\t[class.selected]=\"this.isBottomLeft\"\n\t\t>{{ this.bottomLeft() }}</label>\n\t}\n\t@if (this.bottomRight()) {\n\t\t<label class=\"bottom-right\"\n\t\t\t\t[class.selected]=\"this.isBottomRight\"\n\t\t>{{ this.bottomRight() }}</label>\n\t}\n</section>\n","import { AfterViewInit, Component, HostListener, input, InputSignal, model, ModelSignal } from '@angular/core';\n\nimport { TXy } from 'tscommons-esm-graphics';\n\n@Component({\n\t\tselector: 'commons-survey-client-puck',\n\t\tstandalone: true,\n\t\ttemplateUrl: './client-puck.component.html',\n\t\tstyleUrls: ['./client-puck.component.less']\n})\nexport class CommonsPresentationSurveyClientPuckComponent implements AfterViewInit {\n\t@HostListener('window:resize', []) public windowResized() {\n\t\tthis.centrePosition();\n\t}\n\n\tpublic disabled: InputSignal<boolean> = input<boolean>(false);\n\n\tpublic xy: ModelSignal<TXy> = model.required<TXy>();\n\n\tprivate eventStart: TXy|undefined;\n\tprivate start: TXy|undefined;\n\n\tprotected get isMoving(): boolean {\n\t\treturn this.eventStart !== undefined;\n\t}\n\n\tpublic ngAfterViewInit(): void {\n\t\tsetTimeout(\n\t\t\t\t(): void => {\n\t\t\t\t\tthis.centrePosition();\n\t\t\t\t},\n\t\t\t\t0\n\t\t);\n\n\t\tsetTimeout(\n\t\t\t\t(): void => {\n\t\t\t\t\tthis.centrePosition();\n\t\t\t\t},\n\t\t\t\t500\n\t\t);\n\t}\n\n\tprivate centrePosition(): void {\n\t\tthis.xy.set({\n\t\t\t\tx: window.innerWidth / 2,\n\t\t\t\ty: window.innerHeight / 2\n\t\t});\n\n\t\tthis.eventStart = undefined;\n\t}\n\n\tprotected doMouseDown(event: MouseEvent): void {\n\t\tif (this.disabled()) return;\n\n\t\tthis.eventStart = {\n\t\t\t\tx: event.screenX,\n\t\t\t\ty: event.screenY\n\t\t};\n\n\t\tthis.start = { ...this.xy() };\n\t}\n\n\tprotected doMouseUp(_event: MouseEvent): void {\n\t\tthis.eventStart = undefined;\n\t}\n\n\tprotected doMouseMove(event: MouseEvent): void {\n\t\tif (!this.eventStart) return;\n\n\t\tconst dx: number = event.screenX - this.eventStart.x;\n\t\tconst dy: number = event.screenY - this.eventStart.y;\n\n\t\tthis.xy.set({\n\t\t\t\tx: this.start!.x + dx,\n\t\t\t\ty: this.start!.y + dy\n\t\t});\n\t}\n\n\tprotected doTouchStart(event: TouchEvent): void {\n\t\tif (this.disabled()) return;\n\n\t\tif (event.touches.length < 1) return;\n\n\t\tthis.eventStart = {\n\t\t\t\tx: event.touches[0].screenX,\n\t\t\t\ty: event.touches[0].screenY\n\t\t};\n\n\t\tthis.start = { ...this.xy() };\n\t}\n\n\tprotected doTouchEnd(_event: TouchEvent): void {\n\t\tthis.eventStart = undefined;\n\t}\n\n\tprotected doTouchMove(event: TouchEvent): void {\n\t\tif (!this.eventStart) return;\n\n\t\tconst dx: number = event.touches[0].screenX - this.eventStart.x;\n\t\tconst dy: number = event.touches[0].screenY - this.eventStart.y;\n\n\t\tthis.xy.set({\n\t\t\t\tx: this.start!.x + dx,\n\t\t\t\ty: this.start!.y + dy\n\t\t});\n\t}\n}\n","<aside\n\t\t[style.top.px]=\"this.xy().y\"\n\t\t[style.left.px]=\"this.xy().x\"\n>\n\t<section outer\n\t\t\t(mousedown)=\"this.doMouseDown($event);\"\n\t\t\t(mouseup)=\"this.doMouseUp($event);\"\n\t\t\t(mousemove)=\"this.doMouseMove($event);\"\n\t\t\t(touchstart)=\"this.doTouchStart($event);\"\n\t\t\t(touchend)=\"this.doTouchEnd($event);\"\n\t\t\t(touchmove)=\"this.doTouchMove($event);\"\n\t></section>\n\t<section inner\n\t\t\t[class.moving]=\"this.isMoving\"\n\t\t\t[class.disabled]=\"this.disabled()\"\n\t></section>\n</aside>\n","import { Component, input, InputSignal, output, OutputEmitterRef } from '@angular/core';\n\nimport { TXy } from 'tscommons-esm-graphics';\n\nimport { CommonsPresentationSurveyClientPuckComponent } from '../client-puck/client-puck.component';\n\n@Component({\n\t\tselector: 'commons-survey-client-board',\n\t\tstandalone: true,\n\t\timports: [\n\t\t\t\tCommonsPresentationSurveyClientPuckComponent\n\t\t],\n\t\ttemplateUrl: './client-board.component.html',\n\t\tstyleUrls: ['./client-board.component.less']\n})\nexport class CommonsPresentationSurveyClientBoardComponent {\n\tpublic connected: InputSignal<boolean> = input.required<boolean>();\n\tpublic moved: OutputEmitterRef<TXy> = output<TXy>();\n\n\tprotected xy: TXy = { x: 0, y: 0 };\n\n\tprotected doCascade(xy: TXy): void {\n\t\tif (!this.connected) return;\n\n\t\tthis.moved.emit({\n\t\t\t\tx: xy.x / window.outerWidth,\n\t\t\t\ty: xy.y / window.outerHeight\n\t\t});\n\t}\n}\n","<section board></section>\n<commons-survey-client-puck\n\t\t[(xy)]=\"this.xy\"\n\t\t(xyChange)=\"this.doCascade($event);\"\n\t\t[disabled]=\"!this.connected\"\n></commons-survey-client-puck>\n","import { Component, input, InputSignal } from '@angular/core';\n\nimport { TXy } from 'tscommons-esm-graphics';\n\nimport { CommonsComponent } from 'ngx-angularcommons-esm-core';\n\nimport { ICommonsPresentationSurveyClientPuck } from '../../interfaces/iclient-puck';\n\nimport { CommonsPresentationSurveyClientBoardComponent } from '../client-board/client-board.component';\n\n@Component({\n\t\tselector: 'commons-survey-client-puck-board',\n\t\tstandalone: true,\n\t\timports: [\n\t\t\t\tCommonsPresentationSurveyClientBoardComponent\n\t\t],\n\t\ttemplateUrl: './client-puck-board.component.html',\n\t\tstyleUrls: ['./client-puck-board.component.less']\n})\nexport class CommonsPresentationSurveyClientPuckBoardComponent extends CommonsComponent {\n\tpublic title: InputSignal<string> = input.required<string>();\n\tpublic topLeft: InputSignal<string|undefined> = input<string>();\n\tpublic bottomLeft: InputSignal<string|undefined> = input<string>();\n\tpublic topRight: InputSignal<string|undefined> = input<string>();\n\tpublic bottomRight: InputSignal<string|undefined> = input<string>();\n\n\tprivate internalService: ICommonsPresentationSurveyClientPuck|undefined;\n\tprotected connected: boolean = false;\n\n\tpublic set service(service: ICommonsPresentationSurveyClientPuck) {\n\t\tthis.internalService = service;\n\n\t\tthis.subscribe(\n\t\t\t\tservice.connectedObservable,\n\t\t\t\t(state: boolean): void => {\n\t\t\t\t\tthis.connected = state;\n\t\t\t\t}\n\t\t);\n\t}\n\n\tprotected doUpdate(xy: TXy): void {\n\t\tif (!this.internalService) return;\n\n\t\tvoid this.internalService.move(xy);\n\t}\n}\n","<commons-survey-client-board\n\t\t[connected]=\"this.connected\"\n\t\t(moved)=\"this.doUpdate($event);\"\n></commons-survey-client-board>\n\n<label class=\"title\">{{ this.title() }}</label>\n\n@if (this.topLeft()) {\n\t<label class=\"top-left\">{{ this.topLeft() }}</label>\n}\n@if (this.topRight()) {\n\t<label class=\"top-right\">{{ this.topRight() }}</label>\n}\n@if (this.bottomLeft()) {\n\t<label class=\"bottom-left\">{{ this.bottomLeft() }}</label>\n}\n@if (this.bottomRight()) {\n\t<label class=\"bottom-right\">{{ this.bottomRight() }}</label>\n}\n","/*\n * Public API Surface of ngx-presentationcommons-esm-survey\n */\n\nexport * from './lib/services/survey-host.service';\nexport * from './lib/services/survey-client.service';\nexport * from './lib/services/puck-host.service';\nexport * from './lib/services/puck-client.service';\n\nexport * from './lib/interfaces/iclient-puck';\nexport * from './lib/interfaces/ihost-puck';\n\nexport * from './lib/components/host-puck-board/host-puck-board.component';\nexport * from './lib/components/client-puck-board/client-puck-board.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAEM,SAAU,gBAAgB,CAAC,QAA8B,EAAA;AAC9D,IAAA,MAAM,IAAI,GAAS,IAAI,IAAI,EAAE;AAC7B,IAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC;AAE9C,IAAA,OAAO,IAAI;AACZ;;ACLO,MAAM,uBAAuB,GAAyB,oBAAoB,CAAC,OAAO,CAAC,UAAU,CAAC;;ACM/F,MAAgB,oCAAqC,SAAQ,6BAA6B,CAAA;IACvF,aAAa,GAAY,KAAK;IACtC,IAAW,KAAK,CAAC,KAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,aAAa,GAAG,KAAK;;IAGnB,iBAAiB,GAAY,KAAK;AAC1C,IAAA,IAAc,SAAS,GAAA;QACtB,OAAO,IAAI,CAAC,iBAAiB;;AAGX,IAAA,EAAE;AAErB,IAAA,WAAA,CACE,GAAW,EACX,EAAU,EACV,OAAe,EACf,QAAgB,EAAA;AAEjB,QAAA,KAAK,CACH,GAAG,EACH,KAAK,CACN;AACD,QAAA,IAAI,CAAC,EAAE,GAAG,EAAE;AAEZ,QAAA,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;AAAE,YAAA,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC;AACxF,QAAA,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC;AAAE,YAAA,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,2WAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDLI,6CAA6C,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,CAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAKpC,iDAAiD,EAAA,UAAA,EAAA,CAAA;kBAT7D,SAAS;+BACE,kCAAkC,EAAA,UAAA,EAChC,IAAI,EACP,OAAA,EAAA;wBACP;AACD,qBAAA,EAAA,QAAA,EAAA,gjBAAA,EAAA,MAAA,EAAA,CAAA,2WAAA,CAAA,EAAA;;;AEfH;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputSignal, OutputEmitterRef } from '@angular/core';
|
|
2
|
+
import { TXy } from 'tscommons-esm-graphics';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CommonsPresentationSurveyClientBoardComponent {
|
|
5
|
+
connected: InputSignal<boolean>;
|
|
6
|
+
moved: OutputEmitterRef<TXy>;
|
|
7
|
+
protected xy: TXy;
|
|
8
|
+
protected doCascade(xy: TXy): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonsPresentationSurveyClientBoardComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommonsPresentationSurveyClientBoardComponent, "commons-survey-client-board", never, { "connected": { "alias": "connected"; "required": true; "isSignal": true; }; }, { "moved": "moved"; }, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AfterViewInit, InputSignal, ModelSignal } from '@angular/core';
|
|
2
|
+
import { TXy } from 'tscommons-esm-graphics';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CommonsPresentationSurveyClientPuckComponent implements AfterViewInit {
|
|
5
|
+
windowResized(): void;
|
|
6
|
+
disabled: InputSignal<boolean>;
|
|
7
|
+
xy: ModelSignal<TXy>;
|
|
8
|
+
private eventStart;
|
|
9
|
+
private start;
|
|
10
|
+
protected get isMoving(): boolean;
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
private centrePosition;
|
|
13
|
+
protected doMouseDown(event: MouseEvent): void;
|
|
14
|
+
protected doMouseUp(_event: MouseEvent): void;
|
|
15
|
+
protected doMouseMove(event: MouseEvent): void;
|
|
16
|
+
protected doTouchStart(event: TouchEvent): void;
|
|
17
|
+
protected doTouchEnd(_event: TouchEvent): void;
|
|
18
|
+
protected doTouchMove(event: TouchEvent): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonsPresentationSurveyClientPuckComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommonsPresentationSurveyClientPuckComponent, "commons-survey-client-puck", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "xy": { "alias": "xy"; "required": true; "isSignal": true; }; }, { "xy": "xyChange"; }, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InputSignal } from '@angular/core';
|
|
2
|
+
import { TXy } from 'tscommons-esm-graphics';
|
|
3
|
+
import { CommonsComponent } from 'ngx-angularcommons-esm-core';
|
|
4
|
+
import { ICommonsPresentationSurveyClientPuck } from '../../interfaces/iclient-puck';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CommonsPresentationSurveyClientPuckBoardComponent extends CommonsComponent {
|
|
7
|
+
title: InputSignal<string>;
|
|
8
|
+
topLeft: InputSignal<string | undefined>;
|
|
9
|
+
bottomLeft: InputSignal<string | undefined>;
|
|
10
|
+
topRight: InputSignal<string | undefined>;
|
|
11
|
+
bottomRight: InputSignal<string | undefined>;
|
|
12
|
+
private internalService;
|
|
13
|
+
protected connected: boolean;
|
|
14
|
+
set service(service: ICommonsPresentationSurveyClientPuck);
|
|
15
|
+
protected doUpdate(xy: TXy): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonsPresentationSurveyClientPuckBoardComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommonsPresentationSurveyClientPuckBoardComponent, "commons-survey-client-puck-board", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "topLeft": { "alias": "topLeft"; "required": false; "isSignal": true; }; "bottomLeft": { "alias": "bottomLeft"; "required": false; "isSignal": true; }; "topRight": { "alias": "topRight"; "required": false; "isSignal": true; }; "bottomRight": { "alias": "bottomRight"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InputSignal } from '@angular/core';
|
|
2
|
+
import { TCommonsPresentationSurveyClientPuck } from '../../types/tclient-puck';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CommonsPresentationSurveyHostBoardComponent {
|
|
5
|
+
pucks: InputSignal<TCommonsPresentationSurveyClientPuck[]>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonsPresentationSurveyHostBoardComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommonsPresentationSurveyHostBoardComponent, "commons-survey-host-board", never, { "pucks": { "alias": "pucks"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { InputSignal } from '@angular/core';
|
|
2
|
+
import { CommonsComponent } from 'ngx-angularcommons-esm-core';
|
|
3
|
+
import { TCommonsPresentationSurveyClientPuck } from '../../types/tclient-puck';
|
|
4
|
+
import { ICommonsPresentationSurveyHostPuck } from '../../interfaces/ihost-puck';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CommonsPresentationSurveyHostPuckBoardComponent extends CommonsComponent {
|
|
7
|
+
topLeft: InputSignal<string | undefined>;
|
|
8
|
+
bottomLeft: InputSignal<string | undefined>;
|
|
9
|
+
topRight: InputSignal<string | undefined>;
|
|
10
|
+
bottomRight: InputSignal<string | undefined>;
|
|
11
|
+
protected connected: boolean;
|
|
12
|
+
protected pucks: TCommonsPresentationSurveyClientPuck[];
|
|
13
|
+
set service(service: ICommonsPresentationSurveyHostPuck);
|
|
14
|
+
protected get isLeft(): boolean;
|
|
15
|
+
protected get isRight(): boolean;
|
|
16
|
+
protected get isTop(): boolean;
|
|
17
|
+
protected get isBottom(): boolean;
|
|
18
|
+
protected get isTopLeft(): boolean;
|
|
19
|
+
protected get isBottomLeft(): boolean;
|
|
20
|
+
protected get isTopRight(): boolean;
|
|
21
|
+
protected get isBottomRight(): boolean;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonsPresentationSurveyHostPuckBoardComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommonsPresentationSurveyHostPuckBoardComponent, "commons-survey-host-puck-board", never, { "topLeft": { "alias": "topLeft"; "required": false; "isSignal": true; }; "bottomLeft": { "alias": "bottomLeft"; "required": false; "isSignal": true; }; "topRight": { "alias": "topRight"; "required": false; "isSignal": true; }; "bottomRight": { "alias": "bottomRight"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { TCommonsPresentationSurveyClientPuck } from '../types/tclient-puck';
|
|
3
|
+
export interface ICommonsPresentationSurveyHostPuck {
|
|
4
|
+
get connectedObservable(): Observable<boolean>;
|
|
5
|
+
get puckUpdatedObservable(): Observable<TCommonsPresentationSurveyClientPuck>;
|
|
6
|
+
get resetObservable(): Observable<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TXy } from 'tscommons-esm-graphics';
|
|
2
|
+
import { CommonsPresentationSurveyClientService } from './survey-client.service';
|
|
3
|
+
export declare abstract class CommonsPresentationSurveyPuckClientService extends CommonsPresentationSurveyClientService {
|
|
4
|
+
move(xy: TXy): Promise<void>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { TCommonsPresentationSurveyClientPuck } from '../types/tclient-puck';
|
|
3
|
+
import { CommonsPresentationSurveyHostService } from './survey-host.service';
|
|
4
|
+
export declare abstract class CommonsPresentationSurveyPuckHostService extends CommonsPresentationSurveyHostService {
|
|
5
|
+
private onMove;
|
|
6
|
+
get moveObservable(): Observable<TCommonsPresentationSurveyClientPuck>;
|
|
7
|
+
constructor(url: string, ns: string, channel: string, deviceId: string);
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CommonsNetworkSocketIoService } from 'ngx-httpcommons-esm-network';
|
|
4
|
+
export declare abstract class CommonsPresentationSurveyClientService extends CommonsNetworkSocketIoService {
|
|
5
|
+
protected ns: string;
|
|
6
|
+
private onReset;
|
|
7
|
+
get resetObservable(): EventEmitter<void>;
|
|
8
|
+
private onReady;
|
|
9
|
+
get readyObservable(): Observable<boolean>;
|
|
10
|
+
private internalHost;
|
|
11
|
+
protected get host(): string | undefined;
|
|
12
|
+
private internalDebug;
|
|
13
|
+
set debug(state: boolean);
|
|
14
|
+
constructor(url: string, ns: string, channel: string, deviceId: string);
|
|
15
|
+
private requestHost;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CommonsNetworkSocketIoService } from 'ngx-httpcommons-esm-network';
|
|
2
|
+
export declare abstract class CommonsPresentationSurveyHostService extends CommonsNetworkSocketIoService {
|
|
3
|
+
private internalDebug;
|
|
4
|
+
set debug(state: boolean);
|
|
5
|
+
private internalConnected;
|
|
6
|
+
protected get connected(): boolean;
|
|
7
|
+
protected readonly ns: string;
|
|
8
|
+
constructor(url: string, ns: string, channel: string, deviceId: string);
|
|
9
|
+
reset(): Promise<void>;
|
|
10
|
+
private declareHost;
|
|
11
|
+
broadcastDeclareHost(): Promise<void>;
|
|
12
|
+
shutdown(): Promise<void>;
|
|
13
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ngx-presentationcommons-esm-survey",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^19.2.0",
|
|
6
|
+
"@angular/core": "^19.2.0",
|
|
7
|
+
"ngx-angularcommons-esm-core": "^0.0.7",
|
|
8
|
+
"ngx-httpcommons-esm-network": "^0.0.5",
|
|
9
|
+
"tscommons-esm-async": "^1.0.3",
|
|
10
|
+
"tscommons-esm-core": "^0.1.0",
|
|
11
|
+
"tscommons-esm-graphics": "^0.0.9",
|
|
12
|
+
"tscommons-esm-network": "^0.0.9"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"tslib": "^2.3.0"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"module": "fesm2022/ngx-presentationcommons-esm-survey.mjs",
|
|
19
|
+
"typings": "index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
"./package.json": {
|
|
22
|
+
"default": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
|
+
"default": "./fesm2022/ngx-presentationcommons-esm-survey.mjs"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './lib/services/survey-host.service';
|
|
2
|
+
export * from './lib/services/survey-client.service';
|
|
3
|
+
export * from './lib/services/puck-host.service';
|
|
4
|
+
export * from './lib/services/puck-client.service';
|
|
5
|
+
export * from './lib/interfaces/iclient-puck';
|
|
6
|
+
export * from './lib/interfaces/ihost-puck';
|
|
7
|
+
export * from './lib/components/host-puck-board/host-puck-board.component';
|
|
8
|
+
export * from './lib/components/client-puck-board/client-puck-board.component';
|