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,6 +1,6 @@
1
1
  {
2
2
  "name": "taon/browser",
3
- "version": "21.0.124",
3
+ "version": "21.0.126",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0"
@@ -2,6 +2,7 @@
2
2
  import * as taon_browser from 'taon/browser';
3
3
  import * as expressType from 'express';
4
4
  import { Request, Response, Application, RequestHandler } from 'express';
5
+ import { TaonTranslationsMapImport } from '@taon-dev/i18n/browser';
5
6
  import { HttpResponse, Ng2RestAxiosRequestConfig, RestResponseWrapper, TaonServerMiddlewareInterceptOptions, TaonClientMiddlewareInterceptOptions, ResponseTypeAxios, HttpResponseError, RestErrorResponseWrapper, ModelValue, EncodeSchema } from 'ng2-rest/browser';
6
7
  export { TaonClientMiddlewareInterceptOptions, TaonServerMiddlewareInterceptOptions } from 'ng2-rest/browser';
7
8
  import { Server as Server$1 } from 'http';
@@ -2073,10 +2074,35 @@ declare class TaonAdminService {
2073
2074
  }
2074
2075
 
2075
2076
  declare namespace Taon {
2077
+ /**
2078
+ * In runtime this becomes relative path to current file
2079
+ */
2080
+ const __FILE_RELATIVE_PATH: string;
2081
+ /**
2082
+ * In runtime this becomes taon translation impors for specyfic file
2083
+ */
2084
+ const LANG_IMPORT_MAP: TaonTranslationsMapImport;
2076
2085
  /**
2077
2086
  * Remove global taon loader from env.ts [loading.preAngularBootstrap]
2078
2087
  */
2079
2088
  const removeLoader: (afterMS?: number) => Promise<void>;
2089
+ const asset: (relativePathToAssetFromProjectRoot: string) => string;
2090
+ /**
2091
+ * taon parser is going to replace this function with array with assets.
2092
+ * Example:
2093
+ * [ ]
2094
+ * =>
2095
+ * [ 'assets/assets-for/my-pacakge/images/pic1.png' ,'assets/assets-for/my-pacakge/images/pic2.png']
2096
+ */
2097
+ const assetsFrom: (relativePathToAssetFromProjectRoot: string) => string[];
2098
+ /**
2099
+ * taon parser is going to replace this function with array with assets.
2100
+ * Example:
2101
+ * [ ]
2102
+ * =>
2103
+ * [ 'pic1.png' ,'pic2.png']
2104
+ */
2105
+ const assetsListFrom: (relativePathToAssetFromProjectRoot: string) => string[];
2080
2106
  const error: (opt: Pick<RestErrorResponseWrapper, "message" | "status" | "details" | "code"> | string) => void;
2081
2107
  type ResponseHtml = Models.Http.Response<string>;
2082
2108
  type Response<T = string> = Models.Http.Response<T>;
@@ -2127,33 +2153,6 @@ declare namespace Taon {
2127
2153
  readonly server: taon_browser.RealtimeServer;
2128
2154
  };
2129
2155
  };
2130
- /**
2131
- * @deprecated
2132
- * use createContext instead
2133
- */
2134
- const init: (options: {
2135
- host: string;
2136
- entities: Function[];
2137
- controllers: Function[];
2138
- }) => Promise<{
2139
- readonly contextName: string;
2140
- readonly appId: string;
2141
- cloneAsRemote: (cloneOpt?: {
2142
- overrideRemoteHost?: string;
2143
- }) => /*elided*/ any;
2144
- cloneAsNormal: (cloneOpt?: {
2145
- overrideHost?: string;
2146
- }) => /*elided*/ any;
2147
- __ref(): Promise<EndpointContext>;
2148
- readonly __refSync: EndpointContext;
2149
- getClassInstance<T>(ctor: new (...args: any[]) => T): T;
2150
- getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
2151
- initialize: (overrideOptions?: Models.TaonInitializeParams) => Promise<EndpointContext>;
2152
- readonly realtime: {
2153
- readonly client: taon_browser.RealtimeClient;
2154
- readonly server: taon_browser.RealtimeServer;
2155
- };
2156
- }>;
2157
2156
  }
