@rxap/remote-method 16.0.0-dev.1 → 16.0.0-dev.3

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 (84) hide show
  1. package/CHANGELOG.md +252 -0
  2. package/README.md +8 -73
  3. package/directive/index.d.ts +5 -5
  4. package/directive/lib/remote-method-template-collection.directive.d.ts +38 -43
  5. package/directive/lib/remote-method-template.directive.d.ts +7 -12
  6. package/directive/lib/remote-method.directive.d.ts +7 -12
  7. package/esm2022/directive/index.mjs +6 -0
  8. package/esm2022/directive/lib/error.mjs +1 -1
  9. package/esm2022/directive/lib/remote-method-template-collection.directive.mjs +115 -123
  10. package/esm2022/directive/lib/remote-method-template.directive.mjs +45 -51
  11. package/esm2022/directive/lib/remote-method.directive.mjs +28 -37
  12. package/esm2022/directive/lib/tokens.mjs +1 -1
  13. package/esm2022/directive/rxap-remote-method-directive.mjs +2 -2
  14. package/esm2022/http/directive/index.mjs +3 -0
  15. package/esm2022/http/directive/lib/contenteditable.directive.mjs +8 -24
  16. package/esm2022/http/directive/lib/http-remote-method.directive.mjs +8 -21
  17. package/esm2022/http/directive/rxap-remote-method-http-directive.mjs +2 -2
  18. package/esm2022/http/index.mjs +4 -0
  19. package/esm2022/http/lib/base-http.remote-method.mjs +19 -20
  20. package/esm2022/http/lib/http-remote-method.loader.mjs +7 -8
  21. package/esm2022/http/lib/http.remote-method.mjs +31 -22
  22. package/esm2022/http/rxap-remote-method-http.mjs +2 -2
  23. package/esm2022/index.mjs +1 -1
  24. package/esm2022/lib/base.remote-method.mjs +8 -9
  25. package/esm2022/lib/error.mjs +1 -1
  26. package/esm2022/lib/proxy.remote-method.mjs +8 -9
  27. package/esm2022/lib/remote-method-loader.mjs +7 -8
  28. package/esm2022/lib/tokens.mjs +1 -1
  29. package/esm2022/rxap-remote-method.mjs +1 -1
  30. package/esm2022/testing/index.mjs +2 -0
  31. package/esm2022/testing/lib/remote-method-testing-loader.mjs +3 -3
  32. package/esm2022/testing/rxap-remote-method-testing.mjs +2 -2
  33. package/fesm2022/rxap-remote-method-directive.mjs +174 -191
  34. package/fesm2022/rxap-remote-method-directive.mjs.map +1 -1
  35. package/fesm2022/rxap-remote-method-http-directive.mjs +11 -36
  36. package/fesm2022/rxap-remote-method-http-directive.mjs.map +1 -1
  37. package/fesm2022/rxap-remote-method-http.mjs +43 -33
  38. package/fesm2022/rxap-remote-method-http.mjs.map +1 -1
  39. package/fesm2022/rxap-remote-method-testing.mjs +1 -1
  40. package/fesm2022/rxap-remote-method-testing.mjs.map +1 -1
  41. package/fesm2022/rxap-remote-method.mjs +10 -10
  42. package/fesm2022/rxap-remote-method.mjs.map +1 -1
  43. package/http/directive/index.d.ts +2 -5
  44. package/http/directive/lib/contenteditable.directive.d.ts +1 -9
  45. package/http/directive/lib/http-remote-method.directive.d.ts +2 -7
  46. package/http/index.d.ts +3 -5
  47. package/http/lib/base-http.remote-method.d.ts +3 -3
  48. package/http/lib/http-remote-method.loader.d.ts +2 -2
  49. package/http/lib/http.remote-method.d.ts +3 -3
  50. package/lib/base.remote-method.d.ts +2 -2
  51. package/lib/proxy.remote-method.d.ts +1 -1
  52. package/lib/remote-method-loader.d.ts +1 -1
  53. package/package.json +46 -42
  54. package/testing/index.d.ts +1 -5
  55. package/testing/lib/remote-method-testing-loader.d.ts +2 -2
  56. package/LICENSE +0 -24
  57. package/collection.json +0 -25
  58. package/directive/public_api.d.ts +0 -5
  59. package/esm2022/directive/public_api.mjs +0 -6
  60. package/esm2022/http/directive/public_api.mjs +0 -3
  61. package/esm2022/http/public_api.mjs +0 -4
  62. package/esm2022/testing/public_api.mjs +0 -2
  63. package/http/directive/public_api.d.ts +0 -2
  64. package/http/public_api.d.ts +0 -3
  65. package/migration.json +0 -4
  66. package/src/schematics/base/files/__name@dasherize__.remote-method.ts.template +0 -14
  67. package/src/schematics/base/index.d.ts +0 -12
  68. package/src/schematics/base/index.js +0 -116
  69. package/src/schematics/base/index.js.map +0 -1
  70. package/src/schematics/base/schema.json +0 -54
  71. package/src/schematics/directive/index.d.ts +0 -18
  72. package/src/schematics/directive/index.js +0 -346
  73. package/src/schematics/directive/index.js.map +0 -1
  74. package/src/schematics/directive/schema.json +0 -50
  75. package/src/schematics/http/files/__name@dasherize__.remote-method.ts.template +0 -16
  76. package/src/schematics/http/index.d.ts +0 -3
  77. package/src/schematics/http/index.js +0 -26
  78. package/src/schematics/http/index.js.map +0 -1
  79. package/src/schematics/http/schema.json +0 -30
  80. package/src/schematics/ng-add/index.d.ts +0 -2
  81. package/src/schematics/ng-add/index.js +0 -8
  82. package/src/schematics/ng-add/index.js.map +0 -1
  83. package/src/schematics/ng-add/schema.json +0 -7
  84. package/testing/public_api.d.ts +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-remote-method-testing.mjs","sources":["../../../../libs/remote-method/testing/src/lib/remote-method-testing-loader.ts","../../../../libs/remote-method/testing/src/rxap-remote-method-testing.ts"],"sourcesContent":["import {\n RemoteMethodLoader,\n BaseRemoteMethod,\n BaseRemoteMethodMetadata\n} from '@rxap/remote-method';\nimport {\n Provider,\n Type,\n InjectionToken,\n AbstractType\n} from '@angular/core';\n\nexport type MockRemoteMethod = (parameters?: any, metadata?: any) => any;\n\nexport class RemoteMethodTestingLoader extends RemoteMethodLoader {\n\n private mockedRemoteMethods = new Map<string, MockRemoteMethod>();\n\n public mock(remoteMethodId: string, resultOrFunction: any | MockRemoteMethod): void {\n let resultFunction: MockRemoteMethod;\n if (typeof resultOrFunction !== 'function') {\n resultFunction = () => resultOrFunction;\n } else {\n resultFunction = resultOrFunction;\n }\n this.mockedRemoteMethods.set(remoteMethodId, resultFunction);\n }\n\n public clearMocks(): void {\n this.mockedRemoteMethods.clear();\n }\n\n public deleteMock(remoteMethodId: string): boolean {\n return this.mockedRemoteMethods.delete(remoteMethodId);\n }\n\n public hasMock(remoteMethodId: string): boolean {\n return this.mockedRemoteMethods.has(remoteMethodId);\n }\n\n public getMock(remoteMethodId: string): MockRemoteMethod {\n if (!this.hasMock(remoteMethodId)) {\n throw new Error(`A remote method mock with the id '${remoteMethodId}' is not registered`);\n }\n return this.mockedRemoteMethods.get(remoteMethodId)!;\n }\n\n public async call$<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata>(\n remoteMethodOrIdOrToken: string | BaseRemoteMethod<ReturnType, Parameters, Metadata> | Type<BaseRemoteMethod<ReturnType, Parameters, Metadata>> | InjectionToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>> | AbstractType<BaseRemoteMethod<ReturnType, Parameters, Metadata>>,\n parameters?: Parameters,\n metadata?: Metadata\n ): Promise<ReturnType> {\n\n if (typeof remoteMethodOrIdOrToken === 'string') {\n\n if (this.hasMock(remoteMethodOrIdOrToken)) {\n const resultFunction = this.getMock(remoteMethodOrIdOrToken)!;\n return await resultFunction(parameters, metadata);\n }\n return super.call$(remoteMethodOrIdOrToken, parameters, metadata);\n\n }\n\n return super.call$(remoteMethodOrIdOrToken, parameters, metadata);\n }\n\n}\n\nexport const REMOTE_METHOD_TESTING_LOADER_PROVIDER: Provider = {\n provide: RemoteMethodLoader,\n useClass: RemoteMethodTestingLoader\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;AAcM,MAAO,yBAA0B,SAAQ,kBAAkB,CAAA;AAAjE,IAAA,WAAA,GAAA;;AAEU,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,GAAG,EAA4B,CAAC;KAkDnE;IAhDQ,IAAI,CAAC,cAAsB,EAAE,gBAAwC,EAAA;AAC1E,QAAA,IAAI,cAAgC,CAAC;AACrC,QAAA,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;AAC1C,YAAA,cAAc,GAAG,MAAM,gBAAgB,CAAC;AACzC,SAAA;AAAM,aAAA;YACL,cAAc,GAAG,gBAAgB,CAAC;AACnC,SAAA;QACD,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,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yBAAyB;;;ACtErC;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-remote-method-testing.mjs","sources":["../../../../../packages/angular/remote-method/testing/src/lib/remote-method-testing-loader.ts","../../../../../packages/angular/remote-method/testing/src/rxap-remote-method-testing.ts"],"sourcesContent":["import {\n BaseRemoteMethod,\n BaseRemoteMethodMetadata,\n RemoteMethodLoader,\n} from '@rxap/remote-method';\nimport {\n AbstractType,\n InjectionToken,\n Provider,\n Type,\n} from '@angular/core';\n\nexport type MockRemoteMethod = (parameters?: any, metadata?: any) => any;\n\nexport class RemoteMethodTestingLoader extends RemoteMethodLoader {\n\n private mockedRemoteMethods = new Map<string, MockRemoteMethod>();\n\n public mock(remoteMethodId: string, resultOrFunction: any | MockRemoteMethod): void {\n let resultFunction: MockRemoteMethod;\n if (typeof resultOrFunction !== 'function') {\n resultFunction = () => resultOrFunction;\n } else {\n resultFunction = resultOrFunction;\n }\n this.mockedRemoteMethods.set(remoteMethodId, resultFunction);\n }\n\n public clearMocks(): void {\n this.mockedRemoteMethods.clear();\n }\n\n public deleteMock(remoteMethodId: string): boolean {\n return this.mockedRemoteMethods.delete(remoteMethodId);\n }\n\n public hasMock(remoteMethodId: string): boolean {\n return this.mockedRemoteMethods.has(remoteMethodId);\n }\n\n public getMock(remoteMethodId: string): MockRemoteMethod {\n if (!this.hasMock(remoteMethodId)) {\n throw new Error(`A remote method mock with the id '${ remoteMethodId }' is not registered`);\n }\n return this.mockedRemoteMethods.get(remoteMethodId)!;\n }\n\n public override async call$<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata>(\n remoteMethodOrIdOrToken: string | BaseRemoteMethod<ReturnType, Parameters, Metadata> | Type<BaseRemoteMethod<ReturnType, Parameters, Metadata>> | InjectionToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>> | AbstractType<BaseRemoteMethod<ReturnType, Parameters, Metadata>>,\n parameters?: Parameters,\n metadata?: Metadata,\n ): Promise<ReturnType> {\n\n if (typeof remoteMethodOrIdOrToken === 'string') {\n\n if (this.hasMock(remoteMethodOrIdOrToken)) {\n const resultFunction = this.getMock(remoteMethodOrIdOrToken)!;\n return await resultFunction(parameters, metadata);\n }\n return super.call$(remoteMethodOrIdOrToken, parameters, metadata);\n\n }\n\n return super.call$(remoteMethodOrIdOrToken, parameters, metadata);\n }\n\n}\n\nexport const REMOTE_METHOD_TESTING_LOADER_PROVIDER: Provider = {\n provide: RemoteMethodLoader,\n useClass: RemoteMethodTestingLoader,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAcM,MAAO,yBAA0B,SAAQ,kBAAkB,CAAA;AAAjE,IAAA,WAAA,GAAA;;AAEU,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,GAAG,EAA4B,CAAC;KAkDnE;IAhDQ,IAAI,CAAC,cAAsB,EAAE,gBAAwC,EAAA;AAC1E,QAAA,IAAI,cAAgC,CAAC;AACrC,QAAA,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;AAC1C,YAAA,cAAc,GAAG,MAAM,gBAAgB,CAAC;AACzC,SAAA;AAAM,aAAA;YACL,cAAc,GAAG,gBAAgB,CAAC;AACnC,SAAA;QACD,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;KAC9D;IAEM,UAAU,GAAA;AACf,QAAA,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,CAAC;KAClC;AAEM,IAAA,UAAU,CAAC,cAAsB,EAAA;QACtC,OAAO,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;KACxD;AAEM,IAAA,OAAO,CAAC,cAAsB,EAAA;QACnC,OAAO,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;KACrD;AAEM,IAAA,OAAO,CAAC,cAAsB,EAAA;AACnC,QAAA,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE;AACjC,YAAA,MAAM,IAAI,KAAK,CAAC,qCAAsC,cAAe,CAAA,mBAAA,CAAqB,CAAC,CAAC;AAC7F,SAAA;QACD,OAAO,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,cAAc,CAAE,CAAC;KACtD;AAEe,IAAA,MAAM,KAAK,CACzB,uBAAuR,EACvR,UAAuB,EACvB,QAAmB,EAAA;AAGnB,QAAA,IAAI,OAAO,uBAAuB,KAAK,QAAQ,EAAE;AAE/C,YAAA,IAAI,IAAI,CAAC,OAAO,CAAC,uBAAuB,CAAC,EAAE;gBACzC,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,uBAAuB,CAAE,CAAC;AAC9D,gBAAA,OAAO,MAAM,cAAc,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AACnD,aAAA;YACD,OAAO,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;AAEnE,SAAA;QAED,OAAO,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;KACnE;AAEF,CAAA;AAEY,MAAA,qCAAqC,GAAa;AAC7D,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,QAAQ,EAAE,yBAAyB;;;ACtErC;;AAEG;;;;"}
@@ -3,7 +3,7 @@ import { InjectionToken, Injector, InjectFlags, INJECTOR, Injectable, Optional,
3
3
  import { DefinitionMetadata, BaseDefinition, DefinitionLoader } from '@rxap/definition';
4
4
  import { Subject } from 'rxjs';
5
5
  import { RxapError } from '@rxap/utilities';
6
- import { CounterSubject } from '@rxap/utilities/rxjs';
6
+ import { CounterSubject } from '@rxap/rxjs';
7
7
 
8
8
  const REMOTE_METHOD_META_DATA = new InjectionToken('rxap/remote-method/REMOTE_METHOD_META_DATA');
9
9
  const RXAP_PROXY_REMOTE_METHOD_TARGET = new InjectionToken('rxap/remote-method/proxy/target');
@@ -63,10 +63,10 @@ class BaseRemoteMethod extends BaseDefinition {
63
63
  }
64
64
  }
65
65
  }
66
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BaseRemoteMethod, deps: [{ token: INJECTOR, optional: true }, { token: REMOTE_METHOD_META_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
67
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BaseRemoteMethod }); }
66
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BaseRemoteMethod, deps: [{ token: INJECTOR, optional: true }, { token: REMOTE_METHOD_META_DATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
67
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BaseRemoteMethod }); }
68
68
  }
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BaseRemoteMethod, decorators: [{
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: BaseRemoteMethod, decorators: [{
70
70
  type: Injectable
71
71
  }], ctorParameters: function () { return [{ type: i0.Injector, decorators: [{
72
72
  type: Optional
@@ -86,10 +86,10 @@ class RemoteMethodLoader extends DefinitionLoader {
86
86
  .load(remoteMethodIdOrInstanceOrToken, metadata, injector, notFoundValue, flags)
87
87
  .call(parameters);
88
88
  }
89
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RemoteMethodLoader, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
90
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RemoteMethodLoader, providedIn: 'root' }); }
89
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RemoteMethodLoader, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
90
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RemoteMethodLoader, providedIn: 'root' }); }
91
91
  }
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: RemoteMethodLoader, decorators: [{
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: RemoteMethodLoader, decorators: [{
93
93
  type: Injectable,
94
94
  args: [{ providedIn: 'root' }]
95
95
  }] });
