taon 18.0.25 → 18.0.27

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 (197) hide show
  1. package/README.md +112 -51
  2. package/assets/shared/shared_folder_info.txt +1 -1
  3. package/browser/esm2022/lib/endpoint-context.mjs +4 -1
  4. package/browser/esm2022/lib/index.mjs +2 -2
  5. package/browser/esm2022/lib/models.mjs +1 -1
  6. package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +11 -11
  7. package/browser/fesm2022/taon.mjs +3 -0
  8. package/browser/fesm2022/taon.mjs.map +1 -1
  9. package/browser/lib/models.d.ts +5 -0
  10. package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
  11. package/cli.js +11 -17
  12. package/cli.js.map +1 -1
  13. package/client/esm2022/lib/endpoint-context.mjs +4 -1
  14. package/client/esm2022/lib/index.mjs +2 -2
  15. package/client/esm2022/lib/models.mjs +1 -1
  16. package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +11 -11
  17. package/client/fesm2022/taon.mjs +3 -0
  18. package/client/fesm2022/taon.mjs.map +1 -1
  19. package/client/lib/models.d.ts +5 -0
  20. package/client/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
  21. package/index.js +15 -2
  22. package/index.js.map +1 -1
  23. package/lib/base-classes/base-abstract-entity.js +30 -28
  24. package/lib/base-classes/base-abstract-entity.js.map +1 -1
  25. package/lib/base-classes/base-class.js +9 -17
  26. package/lib/base-classes/base-class.js.map +1 -1
  27. package/lib/base-classes/base-context.js +4 -4
  28. package/lib/base-classes/base-context.js.map +1 -1
  29. package/lib/base-classes/base-controller.js +15 -15
  30. package/lib/base-classes/base-controller.js.map +1 -1
  31. package/lib/base-classes/base-crud-controller.js +211 -329
  32. package/lib/base-classes/base-crud-controller.js.map +1 -1
  33. package/lib/base-classes/base-entity.js +15 -15
  34. package/lib/base-classes/base-entity.js.map +1 -1
  35. package/lib/base-classes/base-injector.js +99 -124
  36. package/lib/base-classes/base-injector.js.map +1 -1
  37. package/lib/base-classes/base-migration.js +15 -31
  38. package/lib/base-classes/base-migration.js.map +1 -1
  39. package/lib/base-classes/base-provider.js +3 -9
  40. package/lib/base-classes/base-provider.js.map +1 -1
  41. package/lib/base-classes/base-repository.js +310 -444
  42. package/lib/base-classes/base-repository.js.map +1 -1
  43. package/lib/base-classes/base-subscriber-for-entity.js +73 -73
  44. package/lib/base-classes/base-subscriber-for-entity.js.map +1 -1
  45. package/lib/base-classes/base.js +10 -10
  46. package/lib/base-classes/base.js.map +1 -1
  47. package/lib/build-info._auto-generated_.js.map +1 -1
  48. package/lib/constants.js.map +1 -1
  49. package/lib/context-db-migrations.js +325 -581
  50. package/lib/context-db-migrations.js.map +1 -1
  51. package/lib/create-context.js +80 -109
  52. package/lib/create-context.js.map +1 -1
  53. package/lib/decorators/classes/controller-decorator.js +15 -13
  54. package/lib/decorators/classes/controller-decorator.js.map +1 -1
  55. package/lib/decorators/classes/entity-decorator.js +23 -20
  56. package/lib/decorators/classes/entity-decorator.js.map +1 -1
  57. package/lib/decorators/classes/migration-decorator.js +7 -13
  58. package/lib/decorators/classes/migration-decorator.js.map +1 -1
  59. package/lib/decorators/classes/provider-decorator.js +7 -13
  60. package/lib/decorators/classes/provider-decorator.js.map +1 -1
  61. package/lib/decorators/classes/repository-decorator.js +7 -13
  62. package/lib/decorators/classes/repository-decorator.js.map +1 -1
  63. package/lib/decorators/classes/subscriber-decorator.js +8 -13
  64. package/lib/decorators/classes/subscriber-decorator.js.map +1 -1
  65. package/lib/decorators/http/http-decorators.js +4 -4
  66. package/lib/decorators/http/http-decorators.js.map +1 -1
  67. package/lib/decorators/http/http-methods-decorators.js +19 -25
  68. package/lib/decorators/http/http-methods-decorators.js.map +1 -1
  69. package/lib/decorators/http/http-params-decorators.js +7 -9
  70. package/lib/decorators/http/http-params-decorators.js.map +1 -1
  71. package/lib/dependency-injection/di-container.js +13 -18
  72. package/lib/dependency-injection/di-container.js.map +1 -1
  73. package/lib/endpoint-context.js +1196 -1543
  74. package/lib/endpoint-context.js.map +1 -1
  75. package/lib/entity-process.js +102 -112
  76. package/lib/entity-process.js.map +1 -1
  77. package/lib/env.js +2 -2
  78. package/lib/env.js.map +1 -1
  79. package/lib/formly/formly-group-wrapper-component.js +45 -23
  80. package/lib/formly/formly-group-wrapper-component.js.map +1 -1
  81. package/lib/formly/formly-repeat-component.js +74 -27
  82. package/lib/formly/formly-repeat-component.js.map +1 -1
  83. package/lib/formly/formly.models.js.map +1 -1
  84. package/lib/formly/fromly.js +57 -61
  85. package/lib/formly/fromly.js.map +1 -1
  86. package/lib/formly/type-from-entity.js +11 -16
  87. package/lib/formly/type-from-entity.js.map +1 -1
  88. package/lib/get-response-value.js +22 -33
  89. package/lib/get-response-value.js.map +1 -1
  90. package/lib/helpers/class-helpers.js +62 -73
  91. package/lib/helpers/class-helpers.js.map +1 -1
  92. package/lib/helpers/taon-helpers.js +33 -31
  93. package/lib/helpers/taon-helpers.js.map +1 -1
  94. package/lib/index._auto-generated_.d.ts +1 -0
  95. package/lib/index._auto-generated_.js.map +1 -1
  96. package/lib/index.d.ts +1 -25
  97. package/lib/index.js +44 -41
  98. package/lib/index.js.map +1 -1
  99. package/lib/inject.js +15 -15
  100. package/lib/inject.js.map +1 -1
  101. package/lib/models.d.ts +5 -0
  102. package/lib/models.js +124 -100
  103. package/lib/models.js.map +1 -1
  104. package/lib/orm.js +13 -27
  105. package/lib/orm.js.map +1 -1
  106. package/lib/realtime/realtime-client.js +70 -65
  107. package/lib/realtime/realtime-client.js.map +1 -1
  108. package/lib/realtime/realtime-core.js +48 -29
  109. package/lib/realtime/realtime-core.js.map +1 -1
  110. package/lib/realtime/realtime-server.js +81 -80
  111. package/lib/realtime/realtime-server.js.map +1 -1
  112. package/lib/realtime/realtime-strategy/index.js +18 -5
  113. package/lib/realtime/realtime-strategy/index.js.map +1 -1
  114. package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js +132 -172
  115. package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -1
  116. package/lib/realtime/realtime-strategy/realtime-strategy-mock.js +158 -241
  117. package/lib/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -1
  118. package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js +18 -29
  119. package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
  120. package/lib/realtime/realtime-strategy/realtime-strategy.js +9 -13
  121. package/lib/realtime/realtime-strategy/realtime-strategy.js.map +1 -1
  122. package/lib/realtime/realtime-subs-manager.js +29 -30
  123. package/lib/realtime/realtime-subs-manager.js.map +1 -1
  124. package/lib/realtime/realtime.models.js.map +1 -1
  125. package/lib/storage.js +1 -1
  126. package/lib/storage.js.map +1 -1
  127. package/lib/symbols.js +62 -66
  128. package/lib/symbols.js.map +1 -1
  129. package/lib/ui/directives/index.js +2 -2
  130. package/lib/ui/directives/index.js.map +1 -1
  131. package/lib/ui/directives/view-mode.js.map +1 -1
  132. package/lib/ui/index.js +2 -2
  133. package/lib/ui/index.js.map +1 -1
  134. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +2 -0
  135. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +5 -0
  136. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +1 -0
  137. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +29 -0
  138. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +2 -0
  139. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +1 -0
  140. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +5 -0
  141. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +1 -0
  142. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +8 -0
  143. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +2 -0
  144. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +5 -0
  145. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +1 -0
  146. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +13 -0
  147. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +2 -0
  148. package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
  149. package/lib/ui/taon-admin-mode-configuration/index.js.map +1 -1
  150. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +5 -0
  151. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js +3 -0
  152. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +1 -0
  153. package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +14 -0
  154. package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
  155. package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +2 -0
  156. package/lib/ui/taon-admin-mode-configuration/taon-admin.models.js.map +1 -1
  157. package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
  158. package/lib/ui/taon-github-fork-me-corner/index.js.map +1 -1
  159. package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
  160. package/lib/ui/taon-github-fork-me-ribbon/index.js.map +1 -1
  161. package/lib/ui/taon-notifications/index.js +15 -2
  162. package/lib/ui/taon-notifications/index.js.map +1 -1
  163. package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
  164. package/lib/ui/taon-notifications/taon-notifications.models.js.map +1 -1
  165. package/lib/ui/taon-progress-bar/index.js +2 -2
  166. package/lib/ui/taon-progress-bar/index.js.map +1 -1
  167. package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +2 -1
  168. package/lib/ui/taon-session-passcode/index.js +2 -2
  169. package/lib/ui/taon-session-passcode/index.js.map +1 -1
  170. package/lib/ui/taon-table/index.js +2 -2
  171. package/lib/ui/taon-table/index.js.map +1 -1
  172. package/lib/ui/taon.models.js.map +1 -1
  173. package/lib/validators.js +48 -16
  174. package/lib/validators.js.map +1 -1
  175. package/migrations/index.js +15 -2
  176. package/migrations/index.js.map +1 -1
  177. package/migrations/migrations_index._auto-generated_.d.ts +1 -0
  178. package/migrations/migrations_index._auto-generated_.js.map +1 -1
  179. package/old-app .d.ts +1 -0
  180. package/old-app .js +67 -78
  181. package/old-app .js.map +1 -1
  182. package/package.json +18 -65
  183. package/playground.d.ts +1 -0
  184. package/playground.js.map +1 -1
  185. package/src.d.ts +1 -1
  186. package/taon.jsonc +39 -42
  187. package/tmp-environment.json +8 -401
  188. package/websql/esm2022/lib/endpoint-context.mjs +4 -1
  189. package/websql/esm2022/lib/index.mjs +2 -2
  190. package/websql/esm2022/lib/models.mjs +1 -1
  191. package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +11 -11
  192. package/websql/fesm2022/taon.mjs +3 -0
  193. package/websql/fesm2022/taon.mjs.map +1 -1
  194. package/websql/lib/models.d.ts +5 -0
  195. package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +4 -4
  196. package/browser/package.json +0 -25
  197. package/websql/package.json +0 -25
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <p style="text-align: center;"><img src="./__images/logo-header-bold-taon.png" ></p>
1
+ <p style="text-align: center;"><img src="./images/logo-header-bold-taon.png" ></p>
2
2
 
