taon 19.0.5 → 19.0.7

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 (148) hide show
  1. package/browser/fesm2022/taon.mjs +3473 -2463
  2. package/browser/fesm2022/taon.mjs.map +1 -1
  3. package/browser/lib/base-classes/base-angular-service.d.ts +14 -0
  4. package/browser/lib/base-classes/base-class.d.ts +1 -1
  5. package/browser/lib/base-classes/base-context.d.ts +6 -6
  6. package/browser/lib/base-classes/base-injector.d.ts +12 -7
  7. package/browser/lib/base-classes/base-repository.d.ts +5 -6
  8. package/browser/lib/base-classes/base.d.ts +12 -10
  9. package/browser/lib/create-context.d.ts +14 -13
  10. package/browser/lib/endpoint-context.d.ts +6 -5
  11. package/browser/lib/index.d.ts +24 -24
  12. package/browser/lib/inject.d.ts +4 -1
  13. package/browser/lib/ui/taon-table/taon-table.component.d.ts +8 -7
  14. package/browser/package.json +1 -1
  15. package/client/fesm2022/taon.mjs +3473 -2463
  16. package/client/fesm2022/taon.mjs.map +1 -1
  17. package/client/lib/base-classes/base-angular-service.d.ts +14 -0
  18. package/client/lib/base-classes/base-class.d.ts +1 -1
  19. package/client/lib/base-classes/base-context.d.ts +6 -6
  20. package/client/lib/base-classes/base-injector.d.ts +12 -7
  21. package/client/lib/base-classes/base-repository.d.ts +5 -6
  22. package/client/lib/base-classes/base.d.ts +12 -10
  23. package/client/lib/create-context.d.ts +14 -13
  24. package/client/lib/endpoint-context.d.ts +6 -5
  25. package/client/lib/index.d.ts +24 -24
  26. package/client/lib/inject.d.ts +4 -1
  27. package/client/lib/ui/taon-table/taon-table.component.d.ts +8 -7
  28. package/client/package.json +1 -1
  29. package/lib/base-classes/base-abstract-entity.js +2 -2
  30. package/lib/base-classes/base-abstract-entity.js.map +1 -1
  31. package/lib/base-classes/base-angular-service.d.ts +10 -0
  32. package/lib/base-classes/base-angular-service.js +19 -0
  33. package/lib/base-classes/base-angular-service.js.map +1 -0
  34. package/lib/base-classes/base-class.d.ts +1 -1
  35. package/lib/base-classes/base-class.js +13 -4
  36. package/lib/base-classes/base-class.js.map +1 -1
  37. package/lib/base-classes/base-context.d.ts +6 -6
  38. package/lib/base-classes/base-crud-controller.js +6 -6
  39. package/lib/base-classes/base-crud-controller.js.map +1 -1
  40. package/lib/base-classes/base-entity.js +2 -2
  41. package/lib/base-classes/base-entity.js.map +1 -1
  42. package/lib/base-classes/base-injector.d.ts +12 -7
  43. package/lib/base-classes/base-injector.js +21 -19
  44. package/lib/base-classes/base-injector.js.map +1 -1
  45. package/lib/base-classes/base-migration.d.ts +1 -1
  46. package/lib/base-classes/base-migration.js +2 -2
  47. package/lib/base-classes/base-migration.js.map +1 -1
  48. package/lib/base-classes/base-repository.d.ts +3 -5
  49. package/lib/base-classes/base-repository.js +22 -61
  50. package/lib/base-classes/base-repository.js.map +1 -1
  51. package/lib/base-classes/base-subscriber-for-entity.d.ts +1 -1
  52. package/lib/base-classes/base.d.ts +12 -10
  53. package/lib/base-classes/base.js +7 -5
  54. package/lib/base-classes/base.js.map +1 -1
  55. package/lib/build-info._auto-generated_.d.ts +2 -1
  56. package/lib/build-info._auto-generated_.js +3 -2
  57. package/lib/build-info._auto-generated_.js.map +1 -1
  58. package/lib/context-db-migrations.d.ts +1 -1
  59. package/lib/context-db-migrations.js +7 -7
  60. package/lib/context-db-migrations.js.map +1 -1
  61. package/lib/create-context.d.ts +13 -12
  62. package/lib/create-context.js +13 -17
  63. package/lib/create-context.js.map +1 -1
  64. package/lib/decorators/classes/entity-decorator.d.ts +1 -1
  65. package/lib/decorators/classes/entity-decorator.js +8 -8
  66. package/lib/decorators/classes/entity-decorator.js.map +1 -1
  67. package/lib/decorators/http/http-decorators.d.ts +1 -1
  68. package/lib/decorators/http/http-decorators.js +2 -2
  69. package/lib/decorators/http/http-decorators.js.map +1 -1
  70. package/lib/decorators/http/http-methods-decorators.d.ts +1 -1
  71. package/lib/decorators/http/http-methods-decorators.js +2 -2
  72. package/lib/decorators/http/http-methods-decorators.js.map +1 -1
  73. package/lib/endpoint-context.d.ts +8 -5
  74. package/lib/endpoint-context.js +170 -179
  75. package/lib/endpoint-context.js.map +1 -1
  76. package/lib/entity-process.js +35 -35
  77. package/lib/entity-process.js.map +1 -1
  78. package/lib/env.js +2 -2
  79. package/lib/env.js.map +1 -1
  80. package/lib/formly/fromly.d.ts +1 -1
  81. package/lib/formly/fromly.js +26 -26
  82. package/lib/formly/fromly.js.map +1 -1
  83. package/lib/formly/type-from-entity.js +6 -6
  84. package/lib/formly/type-from-entity.js.map +1 -1
  85. package/lib/get-response-value.js +2 -2
  86. package/lib/get-response-value.js.map +1 -1
  87. package/lib/helpers/class-helpers.js +21 -21
  88. package/lib/helpers/class-helpers.js.map +1 -1
  89. package/lib/helpers/taon-helpers.js +4 -4
  90. package/lib/helpers/taon-helpers.js.map +1 -1
  91. package/lib/index.d.ts +24 -24
  92. package/lib/index.js +8 -9
  93. package/lib/index.js.map +1 -1
  94. package/lib/inject.js +3 -6
  95. package/lib/inject.js.map +1 -1
  96. package/lib/models.d.ts +1 -1
  97. package/lib/models.js +5 -5
  98. package/lib/models.js.map +1 -1
  99. package/lib/orm.d.ts +16 -3
  100. package/lib/orm.js +43 -5
  101. package/lib/orm.js.map +1 -1
  102. package/lib/realtime/realtime-client.js +3 -3
  103. package/lib/realtime/realtime-client.js.map +1 -1
  104. package/lib/realtime/realtime-core.js +3 -3
  105. package/lib/realtime/realtime-core.js.map +1 -1
  106. package/lib/realtime/realtime-server.js +7 -7
  107. package/lib/realtime/realtime-server.js.map +1 -1
  108. package/lib/realtime/realtime-subs-manager.js +3 -3
  109. package/lib/realtime/realtime-subs-manager.js.map +1 -1
  110. package/lib/storage.js +2 -2
  111. package/lib/storage.js.map +1 -1
  112. package/lib/symbols.js +7 -7
  113. package/lib/symbols.js.map +1 -1
  114. package/lib/ui/directives/index.js +2 -2
  115. package/lib/ui/index.js +2 -2
  116. package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
  117. package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
  118. package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
  119. package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
  120. package/lib/ui/taon-progress-bar/index.js +2 -2
  121. package/lib/ui/taon-session-passcode/index.js +2 -2
  122. package/lib/ui/taon-table/index.js +2 -2
  123. package/lib/ui/taon-table/taon-table.component.d.ts +7 -6
  124. package/lib/ui/taon.models.d.ts +1 -1
  125. package/lib/validators.js +8 -8
  126. package/lib/validators.js.map +1 -1
  127. package/old-app .js +1 -1
  128. package/old-app .js.map +1 -1
  129. package/package.json +1 -1
  130. package/tmp-environment.json +4 -4
  131. package/websql/fesm2022/taon.mjs +4983 -3644
  132. package/websql/fesm2022/taon.mjs.map +1 -1
  133. package/websql/lib/base-classes/base-angular-service.d.ts +14 -0
  134. package/websql/lib/base-classes/base-class.d.ts +1 -1
  135. package/websql/lib/base-classes/base-context.d.ts +6 -6
  136. package/websql/lib/base-classes/base-injector.d.ts +12 -7
  137. package/websql/lib/base-classes/base-repository.d.ts +3 -5
  138. package/websql/lib/base-classes/base.d.ts +12 -10
  139. package/websql/lib/create-context.d.ts +14 -13
  140. package/websql/lib/endpoint-context.d.ts +8 -5
  141. package/websql/lib/index.d.ts +24 -24
  142. package/websql/lib/inject.d.ts +4 -1
  143. package/websql/lib/orm.d.ts +15 -2
  144. package/websql/lib/ui/taon-table/taon-table.component.d.ts +8 -7
  145. package/websql/package.json +1 -1
  146. package/browser/lib/storage.d.ts +0 -2
  147. package/client/lib/storage.d.ts +0 -2
  148. package/websql/lib/storage.d.ts +0 -2
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import { TaonContext } from '../create-context';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * TODO prevent calling methods when not initialized
6
+ * with init(ctx)
7
+ */
8
+ export declare abstract class BaseAngularsService {
9
+ protected currentContext: TaonContext;
10
+ init(currentContext: TaonContext): void;
11
+ protected abstract initControllers(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseAngularsService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseAngularsService>;
14
+ }
@@ -5,5 +5,5 @@ export declare class BaseClass<CloneT extends BaseClass = any> {
5
5
  * taon after class instance creation
6
6
  */
7
7
  _(): Promise<void>;
8
- clone(override: Partial<CloneT>): CloneT;
8
+ clone(override?: Partial<CloneT>): CloneT;
9
9
  }
@@ -1,13 +1,13 @@
1
1
  // @ts-nocheck
2
2
  declare const BaseContext: {
3
3
  types: {
4
- readonly controllers: CTRL;
5
- readonly repositories: REPO;
6
- readonly providers: PROVIDER;
7
- readonly subscribers: SUBSCRIBER;
8
- readonly migrations: MIGRATION;
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: CTX;
10
+ readonly contexts: any;
11
11
  readonly contextName: string;
12
12
  __ref(): Promise<import("taon/browser").EndpointContext>;
13
13
  readonly __refSync: import("taon/browser").EndpointContext;
@@ -1,7 +1,7 @@
1
1
  // @ts-nocheck
2
2
  import { EndpointContext } from '../endpoint-context';
3
- import type { BaseRepository } from './base-repository';
4
3
  import { BaseClass } from './base-class';
4
+ import type { BaseRepository } from './base-repository';
5
5
  export declare class BaseInjector<CloneT extends BaseClass = any> {
6
6
  /**
7
7
  * for proxy purposes
@@ -31,12 +31,21 @@ export declare class BaseInjector<CloneT extends BaseClass = any> {
31
31
  injectRepo<T>(entityForCrud: new (...args: any[]) => T): BaseRepository<T>;
32
32
  injectCustomRepository<T>(cutomRepositoryClass: new (...args: any[]) => T): T;
33
33
  /**
34
- * aliast to .injectRepository()
34
+ * aliast to this.injectRepository()
35
35
  */
36
36
  injectCustomRepo<T>(cutomRepositoryClass: new (...args: any[]) => T): T;
37
+ /**
38
+ * example usage:
39
+ * ...
40
+ * exampleController = this.injectController(ExampleController);
41
+ * ...
42
+ */
37
43
  injectController<T>(ctor: new (...args: any[]) => T): T;
38
44
  /**
39
- * aliast to .injectController()
45
+ * example usage:
46
+ * ...
47
+ * exampleSubscriber = this.injectSubscriber(ExampleSubscriber)
48
+ * ...
40
49
  */
41
50
  injectSubscriber<T>(ctor: new (...args: any[]) => T): T;
42
51
  /**
@@ -52,10 +61,6 @@ export declare class BaseInjector<CloneT extends BaseClass = any> {
52
61
  * TODO
53
62
  */
54
63
  injectContextProvider<T>(ctor: new (...args: any[]) => T): T;
55
- /**
56
- * Repositories to init (by controller)
57
- */
58
- protected __repositories_to_init__: BaseRepository<any>[];
59
64
  /**
60
65
  * Inject: Controllers, Providers, Repositories, Services, etc.
61
66
  * TODO addd nest js injecting
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import type { FindManyOptions, FindOneOptions, FindOptionsWhere, InsertResult, SaveOptions, UpdateResult } from 'taon-typeorm';
2
+ import type { FindManyOptions, FindOneOptions, FindOptionsWhere, InsertResult, Repository, SaveOptions, UpdateResult } from 'taon-typeorm/browser';
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/browser';
@@ -8,13 +8,12 @@ import { BaseInjector } from './base-injector';
8
8
  export declare abstract class BaseRepository<Entity extends {
9
9
  id?: any;
10
10
  }> extends BaseInjector {
11
- private __entityClassResolveFn;
12
11
  abstract entityClassResolveFn: () => any;
13
12
  constructor(__entityClassResolveFn: () => any);
14
13
  private __dbQuery;
15
14
  get dbQuery(): MySqlQuerySource;
16
15
  get connection(): DataSourceType;
17
- protected get repository(): any;
16
+ protected get repository(): Repository<Entity>;
18
17
  /**
19
18
  * target for repository
20
19
  */
@@ -22,9 +21,8 @@ export declare abstract class BaseRepository<Entity extends {
22
21
  /**
23
22
  * alias to repository
24
23
  */
25
- protected get repo(): any;
24
+ protected get repo(): Repository<Entity>;
26
25
  get repositoryExists(): boolean;
27
- __init(context?: any): Promise<void>;
28
26
  /**
29
27
  * Checks if entity has an id.
30
28
  * If entity composite compose ids, it will check them all.
@@ -127,7 +125,8 @@ export declare abstract class BaseRepository<Entity extends {
127
125
  */
128
126
  insert(entity: QueryDeepPartialEntity<Entity> | QueryDeepPartialEntity<Entity>[]): Promise<InsertResult>;
129
127
  update(item: Entity): Promise<any>;
130
- updateById(id: number | string, item: Entity): Promise<any>;
128
+ private allowedTypesToUpdate;
129
+ updateById<ENTITY = Entity>(id: number | string, item: Entity): Promise<ENTITY>;
131
130
  bulkUpdate(items: Entity[]): Promise<any>;
132
131
  /**
133
132
  * Inserts a given entity into the database, unless a unique constraint conflicts then updates the entity
@@ -1,13 +1,14 @@
1
1
  // @ts-nocheck
2
+ import * as abstractEntity from './base-abstract-entity';
3
+ import * as baseService from './base-angular-service';
4
+ import * as baseClass from './base-class';
2
5
  import * as controller from './base-controller';
3
6
  import * as crudController from './base-crud-controller';
4
7
  import * as entity from './base-entity';
5
- import * as abstractEntity from './base-abstract-entity';
6
- import * as repository from './base-repository';
8
+ import * as baseMigration from './base-migration';
7
9
  import * as provider from './base-provider';
8
- import * as baseClass from './base-class';
10
+ import * as repository from './base-repository';
9
11
  import * as baseSubscriberEntity from './base-subscriber-for-entity';
10
- import * as baseMigration from './base-migration';
11
12
  export declare namespace Base {
12
13
  export import Controller = controller.BaseController;
13
14
  export import CrudController = crudController.BaseCrudController;
@@ -19,15 +20,16 @@ export declare namespace Base {
19
20
  export import Repository = repository.BaseRepository;
20
21
  export import SubscriberForEntity = baseSubscriberEntity.BaseSubscriberForEntity;
21
22
  export import Migration = baseMigration.BaseMigration;
23
+ export import AngularService = baseService.BaseAngularsService;
22
24
  const Context: {
23
25
  types: {
24
- readonly controllers: CTRL;
25
- readonly repositories: REPO;
26
- readonly providers: PROVIDER;
27
- readonly subscribers: SUBSCRIBER;
28
- readonly migrations: MIGRATION;
26
+ readonly controllers: any;
27
+ readonly repositories: any;
28
+ readonly providers: any;
29
+ readonly subscribers: any;
30
+ readonly migrations: any;
29
31
  };
30
- readonly contexts: CTX;
32
+ readonly contexts: any;
31
33
  readonly contextName: string;
32
34
  __ref(): Promise<import("taon/browser").EndpointContext>;
33
35
  readonly __refSync: import("taon/browser").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: CTRL_1;
7
- readonly repositories: REPO_1;
8
- readonly providers: PROVIDER_1;
9
- readonly subscribers: SUBSCRIBER_1;
10
- readonly migrations: MIGRATION_1;
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: CTX_1;
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: CTRL;
48
- readonly repositories: REPO;
49
- readonly providers: PROVIDER;
50
- readonly subscribers: SUBSCRIBER;
51
- readonly migrations: MIGRATION;
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: CTX;
53
+ readonly contexts: any;
54
54
  readonly contextName: string;
55
55
  /**
56
56
  * @deprecated
@@ -82,4 +82,5 @@ export declare const createContext: <CTX extends Record<string, object>, CTRL ex
82
82
  readonly client: import("./realtime/realtime-client").RealtimeClient;
83
83
  readonly server: import("./realtime/realtime-server").RealtimeServer;
84
84
  };
85
- };
85
+ };
86
+ export type TaonContext = ReturnType<typeof createContext>;
@@ -1,11 +1,11 @@
1
1
  // @ts-nocheck
2
- import { Models } from './models';
3
- import type { Application } from 'express';
2
+ import type { Server } from 'http';
4
3
  import type { NgZone } from '@angular/core';
4
+ import type { Application } from 'express';
5
5
  import { DataSource } from 'taon-typeorm/browser';
6
- import type { Server } from 'http';
7
6
  import type { BaseClass } from './base-classes/base-class';
8
7
  import { ContextDbMigrations } from './context-db-migrations';
8
+ import { Models } from './models';
9
9
  export declare class EndpointContext {
10
10
  private originalConfig;
11
11
  private configFn;
@@ -65,7 +65,7 @@ export declare class EndpointContext {
65
65
  }): Promise<void>;
66
66
  private getAutoGeneratedConfig;
67
67
  get ngZone(): any;
68
- startServer(): any;
68
+ startServer(): Promise<void>;
69
69
  displayRoutes(app: any): void;
70
70
  get modeAllowsDatabaseCreation(): boolean;
71
71
  private cloneClassWithNewMetadata;
@@ -74,10 +74,11 @@ export declare class EndpointContext {
74
74
  private getRecrusiveClassesfromContexts;
75
75
  getClassInstanceObjBy(classType: Models.ClassType): any;
76
76
  private getClassesInstancesArrBy;
77
- inject<T>(ctor: new (...args: any[]) => T, options?: {
77
+ inject<T>(ctor: new (...args: any[]) => T, options: {
78
78
  localInstance?: boolean;
79
79
  contextClassInstance?: BaseClass;
80
80
  locaInstanceConstructorArgs?: ConstructorParameters<typeof ctor>;
81
+ parentInstanceThatWillGetInjectedStuff: object;
81
82
  }): T;
82
83
  /**
83
84
  * alias for inject
@@ -1,18 +1,18 @@
1
1
  // @ts-nocheck
2
2
  import 'reflect-metadata';
3
- import * as http from './decorators/http/http-decorators';
3
+ import { NgZone } from '@angular/core';
4
4
  import * as base from './base-classes/base';
5
5
  import * as controllerDecorator from './decorators/classes/controller-decorator';
6
6
  import * as entityDecorator from './decorators/classes/entity-decorator';
7
+ import * as migrationDecorator from './decorators/classes/migration-decorator';
7
8
  import * as providerDecorator from './decorators/classes/provider-decorator';
8
9
  import * as repositoryDecorator from './decorators/classes/repository-decorator';
9
10
  import * as subscriberDecorator from './decorators/classes/subscriber-decorator';
10
- import * as migrationDecorator from './decorators/classes/migration-decorator';
11
- import * as orm from './orm';
12
- import * as models from './models';
11
+ import * as http from './decorators/http/http-decorators';
13
12
  import * as endpointContext from './endpoint-context';
13
+ import * as models from './models';
14
+ import * as orm from './orm';
14
15
  import * as allSymbols from './symbols';
15
- import { NgZone } from '@angular/core';
16
16
  export * from './ui';
17
17
  export { EndpointContext } from './endpoint-context';
18
18
  export { BaseRepository } from './base-classes/base-repository';
@@ -21,7 +21,7 @@ export { BaseProvider } from './base-classes/base-provider';
21
21
  export { BaseEntity } from './base-classes/base-entity';
22
22
  export { BaseContext } from './base-classes/base-context';
23
23
  export { BaseMigration } from './base-classes/base-migration';
24
- export { createContext } from './create-context';
24
+ export { createContext, TaonContext } from './create-context';
25
25
  export { inject } from './inject';
26
26
  export { Models } from './models';
27
27
  export * from './constants';
@@ -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: CTRL;
52
- readonly repositories: REPO;
53
- readonly providers: PROVIDER;
54
- readonly subscribers: SUBSCRIBER;
55
- readonly migrations: MIGRATION;
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: CTX;
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: CTRL_1;
77
- readonly repositories: REPO_1;
78
- readonly providers: PROVIDER_1;
79
- readonly subscribers: SUBSCRIBER_1;
80
- readonly migrations: MIGRATION_1;
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: CTX_1;
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: CTRL;
113
- readonly repositories: REPO;
114
- readonly providers: PROVIDER;
115
- readonly subscribers: SUBSCRIBER;
116
- readonly migrations: MIGRATION;
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: CTX;
118
+ readonly contexts: any;
119
119
  readonly contextName: string;
120
120
  __ref(): Promise<endpointContext.EndpointContext>;
121
121
  readonly __refSync: endpointContext.EndpointContext;
@@ -1,2 +1,5 @@
1
1
  // @ts-nocheck
2
- export declare const inject: <T>(entity: () => new (...args: any[]) => T) => T;
2
+ export declare const inject: <T>(entity: () => new (...args: any[]) => T) => T;
3
+ /**
4
+ * TODO
5
+ */
@@ -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
- constructor();
29
+ get entity(): typeof Taon.Base.Entity;
29
30
  ngOnInit(): Promise<void>;
30
31
  ngOnDestroy(): void;
31
32
  getNextPage(e: PageEvent): Promise<void>;
32
- retriveData(): Promise<void>;
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; }; "entity": { "alias": "entity"; "required": false; }; "expansionTemplate": { "alias": "expansionTemplate"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; }, { "expansionChange": "expansionChange"; "addingItem": "addingItem"; }, never, never, false, never>;
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
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/browser",
3
- "version": "19.0.5",
3
+ "version": "19.0.7",
4
4
  "module": "fesm2022/taon.mjs",
5
5
  "typings": "index.d.ts",
6
6
  "exports": {