taon 21.0.3 → 21.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.
Files changed (200) hide show
  1. package/browser/fesm2022/taon.mjs +1953 -1238
  2. package/browser/fesm2022/taon.mjs.map +1 -1
  3. package/browser/package.json +1 -1
  4. package/browser/types/taon.d.ts +2152 -0
  5. package/lib/base-classes/base-abstract-entity.d.ts +1 -1
  6. package/lib/base-classes/base-abstract-entity.js +12 -12
  7. package/lib/base-classes/base-abstract-entity.js.map +1 -1
  8. package/lib/base-classes/base-angular-service.d.ts +1 -1
  9. package/lib/base-classes/base-angular-service.js +6 -3
  10. package/lib/base-classes/base-angular-service.js.map +1 -1
  11. package/lib/base-classes/base-context.d.ts +2 -2
  12. package/lib/base-classes/base-controller.js +7 -1
  13. package/lib/base-classes/base-controller.js.map +1 -1
  14. package/lib/base-classes/base-crud-controller.js +52 -12
  15. package/lib/base-classes/base-crud-controller.js.map +1 -1
  16. package/lib/base-classes/base-entity.js +2 -6
  17. package/lib/base-classes/base-entity.js.map +1 -1
  18. package/lib/base-classes/base-repository.d.ts +3 -3
  19. package/lib/base-classes/base-repository.js +15 -10
  20. package/lib/base-classes/base-repository.js.map +1 -1
  21. package/lib/base-classes/base.d.ts +1 -46
  22. package/lib/base-classes/base.js +17 -30
  23. package/lib/base-classes/base.js.map +1 -1
  24. package/lib/build-info._auto-generated_.d.ts +1 -1
  25. package/lib/build-info._auto-generated_.js +1 -1
  26. package/lib/context-db-migrations.d.ts +2 -1
  27. package/lib/create-context.d.ts +4 -4
  28. package/lib/decorators/classes/entity-decorator.js +1 -1
  29. package/lib/decorators/classes/entity-decorator.js.map +1 -1
  30. package/lib/decorators/http/http-decorators.d.ts +1 -19
  31. package/lib/decorators/http/http-decorators.js +20 -22
  32. package/lib/decorators/http/http-decorators.js.map +1 -1
  33. package/lib/endpoint-context.d.ts +3 -2
  34. package/lib/formly/{formly-group-wrapper-component.d.ts → formly-group-wrapper.component.d.ts} +1 -1
  35. package/lib/formly/{formly-repeat-component.d.ts → formly-repeat.component.d.ts} +1 -1
  36. package/lib/formly/fromly.js +24 -24
  37. package/lib/formly/fromly.js.map +1 -1
  38. package/lib/index.d.ts +146 -45
  39. package/lib/index.js +166 -55
  40. package/lib/index.js.map +1 -1
  41. package/lib/orm/columns.d.ts +28 -0
  42. package/lib/orm/columns.js +102 -0
  43. package/lib/orm/columns.js.map +1 -0
  44. package/lib/orm/index.d.ts +1 -0
  45. package/lib/orm/index.js +73 -0
  46. package/lib/orm/index.js.map +1 -0
  47. package/lib/realtime/realtime-core.d.ts +1 -1
  48. package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +1 -2
  49. package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
  50. package/lib/realtime/realtime-strategy/realtime-strategy.d.ts +1 -1
  51. package/lib/realtime/realtime-subs-manager.d.ts +1 -1
  52. package/lib/symbols.d.ts +31 -31
  53. package/lib/symbols.js +59 -59
  54. package/lib/symbols.js.map +1 -1
  55. package/lib/ui/index.js +2 -2
  56. package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
  57. package/package.json +1 -1
  58. package/websql/fesm2022/taon.mjs +1316 -648
  59. package/websql/fesm2022/taon.mjs.map +1 -1
  60. package/websql/package.json +1 -1
  61. package/websql/types/taon.d.ts +2161 -0
  62. package/browser/index.d.ts +0 -6
  63. package/browser/lib/base-classes/base-abstract-entity.d.ts +0 -8
  64. package/browser/lib/base-classes/base-angular-service.d.ts +0 -34
  65. package/browser/lib/base-classes/base-class.d.ts +0 -16
  66. package/browser/lib/base-classes/base-context.d.ts +0 -21
  67. package/browser/lib/base-classes/base-controller.d.ts +0 -83
  68. package/browser/lib/base-classes/base-crud-controller.d.ts +0 -29
  69. package/browser/lib/base-classes/base-custom-repository.d.ts +0 -4
  70. package/browser/lib/base-classes/base-entity.d.ts +0 -17
  71. package/browser/lib/base-classes/base-file-upload.middleware.d.ts +0 -15
  72. package/browser/lib/base-classes/base-injector.d.ts +0 -68
  73. package/browser/lib/base-classes/base-middleware.d.ts +0 -39
  74. package/browser/lib/base-classes/base-migration.d.ts +0 -12
  75. package/browser/lib/base-classes/base-provider.d.ts +0 -9
  76. package/browser/lib/base-classes/base-repository.d.ts +0 -267
  77. package/browser/lib/base-classes/base-subscriber-for-entity.d.ts +0 -82
  78. package/browser/lib/base-classes/base.d.ts +0 -47
  79. package/browser/lib/config/controller-config.d.ts +0 -22
  80. package/browser/lib/config/controller-options.d.ts +0 -17
  81. package/browser/lib/config/method-config.d.ts +0 -40
  82. package/browser/lib/config/param-config.d.ts +0 -9
  83. package/browser/lib/constants.d.ts +0 -10
  84. package/browser/lib/context-db-migrations.d.ts +0 -18
  85. package/browser/lib/create-context.d.ts +0 -79
  86. package/browser/lib/decorators/classes/controller-decorator.d.ts +0 -6
  87. package/browser/lib/decorators/classes/entity-decorator.d.ts +0 -20
  88. package/browser/lib/decorators/classes/middleware-decorator.d.ts +0 -8
  89. package/browser/lib/decorators/classes/migration-decorator.d.ts +0 -8
  90. package/browser/lib/decorators/classes/provider-decorator.d.ts +0 -8
  91. package/browser/lib/decorators/classes/repository-decorator.d.ts +0 -8
  92. package/browser/lib/decorators/classes/subscriber-decorator.d.ts +0 -9
  93. package/browser/lib/decorators/decorator-abstract-opt.d.ts +0 -4
  94. package/browser/lib/decorators/http/http-decorators.d.ts +0 -21
  95. package/browser/lib/decorators/http/http-methods-decorators.d.ts +0 -71
  96. package/browser/lib/decorators/http/http-params-decorators.d.ts +0 -9
  97. package/browser/lib/dependency-injection/di-container.d.ts +0 -6
  98. package/browser/lib/endpoint-context-storage.d.ts +0 -12
  99. package/browser/lib/endpoint-context.d.ts +0 -198
  100. package/browser/lib/entity-process.d.ts +0 -40
  101. package/browser/lib/get-response-value.d.ts +0 -7
  102. package/browser/lib/helpers/class-helpers.d.ts +0 -25
  103. package/browser/lib/helpers/clone-obj.d.ts +0 -2
  104. package/browser/lib/helpers/taon-helpers.d.ts +0 -19
  105. package/browser/lib/index.d.ts +0 -129
  106. package/browser/lib/inject.d.ts +0 -5
  107. package/browser/lib/models.d.ts +0 -257
  108. package/browser/lib/orm.d.ts +0 -3
  109. package/browser/lib/realtime/realtime-client.d.ts +0 -42
  110. package/browser/lib/realtime/realtime-core.d.ts +0 -41
  111. package/browser/lib/realtime/realtime-server.d.ts +0 -44
  112. package/browser/lib/realtime/realtime-strategy/index.d.ts +0 -5
  113. package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +0 -82
  114. package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +0 -15
  115. package/browser/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +0 -16
  116. package/browser/lib/realtime/realtime-strategy/realtime-strategy.d.ts +0 -12
  117. package/browser/lib/realtime/realtime-subs-manager.d.ts +0 -15
  118. package/browser/lib/realtime/realtime.models.d.ts +0 -28
  119. package/browser/lib/symbols.d.ts +0 -66
  120. package/browser/lib/ui/index.d.ts +0 -2
  121. package/browser/lib/ui/taon-admin-mode-configuration/index.d.ts +0 -2
  122. package/browser/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +0 -22
  123. package/browser/lib/validators.d.ts +0 -8
  124. package/browser/public-api.d.ts +0 -2
  125. package/lib/decorators/classes/controller-config.d.ts +0 -20
  126. package/lib/decorators/classes/controller-config.js +0 -21
  127. package/lib/decorators/classes/controller-config.js.map +0 -1
  128. package/lib/decorators/classes/controller-options.d.ts +0 -16
  129. package/lib/decorators/classes/controller-options.js +0 -20
  130. package/lib/decorators/classes/controller-options.js.map +0 -1
  131. package/lib/formly/formly-group-wrapper-component.js +0 -51
  132. package/lib/formly/formly-group-wrapper-component.js.map +0 -1
  133. package/lib/formly/formly-repeat-component.js +0 -95
  134. package/lib/formly/formly-repeat-component.js.map +0 -1
  135. package/lib/orm.d.ts +0 -68
  136. package/lib/orm.js +0 -112
  137. package/lib/orm.js.map +0 -1
  138. package/websql/index.d.ts +0 -6
  139. package/websql/lib/base-classes/base-abstract-entity.d.ts +0 -8
  140. package/websql/lib/base-classes/base-angular-service.d.ts +0 -34
  141. package/websql/lib/base-classes/base-class.d.ts +0 -16
  142. package/websql/lib/base-classes/base-context.d.ts +0 -21
  143. package/websql/lib/base-classes/base-controller.d.ts +0 -83
  144. package/websql/lib/base-classes/base-crud-controller.d.ts +0 -29
  145. package/websql/lib/base-classes/base-custom-repository.d.ts +0 -4
  146. package/websql/lib/base-classes/base-entity.d.ts +0 -17
  147. package/websql/lib/base-classes/base-file-upload.middleware.d.ts +0 -15
  148. package/websql/lib/base-classes/base-injector.d.ts +0 -68
  149. package/websql/lib/base-classes/base-middleware.d.ts +0 -39
  150. package/websql/lib/base-classes/base-migration.d.ts +0 -12
  151. package/websql/lib/base-classes/base-provider.d.ts +0 -9
  152. package/websql/lib/base-classes/base-repository.d.ts +0 -272
  153. package/websql/lib/base-classes/base-subscriber-for-entity.d.ts +0 -82
  154. package/websql/lib/base-classes/base.d.ts +0 -47
  155. package/websql/lib/config/controller-config.d.ts +0 -22
  156. package/websql/lib/config/controller-options.d.ts +0 -17
  157. package/websql/lib/config/method-config.d.ts +0 -40
  158. package/websql/lib/config/param-config.d.ts +0 -9
  159. package/websql/lib/constants.d.ts +0 -10
  160. package/websql/lib/context-db-migrations.d.ts +0 -18
  161. package/websql/lib/create-context.d.ts +0 -79
  162. package/websql/lib/decorators/classes/controller-decorator.d.ts +0 -6
  163. package/websql/lib/decorators/classes/entity-decorator.d.ts +0 -20
  164. package/websql/lib/decorators/classes/middleware-decorator.d.ts +0 -8
  165. package/websql/lib/decorators/classes/migration-decorator.d.ts +0 -8
  166. package/websql/lib/decorators/classes/provider-decorator.d.ts +0 -8
  167. package/websql/lib/decorators/classes/repository-decorator.d.ts +0 -8
  168. package/websql/lib/decorators/classes/subscriber-decorator.d.ts +0 -9
  169. package/websql/lib/decorators/decorator-abstract-opt.d.ts +0 -4
  170. package/websql/lib/decorators/http/http-decorators.d.ts +0 -21
  171. package/websql/lib/decorators/http/http-methods-decorators.d.ts +0 -71
  172. package/websql/lib/decorators/http/http-params-decorators.d.ts +0 -9
  173. package/websql/lib/dependency-injection/di-container.d.ts +0 -6
  174. package/websql/lib/endpoint-context-storage.d.ts +0 -12
  175. package/websql/lib/endpoint-context.d.ts +0 -200
  176. package/websql/lib/entity-process.d.ts +0 -40
  177. package/websql/lib/get-response-value.d.ts +0 -7
  178. package/websql/lib/helpers/class-helpers.d.ts +0 -25
  179. package/websql/lib/helpers/clone-obj.d.ts +0 -2
  180. package/websql/lib/helpers/taon-helpers.d.ts +0 -19
  181. package/websql/lib/index.d.ts +0 -129
  182. package/websql/lib/inject.d.ts +0 -5
  183. package/websql/lib/models.d.ts +0 -261
  184. package/websql/lib/orm.d.ts +0 -69
  185. package/websql/lib/realtime/realtime-client.d.ts +0 -42
  186. package/websql/lib/realtime/realtime-core.d.ts +0 -41
  187. package/websql/lib/realtime/realtime-server.d.ts +0 -44
  188. package/websql/lib/realtime/realtime-strategy/index.d.ts +0 -5
  189. package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +0 -82
  190. package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +0 -15
  191. package/websql/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +0 -16
  192. package/websql/lib/realtime/realtime-strategy/realtime-strategy.d.ts +0 -12
  193. package/websql/lib/realtime/realtime-subs-manager.d.ts +0 -15
  194. package/websql/lib/realtime/realtime.models.d.ts +0 -28
  195. package/websql/lib/symbols.d.ts +0 -66
  196. package/websql/lib/ui/index.d.ts +0 -2
  197. package/websql/lib/ui/taon-admin-mode-configuration/index.d.ts +0 -2
  198. package/websql/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +0 -22
  199. package/websql/lib/validators.d.ts +0 -8
  200. package/websql/public-api.d.ts +0 -2