3
3
  <!-- cspell: disable-next-line -->
4
4
  TAON **T**ypescript **A**ngular **O**rm **N**ode )
@@ -6,50 +6,90 @@ TAON **T**ypescript **A**ngular **O**rm **N**ode )
6
6
 
7
7
  ( BETA VERSION - MAJOR REFACTOR IN PROGRESS )
8
8
 
9
- **Taon** 🔥🔥🔥 is a solution (**global cli tool** & **framework**) for
9
+ **Taon** 🔥🔥🔥 is a solution (**global cli tool** & **framework** & **cloud**) for
10
10
 
11
11
  \+
12
- [TypesScript](https://www.typescriptlang.org/)
12
+ [TypesScript](https://www.typescriptlang.org/) isomorphic libraries/backends/frontends
13
13
 
14
14
  \+
15
- [Angular](https://angular.io/) (PWA)
15
+ [Angular](https://angular.io/) libraries and PWA-s
16
16
 
17
- \+ Orm with [TypeORM](https://typeorm.io/)
18
- - [sql.js](https://sql.js.org) - NODEJS SERVER MODE
19
- - [sql.js](https://sql.js.org) - *WEBSQL SERVER MODE
20
- - [mysql](https://www.mysql.com/) - SERVER IN DOCKER (work in progress)
17
+ \+ Databases with Orm ([TypeORM](https://typeorm.io/)) <br>
18
+ - [sql.js](https://sql.js.org) - NodeJs Server Mode <br>
19
+ - [sql.js](https://sql.js.org) - WEBSQL Server Mode (backend in browser) <br>
20
+ - [mysql](https://www.mysql.com/) - Mysql Server Mode (inside docker) <br>
21
21
 
22
22
  \+
23
- [NodeJS](https://nodejs.org/en/)
23
+ [NodeJS](https://nodejs.org/en/) backends
24
24
 
25
25
  \+
26
- [RxJs](https://rxjs.dev/) / [NgRx](https://ngrx.io/) (optional)
26
+ [Electron](https://www.electronjs.org/) desktop apps
27
27
 
28
28
  \+
29
- [Electron](https://www.electronjs.org/) desktop apps (work in progress)
29
+ [Ionic](https://www.electronjs.org/) mobile apps
30
30
 
31
31
  \+
32
- [Storybook](https://storybook.js.org/docs/get-started/angular) showcase (work in progress)
32
+ [Visual Studio Code](https://www.electronjs.org/) plugins
33
33
 
34
- <ins>backend/frontend [*isomorphic](https://en.wikipedia.org/wiki/Isomorphic_JavaScript) apps/libs.</ins>
34
+ \+ Documentation:<br>
35
+ - [MkDocs](https://www.mkdocs.org/) beautifull material wrapper for *.md docs files <br>
36
+ - [Storybook](https://storybook.js.org/docs/get-started/angular) ui elements documentation <br>
37
+ - [Compodoc](https://compodoc.app/) docs from comments <br>
38
+
39
+ backend/frontend **[*isomorphic](https://en.wikipedia.org/wiki/Isomorphic_JavaScript)** apps/libs.
35
40
 
36
- **[READ DOCUMENTATION](https://taon.io/#/docs)**
37
-
38
- <br>
39
- <br>
41
+ **[READ DOCUMENTATION](https://taon.dev/#/docs)**
40
42
 
41
43
  ### Initial requirements of taon
42
- 1. (windows) Installed gitbash https://gitforwindows.org
44
+ 1. Git (gitbash [https://gitforwindows.org](https://gitforwindows.org) on windows)
43
45
 
44
- 2. (linux with GUI) Increased watchers limit:
45
- ```/* cspell: disable-next-line */
46
+ 2. Increased watchers limit (only on linux):
47
+ ```bash
46
48
  echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
47
49
  ```
50
+ 3. Installed [python3](https://www.python.org/downloads/release/python-3123/)
51
+ and [mkdocs](https://www.mkdocs.org/user-guide/installation/):<br>
52
+
53
+ Windwos/Linux
54
+ ```bash
55
+ pip3 install mkdocs
56
+ pip3 install mkdocs-material --user
57
+ ```
58
+ MacOs
59
+ ```bash
60
+ brew install mkdocs
61
+ brew install mkdocs-material
62
+ ```
63
+
64
+ ## Supported OS-es:
65
+ - Win10, Win11 (gitbash)
66
+ - MacOS
67
+ - Linux
68
+
69
+
70
+ ## Required version of NodeJS
71
+ - Windows 10/11 (gitbash): >= v18
72
+ - MacOS: >= v18
73
+ - Linux: >= v18
74
+
75
+
76
+ ## How to install taon
77
+ ```
78
+ npm i -g taon
79
+ ```
80
+
81
+
82
+ ## How to uninstall taon from local machine
83
+ Taon stores a big global container (in ~/.taon) for npm packages <br>
84
+ that are being shared across all taon projects.
85
+
86
+ ```bash
87
+ npm uninstall -g taon
88
+ rm -rf ~/.taon # taon local packages repository
89
+ ```
48
90
 
49
- <br>
50
- <br>
51
91
 
52
- ### Projects that are part of taon.dev:
92
+ ## Projects that are part of taon.dev:
53
93
  - taon https://github.com/darekf77/taon
54
94
  + framework library
55
95
  - tnp https://github.com/darekf77/tnp
@@ -83,32 +123,53 @@ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo s
83
123
 
84
124
 
85
125
 
86
- ### Global npm dependencies installed with taon
126
+ ## Global npm dependencies installed with taon
87
127
  Installation happens when you first time use taon
88
- <!-- /* cSpell:disable */ -->
89
- <pre>
90
- { name: 'ncc', version: '0.36.0', installName: '@vercel/ncc' },
91
- { name: 'extract-zip', version: '1.6.7' },
92
- { name: 'cpr' },
93
- { name: 'check-node-version' },
94
- { name: 'npm-run', version: '4.1.2' },
95
- { name: 'rimraf', version: '3.0.2' },
96
- { name: 'mkdirp' },
97
- { name: 'renamer', version: '2.0.1' },
98
- { name: 'nodemon' },
99
- { name: 'madge' },
100
- { name: 'yarn' },
101
- { name: 'taon-http-server' },
102
- { name: 'prettier' },
103
- { name: 'fkill', installName: 'fkill-cli' },
104
- { name: 'mocha' },
105
- { name: 'jest' },
106
- { name: 'ts-node' },
107
- { name: 'taon-vsce' },
108
- { name: 'webpack-bundle-analyzer' },
109
- { name: 'babel', installName: 'babel-cli' },
110
- { name: 'javascript-obfuscator', version: '4' },
111
- { name: 'uglifyjs', installName: 'uglify-js' },
112
- </pre>
113
-
114
- <!-- /* cSpell:enable */ -->
128
+ ```jsonc
129
+ [
130
+ // tool for minifying js (WILL EB REMOVED SOON FROM GLOBAL DEPS)
131
+ { name: 'ncc', version: '0.36.0', installName: '@vercel/ncc' },
132
+ // zip extractor.. no needed anymore (WILL EB REMOVED SOON FROM GLOBAL DEPS)
133
+ { name: 'extract-zip', version: '1.6.7' },
134
+ // copy catalogs (WILL EB REMOVED SOON FROM GLOBAL DEPS)
135
+ { name: 'cpr' },
136
+ // check version of your nodejs
137
+ { name: 'check-node-version' },
138
+ // alternative not npx ( it wil not download package from npm if is not installed )
139
+ { name: 'npm-run', version: '4.1.2' },
140
+ //handy for removing files
141
+ { name: 'rimraf', version: '3.0.2' },
142
+ //handy for recreating catalogs
143
+ { name: 'mkdirp' },
144
+ // rename files in build (WILL EB REMOVED SOON FROM GLOBAL DEPS)
145
+ { name: 'renamer', version: '2.0.1' },
146
+ // run/watch node server (WILL EB REMOVED SOON FROM GLOBAL DEPS)
147
+ { name: 'nodemon' },
148
+ // check circural deps (WILL EB REMOVED SOON FROM GLOBAL DEPS)
149
+ { name: 'madge' },
150
+ // package manager
151
+ { name: 'yarn' },
152
+ // https server with --base-href
153
+ { name: 'taon-http-server' },
154
+ // code formatter
155
+ { name: 'prettier' },
156
+ // process killer
157
+ { name: 'fkill', installName: 'fkill-cli' },
158
+ // for unit tests runner (WILL EB REMOVED SOON FROM GLOBAL DEPS)
159
+ { name: 'mocha' },
160
+ // for unit tests runner
161
+ { name: 'jest' },
162
+ // run ts code directly
163
+ { name: 'ts-node' },
164
+ // oficial vsce package striped out from some restrictions
165
+ { name: 'taon-vsce' },
166
+ // analyze you final bundle (WILL EB REMOVED SOON FROM GLOBAL DEPS)
167
+ { name: 'webpack-bundle-analyzer' },
168
+ // strip types from TypeScript
169
+ { name: 'babel', installName: 'babel-cli' },
170
+ // create js bundle that are not human readable (WILL EB REMOVED SOON FROM GLOBAL DEPS)
171
+ { name: 'javascript-obfuscator', version: '4' },
172
+ // minify js (WILL EB REMOVED SOON FROM GLOBAL DEPS)
173
+ { name: 'uglifyjs', installName: 'uglify-js' },
174
+ ]
175
+ ```
@@ -1,6 +1,6 @@
1
1
  THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.
2
2
 
3
- Assets from this folder are being shipped with this npm package (taon@18.0.25)
3
+ Assets from this folder are being shipped with this npm package (taon@18.0.26)
4
4
  created from this project.
5
5
 
6
6
  THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.