@rxap/pipes 12.0.3 → 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 (68) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +17 -1
  3. package/collection.json +10 -0
  4. package/esm2020/index.mjs +7 -0
  5. package/esm2020/lib/currency.pipe.mjs +67 -0
  6. package/esm2020/lib/delete-identifier.pipe.mjs +38 -0
  7. package/esm2020/lib/escape-quotation-mark.pipe.mjs +34 -0
  8. package/esm2020/lib/get-from-object.pipe.mjs +29 -0
  9. package/esm2020/lib/replace.pipe.mjs +28 -0
  10. package/esm2020/lib/to-display.pipe.mjs +32 -0
  11. package/esm2020/rxap-pipes.mjs +5 -0
  12. package/esm2020/santization/lib/santization.module.mjs +17 -0
  13. package/esm2020/santization/lib/santization.pipe.mjs +21 -0
  14. package/esm2020/santization/lib/santization.service.mjs +37 -0
  15. package/esm2020/santization/public_api.mjs +4 -0
  16. package/esm2020/santization/rxap-pipes-santization.mjs +5 -0
  17. package/fesm2015/rxap-pipes-santization.mjs +77 -0
  18. package/fesm2015/rxap-pipes-santization.mjs.map +1 -0
  19. package/fesm2015/{rxap-pipes.js → rxap-pipes.mjs} +43 -43
  20. package/fesm2015/rxap-pipes.mjs.map +1 -0
  21. package/{fesm2015/rxap-pipes-santization.js → fesm2020/rxap-pipes-santization.mjs} +11 -11
  22. package/fesm2020/rxap-pipes-santization.mjs.map +1 -0
  23. package/fesm2020/rxap-pipes.mjs +222 -0
  24. package/fesm2020/rxap-pipes.mjs.map +1 -0
  25. package/migration.json +4 -0
  26. package/package.json +44 -17
  27. package/santization/package.json +5 -5
  28. package/src/schematics/ng-add/index.d.ts +2 -0
  29. package/src/schematics/ng-add/index.js +8 -0
  30. package/src/schematics/ng-add/index.js.map +1 -0
  31. package/src/schematics/ng-add/schema.json +7 -0
  32. package/bundles/rxap-pipes-santization.umd.js +0 -114
  33. package/bundles/rxap-pipes-santization.umd.js.map +0 -1
  34. package/bundles/rxap-pipes.umd.js +0 -617
  35. package/bundles/rxap-pipes.umd.js.map +0 -1
  36. package/esm2015/index.js +0 -7
  37. package/esm2015/index.js.map +0 -1
  38. package/esm2015/lib/currency.pipe.js +0 -67
  39. package/esm2015/lib/currency.pipe.js.map +0 -1
  40. package/esm2015/lib/delete-identifier.pipe.js +0 -38
  41. package/esm2015/lib/delete-identifier.pipe.js.map +0 -1
  42. package/esm2015/lib/escape-quotation-mark.pipe.js +0 -34
  43. package/esm2015/lib/escape-quotation-mark.pipe.js.map +0 -1
  44. package/esm2015/lib/get-from-object.pipe.js +0 -29
  45. package/esm2015/lib/get-from-object.pipe.js.map +0 -1
  46. package/esm2015/lib/replace.pipe.js +0 -28
  47. package/esm2015/lib/replace.pipe.js.map +0 -1
  48. package/esm2015/lib/to-display.pipe.js +0 -32
  49. package/esm2015/lib/to-display.pipe.js.map +0 -1
  50. package/esm2015/rxap-pipes.js +0 -5
  51. package/esm2015/rxap-pipes.js.map +0 -1
  52. package/esm2015/santization/lib/santization.module.js +0 -17
  53. package/esm2015/santization/lib/santization.module.js.map +0 -1
  54. package/esm2015/santization/lib/santization.pipe.js +0 -21
  55. package/esm2015/santization/lib/santization.pipe.js.map +0 -1
  56. package/esm2015/santization/lib/santization.service.js +0 -37
  57. package/esm2015/santization/lib/santization.service.js.map +0 -1
  58. package/esm2015/santization/public_api.js +0 -4
  59. package/esm2015/santization/public_api.js.map +0 -1
  60. package/esm2015/santization/rxap-pipes-santization.js +0 -5
  61. package/esm2015/santization/rxap-pipes-santization.js.map +0 -1
  62. package/fesm2015/rxap-pipes-santization.js.map +0 -1
  63. package/fesm2015/rxap-pipes.js.map +0 -1
  64. package/schematics/collection.json +0 -4
  65. package/schematics/index.d.ts +0 -1
  66. package/schematics/index.js +0 -3
  67. package/schematics/index.js.map +0 -1
  68. package/schematics/migration.json +0 -4