2158
2157
  declare const TAON_FLATTEN_MAPPING: {
2159
2158
  'taon/src': {
@@ -7056,11 +7056,6 @@ const TaonBaseContext = createContext(() => ({
7056
7056
  },
7057
7057
  }));
7058
7058
 
7059
- var baseContext = /*#__PURE__*/Object.freeze({
7060
- __proto__: null,
7061
- TaonBaseContext: TaonBaseContext
7062
- });
7063
-
7064
7059
  /**
7065
7060
  * Controller decorator
7066
7061
  */
@@ -8650,8 +8645,21 @@ function TaonProvider(options) {
8650
8645
  class TaonProviderOptions extends DecoratorAbstractOpt {
8651
8646
  }
8652
8647
 
8648
+ //#region import & exports
8649
+ //#endregion
8653
8650
  // TODO export all things
8654
8651
  //namespace Taon
8652
+ //#region i18n
8653
+ /**
8654
+ * In runtime this becomes relative path to current file
8655
+ */
8656
+ const Taon__NS____FILE_RELATIVE_PATH = '';
8657
+ /**
8658
+ * In runtime this becomes taon translation impors for specyfic file
8659
+ */
8660
+ const Taon__NS__LANG_IMPORT_MAP = {};
8661
+ //#endregion
8662
+ //#region taon loader
8655
8663
  /**
8656
8664
  * Remove global taon loader from env.ts [loading.preAngularBootstrap]
8657
8665
  */
@@ -8669,6 +8677,40 @@ const Taon__NS__removeLoader = (afterMS = 0) => {
8669
8677
  }, afterMS);
8670
8678
  });
8671
8679
  };