@@ -102,10 +102,10 @@ class ProxyRemoteMethod extends BaseRemoteMethod {
102
102
  async _call(parameters) {
103
103
  return this.remoteMethod.call(await this.transformParameters(parameters));
104
104
  }
105
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ProxyRemoteMethod, deps: [{ token: RXAP_PROXY_REMOTE_METHOD_TARGET }, { token: INJECTOR }, { token: REMOTE_METHOD_META_DATA }], target: i0.ɵɵFactoryTarget.Injectable }); }
106
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ProxyRemoteMethod }); }
105
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ProxyRemoteMethod, deps: [{ token: RXAP_PROXY_REMOTE_METHOD_TARGET }, { token: INJECTOR }, { token: REMOTE_METHOD_META_DATA }], target: i0.ɵɵFactoryTarget.Injectable }); }
106
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ProxyRemoteMethod }); }
107
107
  }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ProxyRemoteMethod, decorators: [{
108
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ProxyRemoteMethod, decorators: [{
109
109
  type: Injectable
110
110
  }], ctorParameters: function () { return [{ type: BaseRemoteMethod, decorators: [{
111
111
  type: Inject,
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-remote-method.mjs","sources":["../../../../libs/remote-method/src/lib/tokens.ts","../../../../libs/remote-method/src/lib/error.ts","../../../../libs/remote-method/src/lib/base.remote-method.ts","../../../../libs/remote-method/src/lib/remote-method-loader.ts","../../../../libs/remote-method/src/lib/proxy.remote-method.ts","../../../../libs/remote-method/src/rxap-remote-method.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const REMOTE_METHOD_META_DATA = new InjectionToken('rxap/remote-method/REMOTE_METHOD_META_DATA');\nexport const RXAP_PROXY_REMOTE_METHOD_TARGET = new InjectionToken('rxap/remote-method/proxy/target');\n","import { RxapError } from '@rxap/utilities';\n\nexport class RxapRemoteMethodError extends RxapError {\n\n constructor(message: string, code: string, className?: string) {\n super('@rxap/remote-method', message, code, className);\n }\n\n}\n\n","import {\n Injectable,\n Optional,\n Inject,\n Injector,\n Type,\n InjectionToken,\n AbstractType,\n InjectFlags,\n INJECTOR\n} from '@angular/core';\nimport { REMOTE_METHOD_META_DATA } from './tokens';\nimport {\n BaseDefinition,\n BaseDefinitionMetadata,\n DefinitionMetadata\n} from '@rxap/definition';\nimport { Subject } from 'rxjs';\nimport { RxapRemoteMethodError } from './error';\nimport { Refreshable } from '@rxap/utilities';\nimport { CounterSubject } from '@rxap/utilities/rxjs';\n\nexport interface BaseRemoteMethodMetadata extends BaseDefinitionMetadata {\n refresh?: Array<Type<Refreshable> | InjectionToken<Refreshable> | AbstractType<Refreshable>>;\n}\n\nexport function RxapRemoteMethod<MetaData extends BaseDefinitionMetadata = BaseDefinitionMetadata>(\n metadataOrId: MetaData | string,\n className: string = 'BaseRemoteMethod',\n packageName: string = '@rxap/remote-method'\n) {\n return function(target: any) {\n DefinitionMetadata(metadataOrId, className, packageName)(target);\n };\n}\n\n@Injectable()\nexport abstract class BaseRemoteMethod<ReturnType = any,\n Parameter = any,\n Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> extends BaseDefinition<Metadata> {\n\n public executed$: Subject<ReturnType> = new Subject<ReturnType>();\n\n public executionsInProgress$: CounterSubject = new CounterSubject();\n\n public readonly injector: Injector;\n\n private _pauseRefresh = false;\n\n constructor(\n @Optional()\n @Inject(INJECTOR)\n injector: Injector | null = null,\n @Optional()\n @Inject(REMOTE_METHOD_META_DATA)\n metaData: any | null = null\n ) {\n super(metaData);\n if (injector === undefined) {\n throw new RxapRemoteMethodError('Injector is undefined. Ensure that the Injector is added to the deps property!', '', this.constructor.name);\n }\n this.injector = injector ?? Injector.NULL;\n if (typeof this.injector.get !== 'function') {\n throw new RxapRemoteMethodError('The property injector is not Injector like. Check the deps property!', '', this.constructor.name);\n }\n }\n\n public async call(parameters?: Parameter): Promise<ReturnType> {\n this.init();\n this.executionsInProgress$.increase();\n const result = await this._call(parameters);\n this.executionsInProgress$.decrease();\n this.executed$.next(result);\n this.executed(result);\n return result;\n }\n\n public executed(result: ReturnType): void {\n if (!this._pauseRefresh) {\n this.refresh();\n }\n }\n\n public pauseRefresh(): void {\n this._pauseRefresh = true;\n }\n\n public resumeRefresh(): void {\n this._pauseRefresh = false;\n }\n\n public refresh(): void {\n if (this.metadata.refresh) {\n for (const refresh of this.metadata.refresh) {\n const canRefresh = this.injector.get(refresh, null, InjectFlags.Optional);\n if (canRefresh) {\n canRefresh.refresh();\n }\n }\n }\n }\n\n protected abstract _call(parameters?: Parameter): Promise<ReturnType> | ReturnType;\n\n}\n\n\n","import {\n Injectable,\n Injector,\n InjectFlags\n} from '@angular/core';\nimport {\n BaseRemoteMethod,\n BaseRemoteMethodMetadata\n} from './base.remote-method';\nimport {\n DefinitionLoader,\n IdOrInstanceOrToken\n} from '@rxap/definition';\n\n@Injectable({ providedIn: 'root' })\nexport class RemoteMethodLoader extends DefinitionLoader {\n\n public async call$<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata>(\n remoteMethodIdOrInstanceOrToken: IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>>,\n parameters: Parameters,\n metadata?: Partial<BaseRemoteMethodMetadata>,\n injector?: Injector,\n notFoundValue?: BaseRemoteMethod<ReturnType, Parameters, Metadata>,\n flags?: InjectFlags\n ): Promise<ReturnType> {\n return this\n .load(\n remoteMethodIdOrInstanceOrToken,\n metadata,\n injector,\n notFoundValue,\n flags\n )\n .call(parameters);\n }\n\n}\n","import {\n Injectable,\n Inject,\n INJECTOR,\n Injector\n} from '@angular/core';\nimport {\n BaseRemoteMethod,\n BaseRemoteMethodMetadata\n} from './base.remote-method';\nimport {\n RXAP_PROXY_REMOTE_METHOD_TARGET,\n REMOTE_METHOD_META_DATA\n} from './tokens';\n\n@Injectable()\nexport abstract class ProxyRemoteMethod<ReturnType = any, SourceParameter = any, TargetParameter = SourceParameter>\n extends BaseRemoteMethod<ReturnType, SourceParameter> {\n\n constructor(\n @Inject(RXAP_PROXY_REMOTE_METHOD_TARGET)\n private readonly remoteMethod: BaseRemoteMethod,\n @Inject(INJECTOR)\n injector: Injector | null = null,\n @Inject(REMOTE_METHOD_META_DATA)\n metadata: BaseRemoteMethodMetadata = remoteMethod.metadata,\n ) {\n super(injector, metadata);\n }\n\n protected async _call(parameters?: SourceParameter): Promise<any> {\n return this.remoteMethod.call(await this.transformParameters(parameters));\n }\n\n public abstract transformParameters(parameters?: SourceParameter): TargetParameter | Promise<TargetParameter>;\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAEa,uBAAuB,GAAG,IAAI,cAAc,CAAC,4CAA4C,EAAE;MAC3F,+BAA+B,GAAG,IAAI,cAAc,CAAC,iCAAiC;;ACD7F,MA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AChD,QAAA,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC;KAC3E;AAhBmB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAI3B,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,+BAA+B,EAE/B,EAAA,EAAA,KAAA,EAAA,QAAQ,aAER,uBAAuB,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;kHARb,iBAAiB,EAAA,CAAA,CAAA,EAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBADtC,UAAU;;0BAKN,MAAM;2BAAC,+BAA+B,CAAA;;0BAEtC,MAAM;2BAAC,QAAQ,CAAA;;0BAEf,MAAM;2BAAC,uBAAuB,CAAA;;;ACxBnC;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-remote-method.mjs","sources":["../../../../../packages/angular/remote-method/src/lib/tokens.ts","../../../../../packages/angular/remote-method/src/lib/error.ts","../../../../../packages/angular/remote-method/src/lib/base.remote-method.ts","../../../../../packages/angular/remote-method/src/lib/remote-method-loader.ts","../../../../../packages/angular/remote-method/src/lib/proxy.remote-method.ts","../../../../../packages/angular/remote-method/src/rxap-remote-method.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const REMOTE_METHOD_META_DATA = new InjectionToken('rxap/remote-method/REMOTE_METHOD_META_DATA');\nexport const RXAP_PROXY_REMOTE_METHOD_TARGET = new InjectionToken('rxap/remote-method/proxy/target');\n","import { RxapError } from '@rxap/utilities';\n\nexport class RxapRemoteMethodError extends RxapError {\n\n constructor(message: string, code: string, className?: string) {\n super('@rxap/remote-method', message, code, className);\n }\n\n}\n\n","import {\n AbstractType,\n Inject,\n Injectable,\n InjectFlags,\n InjectionToken,\n Injector,\n INJECTOR,\n Optional,\n Type,\n} from '@angular/core';\nimport { REMOTE_METHOD_META_DATA } from './tokens';\nimport {\n BaseDefinition,\n BaseDefinitionMetadata,\n DefinitionMetadata,\n} from '@rxap/definition';\nimport { Subject } from 'rxjs';\nimport { RxapRemoteMethodError } from './error';\nimport { Refreshable } from '@rxap/utilities';\nimport { CounterSubject } from '@rxap/rxjs';\n\nexport interface BaseRemoteMethodMetadata extends BaseDefinitionMetadata {\n refresh?: Array<Type<Refreshable> | InjectionToken<Refreshable> | AbstractType<Refreshable>>;\n}\n\nexport function RxapRemoteMethod<MetaData extends BaseDefinitionMetadata = BaseDefinitionMetadata>(\n metadataOrId: MetaData | string,\n className = 'BaseRemoteMethod',\n packageName = '@rxap/remote-method',\n) {\n return function (target: any) {\n DefinitionMetadata(metadataOrId, className, packageName)(target);\n };\n}\n\n@Injectable()\nexport abstract class BaseRemoteMethod<ReturnType = any,\n Parameter = any,\n Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata> extends BaseDefinition<Metadata> {\n\n public executed$: Subject<ReturnType> = new Subject<ReturnType>();\n\n public executionsInProgress$: CounterSubject = new CounterSubject();\n\n public readonly injector: Injector;\n\n private _pauseRefresh = false;\n\n constructor(\n @Optional()\n @Inject(INJECTOR)\n injector: Injector | null = null,\n @Optional()\n @Inject(REMOTE_METHOD_META_DATA)\n metaData: any | null = null,\n ) {\n super(metaData);\n if (injector === undefined) {\n throw new RxapRemoteMethodError(\n 'Injector is undefined. Ensure that the Injector is added to the deps property!',\n '',\n this.constructor.name,\n );\n }\n this.injector = injector ?? Injector.NULL;\n if (typeof this.injector.get !== 'function') {\n throw new RxapRemoteMethodError(\n 'The property injector is not Injector like. Check the deps property!',\n '',\n this.constructor.name,\n );\n }\n }\n\n public async call(parameters?: Parameter): Promise<ReturnType> {\n this.init();\n this.executionsInProgress$.increase();\n const result = await this._call(parameters);\n this.executionsInProgress$.decrease();\n this.executed$.next(result);\n this.executed(result);\n return result;\n }\n\n public executed(result: ReturnType): void {\n if (!this._pauseRefresh) {\n this.refresh();\n }\n }\n\n public pauseRefresh(): void {\n this._pauseRefresh = true;\n }\n\n public resumeRefresh(): void {\n this._pauseRefresh = false;\n }\n\n public refresh(): void {\n if (this.metadata.refresh) {\n for (const refresh of this.metadata.refresh) {\n const canRefresh = this.injector.get(refresh, null, InjectFlags.Optional);\n if (canRefresh) {\n canRefresh.refresh();\n }\n }\n }\n }\n\n protected abstract _call(parameters?: Parameter): Promise<ReturnType> | ReturnType;\n\n}\n\n\n","import {\n Injectable,\n InjectFlags,\n Injector,\n} from '@angular/core';\nimport {\n BaseRemoteMethod,\n BaseRemoteMethodMetadata,\n} from './base.remote-method';\nimport {\n DefinitionLoader,\n IdOrInstanceOrToken,\n} from '@rxap/definition';\n\n@Injectable({ providedIn: 'root' })\nexport class RemoteMethodLoader extends DefinitionLoader {\n\n public async call$<ReturnType = any, Parameters = any, Metadata extends BaseRemoteMethodMetadata = BaseRemoteMethodMetadata>(\n remoteMethodIdOrInstanceOrToken: IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, Parameters, Metadata>>,\n parameters: Parameters,\n metadata?: Partial<BaseRemoteMethodMetadata>,\n injector?: Injector,\n notFoundValue?: BaseRemoteMethod<ReturnType, Parameters, Metadata>,\n flags?: InjectFlags,\n ): Promise<ReturnType> {\n return this\n .load(\n remoteMethodIdOrInstanceOrToken,\n metadata,\n injector,\n notFoundValue,\n flags,\n )\n .call(parameters);\n }\n\n}\n","import {\n Inject,\n Injectable,\n INJECTOR,\n Injector,\n} from '@angular/core';\nimport {\n BaseRemoteMethod,\n BaseRemoteMethodMetadata,\n} from './base.remote-method';\nimport {\n REMOTE_METHOD_META_DATA,\n RXAP_PROXY_REMOTE_METHOD_TARGET,\n} from './tokens';\n\n@Injectable()\nexport abstract class ProxyRemoteMethod<ReturnType = any, SourceParameter = any, TargetParameter = SourceParameter>\n extends BaseRemoteMethod<ReturnType, SourceParameter> {\n\n constructor(\n @Inject(RXAP_PROXY_REMOTE_METHOD_TARGET)\n private readonly remoteMethod: BaseRemoteMethod,\n @Inject(INJECTOR)\n injector: Injector | null = null,\n @Inject(REMOTE_METHOD_META_DATA)\n metadata: BaseRemoteMethodMetadata = remoteMethod.metadata,\n ) {\n super(injector, metadata);\n }\n\n public abstract transformParameters(parameters?: SourceParameter): TargetParameter | Promise<TargetParameter>;\n\n protected async _call(parameters?: SourceParameter): Promise<any> {\n return this.remoteMethod.call(await this.transformParameters(parameters));\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAEa,uBAAuB,GAAG,IAAI,cAAc,CAAC,4CAA4C,EAAE;MAC3F,+BAA+B,GAAG,IAAI,cAAc,CAAC,iCAAiC;;ACD7F,MAAO,qBAAsB,SAAQ,SAAS,CAAA;AAElD,IAAA,WAAA,CAAY,OAAe,EAAE,IAAY,EAAE,SAAkB,EAAA;QAC3D,KAAK,CAAC,qBAAqB,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;KACxD;AAEF;;ACkBK,SAAU,gBAAgB,CAC9B,YAA+B,EAC/B,SAAS,GAAG,kBAAkB,EAC9B,WAAW,GAAG,qBAAqB,EAAA;AAEnC,IAAA,OAAO,UAAU,MAAW,EAAA;QAC1B,kBAAkB,CAAC,YAAY,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AACnE,KAAC,CAAC;AACJ,CAAC;AAGK,MAAgB,gBAEkD,SAAQ,cAAwB,CAAA;AAUtG,IAAA,WAAA,CAGI,QAA4B,GAAA,IAAI,EAGhC,QAAA,GAAuB,IAAI,EAAA;QAE7B,KAAK,CAAC,QAAQ,CAAC,CAAC;AAhBX,QAAA,IAAA,CAAA,SAAS,GAAwB,IAAI,OAAO,EAAc,CAAC;AAE3D,QAAA,IAAA,CAAA,qBAA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;;ACxBnC;;AAEG;;;;"}
@@ -1,5 +1,2 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@rxap/remote-method/http/directive" />
5
- export * from './public_api';
1
+ export * from './lib/http-remote-method.directive';
2
+ export * from './lib/contenteditable.directive';
@@ -10,13 +10,5 @@ export declare class ContenteditableDirective {
10
10
  onClick($event: Event): void;
11
11
  onInput($event: any): Promise<any>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ContenteditableDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<ContenteditableDirective, "[rxapContenteditable]", never, { "remoteMethodId": { "alias": "rxapContenteditable"; "required": false; }; "property": { "alias": "property"; "required": false; }; "uuid": { "alias": "uuid"; "required": false; }; }, {}, never, never, false, never>;
14
- }
15
- /**
16
- * @deprecated removed
17
- */
18
- export declare class ContenteditableDirectiveModule {
19
- static ɵfac: i0.ɵɵFactoryDeclaration<ContenteditableDirectiveModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<ContenteditableDirectiveModule, [typeof ContenteditableDirective], never, [typeof ContenteditableDirective]>;
21
- static ɵinj: i0.ɵɵInjectorDeclaration<ContenteditableDirectiveModule>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ContenteditableDirective, "[rxapContenteditable]", never, { "remoteMethodId": { "alias": "rxapContenteditable"; "required": false; }; "property": { "alias": "property"; "required": false; }; "uuid": { "alias": "uuid"; "required": false; }; }, {}, never, never, true, never>;
22
14
  }
@@ -1,5 +1,5 @@
1
1
  import { RemoteMethodDirective } from '@rxap/remote-method/directive';
2
- import { HttpRemoteMethodParameter, HttpRemoteMethodMetadata } from '@rxap/remote-method/http';
2
+ import { HttpRemoteMethodMetadata, HttpRemoteMethodParameter } from '@rxap/remote-method/http';
3
3
  import { BaseRemoteMethod } from '@rxap/remote-method';
4
4
  import { IdOrInstanceOrToken } from '@rxap/definition';
5
5
  import * as i0 from "@angular/core";
@@ -15,10 +15,5 @@ export declare class HttpRemoteMethodDirective<ReturnType = any, Metadata extend
15
15
  set pathParams(pathParams: HttpRemoteMethodParameter['pathParams']);
16
16
  set remoteMethodOrIdOrToken(value: IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, HttpRemoteMethodParameter, Metadata>>);
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<HttpRemoteMethodDirective<any, any>, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<HttpRemoteMethodDirective<any, any>, "button[rxapHttpRemoteMethod]", never, { "headers": { "alias": "headers"; "required": false; }; "reportProgress": { "alias": "reportProgress"; "required": false; }; "params": { "alias": "params"; "required": false; }; "responseType": { "alias": "responseType"; "required": false; }; "withCredentials": { "alias": "withCredentials"; "required": false; }; "body": { "alias": "body"; "required": false; }; "setHeaders": { "alias": "setHeaders"; "required": false; }; "setParams": { "alias": "setParams"; "required": false; }; "pathParams": { "alias": "pathParams"; "required": false; }; "remoteMethodOrIdOrToken": { "alias": "rxapHttpRemoteMethod"; "required": false; }; }, {}, never, never, false, never>;
19
- }
20
- export declare class HttpRemoteMethodDirectiveModule {
21
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpRemoteMethodDirectiveModule, never>;
22
- static ɵmod: i0.ɵɵNgModuleDeclaration<HttpRemoteMethodDirectiveModule, [typeof HttpRemoteMethodDirective], never, [typeof HttpRemoteMethodDirective]>;
23
- static ɵinj: i0.ɵɵInjectorDeclaration<HttpRemoteMethodDirectiveModule>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HttpRemoteMethodDirective<any, any>, "button[rxapHttpRemoteMethod]", never, { "headers": { "alias": "headers"; "required": false; }; "reportProgress": { "alias": "reportProgress"; "required": false; }; "params": { "alias": "params"; "required": false; }; "responseType": { "alias": "responseType"; "required": false; }; "withCredentials": { "alias": "withCredentials"; "required": false; }; "body": { "alias": "body"; "required": false; }; "setHeaders": { "alias": "setHeaders"; "required": false; }; "setParams": { "alias": "setParams"; "required": false; }; "pathParams": { "alias": "pathParams"; "required": false; }; "remoteMethodOrIdOrToken": { "alias": "rxapHttpRemoteMethod"; "required": false; }; }, {}, never, never, true, never>;
24
19
  }
package/http/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@rxap/remote-method/http" />
5
- export * from './public_api';
1
+ export * from './lib/http.remote-method';
2
+ export * from './lib/http-remote-method.loader';
3
+ export * from './lib/base-http.remote-method';
@@ -1,5 +1,5 @@
1
1
  import { Injector } from '@angular/core';
2
- import { HttpClient, HttpRequest, HttpHeaders, HttpParams } from '@angular/common/http';
2
+ import { HttpClient, HttpHeaders, HttpParams, HttpRequest } from '@angular/common/http';
3
3
  import { BaseRemoteMethod, BaseRemoteMethodMetadata } from '@rxap/remote-method';
4
4
  import * as i0 from "@angular/core";
5
5
  export interface HttpRemoteMethodMetadata extends BaseRemoteMethodMetadata {
@@ -30,13 +30,13 @@ export interface HttpRemoteMethodParameter<PathParams = any> {
30
30
  }
31
31
  export declare abstract class BaseHttpRemoteMethod<ReturnType = any, PathParams = any, Parameter extends object = HttpRemoteMethodParameter<PathParams>, MetaData extends HttpRemoteMethodMetadata = HttpRemoteMethodMetadata> extends BaseRemoteMethod<ReturnType, Parameter, MetaData> {
32
32
  readonly http: HttpClient;
33
- protected _httpRequest: HttpRequest<ReturnType>;
34
33
  timeout: number;
34
+ protected _httpRequest: HttpRequest<ReturnType>;
35
35
  constructor(http: HttpClient, injector: Injector, metaData?: any | null);
36
- protected getRequestUrl(): string;
37
36
  init(): void;
38
37
  updateRequest(parameters: Partial<HttpRemoteMethodParameter>): HttpRequest<ReturnType>;
39
38
  buildUrlWithParams(url: string, pathParams?: PathParams): string;
39
+ protected getRequestUrl(): string;
40
40
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseHttpRemoteMethod<any, any, any, any>, [null, null, { optional: true; }]>;
41
41
  static ɵprov: i0.ɵɵInjectableDeclaration<BaseHttpRemoteMethod<any, any, any, any>>;
42
42
  }
@@ -1,5 +1,5 @@
1
- import { RemoteMethodLoader, BaseRemoteMethodMetadata, BaseRemoteMethod } from '@rxap/remote-method';
2
- import { Injector, InjectFlags } from '@angular/core';
1
+ import { BaseRemoteMethod, BaseRemoteMethodMetadata, RemoteMethodLoader } from '@rxap/remote-method';
2
+ import { InjectFlags, Injector } from '@angular/core';
3
3
  import { IdOrInstanceOrToken } from '@rxap/definition';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class HttpRemoteMethodLoader {
@@ -1,14 +1,14 @@
1
- import { HttpSentEvent, HttpHeaderResponse, HttpResponse, HttpProgressEvent } from '@angular/common/http';
2
- import { BaseHttpRemoteMethod, HttpRemoteMethodParameter, HttpRemoteMethodMetadata } from './base-http.remote-method';
1
+ import { HttpHeaderResponse, HttpProgressEvent, HttpResponse, HttpSentEvent } from '@angular/common/http';
2
+ import { BaseHttpRemoteMethod, HttpRemoteMethodMetadata, HttpRemoteMethodParameter } from './base-http.remote-method';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class HttpRemoteMethod<ReturnType = any, PathParams = any, Parameter extends object = HttpRemoteMethodParameter<PathParams>, MetaData extends HttpRemoteMethodMetadata = HttpRemoteMethodMetadata> extends BaseHttpRemoteMethod<ReturnType, PathParams, Parameter, MetaData> {
5
- protected _call(parameters?: Parameter): Promise<ReturnType>;
6
5
  onSentEvent(event: HttpSentEvent): void;
7
6
  onHeaderResponse(event: HttpHeaderResponse): void;
8
7
  onResponse(event: HttpResponse<ReturnType>): void;
9
8
  onProgressEvent(event: HttpProgressEvent): void;
10
9
  createHttpRequestParameters(parameters?: Parameter): Partial<HttpRemoteMethodParameter>;
11
10
  transformer(response: any): ReturnType;
11
+ protected _call(parameters?: Parameter): Promise<ReturnType>;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<HttpRemoteMethod<any, any, any, any>, never>;
13
13
  static ɵprov: i0.ɵɵInjectableDeclaration<HttpRemoteMethod<any, any, any, any>>;
14
14
  }
@@ -1,8 +1,8 @@
1
- import { Injector, Type, InjectionToken, AbstractType } from '@angular/core';
1
+ import { AbstractType, InjectionToken, Injector, Type } from '@angular/core';
2
2
  import { BaseDefinition, BaseDefinitionMetadata } from '@rxap/definition';
3
3
  import { Subject } from 'rxjs';
4
4
  import { Refreshable } from '@rxap/utilities';
5
- import { CounterSubject } from '@rxap/utilities/rxjs';
5
+ import { CounterSubject } from '@rxap/rxjs';
6
6
  import * as i0 from "@angular/core";
7
7
  export interface BaseRemoteMethodMetadata extends BaseDefinitionMetadata {
8
8
  refresh?: Array<Type<Refreshable> | InjectionToken<Refreshable> | AbstractType<Refreshable>>;
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
4
4
  export declare abstract class ProxyRemoteMethod<ReturnType = any, SourceParameter = any, TargetParameter = SourceParameter> extends BaseRemoteMethod<ReturnType, SourceParameter> {
5
5
  private readonly remoteMethod;
6
6
  constructor(remoteMethod: BaseRemoteMethod, injector?: Injector | null, metadata?: BaseRemoteMethodMetadata);
7
- protected _call(parameters?: SourceParameter): Promise<any>;
8
7
  abstract transformParameters(parameters?: SourceParameter): TargetParameter | Promise<TargetParameter>;
8
+ protected _call(parameters?: SourceParameter): Promise<any>;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<ProxyRemoteMethod<any, any, any>, never>;
10
10
  static ɵprov: i0.ɵɵInjectableDeclaration<ProxyRemoteMethod<any, any, any>>;
11
11
  }
@@ -1,4 +1,4 @@
1
- import { Injector, InjectFlags } from '@angular/core';
1
+ import { InjectFlags, Injector } from '@angular/core';
2
2
  import { BaseRemoteMethod, BaseRemoteMethodMetadata } from './base.remote-method';
3
3
  import { DefinitionLoader, IdOrInstanceOrToken } from '@rxap/definition';
4
4
  import * as i0 from "@angular/core";
package/package.json CHANGED
@@ -1,55 +1,60 @@
1
1
  {
2
2
  "name": "@rxap/remote-method",
3
- "version": "16.0.0-dev.1",
4
- "private": false,
5
- "author": "Merzough Münker",
6
- "homepage": "https://gitlab.com/rxap/packages/libs/remote-method",
7
- "repository": "git@gitlab.com:rxap/packages.git",
3
+ "version": "16.0.0-dev.3",
4
+ "peerDependencies": {
5
+ "@angular/common": "^16.0.0",
6
+ "@angular/core": "^16.0.0",
7
+ "@rxap/definition": "^16.0.0-dev.3",
8
+ "@rxap/rxjs": "^1.0.1-dev.0",
9
+ "@rxap/utilities": "^16.0.0-dev.2",
10
+ "rxjs": "^7.8.0",
11
+ "@angular/platform-browser": "16.1.4"
12
+ },
13
+ "sideEffects": false,
14
+ "dependencies": {
15
+ "tslib": "2.5.3"
16
+ },
17
+ "description": "Provides the RemoteMethod concept for RxAP.",
18
+ "publishConfig": {
19
+ "access": "public",
20
+ "directory": "../../../dist/packages/angular/remote-method"
21
+ },
8
22
  "keywords": [
9
23
  "rxap",
10
- "remote-method",
11
- "angular"
24
+ "angular",
25
+ "ngx"
12
26
  ],
13
- "license": "BSD-3-Clause",
27
+ "homepage": "https:/gitlab.com/rxap/packages/packages/angular/remote-method",
14
28
  "bugs": {
15
29
  "url": "https://gitlab.com/rxap/packages/-/issues",
16
30
  "email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
17
31
  },
18
- "description": "Provides the RemoteMethod concept for RxAP.",
19
- "peerDependencies": {
20
- "@angular-devkit/core": "^15.0.3",
21
- "@angular-devkit/schematics": "^15.0.3",
22
- "@angular/common": "^16.0.2",
23
- "@angular/core": "^16.0.2",
24
- "@angular/platform-browser": "^16.0.2",
25
- "@angular/platform-browser-dynamic": "^16.0.2",
26
- "@rxap/definition": "^16.0.0-dev.1",
27
- "@rxap/utilities": "^16.0.0-dev.1",
28
- "@schematics/angular": "^16.0.2",
29
- "reflect-metadata": "^0.1.13",
30
- "rxjs": "^6.6.0"
32
+ "license": "GPL-3.0-or-later",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://gitlab.com/rxap/packages.git",
36
+ "directory": "packages/angular/remote-method"
37
+ },
38
+ "author": {
39
+ "name": "Merzough Münker",
40
+ "email": "mmuenker@digitaix.com"
31
41
  },
32
- "schematics": "./collection.json",
33
- "ng-update": {
34
- "migrations": "./migration.json",
42
+ "nx-migrations": {
35
43
  "packageGroup": [
36
- "@rxap/definition",
37
- "@rxap/remote-method",
38
- "@rxap/utilities"
44
+ {
45
+ "package": "@rxap/utilities",
46
+ "version": "16.0.0-dev.2"
47
+ },
48
+ {
49
+ "package": "@rxap/definition",
50
+ "version": "16.0.0-dev.3"
51
+ },
52
+ {
53
+ "package": "@rxap/rxjs",
54
+ "version": "1.0.1-dev.0"
55
+ }
39
56
  ]
40
57
  },
41
- "publishConfig": {
42
- "directory": "../../dist/libs/remote-method",
43
- "access": "public"
44
- },
45
- "ng-add": {
46
- "save": "dependencies"
47
- },
48
- "dependencies": {
49
- "@rxap/schematics-utilities": "^16.0.0-dev.1",
50
- "ts-morph": "^13.0.3",
51
- "tslib": "^2.3.1"
52
- },
53
58
  "module": "fesm2022/rxap-remote-method.mjs",
54
59
  "typings": "index.d.ts",
55
60
  "exports": {
@@ -86,6 +91,5 @@
86
91
  "esm": "./esm2022/http/directive/rxap-remote-method-http-directive.mjs",
87
92
  "default": "./fesm2022/rxap-remote-method-http-directive.mjs"
88
93
  }
89
- },
90
- "sideEffects": false
91
- }
94
+ }
95
+ }
@@ -1,5 +1 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@rxap/remote-method/testing" />
5
- export * from './public_api';
1
+ export * from './lib/remote-method-testing-loader';
@@ -1,5 +1,5 @@
1
- import { RemoteMethodLoader, BaseRemoteMethod, BaseRemoteMethodMetadata } from '@rxap/remote-method';
2
- import { Provider, Type, InjectionToken, AbstractType } from '@angular/core';
1
+ import { BaseRemoteMethod, BaseRemoteMethodMetadata, RemoteMethodLoader } from '@rxap/remote-method';
2
+ import { AbstractType, InjectionToken, Provider, Type } from '@angular/core';
3
3
  export type MockRemoteMethod = (parameters?: any, metadata?: any) => any;
4
4
  export declare class RemoteMethodTestingLoader extends RemoteMethodLoader {
5
5
  private mockedRemoteMethods;
package/LICENSE DELETED
@@ -1,24 +0,0 @@
1
- Copyright (c) 2021, Merzough Münker
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
- 1. Redistributions of source code must retain the above copyright
7
- notice, this list of conditions and the following disclaimer.
8
- 2. Redistributions in binary form must reproduce the above copyright
9
- notice, this list of conditions and the following disclaimer in the
10
- documentation and/or other materials provided with the distribution.
11
- 3. Neither the name of Merzough Münker nor the
12
- names of its contributors may be used to endorse or promote products
13
- derived from this software without specific prior written permission.
14
-
15
- THIS SOFTWARE IS PROVIDED BY MERZOGUH MÜNKER ''AS IS'' AND ANY
16
- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
- DISCLAIMED. IN NO EVENT SHALL MERZOGUH MÜNKER BE LIABLE FOR ANY
19
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/collection.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "schematics": {
3
- "ng-add": {
4
- "description": "Setup the package @rxap/remote-method for the workspace.",
5
- "factory": "./src/schematics/ng-add/index",
6
- "schema": "./src/schematics/ng-add/schema.json"
7
- },
8
- "base": {
9
- "description": "create a base remote method",
10
- "factory": "./src/schematics/base/index",
11
- "schema": "./src/schematics/base/schema.json"
12
- },
13
- "http": {
14
- "description": "Creates a http remote method",
15
- "factory": "./src/schematics/http/index",
16
- "schema": "./src/schematics/http/schema.json"
17
- },
18
- "directive": {
19
- "description": "add a directive for the remote method",
20
- "factory": "./src/schematics/directive/index",
21
- "schema": "./src/schematics/directive/schema.json"
22
- }
23
- },
24
- "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
25
- }
@@ -1,5 +0,0 @@
1
- export * from './lib/remote-method.directive';
2
- export * from './lib/remote-method-template-collection.directive';
3
- export * from './lib/remote-method-template.directive';
4
- export * from './lib/error';
5
- export * from './lib/tokens';
@@ -1,6 +0,0 @@
1
- export * from './lib/remote-method.directive';
2
- export * from './lib/remote-method-template-collection.directive';
3
- export * from './lib/remote-method-template.directive';
4
- export * from './lib/error';
5
- export * from './lib/tokens';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvcmVtb3RlLW1ldGhvZC9kaXJlY3RpdmUvc3JjL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLG1EQUFtRCxDQUFDO0FBQ2xFLGNBQWMsd0NBQXdDLENBQUM7QUFDdkQsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9yZW1vdGUtbWV0aG9kLmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9yZW1vdGUtbWV0aG9kLXRlbXBsYXRlLWNvbGxlY3Rpb24uZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3JlbW90ZS1tZXRob2QtdGVtcGxhdGUuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2Vycm9yJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3Rva2Vucyc7XG4iXX0=
@@ -1,3 +0,0 @@
1
- export * from './lib/http-remote-method.directive';
2
- export * from './lib/contenteditable.directive';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvcmVtb3RlLW1ldGhvZC9odHRwL2RpcmVjdGl2ZS9zcmMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9DQUFvQyxDQUFDO0FBQ25ELGNBQWMsaUNBQWlDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9odHRwLXJlbW90ZS1tZXRob2QuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbnRlbnRlZGl0YWJsZS5kaXJlY3RpdmUnO1xuIl19
@@ -1,4 +0,0 @@
1
- export * from './lib/http.remote-method';
2
- export * from './lib/http-remote-method.loader';
3
- export * from './lib/base-http.remote-method';
4
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvcmVtb3RlLW1ldGhvZC9odHRwL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsMEJBQTBCLENBQUM7QUFDekMsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvaHR0cC5yZW1vdGUtbWV0aG9kJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2h0dHAtcmVtb3RlLW1ldGhvZC5sb2FkZXInO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvYmFzZS1odHRwLnJlbW90ZS1tZXRob2QnO1xuIl19
@@ -1,2 +0,0 @@
1
- export * from './lib/remote-method-testing-loader';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvcmVtb3RlLW1ldGhvZC90ZXN0aW5nL3NyYy9wdWJsaWNfYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0NBQW9DLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYi9yZW1vdGUtbWV0aG9kLXRlc3RpbmctbG9hZGVyJztcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './lib/http-remote-method.directive';
2
- export * from './lib/contenteditable.directive';
@@ -1,3 +0,0 @@
1
- export * from './lib/http.remote-method';
2
- export * from './lib/http-remote-method.loader';
3
- export * from './lib/base-http.remote-method';
package/migration.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "schematics": {},
3
- "$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
4
- }
@@ -1,14 +0,0 @@
1
- import { RxapRemoteMethod, BaseRemoteMethod } from '@rxap/remote-method';
2
- import { Injectable } from '@angular/core';
3
-
4
- @RxapRemoteMethod({
5
- id: '<%= dasherize(name) %>'
6
- })
7
- @Injectable()
8
- export class <%= classify(name) %>RemoteMethod extends BaseRemoteMethod {
9
-
10
- protected async _call(parameters?: any): Promise<any> {
11
- return parameters;
12
- }
13
-
14
- }
@@ -1,12 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { BaseSchema } from './schema';
3
- export interface CreateRemoteMethodOptions {
4
- filePath: string;
5
- name: string;
6
- parametersType: string;
7
- returnType: string;
8
- collection: boolean;
9
- }
10
- export declare function CreateRemoteMethod({ filePath, name, parametersType, returnType, collection }: CreateRemoteMethodOptions): Rule;
11
- export declare function AddExport(basePath: string, filePath: string): Rule;
12
- export default function (options: BaseSchema): Rule;