taon 21.0.124 → 21.0.126

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 (63) hide show
  1. package/VERIFIED-BUILD-DATA.jsonc +2 -2
  2. package/bin/start.js +1 -1
  3. package/browser/fesm2022/taon-browser.mjs +50 -24
  4. package/browser/fesm2022/taon-browser.mjs.map +1 -1
  5. package/browser/package.json +1 -1
  6. package/browser/types/taon-browser.d.ts +26 -27
  7. package/browser-prod/fesm2022/taon-browser-prod.mjs +51 -25
  8. package/browser-prod/fesm2022/taon-browser-prod.mjs.map +1 -1
  9. package/browser-prod/package.json +1 -1
  10. package/browser-prod/types/taon-browser-prod.d.ts +27 -28
  11. package/browser-prod.split-namespaces.json +10 -2
  12. package/icon-menu-taon.svg +15 -15
  13. package/lib/build-info._auto-generated_.d.ts +1 -1
  14. package/lib/build-info._auto-generated_.js +1 -1
  15. package/lib/index.d.ts +26 -27
  16. package/lib/index.js +50 -19
  17. package/lib/index.js.map +1 -1
  18. package/lib/package.json +1 -1
  19. package/lib/ui/index.js +2 -2
  20. package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
  21. package/lib-esm/app.electron.d.ts +1 -1
  22. package/lib-esm/app.electron.js +1 -1
  23. package/lib-esm/app.vscode.d.ts +1 -1
  24. package/lib-esm/app.vscode.js +1 -1
  25. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  26. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  27. package/lib-esm/lib/index.d.ts +26 -27
  28. package/lib-esm/lib/index.js +50 -19
  29. package/lib-esm/lib/index.js.map +1 -1
  30. package/lib-esm/lib/ui/index.d.ts +1 -1
  31. package/lib-esm/lib/ui/index.js +1 -1
  32. package/lib-esm/lib/ui/taon-admin-mode-configuration/index.d.ts +1 -1
  33. package/lib-esm/lib/ui/taon-admin-mode-configuration/index.js +1 -1
  34. package/lib-prod/base-classes/base-controller.js.map +1 -1
  35. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  36. package/lib-prod/build-info._auto-generated_.js +1 -1
  37. package/lib-prod/create-context.js.map +1 -1
  38. package/lib-prod/decorators/http/http-methods-decorators.js.map +1 -1
  39. package/lib-prod/endpoint-context-storage.js.map +1 -1
  40. package/lib-prod/endpoint-context.js.map +1 -1
  41. package/lib-prod/helpers/class-helpers.js.map +1 -1
  42. package/lib-prod/index.d.ts +26 -27
  43. package/lib-prod/index.js +50 -19
  44. package/lib-prod/index.js.map +1 -1
  45. package/lib-prod/package.json +1 -1
  46. package/lib-prod/realtime/realtime-client.js.map +1 -1
  47. package/lib-prod/realtime/realtime-core.js.map +1 -1
  48. package/lib-prod/realtime/realtime-server.js.map +1 -1
  49. package/lib-prod/ui/index.d.ts +1 -1
  50. package/lib-prod/ui/index.js +1 -1
  51. package/lib-prod/ui/taon-admin-mode-configuration/index.d.ts +1 -1
  52. package/lib-prod/ui/taon-admin-mode-configuration/index.js +1 -1
  53. package/lib-prod.split-namespaces.json +10 -2
  54. package/package.json +1 -1
  55. package/websql/fesm2022/taon-websql.mjs +50 -24
  56. package/websql/fesm2022/taon-websql.mjs.map +1 -1
  57. package/websql/package.json +1 -1
  58. package/websql/types/taon-websql.d.ts +26 -27
  59. package/websql-prod/fesm2022/taon-websql-prod.mjs +51 -25
  60. package/websql-prod/fesm2022/taon-websql-prod.mjs.map +1 -1
  61. package/websql-prod/package.json +1 -1
  62. package/websql-prod/types/taon-websql-prod.d.ts +27 -28
  63. package/websql-prod.split-namespaces.json +10 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "commitHash": "96473d2bed40abbf52ce9758df9eb86e034496c3",
2
+ "commitHash": "30f56c0259155e029160f5b518dba91ee2c3b67c",
3
3
  "commitName": "chore: update",
4
- "commitDate": "17-06-2026 19:35:21"
4
+ "commitDate": "03-07-2026 16:37:31"
5
5
  }
package/bin/start.js CHANGED
@@ -1,4 +1,4 @@
1
- global.frameworkName = 'taon';
1
+ global.frameworkName = 'taon';
2
2
  Error.stackTraceLimit = 100;
