taon 19.0.49 → 19.0.50
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/browser/fesm2022/taon.mjs +60 -9
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/endpoint-context.d.ts +6 -0
- package/browser/lib/models.d.ts +19 -0
- package/browser/package.json +1 -1
- package/lib/base-classes/base-subscriber.d.ts +4 -0
- package/lib/base-classes/base-subscriber.js +25 -0
- package/lib/base-classes/base-subscriber.js.map +1 -0
- package/lib/build-info._auto-generated_.d.ts +16 -1
- package/lib/build-info._auto-generated_.js +16 -1
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/create-context.js +15 -0
- package/lib/create-context.js.map +1 -1
- package/lib/endpoint-context.d.ts +6 -0
- package/lib/endpoint-context.js +36 -6
- package/lib/endpoint-context.js.map +1 -1
- package/lib/env.js +5 -1
- package/lib/env.js.map +1 -1
- package/lib/models.d.ts +19 -0
- package/lib/models.js +3 -0
- package/lib/models.js.map +1 -1
- package/lib/realtime/realtime-client.js +9 -0
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/realtime/realtime-server.js +1 -4
- package/lib/realtime/realtime-server.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-abstract-mock.d.ts +10 -0
- package/lib/realtime/realtime-strategy/realtime-abstract-mock.js +214 -0
- package/lib/realtime/realtime-strategy/realtime-abstract-mock.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.d.ts +0 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js +5 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js +139 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +16 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js +68 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +10 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js +56 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +10 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js +50 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +13 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js +3 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +2 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js +6 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +16 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js +54 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +17 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js +52 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +11 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js +39 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +13 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js +46 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js.map +1 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +11 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js +3 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js.map +1 -0
- package/lib/storage.d.ts +1 -1
- package/lib/storage.js +5 -1
- package/lib/storage.js.map +1 -1
- package/lib/ui/directives/firedev-inject-html.directive.d.ts +6 -0
- package/lib/ui/directives/firedev-long-press.directive.d.ts +22 -0
- package/lib/ui/directives/index.d.ts +3 -0
- package/lib/ui/directives/index.js +5 -0
- package/lib/ui/directives/index.js.map +1 -0
- package/lib/ui/directives/safe.pipe.d.ts +7 -0
- package/lib/ui/directives/taon-inject-html.directive.d.ts +6 -0
- package/lib/ui/directives/taon-long-press.directive.d.ts +22 -0
- package/lib/ui/directives/view-mode.d.ts +5 -0
- package/lib/ui/directives/view-mode.js +10 -0
- package/lib/ui/directives/view-mode.js.map +1 -0
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +29 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +8 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +5 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +13 -0
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +5 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js +3 -0
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +1 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +14 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +43 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +2 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.d.ts +5 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js +3 -0
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +1 -0
- package/lib/ui/taon-full-material.module.d.ts +5 -0
- package/lib/ui/taon-github-fork-me-corner/index.d.ts +2 -0
- package/lib/ui/taon-github-fork-me-corner/index.js +5 -0
- package/lib/ui/taon-github-fork-me-corner/index.js.map +1 -0
- package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +3 -0
- package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +2 -0
- package/lib/ui/taon-github-fork-me-ribbon/index.d.ts +2 -0
- package/lib/ui/taon-github-fork-me-ribbon/index.js +5 -0
- package/lib/ui/taon-github-fork-me-ribbon/index.js.map +1 -0
- package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.component.d.ts +3 -0
- package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.module.d.ts +2 -0
- package/lib/ui/taon-notifications/index.d.ts +4 -0
- package/lib/ui/taon-notifications/index.js +24 -0
- package/lib/ui/taon-notifications/index.js.map +1 -0
- package/lib/ui/taon-notifications/taon-notifications.component.d.ts +9 -0
- package/lib/ui/taon-notifications/taon-notifications.models.d.ts +6 -0
- package/lib/ui/taon-notifications/taon-notifications.models.js +5 -0
- package/lib/ui/taon-notifications/taon-notifications.models.js.map +1 -0
- package/lib/ui/taon-notifications/taon-notifications.module.d.ts +2 -0
- package/lib/ui/taon-notifications/taon-notifications.service.d.ts +11 -0
- package/lib/ui/taon-progress-bar/index.d.ts +2 -0
- package/lib/ui/taon-progress-bar/index.js +5 -0
- package/lib/ui/taon-progress-bar/index.js.map +1 -0
- package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +13 -0
- package/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +2 -0
- package/lib/ui/taon-session-passcode/index.d.ts +1 -0
- package/lib/ui/taon-session-passcode/index.js +5 -0
- package/lib/ui/taon-session-passcode/index.js.map +1 -0
- package/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +35 -0
- package/lib/ui/taon-table/index.d.ts +2 -0
- package/lib/ui/taon-table/index.js +5 -0
- package/lib/ui/taon-table/index.js.map +1 -0
- package/lib/ui/taon-table/taon-table.component.d.ts +34 -0
- package/lib/ui/taon-table/taon-table.module.d.ts +2 -0
- package/lib/ui/taon.models.d.ts +11 -0
- package/lib/ui/taon.models.js +3 -0
- package/lib/ui/taon.models.js.map +1 -0
- package/lib/ui/toan-full-material.module.d.ts +2 -0
- package/package.json +1 -1
- package/tmp-environment.json +43 -0
- package/websql/fesm2022/taon.mjs +63 -9
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/endpoint-context.d.ts +6 -0
- package/websql/lib/models.d.ts +19 -0
- package/websql/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-strategy-ipc.models.js","sourceRoot":"","sources":[""],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./realtime-strategy-mock-server"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./realtime-strategy-mock-client"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,0EAAgD;AAChD,0EAAgD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MockServer } from "./realtime-strategy-mock-server";
|
|
2
|
+
import { MockSocket } from "./realtime-strategy-mock-socket";
|
|
3
|
+
declare class MockClientSocket {
|
|
4
|
+
private serverSocket;
|
|
5
|
+
contextName: string;
|
|
6
|
+
private listeners;
|
|
7
|
+
constructor(serverSocket: MockSocket, contextName: string);
|
|
8
|
+
on(event: string, callback: (data?: any) => void): void;
|
|
9
|
+
off(event: string, callback?: (data?: any) => void): void;
|
|
10
|
+
emit(event: string, data?: any): void;
|
|
11
|
+
disconnect(): void;
|
|
12
|
+
join(room: string): void;
|
|
13
|
+
leave(room: string): void;
|
|
14
|
+
}
|
|
15
|
+
export declare function mockIo(server: MockServer): (namespace?: string) => MockClientSocket;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mockIo = mockIo;
|
|
4
|
+
var MockClientSocket = /** @class */ (function () {
|
|
5
|
+
function MockClientSocket(serverSocket, contextName) {
|
|
6
|
+
var _this = this;
|
|
7
|
+
this.serverSocket = serverSocket;
|
|
8
|
+
this.contextName = contextName;
|
|
9
|
+
this.listeners = {};
|
|
10
|
+
serverSocket.on('message', function (data) { return _this.emit('message', data); });
|
|
11
|
+
}
|
|
12
|
+
MockClientSocket.prototype.on = function (event, callback) {
|
|
13
|
+
if (!this.listeners[event]) {
|
|
14
|
+
this.listeners[event] = [];
|
|
15
|
+
}
|
|
16
|
+
this.listeners[event].push(callback);
|
|
17
|
+
};
|
|
18
|
+
MockClientSocket.prototype.off = function (event, callback) {
|
|
19
|
+
if (!this.listeners[event])
|
|
20
|
+
return;
|
|
21
|
+
if (callback) {
|
|
22
|
+
this.listeners[event] = this.listeners[event].filter(function (listener) { return listener !== callback; });
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
delete this.listeners[event];
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
MockClientSocket.prototype.emit = function (event, data) {
|
|
29
|
+
this.serverSocket.emit(event, data);
|
|
30
|
+
if (this.listeners[event]) {
|
|
31
|
+
this.listeners[event].forEach(function (listener) { return listener(data); });
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
MockClientSocket.prototype.disconnect = function () {
|
|
35
|
+
this.serverSocket.disconnect();
|
|
36
|
+
this.listeners = {};
|
|
37
|
+
};
|
|
38
|
+
MockClientSocket.prototype.join = function (room) {
|
|
39
|
+
this.serverSocket.join(room);
|
|
40
|
+
};
|
|
41
|
+
MockClientSocket.prototype.leave = function (room) {
|
|
42
|
+
this.serverSocket.leave(room);
|
|
43
|
+
};
|
|
44
|
+
return MockClientSocket;
|
|
45
|
+
}());
|
|
46
|
+
function mockIo(server) {
|
|
47
|
+
return function (namespace) {
|
|
48
|
+
if (namespace === void 0) { namespace = '/'; }
|
|
49
|
+
var socketId = Math.random().toString(36).substring(2);
|
|
50
|
+
var serverSocket = server.connect(socketId, namespace);
|
|
51
|
+
return new MockClientSocket(serverSocket, server.contextName);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=realtime-strategy-mock-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-strategy-mock-client.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAkDA,wBAMC;AAnDD;IAGE,0BAAoB,YAAwB,EAAS,WAAmB;QAAxE,iBAEC;QAFmB,iBAAY,GAAZ,YAAY,CAAY;QAAS,gBAAW,GAAX,WAAW,CAAQ;QAFhE,cAAS,GAAmB,EAAE,CAAC;QAGrC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,UAAC,IAAI,IAAK,OAAA,KAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,EAA1B,CAA0B,CAAC,CAAC;IACnE,CAAC;IAED,6BAAE,GAAF,UAAG,KAAa,EAAE,QAA8B;QAC9C,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QAC7B,CAAC;QACD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC;IAED,8BAAG,GAAH,UAAI,KAAa,EAAE,QAA+B;QAChD,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;YAAE,OAAO;QAEnC,IAAI,QAAQ,EAAE,CAAC;YACb,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAA,QAAQ,IAAI,OAAA,QAAQ,KAAK,QAAQ,EAArB,CAAqB,CAAC,CAAC;QAC1F,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IAED,+BAAI,GAAJ,UAAK,KAAa,EAAE,IAAU;QAC5B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACpC,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAA,QAAQ,IAAI,OAAA,QAAQ,CAAC,IAAI,CAAC,EAAd,CAAc,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IAED,qCAAU,GAAV;QACE,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;IAED,+BAAI,GAAJ,UAAK,IAAY;QACf,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,gCAAK,GAAL,UAAM,IAAY;QAChB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IACH,uBAAC;AAAD,CAAC,AA3CD,IA2CC;AAED,SAAgB,MAAM,CAAC,MAAkB;IACvC,OAAO,UAAC,SAAuB;QAAvB,0BAAA,EAAA,eAAuB;QAC7B,IAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QACzD,IAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QACzD,OAAO,IAAI,gBAAgB,CAAC,YAAY,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAChE,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MockSocket } from "./realtime-strategy-mock-socket";
|
|
2
|
+
export declare class MockNamespace {
|
|
3
|
+
name: string;
|
|
4
|
+
contextName: string;
|
|
5
|
+
private rooms;
|
|
6
|
+
private sockets;
|
|
7
|
+
constructor(name: string, contextName: string);
|
|
8
|
+
on(event: string, callback: (socket: MockSocket) => void): void;
|
|
9
|
+
emit(event: string, data?: any): void;
|
|
10
|
+
to(room: string): {
|
|
11
|
+
emit: (event: string, data?: any) => void;
|
|
12
|
+
};
|
|
13
|
+
joinRoom(socket: MockSocket, room: string): void;
|
|
14
|
+
leaveRoom(socket: MockSocket, room: string): void;
|
|
15
|
+
addSocket(socket: MockSocket): void;
|
|
16
|
+
removeSocket(socket: MockSocket): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockNamespace = void 0;
|
|
4
|
+
var MockNamespace = /** @class */ (function () {
|
|
5
|
+
function MockNamespace(name, contextName) {
|
|
6
|
+
this.name = name;
|
|
7
|
+
this.contextName = contextName;
|
|
8
|
+
this.rooms = {};
|
|
9
|
+
this.sockets = new Set();
|
|
10
|
+
}
|
|
11
|
+
MockNamespace.prototype.on = function (event, callback) {
|
|
12
|
+
if (event === 'connection') {
|
|
13
|
+
this.sockets.forEach(function (socket) { return callback(socket); });
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
MockNamespace.prototype.emit = function (event, data) {
|
|
17
|
+
this.sockets.forEach(function (socket) { return socket.emit(event, data); });
|
|
18
|
+
};
|
|
19
|
+
MockNamespace.prototype.to = function (room) {
|
|
20
|
+
var _this = this;
|
|
21
|
+
return {
|
|
22
|
+
emit: function (event, data) {
|
|
23
|
+
if (_this.rooms[room]) {
|
|
24
|
+
_this.rooms[room].forEach(function (socket) { return socket.emit(event, data); });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
MockNamespace.prototype.joinRoom = function (socket, room) {
|
|
30
|
+
if (!this.rooms[room]) {
|
|
31
|
+
this.rooms[room] = new Set();
|
|
32
|
+
}
|
|
33
|
+
this.rooms[room].add(socket);
|
|
34
|
+
};
|
|
35
|
+
MockNamespace.prototype.leaveRoom = function (socket, room) {
|
|
36
|
+
if (this.rooms[room]) {
|
|
37
|
+
this.rooms[room].delete(socket);
|
|
38
|
+
if (this.rooms[room].size === 0) {
|
|
39
|
+
delete this.rooms[room];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
MockNamespace.prototype.addSocket = function (socket) {
|
|
44
|
+
this.sockets.add(socket);
|
|
45
|
+
};
|
|
46
|
+
MockNamespace.prototype.removeSocket = function (socket) {
|
|
47
|
+
this.sockets.delete(socket);
|
|
48
|
+
};
|
|
49
|
+
return MockNamespace;
|
|
50
|
+
}());
|
|
51
|
+
exports.MockNamespace = MockNamespace;
|
|
52
|
+
//# sourceMappingURL=realtime-strategy-mock-namespaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-strategy-mock-namespaces.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAEA;IAIE,uBAAmB,IAAY,EAAS,WAAmB;QAAxC,SAAI,GAAJ,IAAI,CAAQ;QAAS,gBAAW,GAAX,WAAW,CAAQ;QAHnD,UAAK,GAAU,EAAE,CAAC;QAClB,YAAO,GAAoB,IAAI,GAAG,EAAE,CAAC;IAEiB,CAAC;IAE/D,0BAAE,GAAF,UAAG,KAAa,EAAE,QAAsC;QACtD,IAAI,KAAK,KAAK,YAAY,EAAE,CAAC;YAC3B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAA,MAAM,IAAI,OAAA,QAAQ,CAAC,MAAM,CAAC,EAAhB,CAAgB,CAAC,CAAC;QACnD,CAAC;IACH,CAAC;IAED,4BAAI,GAAJ,UAAK,KAAa,EAAE,IAAU;QAC5B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAxB,CAAwB,CAAC,CAAC;IAC3D,CAAC;IAED,0BAAE,GAAF,UAAG,IAAY;QAAf,iBAQC;QAPC,OAAO;YACL,IAAI,EAAE,UAAC,KAAa,EAAE,IAAU;gBAC9B,IAAI,KAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;oBACrB,KAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAxB,CAAwB,CAAC,CAAC;gBAC/D,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;IAED,gCAAQ,GAAR,UAAS,MAAkB,EAAE,IAAY;QACvC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC;QAC/B,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/B,CAAC;IAED,iCAAS,GAAT,UAAU,MAAkB,EAAE,IAAY;QACxC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;YACrB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAChC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;gBAChC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC1B,CAAC;QACH,CAAC;IACH,CAAC;IAED,iCAAS,GAAT,UAAU,MAAkB;QAC1B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC;IAED,oCAAY,GAAZ,UAAa,MAAkB;QAC7B,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IACH,oBAAC;AAAD,CAAC,AAjDD,IAiDC;AAjDY,sCAAa"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MockNamespace } from "./realtime-strategy-mock-namespaces";
|
|
2
|
+
import { MockSocket } from "./realtime-strategy-mock-socket";
|
|
3
|
+
export declare class MockServer {
|
|
4
|
+
contextName: string;
|
|
5
|
+
private namespaces;
|
|
6
|
+
constructor(contextName: string);
|
|
7
|
+
of(namespace: string): MockNamespace;
|
|
8
|
+
on(event: string, callback: (socket: MockSocket) => void): void;
|
|
9
|
+
emit(event: string, data?: any): void;
|
|
10
|
+
connect(id: string, namespace?: string): MockSocket;
|
|
11
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockServer = void 0;
|
|
4
|
+
var realtime_strategy_mock_namespaces_1 = require("./realtime-strategy-mock-namespaces");
|
|
5
|
+
var realtime_strategy_mock_socket_1 = require("./realtime-strategy-mock-socket");
|
|
6
|
+
var MockServer = /** @class */ (function () {
|
|
7
|
+
function MockServer(contextName) {
|
|
8
|
+
this.contextName = contextName;
|
|
9
|
+
this.namespaces = {
|
|
10
|
+
'/': new realtime_strategy_mock_namespaces_1.MockNamespace('/', this.contextName)
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
MockServer.prototype.of = function (namespace) {
|
|
14
|
+
if (!this.namespaces[namespace]) {
|
|
15
|
+
this.namespaces[namespace] = new realtime_strategy_mock_namespaces_1.MockNamespace(namespace, this.contextName);
|
|
16
|
+
}
|
|
17
|
+
return this.namespaces[namespace];
|
|
18
|
+
};
|
|
19
|
+
MockServer.prototype.on = function (event, callback) {
|
|
20
|
+
if (event === 'connection') {
|
|
21
|
+
this.namespaces['/'].on('connection', callback);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
MockServer.prototype.emit = function (event, data) {
|
|
25
|
+
this.namespaces['/'].emit(event, data);
|
|
26
|
+
};
|
|
27
|
+
MockServer.prototype.connect = function (id, namespace) {
|
|
28
|
+
if (namespace === void 0) { namespace = '/'; }
|
|
29
|
+
var ns = this.of(namespace);
|
|
30
|
+
var socket = new realtime_strategy_mock_socket_1.MockSocket(id, ns);
|
|
31
|
+
ns.on('connection', function (socket) {
|
|
32
|
+
socket.emit('connect');
|
|
33
|
+
});
|
|
34
|
+
return socket;
|
|
35
|
+
};
|
|
36
|
+
return MockServer;
|
|
37
|
+
}());
|
|
38
|
+
exports.MockServer = MockServer;
|
|
39
|
+
//# sourceMappingURL=realtime-strategy-mock-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-strategy-mock-server.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,yFAAoE;AACpE,iFAA6D;AAG7D;IAKE,oBAAmB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;QAJ9B,eAAU,GAAe;YAC/B,GAAG,EAAE,IAAI,iDAAa,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC;SAC9C,CAAC;IAEuC,CAAC;IAE1C,uBAAE,GAAF,UAAG,SAAiB;QAClB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAChC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,IAAI,iDAAa,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9E,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,uBAAE,GAAF,UAAG,KAAa,EAAE,QAAsC;QACtD,IAAI,KAAK,KAAK,YAAY,EAAE,CAAC;YAC3B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;IAED,yBAAI,GAAJ,UAAK,KAAa,EAAE,IAAU;QAC5B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;IAED,4BAAO,GAAP,UAAQ,EAAU,EAAE,SAAuB;QAAvB,0BAAA,EAAA,eAAuB;QACzC,IAAM,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;QAC9B,IAAM,MAAM,GAAG,IAAI,0CAAU,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACtC,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,UAAC,MAAkB;YACrC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;IACH,iBAAC;AAAD,CAAC,AAhCD,IAgCC;AAhCY,gCAAU"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MockNamespace } from "./realtime-strategy-mock-namespaces";
|
|
2
|
+
export declare class MockSocket {
|
|
3
|
+
id: string;
|
|
4
|
+
private namespace;
|
|
5
|
+
private listeners;
|
|
6
|
+
constructor(id: string, namespace: MockNamespace);
|
|
7
|
+
on(event: string, callback: (data?: any) => void): void;
|
|
8
|
+
off(event: string, callback?: (data?: any) => void): void;
|
|
9
|
+
emit(event: string, data?: any): void;
|
|
10
|
+
join(room: string): void;
|
|
11
|
+
leave(room: string): void;
|
|
12
|
+
disconnect(): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockSocket = void 0;
|
|
4
|
+
var MockSocket = /** @class */ (function () {
|
|
5
|
+
function MockSocket(id, namespace) {
|
|
6
|
+
this.id = id;
|
|
7
|
+
this.namespace = namespace;
|
|
8
|
+
this.listeners = {};
|
|
9
|
+
this.namespace.addSocket(this);
|
|
10
|
+
}
|
|
11
|
+
MockSocket.prototype.on = function (event, callback) {
|
|
12
|
+
if (!this.listeners[event]) {
|
|
13
|
+
this.listeners[event] = [];
|
|
14
|
+
}
|
|
15
|
+
this.listeners[event].push(callback);
|
|
16
|
+
};
|
|
17
|
+
MockSocket.prototype.off = function (event, callback) {
|
|
18
|
+
if (!this.listeners[event])
|
|
19
|
+
return;
|
|
20
|
+
if (callback) {
|
|
21
|
+
this.listeners[event] = this.listeners[event].filter(function (listener) { return listener !== callback; });
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
delete this.listeners[event];
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
MockSocket.prototype.emit = function (event, data) {
|
|
28
|
+
if (this.listeners[event]) {
|
|
29
|
+
this.listeners[event].forEach(function (listener) { return listener(data); });
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
MockSocket.prototype.join = function (room) {
|
|
33
|
+
this.namespace.joinRoom(this, room);
|
|
34
|
+
};
|
|
35
|
+
MockSocket.prototype.leave = function (room) {
|
|
36
|
+
this.namespace.leaveRoom(this, room);
|
|
37
|
+
};
|
|
38
|
+
MockSocket.prototype.disconnect = function () {
|
|
39
|
+
this.emit('disconnect');
|
|
40
|
+
this.namespace.removeSocket(this);
|
|
41
|
+
this.listeners = {};
|
|
42
|
+
};
|
|
43
|
+
return MockSocket;
|
|
44
|
+
}());
|
|
45
|
+
exports.MockSocket = MockSocket;
|
|
46
|
+
//# sourceMappingURL=realtime-strategy-mock-socket.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-strategy-mock-socket.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAIA;IAGE,oBAAmB,EAAU,EAAU,SAAwB;QAA5C,OAAE,GAAF,EAAE,CAAQ;QAAU,cAAS,GAAT,SAAS,CAAe;QAFvD,cAAS,GAAmB,EAAE,CAAC;QAGrC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,uBAAE,GAAF,UAAG,KAAa,EAAE,QAA8B;QAC9C,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;QAC7B,CAAC;QACD,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC;IAED,wBAAG,GAAH,UAAI,KAAa,EAAE,QAA+B;QAChD,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;YAAE,OAAO;QAEnC,IAAI,QAAQ,EAAE,CAAC;YACb,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAA,QAAQ,IAAI,OAAA,QAAQ,KAAK,QAAQ,EAArB,CAAqB,CAAC,CAAC;QAC1F,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;IACH,CAAC;IAED,yBAAI,GAAJ,UAAK,KAAa,EAAE,IAAU;QAC5B,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAA,QAAQ,IAAI,OAAA,QAAQ,CAAC,IAAI,CAAC,EAAd,CAAc,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IAED,yBAAI,GAAJ,UAAK,IAAY;QACf,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;IAED,0BAAK,GAAL,UAAM,IAAY;QAChB,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,+BAAU,GAAV;QACE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACxB,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;IACH,iBAAC;AAAD,CAAC,AA3CD,IA2CC;AA3CY,gCAAU"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MockNamespace } from "./realtime-strategy-mock-namespaces";
|
|
2
|
+
import { MockSocket } from "./realtime-strategy-mock-socket";
|
|
3
|
+
export interface EventListeners {
|
|
4
|
+
[event: string]: Array<(data?: any) => void>;
|
|
5
|
+
}
|
|
6
|
+
export interface Rooms {
|
|
7
|
+
[room: string]: Set<MockSocket>;
|
|
8
|
+
}
|
|
9
|
+
export interface Namespaces {
|
|
10
|
+
[namespace: string]: MockNamespace;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-strategy-mock.models.js","sourceRoot":"","sources":[""],"names":[],"mappings":""}
|
package/lib/storage.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const globalPublicStorage:
|
|
1
|
+
export declare const globalPublicStorage: any;
|
package/lib/storage.js
CHANGED
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.globalPublicStorage = void 0;
|
|
4
4
|
const lib_1 = require("tnp-core/lib");
|
|
5
|
-
|
|
5
|
+
let win;
|
|
6
|
+
if (typeof window !== 'undefined') {
|
|
7
|
+
win = window;
|
|
8
|
+
}
|
|
9
|
+
exports.globalPublicStorage = lib_1.Helpers.isBrowser ? win : global;
|
|
6
10
|
//# sourceMappingURL=storage.js.map
|
package/lib/storage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,sCAAuC;
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,sCAAuC;AAEvC,IAAI,GAAQ,CAAC;AACb,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IAClC,GAAG,GAAG,MAAM,CAAC;AACf,CAAC;AACY,QAAA,mBAAmB,GAAG,aAAO,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { _ } from 'tnp-core';
|
|
3
|
+
export declare class TaonLongPress {
|
|
4
|
+
pressDuration: number;
|
|
5
|
+
onLongPress: EventEmitter<any>;
|
|
6
|
+
onLongPressing: EventEmitter<any>;
|
|
7
|
+
onLongPressEnd: EventEmitter<any>;
|
|
8
|
+
private pressing;
|
|
9
|
+
private longPressing;
|
|
10
|
+
private timeout;
|
|
11
|
+
private mouseX;
|
|
12
|
+
private mouseY;
|
|
13
|
+
get press(): boolean;
|
|
14
|
+
get longPress(): boolean;
|
|
15
|
+
allowTrigger: boolean;
|
|
16
|
+
triggerEnd: (() => void) & _.Cancelable;
|
|
17
|
+
onMouseDown(event: any): void;
|
|
18
|
+
onMouseMove(event: any): void;
|
|
19
|
+
loop(event: any): void;
|
|
20
|
+
endPress(emit?: boolean): void;
|
|
21
|
+
onMouseUp(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
|
+
export declare class SafePipe implements PipeTransform {
|
|
4
|
+
protected sanitizer: DomSanitizer;
|
|
5
|
+
constructor(sanitizer: DomSanitizer);
|
|
6
|
+
transform(value: any, type: string): SafeHtml | SafeStyle | SafeScript | SafeUrl | SafeResourceUrl;
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { _ } from 'tnp-core';
|
|
3
|
+
export declare class TaonLongPress {
|
|
4
|
+
pressDuration: number;
|
|
5
|
+
onLongPress: EventEmitter<any>;
|
|
6
|
+
onLongPressing: EventEmitter<any>;
|
|
7
|
+
onLongPressEnd: EventEmitter<any>;
|
|
8
|
+
private pressing;
|
|
9
|
+
private longPressing;
|
|
10
|
+
private timeout;
|
|
11
|
+
private mouseX;
|
|
12
|
+
private mouseY;
|
|
13
|
+
get press(): boolean;
|
|
14
|
+
get longPress(): boolean;
|
|
15
|
+
allowTrigger: boolean;
|
|
16
|
+
triggerEnd: (() => void) & _.Cancelable;
|
|
17
|
+
onMouseDown(event: any): void;
|
|
18
|
+
onMouseMove(event: any): void;
|
|
19
|
+
loop(event: any): void;
|
|
20
|
+
endPress(emit?: boolean): void;
|
|
21
|
+
onMouseUp(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViewMode = void 0;
|
|
4
|
+
var ViewMode;
|
|
5
|
+
(function (ViewMode) {
|
|
6
|
+
ViewMode["Add"] = "Add";
|
|
7
|
+
ViewMode["Edit"] = "Edit";
|
|
8
|
+
ViewMode["Preview"] = "Preview";
|
|
9
|
+
})(ViewMode || (exports.ViewMode = ViewMode = {}));
|
|
10
|
+
//# sourceMappingURL=view-mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view-mode.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,yBAAa,CAAA;IACb,+BAAmB,CAAA;AACrB,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB"}
|
package/lib/ui/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.dummy1754861874023 = dummy1754861874023;
|
|
4
|
+
function dummy1754861874023() { }
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import 'brace';
|
|
5
|
+
import 'brace/mode/css';
|
|
6
|
+
import 'brace/mode/typescript';
|
|
7
|
+
import 'brace/theme/github';
|
|
8
|
+
import { MtxGridColumn } from '@ng-matero/extensions/grid';
|
|
9
|
+
export declare class TaonAdminEditModeComponent implements OnInit {
|
|
10
|
+
private router;
|
|
11
|
+
inited$: import("rxjs").Observable<boolean>;
|
|
12
|
+
private destroyed$;
|
|
13
|
+
admin: any;
|
|
14
|
+
handlers: Subscription[];
|
|
15
|
+
entity: any;
|
|
16
|
+
files: any;
|
|
17
|
+
selectedTabIndex: number;
|
|
18
|
+
fileToSearch: string;
|
|
19
|
+
columns: MtxGridColumn[];
|
|
20
|
+
taonAdminEditModeDataChanged: EventEmitter<any>;
|
|
21
|
+
taonAdminEditModeData: any;
|
|
22
|
+
constructor(router: Router);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
ngAfterViewInit(): void;
|
|
26
|
+
expansionRow(e: any): void;
|
|
27
|
+
refresFilesList(): void;
|
|
28
|
+
searchFind(file: any): any;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './taon-db-admin.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
export declare class TaonFileGeneralOptComponent implements OnInit {
|
|
5
|
+
height: number;
|
|
6
|
+
handlers: Subscription[];
|
|
7
|
+
fieldsOrder: any[];
|
|
8
|
+
fields: FormlyFieldConfig[];
|
|
9
|
+
file: any;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.dummy1754861875106 = dummy1754861875106;
|
|
4
|
+
function dummy1754861875106() { }
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taon-admin-mode-tabs.js","sourceRoot":"","sources":[""],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApplicationRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import type { TaonAdminModeConfigurationComponent } from './taon-admin-mode-configuration.component';
|
|
3
|
+
export declare class TaonAdminService {
|
|
4
|
+
private cdr;
|
|
5
|
+
taonAdminModeConfigurationComponent: TaonAdminModeConfigurationComponent;
|
|
6
|
+
private readonly admin;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
10
|
+
disableScroll(): void;
|
|
11
|
+
constructor(cdr: ApplicationRef);
|
|
12
|
+
addTab(name: string, template: TemplateRef<any>): void;
|
|
13
|
+
init(taonAdminModeConfigurationComponent: TaonAdminModeConfigurationComponent): void;
|
|
14
|
+
}
|