taon 21.0.125 → 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 +3 -3
  2. package/bin/start.js +1 -1
  3. package/browser/fesm2022/taon-browser.mjs +46 -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 +25 -27
  7. package/browser-prod/fesm2022/taon-browser-prod.mjs +47 -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 +26 -28
  11. package/browser-prod.split-namespaces.json +8 -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 +25 -27
  16. package/lib/index.js +46 -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 +25 -27
  28. package/lib-esm/lib/index.js +46 -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 +25 -27
  43. package/lib-prod/index.js +46 -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 +8 -2
  54. package/package.json +1 -1
  55. package/websql/fesm2022/taon-websql.mjs +46 -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 +25 -27
  59. package/websql-prod/fesm2022/taon-websql-prod.mjs +47 -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 +26 -28
  63. package/websql-prod.split-namespaces.json +8 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "commitHash": "164792cf39283c572a39ac98e1e23cd2a679efa5",
3
- "commitName": "feat: taon asset function",
4
- "commitDate": "20-06-2026 10:13:10"
2
+ "commitHash": "30f56c0259155e029160f5b518dba91ee2c3b67c",
3
+ "commitName": "chore: update",
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,10 +8684,40 @@ var Taon;
8676
8684
  }, afterMS);
8677
8685
  });
8678
8686
  };
8687
+ //#endregion
8688
+ //#region taon asset
8679
8689
  Taon.asset = (relativePathToAssetFromProjectRoot) => {
8680
8690
  // Taon file parser is replacing everything
8681
8691
  return relativePathToAssetFromProjectRoot;
8682
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
8683
8721
  Taon.error = (opt) => {
8684
8722
  throw () => {
8685
8723
  if (typeof opt === 'string') {
@@ -8691,6 +8729,7 @@ var Taon;
8691
8729
  };
8692
8730
  };
8693
8731
  Taon.getResponseValue = getResponseValue;
8732
+ //#endregion
8694
8733
  //#region class decorators
8695
8734
  // TODO new 5.8 typescript is not allowing this
8696
8735
  // export import Controller = controllerDecorator.TaonController;
@@ -8707,27 +8746,10 @@ var Taon;
8707
8746
  Taon.isWebSQL = UtilsOs.isWebSQL;
8708
8747
  Taon.isElectron = UtilsOs.isElectron;
8709
8748
  //#endregion
8749
+ //#region create context
8710
8750
  Taon.createContext = createContext;
8711
8751
  Taon.createContextTemplate = createContextTemplate;
8712
- /**
8713
- * @deprecated
8714
- * use createContext instead
8715
- */
8716
- Taon.init = async (options) => {
8717
- const TaonBaseContext = (await Promise.resolve().then(function () { return baseContext; }))
8718
- .TaonBaseContext;
8719
- const context = Taon.createContext(() => ({
8720
- appId: 'default-app-not-used-anymore',
8721
- contextName: 'default',
8722
- host: options.host,
8723
- contexts: { TaonBaseContext },
8724
- database: true,
8725
- entities: Array.from(options.entities),
8726
- controllers: Array.from(options.controllers),
8727
- }));
8728
- await context.initialize();
8729
- return context;
8730
- };
8752
+ //#endregion
8731
8753
  })(Taon || (Taon = {}));
8732
8754
  //#region taon flattening map
8733
8755
  const TAON_FLATTEN_MAPPING = {