taon 19.0.62 → 19.0.64
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 +181 -78
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/base-classes/base-context.d.ts +6 -0
- package/browser/lib/base-classes/base-controller.d.ts +3 -3
- package/browser/lib/base-classes/base.d.ts +6 -0
- package/browser/lib/create-context.d.ts +12 -4
- package/browser/lib/endpoint-context-storage.d.ts +12 -0
- package/browser/lib/endpoint-context.d.ts +28 -8
- package/browser/lib/index.d.ts +19 -0
- package/browser/lib/models.d.ts +7 -8
- package/browser/package.json +1 -1
- package/lib/base-classes/base-context.d.ts +6 -0
- package/lib/base-classes/base-controller.d.ts +3 -3
- package/lib/base-classes/base-controller.js +2 -2
- package/lib/base-classes/base-controller.js.map +1 -1
- package/lib/base-classes/base.d.ts +6 -0
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/context-db-migrations.js +5 -5
- package/lib/context-db-migrations.js.map +1 -1
- package/lib/create-context.d.ts +12 -4
- package/lib/create-context.js +35 -5
- package/lib/create-context.js.map +1 -1
- package/lib/decorators/classes/controller-config.d.ts +11 -0
- package/lib/decorators/classes/controller-config.js +10 -0
- package/lib/decorators/classes/controller-config.js.map +1 -1
- package/lib/decorators/classes/controller-options.d.ts +5 -0
- package/lib/decorators/classes/controller-options.js +4 -0
- package/lib/decorators/classes/controller-options.js.map +1 -1
- package/lib/endpoint-context-storage.d.ts +11 -0
- package/lib/endpoint-context-storage.js +38 -0
- package/lib/endpoint-context-storage.js.map +1 -0
- package/lib/endpoint-context.d.ts +28 -8
- package/lib/endpoint-context.js +96 -55
- package/lib/endpoint-context.js.map +1 -1
- package/lib/index.d.ts +19 -0
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/models.d.ts +7 -8
- package/lib/models.js.map +1 -1
- package/lib/realtime/realtime-client.js +12 -11
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/realtime/realtime-core.js +6 -3
- package/lib/realtime/realtime-core.js.map +1 -1
- package/lib/realtime/realtime-server.js +6 -5
- package/lib/realtime/realtime-server.js.map +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/package.json +1 -1
- package/websql/fesm2022/taon.mjs +188 -85
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/base-classes/base-context.d.ts +6 -0
- package/websql/lib/base-classes/base-controller.d.ts +3 -3
- package/websql/lib/base-classes/base.d.ts +6 -0
- package/websql/lib/create-context.d.ts +12 -4
- package/websql/lib/endpoint-context-storage.d.ts +12 -0
- package/websql/lib/endpoint-context.d.ts +28 -8
- package/websql/lib/index.d.ts +19 -0
- package/websql/lib/models.d.ts +7 -8
- package/websql/package.json +1 -1
- package/lib/env.d.ts +0 -2
- package/lib/env.js +0 -7
- package/lib/env.js.map +0 -1
- package/lib/storage.d.ts +0 -1
- package/lib/storage.js +0 -6
- package/lib/storage.js.map +0 -1
- package/lib/ui/directives/index.d.ts +0 -3
- package/lib/ui/directives/index.js +0 -5
- package/lib/ui/directives/index.js.map +0 -1
- package/lib/ui/directives/safe.pipe.d.ts +0 -7
- package/lib/ui/directives/taon-inject-html.directive.d.ts +0 -6
- package/lib/ui/directives/taon-long-press.directive.d.ts +0 -22
- package/lib/ui/directives/view-mode.d.ts +0 -5
- package/lib/ui/directives/view-mode.js +0 -10
- package/lib/ui/directives/view-mode.js.map +0 -1
- package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +0 -43
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.d.ts +0 -5
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js +0 -3
- package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +0 -1
- package/lib/ui/taon-full-material.module.d.ts +0 -5
- package/lib/ui/taon-github-fork-me-corner/index.d.ts +0 -2
- package/lib/ui/taon-github-fork-me-corner/index.js +0 -5
- package/lib/ui/taon-github-fork-me-corner/index.js.map +0 -1
- package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +0 -3
- package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +0 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.d.ts +0 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.js +0 -5
- package/lib/ui/taon-github-fork-me-ribbon/index.js.map +0 -1
- package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.component.d.ts +0 -3
- package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.module.d.ts +0 -2
- package/lib/ui/taon-notifications/index.d.ts +0 -4
- package/lib/ui/taon-notifications/index.js +0 -24
- package/lib/ui/taon-notifications/index.js.map +0 -1
- package/lib/ui/taon-notifications/taon-notifications.component.d.ts +0 -9
- package/lib/ui/taon-notifications/taon-notifications.models.d.ts +0 -6
- package/lib/ui/taon-notifications/taon-notifications.models.js +0 -5
- package/lib/ui/taon-notifications/taon-notifications.models.js.map +0 -1
- package/lib/ui/taon-notifications/taon-notifications.module.d.ts +0 -2
- package/lib/ui/taon-notifications/taon-notifications.service.d.ts +0 -11
- package/lib/ui/taon-progress-bar/index.d.ts +0 -2
- package/lib/ui/taon-progress-bar/index.js +0 -5
- package/lib/ui/taon-progress-bar/index.js.map +0 -1
- package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +0 -13
- package/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +0 -2
- package/lib/ui/taon-session-passcode/index.d.ts +0 -1
- package/lib/ui/taon-session-passcode/index.js +0 -5
- package/lib/ui/taon-session-passcode/index.js.map +0 -1
- package/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +0 -35
- package/lib/ui/taon-table/index.d.ts +0 -2
- package/lib/ui/taon-table/index.js +0 -5
- package/lib/ui/taon-table/index.js.map +0 -1
- package/lib/ui/taon-table/taon-table.component.d.ts +0 -34
- package/lib/ui/taon-table/taon-table.module.d.ts +0 -2
- package/lib/ui/taon.models.d.ts +0 -11
- package/lib/ui/taon.models.js +0 -3
- package/lib/ui/taon.models.js.map +0 -1
- package/tmp-environment.json +0 -39
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
declare const BaseContext: {
|
|
3
3
|
readonly contextName: string;
|
|
4
4
|
readonly appId: string;
|
|
5
|
+
cloneAsRemote: (cloneOpt?: {
|
|
6
|
+
overrideRemoteHost?: string;
|
|
7
|
+
}) => /*elided*/ any;
|
|
8
|
+
cloneAsNormal: (cloneOpt?: {
|
|
9
|
+
overrideHost?: string;
|
|
10
|
+
}) => /*elided*/ any;
|
|
5
11
|
__ref(): Promise<import("taon/websql").EndpointContext>;
|
|
6
12
|
readonly __refSync: import("taon/websql").EndpointContext;
|
|
7
13
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import type {
|
|
2
|
+
import type { ContextsEndpointStorage } from '../endpoint-context-storage';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
4
|
import { BaseInjector } from './base-injector';
|
|
5
5
|
export interface MulterFileUploadResponse {
|
|
@@ -18,8 +18,8 @@ export declare class BaseController<T = any> extends BaseInjector {
|
|
|
18
18
|
* Hook that is called when taon app is inited
|
|
19
19
|
* (all contexts are created and inited)
|
|
20
20
|
*/
|
|
21
|
-
afterAllCtxInited(
|
|
22
|
-
|
|
21
|
+
afterAllCtxInited(options: {
|
|
22
|
+
ctxStorage: ContextsEndpointStorage;
|
|
23
23
|
}): Promise<void>;
|
|
24
24
|
uploadFormDataToServer(formData: FormData): Models.Http.Response<MulterFileUploadResponse[]>;
|
|
25
25
|
/**
|
|
@@ -28,6 +28,12 @@ export declare namespace Base {
|
|
|
28
28
|
const Context: {
|
|
29
29
|
readonly contextName: string;
|
|
30
30
|
readonly appId: string;
|
|
31
|
+
cloneAsRemote: (cloneOpt?: {
|
|
32
|
+
overrideRemoteHost?: string;
|
|
33
|
+
}) => /*elided*/ any;
|
|
34
|
+
cloneAsNormal: (cloneOpt?: {
|
|
35
|
+
overrideHost?: string;
|
|
36
|
+
}) => /*elided*/ any;
|
|
31
37
|
__ref(): Promise<import("taon/websql").EndpointContext>;
|
|
32
38
|
readonly __refSync: import("taon/websql").EndpointContext;
|
|
33
39
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
@@ -9,6 +9,12 @@ import { Models } from './models';
|
|
|
9
9
|
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>, MIDDLEWARE extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARE>) => () => {
|
|
10
10
|
readonly contextName: string;
|
|
11
11
|
readonly appId: string;
|
|
12
|
+
cloneAsRemote: (cloneOpt?: {
|
|
13
|
+
overrideRemoteHost?: string;
|
|
14
|
+
}) => /*elided*/ any;
|
|
15
|
+
cloneAsNormal: (cloneOpt?: {
|
|
16
|
+
overrideHost?: string;
|
|
17
|
+
}) => /*elided*/ any;
|
|
12
18
|
/**
|
|
13
19
|
* @deprecated
|
|
14
20
|
* - get reference to internal context
|
|
@@ -35,13 +41,15 @@ export declare const createContextTemplate: <CTX extends Record<string, object>,
|
|
|
35
41
|
readonly server: import("./realtime/realtime-server").RealtimeServer;
|
|
36
42
|
};
|
|
37
43
|
};
|
|
38
|
-
/**
|
|
39
|
-
* REQURIED PROPERTY:
|
|
40
|
-
* - contextName
|
|
41
|
-
*/
|
|
42
44
|
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>, MIDDLEWARES extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARES>) => {
|
|
43
45
|
readonly contextName: string;
|
|
44
46
|
readonly appId: string;
|
|
47
|
+
cloneAsRemote: (cloneOpt?: {
|
|
48
|
+
overrideRemoteHost?: string;
|
|
49
|
+
}) => /*elided*/ any;
|
|
50
|
+
cloneAsNormal: (cloneOpt?: {
|
|
51
|
+
overrideHost?: string;
|
|
52
|
+
}) => /*elided*/ any;
|
|
45
53
|
/**
|
|
46
54
|
* @deprecated
|
|
47
55
|
* - get reference to internal context
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import type { EndpointContext } from './endpoint-context';
|
|
3
|
+
export declare class ContextsEndpointStorage {
|
|
4
|
+
SPECIAL_APP_READY_MESSAGE: string;
|
|
5
|
+
private taonEndpointContexts;
|
|
6
|
+
private static instance;
|
|
7
|
+
private constructor();
|
|
8
|
+
static get Instance(): ContextsEndpointStorage;
|
|
9
|
+
set(context: EndpointContext): void;
|
|
10
|
+
get arr(): EndpointContext[];
|
|
11
|
+
getBy(context: Partial<EndpointContext> | string): EndpointContext | undefined;
|
|
12
|
+
}
|
|
@@ -6,10 +6,18 @@ import type { Repository } from 'taon-typeorm/websql';
|
|
|
6
6
|
import { DataSource } from 'taon-typeorm/websql';
|
|
7
7
|
import type { BaseInjector } from './base-classes/base-injector';
|
|
8
8
|
import { ContextDbMigrations } from './context-db-migrations';
|
|
9
|
+
import type { ContextsEndpointStorage } from './endpoint-context-storage';
|
|
9
10
|
import { Models } from './models';
|
|
10
11
|
export declare class EndpointContext {
|
|
11
12
|
private originalConfig;
|
|
12
13
|
private configFn;
|
|
14
|
+
/**
|
|
15
|
+
* (@default: false)
|
|
16
|
+
* If TRUE context is NOT going to create db/express server/http endpoints
|
|
17
|
+
* PURPOSE OF THIS PROPERTY
|
|
18
|
+
* -> ONLY remote access from backend or frontend to specific backend
|
|
19
|
+
*/
|
|
20
|
+
private readonly cloneOptions;
|
|
13
21
|
/**
|
|
14
22
|
* JUST FOR TESTING PURPOSES
|
|
15
23
|
*/
|
|
@@ -36,6 +44,7 @@ export declare class EndpointContext {
|
|
|
36
44
|
method: Models.Http.Rest.HttpMethod;
|
|
37
45
|
}[];
|
|
38
46
|
repos: Map<string, Repository<any>>;
|
|
47
|
+
get sourceContext(): EndpointContext | undefined;
|
|
39
48
|
readonly skipWritingServerRoutes: boolean;
|
|
40
49
|
private injectableTypesfromContexts;
|
|
41
50
|
private allTypesfromContexts;
|
|
@@ -65,11 +74,16 @@ export declare class EndpointContext {
|
|
|
65
74
|
* Inside docker there is not need for https secure server
|
|
66
75
|
*/
|
|
67
76
|
readonly isRunningInsideDocker: boolean;
|
|
68
|
-
constructor(originalConfig: Models.ContextOptions<any, any, any, any, any, any, any, any>, configFn: (env: any) => Models.ContextOptions<any, any, any, any, any, any, any, any
|
|
77
|
+
constructor(originalConfig: Models.ContextOptions<any, any, any, any, any, any, any, any>, configFn: (env: any) => Models.ContextOptions<any, any, any, any, any, any, any, any>,
|
|
78
|
+
/**
|
|
79
|
+
* (@default: false)
|
|
80
|
+
* If TRUE context is NOT going to create db/express server/http endpoints
|
|
81
|
+
* PURPOSE OF THIS PROPERTY
|
|
82
|
+
* -> ONLY remote access from backend or frontend to specific backend
|
|
83
|
+
*/
|
|
84
|
+
cloneOptions: Models.TaonCtxCloneParams);
|
|
69
85
|
init(options?: {
|
|
70
86
|
initFromRecrusiveContextResovle?: boolean;
|
|
71
|
-
overrideHost?: string | null;
|
|
72
|
-
overrideRemoteHost?: string | null;
|
|
73
87
|
onlyMigrationRun?: boolean;
|
|
74
88
|
onlyMigrationRevertToTimestamp?: number;
|
|
75
89
|
}): Promise<void>;
|
|
@@ -108,7 +122,7 @@ export declare class EndpointContext {
|
|
|
108
122
|
initClasses(): Promise<void>;
|
|
109
123
|
isActiveOn(classInstance: object): boolean;
|
|
110
124
|
get frontendHostUri(): URL;
|
|
111
|
-
get uri(): URL;
|
|
125
|
+
get uri(): URL | undefined;
|
|
112
126
|
get uriProtocol(): string | undefined;
|
|
113
127
|
/**
|
|
114
128
|
* Examples
|
|
@@ -136,10 +150,19 @@ export declare class EndpointContext {
|
|
|
136
150
|
*/
|
|
137
151
|
get port(): Number | undefined;
|
|
138
152
|
get isHttpServer(): boolean;
|
|
153
|
+
get isRemoteHost(): boolean;
|
|
139
154
|
/**
|
|
140
155
|
* ipc/udp needs this
|
|
141
156
|
*/
|
|
142
157
|
get contextName(): string;
|
|
158
|
+
/**
|
|
159
|
+
* ipc/udp needs this
|
|
160
|
+
*/
|
|
161
|
+
get contextNameForCommunication(): string;
|
|
162
|
+
/**
|
|
163
|
+
* Check context type
|
|
164
|
+
*/
|
|
165
|
+
get contextType(): 'normal' | 'remote' | 'abstract' | 'invalid';
|
|
143
166
|
get cwd(): string;
|
|
144
167
|
get activeContext(): string | null;
|
|
145
168
|
get appId(): string;
|
|
@@ -148,7 +171,6 @@ export declare class EndpointContext {
|
|
|
148
171
|
locationOnDisk: string;
|
|
149
172
|
}[];
|
|
150
173
|
get isProductionMode(): boolean;
|
|
151
|
-
get remoteHost(): string;
|
|
152
174
|
get host(): string;
|
|
153
175
|
get orgin(): string;
|
|
154
176
|
initSubscribers(): Promise<void>;
|
|
@@ -157,9 +179,7 @@ export declare class EndpointContext {
|
|
|
157
179
|
initDatabaseConnection(): Promise<void>;
|
|
158
180
|
private updateCalculatedPathsForControllers;
|
|
159
181
|
private mergeControllerMethodsConfigs;
|
|
160
|
-
initControllersHook(
|
|
161
|
-
[contextName: string]: EndpointContext;
|
|
162
|
-
}): Promise<void>;
|
|
182
|
+
initControllersHook(ctxStorage: ContextsEndpointStorage): Promise<void>;
|
|
163
183
|
initControllers(): Promise<void>;
|
|
164
184
|
writeActiveRoutes(): void;
|
|
165
185
|
get middlewares(): Models.MiddlewareType[];
|
package/websql/lib/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export { Models } from './models';
|
|
|
30
30
|
export { BaseFileUploadMiddleware } from './base-classes/base-file-upload.middleware';
|
|
31
31
|
export * from './constants';
|
|
32
32
|
export { MulterFileUploadResponse } from './base-classes/base-controller';
|
|
33
|
+
export { ContextsEndpointStorage } from './endpoint-context-storage';
|
|
33
34
|
export { ClassHelpers } from './helpers/class-helpers';
|
|
34
35
|
export type { TaonClientMiddlewareInterceptOptions, TaonServerMiddlewareInterceptOptions, } from 'ng2-rest/websql';
|
|
35
36
|
export declare namespace Taon {
|
|
@@ -56,6 +57,12 @@ export declare namespace Taon {
|
|
|
56
57
|
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>, MIDDLEWARES extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARES>) => {
|
|
57
58
|
readonly contextName: string;
|
|
58
59
|
readonly appId: string;
|
|
60
|
+
cloneAsRemote: (cloneOpt?: {
|
|
61
|
+
overrideRemoteHost?: string;
|
|
62
|
+
}) => /*elided*/ any;
|
|
63
|
+
cloneAsNormal: (cloneOpt?: {
|
|
64
|
+
overrideHost?: string;
|
|
65
|
+
}) => /*elided*/ any;
|
|
59
66
|
__ref(): Promise<endpointContext.EndpointContext>;
|
|
60
67
|
readonly __refSync: endpointContext.EndpointContext;
|
|
61
68
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
@@ -69,6 +76,12 @@ export declare namespace Taon {
|
|
|
69
76
|
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>, MIDDLEWARE extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER, MIGRATION, MIDDLEWARE>) => () => {
|
|
70
77
|
readonly contextName: string;
|
|
71
78
|
readonly appId: string;
|
|
79
|
+
cloneAsRemote: (cloneOpt?: {
|
|
80
|
+
overrideRemoteHost?: string;
|
|
81
|
+
}) => /*elided*/ any;
|
|
82
|
+
cloneAsNormal: (cloneOpt?: {
|
|
83
|
+
overrideHost?: string;
|
|
84
|
+
}) => /*elided*/ any;
|
|
72
85
|
__ref(): Promise<endpointContext.EndpointContext>;
|
|
73
86
|
readonly __refSync: endpointContext.EndpointContext;
|
|
74
87
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
@@ -93,6 +106,12 @@ export declare namespace Taon {
|
|
|
93
106
|
}) => Promise<{
|
|
94
107
|
readonly contextName: string;
|
|
95
108
|
readonly appId: string;
|
|
109
|
+
cloneAsRemote: (cloneOpt?: {
|
|
110
|
+
overrideRemoteHost?: string;
|
|
111
|
+
}) => /*elided*/ any;
|
|
112
|
+
cloneAsNormal: (cloneOpt?: {
|
|
113
|
+
overrideHost?: string;
|
|
114
|
+
}) => /*elided*/ any;
|
|
96
115
|
__ref(): Promise<endpointContext.EndpointContext>;
|
|
97
116
|
readonly __refSync: endpointContext.EndpointContext;
|
|
98
117
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
package/websql/lib/models.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { RequestHandler } from 'express';
|
|
|
3
3
|
import { Response as ExpressResponse, Request as ExpressRequest } from 'express';
|
|
4
4
|
import { Models as ModelsNg2Rest } from 'ng2-rest/websql';
|
|
5
5
|
import { CoreModels } from 'tnp-core/websql';
|
|
6
|
+
import type { EndpointContext } from './endpoint-context';
|
|
6
7
|
export declare namespace Models {
|
|
7
8
|
type FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql-electron)' | 'backend-frontend(websql)';
|
|
8
9
|
enum ClassType {
|
|
@@ -112,12 +113,6 @@ export declare namespace Models {
|
|
|
112
113
|
* Needs to be specified in docker environment only
|
|
113
114
|
*/
|
|
114
115
|
frontendHostPortNumber?: number;
|
|
115
|
-
/**
|
|
116
|
-
* IMPORTANT! provide full url that starts with http:// or https://
|
|
117
|
-
* backend way of communication
|
|
118
|
-
* between taon backends/processes
|
|
119
|
-
*/
|
|
120
|
-
remoteHost?: string;
|
|
121
116
|
/**
|
|
122
117
|
* User ipc for communication between BE/FE
|
|
123
118
|
* when electron is used as a platform
|
|
@@ -256,9 +251,13 @@ export declare namespace Models {
|
|
|
256
251
|
onlyMigrationRevertToTimestamp?: number;
|
|
257
252
|
}
|
|
258
253
|
interface TaonInitializeParams {
|
|
259
|
-
overrideHost?: string;
|
|
260
|
-
overrideRemoteHost?: string;
|
|
261
254
|
onlyMigrationRun?: boolean;
|
|
262
255
|
onlyMigrationRevertToTimestamp?: number;
|
|
263
256
|
}
|
|
257
|
+
interface TaonCtxCloneParams {
|
|
258
|
+
useAsRemoteContext?: boolean;
|
|
259
|
+
overrideRemoteHost?: string;
|
|
260
|
+
overrideHost?: string;
|
|
261
|
+
sourceContext?: EndpointContext;
|
|
262
|
+
}
|
|
264
263
|
}
|
package/websql/package.json
CHANGED
package/lib/env.d.ts
DELETED
package/lib/env.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ENV = void 0;
|
|
4
|
-
const lib_1 = require("tnp-core/lib");
|
|
5
|
-
const ENV = lib_1.Helpers.isBrowser ? window['ENV'] : global['ENV'];
|
|
6
|
-
exports.ENV = ENV;
|
|
7
|
-
//# sourceMappingURL=env.js.map
|
package/lib/env.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,sCAAuC;AAEvC,MAAM,GAAG,GAAG,aAAO,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAErD,kBAAG"}
|
package/lib/storage.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const globalPublicStorage: typeof globalThis;
|
package/lib/storage.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.globalPublicStorage = void 0;
|
|
4
|
-
const lib_1 = require("tnp-core/lib");
|
|
5
|
-
exports.globalPublicStorage = lib_1.Helpers.isBrowser ? window : global;
|
|
6
|
-
//# sourceMappingURL=storage.js.map
|
package/lib/storage.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,sCAAuC;AAE1B,QAAA,mBAAmB,GAAG,aAAO,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { CdkDragEnd, Point } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { ChangeDetectorRef, EventEmitter, OnInit, AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { BreakpointsService } from 'static-columns';
|
|
5
|
-
import { TaonAdminService } from './taon-admin.service';
|
|
6
|
-
export declare class TaonAdminModeConfigurationComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
7
|
-
private breakpointsService;
|
|
8
|
-
$destroy: Subject<unknown>;
|
|
9
|
-
readonly cdr: ChangeDetectorRef;
|
|
10
|
-
readonly taonAdminService: TaonAdminService;
|
|
11
|
-
readonly isDesktop: boolean;
|
|
12
|
-
isWebSQLMode: boolean;
|
|
13
|
-
hideTaonToolsInProduction: boolean;
|
|
14
|
-
isIframe: boolean;
|
|
15
|
-
height: number;
|
|
16
|
-
openedOnce: boolean;
|
|
17
|
-
reloading: boolean;
|
|
18
|
-
showPasscode: boolean;
|
|
19
|
-
passcode: string;
|
|
20
|
-
message: string;
|
|
21
|
-
dragPositionX: number;
|
|
22
|
-
dragPositionY: number;
|
|
23
|
-
dragPositionZero: Point;
|
|
24
|
-
dragPosition: Point;
|
|
25
|
-
selectedIndex: number;
|
|
26
|
-
tabGroup: any;
|
|
27
|
-
wasOpenDraggablePopup: boolean;
|
|
28
|
-
taonAdminModeConfigurationDataChanged: EventEmitter<any>;
|
|
29
|
-
taonAdminModeConfigurationData: any;
|
|
30
|
-
get opened(): boolean;
|
|
31
|
-
set opened(v: boolean);
|
|
32
|
-
constructor(breakpointsService: BreakpointsService);
|
|
33
|
-
ngOnInit(): Promise<void>;
|
|
34
|
-
ngAfterViewInit(): void;
|
|
35
|
-
ngOnDestroy(): void;
|
|
36
|
-
onResize(event: Event): void;
|
|
37
|
-
reloadTabs(): Promise<void>;
|
|
38
|
-
toogle(): Promise<void>;
|
|
39
|
-
toogleFullScreen(): Promise<void>;
|
|
40
|
-
resetDrag(): void;
|
|
41
|
-
moved(c: CdkDragEnd): void;
|
|
42
|
-
scrollTabs(event: any): void;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taon-admin.models.js","sourceRoot":"","sources":[""],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* */
|
|
3
|
-
/* */
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
-
}
|
|
10
|
-
Object.defineProperty(o, k2, desc);
|
|
11
|
-
}) : (function(o, m, k, k2) {
|
|
12
|
-
if (k2 === undefined) k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
__exportStar(require("./taon-notifications.models"), exports);
|
|
20
|
-
/* */
|
|
21
|
-
/* */
|
|
22
|
-
/* */
|
|
23
|
-
/* */
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";AAAA,KAAK;AACL,KAAK;;;;;;;;;;;;;;;;AAEL,8DAA4C;AAC5C,KAAK;AACL,KAAK;AAEL,KAAK;AACL,KAAK"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Subscription } from 'rxjs';
|
|
3
|
-
import { TaonNotificationsService } from './taon-notifications.service';
|
|
4
|
-
export declare class TaonNotificationsComponent implements OnInit {
|
|
5
|
-
private notification;
|
|
6
|
-
constructor(notification: TaonNotificationsService);
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
init(subscribtionsArray: Subscription[], template: TemplateRef<any>, callback: (dataToTempalte: any) => any): void;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taon-notifications.models.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HotToastService } from '@ngneat/hot-toast';
|
|
2
|
-
import { TaonNotificationOptions } from './taon-notifications.models';
|
|
3
|
-
export declare class TaonNotificationsService {
|
|
4
|
-
private toast;
|
|
5
|
-
constructor(toast: HotToastService);
|
|
6
|
-
private options;
|
|
7
|
-
success(options: TaonNotificationOptions | string): import("@ngneat/hot-toast").CreateHotToastRef<unknown>;
|
|
8
|
-
error(options: TaonNotificationOptions | string): import("@ngneat/hot-toast").CreateHotToastRef<unknown>;
|
|
9
|
-
warn(options: TaonNotificationOptions | string): import("@ngneat/hot-toast").CreateHotToastRef<unknown>;
|
|
10
|
-
info(options: TaonNotificationOptions | string): import("@ngneat/hot-toast").CreateHotToastRef<unknown>;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAAA,gDAAwC;AAAxC,SAAgB,kBAAkB,KAAK,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Subscription } from 'rxjs';
|
|
3
|
-
export declare class TaonProgressBarComponent implements OnInit {
|
|
4
|
-
labProgress: any;
|
|
5
|
-
isDesktop: boolean;
|
|
6
|
-
admin: any;
|
|
7
|
-
handlers: Subscription[];
|
|
8
|
-
constructor();
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
ngOnDestroy(): void;
|
|
11
|
-
ngAfterViewInit(): void;
|
|
12
|
-
loadProgressBar(config: any, instance?: import("axios").AxiosStatic): void;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './taon-session-passcode.component';
|