@@ -1,617 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@rxap/utilities')) :
3
- typeof define === 'function' && define.amd ? define('@rxap/pipes', ['exports', '@angular/core', '@angular/common', '@rxap/utilities'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.pipes = {}), global.ng.core, global.ng.common, global.utilities));
5
- }(this, (function (exports, i0, 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);
29
-
30
- var ToDisplayPipe = /** @class */ (function () {
31
- function ToDisplayPipe() {
32
- this.jsonPipe = new i1.JsonPipe();
33
- }
34
- ToDisplayPipe.prototype.transform = function (value, toDisplay) {
35
- if (toDisplay === void 0) { toDisplay = this.jsonPipe.transform; }
36
- return toDisplay(value);
37
- };
38
- return ToDisplayPipe;
39
- }());
40
- ToDisplayPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ToDisplayPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
41
- ToDisplayPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ToDisplayPipe, name: "toDisplay" });
42
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ToDisplayPipe, decorators: [{
43
- type: i0.Pipe,
44
- args: [{
45
- name: 'toDisplay'
46
- }]
47
- }] });
48
- var ToDisplayPipeModule = /** @class */ (function () {
49
- function ToDisplayPipeModule() {
50
- }
51
- return ToDisplayPipeModule;
52
- }());
53
- ToDisplayPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ToDisplayPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
54
- ToDisplayPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] });
55
- ToDisplayPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ToDisplayPipeModule });
56
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ToDisplayPipeModule, decorators: [{
57
- type: i0.NgModule,
58
- args: [{
59
- declarations: [ToDisplayPipe],
60
- exports: [ToDisplayPipe]
61
- }]
62
- }] });
63
-
64
- var ReplacePipe = /** @class */ (function () {
65
- function ReplacePipe() {
66
- }
67
- ReplacePipe.prototype.transform = function (value, replace, replaceValue) {
68
- return value ? value.replace(replace, replaceValue) : '';
69
- };
70
- return ReplacePipe;
71
- }());
72
- ReplacePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ReplacePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
73
- ReplacePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ReplacePipe, name: "replace" });
74
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ReplacePipe, decorators: [{
75
- type: i0.Pipe,
76
- args: [{
77
- name: 'replace',
78
- }]
79
- }] });
80
- var ReplacePipeModule = /** @class */ (function () {
81
- function ReplacePipeModule() {
82
- }
83
- return ReplacePipeModule;
84
- }());
85
- ReplacePipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ReplacePipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
86
- ReplacePipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] });
87
- ReplacePipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ReplacePipeModule });
88
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: ReplacePipeModule, decorators: [{
89
- type: i0.NgModule,
90
- args: [{
91
- declarations: [ReplacePipe],
92
- exports: [ReplacePipe],
93
- }]
94
- }] });
95
-
96
- var EscapeQuotationMarkPipe = /** @class */ (function () {
97
- function EscapeQuotationMarkPipe() {
98
- }
99
- EscapeQuotationMarkPipe.prototype.transform = function (value, reverse) {
100
- if (reverse === void 0) { reverse = false; }
101
- if (reverse) {
102
- return new ReplacePipe().transform(value, /\\"/g, '"');
103
- }
104
- else {
105
- return new ReplacePipe().transform(value, /"/g, '\"');
106
- }
107
- };
108
- return EscapeQuotationMarkPipe;
109
- }());
110
- EscapeQuotationMarkPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EscapeQuotationMarkPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
111
- EscapeQuotationMarkPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" });
112
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EscapeQuotationMarkPipe, decorators: [{
113
- type: i0.Pipe,
114
- args: [{
115
- name: 'escapeQuotationMark'
116
- }]
117
- }] });
118
- var EscapeQuotationMarkPipeModule = /** @class */ (function () {
119
- function EscapeQuotationMarkPipeModule() {
120
- }
121
- return EscapeQuotationMarkPipeModule;
122
- }());
123
- EscapeQuotationMarkPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EscapeQuotationMarkPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
124
- EscapeQuotationMarkPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] });
125
- EscapeQuotationMarkPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EscapeQuotationMarkPipeModule });
126
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: EscapeQuotationMarkPipeModule, decorators: [{
127
- type: i0.NgModule,
128
- args: [{
129
- declarations: [EscapeQuotationMarkPipe],
130
- exports: [EscapeQuotationMarkPipe]
131
- }]
132
- }] });
133
-
134
- var RxapCurrencyPipe = /** @class */ (function () {
135
- function RxapCurrencyPipe(currency) {
136
- this.currency = currency;
137
- }
138
- /**
139
- *
140
- * @param value The number to be formatted as currency.
141
- * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,
142
- * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be
143
- * configured using the `DEFAULT_CURRENCY_CODE` injection token.
144
- * @param display The format for the currency indicator. One of the following:
145
- * - `code`: Show the code (such as `USD`).
146
- * - `symbol`(default): Show the symbol (such as `$`).
147
- * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their
148
- * currency.
149
- * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the
150
- * locale has no narrow symbol, uses the standard symbol for the locale.
151
- * - String: Use the given string value instead of a code or a symbol.
152
- * For example, an empty string will suppress the currency & symbol.
153
- * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.
154
- *
155
- * @param digitsInfo Decimal representation options, specified by a string
156
- * in the following format:<br>
157
- * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
158
- * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
159
- * Default is `1`.
160
- * - `minFractionDigits`: The minimum number of digits after the decimal point.
161
- * Default is `2`.
162
- * - `maxFractionDigits`: The maximum number of digits after the decimal point.
163
- * Default is `2`.
164
- * If not provided, the number will be formatted with the proper amount of digits,
165
- * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.
166
- * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.
167
- * @param locale A locale code for the locale format rules to use.
168
- * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
169
- * See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).
170
- */
171
- RxapCurrencyPipe.prototype.transform = function (value, currencyCode, display, digitsInfo, locale) {
172
- return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
173
- };
174
- return RxapCurrencyPipe;
175
- }());
176
- RxapCurrencyPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RxapCurrencyPipe, deps: [{ token: i1__namespace.CurrencyPipe }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
177
- RxapCurrencyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RxapCurrencyPipe, name: "currency" });
178
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: RxapCurrencyPipe, decorators: [{
179
- type: i0.Pipe,
180
- args: [{
181
- name: 'currency'
182
- }]
183
- }], ctorParameters: function () { return [{ type: i1__namespace.CurrencyPipe }]; } });
184
- var CurrencyPipeModule = /** @class */ (function () {
185
- function CurrencyPipeModule() {
186
- }
187
- return CurrencyPipeModule;
188
- }());
189
- CurrencyPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CurrencyPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
190
- CurrencyPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] });
191
- CurrencyPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CurrencyPipeModule, providers: [i1.CurrencyPipe] });
192
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: CurrencyPipeModule, decorators: [{
193
- type: i0.NgModule,
194
- args: [{
195
- exports: [RxapCurrencyPipe],
196
- declarations: [RxapCurrencyPipe],
197
- providers: [i1.CurrencyPipe]
198
- }]
199
- }] });
200
-
201
- /*! *****************************************************************************
202
- Copyright (c) Microsoft Corporation.
203
-
204
- Permission to use, copy, modify, and/or distribute this software for any
205
- purpose with or without fee is hereby granted.
206
-
207
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
208
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
209
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
210
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
211
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
212
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
213
- PERFORMANCE OF THIS SOFTWARE.
214
- ***************************************************************************** */
215
- /* global Reflect, Promise */
216
- var extendStatics = function (d, b) {
217
- extendStatics = Object.setPrototypeOf ||
218
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
219
- function (d, b) { for (var p in b)
220
- if (Object.prototype.hasOwnProperty.call(b, p))
221
- d[p] = b[p]; };
222
- return extendStatics(d, b);
223
- };
224
- function __extends(d, b) {
225
- if (typeof b !== "function" && b !== null)
226
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
227
- extendStatics(d, b);
228
- function __() { this.constructor = d; }
229
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
230
- }
231
- var __assign = function () {
232
- __assign = Object.assign || function __assign(t) {
233
- for (var s, i = 1, n = arguments.length; i < n; i++) {
234
- s = arguments[i];
235
- for (var p in s)
236
- if (Object.prototype.hasOwnProperty.call(s, p))
237
- t[p] = s[p];
238
- }
239
- return t;
240
- };
241
- return __assign.apply(this, arguments);
242
- };
243
- function __rest(s, e) {
244
- var t = {};
245
- for (var p in s)
246
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
247
- t[p] = s[p];
248
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
249
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
250
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
251
- t[p[i]] = s[p[i]];
252
- }
253
- return t;
254
- }
255
- function __decorate(decorators, target, key, desc) {
256
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
257
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
258
- r = Reflect.decorate(decorators, target, key, desc);
259
- else
260
- for (var i = decorators.length - 1; i >= 0; i--)
261
- if (d = decorators[i])
262
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
263
- return c > 3 && r && Object.defineProperty(target, key, r), r;
264
- }
265
- function __param(paramIndex, decorator) {
266
- return function (target, key) { decorator(target, key, paramIndex); };
267
- }
268
- function __metadata(metadataKey, metadataValue) {
269
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
270
- return Reflect.metadata(metadataKey, metadataValue);
271
- }
272
- function __awaiter(thisArg, _arguments, P, generator) {
273
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
274
- return new (P || (P = Promise))(function (resolve, reject) {
275
- function fulfilled(value) { try {
276
- step(generator.next(value));
277
- }
278
- catch (e) {
279
- reject(e);
280
- } }
281
- function rejected(value) { try {
282
- step(generator["throw"](value));
283
- }
284
- catch (e) {
285
- reject(e);
286
- } }
287
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
288
- step((generator = generator.apply(thisArg, _arguments || [])).next());
289
- });
290
- }
291
- function __generator(thisArg, body) {
292
- var _ = { label: 0, sent: function () { if (t[0] & 1)
293
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
294
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
295
- function verb(n) { return function (v) { return step([n, v]); }; }
296
- function step(op) {
297
- if (f)
298
- throw new TypeError("Generator is already executing.");
299
- while (_)
300
- try {
301
- 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)
302
- return t;
303
- if (y = 0, t)
304
- op = [op[0] & 2, t.value];
305
- switch (op[0]) {
306
- case 0:
307
- case 1:
308
- t = op;
309
- break;
310
- case 4:
311
- _.label++;
312
- return { value: op[1], done: false };
313
- case 5:
314
- _.label++;
315
- y = op[1];
316
- op = [0];
317
- continue;
318
- case 7:
319
- op = _.ops.pop();
320
- _.trys.pop();
321
- continue;
322
- default:
323
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
324
- _ = 0;
325
- continue;
326
- }
327
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
328
- _.label = op[1];
329
- break;
330
- }
331
- if (op[0] === 6 && _.label < t[1]) {
332
- _.label = t[1];
333
- t = op;
334
- break;
335
- }
336
- if (t && _.label < t[2]) {
337
- _.label = t[2];
338
- _.ops.push(op);
339
- break;
340
- }
341
- if (t[2])
342
- _.ops.pop();
343
- _.trys.pop();
344
- continue;
345
- }
346
- op = body.call(thisArg, _);
347
- }
348
- catch (e) {
349
- op = [6, e];
350
- y = 0;
351
- }
352
- finally {
353
- f = t = 0;
354
- }
355
- if (op[0] & 5)
356
- throw op[1];
357
- return { value: op[0] ? op[1] : void 0, done: true };
358
- }
359
- }
360
- var __createBinding = Object.create ? (function (o, m, k, k2) {
361
- if (k2 === undefined)
362
- k2 = k;
363
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
364
- }) : (function (o, m, k, k2) {
365
- if (k2 === undefined)
366
- k2 = k;
367
- o[k2] = m[k];
368
- });
369
- function __exportStar(m, o) {
370
- for (var p in m)
371
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
372
- __createBinding(o, m, p);
373
- }
374
- function __values(o) {
375
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
376
- if (m)
377
- return m.call(o);
378
- if (o && typeof o.length === "number")
379
- return {
380
- next: function () {
381
- if (o && i >= o.length)
382
- o = void 0;
383
- return { value: o && o[i++], done: !o };
384
- }
385
- };
386
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
387
- }
388
- function __read(o, n) {
389
- var m = typeof Symbol === "function" && o[Symbol.iterator];
390
- if (!m)
391
- return o;
392
- var i = m.call(o), r, ar = [], e;
393
- try {
394
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
395
- ar.push(r.value);
396
- }
397
- catch (error) {
398
- e = { error: error };
399
- }
400
- finally {
401
- try {
402
- if (r && !r.done && (m = i["return"]))
403
- m.call(i);
404
- }
405
- finally {
406
- if (e)
407
- throw e.error;
408
- }
409
- }
410
- return ar;
411
- }
412
- /** @deprecated */
413
- function __spread() {
414
- for (var ar = [], i = 0; i < arguments.length; i++)
415
- ar = ar.concat(__read(arguments[i]));
416
- return ar;
417
- }
418
- /** @deprecated */
419
- function __spreadArrays() {
420
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
421
- s += arguments[i].length;
422
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
423
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
424
- r[k] = a[j];
425
- return r;
426
- }
427
- function __spreadArray(to, from) {
428
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
429
- to[j] = from[i];
430
- return to;
431
- }
432
- function __await(v) {
433
- return this instanceof __await ? (this.v = v, this) : new __await(v);
434
- }
435
- function __asyncGenerator(thisArg, _arguments, generator) {
436
- if (!Symbol.asyncIterator)
437
- throw new TypeError("Symbol.asyncIterator is not defined.");
438
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
439
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
440
- function verb(n) { if (g[n])
441
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
442
- function resume(n, v) { try {
443
- step(g[n](v));
444
- }
445
- catch (e) {
446
- settle(q[0][3], e);
447
- } }
448
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
449
- function fulfill(value) { resume("next", value); }
450
- function reject(value) { resume("throw", value); }
451
- function settle(f, v) { if (f(v), q.shift(), q.length)
452
- resume(q[0][0], q[0][1]); }
453
- }
454
- function __asyncDelegator(o) {
455
- var i, p;
456
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
457
- 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; }
458
- }
459
- function __asyncValues(o) {
460
- if (!Symbol.asyncIterator)
461
- throw new TypeError("Symbol.asyncIterator is not defined.");
462
- var m = o[Symbol.asyncIterator], i;
463
- 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);
464
- 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); }); }; }
465
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
466
- }
467
- function __makeTemplateObject(cooked, raw) {
468
- if (Object.defineProperty) {
469
- Object.defineProperty(cooked, "raw", { value: raw });
470
- }
471
- else {
472
- cooked.raw = raw;
473
- }
474
- return cooked;
475
- }
476
- ;
477
- var __setModuleDefault = Object.create ? (function (o, v) {
478
- Object.defineProperty(o, "default", { enumerable: true, value: v });
479
- }) : function (o, v) {
480
- o["default"] = v;
481
- };
482
- function __importStar(mod) {
483
- if (mod && mod.__esModule)
484
- return mod;
485
- var result = {};
486
- if (mod != null)
487
- for (var k in mod)
488
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
489
- __createBinding(result, mod, k);
490
- __setModuleDefault(result, mod);
491
- return result;
492
- }
493
- function __importDefault(mod) {
494
- return (mod && mod.__esModule) ? mod : { default: mod };
495
- }
496
- function __classPrivateFieldGet(receiver, state, kind, f) {
497
- if (kind === "a" && !f)
498
- throw new TypeError("Private accessor was defined without a getter");
499
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
500
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
501
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
502
- }
503
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
504
- if (kind === "m")
505
- throw new TypeError("Private method is not writable");
506
- if (kind === "a" && !f)
507
- throw new TypeError("Private accessor was defined without a setter");
508
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
509
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
510
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
511
- }
512
-
513
- var DeleteIdentifierPipe = /** @class */ (function () {
514
- function DeleteIdentifierPipe() {
515
- }
516
- DeleteIdentifierPipe.prototype.transform = function (value) {
517
- var e_1, _a;
518
- if (!value) {
519
- return value;
520
- }
521
- var copy = utilities.clone(value);
522
- if (utilities.hasIdentifierProperty(copy)) {
523
- try {
524
- for (var _b = __values(utilities.getIdentifierProperties(copy)), _c = _b.next(); !_c.done; _c = _b.next()) {
525
- var pk = _c.value;
526
- delete copy[pk];
527
- }
528
- }
529
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
530
- finally {
531
- try {
532
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
533
- }
534
- finally { if (e_1) throw e_1.error; }
535
- }
536
- }
537
- return copy;
538
- };
539
- return DeleteIdentifierPipe;
540
- }());
541
- DeleteIdentifierPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DeleteIdentifierPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
542
- DeleteIdentifierPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DeleteIdentifierPipe, name: "deleteIdentifier" });
543
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DeleteIdentifierPipe, decorators: [{
544
- type: i0.Pipe,
545
- args: [{
546
- name: 'deleteIdentifier',
547
- }]
548
- }] });
549
- var DeleteIdentifierPipeModule = /** @class */ (function () {
550
- function DeleteIdentifierPipeModule() {
551
- }
552
- return DeleteIdentifierPipeModule;
553
- }());
554
- DeleteIdentifierPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DeleteIdentifierPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
555
- DeleteIdentifierPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] });
556
- DeleteIdentifierPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DeleteIdentifierPipeModule });
557
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: DeleteIdentifierPipeModule, decorators: [{
558
- type: i0.NgModule,
559
- args: [{
560
- exports: [DeleteIdentifierPipe],
561
- declarations: [DeleteIdentifierPipe],
562
- }]
563
- }] });
564
-
565
- var GetFromObjectPipe = /** @class */ (function () {
566
- function GetFromObjectPipe() {
567
- }
568
- GetFromObjectPipe.prototype.transform = function (value, path) {
569
- return utilities.getFromObject(value, path);
570
- };
571
- return GetFromObjectPipe;
572
- }());
573
- GetFromObjectPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: GetFromObjectPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
574
- GetFromObjectPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: GetFromObjectPipe, name: "getFromObject" });
575
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: GetFromObjectPipe, decorators: [{
576
- type: i0.Pipe,
577
- args: [{
578
- name: 'getFromObject'
579
- }]
580
- }] });
581
- var GetFromObjectPipeModule = /** @class */ (function () {
582
- function GetFromObjectPipeModule() {
583
- }
584
- return GetFromObjectPipeModule;
585
- }());
586
- GetFromObjectPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: GetFromObjectPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
587
- GetFromObjectPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] });
588
- GetFromObjectPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: GetFromObjectPipeModule });
589
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0__namespace, type: GetFromObjectPipeModule, decorators: [{
590
- type: i0.NgModule,
591
- args: [{
592
- exports: [GetFromObjectPipe],
593
- declarations: [GetFromObjectPipe]
594
- }]
595
- }] });
596
-
597
- /**
598
- * Generated bundle index. Do not edit.
599
- */
600
-
601
- exports.CurrencyPipeModule = CurrencyPipeModule;
602
- exports.DeleteIdentifierPipe = DeleteIdentifierPipe;
603
- exports.DeleteIdentifierPipeModule = DeleteIdentifierPipeModule;
604
- exports.EscapeQuotationMarkPipe = EscapeQuotationMarkPipe;
605
- exports.EscapeQuotationMarkPipeModule = EscapeQuotationMarkPipeModule;
606
- exports.GetFromObjectPipe = GetFromObjectPipe;
607
- exports.GetFromObjectPipeModule = GetFromObjectPipeModule;
608
- exports.ReplacePipe = ReplacePipe;
609
- exports.ReplacePipeModule = ReplacePipeModule;
610
- exports.RxapCurrencyPipe = RxapCurrencyPipe;
611
- exports.ToDisplayPipe = ToDisplayPipe;
612
- exports.ToDisplayPipeModule = ToDisplayPipeModule;
613
-
614
- Object.defineProperty(exports, '__esModule', { value: true });
615
-
616
- })));
617
- //# sourceMappingURL=rxap-pipes.umd.js.map