taon 19.0.65 → 19.0.67

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 (97) hide show
  1. package/README.md +160 -160
  2. package/bin/start.js +281 -281
  3. package/bin/taon +6 -6
  4. package/bin/taon-debug +5 -5
  5. package/bin/taon-debug-brk +5 -5
  6. package/browser/README.md +24 -24
  7. package/browser/fesm2022/taon.mjs +288 -81
  8. package/browser/fesm2022/taon.mjs.map +1 -1
  9. package/browser/lib/base-classes/base-class.d.ts +8 -1
  10. package/browser/lib/base-classes/base-controller.d.ts +56 -4
  11. package/browser/lib/base-classes/base-crud-controller.d.ts +5 -4
  12. package/browser/lib/base-classes/base-repository.d.ts +3 -0
  13. package/browser/lib/config/method-config.d.ts +1 -0
  14. package/browser/lib/decorators/http/http-decorators.d.ts +2 -1
  15. package/browser/lib/decorators/http/http-methods-decorators.d.ts +35 -4
  16. package/browser/lib/decorators/http/http-params-decorators.d.ts +3 -0
  17. package/browser/lib/endpoint-context.d.ts +3 -0
  18. package/browser/lib/get-response-value.d.ts +1 -1
  19. package/browser/lib/helpers/taon-helpers.d.ts +1 -0
  20. package/browser/lib/index.d.ts +4 -0
  21. package/browser/lib/models.d.ts +4 -10
  22. package/browser/lib/realtime/realtime-client.d.ts +18 -14
  23. package/browser/lib/realtime/realtime-server.d.ts +28 -3
  24. package/browser/lib/realtime/realtime.models.d.ts +15 -2
  25. package/browser/package.json +1 -1
  26. package/icon-menu-taon.svg +15 -15
  27. package/lib/base-classes/base-class.d.ts +8 -1
  28. package/lib/base-classes/base-class.js +20 -2
  29. package/lib/base-classes/base-class.js.map +1 -1
  30. package/lib/base-classes/base-controller.d.ts +57 -5
  31. package/lib/base-classes/base-controller.js +83 -12
  32. package/lib/base-classes/base-controller.js.map +1 -1
  33. package/lib/base-classes/base-crud-controller.d.ts +5 -4
  34. package/lib/base-classes/base-crud-controller.js +29 -17
  35. package/lib/base-classes/base-crud-controller.js.map +1 -1
  36. package/lib/base-classes/base-repository.d.ts +3 -0
  37. package/lib/base-classes/base-repository.js +3 -0
  38. package/lib/base-classes/base-repository.js.map +1 -1
  39. package/lib/build-info._auto-generated_.d.ts +1 -1
  40. package/lib/build-info._auto-generated_.js +1 -1
  41. package/lib/config/method-config.d.ts +1 -0
  42. package/lib/config/method-config.js.map +1 -1
  43. package/lib/decorators/http/http-decorators.d.ts +2 -1
  44. package/lib/decorators/http/http-decorators.js +2 -1
  45. package/lib/decorators/http/http-decorators.js.map +1 -1
  46. package/lib/decorators/http/http-methods-decorators.d.ts +35 -4
  47. package/lib/decorators/http/http-methods-decorators.js +34 -1
  48. package/lib/decorators/http/http-methods-decorators.js.map +1 -1
  49. package/lib/decorators/http/http-params-decorators.d.ts +3 -0
  50. package/lib/decorators/http/http-params-decorators.js +3 -0
  51. package/lib/decorators/http/http-params-decorators.js.map +1 -1
  52. package/lib/endpoint-context.d.ts +3 -0
  53. package/lib/endpoint-context.js +152 -122
  54. package/lib/endpoint-context.js.map +1 -1
  55. package/lib/get-response-value.d.ts +1 -1
  56. package/lib/get-response-value.js +0 -4
  57. package/lib/get-response-value.js.map +1 -1
  58. package/lib/helpers/taon-helpers.d.ts +1 -0
  59. package/lib/helpers/taon-helpers.js +6 -0
  60. package/lib/helpers/taon-helpers.js.map +1 -1
  61. package/lib/index.d.ts +4 -0
  62. package/lib/index.js +8 -2
  63. package/lib/index.js.map +1 -1
  64. package/lib/models.d.ts +4 -10
  65. package/lib/models.js +5 -23
  66. package/lib/models.js.map +1 -1
  67. package/lib/realtime/realtime-client.d.ts +18 -14
  68. package/lib/realtime/realtime-client.js +33 -25
  69. package/lib/realtime/realtime-client.js.map +1 -1
  70. package/lib/realtime/realtime-server.d.ts +28 -3
  71. package/lib/realtime/realtime-server.js +28 -2
  72. package/lib/realtime/realtime-server.js.map +1 -1
  73. package/lib/realtime/realtime.models.d.ts +15 -2
  74. package/lib/ui/index.js +2 -2
  75. package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
  76. package/package.json +1 -1
  77. package/scss/global.scss +9 -12
  78. package/websql/README.md +24 -24
  79. package/websql/fesm2022/taon.mjs +289 -83
  80. package/websql/fesm2022/taon.mjs.map +1 -1
  81. package/websql/lib/base-classes/base-class.d.ts +8 -1
  82. package/websql/lib/base-classes/base-controller.d.ts +56 -4
  83. package/websql/lib/base-classes/base-crud-controller.d.ts +5 -4
  84. package/websql/lib/base-classes/base-repository.d.ts +3 -0
  85. package/websql/lib/config/method-config.d.ts +1 -0
  86. package/websql/lib/decorators/http/http-decorators.d.ts +2 -1
  87. package/websql/lib/decorators/http/http-methods-decorators.d.ts +35 -4
  88. package/websql/lib/decorators/http/http-params-decorators.d.ts +3 -0
  89. package/websql/lib/endpoint-context.d.ts +3 -0
  90. package/websql/lib/get-response-value.d.ts +1 -1
  91. package/websql/lib/helpers/taon-helpers.d.ts +1 -0
  92. package/websql/lib/index.d.ts +4 -0
  93. package/websql/lib/models.d.ts +4 -10
  94. package/websql/lib/realtime/realtime-client.d.ts +18 -14
  95. package/websql/lib/realtime/realtime-server.d.ts +28 -3
  96. package/websql/lib/realtime/realtime.models.d.ts +15 -2
  97. package/websql/package.json +1 -1
