taon 21.0.16 → 21.0.18
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-browser.mjs +72 -35
- package/browser/fesm2022/taon-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/taon-browser.d.ts +16 -6
- package/lib/base-classes/base-angular-service.d.ts +9 -0
- package/lib/base-classes/base-angular-service.js +20 -0
- package/lib/base-classes/base-angular-service.js.map +1 -1
- package/lib/base-classes/base-electron-service.d.ts +0 -0
- package/lib/base-classes/base-electron-service.js +50 -0
- package/lib/base-classes/base-electron-service.js.map +1 -0
- package/lib/base-classes/base-repository.d.ts +1 -0
- package/lib/base-classes/base-repository.js +27 -8
- package/lib/base-classes/base-repository.js.map +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/endpoint-context.d.ts +0 -4
- package/lib/endpoint-context.js +8 -18
- package/lib/endpoint-context.js.map +1 -1
- package/lib/env/env.angular-node-app.d.ts +2 -3
- package/lib/env/env.angular-node-app.js +4 -5
- package/lib/env/env.angular-node-app.js.map +1 -1
- package/lib/env/env.docs-webapp.d.ts +2 -3
- package/lib/env/env.docs-webapp.js +4 -5
- package/lib/env/env.docs-webapp.js.map +1 -1
- package/lib/env/env.electron-app.d.ts +2 -3
- package/lib/env/env.electron-app.js +4 -5
- package/lib/env/env.electron-app.js.map +1 -1
- package/lib/env/env.mobile-app.d.ts +2 -3
- package/lib/env/env.mobile-app.js +4 -5
- package/lib/env/env.mobile-app.js.map +1 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +2 -3
- package/lib/env/env.npm-lib-and-cli-tool.js +4 -5
- package/lib/env/env.npm-lib-and-cli-tool.js.map +1 -1
- package/lib/env/env.vscode-plugin.d.ts +2 -3
- package/lib/env/env.vscode-plugin.js +4 -5
- package/lib/env/env.vscode-plugin.js.map +1 -1
- package/lib/index._auto-generated_.js +1 -1
- package/lib/index._auto-generated_.js.map +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.js +18 -5
- package/lib/index.js.map +1 -1
- package/lib/realtime/realtime-subs-manager.js +1 -10
- package/lib/realtime/realtime-subs-manager.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-websql.mjs +78 -43
- package/websql/fesm2022/taon-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/taon-websql.d.ts +16 -6
package/websql/package.json
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
import * as taon_websql from 'taon/websql';
|
|
3
3
|
import * as express from 'express';
|
|
4
4
|
import express__default, { Request, Response, RequestHandler, Application } from 'express';
|
|
5
|
-
import * as i0 from '@angular/core';
|
|
6
|
-
import { NgZone, InjectionToken, ViewContainerRef } from '@angular/core';
|
|
7
5
|
import { Models as Models$1, RestResponseWrapper, TaonServerMiddlewareInterceptOptions, TaonClientMiddlewareInterceptOptions, HttpResponseError, RestErrorResponseWrapper, Mapping } from 'ng2-rest/websql';
|
|
8
6
|
export { TaonClientMiddlewareInterceptOptions, TaonServerMiddlewareInterceptOptions } from 'ng2-rest/websql';
|
|
9
7
|
import { Server } from 'http';
|
|
@@ -11,6 +9,8 @@ import { DataSource, Repository, SaveOptions, DeepPartial, QueryDeepPartialEntit
|
|
|
11
9
|
export { AfterInsert, AfterLoad, AfterRecover, AfterRemove, AfterSoftRemove, AfterUpdate, BeforeInsert, BeforeRecover, BeforeRemove, BeforeSoftRemove, BeforeUpdate, Column, Connection, CreateDateColumn, Column as CustomColumn, DeleteDateColumn, Generated, Generated as GeneratedColumn, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, OneToMany, OneToOne, PrimaryColumn, PrimaryGeneratedColumn, Repository, TreeChildren, TreeParent, UpdateDateColumn, VersionColumn, VirtualColumn } from 'taon-typeorm/websql';
|
|
12
10
|
import { MySqlQuerySource } from 'taon-type-sql/websql';
|
|
13
11
|
import { CoreModels } from 'tnp-core/websql';
|
|
12
|
+
import * as i0 from '@angular/core';
|
|
13
|
+
import { InjectionToken, ViewContainerRef } from '@angular/core';
|
|
14
14
|
import { AxiosResponse } from 'axios';
|
|
15
15
|
import * as rxjs from 'rxjs';
|
|
16
16
|
import { Observable, Subscriber } from 'rxjs';
|
|
@@ -28,6 +28,7 @@ declare abstract class TaonBaseCustomRepository extends TaonBaseInjector {
|
|
|
28
28
|
declare abstract class TaonBaseRepository<Entity extends {
|
|
29
29
|
id?: any;
|
|
30
30
|
}> extends TaonBaseCustomRepository {
|
|
31
|
+
private REPOS_CACHE_KEY;
|
|
31
32
|
abstract entityClassResolveFn: () => any;
|
|
32
33
|
constructor(__entityClassResolveFn: () => any);
|
|
33
34
|
private __dbQuery;
|
|
@@ -649,8 +650,6 @@ declare class EndpointContext {
|
|
|
649
650
|
* -> ONLY remote access from backend or frontend to specific backend
|
|
650
651
|
*/
|
|
651
652
|
private readonly cloneOptions;
|
|
652
|
-
private static ngZone;
|
|
653
|
-
static initNgZone(ngZone: NgZone): void;
|
|
654
653
|
/**
|
|
655
654
|
* JUST FOR TESTING PURPOSES
|
|
656
655
|
*/
|
|
@@ -720,7 +719,6 @@ declare class EndpointContext {
|
|
|
720
719
|
onlyMigrationRevertToTimestamp?: number;
|
|
721
720
|
}): Promise<void>;
|
|
722
721
|
private getAutoGeneratedConfig;
|
|
723
|
-
get ngZone(): any;
|
|
724
722
|
startServer(): Promise<void>;
|
|
725
723
|
displayRoutes(app: any): void;
|
|
726
724
|
get modeAllowsDatabaseCreation(): boolean;
|
|
@@ -1221,6 +1219,7 @@ type AbstractEntityOmitKeys<ENTITY> = Omit<ENTITY, 'id' | 'version' | '_' | 'clo
|
|
|
1221
1219
|
* with init(ctx)
|
|
1222
1220
|
*/
|
|
1223
1221
|
declare abstract class TaonBaseAngularService {
|
|
1222
|
+
protected readonly platformId: Object;
|
|
1224
1223
|
protected readonly currentContext: TaonContext;
|
|
1225
1224
|
/**
|
|
1226
1225
|
* @deprecated
|
|
@@ -1233,6 +1232,14 @@ declare abstract class TaonBaseAngularService {
|
|
|
1233
1232
|
*/
|
|
1234
1233
|
protected readonly CURRENT_HOST_URL: string | undefined;
|
|
1235
1234
|
constructor();
|
|
1235
|
+
/**
|
|
1236
|
+
* Returns true if the application is running in SSR (server-side rendering) mode only.
|
|
1237
|
+
*/
|
|
1238
|
+
get isSsrPlatform(): boolean;
|
|
1239
|
+
/**
|
|
1240
|
+
* Returns true if the application is running in browser-only mode.
|
|
1241
|
+
*/
|
|
1242
|
+
get isBrowserPlatform(): boolean;
|
|
1236
1243
|
/**
|
|
1237
1244
|
* @deprecated
|
|
1238
1245
|
* Returns the host URL for the backend service
|
|
@@ -1998,6 +2005,10 @@ declare class TaonAdminService {
|
|
|
1998
2005
|
}
|
|
1999
2006
|
|
|
2000
2007
|
declare namespace Taon {
|
|
2008
|
+
/**
|
|
2009
|
+
* Remove global taon loader from env.ts [loading.preAngularBootstrap]
|
|
2010
|
+
*/
|
|
2011
|
+
const removeLoader: (afterMS?: number) => Promise<void>;
|
|
2001
2012
|
const error: (opt: Pick<RestErrorResponseWrapper, "message" | "status" | "details" | "code"> | string) => void;
|
|
2002
2013
|
type ResponseHtml = Models.Http.Response<string>;
|
|
2003
2014
|
export import Response = Models.Http.Response;
|
|
@@ -2049,7 +2060,6 @@ declare namespace Taon {
|
|
|
2049
2060
|
};
|
|
2050
2061
|
};
|
|
2051
2062
|
const inject: <T>(entity: () => new (...args: any[]) => T) => T;
|
|
2052
|
-
const initNgZone: (ngZone: NgZone) => void;
|
|
2053
2063
|
const symbols: typeof Symbols;
|
|
2054
2064
|
/**
|
|
2055
2065
|
* @deprecated
|