3
3
  global.i0 = {
4
4
  defineInjectable: function () { }
@@ -7064,11 +7064,6 @@ const TaonBaseContext = createContext(() => ({
7064
7064
  },
7065
7065
  }));
7066
7066
 
7067
- var baseContext = /*#__PURE__*/Object.freeze({
7068
- __proto__: null,
7069
- TaonBaseContext: TaonBaseContext
7070
- });
7071
-
7072
7067
  /**
7073
7068
  * Controller decorator
7074
7069
  */
@@ -8656,9 +8651,22 @@ function TaonProvider(options) {
8656
8651
  class TaonProviderOptions extends DecoratorAbstractOpt {
8657
8652
  }
8658
8653
 
8654
+ //#region import & exports
8655
+ //#endregion
8659
8656
  // TODO export all things
8660
8657
  var Taon;
8661
8658
  (function (Taon) {
8659
+ //#region i18n
8660
+ /**
8661
+ * In runtime this becomes relative path to current file
8662
+ */
8663
+ Taon.__FILE_RELATIVE_PATH = '';
8664
+ /**
8665
+ * In runtime this becomes taon translation impors for specyfic file
8666
+ */
8667
+ Taon.LANG_IMPORT_MAP = {};
8668
+ //#endregion
8669
+ //#region taon loader
8662
8670
  /**
8663
8671
  * Remove global taon loader from env.ts [loading.preAngularBootstrap]
8664
8672
  */
@@ -8676,6 +8684,40 @@ var Taon;
8676
8684
  }, afterMS);
8677
8685
  });
8678
8686
  };
8687
+ //#endregion
8688
+ //#region taon asset
8689
+ Taon.asset = (relativePathToAssetFromProjectRoot) => {
8690
+ // Taon file parser is replacing everything
8691
+ return relativePathToAssetFromProjectRoot;
8692
+ };
8693
+ //#endregion
8694
+ //#region taon asset from
8695
+ /**
8696
+ * taon parser is going to replace this function with array with assets.
8697
+ * Example:
8698
+ * [ ]
8699
+ * =>
8700
+ * [ 'assets/assets-for/my-pacakge/images/pic1.png' ,'assets/assets-for/my-pacakge/images/pic2.png']
8701
+ */
8702
+ Taon.assetsFrom = (relativePathToAssetFromProjectRoot) => {
8703
+ // Taon file parser is replacing everything
8704
+ return [];
8705
+ };
8706
+ //#endregion
8707
+ //#region taon asset list from
8708
+ /**
8709
+ * taon parser is going to replace this function with array with assets.
8710
+ * Example:
8711
+ * [ ]
8712
+ * =>
8713
+ * [ 'pic1.png' ,'pic2.png']
8714
+ */
8715
+ Taon.assetsListFrom = (relativePathToAssetFromProjectRoot) => {
8716
+ // Taon file parser is replacing everything
8717
+ return [];
8718
+ };
8719
+ //#endregion
8720
+ //#region taon error
8679
8721
  Taon.error = (opt) => {
8680
8722
  throw () => {
8681
8723
  if (typeof opt === 'string') {
@@ -8687,6 +8729,7 @@ var Taon;
8687
8729
  };
8688
8730
  };
8689
8731
  Taon.getResponseValue = getResponseValue;
8732
+ //#endregion
8690
8733
  //#region class decorators
8691
8734
  // TODO new 5.8 typescript is not allowing this
8692
8735
  // export import Controller = controllerDecorator.TaonController;
@@ -8703,27 +8746,10 @@ var Taon;
8703
8746
  Taon.isWebSQL = UtilsOs.isWebSQL;
8704
8747
  Taon.isElectron = UtilsOs.isElectron;
8705
8748
  //#endregion
8749
+ //#region create context
8706
8750
  Taon.createContext = createContext;
8707
8751
  Taon.createContextTemplate = createContextTemplate;
8708
- /**
8709
- * @deprecated
8710
- * use createContext instead
8711
- */
8712
- Taon.init = async (options) => {
8713
- const TaonBaseContext = (await Promise.resolve().then(function () { return baseContext; }))
8714
- .TaonBaseContext;
8715
- const context = Taon.createContext(() => ({
8716
- appId: 'default-app-not-used-anymore',
8717
- contextName: 'default',
8718
- host: options.host,
8719
- contexts: { TaonBaseContext },
8720
- database: true,
8721
- entities: Array.from(options.entities),
8722
- controllers: Array.from(options.controllers),
8723
- }));
8724
- await context.initialize();
8725
- return context;
8726
- };
8752
+ //#endregion
8727
8753
  })(Taon || (Taon = {}));
8728
8754
  //#region taon flattening map
8729
8755
  const TAON_FLATTEN_MAPPING = {