8680
+ //#endregion
8681
+ //#region taon asset
8682
+ const Taon__NS__asset = (relativePathToAssetFromProjectRoot) => {
8683
+ // Taon file parser is replacing everything
8684
+ return relativePathToAssetFromProjectRoot;
8685
+ };
8686
+ //#endregion
8687
+ //#region taon asset from
8688
+ /**
8689
+ * taon parser is going to replace this function with array with assets.
8690
+ * Example:
8691
+ * [ ]
8692
+ * =>
8693
+ * [ 'assets/assets-for/my-pacakge/images/pic1.png' ,'assets/assets-for/my-pacakge/images/pic2.png']
8694
+ */
8695
+ const Taon__NS__assetsFrom = (relativePathToAssetFromProjectRoot) => {
8696
+ // Taon file parser is replacing everything
8697
+ return [];
8698
+ };
8699
+ //#endregion
8700
+ //#region taon asset list from
8701
+ /**
8702
+ * taon parser is going to replace this function with array with assets.
8703
+ * Example:
8704
+ * [ ]
8705
+ * =>
8706
+ * [ 'pic1.png' ,'pic2.png']
8707
+ */
8708
+ const Taon__NS__assetsListFrom = (relativePathToAssetFromProjectRoot) => {
8709
+ // Taon file parser is replacing everything
8710
+ return [];
8711
+ };
8712
+ //#endregion
8713
+ //#region taon error
8672
8714
  const Taon__NS__error = (opt) => {
8673
8715
  throw () => {
8674
8716
  if (typeof opt === 'string') {
@@ -8680,6 +8722,7 @@ const Taon__NS__error = (opt) => {
8680
8722
  };
8681
8723
  };
8682
8724
  const Taon__NS__getResponseValue = getResponseValue;
8725
+ //#endregion
8683
8726
  //#region class decorators
8684
8727
  // TODO new 5.8 typescript is not allowing this
8685
8728
  // export import Controller = controllerDecorator.TaonController;
@@ -8696,27 +8739,10 @@ const Taon__NS__isNode = UtilsOs__NS__isNode;
8696
8739
  const Taon__NS__isWebSQL = UtilsOs__NS__isWebSQL;
8697
8740
  const Taon__NS__isElectron = UtilsOs__NS__isElectron;
8698
8741
  //#endregion
8742
+ //#region create context
8699
8743
  const Taon__NS__createContext = createContext;
8700
8744
  const Taon__NS__createContextTemplate = createContextTemplate;
8701
- /**
8702
- * @deprecated
8703
- * use createContext instead
8704
- */
8705
- const Taon__NS__init = async (options) => {
8706
- const TaonBaseContext = (await Promise.resolve().then(function () { return baseContext; }))
8707
- .TaonBaseContext;
8708
- const context = Taon__NS__createContext(() => ({
8709
- appId: 'default-app-not-used-anymore',
8710
- contextName: 'default',
8711
- host: options.host,
8712
- contexts: { TaonBaseContext },
8713
- database: true,
8714
- entities: Array.from(options.entities),
8715
- controllers: Array.from(options.controllers),
8716
- }));
8717
- await context.initialize();
8718
- return context;
8719
- };
8745
+ //#endregion
8720
8746
  //end of namespace Taon
8721
8747
  //#region taon flattening map
8722
8748
  const TAON_FLATTEN_MAPPING = {
@@ -8839,5 +8865,5 @@ const TAON_FLATTEN_MAPPING = {
8839
8865
  * Generated bundle index. Do not edit.
8840
8866
  */
8841
8867
 
8842
- export { BaseTaonClassesNames, Body, BooleanColumn, CURRENT_HOST_BACKEND_PORT, CURRENT_HOST_URL, ClassHelpers__NS__asyncHandler, ClassHelpers__NS__ensureClassConfig, ClassHelpers__NS__ensureMethodConfig, ClassHelpers__NS__getClassConfig, ClassHelpers__NS__getClassFnFromObject, ClassHelpers__NS__getControllerConfigs, ClassHelpers__NS__getFullInternalName, ClassHelpers__NS__getMethodsNames, ClassHelpers__NS__getName, ClassHelpers__NS__getOrginalClass, ClassHelpers__NS__getUniqueKey, ClassHelpers__NS__hasParentClassWithName, ClassHelpers__NS__isContextClassObject, ClassHelpers__NS__setName, ContextDbMigrations, ContextsEndpointStorage, ControllerConfig, Cookie, DELETE, DITaonContainer, DateTimeColumn, DecimalNumberColumn, DecoratorAbstractOpt, EndpointContext, EntityProcess, FormlyHorizontalWrapper, GET, HEAD, HTML, Header, KVexpirationsDbMetaKey, MethodConfig, MockNamespaceIpc, MockServerIpc, MockSocketIpc, Models__NS__ClassType, Models__NS__ClassTypeKey, Models__NS__DatabaseConfig, Models__NS__DatabaseConfigTypeOrm, Models__NS__DatabasesFolder, Models__NS__KVDatabaseConfig, NumberColumn, PATCH, POST, PUT, ParamConfig, Path, Query, RealtimeClient, RealtimeCore, RealtimeServer, RealtimeStrategy, RealtimeStrategyIpc, RealtimeStrategyMock, RealtimeStrategySocketIO, RealtimeSubsManager, RegisterComponentType, RegisterComponentTypeForEntity, RepeatTypeComponent, SimpleJsonColumn, String100Column, String200Column, String20Column, String45Column, String500Column, String50Column, StringColumn, Symbols__NS__REALTIME, Symbols__NS__classMethodsNames, Symbols__NS__ctxInClassOrClassObj, Symbols__NS__fullClassNameStaticProperty, Symbols__NS__metadata, Symbols__NS__old, Symbols__NS__orignalClassClonesObj, Symbols__NS__taonInstanceId, TAON_CONTEXT, TAON_FLATTEN_MAPPING, TaonAdmin, TaonAdminPanelMode, TaonAdminService, TaonBaseAbstractEntity, TaonBaseAngularService, TaonBaseClass, TaonBaseContext, TaonBaseController, TaonBaseCrudController, TaonBaseCustomRepository, TaonBaseEntity, TaonBaseFileUploadMiddleware, TaonBaseInjector, TaonBaseKvRepository, TaonBaseMiddleware, TaonBaseMigration, TaonBaseProvider, TaonBaseRepository, TaonBaseRepositoryClassName, TaonBaseSubscriberForEntity, TaonController, TaonControllerOptions, TaonEntity, TaonEntityKeysToOmitArr, TaonEntityOptions, TaonHelpers__NS__defaultType, TaonHelpers__NS__fillUpTo, TaonHelpers__NS__firstStringOrElemFromArray, TaonHelpers__NS__getExpressPath, TaonHelpers__NS__ipcKeyNameRequest, TaonHelpers__NS__ipcKeyNameResponse, TaonHelpers__NS__isGoodPath, TaonHelpers__NS__isPlainFileOrFolder, TaonHelpers__NS__parseJSONwithStringJSONs, TaonHelpers__NS__tryTransformParam, TaonHelpers__NS__websqlMocks, TaonMiddleware, TaonMiddlewareOptions, TaonMigration, TaonMigrationOptions, TaonProvider, TaonProviderOptions, TaonRepository, TaonRepositoryOptions, TaonRestResponseWrapper, TaonSubscriber, TaonSubscriberOptions, TaonTempDatabasesFolder, TaonTempRoutesFolder, Taon__NS__createContext, Taon__NS__createContextTemplate, Taon__NS__error, Taon__NS__getResponseValue, Taon__NS__init, Taon__NS__isBrowser, Taon__NS__isElectron, Taon__NS__isNode, Taon__NS__isWebSQL, Taon__NS__removeLoader, Validators__NS__checkIfMethodsWithReponseTYpeAlowed, Validators__NS__classNameVlidation, Validators__NS__preventUndefinedModel, Validators__NS__validateClassFunctions, apiPrefix, cloneObj, controllerConfigFrom, createContext, createContextTemplate, findTypeForEntity, getFromlyConfigFor, getRegisteredComponents, getResponseValue, getTransformFunction, singleTransform, typeFromEntity, typeFromName };
8868
+ export { BaseTaonClassesNames, Body, BooleanColumn, CURRENT_HOST_BACKEND_PORT, CURRENT_HOST_URL, ClassHelpers__NS__asyncHandler, ClassHelpers__NS__ensureClassConfig, ClassHelpers__NS__ensureMethodConfig, ClassHelpers__NS__getClassConfig, ClassHelpers__NS__getClassFnFromObject, ClassHelpers__NS__getControllerConfigs, ClassHelpers__NS__getFullInternalName, ClassHelpers__NS__getMethodsNames, ClassHelpers__NS__getName, ClassHelpers__NS__getOrginalClass, ClassHelpers__NS__getUniqueKey, ClassHelpers__NS__hasParentClassWithName, ClassHelpers__NS__isContextClassObject, ClassHelpers__NS__setName, ContextDbMigrations, ContextsEndpointStorage, ControllerConfig, Cookie, DELETE, DITaonContainer, DateTimeColumn, DecimalNumberColumn, DecoratorAbstractOpt, EndpointContext, EntityProcess, FormlyHorizontalWrapper, GET, HEAD, HTML, Header, KVexpirationsDbMetaKey, MethodConfig, MockNamespaceIpc, MockServerIpc, MockSocketIpc, Models__NS__ClassType, Models__NS__ClassTypeKey, Models__NS__DatabaseConfig, Models__NS__DatabaseConfigTypeOrm, Models__NS__DatabasesFolder, Models__NS__KVDatabaseConfig, NumberColumn, PATCH, POST, PUT, ParamConfig, Path, Query, RealtimeClient, RealtimeCore, RealtimeServer, RealtimeStrategy, RealtimeStrategyIpc, RealtimeStrategyMock, RealtimeStrategySocketIO, RealtimeSubsManager, RegisterComponentType, RegisterComponentTypeForEntity, RepeatTypeComponent, SimpleJsonColumn, String100Column, String200Column, String20Column, String45Column, String500Column, String50Column, StringColumn, Symbols__NS__REALTIME, Symbols__NS__classMethodsNames, Symbols__NS__ctxInClassOrClassObj, Symbols__NS__fullClassNameStaticProperty, Symbols__NS__metadata, Symbols__NS__old, Symbols__NS__orignalClassClonesObj, Symbols__NS__taonInstanceId, TAON_CONTEXT, TAON_FLATTEN_MAPPING, TaonAdmin, TaonAdminPanelMode, TaonAdminService, TaonBaseAbstractEntity, TaonBaseAngularService, TaonBaseClass, TaonBaseContext, TaonBaseController, TaonBaseCrudController, TaonBaseCustomRepository, TaonBaseEntity, TaonBaseFileUploadMiddleware, TaonBaseInjector, TaonBaseKvRepository, TaonBaseMiddleware, TaonBaseMigration, TaonBaseProvider, TaonBaseRepository, TaonBaseRepositoryClassName, TaonBaseSubscriberForEntity, TaonController, TaonControllerOptions, TaonEntity, TaonEntityKeysToOmitArr, TaonEntityOptions, TaonHelpers__NS__defaultType, TaonHelpers__NS__fillUpTo, TaonHelpers__NS__firstStringOrElemFromArray, TaonHelpers__NS__getExpressPath, TaonHelpers__NS__ipcKeyNameRequest, TaonHelpers__NS__ipcKeyNameResponse, TaonHelpers__NS__isGoodPath, TaonHelpers__NS__isPlainFileOrFolder, TaonHelpers__NS__parseJSONwithStringJSONs, TaonHelpers__NS__tryTransformParam, TaonHelpers__NS__websqlMocks, TaonMiddleware, TaonMiddlewareOptions, TaonMigration, TaonMigrationOptions, TaonProvider, TaonProviderOptions, TaonRepository, TaonRepositoryOptions, TaonRestResponseWrapper, TaonSubscriber, TaonSubscriberOptions, TaonTempDatabasesFolder, TaonTempRoutesFolder, Taon__NS__LANG_IMPORT_MAP, Taon__NS____FILE_RELATIVE_PATH, Taon__NS__asset, Taon__NS__assetsFrom, Taon__NS__assetsListFrom, Taon__NS__createContext, Taon__NS__createContextTemplate, Taon__NS__error, Taon__NS__getResponseValue, Taon__NS__isBrowser, Taon__NS__isElectron, Taon__NS__isNode, Taon__NS__isWebSQL, Taon__NS__removeLoader, Validators__NS__checkIfMethodsWithReponseTYpeAlowed, Validators__NS__classNameVlidation, Validators__NS__preventUndefinedModel, Validators__NS__validateClassFunctions, apiPrefix, cloneObj, controllerConfigFrom, createContext, createContextTemplate, findTypeForEntity, getFromlyConfigFor, getRegisteredComponents, getResponseValue, getTransformFunction, singleTransform, typeFromEntity, typeFromName };
8843
8869
  //# sourceMappingURL=taon-browser-prod.mjs.map