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/websql",
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_websql from 'taon/websql';
3
3
  import * as expressType from 'express';
4
4
  import { Request, Response, RequestHandler, Application } from 'express';
5
+ import { TaonTranslationsMapImport } from '@taon-dev/i18n/websql';
5
6
  import { HttpResponse, Ng2RestAxiosRequestConfig, RestResponseWrapper, TaonServerMiddlewareInterceptOptions, TaonClientMiddlewareInterceptOptions, ResponseTypeAxios, HttpResponseError, RestErrorResponseWrapper, ModelValue, EncodeSchema } from 'ng2-rest/websql';
6
7
  export { TaonClientMiddlewareInterceptOptions, TaonServerMiddlewareInterceptOptions } from 'ng2-rest/websql';
7
8
  import { Server as Server$1 } from 'http';
@@ -2082,10 +2083,35 @@ declare class TaonAdminService {
2082
2083
  }
2083
2084
 
2084
2085
  declare namespace Taon {
2086
+ /**
2087
+ * In runtime this becomes relative path to current file
2088
+ */
2089
+ const __FILE_RELATIVE_PATH: string;
2090
+ /**
2091
+ * In runtime this becomes taon translation impors for specyfic file
2092
+ */
2093
+ const LANG_IMPORT_MAP: TaonTranslationsMapImport;
2085
2094
  /**
2086
2095
  * Remove global taon loader from env.ts [loading.preAngularBootstrap]
2087
2096
  */
2088
2097
  const removeLoader: (afterMS?: number) => Promise<void>;
2098
+ const asset: (relativePathToAssetFromProjectRoot: string) => string;
2099
+ /**
2100
+ * taon parser is going to replace this function with array with assets.
2101
+ * Example:
2102
+ * [ ]
2103
+ * =>
2104
+ * [ 'assets/assets-for/my-pacakge/images/pic1.png' ,'assets/assets-for/my-pacakge/images/pic2.png']
2105
+ */
2106
+ const assetsFrom: (relativePathToAssetFromProjectRoot: string) => string[];
2107
+ /**
2108
+ * taon parser is going to replace this function with array with assets.
2109
+ * Example:
2110
+ * [ ]
2111
+ * =>
2112
+ * [ 'pic1.png' ,'pic2.png']
2113
+ */
2114
+ const assetsListFrom: (relativePathToAssetFromProjectRoot: string) => string[];
2089
2115
  const error: (opt: Pick<RestErrorResponseWrapper, "message" | "status" | "details" | "code"> | string) => void;
2090
2116
  type ResponseHtml = Models.Http.Response<string>;
2091
2117
  type Response<T = string> = Models.Http.Response<T>;
@@ -2136,33 +2162,6 @@ declare namespace Taon {
2136
2162
  readonly server: taon_websql.RealtimeServer;
2137
2163
  };
2138
2164
  };
2139
- /**
2140
- * @deprecated
2141
- * use createContext instead
2142
- */
2143
- const init: (options: {
2144
- host: string;
2145
- entities: Function[];
2146
- controllers: Function[];
2147
- }) => Promise<{
2148
- readonly contextName: string;
2149
- readonly appId: string;
2150
- cloneAsRemote: (cloneOpt?: {
2151
- overrideRemoteHost?: string;
2152
- }) => /*elided*/ any;
2153
- cloneAsNormal: (cloneOpt?: {
2154
- overrideHost?: string;
2155
- }) => /*elided*/ any;
2156
- __ref(): Promise<EndpointContext>;
2157
- readonly __refSync: EndpointContext;
2158
- getClassInstance<T>(ctor: new (...args: any[]) => T): T;
2159
- getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
2160
- initialize: (overrideOptions?: Models.TaonInitializeParams) => Promise<EndpointContext>;
2161
- readonly realtime: {
2162
- readonly client: taon_websql.RealtimeClient;
2163
- readonly server: taon_websql.RealtimeServer;
2164
- };
2165
- }>;
2166
2165
  }