package/README.md CHANGED
@@ -1,160 +1,160 @@
1
- <p style="text-align: center;"><img src="./images/logo-header-bold-taon.png" ></p>
2
-
3
- <!-- cspell: disable-next-line -->
4
- TAON **T**ypescript **A**ngular **O**rm **N**ode )
5
-
6
-
7
- ( ALPHA VERSION - For early testing and feedback only. )
8
-
9
- **Taon** 🔥🔥🔥 is a solution (**global cli tool** & **framework** & **cloud**) for
10
-
11
- \+
12
- [TypesScript](https://www.typescriptlang.org/) isomorphic libraries/backends/frontends
13
-
14
- \+
15
- [Angular](https://angular.io/) libraries and PWA-s
16
-
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
-
22
- \+
23
- [NodeJS](https://nodejs.org/en/) backends
24
-
25
- \+
26
- [Electron](https://www.electronjs.org/) desktop apps
27
-
28
- \+
29
- [Ionic](https://www.electronjs.org/) mobile apps
30
-
31
- \+
32
- [Visual Studio Code](https://www.electronjs.org/) plugins
33
-
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.
40
-
41
- **[READ DOCUMENTATION](https://taon.dev/#/docs)**
42
-
43
- ### Initial requirements of taon
44
- 1. Installed git
45
- (on windows only supported [gitbash](https://gitforwindows.org) or [new powershell pwsh](https://github.com/PowerShell/PowerShell))
46
-
47
- 2. Increased watchers limit (only on linux):
48
- ```bash
49
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
50
- ```
51
- 3. Installed [python3](https://www.python.org/downloads/release/python-3123/)
52
- and [mkdocs](https://www.mkdocs.org/user-guide/installation/):<br>
53
-
54
- Windwos/Linux
55
- ```bash
56
- pip3 install mkdocs
57
- pip3 install mkdocs-material --user
58
- ```
59
- MacOs
60
- ```bash
61
- brew install mkdocs
62
- brew install mkdocs-material
63
- ```
64
-
65
- ## Supported OS-es:
66
- - Win10, Win11 (gitbash)
67
- - MacOS
68
- - Linux
69
-
70
-
71
- ## Required version of NodeJS
72
- - Windows 10/11 (gitbash,pwsh): >= v18
73
- - MacOS: >= v18
74
- - Linux: >= v18
75
-
76
-
77
- ## How to install taon
78
- ```
79
- npm i -g taon
80
- ```
81
-
82
-
83
- ## How to uninstall taon from local machine
84
- Taon stores a big global container (in ~/.taon) for npm packages <br>
85
- that are being shared across all taon projects.
86
-
87
- ```bash
88
- npm uninstall -g taon
89
- rm -rf ~/.taon # taon local packages repository
90
- ```
91
-
92
-
93
- ## Projects that are part of taon.dev:
94
- - taon https://github.com/darekf77/taon
95
- + framework library
96
- - tnp https://github.com/darekf77/tnp
97
- + main cli / code structuring tool
98
- - taon-core https://github.com/darekf77/tnp-core
99
- + essential/core helpers for all projects
100
- - taon-class-helpers https://github.com/darekf77/typescript-class-helpers
101
- + helpers for OOP class names based
102
- - taon-config https://github.com/darekf77/tnp-config
103
- + config/models for general purpose
104
- - taon-cli https://github.com/darekf77/tnp-cli
105
- + helpers/abstraction for global cli tools NodeJS based
106
- - taon-helpers https://github.com/darekf77/tnp-helpers
107
- + extended core helpers
108
- - taon-json https://github.com/darekf77/json10
109
- + handle JSON in better way
110
- - taon-logger https://github.com/darekf77/ng2-logger
111
- + logging in isomorphic apps
112
- - taon-typeorm https://github.com/darekf77/taon-typeorm
113
- + TypeOrm fork
114
- - taon-type-sql https://github.com/darekf77/taon-type-sql
115
- + strongly type sql
116
- - taon-rest https://github.com/darekf77/ng2-rest
117
- + easy rest api
118
- - taon-incremental-watcher https://github.com/darekf77/incremental-compiler
119
- + abstraction for incremental builders NodeJS based
120
- - taon-storage https://github.com/darekf77/taon-storage
121
- + ts decorators based storage solution
122
- - taon-walk-object https://github.com/darekf77/lodash-walk-object
123
- + iterate over deep properties in object
124
-
125
-
126
-
127
- ## Global npm dependencies installed with taon
128
- Installation happens when you first time use taon
129
- ```jsonc
130
- [
131
- // zip extractor.. no needed anymore (WILL BE REMOVED SOON FROM GLOBAL DEPSS)
132
- { name: 'extract-zip', version: '1.6.7' },
133
- // check version of your nodejs
134
- { name: 'check-node-version' },
135
- // alternative not npx ( it wil not download package from npm if is not installed )
136
- { name: 'npm-run', version: '4.1.2' },
137
- //handy for removing files
138
- { name: 'rimraf', version: '3.0.2' },
139
- //handy for recreating catalogs
140
- { name: 'mkdirp' },
141
- // package manager
142
- { name: 'yarn' },
143
- // https server with --base-href
144
- { name: 'taon-http-server' },
145
- // code formatter
146
- { name: 'prettier' },
147
- // process killer
148
- { name: 'fkill', installName: 'fkill-cli' },
149
- // for unit tests runner
150
- { name: 'mocha' },
151
- // for unit tests runner
152
- { name: 'jest' },
153
- // run ts like js
154
- { name: 'ts-node' },
155
- // oficial vsce package striped out from some restrictions
156
- { name: 'taon-vsce' },
157
- // analyze you final bundle
158
- { name: 'webpack-bundle-analyzer' }
159
- ]
160
- ```
1
+ <p style="text-align: center;"><img src="./images/logo-header-bold-taon.png" ></p>
2
+
3
+ <!-- cspell: disable-next-line -->
4
+ TAON **T**ypescript **A**ngular **O**rm **N**ode )
5
+
6
+
7
+ ( ALPHA VERSION - For early testing and feedback only. )
8
+
9
+ **Taon** 🔥🔥🔥 is a solution (**global cli tool** & **framework** & **cloud**) for
10
+
11
+ \+
12
+ [TypesScript](https://www.typescriptlang.org/) isomorphic libraries/backends/frontends
13
+
14
+ \+
15
+ [Angular](https://angular.io/) libraries and PWA-s
16
+
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
+
22
+ \+
23
+ [NodeJS](https://nodejs.org/en/) backends
24
+
25
+ \+
26
+ [Electron](https://www.electronjs.org/) desktop apps
27
+
28
+ \+
29
+ [Ionic](https://www.electronjs.org/) mobile apps
30
+
31
+ \+
32
+ [Visual Studio Code](https://www.electronjs.org/) plugins
33
+
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.
40
+
41
+ **[READ DOCUMENTATION](https://taon.dev/#/docs)**
42
+
43
+ ### Initial requirements of taon
44
+ 1. Installed git
45
+ (on windows only supported [gitbash](https://gitforwindows.org) or [new powershell pwsh](https://github.com/PowerShell/PowerShell))
46
+
47
+ 2. Increased watchers limit (only on linux):
48
+ ```bash
49
+ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
50
+ ```
51
+ 3. Installed [python3](https://www.python.org/downloads/release/python-3123/)
52
+ and [mkdocs](https://www.mkdocs.org/user-guide/installation/):<br>
53
+
54
+ Windwos/Linux
55
+ ```bash
56
+ pip3 install mkdocs
57
+ pip3 install mkdocs-material --user
58
+ ```
59
+ MacOs
60
+ ```bash
61
+ brew install mkdocs
62
+ brew install mkdocs-material
63
+ ```
64
+
65
+ ## Supported OS-es:
66
+ - Win10, Win11 (gitbash)
67
+ - MacOS
68
+ - Linux
69
+
70
+
71
+ ## Required version of NodeJS
72
+ - Windows 10/11 (gitbash,pwsh): >= v18
73
+ - MacOS: >= v18
74
+ - Linux: >= v18
75
+
76
+
77
+ ## How to install taon
78
+ ```
79
+ npm i -g taon
80
+ ```
81
+
82
+
83
+ ## How to uninstall taon from local machine
84
+ Taon stores a big global container (in ~/.taon) for npm packages <br>
85
+ that are being shared across all taon projects.
86
+
87
+ ```bash
88
+ npm uninstall -g taon
89
+ rm -rf ~/.taon # taon local packages repository
90
+ ```
91
+
92
+
93
+ ## Projects that are part of taon.dev:
94
+ - taon https://github.com/darekf77/taon
95
+ + framework library
96
+ - tnp https://github.com/darekf77/tnp
97
+ + main cli / code structuring tool
98
+ - taon-core https://github.com/darekf77/tnp-core
99
+ + essential/core helpers for all projects
100
+ - taon-class-helpers https://github.com/darekf77/typescript-class-helpers
101
+ + helpers for OOP class names based
102
+ - taon-config https://github.com/darekf77/tnp-config
103
+ + config/models for general purpose
104
+ - taon-cli https://github.com/darekf77/tnp-cli
105
+ + helpers/abstraction for global cli tools NodeJS based
106
+ - taon-helpers https://github.com/darekf77/tnp-helpers
107
+ + extended core helpers
108
+ - taon-json https://github.com/darekf77/json10
109
+ + handle JSON in better way
110
+ - taon-logger https://github.com/darekf77/ng2-logger
111
+ + logging in isomorphic apps
112
+ - taon-typeorm https://github.com/darekf77/taon-typeorm
113
+ + TypeOrm fork
114
+ - taon-type-sql https://github.com/darekf77/taon-type-sql
115
+ + strongly type sql
116
+ - taon-rest https://github.com/darekf77/ng2-rest
117
+ + easy rest api
118
+ - taon-incremental-watcher https://github.com/darekf77/incremental-compiler
119
+ + abstraction for incremental builders NodeJS based
120
+ - taon-storage https://github.com/darekf77/taon-storage
121
+ + ts decorators based storage solution
122
+ - taon-walk-object https://github.com/darekf77/lodash-walk-object
123
+ + iterate over deep properties in object
124
+
125
+
126
+
127
+ ## Global npm dependencies installed with taon
128
+ Installation happens when you first time use taon
129
+ ```jsonc
130
+ [
131
+ // zip extractor.. no needed anymore (WILL BE REMOVED SOON FROM GLOBAL DEPSS)
132
+ { name: 'extract-zip', version: '1.6.7' },
133
+ // check version of your nodejs
134
+ { name: 'check-node-version' },
135
+ // alternative not npx ( it wil not download package from npm if is not installed )
136
+ { name: 'npm-run', version: '4.1.2' },
137
+ //handy for removing files
138
+ { name: 'rimraf', version: '3.0.2' },
139
+ //handy for recreating catalogs
140
+ { name: 'mkdirp' },
141
+ // package manager
142
+ { name: 'yarn' },
143
+ // https server with --base-href
144
+ { name: 'taon-http-server' },
145
+ // code formatter
146
+ { name: 'prettier' },
147
+ // process killer
148
+ { name: 'fkill', installName: 'fkill-cli' },
149
+ // for unit tests runner
150
+ { name: 'mocha' },
151
+ // for unit tests runner
152
+ { name: 'jest' },
153
+ // run ts like js
154
+ { name: 'ts-node' },
155
+ // oficial vsce package striped out from some restrictions
156
+ { name: 'taon-vsce' },
157
+ // analyze you final bundle
158
+ { name: 'webpack-bundle-analyzer' }
159
+ ]
160
+ ```