@@ -1,15 +0,0 @@
1
- // @ts-nocheck
2
- import type { EndpointContext } from '../../endpoint-context';
3
- import { RealtimeStrategy } from './realtime-strategy';
4
- import { ServerOptions } from 'socket.io';
5
- /**
6
- * Purpose:
7
- * - browser-browser communication mock (in websql mode)
8
- */
9
- export declare class RealtimeStrategyMock extends RealtimeStrategy {
10
- protected ctx: EndpointContext;
11
- toString(): string;
12
- constructor(ctx: EndpointContext);
13
- ioServer(url: string, opt: ServerOptions): any;
14
- get ioClient(): any;
15
- }
@@ -1,16 +0,0 @@
1
- // @ts-nocheck
2
- import { EndpointContext } from '../../endpoint-context';
3
- import { RealtimeStrategy } from './realtime-strategy';
4
- import { io } from 'socket.io-client';
5
- /**
6
- * Purpose:
7
- * - backend-browser communication
8
- * - backend-backend communication
9
- */
10
- export declare class RealtimeStrategySocketIO extends RealtimeStrategy {
11
- protected ctx: EndpointContext;
12
- toString(): string;
13
- constructor(ctx: EndpointContext);
14
- ioServer(...args: any[]): any;
15
- get ioClient(): typeof io;
16
- }
@@ -1,12 +0,0 @@
1
- // @ts-nocheck
2
- import { EndpointContext } from '../../endpoint-context';
3
- import type { Server, ServerOptions } from 'socket.io';
4
- import type { io } from 'socket.io-client';
5
- import { DefaultEventsMap } from 'socket.io/dist/typed-events';
6
- export declare abstract class RealtimeStrategy {
7
- protected ctx: EndpointContext;
8
- constructor(ctx: EndpointContext);
9
- get ioClient(): typeof io;
10
- ioServer(url: string, opt: ServerOptions): Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
11
- abstract toString(): string;
12
- }
@@ -1,15 +0,0 @@
1
- // @ts-nocheck
2
- import { Subscriber } from 'rxjs';
3
- import { Socket as SocketClient } from 'socket.io-client';
4
- import { DefaultEventsMap } from 'socket.io/dist/typed-events';
5
- import { RealtimeModels } from './realtime.models';
6
- export declare class RealtimeSubsManager {
7
- private options;
8
- private isListening;
9
- private observers;
10
- constructor(options: RealtimeModels.SubsManagerOpt);
11
- startListenIfNotStarted(realtime: SocketClient<DefaultEventsMap, DefaultEventsMap>): void;
12
- add(observer: Subscriber<any>): void;
13
- remove(observer: Subscriber<any>): void;
14
- private update;
15
- }
@@ -1,28 +0,0 @@
1
- // @ts-nocheck
2
- import type { RealtimeCore } from './realtime-core';
3
- export declare namespace RealtimeModels {
4
- type SubsManagerOpt = {
5
- core: RealtimeCore;
6
- customEvent: string;
7
- roomName: string;
8
- property: string;
9
- };
10
- interface ChangeOption {
11
- /**
12
- * Specify property name to listen changes on that property only;
13
- */
14
- property?: string;
15
- /**
16
- * Override custom event name to listen
17
- */
18
- customEvent?: string;
19
- /**
20
- * Value from entity object.
21
- * Key for this value is usually id or unique key
22
- * property defined in entity decorator.
23
- * TODO @LAST IMPLEMENT unique key support
24
- */
25
- idOrUniqValue?: any;
26
- }
27
- type EventHandler = (...args: any[]) => void;
28
- }
@@ -1,66 +0,0 @@
1
- // @ts-nocheck
2
- export declare namespace Symbols {
3
- export const ctxInClassOrClassObj: unique symbol;
4
- export const classNameStaticProperty: string;
5
- export const fullClassNameStaticProperty: string;
6
- export const orignalClass: string;
7
- export const orignalClassClonesObj: string;
8
- export const classMethodsNames: string;
9
- /**
10
- * for backendSocket.in(ROOM_NAME).emit(EVENT)
11
- *
12
- * Room names are uniqe..
13
- * here I am limiting number of event for clients.
14
- */
15
- class Realtime {
16
- NAMESPACE(contextName: string): string;
17
- TABLE_CHANGE(contextName: string, tableName: string): string;
18
- readonly KEYroomSubscribe = "roomSubscribe";
19
- readonly KEYroomUnsubscribe = "roomUnsubscribe";
20
- ROOM_NAME_CUSTOM(contextName: string, customEvent: string): string;
21
- ROOM_SUBSCRIBE_CUSTOM(contextName: string): string;
22
- ROOM_UNSUBSCRIBE_CUSTOM(contextName: string): string;
23
- ROOM_NAME_UPDATE_ENTITY(contextName: string, className: string, entityId: number | string): string;
24
- ROOM_SUBSCRIBE_ENTITY_UPDATE_EVENTS(contextName: string): string;
25
- ROOM_UNSUBSCRIBE_ENTITY_UPDATE_EVENTS(contextName: string): string;
26
- ROOM_NAME_UPDATE_ENTITY_PROPERTY(contextName: string, className: string, property: string, entityId: number | string): string;
27
- ROOM_SUBSCRIBE_ENTITY_PROPERTY_UPDATE_EVENTS(contextName: string): string;
28
- ROOM_UNSUBSCRIBE_ENTITY_PROPERTY_UPDATE_EVENTS(contextName: string): string;
29
- }
30
- export const REALTIME: Realtime;
31
- export const metadata: {
32
- className: string;
33
- options: {
34
- controller: string;
35
- entity: string;
36
- repository: string;
37
- provider: string;
38
- subscriber: string;
39
- migration: string;
40
- };
41
- };
42
- export const old: {
43
- HAS_TABLE_IN_DB: symbol;
44
- MDC_KEY: string;
45
- WEBSQL_REST_PROGRESS_FUN: symbol;
46
- WEBSQL_REST_PROGRESS_FUN_START: symbol;
47
- WEBSQL_REST_PROGRESS_FUN_DONE: symbol;
48
- WEBSQL_REST_PROGRESS_TIMEOUT: symbol;
49
- X_TOTAL_COUNT: string;
50
- CIRCURAL_OBJECTS_MAP_BODY: string;
51
- CIRCURAL_OBJECTS_MAP_QUERY_PARAM: string;
52
- MAPPING_CONFIG_HEADER: string;
53
- MAPPING_CONFIG_HEADER_BODY_PARAMS: string;
54
- MAPPING_CONFIG_HEADER_QUERY_PARAMS: string;
55
- ENDPOINT_META_CONFIG: string;
56
- CLASS_DECORATOR_CONTEXT: string;
57
- SOCKET_MSG: string;
58
- ANGULAR: {
59
- INPUT_NAMES: symbol;
60
- };
61
- ERROR_MESSAGES: {
62
- CLASS_NAME_MATCH: string;
63
- };
64
- };
65
- export {};
66
- }
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export * from './taon-admin-mode-configuration';
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export * from './taon-admin.service';
@@ -1,22 +0,0 @@
1
- // @ts-nocheck
2
- export declare class TaonAdminService {
3
- private static _instance;
4
- static get Instance(): TaonAdminService;
5
- scrollableEnabled: boolean;
6
- private onEditMode;
7
- onEditMode$: import("rxjs").Observable<unknown>;
8
- adminPanelIsOpen: boolean;
9
- draggablePopupMode: boolean;
10
- draggablePopupModeFullScreen: boolean;
11
- /**
12
- * Property used in taon
13
- */
14
- keepWebsqlDbDataAfterReload: boolean;
15
- constructor();
16
- setEditMode(value: boolean): void;
17
- setKeepWebsqlDbDataAfterReload(value: boolean): void;
18
- enabledTabs: any[];
19
- hide(): void;
20
- show(): void;
21
- logout(): void;
22
- }
@@ -1,8 +0,0 @@
1
- // @ts-nocheck
2
- import { MethodConfig } from './config/method-config';
3
- export declare namespace Validators {
4
- const classNameVlidation: (className: any, target: Function) => any;
5
- const checkIfMethodsWithReponseTYpeAlowed: (methods: MethodConfig[], current: MethodConfig) => void;
6
- const validateClassFunctions: (controllers: any[], entities: any[], proviers: any[], repositories: any[]) => void;
7
- const preventUndefinedModel: (model: any, id: any) => void;
8
- }
@@ -1,2 +0,0 @@
1
- // @ts-nocheck
2
- export * from './lib';