taon 19.0.5 → 19.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +175 -175
- package/bin/start.js +279 -279
- package/bin/taon +6 -6
- package/bin/taon-debug +5 -5
- package/bin/taon-debug-brk +5 -5
- package/browser/README.md +24 -24
- package/browser/fesm2022/taon.mjs +1313 -259
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/base-classes/base-class.d.ts +1 -1
- package/browser/lib/base-classes/base-context.d.ts +6 -6
- package/browser/lib/base-classes/base-repository.d.ts +3 -2
- package/browser/lib/base-classes/base.d.ts +6 -6
- package/browser/lib/create-context.d.ts +12 -12
- package/browser/lib/index.d.ts +18 -18
- package/browser/lib/inject.d.ts +4 -1
- package/browser/lib/ui/taon-table/taon-table.component.d.ts +8 -7
- package/browser/package.json +1 -1
- package/cli.js.map +1 -1
- package/client/README.md +24 -24
- package/client/fesm2022/taon.mjs +1313 -259
- package/client/fesm2022/taon.mjs.map +1 -1
- package/client/lib/base-classes/base-class.d.ts +1 -1
- package/client/lib/base-classes/base-context.d.ts +6 -6
- package/client/lib/base-classes/base-repository.d.ts +3 -2
- package/client/lib/base-classes/base.d.ts +6 -6
- package/client/lib/create-context.d.ts +12 -12
- package/client/lib/index.d.ts +18 -18
- package/client/lib/inject.d.ts +4 -1
- package/client/lib/ui/taon-table/taon-table.component.d.ts +8 -7
- package/client/package.json +1 -1
- package/index.js.map +1 -1
- package/lib/base-classes/base-abstract-entity.js +2 -2
- package/lib/base-classes/base-abstract-entity.js.map +1 -1
- package/lib/base-classes/base-class.d.ts +1 -1
- package/lib/base-classes/base-class.js +13 -4
- package/lib/base-classes/base-class.js.map +1 -1
- package/lib/base-classes/base-context.d.ts +6 -6
- package/lib/base-classes/base-context.js.map +1 -1
- package/lib/base-classes/base-controller.js.map +1 -1
- package/lib/base-classes/base-crud-controller.js +6 -6
- package/lib/base-classes/base-crud-controller.js.map +1 -1
- package/lib/base-classes/base-entity.js +2 -2
- package/lib/base-classes/base-entity.js.map +1 -1
- package/lib/base-classes/base-injector.js +2 -2
- package/lib/base-classes/base-injector.js.map +1 -1
- package/lib/base-classes/base-migration.d.ts +1 -1
- package/lib/base-classes/base-migration.js +2 -2
- package/lib/base-classes/base-migration.js.map +1 -1
- package/lib/base-classes/base-provider.js.map +1 -1
- package/lib/base-classes/base-repository.d.ts +3 -2
- package/lib/base-classes/base-repository.js +14 -11
- package/lib/base-classes/base-repository.js.map +1 -1
- package/lib/base-classes/base-subscriber-for-entity.d.ts +1 -1
- package/lib/base-classes/base-subscriber-for-entity.js.map +1 -1
- package/lib/base-classes/base.d.ts +6 -6
- package/lib/base-classes/base.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +2 -1
- package/lib/build-info._auto-generated_.js +3 -2
- package/lib/build-info._auto-generated_.js.map +1 -1
- package/lib/constants.js.map +1 -1
- package/lib/context-db-migrations.d.ts +1 -1
- package/lib/context-db-migrations.js +7 -7
- package/lib/context-db-migrations.js.map +1 -1
- package/lib/create-context.d.ts +12 -12
- package/lib/create-context.js +13 -13
- package/lib/create-context.js.map +1 -1
- package/lib/decorators/classes/controller-decorator.js.map +1 -1
- package/lib/decorators/classes/entity-decorator.d.ts +1 -1
- package/lib/decorators/classes/entity-decorator.js +8 -8
- package/lib/decorators/classes/entity-decorator.js.map +1 -1
- package/lib/decorators/classes/migration-decorator.js.map +1 -1
- package/lib/decorators/classes/provider-decorator.js.map +1 -1
- package/lib/decorators/classes/repository-decorator.js.map +1 -1
- package/lib/decorators/classes/subscriber-decorator.js.map +1 -1
- package/lib/decorators/http/http-decorators.d.ts +1 -1
- package/lib/decorators/http/http-decorators.js +2 -2
- package/lib/decorators/http/http-decorators.js.map +1 -1
- package/lib/decorators/http/http-methods-decorators.d.ts +1 -1
- package/lib/decorators/http/http-methods-decorators.js +2 -2
- package/lib/decorators/http/http-methods-decorators.js.map +1 -1
- package/lib/decorators/http/http-params-decorators.js.map +1 -1
- package/lib/dependency-injection/di-container.js.map +1 -1
- package/lib/endpoint-context.js +112 -112
- package/lib/endpoint-context.js.map +1 -1
- package/lib/entity-process.js +35 -35
- package/lib/entity-process.js.map +1 -1
- package/lib/env.js +2 -2
- package/lib/env.js.map +1 -1
- package/lib/formly/formly-group-wrapper-component.js.map +1 -1
- package/lib/formly/formly-repeat-component.js.map +1 -1
- package/lib/formly/formly.models.js.map +1 -1
- package/lib/formly/fromly.d.ts +1 -1
- package/lib/formly/fromly.js +26 -26
- package/lib/formly/fromly.js.map +1 -1
- package/lib/formly/type-from-entity.js +6 -6
- package/lib/formly/type-from-entity.js.map +1 -1
- package/lib/get-response-value.js +2 -2
- package/lib/get-response-value.js.map +1 -1
- package/lib/helpers/class-helpers.js +21 -21
- package/lib/helpers/class-helpers.js.map +1 -1
- package/lib/helpers/taon-helpers.js +4 -4
- package/lib/helpers/taon-helpers.js.map +1 -1
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/index.d.ts +18 -18
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/inject.js +0 -5
- package/lib/inject.js.map +1 -1
- package/lib/models.d.ts +1 -1
- package/lib/models.js +5 -5
- package/lib/models.js.map +1 -1
- package/lib/orm.d.ts +1 -1
- package/lib/orm.js +4 -4
- package/lib/orm.js.map +1 -1
- package/lib/realtime/realtime-client.js +3 -3
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/realtime/realtime-core.js +3 -3
- package/lib/realtime/realtime-core.js.map +1 -1
- package/lib/realtime/realtime-server.js +7 -7
- package/lib/realtime/realtime-server.js.map +1 -1
- package/lib/realtime/realtime-strategy/index.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy.js.map +1 -1
- package/lib/realtime/realtime-subs-manager.js +3 -3
- package/lib/realtime/realtime-subs-manager.js.map +1 -1
- package/lib/realtime/realtime.models.js.map +1 -1
- package/lib/storage.js +2 -2
- package/lib/storage.js.map +1 -1
- package/lib/symbols.js +7 -7
- package/lib/symbols.js.map +1 -1
- package/lib/ui/directives/index.js +2 -2
- package/lib/ui/directives/index.js.map +1 -1
- package/lib/ui/directives/view-mode.js.map +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js.map +1 -1
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +1 -1
- package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
- package/lib/ui/taon-github-fork-me-corner/index.js.map +1 -1
- package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.js.map +1 -1
- package/lib/ui/taon-notifications/index.js.map +1 -1
- package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
- package/lib/ui/taon-notifications/taon-notifications.models.js.map +1 -1
- package/lib/ui/taon-progress-bar/index.js +2 -2
- package/lib/ui/taon-progress-bar/index.js.map +1 -1
- package/lib/ui/taon-session-passcode/index.js +2 -2
- package/lib/ui/taon-session-passcode/index.js.map +1 -1
- package/lib/ui/taon-table/index.js +2 -2
- package/lib/ui/taon-table/index.js.map +1 -1
- package/lib/ui/taon-table/taon-table.component.d.ts +7 -6
- package/lib/ui/taon.models.d.ts +1 -1
- package/lib/ui/taon.models.js.map +1 -1
- package/lib/validators.js +8 -8
- package/lib/validators.js.map +1 -1
- package/migrations/index.js.map +1 -1
- package/migrations/migrations_index._auto-generated_.js.map +1 -1
- package/old-app .js +1 -1
- package/old-app .js.map +1 -1
- package/package.json +1 -1
- package/playground.js.map +1 -1
- package/tmp-environment.json +4 -4
- package/websql/README.md +24 -24
- package/websql/fesm2022/taon.mjs +1609 -282
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/base-classes/base-class.d.ts +1 -1
- package/websql/lib/base-classes/base-context.d.ts +6 -6
- package/websql/lib/base-classes/base-repository.d.ts +3 -2
- package/websql/lib/base-classes/base.d.ts +6 -6
- package/websql/lib/create-context.d.ts +12 -12
- package/websql/lib/index.d.ts +18 -18
- package/websql/lib/inject.d.ts +4 -1
- package/websql/lib/ui/taon-table/taon-table.component.d.ts +8 -7
- package/websql/package.json +1 -1
- package/browser/lib/storage.d.ts +0 -2
- package/client/lib/storage.d.ts +0 -2
- package/lib/base-classes/base-subscriber.d.ts +0 -4
- package/lib/base-classes/base-subscriber.js +0 -25
- package/lib/base-classes/base-subscriber.js.map +0 -1
- 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 +0 -5
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +0 -22
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js +0 -139
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +0 -16
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js +0 -68
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +0 -10
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js +0 -56
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +0 -10
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js +0 -50
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +0 -13
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js +0 -3
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +0 -2
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js +0 -6
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +0 -16
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js +0 -54
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +0 -17
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js +0 -52
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +0 -11
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js +0 -39
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +0 -13
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js +0 -46
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +0 -11
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js +0 -3
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js.map +0 -1
- package/lib/ui/directives/firedev-inject-html.directive.d.ts +0 -6
- package/lib/ui/directives/firedev-long-press.directive.d.ts +0 -22
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +0 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +0 -5
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +0 -1
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +0 -29
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +0 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +0 -1
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +0 -5
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +0 -1
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +0 -8
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +0 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +0 -5
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +0 -1
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +0 -13
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +0 -2
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +0 -5
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js +0 -3
- package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +0 -1
- package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +0 -14
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +0 -2
- package/lib/ui/toan-full-material.module.d.ts +0 -2
- package/websql/lib/storage.d.ts +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
declare const BaseContext: {
|
|
3
3
|
types: {
|
|
4
|
-
readonly controllers:
|
|
5
|
-
readonly repositories:
|
|
6
|
-
readonly providers:
|
|
7
|
-
readonly subscribers:
|
|
8
|
-
readonly migrations:
|
|
4
|
+
readonly controllers: any;
|
|
5
|
+
readonly repositories: any;
|
|
6
|
+
readonly providers: any;
|
|
7
|
+
readonly subscribers: any;
|
|
8
|
+
readonly migrations: any;
|
|
9
9
|
};
|
|
10
|
-
readonly contexts:
|
|
10
|
+
readonly contexts: any;
|
|
11
11
|
readonly contextName: string;
|
|
12
12
|
__ref(): Promise<import("taon/websql").EndpointContext>;
|
|
13
13
|
readonly __refSync: import("taon/websql").EndpointContext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import type { FindManyOptions, FindOneOptions, FindOptionsWhere, InsertResult, Repository, SaveOptions, UpdateResult } from 'taon-typeorm';
|
|
2
|
+
import type { FindManyOptions, FindOneOptions, FindOptionsWhere, InsertResult, Repository, SaveOptions, UpdateResult } from 'taon-typeorm/websql';
|
|
3
3
|
import type { QueryDeepPartialEntity } from 'taon-typeorm/lib/typeorm/query-builder/QueryPartialEntity';
|
|
4
4
|
import type { UpsertOptions } from 'taon-typeorm/lib/typeorm/repository/UpsertOptions';
|
|
5
5
|
import type { DataSource as DataSourceType } from 'taon-typeorm/websql';
|
|
@@ -128,7 +128,8 @@ export declare abstract class BaseRepository<Entity extends {
|
|
|
128
128
|
*/
|
|
129
129
|
insert(entity: QueryDeepPartialEntity<Entity> | QueryDeepPartialEntity<Entity>[]): Promise<InsertResult>;
|
|
130
130
|
update(item: Entity): Promise<Entity>;
|
|
131
|
-
|
|
131
|
+
private allowedTypesToUpdate;
|
|
132
|
+
updateById<ENTITY = Entity>(id: number | string, item: Entity): Promise<ENTITY>;
|
|
132
133
|
bulkUpdate(items: Entity[]): Promise<{
|
|
133
134
|
models: any[];
|
|
134
135
|
}>;
|
|
@@ -21,13 +21,13 @@ export declare namespace Base {
|
|
|
21
21
|
export import Migration = baseMigration.BaseMigration;
|
|
22
22
|
const Context: {
|
|
23
23
|
types: {
|
|
24
|
-
readonly controllers:
|
|
25
|
-
readonly repositories:
|
|
26
|
-
readonly providers:
|
|
27
|
-
readonly subscribers:
|
|
28
|
-
readonly migrations:
|
|
24
|
+
readonly controllers: any;
|
|
25
|
+
readonly repositories: any;
|
|
26
|
+
readonly providers: any;
|
|
27
|
+
readonly subscribers: any;
|
|
28
|
+
readonly migrations: any;
|
|
29
29
|
};
|
|
30
|
-
readonly contexts:
|
|
30
|
+
readonly contexts: any;
|
|
31
31
|
readonly contextName: string;
|
|
32
32
|
__ref(): Promise<import("taon/websql").EndpointContext>;
|
|
33
33
|
readonly __refSync: import("taon/websql").EndpointContext;
|
|
@@ -3,13 +3,13 @@ import { EndpointContext } from './endpoint-context';
|
|
|
3
3
|
import { Models } from './models';
|
|
4
4
|
export declare const createContextTemplate: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => () => {
|
|
5
5
|
types: {
|
|
6
|
-
readonly controllers:
|
|
7
|
-
readonly repositories:
|
|
8
|
-
readonly providers:
|
|
9
|
-
readonly subscribers:
|
|
10
|
-
readonly migrations:
|
|
6
|
+
readonly controllers: any;
|
|
7
|
+
readonly repositories: any;
|
|
8
|
+
readonly providers: any;
|
|
9
|
+
readonly subscribers: any;
|
|
10
|
+
readonly migrations: any;
|
|
11
11
|
};
|
|
12
|
-
readonly contexts:
|
|
12
|
+
readonly contexts: any;
|
|
13
13
|
readonly contextName: string;
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated
|
|
@@ -44,13 +44,13 @@ export declare const createContextTemplate: <CTX extends Record<string, object>,
|
|
|
44
44
|
};
|
|
45
45
|
export declare const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => {
|
|
46
46
|
types: {
|
|
47
|
-
readonly controllers:
|
|
48
|
-
readonly repositories:
|
|
49
|
-
readonly providers:
|
|
50
|
-
readonly subscribers:
|
|
51
|
-
readonly migrations:
|
|
47
|
+
readonly controllers: any;
|
|
48
|
+
readonly repositories: any;
|
|
49
|
+
readonly providers: any;
|
|
50
|
+
readonly subscribers: any;
|
|
51
|
+
readonly migrations: any;
|
|
52
52
|
};
|
|
53
|
-
readonly contexts:
|
|
53
|
+
readonly contexts: any;
|
|
54
54
|
readonly contextName: string;
|
|
55
55
|
/**
|
|
56
56
|
* @deprecated
|
package/websql/lib/index.d.ts
CHANGED
|
@@ -48,13 +48,13 @@ export declare namespace Taon {
|
|
|
48
48
|
const isElectron: boolean;
|
|
49
49
|
const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => {
|
|
50
50
|
types: {
|
|
51
|
-
readonly controllers:
|
|
52
|
-
readonly repositories:
|
|
53
|
-
readonly providers:
|
|
54
|
-
readonly subscribers:
|
|
55
|
-
readonly migrations:
|
|
51
|
+
readonly controllers: any;
|
|
52
|
+
readonly repositories: any;
|
|
53
|
+
readonly providers: any;
|
|
54
|
+
readonly subscribers: any;
|
|
55
|
+
readonly migrations: any;
|
|
56
56
|
};
|
|
57
|
-
readonly contexts:
|
|
57
|
+
readonly contexts: any;
|
|
58
58
|
readonly contextName: string;
|
|
59
59
|
__ref(): Promise<endpointContext.EndpointContext>;
|
|
60
60
|
readonly __refSync: endpointContext.EndpointContext;
|
|
@@ -73,13 +73,13 @@ export declare namespace Taon {
|
|
|
73
73
|
};
|
|
74
74
|
const createContextTemplate: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>, MIGRATION extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION>) => () => {
|
|
75
75
|
types: {
|
|
76
|
-
readonly controllers:
|
|
77
|
-
readonly repositories:
|
|
78
|
-
readonly providers:
|
|
79
|
-
readonly subscribers:
|
|
80
|
-
readonly migrations:
|
|
76
|
+
readonly controllers: any;
|
|
77
|
+
readonly repositories: any;
|
|
78
|
+
readonly providers: any;
|
|
79
|
+
readonly subscribers: any;
|
|
80
|
+
readonly migrations: any;
|
|
81
81
|
};
|
|
82
|
-
readonly contexts:
|
|
82
|
+
readonly contexts: any;
|
|
83
83
|
readonly contextName: string;
|
|
84
84
|
__ref(): Promise<endpointContext.EndpointContext>;
|
|
85
85
|
readonly __refSync: endpointContext.EndpointContext;
|
|
@@ -109,13 +109,13 @@ export declare namespace Taon {
|
|
|
109
109
|
controllers: Function[];
|
|
110
110
|
}) => Promise<{
|
|
111
111
|
types: {
|
|
112
|
-
readonly controllers:
|
|
113
|
-
readonly repositories:
|
|
114
|
-
readonly providers:
|
|
115
|
-
readonly subscribers:
|
|
116
|
-
readonly migrations:
|
|
112
|
+
readonly controllers: any;
|
|
113
|
+
readonly repositories: any;
|
|
114
|
+
readonly providers: any;
|
|
115
|
+
readonly subscribers: any;
|
|
116
|
+
readonly migrations: any;
|
|
117
117
|
};
|
|
118
|
-
readonly contexts:
|
|
118
|
+
readonly contexts: any;
|
|
119
119
|
readonly contextName: string;
|
|
120
120
|
__ref(): Promise<endpointContext.EndpointContext>;
|
|
121
121
|
readonly __refSync: endpointContext.EndpointContext;
|
package/websql/lib/inject.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { TemplateRef, EventEmitter, ElementRef } from '@angular/core';
|
|
3
|
-
import { Taon } from '../../../lib';
|
|
2
|
+
import { OnInit, TemplateRef, EventEmitter, ElementRef, OnDestroy } from '@angular/core';
|
|
4
3
|
import { PageEvent } from '@angular/material/paginator';
|
|
5
4
|
import { MtxGridColumn } from '@ng-matero/extensions/grid';
|
|
5
|
+
import { Taon } from '../../../lib';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TaonTableComponent {
|
|
7
|
+
export declare class TaonTableComponent implements OnDestroy, OnInit {
|
|
8
8
|
pageNumber: number;
|
|
9
9
|
pageSize: number;
|
|
10
10
|
allowedColumns: string[];
|
|
11
|
-
entity: typeof Taon.Base.Entity | string;
|
|
12
11
|
expansionTemplate: TemplateRef<any>;
|
|
13
12
|
rows: {
|
|
14
13
|
id: number;
|
|
15
14
|
name: string;
|
|
16
15
|
}[];
|
|
16
|
+
entityCrudController: Taon.Base.CrudController<any>;
|
|
17
17
|
columns: MtxGridColumn[];
|
|
18
18
|
pageSizeOptions: number[];
|
|
19
|
+
hideSearch: boolean;
|
|
19
20
|
expansionChange: EventEmitter<any>;
|
|
20
21
|
addingItem: EventEmitter<void>;
|
|
21
22
|
search?: ElementRef<HTMLElement>;
|
|
@@ -25,13 +26,13 @@ export declare class TaonTableComponent {
|
|
|
25
26
|
isLoading: boolean;
|
|
26
27
|
totalElements: number;
|
|
27
28
|
private sub;
|
|
28
|
-
|
|
29
|
+
get entity(): typeof Taon.Base.Entity;
|
|
29
30
|
ngOnInit(): Promise<void>;
|
|
30
31
|
ngOnDestroy(): void;
|
|
31
32
|
getNextPage(e: PageEvent): Promise<void>;
|
|
32
|
-
|
|
33
|
+
getData(): Promise<void>;
|
|
33
34
|
expansionRow(e: any): void;
|
|
34
35
|
onTableContextMenu(e: any): void;
|
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<TaonTableComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TaonTableComponent, "taon-table", never, { "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "allowedColumns": { "alias": "allowedColumns"; "required": false; }; "
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TaonTableComponent, "taon-table", never, { "pageNumber": { "alias": "pageNumber"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "allowedColumns": { "alias": "allowedColumns"; "required": false; }; "expansionTemplate": { "alias": "expansionTemplate"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "entityCrudController": { "alias": "entityCrudController"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "hideSearch": { "alias": "hideSearch"; "required": false; }; }, { "expansionChange": "expansionChange"; "addingItem": "addingItem"; }, never, never, false, never>;
|
|
37
38
|
}
|
package/websql/package.json
CHANGED
package/browser/lib/storage.d.ts
DELETED
package/client/lib/storage.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseSubscriber = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var base_injector_1 = require("./base-injector");
|
|
6
|
-
var subscriber_decorator_1 = require("../decorators/classes/subscriber-decorator");
|
|
7
|
-
var BaseSubscriber = /** @class */ (function (_super) {
|
|
8
|
-
tslib_1.__extends(BaseSubscriber, _super);
|
|
9
|
-
function BaseSubscriber() {
|
|
10
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
11
|
-
}
|
|
12
|
-
BaseSubscriber.prototype.__trigger_event__ = function (eventName) {
|
|
13
|
-
var ctx = this.__endpoint_context__;
|
|
14
|
-
console.log('Trigger event', eventName, ctx);
|
|
15
|
-
// ctx.realtimeServer.triggerCustomEvent/
|
|
16
|
-
};
|
|
17
|
-
BaseSubscriber = tslib_1.__decorate([
|
|
18
|
-
(0, subscriber_decorator_1.TaonSubscriber)({
|
|
19
|
-
className: 'BaseSubscriber',
|
|
20
|
-
})
|
|
21
|
-
], BaseSubscriber);
|
|
22
|
-
return BaseSubscriber;
|
|
23
|
-
}(base_injector_1.BaseInjector));
|
|
24
|
-
exports.BaseSubscriber = BaseSubscriber;
|
|
25
|
-
//# sourceMappingURL=base-subscriber.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-subscriber.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/base-classes/base-subscriber.ts"],"names":[],"mappings":";;;;AAWA,iDAA+C;AAC/C,mFAA4E;AAK5E;IAA2D,0CAAY;IAAvE;;IAMA,CAAC;IALW,0CAAiB,GAA3B,UAA4B,SAAuB;QACjD,IAAM,GAAG,GAAG,IAAI,CAAC,oBAAoB,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;QAC7C,yCAAyC;IAC3C,CAAC;IALmB,cAAc;QAHnC,IAAA,qCAAc,EAAC;YACd,SAAS,EAAE,gBAAgB;SAC5B,CAAC;OACoB,cAAc,CAMnC;IAAD,qBAAC;CAAA,AAND,CAA2D,4BAAY,GAMtE;AANqB,wCAAc"}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.ts"],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as Electron from 'electron';
|
|
2
|
-
export declare class IpcMainNamespace {
|
|
3
|
-
name: string;
|
|
4
|
-
private rooms;
|
|
5
|
-
private listeners;
|
|
6
|
-
constructor(name: string);
|
|
7
|
-
on(event: string, callback: (event: Electron.IpcMainEvent, ...args: any[]) => void): void;
|
|
8
|
-
off(event: string, callback?: (event: Electron.IpcMainEvent, ...args: any[]) => void): void;
|
|
9
|
-
emit(event: string, ...args: any[]): void;
|
|
10
|
-
to(room: string): {
|
|
11
|
-
emit: (event: string, ...args: any[]) => void;
|
|
12
|
-
};
|
|
13
|
-
in(room: string): {
|
|
14
|
-
emit: (event: string, ...args: any[]) => void;
|
|
15
|
-
};
|
|
16
|
-
join(webContents: Electron.WebContents, room: string): void;
|
|
17
|
-
leave(webContents: Electron.WebContents, room: string): void;
|
|
18
|
-
path(): string;
|
|
19
|
-
get nsp(): {
|
|
20
|
-
readonly name: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IpcMainNamespace = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
//#region @backend
|
|
6
|
-
var Electron = require("electron");
|
|
7
|
-
var electron_1 = require("electron");
|
|
8
|
-
//#endregion
|
|
9
|
-
var IpcMainNamespace = /** @class */ (function () {
|
|
10
|
-
function IpcMainNamespace(name) {
|
|
11
|
-
this.name = name;
|
|
12
|
-
this.rooms = {};
|
|
13
|
-
this.listeners = {};
|
|
14
|
-
}
|
|
15
|
-
IpcMainNamespace.prototype.on = function (event, callback) {
|
|
16
|
-
//#region @backendFunc
|
|
17
|
-
var listenKey = "(".concat(this.name, ") \"").concat(event, "\"");
|
|
18
|
-
// console.log(`[BACKEND]][IPC][MAIN NAMSEPACE] listenToEvent "${listenKey}"`);
|
|
19
|
-
if (!this.listeners[event]) {
|
|
20
|
-
this.listeners[event] = [];
|
|
21
|
-
}
|
|
22
|
-
this.listeners[event].push(callback);
|
|
23
|
-
electron_1.ipcMain.on(listenKey, callback);
|
|
24
|
-
this.emit(listenKey); // QUICK_FIX
|
|
25
|
-
//#endregion
|
|
26
|
-
};
|
|
27
|
-
IpcMainNamespace.prototype.off = function (event, callback) {
|
|
28
|
-
//#region @backendFunc
|
|
29
|
-
if (!this.listeners[event])
|
|
30
|
-
return;
|
|
31
|
-
if (callback) {
|
|
32
|
-
this.listeners[event] = this.listeners[event].filter(function (listener) { return listener !== callback; });
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
delete this.listeners[event];
|
|
36
|
-
}
|
|
37
|
-
var removeKey = "(".concat(this.name, ") \"").concat(event, "\"");
|
|
38
|
-
// console.log(`[BACKEND]][IPC][MAIN NAMSEPACE] removeKey ${removeKey}`);
|
|
39
|
-
electron_1.ipcMain.removeListener(removeKey, callback);
|
|
40
|
-
//#endregion
|
|
41
|
-
};
|
|
42
|
-
IpcMainNamespace.prototype.emit = function (event) {
|
|
43
|
-
var args = [];
|
|
44
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
45
|
-
args[_i - 1] = arguments[_i];
|
|
46
|
-
}
|
|
47
|
-
//#region @backendFunc
|
|
48
|
-
var sendEventKey = "(".concat(this.name, ") \"").concat(event, "\"");
|
|
49
|
-
// console.log(`[BACKEND]][IPC][MAIN NAMSEPACE] emitEvent "${sendEventKey}"`);
|
|
50
|
-
var allWindows = Electron.BrowserWindow.getAllWindows();
|
|
51
|
-
allWindows.forEach(function (win, index) {
|
|
52
|
-
var _a;
|
|
53
|
-
(_a = win.webContents).send.apply(_a, tslib_1.__spreadArray([sendEventKey], tslib_1.__read(args), false));
|
|
54
|
-
});
|
|
55
|
-
//#endregion
|
|
56
|
-
};
|
|
57
|
-
IpcMainNamespace.prototype.to = function (room) {
|
|
58
|
-
var _this = this;
|
|
59
|
-
return {
|
|
60
|
-
emit: function (event) {
|
|
61
|
-
var args = [];
|
|
62
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
63
|
-
args[_i - 1] = arguments[_i];
|
|
64
|
-
}
|
|
65
|
-
var emitEvent = "(".concat(_this.name, ") \"").concat(event, "\"");
|
|
66
|
-
// console.log(
|
|
67
|
-
// `[BACKEND]][IPC][MAIN NAMSEPACE] emitEvent in room "${room}"` +
|
|
68
|
-
// ` (exited=${!!this.rooms[room]}) "${emitEvent}"`,
|
|
69
|
-
// );
|
|
70
|
-
var allWindows = Electron.BrowserWindow.getAllWindows();
|
|
71
|
-
allWindows.forEach(function (win, index) {
|
|
72
|
-
var _a;
|
|
73
|
-
(_a = win.webContents).send.apply(_a, tslib_1.__spreadArray([emitEvent], tslib_1.__read(args), false));
|
|
74
|
-
});
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
IpcMainNamespace.prototype.in = function (room) {
|
|
79
|
-
var _this = this;
|
|
80
|
-
return {
|
|
81
|
-
emit: function (event) {
|
|
82
|
-
var args = [];
|
|
83
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
84
|
-
args[_i - 1] = arguments[_i];
|
|
85
|
-
}
|
|
86
|
-
// console.log(
|
|
87
|
-
// `[BACKEND]][IPC][MAIN NAMSEPACE] ` +
|
|
88
|
-
// ` emit in room "${room}" "${event}"`,
|
|
89
|
-
// );
|
|
90
|
-
var sendEventKey = "(".concat(_this.name, ") \"").concat(event, "\"");
|
|
91
|
-
var allWindows = Electron.BrowserWindow.getAllWindows();
|
|
92
|
-
allWindows.forEach(function (win, index) {
|
|
93
|
-
var _a;
|
|
94
|
-
(_a = win.webContents).send.apply(_a, tslib_1.__spreadArray([sendEventKey], tslib_1.__read(args), false));
|
|
95
|
-
});
|
|
96
|
-
},
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
IpcMainNamespace.prototype.join = function (webContents, room) {
|
|
100
|
-
if (!this.rooms[room]) {
|
|
101
|
-
this.rooms[room] = new Set();
|
|
102
|
-
}
|
|
103
|
-
this.rooms[room].add(webContents);
|
|
104
|
-
// console.log(
|
|
105
|
-
// `[BACKEND]][IPC][MAIN NAMSEPACE] joinRoom "${room}"`,
|
|
106
|
-
// this.rooms[room].size,
|
|
107
|
-
// );
|
|
108
|
-
};
|
|
109
|
-
IpcMainNamespace.prototype.leave = function (webContents, room) {
|
|
110
|
-
if (this.rooms[room]) {
|
|
111
|
-
this.rooms[room].delete(webContents);
|
|
112
|
-
if (this.rooms[room].size === 0) {
|
|
113
|
-
delete this.rooms[room];
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
// console.log(
|
|
117
|
-
// `[BACKEND]][IPC][MAIN NAMSEPACE] leaveRoom "${room}"`,
|
|
118
|
-
// this.rooms[room] ? this.rooms[room].size : 'no room',
|
|
119
|
-
// );
|
|
120
|
-
};
|
|
121
|
-
IpcMainNamespace.prototype.path = function () {
|
|
122
|
-
return this.name;
|
|
123
|
-
};
|
|
124
|
-
Object.defineProperty(IpcMainNamespace.prototype, "nsp", {
|
|
125
|
-
get: function () {
|
|
126
|
-
var self = this;
|
|
127
|
-
return {
|
|
128
|
-
get name() {
|
|
129
|
-
return self.name;
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
},
|
|
133
|
-
enumerable: false,
|
|
134
|
-
configurable: true
|
|
135
|
-
});
|
|
136
|
-
return IpcMainNamespace;
|
|
137
|
-
}());
|
|
138
|
-
exports.IpcMainNamespace = IpcMainNamespace;
|
|
139
|
-
//# sourceMappingURL=realtime-strategy-ipc-main-namespace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-strategy-ipc-main-namespace.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.ts"],"names":[],"mappings":";;;;AACA,kBAAkB;AAClB,mCAAqC;AACrC,qCAAmC;AACnC,YAAY;AAEZ;IAIE,0BAAmB,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QAHvB,UAAK,GAAU,EAAE,CAAC;QAClB,cAAS,GAAmB,EAAE,CAAC;IAEL,CAAC;IAEnC,6BAAE,GAAF,UACE,KAAa,EACb,QAAgE;QAEhE,sBAAsB;QACtB,IAAM,SAAS,GAAG,WAAI,IAAI,CAAC,IAAI,iBAAM,KAAK,OAAG,CAAC;QAC9C,+EAA+E;QAC/E,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;QACrC,kBAAO,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAChC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY;QAClC,YAAY;IACd,CAAC;IAED,8BAAG,GAAH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QAC3B,KAAK;IACP,CAAC;IAED,gCAAK,GAAL,UAAM,WAAiC,EAAE,IAAY;QACnD,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;YACrB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACrC,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;QACD,eAAe;QACf,2DAA2D;QAC3D,0DAA0D;QAC1D,KAAK;IACP,CAAC;IAED,+BAAI,GAAJ;QACE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,sBAAI,iCAAG;aAAP;YACE,IAAM,IAAI,GAAG,IAAI,CAAC;YAClB,OAAO;gBACL,IAAI,IAAI;oBACN,OAAO,IAAI,CAAC,IAAI,CAAC;gBACnB,CAAC;aACF,CAAC;QACJ,CAAC;;;OAAA;IACH,uBAAC;AAAD,CAAC,AAzHD,IAyHC;AAzHY,4CAAgB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IpcMainNamespace } from './realtime-strategy-ipc-main-namespace';
|
|
2
|
-
export declare class ioIpcStrategy {
|
|
3
|
-
contextName: string;
|
|
4
|
-
private namespaces;
|
|
5
|
-
constructor(contextName: string);
|
|
6
|
-
of(namespace: string): IpcMainNamespace;
|
|
7
|
-
on(event: string, callback: (event: Electron.IpcMainEvent, ...args: any[]) => void): void;
|
|
8
|
-
emit(event: string, ...args: any[]): void;
|
|
9
|
-
path(): string;
|
|
10
|
-
get nsp(): {
|
|
11
|
-
readonly name: string;
|
|
12
|
-
};
|
|
13
|
-
in(room: string): {
|
|
14
|
-
emit: (event: string, ...args: any[]) => void;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ioIpcStrategy = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var realtime_strategy_ipc_main_namespace_1 = require("./realtime-strategy-ipc-main-namespace");
|
|
6
|
-
var ioIpcStrategy = /** @class */ (function () {
|
|
7
|
-
function ioIpcStrategy(contextName) {
|
|
8
|
-
this.contextName = contextName;
|
|
9
|
-
this.namespaces = {
|
|
10
|
-
' /': new realtime_strategy_ipc_main_namespace_1.IpcMainNamespace('/'),
|
|
11
|
-
};
|
|
12
|
-
// console.log(`IpcMainWrapper created for context: "${contextName}"`);
|
|
13
|
-
}
|
|
14
|
-
ioIpcStrategy.prototype.of = function (namespace) {
|
|
15
|
-
if (!this.namespaces[namespace]) {
|
|
16
|
-
this.namespaces[namespace] = new realtime_strategy_ipc_main_namespace_1.IpcMainNamespace(namespace);
|
|
17
|
-
}
|
|
18
|
-
return this.namespaces[namespace];
|
|
19
|
-
};
|
|
20
|
-
ioIpcStrategy.prototype.on = function (event, callback) {
|
|
21
|
-
var eventKey = "(".concat(this.contextName, ") \"").concat(event, "\"");
|
|
22
|
-
// console.log(`[BACKEND]][IPC][MAIN] listenToEvent "${eventKey}"`);
|
|
23
|
-
this.namespaces['/'].on(eventKey, callback);
|
|
24
|
-
};
|
|
25
|
-
ioIpcStrategy.prototype.emit = function (event) {
|
|
26
|
-
var _a;
|
|
27
|
-
var args = [];
|
|
28
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
29
|
-
args[_i - 1] = arguments[_i];
|
|
30
|
-
}
|
|
31
|
-
var eventKey = "(".concat(this.contextName, ") \"").concat(event, "\"");
|
|
32
|
-
// console.log(`[BACKEND]][IPC][MAIN] emitEven "${eventKey}"`);
|
|
33
|
-
(_a = this.namespaces['/']).emit.apply(_a, tslib_1.__spreadArray([eventKey], tslib_1.__read(args), false));
|
|
34
|
-
};
|
|
35
|
-
ioIpcStrategy.prototype.path = function () {
|
|
36
|
-
return '/';
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(ioIpcStrategy.prototype, "nsp", {
|
|
39
|
-
get: function () {
|
|
40
|
-
return {
|
|
41
|
-
get name() {
|
|
42
|
-
return '/';
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
},
|
|
46
|
-
enumerable: false,
|
|
47
|
-
configurable: true
|
|
48
|
-
});
|
|
49
|
-
ioIpcStrategy.prototype.in = function (room) {
|
|
50
|
-
var _this = this;
|
|
51
|
-
return {
|
|
52
|
-
emit: function (event) {
|
|
53
|
-
var args = [];
|
|
54
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
55
|
-
args[_i - 1] = arguments[_i];
|
|
56
|
-
}
|
|
57
|
-
// console.log(`[BACKEND]][IPC][MAIN] emit in room "${room}" "${event}"`);
|
|
58
|
-
Object.values(_this.namespaces).forEach(function (namespace) {
|
|
59
|
-
var _a;
|
|
60
|
-
(_a = namespace.to(room)).emit.apply(_a, tslib_1.__spreadArray([event], tslib_1.__read(args), false));
|
|
61
|
-
});
|
|
62
|
-
},
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
return ioIpcStrategy;
|
|
66
|
-
}());
|
|
67
|
-
exports.ioIpcStrategy = ioIpcStrategy;
|
|
68
|
-
//# sourceMappingURL=realtime-strategy-ipc-main-wrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-strategy-ipc-main-wrapper.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.ts"],"names":[],"mappings":";;;;AAAA,+FAA0E;AAG1E;IAKE,uBAAmB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;QAJ9B,eAAU,GAAe;YAC/B,IAAI,EAAE,IAAI,uDAAgB,CAAC,GAAG,CAAC;SAChC,CAAC;QAGA,uEAAuE;IACzE,CAA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;;oBAC9C,CAAA,KAAA,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,CAAA,CAAC,IAAI,kCAAC,KAAK,kBAAK,IAAI,WAAE;gBAC1C,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;IACH,oBAAC;AAAD,CAAC,AArDD,IAqDC;AArDY,sCAAa"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ipcRenderer } from 'electron';
|
|
2
|
-
export declare class IpcRendererNamespace {
|
|
3
|
-
name: string;
|
|
4
|
-
ipcRenderer: typeof ipcRenderer;
|
|
5
|
-
private listeners;
|
|
6
|
-
constructor(name: string);
|
|
7
|
-
on(eventName: string, callback: (event: any, ...args: any[]) => void): void;
|
|
8
|
-
off(event: string, callback?: (event: any, ...args: any[]) => void): void;
|
|
9
|
-
emit(event: string, ...args: any[]): void;
|
|
10
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IpcRendererNamespace = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var IpcRendererNamespace = /** @class */ (function () {
|
|
6
|
-
function IpcRendererNamespace(name) {
|
|
7
|
-
this.name = name;
|
|
8
|
-
this.listeners = {};
|
|
9
|
-
this.ipcRenderer = window.require('electron').ipcRenderer;
|
|
10
|
-
}
|
|
11
|
-
IpcRendererNamespace.prototype.on = function (eventName, callback) {
|
|
12
|
-
if (!this.listeners[eventName]) {
|
|
13
|
-
this.listeners[eventName] = [];
|
|
14
|
-
}
|
|
15
|
-
this.listeners[eventName].push(callback);
|
|
16
|
-
var listenToEvent = "(".concat(this.name, ") \"").concat(eventName, "\"");
|
|
17
|
-
// console.log(`[BROWSSER]][IPC][NAMESPACE] listenToEvent "${listenToEvent}"`);
|
|
18
|
-
this.ipcRenderer.on(listenToEvent, callback);
|
|
19
|
-
if (eventName === 'connect') {
|
|
20
|
-
this.emit('connection');
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
this.emit(eventName);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
IpcRendererNamespace.prototype.off = function (event, callback) {
|
|
27
|
-
if (!this.listeners[event])
|
|
28
|
-
return;
|
|
29
|
-
if (callback) {
|
|
30
|
-
this.listeners[event] = this.listeners[event].filter(function (listener) { return listener !== callback; });
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
delete this.listeners[event];
|
|
34
|
-
}
|
|
35
|
-
var removeListener = "(".concat(this.name, ") \"").concat(event, "\"");
|
|
36
|
-
// console.log({ 'this.contextName': this.contextName });
|
|
37
|
-
// console.log(
|
|
38
|
-
// `[BROWSSER]][IPC][NAMESPACE] removeListener "${removeListener}"`,
|
|
39
|
-
// );
|
|
40
|
-
this.ipcRenderer.removeListener(removeListener, callback);
|
|
41
|
-
};
|
|
42
|
-
IpcRendererNamespace.prototype.emit = function (event) {
|
|
43
|
-
var _a;
|
|
44
|
-
var args = [];
|
|
45
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
46
|
-
args[_i - 1] = arguments[_i];
|
|
47
|
-
}
|
|
48
|
-
var emitEvent = "(".concat(this.name, ") \"").concat(event, "\"");
|
|
49
|
-
// console.log({ 'this.contextName': this.contextName });
|
|
50
|
-
// console.log(`[BROWSSER]][IPC][NAMESPACE] emitEvent: "${emitEvent}"`);
|
|
51
|
-
(_a = this.ipcRenderer).send.apply(_a, tslib_1.__spreadArray([emitEvent], tslib_1.__read(args), false));
|
|
52
|
-
};
|
|
53
|
-
return IpcRendererNamespace;
|
|
54
|
-
}());
|
|
55
|
-
exports.IpcRendererNamespace = IpcRendererNamespace;
|
|
56
|
-
//# sourceMappingURL=realtime-strategy-ipc-renderer-namespace.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-strategy-ipc-renderer-namespace.js","sourceRoot":"","sources":["c:/Users/darek/projects/npm/taon-dev/taon/src/l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AAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;QACD,IAAM,cAAc,GAAG,WAAI,IAAI,CAAC,IAAI,iBAAM,KAAK,OAAG,CAAC;QACnD,yDAAyD;QACzD,eAAe;QACf,sEAAsE;QACtE,KAAK;QACL,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAED,mCAAI,GAAJ,UAAK,KAAa;;QAAE,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,6BAAc;;QAChC,IAAM,SAAS,GAAG,WAAI,IAAI,CAAC,IAAI,iBAAM,KAAK,OAAG,CAAC;QAC9C,yDAAyD;QACzD,wEAAwE;QACxE,CAAA,KAAA,IAAI,CAAC,WAAW,CAAA,CAAC,IAAI,kCAAC,SAAS,kBAAK,IAAI,WAAE;IAC5C,CAAC;IACH,2BAAC;AAAD,CAAC,AA/CD,IA+CC;AA/CY,oDAAoB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IpcRendererNamespace } from './realtime-strategy-ipc-renderer-namespace';
|
|
2
|
-
export declare class IpcRendererWrapper {
|
|
3
|
-
contextName: string;
|
|
4
|
-
private namespaces;
|
|
5
|
-
private connected;
|
|
6
|
-
constructor(contextName: string);
|
|
7
|
-
of(namespace: string): IpcRendererNamespace;
|
|
8
|
-
on(event: string, callback: (event: any, ...args: any[]) => void): void;
|
|
9
|
-
emit(event: string, ...args: any[]): void;
|
|
10
|
-
}
|