@rxap/remote-method 12.0.9 → 13.0.0-next.0

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 (125) hide show
  1. package/directive/package.json +5 -5
  2. package/esm2020/directive/lib/error.mjs +7 -0
  3. package/esm2020/directive/lib/remote-method-template-collection.directive.mjs +333 -0
  4. package/esm2020/directive/lib/remote-method-template.directive.mjs +201 -0
  5. package/esm2020/directive/lib/remote-method.directive.mjs +165 -0
  6. package/esm2020/directive/lib/tokens.mjs +3 -0
  7. package/esm2020/directive/public_api.mjs +6 -0
  8. package/esm2020/directive/rxap-remote-method-directive.mjs +5 -0
  9. package/esm2020/http/directive/lib/contenteditable.directive.mjs +86 -0
  10. package/esm2020/http/directive/lib/http-remote-method.directive.mjs +79 -0
  11. package/esm2020/http/directive/public_api.mjs +3 -0
  12. package/esm2020/http/directive/rxap-remote-method-http-directive.mjs +5 -0
  13. package/esm2020/http/lib/base-http.remote-method.mjs +82 -0
  14. package/esm2020/http/lib/http-remote-method.loader.mjs +30 -0
  15. package/esm2020/http/lib/http.remote-method.mjs +45 -0
  16. package/esm2020/http/public_api.mjs +4 -0
  17. package/esm2020/http/rxap-remote-method-http.mjs +5 -0
  18. package/esm2020/index.mjs +6 -0
  19. package/esm2020/lib/base.remote-method.mjs +73 -0
  20. package/esm2020/lib/error.mjs +7 -0
  21. package/esm2020/lib/proxy.remote-method.mjs +29 -0
  22. package/esm2020/lib/remote-method-loader.mjs +17 -0
  23. package/esm2020/lib/tokens.mjs +4 -0
  24. package/esm2020/rxap-remote-method.mjs +5 -0
  25. package/esm2020/testing/lib/remote-method-testing-loader.mjs +47 -0
  26. package/esm2020/testing/public_api.mjs +2 -0
  27. package/esm2020/testing/rxap-remote-method-testing.mjs +5 -0
  28. package/fesm2015/rxap-remote-method-directive.mjs +712 -0
  29. package/fesm2015/rxap-remote-method-directive.mjs.map +1 -0
  30. package/fesm2015/rxap-remote-method-http-directive.mjs +172 -0
  31. package/fesm2015/rxap-remote-method-http-directive.mjs.map +1 -0
  32. package/fesm2015/rxap-remote-method-http.mjs +158 -0
  33. package/fesm2015/rxap-remote-method-http.mjs.map +1 -0
  34. package/fesm2015/{rxap-remote-method-testing.js → rxap-remote-method-testing.mjs} +1 -1
  35. package/fesm2015/rxap-remote-method-testing.mjs.map +1 -0
  36. package/fesm2015/{rxap-remote-method.js → rxap-remote-method.mjs} +35 -31
  37. package/fesm2015/rxap-remote-method.mjs.map +1 -0
  38. package/{fesm2015/rxap-remote-method-directive.js → fesm2020/rxap-remote-method-directive.mjs} +64 -72
  39. package/fesm2020/rxap-remote-method-directive.mjs.map +1 -0
  40. package/{fesm2015/rxap-remote-method-http-directive.js → fesm2020/rxap-remote-method-http-directive.mjs} +15 -15
  41. package/fesm2020/rxap-remote-method-http-directive.mjs.map +1 -0
  42. package/{fesm2015/rxap-remote-method-http.js → fesm2020/rxap-remote-method-http.mjs} +18 -16
  43. package/fesm2020/rxap-remote-method-http.mjs.map +1 -0
  44. package/{esm2015/testing/lib/remote-method-testing-loader.js → fesm2020/rxap-remote-method-testing.mjs} +18 -17
  45. package/fesm2020/rxap-remote-method-testing.mjs.map +1 -0
  46. package/fesm2020/rxap-remote-method.mjs +126 -0
  47. package/fesm2020/rxap-remote-method.mjs.map +1 -0
  48. package/http/directive/package.json +5 -5
  49. package/http/package.json +5 -5
  50. package/package.json +62 -14
  51. package/src/schematics/base/index.js +9 -9
  52. package/src/schematics/base/index.js.map +1 -1
  53. package/src/schematics/directive/index.js +6 -6
  54. package/src/schematics/directive/index.js.map +1 -1
  55. package/src/schematics/http/index.js +7 -7
  56. package/src/schematics/http/index.js.map +1 -1
  57. package/src/schematics/ng-add/index.js +1 -1
  58. package/src/schematics/ng-add/index.js.map +1 -1
  59. package/testing/package.json +5 -5
  60. package/bundles/rxap-remote-method-directive.umd.js +0 -1150
  61. package/bundles/rxap-remote-method-directive.umd.js.map +0 -1
  62. package/bundles/rxap-remote-method-http-directive.umd.js +0 -565
  63. package/bundles/rxap-remote-method-http-directive.umd.js.map +0 -1
  64. package/bundles/rxap-remote-method-http.umd.js +0 -520
  65. package/bundles/rxap-remote-method-http.umd.js.map +0 -1
  66. package/bundles/rxap-remote-method-testing.umd.js +0 -388
  67. package/bundles/rxap-remote-method-testing.umd.js.map +0 -1
  68. package/bundles/rxap-remote-method.umd.js +0 -527
  69. package/bundles/rxap-remote-method.umd.js.map +0 -1
  70. package/esm2015/directive/lib/error.js +0 -7
  71. package/esm2015/directive/lib/error.js.map +0 -1
  72. package/esm2015/directive/lib/remote-method-template-collection.directive.js +0 -333
  73. package/esm2015/directive/lib/remote-method-template-collection.directive.js.map +0 -1
  74. package/esm2015/directive/lib/remote-method-template.directive.js +0 -204
  75. package/esm2015/directive/lib/remote-method-template.directive.js.map +0 -1
  76. package/esm2015/directive/lib/remote-method.directive.js +0 -170
  77. package/esm2015/directive/lib/remote-method.directive.js.map +0 -1
  78. package/esm2015/directive/lib/tokens.js +0 -3
  79. package/esm2015/directive/lib/tokens.js.map +0 -1
  80. package/esm2015/directive/public_api.js +0 -6
  81. package/esm2015/directive/public_api.js.map +0 -1
  82. package/esm2015/directive/rxap-remote-method-directive.js +0 -5
  83. package/esm2015/directive/rxap-remote-method-directive.js.map +0 -1
  84. package/esm2015/http/directive/lib/contenteditable.directive.js +0 -86
  85. package/esm2015/http/directive/lib/contenteditable.directive.js.map +0 -1
  86. package/esm2015/http/directive/lib/http-remote-method.directive.js +0 -79
  87. package/esm2015/http/directive/lib/http-remote-method.directive.js.map +0 -1
  88. package/esm2015/http/directive/public_api.js +0 -3
  89. package/esm2015/http/directive/public_api.js.map +0 -1
  90. package/esm2015/http/directive/rxap-remote-method-http-directive.js +0 -5
  91. package/esm2015/http/directive/rxap-remote-method-http-directive.js.map +0 -1
  92. package/esm2015/http/lib/base-http.remote-method.js +0 -79
  93. package/esm2015/http/lib/base-http.remote-method.js.map +0 -1
  94. package/esm2015/http/lib/http-remote-method.loader.js +0 -30
  95. package/esm2015/http/lib/http-remote-method.loader.js.map +0 -1
  96. package/esm2015/http/lib/http.remote-method.js +0 -46
  97. package/esm2015/http/lib/http.remote-method.js.map +0 -1
  98. package/esm2015/http/public_api.js +0 -4
  99. package/esm2015/http/public_api.js.map +0 -1
  100. package/esm2015/http/rxap-remote-method-http.js +0 -5
  101. package/esm2015/http/rxap-remote-method-http.js.map +0 -1
  102. package/esm2015/index.js +0 -6
  103. package/esm2015/index.js.map +0 -1
  104. package/esm2015/lib/base.remote-method.js +0 -76
  105. package/esm2015/lib/base.remote-method.js.map +0 -1
  106. package/esm2015/lib/error.js +0 -7
  107. package/esm2015/lib/error.js.map +0 -1
  108. package/esm2015/lib/proxy.remote-method.js +0 -32
  109. package/esm2015/lib/proxy.remote-method.js.map +0 -1
  110. package/esm2015/lib/remote-method-loader.js +0 -20
  111. package/esm2015/lib/remote-method-loader.js.map +0 -1
  112. package/esm2015/lib/tokens.js +0 -4
  113. package/esm2015/lib/tokens.js.map +0 -1
  114. package/esm2015/rxap-remote-method.js +0 -5
  115. package/esm2015/rxap-remote-method.js.map +0 -1
  116. package/esm2015/testing/lib/remote-method-testing-loader.js.map +0 -1
  117. package/esm2015/testing/public_api.js +0 -2
  118. package/esm2015/testing/public_api.js.map +0 -1
  119. package/esm2015/testing/rxap-remote-method-testing.js +0 -5
  120. package/esm2015/testing/rxap-remote-method-testing.js.map +0 -1
  121. package/fesm2015/rxap-remote-method-directive.js.map +0 -1
  122. package/fesm2015/rxap-remote-method-http-directive.js.map +0 -1
  123. package/fesm2015/rxap-remote-method-http.js.map +0 -1
  124. package/fesm2015/rxap-remote-method-testing.js.map +0 -1
  125. package/fesm2015/rxap-remote-method.js.map +0 -1