2167
2166
  declare const TAON_FLATTEN_MAPPING: {
2168
2167
  'taon/src': {
@@ -6851,11 +6851,6 @@ const TaonBaseContext = createContext(() => ({
6851
6851
  },
6852
6852
  }));
6853
6853
 
6854
- var baseContext = /*#__PURE__*/Object.freeze({
6855
- __proto__: null,
6856
- TaonBaseContext: TaonBaseContext
6857
- });
6858
-
6859
6854
  /**
6860
6855
  * Controller decorator
6861
6856
  */
@@ -8369,8 +8364,21 @@ function TaonProvider(options) {
8369
8364
  class TaonProviderOptions extends DecoratorAbstractOpt {
8370
8365
  }
8371
8366
 
8367
+ //#region import & exports
8368
+ //#endregion
8372
8369
  // TODO export all things
8373
8370
  //namespace Taon
8371
+ //#region i18n
8372
+ /**
8373
+ * In runtime this becomes relative path to current file
8374
+ */
8375
+ const Taon__NS____FILE_RELATIVE_PATH = '';
8376
+ /**
8377
+ * In runtime this becomes taon translation impors for specyfic file
8378
+ */
8379
+ const Taon__NS__LANG_IMPORT_MAP = {};
8380
+ //#endregion
8381
+ //#region taon loader
8374
8382
  /**
8375
8383
  * Remove global taon loader from env.ts [loading.preAngularBootstrap]
8376
8384
  */
@@ -8388,6 +8396,40 @@ const Taon__NS__removeLoader = (afterMS = 0) => {
8388
8396
  }, afterMS);
8389
8397
  });
8390
8398
  };
8399
+ //#endregion
8400
+ //#region taon asset
8401
+ const Taon__NS__asset = (relativePathToAssetFromProjectRoot) => {
8402
+ // Taon file parser is replacing everything
8403
+ return relativePathToAssetFromProjectRoot;
8404
+ };
8405
+ //#endregion
8406
+ //#region taon asset from
8407
+ /**
8408
+ * taon parser is going to replace this function with array with assets.
8409
+ * Example:
8410
+ * [ ]
8411
+ * =>
8412
+ * [ 'assets/assets-for/my-pacakge/images/pic1.png' ,'assets/assets-for/my-pacakge/images/pic2.png']
8413
+ */
8414
+ const Taon__NS__assetsFrom = (relativePathToAssetFromProjectRoot) => {
8415
+ // Taon file parser is replacing everything
8416
+ return [];
8417
+ };
8418
+ //#endregion
8419
+ //#region taon asset list from
8420
+ /**
8421
+ * taon parser is going to replace this function with array with assets.
8422
+ * Example:
8423
+ * [ ]
8424
+ * =>
8425
+ * [ 'pic1.png' ,'pic2.png']
8426
+ */
8427
+ const Taon__NS__assetsListFrom = (relativePathToAssetFromProjectRoot) => {
8428
+ // Taon file parser is replacing everything
8429
+ return [];
8430
+ };
8431
+ //#endregion
8432
+ //#region taon error
8391
8433
  const Taon__NS__error = (opt) => {
8392
8434
  throw () => {
8393
8435
  if (typeof opt === 'string') {
@@ -8399,6 +8441,7 @@ const Taon__NS__error = (opt) => {
8399
8441
  };
8400
8442
  };
8401
8443
  const Taon__NS__getResponseValue = getResponseValue;
8444
+ //#endregion
8402
8445
  //#region class decorators
8403
8446
  // TODO new 5.8 typescript is not allowing this
8404
8447
  // export import Controller = controllerDecorator.TaonController;
@@ -8415,27 +8458,10 @@ const Taon__NS__isNode = UtilsOs__NS__isNode;
8415
8458
  const Taon__NS__isWebSQL = UtilsOs__NS__isWebSQL;
8416
8459
  const Taon__NS__isElectron = UtilsOs__NS__isElectron;
8417
8460
  //#endregion
8461
+ //#region create context
8418
8462
  const Taon__NS__createContext = createContext;
8419
8463
  const Taon__NS__createContextTemplate = createContextTemplate;
8420
- /**
8421
- * @deprecated
8422
- * use createContext instead
8423
- */
8424
- const Taon__NS__init = async (options) => {
8425
- const TaonBaseContext = (await Promise.resolve().then(function () { return baseContext; }))
8426
- .TaonBaseContext;
8427
- const context = Taon__NS__createContext(() => ({
8428
- appId: 'default-app-not-used-anymore',
8429
- contextName: 'default',
8430
- host: options.host,
8431
- contexts: { TaonBaseContext },
8432
- database: true,
8433
- entities: Array.from(options.entities),
8434
- controllers: Array.from(options.controllers),
8435
- }));
8436
- await context.initialize();
8437
- return context;
8438
- };
8464
+ //#endregion
8439
8465
  //end of namespace Taon
8440
8466
  //#region taon flattening map
8441
8467
  const TAON_FLATTEN_MAPPING = {
@@ -8558,5 +8584,5 @@ const TAON_FLATTEN_MAPPING = {
8558
8584
  * Generated bundle index. Do not edit.
8559
8585
  */
8560
8586
 
8561
- 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 };
8587
+ 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 };
8562
8588
  //# sourceMappingURL=taon-websql-prod.mjs.map