@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.
- package/LICENSE +1 -1
- package/README.md +17 -1
- package/collection.json +10 -0
- package/esm2020/index.mjs +7 -0
- package/esm2020/lib/currency.pipe.mjs +67 -0
- package/esm2020/lib/delete-identifier.pipe.mjs +38 -0
- package/esm2020/lib/escape-quotation-mark.pipe.mjs +34 -0
- package/esm2020/lib/get-from-object.pipe.mjs +29 -0
- package/esm2020/lib/replace.pipe.mjs +28 -0
- package/esm2020/lib/to-display.pipe.mjs +32 -0
- package/esm2020/rxap-pipes.mjs +5 -0
- package/esm2020/santization/lib/santization.module.mjs +17 -0
- package/esm2020/santization/lib/santization.pipe.mjs +21 -0
- package/esm2020/santization/lib/santization.service.mjs +37 -0
- package/esm2020/santization/public_api.mjs +4 -0
- package/esm2020/santization/rxap-pipes-santization.mjs +5 -0
- package/fesm2015/rxap-pipes-santization.mjs +77 -0
- package/fesm2015/rxap-pipes-santization.mjs.map +1 -0
- package/fesm2015/{rxap-pipes.js → rxap-pipes.mjs} +43 -43
- package/fesm2015/rxap-pipes.mjs.map +1 -0
- package/{fesm2015/rxap-pipes-santization.js → fesm2020/rxap-pipes-santization.mjs} +11 -11
- package/fesm2020/rxap-pipes-santization.mjs.map +1 -0
- package/fesm2020/rxap-pipes.mjs +222 -0
- package/fesm2020/rxap-pipes.mjs.map +1 -0
- package/migration.json +4 -0
- package/package.json +44 -17
- package/santization/package.json +5 -5
- package/src/schematics/ng-add/index.d.ts +2 -0
- package/src/schematics/ng-add/index.js +8 -0
- package/src/schematics/ng-add/index.js.map +1 -0
- package/src/schematics/ng-add/schema.json +7 -0
- package/bundles/rxap-pipes-santization.umd.js +0 -114
- package/bundles/rxap-pipes-santization.umd.js.map +0 -1
- package/bundles/rxap-pipes.umd.js +0 -617
- package/bundles/rxap-pipes.umd.js.map +0 -1
- package/esm2015/index.js +0 -7
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/currency.pipe.js +0 -67
- package/esm2015/lib/currency.pipe.js.map +0 -1
- package/esm2015/lib/delete-identifier.pipe.js +0 -38
- package/esm2015/lib/delete-identifier.pipe.js.map +0 -1
- package/esm2015/lib/escape-quotation-mark.pipe.js +0 -34
- package/esm2015/lib/escape-quotation-mark.pipe.js.map +0 -1
- package/esm2015/lib/get-from-object.pipe.js +0 -29
- package/esm2015/lib/get-from-object.pipe.js.map +0 -1
- package/esm2015/lib/replace.pipe.js +0 -28
- package/esm2015/lib/replace.pipe.js.map +0 -1
- package/esm2015/lib/to-display.pipe.js +0 -32
- package/esm2015/lib/to-display.pipe.js.map +0 -1
- package/esm2015/rxap-pipes.js +0 -5
- package/esm2015/rxap-pipes.js.map +0 -1
- package/esm2015/santization/lib/santization.module.js +0 -17
- package/esm2015/santization/lib/santization.module.js.map +0 -1
- package/esm2015/santization/lib/santization.pipe.js +0 -21
- package/esm2015/santization/lib/santization.pipe.js.map +0 -1
- package/esm2015/santization/lib/santization.service.js +0 -37
- package/esm2015/santization/lib/santization.service.js.map +0 -1
- package/esm2015/santization/public_api.js +0 -4
- package/esm2015/santization/public_api.js.map +0 -1
- package/esm2015/santization/rxap-pipes-santization.js +0 -5
- package/esm2015/santization/rxap-pipes-santization.js.map +0 -1
- package/fesm2015/rxap-pipes-santization.js.map +0 -1
- package/fesm2015/rxap-pipes.js.map +0 -1
- package/schematics/collection.json +0 -4
- package/schematics/index.d.ts +0 -1
- package/schematics/index.js +0 -3
- package/schematics/index.js.map +0 -1
- package/schematics/migration.json +0 -4
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-pipes.umd.js","sources":["../../../../libs/pipes/src/lib/to-display.pipe.ts","../../../../libs/pipes/src/lib/replace.pipe.ts","../../../../libs/pipes/src/lib/escape-quotation-mark.pipe.ts","../../../../libs/pipes/src/lib/currency.pipe.ts","../../../../node_modules/tslib/tslib.es6.js","../../../../libs/pipes/src/lib/delete-identifier.pipe.ts","../../../../libs/pipes/src/lib/get-from-object.pipe.ts","../../../../libs/pipes/src/rxap-pipes.ts"],"sourcesContent":["import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { ToDisplayFunction } from '@rxap/utilities';\nimport { JsonPipe } from '@angular/common';\n\n@Pipe({\n name: 'toDisplay'\n})\nexport class ToDisplayPipe implements PipeTransform {\n\n private jsonPipe = new JsonPipe();\n\n public transform(value: any, toDisplay: ToDisplayFunction = this.jsonPipe.transform): string {\n return toDisplay(value);\n }\n\n}\n\n@NgModule({\n declarations: [ ToDisplayPipe ],\n exports: [ ToDisplayPipe ]\n})\nexport class ToDisplayPipeModule {\n\n}\n","import {\n Pipe,\n PipeTransform,\n NgModule,\n} from '@angular/core';\n\n@Pipe({\n name: 'replace',\n})\nexport class ReplacePipe implements PipeTransform {\n\n public transform(value: string, replace: RegExp, replaceValue: string): string {\n return value ? value.replace(replace, replaceValue) : '';\n }\n\n}\n\n@NgModule({\n declarations: [ ReplacePipe ],\n exports: [ ReplacePipe ],\n})\nexport class ReplacePipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { ReplacePipe } from './replace.pipe';\n\n@Pipe({\n name: 'escapeQuotationMark'\n})\nexport class EscapeQuotationMarkPipe implements PipeTransform {\n\n public transform(value: string, reverse: boolean = false): string {\n if (reverse) {\n return new ReplacePipe().transform(value, /\\\\\"/g, '\"');\n } else {\n return new ReplacePipe().transform(value, /\"/g, '\\\"');\n }\n }\n\n}\n\n@NgModule({\n declarations: [ EscapeQuotationMarkPipe ],\n exports: [ EscapeQuotationMarkPipe ]\n})\nexport class EscapeQuotationMarkPipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { CurrencyPipe } from '@angular/common';\n\n@Pipe({\n name: 'currency'\n})\nexport class RxapCurrencyPipe implements PipeTransform {\n\n constructor(private readonly currency: CurrencyPipe) {}\n\n /**\n *\n * @param value The number to be formatted as currency.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,\n * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be\n * configured using the `DEFAULT_CURRENCY_CODE` injection token.\n * @param display The format for the currency indicator. One of the following:\n * - `code`: Show the code (such as `USD`).\n * - `symbol`(default): Show the symbol (such as `$`).\n * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their\n * currency.\n * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the\n * locale has no narrow symbol, uses the standard symbol for the locale.\n * - String: Use the given string value instead of a code or a symbol.\n * For example, an empty string will suppress the currency & symbol.\n * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.\n *\n * @param digitsInfo Decimal representation options, specified by a string\n * in the following format:<br>\n * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n * Default is `1`.\n * - `minFractionDigits`: The minimum number of digits after the decimal point.\n * Default is `2`.\n * - `maxFractionDigits`: The maximum number of digits after the decimal point.\n * Default is `2`.\n * If not provided, the number will be formatted with the proper amount of digits,\n * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.\n * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.\n * @param locale A locale code for the locale format rules to use.\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n * See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).\n */\n public transform(\n value: number,\n currencyCode?: string,\n display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean,\n digitsInfo?: string,\n locale?: string\n ): string | null {\n return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);\n }\n\n}\n\n@NgModule({\n exports: [ RxapCurrencyPipe ],\n declarations: [ RxapCurrencyPipe ],\n providers: [ CurrencyPipe ]\n})\nexport class CurrencyPipeModule {}\n","/*! *****************************************************************************\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 Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport {\n WithIdentifier,\n hasIdentifierProperty,\n getIdentifierProperties,\n clone\n} from '@rxap/utilities';\n\n@Pipe({\n name: 'deleteIdentifier',\n})\nexport class DeleteIdentifierPipe implements PipeTransform {\n\n public transform<T>(value: (WithIdentifier & T) | null): T | null {\n if (!value) {\n return value;\n }\n const copy: any = clone(value);\n if (hasIdentifierProperty(copy)) {\n for (const pk of getIdentifierProperties(copy)) {\n delete copy[ pk ];\n }\n }\n return copy;\n }\n\n}\n\n@NgModule({\n exports: [ DeleteIdentifierPipe ],\n declarations: [ DeleteIdentifierPipe ],\n})\nexport class DeleteIdentifierPipeModule {\n\n}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { getFromObject } from '@rxap/utilities';\n\n@Pipe({\n name: 'getFromObject'\n})\nexport class GetFromObjectPipe implements PipeTransform {\n transform(value: any, path: string): any {\n return getFromObject(value, path);\n }\n}\n\n@NgModule({\n exports: [ GetFromObjectPipe ],\n declarations: [ GetFromObjectPipe ]\n})\nexport class GetFromObjectPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["JsonPipe","Pipe","NgModule","CurrencyPipe","clone","hasIdentifierProperty","getIdentifierProperties","getFromObject"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAQA;YAKU,aAAQ,GAAG,IAAIA,WAAQ,EAAE,CAAC;SAMnC;QAJQ,iCAAS,GAAT,UAAU,KAAU,EAAE,SAAsD;YAAtD,0BAAA,EAAA,YAA+B,IAAI,CAAC,QAAQ,CAAC,SAAS;YACjF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;SACzB;;;oIANU,aAAa;kIAAb,aAAa;qHAAb,aAAa;sBAHzBC,OAAI;uBAAC;wBACJ,IAAI,EAAE,WAAW;qBAClB;;;QAeD;;;;0IAAa,mBAAmB;2IAAnB,mBAAmB,iBAdnB,aAAa,aAAb,aAAa;2IAcb,mBAAmB;qHAAnB,mBAAmB;sBAJ/BC,WAAQ;uBAAC;wBACR,YAAY,EAAE,CAAE,aAAa,CAAE;wBAC/B,OAAO,EAAO,CAAE,aAAa,CAAE;qBAChC;;;;QCfD;;QAES,+BAAS,GAAT,UAAU,KAAa,EAAE,OAAe,EAAE,YAAoB;YACnE,OAAO,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,EAAE,CAAC;SAC1D;;;kIAJU,WAAW;gIAAX,WAAW;qHAAX,WAAW;sBAHvBD,OAAI;uBAAC;wBACJ,IAAI,EAAE,SAAS;qBAChB;;;QAaD;;;;wIAAa,iBAAiB;yIAAjB,iBAAiB,iBAZjB,WAAW,aAAX,WAAW;yIAYX,iBAAiB;qHAAjB,iBAAiB;sBAJ7BC,WAAQ;uBAAC;wBACR,YAAY,EAAE,CAAE,WAAW,CAAE;wBAC7B,OAAO,EAAO,CAAE,WAAW,CAAE;qBAC9B;;;;QCVD;;QAES,2CAAS,GAAT,UAAU,KAAa,EAAE,OAAwB;YAAxB,wBA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AAY,EAAE,CAAE,iBAAiB,CAAE;qBACpC;;;ICnBD;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/esm2015/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './lib/to-display.pipe';
|
|
2
|
-
export * from './lib/replace.pipe';
|
|
3
|
-
export * from './lib/escape-quotation-mark.pipe';
|
|
4
|
-
export * from './lib/currency.pipe';
|
|
5
|
-
export * from './lib/delete-identifier.pipe';
|
|
6
|
-
export * from './lib/get-from-object.pipe';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
package/esm2015/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/pipes/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC","sourcesContent":["export * from './lib/to-display.pipe';\nexport * from './lib/replace.pipe';\nexport * from './lib/escape-quotation-mark.pipe';\nexport * from './lib/currency.pipe';\nexport * from './lib/delete-identifier.pipe';\nexport * from './lib/get-from-object.pipe';\n"]}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
2
|
-
import { CurrencyPipe } from '@angular/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
export class RxapCurrencyPipe {
|
|
6
|
-
constructor(currency) {
|
|
7
|
-
this.currency = currency;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param value The number to be formatted as currency.
|
|
12
|
-
* @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,
|
|
13
|
-
* such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be
|
|
14
|
-
* configured using the `DEFAULT_CURRENCY_CODE` injection token.
|
|
15
|
-
* @param display The format for the currency indicator. One of the following:
|
|
16
|
-
* - `code`: Show the code (such as `USD`).
|
|
17
|
-
* - `symbol`(default): Show the symbol (such as `$`).
|
|
18
|
-
* - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their
|
|
19
|
-
* currency.
|
|
20
|
-
* For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the
|
|
21
|
-
* locale has no narrow symbol, uses the standard symbol for the locale.
|
|
22
|
-
* - String: Use the given string value instead of a code or a symbol.
|
|
23
|
-
* For example, an empty string will suppress the currency & symbol.
|
|
24
|
-
* - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.
|
|
25
|
-
*
|
|
26
|
-
* @param digitsInfo Decimal representation options, specified by a string
|
|
27
|
-
* in the following format:<br>
|
|
28
|
-
* <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
|
|
29
|
-
* - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
|
|
30
|
-
* Default is `1`.
|
|
31
|
-
* - `minFractionDigits`: The minimum number of digits after the decimal point.
|
|
32
|
-
* Default is `2`.
|
|
33
|
-
* - `maxFractionDigits`: The maximum number of digits after the decimal point.
|
|
34
|
-
* Default is `2`.
|
|
35
|
-
* If not provided, the number will be formatted with the proper amount of digits,
|
|
36
|
-
* depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.
|
|
37
|
-
* For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.
|
|
38
|
-
* @param locale A locale code for the locale format rules to use.
|
|
39
|
-
* When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
|
|
40
|
-
* See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).
|
|
41
|
-
*/
|
|
42
|
-
transform(value, currencyCode, display, digitsInfo, locale) {
|
|
43
|
-
return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
RxapCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
47
|
-
RxapCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapCurrencyPipe, name: "currency" });
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
|
|
49
|
-
type: Pipe,
|
|
50
|
-
args: [{
|
|
51
|
-
name: 'currency'
|
|
52
|
-
}]
|
|
53
|
-
}], ctorParameters: function () { return [{ type: i1.CurrencyPipe }]; } });
|
|
54
|
-
export class CurrencyPipeModule {
|
|
55
|
-
}
|
|
56
|
-
CurrencyPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
57
|
-
CurrencyPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: CurrencyPipeModule, declarations: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] });
|
|
58
|
-
CurrencyPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] });
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: CurrencyPipeModule, decorators: [{
|
|
60
|
-
type: NgModule,
|
|
61
|
-
args: [{
|
|
62
|
-
exports: [RxapCurrencyPipe],
|
|
63
|
-
declarations: [RxapCurrencyPipe],
|
|
64
|
-
providers: [CurrencyPipe]
|
|
65
|
-
}]
|
|
66
|
-
}] });
|
|
67
|
-
//# sourceMappingURL=currency.pipe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"currency.pipe.js","sourceRoot":"","sources":["../../../../../libs/pipes/src/lib/currency.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAEJ,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;;AAK/C,MAAM,OAAO,gBAAgB;IAE3B,YAA6B,QAAsB;QAAtB,aAAQ,GAAR,QAAQ,CAAc;IAAG,CAAC;IAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACI,SAAS,CACd,KAAa,EACb,YAAqB,EACrB,OAAgE,EAChE,UAAmB,EACnB,MAAe;QAEf,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,GAAG,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IACzF,CAAC;;6GA7CU,gBAAgB;2GAAhB,gBAAgB;2FAAhB,gBAAgB;kBAH5B,IAAI;mBAAC;oBACJ,IAAI,EAAE,UAAU;iBACjB;;AAuDD,MAAM,OAAO,kBAAkB;;+GAAlB,kBAAkB;gHAAlB,kBAAkB,iBAtDlB,gBAAgB,aAAhB,gBAAgB;gHAsDhB,kBAAkB,aAFf,CAAE,YAAY,CAAE;2FAEnB,kBAAkB;kBAL9B,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,gBAAgB,CAAE;oBAClC,YAAY,EAAE,CAAE,gBAAgB,CAAE;oBAClC,SAAS,EAAK,CAAE,YAAY,CAAE;iBAC/B","sourcesContent":["import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { CurrencyPipe } from '@angular/common';\n\n@Pipe({\n name: 'currency'\n})\nexport class RxapCurrencyPipe implements PipeTransform {\n\n constructor(private readonly currency: CurrencyPipe) {}\n\n /**\n *\n * @param value The number to be formatted as currency.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,\n * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be\n * configured using the `DEFAULT_CURRENCY_CODE` injection token.\n * @param display The format for the currency indicator. One of the following:\n * - `code`: Show the code (such as `USD`).\n * - `symbol`(default): Show the symbol (such as `$`).\n * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their\n * currency.\n * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the\n * locale has no narrow symbol, uses the standard symbol for the locale.\n * - String: Use the given string value instead of a code or a symbol.\n * For example, an empty string will suppress the currency & symbol.\n * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.\n *\n * @param digitsInfo Decimal representation options, specified by a string\n * in the following format:<br>\n * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n * Default is `1`.\n * - `minFractionDigits`: The minimum number of digits after the decimal point.\n * Default is `2`.\n * - `maxFractionDigits`: The maximum number of digits after the decimal point.\n * Default is `2`.\n * If not provided, the number will be formatted with the proper amount of digits,\n * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.\n * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.\n * @param locale A locale code for the locale format rules to use.\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n * See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).\n */\n public transform(\n value: number,\n currencyCode?: string,\n display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean,\n digitsInfo?: string,\n locale?: string\n ): string | null {\n return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);\n }\n\n}\n\n@NgModule({\n exports: [ RxapCurrencyPipe ],\n declarations: [ RxapCurrencyPipe ],\n providers: [ CurrencyPipe ]\n})\nexport class CurrencyPipeModule {}\n"]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
2
|
-
import { hasIdentifierProperty, getIdentifierProperties, clone } from '@rxap/utilities';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class DeleteIdentifierPipe {
|
|
5
|
-
transform(value) {
|
|
6
|
-
if (!value) {
|
|
7
|
-
return value;
|
|
8
|
-
}
|
|
9
|
-
const copy = clone(value);
|
|
10
|
-
if (hasIdentifierProperty(copy)) {
|
|
11
|
-
for (const pk of getIdentifierProperties(copy)) {
|
|
12
|
-
delete copy[pk];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return copy;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
DeleteIdentifierPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
19
|
-
DeleteIdentifierPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipe, name: "deleteIdentifier" });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
|
|
21
|
-
type: Pipe,
|
|
22
|
-
args: [{
|
|
23
|
-
name: 'deleteIdentifier',
|
|
24
|
-
}]
|
|
25
|
-
}] });
|
|
26
|
-
export class DeleteIdentifierPipeModule {
|
|
27
|
-
}
|
|
28
|
-
DeleteIdentifierPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
29
|
-
DeleteIdentifierPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipeModule, declarations: [DeleteIdentifierPipe], exports: [DeleteIdentifierPipe] });
|
|
30
|
-
DeleteIdentifierPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipeModule });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DeleteIdentifierPipeModule, decorators: [{
|
|
32
|
-
type: NgModule,
|
|
33
|
-
args: [{
|
|
34
|
-
exports: [DeleteIdentifierPipe],
|
|
35
|
-
declarations: [DeleteIdentifierPipe],
|
|
36
|
-
}]
|
|
37
|
-
}] });
|
|
38
|
-
//# sourceMappingURL=delete-identifier.pipe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-identifier.pipe.js","sourceRoot":"","sources":["../../../../../libs/pipes/src/lib/delete-identifier.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAEJ,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,qBAAqB,EACrB,uBAAuB,EACvB,KAAK,EACN,MAAM,iBAAiB,CAAC;;AAKzB,MAAM,OAAO,oBAAoB;IAExB,SAAS,CAAI,KAAkC;QACpD,IAAI,CAAC,KAAK,EAAE;YACV,OAAO,KAAK,CAAC;SACd;QACD,MAAM,IAAI,GAAQ,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/B,IAAI,qBAAqB,CAAC,IAAI,CAAC,EAAE;YAC/B,KAAK,MAAM,EAAE,IAAI,uBAAuB,CAAC,IAAI,CAAC,EAAE;gBAC9C,OAAO,IAAI,CAAE,EAAE,CAAE,CAAC;aACnB;SACF;QACD,OAAO,IAAI,CAAC;IACd,CAAC;;iHAbU,oBAAoB;+GAApB,oBAAoB;2FAApB,oBAAoB;kBAHhC,IAAI;mBAAC;oBACJ,IAAI,EAAE,kBAAkB;iBACzB;;AAsBD,MAAM,OAAO,0BAA0B;;uHAA1B,0BAA0B;wHAA1B,0BAA0B,iBArB1B,oBAAoB,aAApB,oBAAoB;wHAqBpB,0BAA0B;2FAA1B,0BAA0B;kBAJtC,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,oBAAoB,CAAE;oBACtC,YAAY,EAAE,CAAE,oBAAoB,CAAE;iBACvC","sourcesContent":["import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport {\n WithIdentifier,\n hasIdentifierProperty,\n getIdentifierProperties,\n clone\n} from '@rxap/utilities';\n\n@Pipe({\n name: 'deleteIdentifier',\n})\nexport class DeleteIdentifierPipe implements PipeTransform {\n\n public transform<T>(value: (WithIdentifier & T) | null): T | null {\n if (!value) {\n return value;\n }\n const copy: any = clone(value);\n if (hasIdentifierProperty(copy)) {\n for (const pk of getIdentifierProperties(copy)) {\n delete copy[ pk ];\n }\n }\n return copy;\n }\n\n}\n\n@NgModule({\n exports: [ DeleteIdentifierPipe ],\n declarations: [ DeleteIdentifierPipe ],\n})\nexport class DeleteIdentifierPipeModule {\n\n}\n"]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
2
|
-
import { ReplacePipe } from './replace.pipe';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class EscapeQuotationMarkPipe {
|
|
5
|
-
transform(value, reverse = false) {
|
|
6
|
-
if (reverse) {
|
|
7
|
-
return new ReplacePipe().transform(value, /\\"/g, '"');
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
return new ReplacePipe().transform(value, /"/g, '\"');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
EscapeQuotationMarkPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
15
|
-
EscapeQuotationMarkPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipe, name: "escapeQuotationMark" });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
|
|
17
|
-
type: Pipe,
|
|
18
|
-
args: [{
|
|
19
|
-
name: 'escapeQuotationMark'
|
|
20
|
-
}]
|
|
21
|
-
}] });
|
|
22
|
-
export class EscapeQuotationMarkPipeModule {
|
|
23
|
-
}
|
|
24
|
-
EscapeQuotationMarkPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
25
|
-
EscapeQuotationMarkPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipeModule, declarations: [EscapeQuotationMarkPipe], exports: [EscapeQuotationMarkPipe] });
|
|
26
|
-
EscapeQuotationMarkPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipeModule });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: EscapeQuotationMarkPipeModule, decorators: [{
|
|
28
|
-
type: NgModule,
|
|
29
|
-
args: [{
|
|
30
|
-
declarations: [EscapeQuotationMarkPipe],
|
|
31
|
-
exports: [EscapeQuotationMarkPipe]
|
|
32
|
-
}]
|
|
33
|
-
}] });
|
|
34
|
-
//# sourceMappingURL=escape-quotation-mark.pipe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"escape-quotation-mark.pipe.js","sourceRoot":"","sources":["../../../../../libs/pipes/src/lib/escape-quotation-mark.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAEJ,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;;AAK7C,MAAM,OAAO,uBAAuB;IAE3B,SAAS,CAAC,KAAa,EAAE,UAAmB,KAAK;QACtD,IAAI,OAAO,EAAE;YACX,OAAO,IAAI,WAAW,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;SACxD;aAAM;YACL,OAAO,IAAI,WAAW,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SACvD;IACH,CAAC;;oHARU,uBAAuB;kHAAvB,uBAAuB;2FAAvB,uBAAuB;kBAHnC,IAAI;mBAAC;oBACJ,IAAI,EAAE,qBAAqB;iBAC5B;;AAiBD,MAAM,OAAO,6BAA6B;;0HAA7B,6BAA6B;2HAA7B,6BAA6B,iBAhB7B,uBAAuB,aAAvB,uBAAuB;2HAgBvB,6BAA6B;2FAA7B,6BAA6B;kBAJzC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,uBAAuB,CAAE;oBACzC,OAAO,EAAO,CAAE,uBAAuB,CAAE;iBAC1C","sourcesContent":["import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { ReplacePipe } from './replace.pipe';\n\n@Pipe({\n name: 'escapeQuotationMark'\n})\nexport class EscapeQuotationMarkPipe implements PipeTransform {\n\n public transform(value: string, reverse: boolean = false): string {\n if (reverse) {\n return new ReplacePipe().transform(value, /\\\\\"/g, '\"');\n } else {\n return new ReplacePipe().transform(value, /\"/g, '\\\"');\n }\n }\n\n}\n\n@NgModule({\n declarations: [ EscapeQuotationMarkPipe ],\n exports: [ EscapeQuotationMarkPipe ]\n})\nexport class EscapeQuotationMarkPipeModule {}\n"]}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
2
|
-
import { getFromObject } from '@rxap/utilities';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class GetFromObjectPipe {
|
|
5
|
-
transform(value, path) {
|
|
6
|
-
return getFromObject(value, path);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
GetFromObjectPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
10
|
-
GetFromObjectPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipe, name: "getFromObject" });
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipe, decorators: [{
|
|
12
|
-
type: Pipe,
|
|
13
|
-
args: [{
|
|
14
|
-
name: 'getFromObject'
|
|
15
|
-
}]
|
|
16
|
-
}] });
|
|
17
|
-
export class GetFromObjectPipeModule {
|
|
18
|
-
}
|
|
19
|
-
GetFromObjectPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
20
|
-
GetFromObjectPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipeModule, declarations: [GetFromObjectPipe], exports: [GetFromObjectPipe] });
|
|
21
|
-
GetFromObjectPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipeModule });
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: GetFromObjectPipeModule, decorators: [{
|
|
23
|
-
type: NgModule,
|
|
24
|
-
args: [{
|
|
25
|
-
exports: [GetFromObjectPipe],
|
|
26
|
-
declarations: [GetFromObjectPipe]
|
|
27
|
-
}]
|
|
28
|
-
}] });
|
|
29
|
-
//# sourceMappingURL=get-from-object.pipe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-from-object.pipe.js","sourceRoot":"","sources":["../../../../../libs/pipes/src/lib/get-from-object.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAEJ,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;;AAKhD,MAAM,OAAO,iBAAiB;IAC5B,SAAS,CAAC,KAAU,EAAE,IAAY;QAChC,OAAO,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;;8GAHU,iBAAiB;4GAAjB,iBAAiB;2FAAjB,iBAAiB;kBAH7B,IAAI;mBAAC;oBACJ,IAAI,EAAE,eAAe;iBACtB;;AAWD,MAAM,OAAO,uBAAuB;;oHAAvB,uBAAuB;qHAAvB,uBAAuB,iBAVvB,iBAAiB,aAAjB,iBAAiB;qHAUjB,uBAAuB;2FAAvB,uBAAuB;kBAJnC,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,iBAAiB,CAAE;oBACnC,YAAY,EAAE,CAAE,iBAAiB,CAAE;iBACpC","sourcesContent":["import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { getFromObject } from '@rxap/utilities';\n\n@Pipe({\n name: 'getFromObject'\n})\nexport class GetFromObjectPipe implements PipeTransform {\n transform(value: any, path: string): any {\n return getFromObject(value, path);\n }\n}\n\n@NgModule({\n exports: [ GetFromObjectPipe ],\n declarations: [ GetFromObjectPipe ]\n})\nexport class GetFromObjectPipeModule {}\n"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule, } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class ReplacePipe {
|
|
4
|
-
transform(value, replace, replaceValue) {
|
|
5
|
-
return value ? value.replace(replace, replaceValue) : '';
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
ReplacePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
9
|
-
ReplacePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipe, name: "replace" });
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipe, decorators: [{
|
|
11
|
-
type: Pipe,
|
|
12
|
-
args: [{
|
|
13
|
-
name: 'replace',
|
|
14
|
-
}]
|
|
15
|
-
}] });
|
|
16
|
-
export class ReplacePipeModule {
|
|
17
|
-
}
|
|
18
|
-
ReplacePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
|
-
ReplacePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipeModule, declarations: [ReplacePipe], exports: [ReplacePipe] });
|
|
20
|
-
ReplacePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipeModule });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ReplacePipeModule, decorators: [{
|
|
22
|
-
type: NgModule,
|
|
23
|
-
args: [{
|
|
24
|
-
declarations: [ReplacePipe],
|
|
25
|
-
exports: [ReplacePipe],
|
|
26
|
-
}]
|
|
27
|
-
}] });
|
|
28
|
-
//# sourceMappingURL=replace.pipe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replace.pipe.js","sourceRoot":"","sources":["../../../../../libs/pipes/src/lib/replace.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAEJ,QAAQ,GACT,MAAM,eAAe,CAAC;;AAKvB,MAAM,OAAO,WAAW;IAEf,SAAS,CAAC,KAAa,EAAE,OAAe,EAAE,YAAoB;QACnE,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3D,CAAC;;wGAJU,WAAW;sGAAX,WAAW;2FAAX,WAAW;kBAHvB,IAAI;mBAAC;oBACJ,IAAI,EAAE,SAAS;iBAChB;;AAaD,MAAM,OAAO,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAZjB,WAAW,aAAX,WAAW;+GAYX,iBAAiB;2FAAjB,iBAAiB;kBAJ7B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,WAAW,CAAE;oBAC7B,OAAO,EAAO,CAAE,WAAW,CAAE;iBAC9B","sourcesContent":["import {\n Pipe,\n PipeTransform,\n NgModule,\n} from '@angular/core';\n\n@Pipe({\n name: 'replace',\n})\nexport class ReplacePipe implements PipeTransform {\n\n public transform(value: string, replace: RegExp, replaceValue: string): string {\n return value ? value.replace(replace, replaceValue) : '';\n }\n\n}\n\n@NgModule({\n declarations: [ ReplacePipe ],\n exports: [ ReplacePipe ],\n})\nexport class ReplacePipeModule {}\n"]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Pipe, NgModule } from '@angular/core';
|
|
2
|
-
import { JsonPipe } from '@angular/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class ToDisplayPipe {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.jsonPipe = new JsonPipe();
|
|
7
|
-
}
|
|
8
|
-
transform(value, toDisplay = this.jsonPipe.transform) {
|
|
9
|
-
return toDisplay(value);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
ToDisplayPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
13
|
-
ToDisplayPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipe, name: "toDisplay" });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipe, decorators: [{
|
|
15
|
-
type: Pipe,
|
|
16
|
-
args: [{
|
|
17
|
-
name: 'toDisplay'
|
|
18
|
-
}]
|
|
19
|
-
}] });
|
|
20
|
-
export class ToDisplayPipeModule {
|
|
21
|
-
}
|
|
22
|
-
ToDisplayPipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
-
ToDisplayPipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipeModule, declarations: [ToDisplayPipe], exports: [ToDisplayPipe] });
|
|
24
|
-
ToDisplayPipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipeModule });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ToDisplayPipeModule, decorators: [{
|
|
26
|
-
type: NgModule,
|
|
27
|
-
args: [{
|
|
28
|
-
declarations: [ToDisplayPipe],
|
|
29
|
-
exports: [ToDisplayPipe]
|
|
30
|
-
}]
|
|
31
|
-
}] });
|
|
32
|
-
//# sourceMappingURL=to-display.pipe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to-display.pipe.js","sourceRoot":"","sources":["../../../../../libs/pipes/src/lib/to-display.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAEJ,QAAQ,EACT,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAK3C,MAAM,OAAO,aAAa;IAH1B;QAKU,aAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;KAMnC;IAJQ,SAAS,CAAC,KAAU,EAAE,YAA+B,IAAI,CAAC,QAAQ,CAAC,SAAS;QACjF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;;0GANU,aAAa;wGAAb,aAAa;2FAAb,aAAa;kBAHzB,IAAI;mBAAC;oBACJ,IAAI,EAAE,WAAW;iBAClB;;AAeD,MAAM,OAAO,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,iBAdnB,aAAa,aAAb,aAAa;iHAcb,mBAAmB;2FAAnB,mBAAmB;kBAJ/B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,aAAa,CAAE;oBAC/B,OAAO,EAAO,CAAE,aAAa,CAAE;iBAChC","sourcesContent":["import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { ToDisplayFunction } from '@rxap/utilities';\nimport { JsonPipe } from '@angular/common';\n\n@Pipe({\n name: 'toDisplay'\n})\nexport class ToDisplayPipe implements PipeTransform {\n\n private jsonPipe = new JsonPipe();\n\n public transform(value: any, toDisplay: ToDisplayFunction = this.jsonPipe.transform): string {\n return toDisplay(value);\n }\n\n}\n\n@NgModule({\n declarations: [ ToDisplayPipe ],\n exports: [ ToDisplayPipe ]\n})\nexport class ToDisplayPipeModule {\n\n}\n"]}
|
package/esm2015/rxap-pipes.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-pipes.js","sourceRoot":"","sources":["../../../../libs/pipes/src/rxap-pipes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { SantizationPipe } from './santization.pipe';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class SantizationModule {
|
|
5
|
-
}
|
|
6
|
-
SantizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
-
SantizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationModule, declarations: [SantizationPipe], exports: [SantizationPipe] });
|
|
8
|
-
SantizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationModule, imports: [[]] });
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationModule, decorators: [{
|
|
10
|
-
type: NgModule,
|
|
11
|
-
args: [{
|
|
12
|
-
declarations: [SantizationPipe],
|
|
13
|
-
imports: [],
|
|
14
|
-
exports: [SantizationPipe]
|
|
15
|
-
}]
|
|
16
|
-
}] });
|
|
17
|
-
//# sourceMappingURL=santization.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"santization.module.js","sourceRoot":"","sources":["../../../../../../libs/pipes/santization/src/lib/santization.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;;AAOrD,MAAM,OAAO,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAJZ,eAAe,aAEf,eAAe;+GAEpB,iBAAiB,YAHd,EAAE;2FAGL,iBAAiB;kBAL7B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,eAAe,CAAE;oBACjC,OAAO,EAAO,EAAE;oBAChB,OAAO,EAAO,CAAE,eAAe,CAAE;iBAClC","sourcesContent":["import { NgModule } from '@angular/core';\nimport { SantizationPipe } from './santization.pipe';\n\n@NgModule({\n declarations: [ SantizationPipe ],\n imports: [],\n exports: [ SantizationPipe ]\n})\nexport class SantizationModule {}\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import { SantizationService } from './santization.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./santization.service";
|
|
5
|
-
export class SantizationPipe {
|
|
6
|
-
constructor(santizationService) {
|
|
7
|
-
this.santizationService = santizationService;
|
|
8
|
-
}
|
|
9
|
-
transform(value, type = 'url') {
|
|
10
|
-
return this.santizationService.transform(value, type);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
SantizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationPipe, deps: [{ token: i1.SantizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
14
|
-
SantizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationPipe, name: "santization" });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationPipe, decorators: [{
|
|
16
|
-
type: Pipe,
|
|
17
|
-
args: [{
|
|
18
|
-
name: 'santization',
|
|
19
|
-
}]
|
|
20
|
-
}], ctorParameters: function () { return [{ type: i1.SantizationService }]; } });
|
|
21
|
-
//# sourceMappingURL=santization.pipe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"santization.pipe.js","sourceRoot":"","sources":["../../../../../../libs/pipes/santization/src/lib/santization.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;;;AAK3D,MAAM,OAAO,eAAe;IAC1B,YAA6B,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;IAAG,CAAC;IAEvE,SAAS,CACP,KAAa,EACb,OAA4D,KAAK;QAEjE,OAAO,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;4GARU,eAAe;0GAAf,eAAe;2FAAf,eAAe;kBAH3B,IAAI;mBAAC;oBACJ,IAAI,EAAE,aAAa;iBACpB","sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { SafeValue } from '@angular/platform-browser';\nimport { SantizationService } from './santization.service';\n\n@Pipe({\n name: 'santization',\n})\nexport class SantizationPipe implements PipeTransform {\n constructor(private readonly santizationService: SantizationService) {}\n\n transform(\n value: string,\n type: 'html' | 'style' | 'script' | 'url' | 'resourceUrl' = 'url',\n ): SafeValue {\n return this.santizationService.transform(value, type);\n }\n}\n"]}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/platform-browser";
|
|
5
|
-
// TODO : move to @rxap/services
|
|
6
|
-
export class SantizationService {
|
|
7
|
-
constructor(_sanitizer) {
|
|
8
|
-
this._sanitizer = _sanitizer;
|
|
9
|
-
}
|
|
10
|
-
transform(value, type = 'url') {
|
|
11
|
-
switch (type) {
|
|
12
|
-
case 'html':
|
|
13
|
-
return this._sanitizer.bypassSecurityTrustHtml(value);
|
|
14
|
-
case 'style':
|
|
15
|
-
return this._sanitizer.bypassSecurityTrustStyle(value);
|
|
16
|
-
case 'script':
|
|
17
|
-
return this._sanitizer.bypassSecurityTrustScript(value);
|
|
18
|
-
case 'url':
|
|
19
|
-
return this._sanitizer.bypassSecurityTrustUrl(value);
|
|
20
|
-
case 'resourceUrl':
|
|
21
|
-
return this._sanitizer.bypassSecurityTrustResourceUrl(value);
|
|
22
|
-
}
|
|
23
|
-
throw new Error('type is not set');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
SantizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationService, deps: [{ token: DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27
|
-
SantizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationService, providedIn: 'root' });
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SantizationService, decorators: [{
|
|
29
|
-
type: Injectable,
|
|
30
|
-
args: [{
|
|
31
|
-
providedIn: 'root'
|
|
32
|
-
}]
|
|
33
|
-
}], ctorParameters: function () { return [{ type: i1.DomSanitizer, decorators: [{
|
|
34
|
-
type: Inject,
|
|
35
|
-
args: [DomSanitizer]
|
|
36
|
-
}] }]; } });
|
|
37
|
-
//# sourceMappingURL=santization.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"santization.service.js","sourceRoot":"","sources":["../../../../../../libs/pipes/santization/src/lib/santization.service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EAEb,MAAM,2BAA2B,CAAC;;;AAEnC,gCAAgC;AAIhC,MAAM,OAAO,kBAAkB;IAC7B,YAA0C,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;IAAG,CAAC;IAEtE,SAAS,CACP,KAAa,EACb,OAA4D,KAAK;QAEjE,QAAQ,IAAI,EAAE;YACZ,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;YAExD,KAAK,OAAO;gBACV,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;YAEzD,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;YAE1D,KAAK,KAAK;gBACR,OAAO,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;YAEvD,KAAK,aAAa;gBAChB,OAAO,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;SAChE;QAED,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACrC,CAAC;;+GAzBU,kBAAkB,kBACT,YAAY;mHADrB,kBAAkB,cAFjB,MAAM;2FAEP,kBAAkB;kBAH9B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;0BAEc,MAAM;2BAAC,YAAY","sourcesContent":["import {\n Inject,\n Injectable\n} from '@angular/core';\nimport {\n DomSanitizer,\n SafeValue\n} from '@angular/platform-browser';\n\n// TODO : move to @rxap/services\n@Injectable({\n providedIn: 'root'\n})\nexport class SantizationService {\n constructor(@Inject(DomSanitizer) private _sanitizer: DomSanitizer) {}\n\n transform(\n value: string,\n type: 'html' | 'style' | 'script' | 'url' | 'resourceUrl' = 'url'\n ): SafeValue {\n switch (type) {\n case 'html':\n return this._sanitizer.bypassSecurityTrustHtml(value);\n\n case 'style':\n return this._sanitizer.bypassSecurityTrustStyle(value);\n\n case 'script':\n return this._sanitizer.bypassSecurityTrustScript(value);\n\n case 'url':\n return this._sanitizer.bypassSecurityTrustUrl(value);\n\n case 'resourceUrl':\n return this._sanitizer.bypassSecurityTrustResourceUrl(value);\n }\n\n throw new Error('type is not set');\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"public_api.js","sourceRoot":"","sources":["../../../../../libs/pipes/santization/src/public_api.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC","sourcesContent":["export * from './lib/santization.module';\nexport * from './lib/santization.pipe';\nexport * from './lib/santization.service';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-pipes-santization.js","sourceRoot":"","sources":["../../../../../libs/pipes/santization/src/rxap-pipes-santization.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-pipes-santization.js","sources":["../../../../libs/pipes/santization/src/lib/santization.service.ts","../../../../libs/pipes/santization/src/lib/santization.pipe.ts","../../../../libs/pipes/santization/src/lib/santization.module.ts","../../../../libs/pipes/santization/src/rxap-pipes-santization.ts"],"sourcesContent":["import {\n Inject,\n Injectable\n} from '@angular/core';\nimport {\n DomSanitizer,\n SafeValue\n} from '@angular/platform-browser';\n\n// TODO : move to @rxap/services\n@Injectable({\n providedIn: 'root'\n})\nexport class SantizationService {\n constructor(@Inject(DomSanitizer) private _sanitizer: DomSanitizer) {}\n\n transform(\n value: string,\n type: 'html' | 'style' | 'script' | 'url' | 'resourceUrl' = 'url'\n ): SafeValue {\n switch (type) {\n case 'html':\n return this._sanitizer.bypassSecurityTrustHtml(value);\n\n case 'style':\n return this._sanitizer.bypassSecurityTrustStyle(value);\n\n case 'script':\n return this._sanitizer.bypassSecurityTrustScript(value);\n\n case 'url':\n return this._sanitizer.bypassSecurityTrustUrl(value);\n\n case 'resourceUrl':\n return this._sanitizer.bypassSecurityTrustResourceUrl(value);\n }\n\n throw new Error('type is not set');\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { SafeValue } from '@angular/platform-browser';\nimport { SantizationService } from './santization.service';\n\n@Pipe({\n name: 'santization',\n})\nexport class SantizationPipe implements PipeTransform {\n constructor(private readonly santizationService: SantizationService) {}\n\n transform(\n value: string,\n type: 'html' | 'style' | 'script' | 'url' | 'resourceUrl' = 'url',\n ): SafeValue {\n return this.santizationService.transform(value, type);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { SantizationPipe } from './santization.pipe';\n\n@NgModule({\n declarations: [ SantizationPipe ],\n imports: [],\n exports: [ SantizationPipe ]\n})\nexport class SantizationModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;AASA;MAIa,kBAAkB;IAC7B,YAA0C,UAAwB;QAAxB,eAAU,GAAV,UAAU,CAAc;KAAI;IAEtE,SAAS,CACP,KAAa,EACb,OAA4D,KAAK;QAEjE,QAAQ,IAAI;YACV,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;YAExD,KAAK,OAAO;gBACV,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;YAEzD,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;YAE1D,KAAK,KAAK;gBACR,OAAO,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;YAEvD,KAAK,aAAa;gBAChB,OAAO,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC,KAAK,CAAC,CAAC;SAChE;QAED,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;KACpC;;+GAzBU,kBAAkB,kBACT,YAAY;mHADrB,kBAAkB,cAFjB,MAAM;2FAEP,kBAAkB;kBAH9B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;0BAEc,MAAM;2BAAC,YAAY;;;MCPrB,eAAe;IAC1B,YAA6B,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;KAAI;IAEvE,SAAS,CACP,KAAa,EACb,OAA4D,KAAK;QAEjE,OAAO,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KACvD;;4GARU,eAAe;0GAAf,eAAe;2FAAf,eAAe;kBAH3B,IAAI;mBAAC;oBACJ,IAAI,EAAE,aAAa;iBACpB;;;MCEY,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAJZ,eAAe,aAEf,eAAe;+GAEpB,iBAAiB,YAHd,EAAE;2FAGL,iBAAiB;kBAL7B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,eAAe,CAAE;oBACjC,OAAO,EAAO,EAAE;oBAChB,OAAO,EAAO,CAAE,eAAe,CAAE;iBAClC;;;ACPD;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-pipes.js","sources":["../../../../libs/pipes/src/lib/to-display.pipe.ts","../../../../libs/pipes/src/lib/replace.pipe.ts","../../../../libs/pipes/src/lib/escape-quotation-mark.pipe.ts","../../../../libs/pipes/src/lib/currency.pipe.ts","../../../../libs/pipes/src/lib/delete-identifier.pipe.ts","../../../../libs/pipes/src/lib/get-from-object.pipe.ts","../../../../libs/pipes/src/rxap-pipes.ts"],"sourcesContent":["import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { ToDisplayFunction } from '@rxap/utilities';\nimport { JsonPipe } from '@angular/common';\n\n@Pipe({\n name: 'toDisplay'\n})\nexport class ToDisplayPipe implements PipeTransform {\n\n private jsonPipe = new JsonPipe();\n\n public transform(value: any, toDisplay: ToDisplayFunction = this.jsonPipe.transform): string {\n return toDisplay(value);\n }\n\n}\n\n@NgModule({\n declarations: [ ToDisplayPipe ],\n exports: [ ToDisplayPipe ]\n})\nexport class ToDisplayPipeModule {\n\n}\n","import {\n Pipe,\n PipeTransform,\n NgModule,\n} from '@angular/core';\n\n@Pipe({\n name: 'replace',\n})\nexport class ReplacePipe implements PipeTransform {\n\n public transform(value: string, replace: RegExp, replaceValue: string): string {\n return value ? value.replace(replace, replaceValue) : '';\n }\n\n}\n\n@NgModule({\n declarations: [ ReplacePipe ],\n exports: [ ReplacePipe ],\n})\nexport class ReplacePipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { ReplacePipe } from './replace.pipe';\n\n@Pipe({\n name: 'escapeQuotationMark'\n})\nexport class EscapeQuotationMarkPipe implements PipeTransform {\n\n public transform(value: string, reverse: boolean = false): string {\n if (reverse) {\n return new ReplacePipe().transform(value, /\\\\\"/g, '\"');\n } else {\n return new ReplacePipe().transform(value, /\"/g, '\\\"');\n }\n }\n\n}\n\n@NgModule({\n declarations: [ EscapeQuotationMarkPipe ],\n exports: [ EscapeQuotationMarkPipe ]\n})\nexport class EscapeQuotationMarkPipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { CurrencyPipe } from '@angular/common';\n\n@Pipe({\n name: 'currency'\n})\nexport class RxapCurrencyPipe implements PipeTransform {\n\n constructor(private readonly currency: CurrencyPipe) {}\n\n /**\n *\n * @param value The number to be formatted as currency.\n * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,\n * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be\n * configured using the `DEFAULT_CURRENCY_CODE` injection token.\n * @param display The format for the currency indicator. One of the following:\n * - `code`: Show the code (such as `USD`).\n * - `symbol`(default): Show the symbol (such as `$`).\n * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their\n * currency.\n * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the\n * locale has no narrow symbol, uses the standard symbol for the locale.\n * - String: Use the given string value instead of a code or a symbol.\n * For example, an empty string will suppress the currency & symbol.\n * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.\n *\n * @param digitsInfo Decimal representation options, specified by a string\n * in the following format:<br>\n * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.\n * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.\n * Default is `1`.\n * - `minFractionDigits`: The minimum number of digits after the decimal point.\n * Default is `2`.\n * - `maxFractionDigits`: The maximum number of digits after the decimal point.\n * Default is `2`.\n * If not provided, the number will be formatted with the proper amount of digits,\n * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.\n * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.\n * @param locale A locale code for the locale format rules to use.\n * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.\n * See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).\n */\n public transform(\n value: number,\n currencyCode?: string,\n display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean,\n digitsInfo?: string,\n locale?: string\n ): string | null {\n return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);\n }\n\n}\n\n@NgModule({\n exports: [ RxapCurrencyPipe ],\n declarations: [ RxapCurrencyPipe ],\n providers: [ CurrencyPipe ]\n})\nexport class CurrencyPipeModule {}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport {\n WithIdentifier,\n hasIdentifierProperty,\n getIdentifierProperties,\n clone\n} from '@rxap/utilities';\n\n@Pipe({\n name: 'deleteIdentifier',\n})\nexport class DeleteIdentifierPipe implements PipeTransform {\n\n public transform<T>(value: (WithIdentifier & T) | null): T | null {\n if (!value) {\n return value;\n }\n const copy: any = clone(value);\n if (hasIdentifierProperty(copy)) {\n for (const pk of getIdentifierProperties(copy)) {\n delete copy[ pk ];\n }\n }\n return copy;\n }\n\n}\n\n@NgModule({\n exports: [ DeleteIdentifierPipe ],\n declarations: [ DeleteIdentifierPipe ],\n})\nexport class DeleteIdentifierPipeModule {\n\n}\n","import {\n Pipe,\n PipeTransform,\n NgModule\n} from '@angular/core';\nimport { getFromObject } from '@rxap/utilities';\n\n@Pipe({\n name: 'getFromObject'\n})\nexport class GetFromObjectPipe implements PipeTransform {\n transform(value: any, path: string): any {\n return getFromObject(value, path);\n }\n}\n\n@NgModule({\n exports: [ GetFromObjectPipe ],\n declarations: [ GetFromObjectPipe ]\n})\nexport class GetFromObjectPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,aAAa;IAH1B;QAKU,aAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;KAMnC;IAJQ,SAAS,CAAC,KAAU,EAAE,YAA+B,IAAI,CAAC,QAAQ,CAAC,SAAS;QACjF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;KACzB;;0GANU,aAAa;wGAAb,aAAa;2FAAb,aAAa;kBAHzB,IAAI;mBAAC;oBACJ,IAAI,EAAE,WAAW;iBAClB;;MAeY,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,iBAdnB,aAAa,aAAb,aAAa;iHAcb,mBAAmB;2FAAnB,mBAAmB;kBAJ/B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,aAAa,CAAE;oBAC/B,OAAO,EAAO,CAAE,aAAa,CAAE;iBAChC;;;MCfY,WAAW;IAEf,SAAS,CAAC,KAAa,EAAE,OAAe,EAAE,YAAoB;QACnE,OAAO,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,YAAY,CAAC,GAAG,EAAE,CAAC;KAC1D;;wGAJU,WAAW;sGAAX,WAAW;2FAAX,WAAW;kBAHvB,IAAI;mBAAC;oBACJ,IAAI,EAAE,SAAS;iBAChB;;MAaY,iBAAiB;;8GAAjB,iBAAiB;+GAAjB,iBAAiB,iBAZjB,WAAW,aAAX,WAAW;+GAYX,iBAAiB;2FAAjB,iBAAiB;kBAJ7B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,WAAW,CAAE;oBAC7B,OAAO,EAAO,CAAE,WAAW,CAAE;iBAC9B;;;MCVY,uBAAuB;IAE3B,SAAS,CAAC,KAAa,EAAE,UAAmB,KAAK;QACtD,IAAI,OAAO,EAAE;YACX,OAAO,IAAI,WAAW,EAAE,CAAC,SAAS,CAAC,KAAK,E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,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/pipes/schematics/index.ts"],"names":[],"mappings":""}
|