@@ -1,520 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs/operators'), require('@rxap/remote-method'), require('@rxap/utilities')) :
3
- typeof define === 'function' && define.amd ? define('@rxap/remote-method/http', ['exports', '@angular/core', '@angular/common/http', 'rxjs/operators', '@rxap/remote-method', '@rxap/utilities'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap['remote-method'] = global.rxap['remote-method'] || {}, global.rxap['remote-method'].http = {}), global.ng.core, global.ng.common.http, global.rxjs.operators, global.rxap['remote-method'], global.utilities));
5
- }(this, (function (exports, i0, i1$1, operators, i1, utilities) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
19
- });
20
- }
21
- });
22
- }
23
- n['default'] = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
29
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
30
-
31
- /*! *****************************************************************************
32
- Copyright (c) Microsoft Corporation.
33
-
34
- Permission to use, copy, modify, and/or distribute this software for any
35
- purpose with or without fee is hereby granted.
36
-
37
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
38
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
39
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
40
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
41
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
42
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
43
- PERFORMANCE OF THIS SOFTWARE.
44
- ***************************************************************************** */
45
- /* global Reflect, Promise */
46
- var extendStatics = function (d, b) {
47
- extendStatics = Object.setPrototypeOf ||
48
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
49
- function (d, b) { for (var p in b)
50
- if (Object.prototype.hasOwnProperty.call(b, p))
51
- d[p] = b[p]; };
52
- return extendStatics(d, b);
53
- };
54
- function __extends(d, b) {
55
- if (typeof b !== "function" && b !== null)
56
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
57
- extendStatics(d, b);
58
- function __() { this.constructor = d; }
59
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
60
- }
61
- var __assign = function () {
62
- __assign = Object.assign || function __assign(t) {
63
- for (var s, i = 1, n = arguments.length; i < n; i++) {
64
- s = arguments[i];
65
- for (var p in s)
66
- if (Object.prototype.hasOwnProperty.call(s, p))
67
- t[p] = s[p];
68
- }
69
- return t;
70
- };
71
- return __assign.apply(this, arguments);
72
- };
73
- function __rest(s, e) {
74
- var t = {};
75
- for (var p in s)
76
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
77
- t[p] = s[p];
78
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
79
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
80
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
81
- t[p[i]] = s[p[i]];
82
- }
83
- return t;
84
- }
85
- function __decorate(decorators, target, key, desc) {
86
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
87
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
88
- r = Reflect.decorate(decorators, target, key, desc);
89
- else
90
- for (var i = decorators.length - 1; i >= 0; i--)
91
- if (d = decorators[i])
92
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
93
- return c > 3 && r && Object.defineProperty(target, key, r), r;
94
- }
95
- function __param(paramIndex, decorator) {
96
- return function (target, key) { decorator(target, key, paramIndex); };
97
- }
98
- function __metadata(metadataKey, metadataValue) {
99
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
100
- return Reflect.metadata(metadataKey, metadataValue);
101
- }
102
- function __awaiter(thisArg, _arguments, P, generator) {
103
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
104
- return new (P || (P = Promise))(function (resolve, reject) {
105
- function fulfilled(value) { try {
106
- step(generator.next(value));
107
- }
108
- catch (e) {
109
- reject(e);
110
- } }
111
- function rejected(value) { try {
112
- step(generator["throw"](value));
113
- }
114
- catch (e) {
115
- reject(e);
116
- } }
117
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
118
- step((generator = generator.apply(thisArg, _arguments || [])).next());
119
- });
120
- }
121
- function __generator(thisArg, body) {
122
- var _ = { label: 0, sent: function () { if (t[0] & 1)
123
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
124
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
125
- function verb(n) { return function (v) { return step([n, v]); }; }
126
- function step(op) {
127
- if (f)
128
- throw new TypeError("Generator is already executing.");
129
- while (_)
130
- try {
131
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
132
- return t;
133
- if (y = 0, t)
134
- op = [op[0] & 2, t.value];
135
- switch (op[0]) {
136
- case 0:
137
- case 1:
138
- t = op;
139
- break;
140
- case 4:
141
- _.label++;
142
- return { value: op[1], done: false };
143
- case 5:
144
- _.label++;
145
- y = op[1];
146
- op = [0];
147
- continue;
148
- case 7:
149
- op = _.ops.pop();
150
- _.trys.pop();
151
- continue;
152
- default:
153
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
154
- _ = 0;
155
- continue;
156
- }
157
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
158
- _.label = op[1];
159
- break;
160
- }
161
- if (op[0] === 6 && _.label < t[1]) {
162
- _.label = t[1];
163
- t = op;
164
- break;
165
- }
166
- if (t && _.label < t[2]) {
167
- _.label = t[2];
168
- _.ops.push(op);
169
- break;
170
- }
171
- if (t[2])
172
- _.ops.pop();
173
- _.trys.pop();
174
- continue;
175
- }
176
- op = body.call(thisArg, _);
177
- }
178
- catch (e) {
179
- op = [6, e];
180
- y = 0;
181
- }
182
- finally {
183
- f = t = 0;
184
- }
185
- if (op[0] & 5)
186
- throw op[1];
187
- return { value: op[0] ? op[1] : void 0, done: true };
188
- }
189
- }
190
- var __createBinding = Object.create ? (function (o, m, k, k2) {
191
- if (k2 === undefined)
192
- k2 = k;
193
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
194
- }) : (function (o, m, k, k2) {
195
- if (k2 === undefined)
196
- k2 = k;
197
- o[k2] = m[k];
198
- });
199
- function __exportStar(m, o) {
200
- for (var p in m)
201
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
202
- __createBinding(o, m, p);
203
- }
204
- function __values(o) {
205
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
206
- if (m)
207
- return m.call(o);
208
- if (o && typeof o.length === "number")
209
- return {
210
- next: function () {
211
- if (o && i >= o.length)
212
- o = void 0;
213
- return { value: o && o[i++], done: !o };
214
- }
215
- };
216
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
217
- }
218
- function __read(o, n) {
219
- var m = typeof Symbol === "function" && o[Symbol.iterator];
220
- if (!m)
221
- return o;
222
- var i = m.call(o), r, ar = [], e;
223
- try {
224
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
225
- ar.push(r.value);
226
- }
227
- catch (error) {
228
- e = { error: error };
229
- }
230
- finally {
231
- try {
232
- if (r && !r.done && (m = i["return"]))
233
- m.call(i);
234
- }
235
- finally {
236
- if (e)
237
- throw e.error;
238
- }
239
- }
240
- return ar;
241
- }
242
- /** @deprecated */
243
- function __spread() {
244
- for (var ar = [], i = 0; i < arguments.length; i++)
245
- ar = ar.concat(__read(arguments[i]));
246
- return ar;
247
- }
248
- /** @deprecated */
249
- function __spreadArrays() {
250
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
251
- s += arguments[i].length;
252
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
253
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
254
- r[k] = a[j];
255
- return r;
256
- }
257
- function __spreadArray(to, from) {
258
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
259
- to[j] = from[i];
260
- return to;
261
- }
262
- function __await(v) {
263
- return this instanceof __await ? (this.v = v, this) : new __await(v);
264
- }
265
- function __asyncGenerator(thisArg, _arguments, generator) {
266
- if (!Symbol.asyncIterator)
267
- throw new TypeError("Symbol.asyncIterator is not defined.");
268
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
269
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
270
- function verb(n) { if (g[n])
271
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
272
- function resume(n, v) { try {
273
- step(g[n](v));
274
- }
275
- catch (e) {
276
- settle(q[0][3], e);
277
- } }
278
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
279
- function fulfill(value) { resume("next", value); }
280
- function reject(value) { resume("throw", value); }
281
- function settle(f, v) { if (f(v), q.shift(), q.length)
282
- resume(q[0][0], q[0][1]); }
283
- }
284
- function __asyncDelegator(o) {
285
- var i, p;
286
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
287
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
288
- }
289
- function __asyncValues(o) {
290
- if (!Symbol.asyncIterator)
291
- throw new TypeError("Symbol.asyncIterator is not defined.");
292
- var m = o[Symbol.asyncIterator], i;
293
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
294
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
295
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
296
- }
297
- function __makeTemplateObject(cooked, raw) {
298
- if (Object.defineProperty) {
299
- Object.defineProperty(cooked, "raw", { value: raw });
300
- }
301
- else {
302
- cooked.raw = raw;
303
- }
304
- return cooked;
305
- }
306
- ;
307
- var __setModuleDefault = Object.create ? (function (o, v) {
308
- Object.defineProperty(o, "default", { enumerable: true, value: v });
309
- }) : function (o, v) {
310
- o["default"] = v;
311
- };
312
- function __importStar(mod) {
313
- if (mod && mod.__esModule)
314
- return mod;
315
- var result = {};
316
- if (mod != null)
317
- for (var k in mod)
318
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
319
- __createBinding(result, mod, k);
320
- __setModuleDefault(result, mod);
321
- return result;
322
- }
323
- function __importDefault(mod) {
324
- return (mod && mod.__esModule) ? mod : { default: mod };
325
- }
326
- function __classPrivateFieldGet(receiver, state, kind, f) {
327
- if (kind === "a" && !f)
328
- throw new TypeError("Private accessor was defined without a getter");
329
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
330
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
331
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
332
- }
333
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
334
- if (kind === "m")
335
- throw new TypeError("Private method is not writable");
336
- if (kind === "a" && !f)
337
- throw new TypeError("Private accessor was defined without a setter");
338
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
339
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
340
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
341
- }
342
-
343
- var BaseHttpRemoteMethod = /** @class */ (function (_super) {
344
- __extends(BaseHttpRemoteMethod, _super);
345
- function BaseHttpRemoteMethod(http, injector, metaData) {
346
- if (metaData === void 0) { metaData = null; }
347
- var _this = this;
348
- var _a;
349
- _this = _super.call(this, injector, metaData) || this;
350
- _this.http = http;
351
- _this.timeout = 60 * 1000;
352
- _this.timeout = (_a = _this.metadata.timeout) !== null && _a !== void 0 ? _a : _this.timeout;
353
- if (http === undefined) {
354
- throw new i1.RxapRemoteMethodError('HttpClient is undefined. Ensure that the HttpClient is added to the deps property!', '', _this.constructor.name);
355
- }
356
- if (!(http instanceof i1$1.HttpClient)) {
357
- throw new i1.RxapRemoteMethodError('The property http is not an instance of HttpClinent. Check the deps property!', '', _this.constructor.name);
358
- }
359
- return _this;
360
- }
361
- BaseHttpRemoteMethod.prototype.getRequestUrl = function () {
362
- if (typeof this.metadata.url === 'function') {
363
- return this.metadata.url();
364
- }
365
- return this.metadata.url;
366
- };
367
- BaseHttpRemoteMethod.prototype.init = function () {
368
- _super.prototype.init.call(this);
369
- this._httpRequest = new i1$1.HttpRequest(this.metadata.method, this.getRequestUrl(), null, {
370
- headers: this.metadata.headers,
371
- reportProgress: this.metadata.reportProgress,
372
- params: this.metadata.params,
373
- responseType: this.metadata.responseType || 'json',
374
- withCredentials: this.metadata.withCredentials
375
- });
376
- };
377
- BaseHttpRemoteMethod.prototype.updateRequest = function (parameters) {
378
- var url = this._httpRequest.url;
379
- if (parameters && parameters.hasOwnProperty('pathParams')) {
380
- url = this.buildUrlWithParams(url, parameters.pathParams);
381
- }
382
- return this._httpRequest.clone(Object.assign(Object.assign({ withCredentials: this.metadata.withCredentials }, parameters), { url: url }));
383
- };
384
- BaseHttpRemoteMethod.prototype.buildUrlWithParams = function (url, pathParams) {
385
- var e_1, _b;
386
- if (pathParams) {
387
- if (!utilities.hasIndexSignature(pathParams)) {
388
- throw new i1.RxapRemoteMethodError("Path params for remote method '" + this.id + "' has not an index signature", '', this.constructor.name);
389
- }
390
- var matches = url.match(/\{[^\}]+\}/g);
391
- if (matches) {
392
- try {
393
- for (var matches_1 = __values(matches), matches_1_1 = matches_1.next(); !matches_1_1.done; matches_1_1 = matches_1.next()) {
394
- var match = matches_1_1.value;
395
- var param = match.substr(1, match.length - 2);
396
- if (!pathParams.hasOwnProperty(param)) {
397
- throw new i1.RxapRemoteMethodError("Path params for remote method '" + this.id + "' has not a defined value for '" + param + "'", '', this.constructor.name);
398
- }
399
- url = url.replace(match, encodeURIComponent(pathParams[param]));
400
- }
401
- }
402
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
403
- finally {
404
- try {
405
- if (matches_1_1 && !matches_1_1.done && (_b = matches_1.return)) _b.call(matches_1);
406
- }
407
- finally { if (e_1) throw e_1.error; }
408
- }
409
- }
410
- }
411
- return url;
412
- };
413
- return BaseHttpRemoteMethod;
414
- }(i1.BaseRemoteMethod));
415
- BaseHttpRemoteMethod.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BaseHttpRemoteMethod, deps: [{ token: i1$1.HttpClient }, { token: i0.Injector }, { token: i1.REMOTE_METHOD_META_DATA, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
416
- BaseHttpRemoteMethod.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BaseHttpRemoteMethod });
417
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: BaseHttpRemoteMethod, decorators: [{
418
- type: i0.Injectable
419
- }], ctorParameters: function () {
420
- return [{ type: i1__namespace.HttpClient, decorators: [{
421
- type: i0.Inject,
422
- args: [i1$1.HttpClient]
423
- }] }, { type: i0__namespace.Injector, decorators: [{
424
- type: i0.Inject,
425
- args: [i0.Injector]
426
- }] }, { type: undefined, decorators: [{
427
- type: i0.Optional
428
- }, {
429
- type: i0.Inject,
430
- args: [i1.REMOTE_METHOD_META_DATA]
431
- }] }];
432
- } });
433
-
434
- var HttpRemoteMethod = /** @class */ (function (_super) {
435
- __extends(HttpRemoteMethod, _super);
436
- function HttpRemoteMethod() {
437
- return _super !== null && _super.apply(this, arguments) || this;
438
- }
439
- HttpRemoteMethod.prototype._call = function (parameters) {
440
- var _this = this;
441
- var _a;
442
- return this.http.request(this.updateRequest(this.createHttpRequestParameters(parameters))).pipe(operators.retry((_a = this.metadata.retry) !== null && _a !== void 0 ? _a : 0), operators.tap(function (event) {
443
- switch (event.type) {
444
- case i1$1.HttpEventType.Sent:
445
- _this.onSentEvent(event);
446
- break;
447
- case i1$1.HttpEventType.Response:
448
- _this.onResponse(event);
449
- break;
450
- case i1$1.HttpEventType.DownloadProgress:
451
- _this.onProgressEvent(event);
452
- break;
453
- case i1$1.HttpEventType.UploadProgress:
454
- _this.onProgressEvent(event);
455
- break;
456
- case i1$1.HttpEventType.ResponseHeader:
457
- _this.onHeaderResponse(event);
458
- break;
459
- }
460
- }), operators.filter(function (event) { return event instanceof i1$1.HttpResponse; }), operators.map(function (event) { return event.body; }), operators.map(function (body) { return _this.transformer(body); }), operators.timeout(this.timeout)).toPromise();
461
- };
462
- HttpRemoteMethod.prototype.onSentEvent = function (event) { };
463
- HttpRemoteMethod.prototype.onHeaderResponse = function (event) { };
464
- HttpRemoteMethod.prototype.onResponse = function (event) { };
465
- HttpRemoteMethod.prototype.onProgressEvent = function (event) { };
466
- // TODO : make abstract to force implementation to handel parameter transformation
467
- HttpRemoteMethod.prototype.createHttpRequestParameters = function (parameters) {
468
- return parameters !== null && parameters !== void 0 ? parameters : {};
469
- };
470
- HttpRemoteMethod.prototype.transformer = function (response) {
471
- return response;
472
- };
473
- return HttpRemoteMethod;
474
- }(BaseHttpRemoteMethod));
475
- HttpRemoteMethod.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: HttpRemoteMethod, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
476
- HttpRemoteMethod.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: HttpRemoteMethod });
477
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: HttpRemoteMethod, decorators: [{
478
- type: i0.Injectable
479
- }] });
480
-
481
- var HttpRemoteMethodLoader = /** @class */ (function () {
482
- // Instead of extanding the RemoteMethodLoader class the RemoteMethodLoader instance
483
- // will be injected, else there could be multiple instance of RemoteMethodLoader's. Then
484
- // the RefreshService will not trigger a refresh for HttpRemoteMethod's
485
- function HttpRemoteMethodLoader(remoteMethodLoader) {
486
- this.remoteMethodLoader = remoteMethodLoader;
487
- }
488
- HttpRemoteMethodLoader.prototype.request$ = function (remoteMethodIdOrInstanceOrToken, parameters, metadata, injector, notFoundValue, flags) {
489
- var remoteMethod = this.remoteMethodLoader.load(remoteMethodIdOrInstanceOrToken, metadata, injector, notFoundValue, flags);
490
- if (!(remoteMethod instanceof HttpRemoteMethod)) {
491
- throw new i1.RxapRemoteMethodError("The remote method is not a HttpRemoteMethod", '', 'HttpRemoteMethodLoader');
492
- }
493
- return remoteMethod.call(parameters);
494
- };
495
- return HttpRemoteMethodLoader;
496
- }());
497
- HttpRemoteMethodLoader.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: HttpRemoteMethodLoader, deps: [{ token: i1.RemoteMethodLoader }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
498
- HttpRemoteMethodLoader.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: HttpRemoteMethodLoader, providedIn: 'root' });
499
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: HttpRemoteMethodLoader, decorators: [{
500
- type: i0.Injectable,
501
- args: [{ providedIn: 'root' }]
502
- }], ctorParameters: function () {
503
- return [{ type: i1__namespace$1.RemoteMethodLoader, decorators: [{
504
- type: i0.Inject,
505
- args: [i1.RemoteMethodLoader]
506
- }] }];
507
- } });
508
-
509
- /**
510
- * Generated bundle index. Do not edit.
511
- */
512
-
513
- exports.BaseHttpRemoteMethod = BaseHttpRemoteMethod;
514
- exports.HttpRemoteMethod = HttpRemoteMethod;
515
- exports.HttpRemoteMethodLoader = HttpRemoteMethodLoader;
516
-
517
- Object.defineProperty(exports, '__esModule', { value: true });
518
-
519
- })));
520
- //# sourceMappingURL=rxap-remote-method-http.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxap-remote-method-http.umd.js","sources":["../../../../node_modules/tslib/tslib.es6.js","../../../../libs/remote-method/http/src/lib/base-http.remote-method.ts","../../../../libs/remote-method/http/src/lib/http.remote-method.ts","../../../../libs/remote-method/http/src/lib/http-remote-method.loader.ts","../../../../libs/remote-method/http/src/rxap-remote-method-http.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import {\n Injectable,\n Optional,\n Inject,\n Injector\n} from '@angular/core';\nimport {\n HttpClient,\n HttpRequest,\n HttpHeaders,\n HttpParams\n} from '@angular/common/http';\nimport {\n BaseRemoteMethod,\n BaseRemoteMethodMetadata,\n REMOTE_METHOD_META_DATA,\n RxapRemoteMethodError\n} from '@rxap/remote-method';\nimport { hasIndexSignature } from '@rxap/utilities';\n\nexport interface HttpRemoteMethodMetadata extends BaseRemoteMethodMetadata {\n url: string | (() => string);\n method: 'DELETE' | 'GET' | 'HEAD' | 'JSONP' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH';\n headers?: HttpHeaders;\n reportProgress?: boolean;\n params?: HttpParams;\n responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';\n withCredentials?: boolean;\n timeout?: number;\n retry?: number;\n}\n\nexport interface HttpRemoteMethodParameter<PathParams = any> {\n headers?: HttpHeaders;\n reportProgress?: boolean;\n params?: HttpParams;\n responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';\n withCredentials?: boolean;\n body?: any | null;\n setHeaders?: {\n [ name: string ]: string | string[];\n };\n setParams?: {\n [ param: string ]: string;\n };\n pathParams?: PathParams;\n}\n\n@Injectable()\nexport abstract class BaseHttpRemoteMethod<ReturnType = any,\n PathParams = any,\n Parameter extends object = HttpRemoteMethodParameter<PathParams>,\n MetaData extends HttpRemoteMethodMetadata = HttpRemoteMethodMetadata>\n extends BaseRemoteMethod<ReturnType, Parameter, MetaData> {\n\n protected _httpRequest!: HttpRequest<ReturnType>;\n\n public timeout = 60 * 1000;\n\n constructor(\n @Inject(HttpClient) public readonly http: HttpClient,\n @Inject(Injector) injector: Injector,\n @Optional() @Inject(REMOTE_METHOD_META_DATA) metaData: any | null = null\n ) {\n super(injector, metaData);\n this.timeout = this.metadata.timeout ?? this.timeout;\n if (http === undefined) {\n throw new RxapRemoteMethodError('HttpClient is undefined. Ensure that the HttpClient is added to the deps property!', '', this.constructor.name);\n }\n if (!(http instanceof HttpClient)) {\n throw new RxapRemoteMethodError('The property http is not an instance of HttpClinent. Check the deps property!', '', this.constructor.name);\n }\n }\n\n protected getRequestUrl(): string {\n if (typeof this.metadata.url === 'function') {\n return this.metadata.url();\n }\n return this.metadata.url;\n }\n\n public init() {\n super.init();\n this._httpRequest = new HttpRequest<ReturnType>(\n this.metadata.method,\n this.getRequestUrl(),\n null,\n {\n headers: this.metadata.headers,\n reportProgress: this.metadata.reportProgress,\n params: this.metadata.params,\n responseType: this.metadata.responseType || 'json',\n withCredentials: this.metadata.withCredentials\n }\n );\n }\n\n public updateRequest(parameters: Partial<HttpRemoteMethodParameter>): HttpRequest<ReturnType> {\n let url = this._httpRequest.url;\n\n if (parameters && parameters.hasOwnProperty('pathParams')) {\n url = this.buildUrlWithParams(url, (parameters as any).pathParams);\n }\n\n return this._httpRequest.clone({\n withCredentials: this.metadata.withCredentials,\n ...parameters,\n url\n });\n }\n\n public buildUrlWithParams(url: string, pathParams?: PathParams): string {\n if (pathParams) {\n\n if (!hasIndexSignature(pathParams)) {\n throw new RxapRemoteMethodError(`Path params for remote method '${this.id}' has not an index signature`, '', this.constructor.name);\n }\n\n const matches = url.match(/\\{[^\\}]+\\}/g);\n\n if (matches) {\n for (const match of matches) {\n const param = match.substr(1, match.length - 2);\n if (!pathParams.hasOwnProperty(param)) {\n throw new RxapRemoteMethodError(`Path params for remote method '${this.id}' has not a defined value for '${param}'`, '', this.constructor.name);\n }\n url = url.replace(match, encodeURIComponent(pathParams[ param ]));\n }\n }\n }\n\n return url;\n }\n\n}\n\nexport interface HttpRemoteMethodMetadata extends BaseRemoteMethodMetadata {\n url: string | (() => string);\n method: 'DELETE' | 'GET' | 'HEAD' | 'JSONP' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH';\n headers?: HttpHeaders;\n reportProgress?: boolean;\n params?: HttpParams;\n responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';\n withCredentials?: boolean;\n}\n\nexport interface HttpRemoteMethodParameter<PathParams = any> {\n headers?: HttpHeaders;\n reportProgress?: boolean;\n params?: HttpParams;\n responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';\n withCredentials?: boolean;\n body?: any | null;\n setHeaders?: {\n [ name: string ]: string | string[];\n };\n setParams?: {\n [ param: string ]: string;\n };\n pathParams?: PathParams;\n}\n","import { Injectable } from '@angular/core';\nimport {\n HttpSentEvent,\n HttpHeaderResponse,\n HttpResponse,\n HttpProgressEvent,\n HttpEventType\n} from '@angular/common/http';\nimport {\n tap,\n filter,\n map,\n timeout,\n retry\n} from 'rxjs/operators';\nimport {\n BaseHttpRemoteMethod,\n HttpRemoteMethodParameter,\n HttpRemoteMethodMetadata\n} from './base-http.remote-method';\n\n@Injectable()\nexport class HttpRemoteMethod<ReturnType = any,\n PathParams = any,\n Parameter extends object = HttpRemoteMethodParameter<PathParams>,\n MetaData extends HttpRemoteMethodMetadata = HttpRemoteMethodMetadata>\n extends BaseHttpRemoteMethod<ReturnType, PathParams, Parameter, MetaData> {\n\n protected _call(parameters?: Parameter): Promise<ReturnType> {\n return this.http.request<ReturnType>(this.updateRequest(this.createHttpRequestParameters(parameters))).pipe(\n retry(this.metadata.retry ?? 0),\n tap(event => {\n switch (event.type) {\n\n case HttpEventType.Sent:\n this.onSentEvent(event);\n break;\n\n case HttpEventType.Response:\n this.onResponse(event);\n break;\n\n case HttpEventType.DownloadProgress:\n this.onProgressEvent(event);\n break;\n\n case HttpEventType.UploadProgress:\n this.onProgressEvent(event);\n break;\n\n case HttpEventType.ResponseHeader:\n this.onHeaderResponse(event);\n break;\n\n }\n }),\n filter((event: any) => event instanceof HttpResponse),\n map((event: HttpResponse<ReturnType>) => event.body),\n map(body => this.transformer(body)),\n timeout(this.timeout),\n ).toPromise();\n }\n\n public onSentEvent(event: HttpSentEvent): void {}\n\n public onHeaderResponse(event: HttpHeaderResponse): void {}\n\n public onResponse(event: HttpResponse<ReturnType>): void {}\n\n public onProgressEvent(event: HttpProgressEvent): void {}\n\n // TODO : make abstract to force implementation to handel parameter transformation\n public createHttpRequestParameters(parameters?: Parameter): Partial<HttpRemoteMethodParameter> {\n return parameters ?? {} as any;\n }\n\n public transformer(response: any): ReturnType {\n return response;\n }\n\n}\n","import {\n RemoteMethodLoader,\n BaseRemoteMethodMetadata,\n RxapRemoteMethodError,\n BaseRemoteMethod\n} from '@rxap/remote-method';\nimport { HttpRemoteMethod } from './http.remote-method';\nimport {\n Injectable,\n Inject,\n Injector,\n InjectFlags\n} from '@angular/core';\nimport { IdOrInstanceOrToken } from '@rxap/definition';\n\n@Injectable({ providedIn: 'root' })\nexport class HttpRemoteMethodLoader {\n\n // Instead of extanding the RemoteMethodLoader class the RemoteMethodLoader instance\n // will be injected, else there could be multiple instance of RemoteMethodLoader's. Then\n // the RefreshService will not trigger a refresh for HttpRemoteMethod's\n constructor(@Inject(RemoteMethodLoader) private readonly remoteMethodLoader: RemoteMethodLoader) {}\n\n public request$<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 ) {\n\n const remoteMethod = this.remoteMethodLoader.load(\n remoteMethodIdOrInstanceOrToken,\n metadata,\n injector,\n notFoundValue,\n flags\n );\n\n if (!(remoteMethod instanceof HttpRemoteMethod)) {\n throw new RxapRemoteMethodError(`The remote method is not a HttpRemoteMethod`, '', 'HttpRemoteMethodLoader');\n }\n\n return remoteMethod.call(parameters);\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["RxapRemoteMethodError","HttpClient","HttpRequest","hasIndexSignature","BaseRemoteMethod","Injector","REMOTE_METHOD_META_DATA","Injectable","Inject","Optional","retry","tap","HttpEventType","filter","HttpResponse","map","timeout","RemoteMethodLoader"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,IAAI;YACrC,MAAM,IAAI,SAAS,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,+BAA+B,CAAC,CAAC;QAC9F,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpB,SAAS,EAAE,KAAK,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;QACvC,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,GAAG,CAA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