@rxap/pipes 19.1.0-dev.2 → 19.1.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +24 -26
- package/compodoc/changelog.html +2 -0
- package/compodoc/dependencies.html +1 -1
- package/compodoc/index.html +26 -20
- package/compodoc/js/menu-wc.js +3 -0
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/variables.html +221 -0
- package/compodoc/properties.html +3 -2
- package/docs/documentation.json +106 -164
- package/docs/html/assets/hierarchy.js +1 -0
- package/docs/{assets → html/assets}/highlight.css +13 -6
- package/docs/html/assets/icons.js +18 -0
- package/docs/html/assets/icons.svg +1 -0
- package/docs/{assets → html/assets}/main.js +5 -4
- package/docs/html/assets/navigation.js +1 -0
- package/docs/html/assets/search.js +1 -0
- package/docs/html/assets/style.css +1611 -0
- package/docs/html/classes/CurrencyPipeModule.html +2 -0
- package/docs/html/classes/DeleteIdentifierPipe.html +3 -0
- package/docs/html/classes/EscapeQuotationMarkPipe.html +3 -0
- package/docs/html/classes/GetFromObjectPipe.html +3 -0
- package/docs/html/classes/JoinPipe.html +3 -0
- package/docs/html/classes/LimitPipe.html +3 -0
- package/docs/html/classes/ReplacePipe.html +3 -0
- package/docs/html/classes/RxapCurrencyPipe.html +36 -0
- package/docs/html/classes/SlicePipe.html +3 -0
- package/docs/html/classes/ToDisplayPipe.html +3 -0
- package/docs/html/classes/TruncatePipe.html +3 -0
- package/docs/html/index.html +33 -0
- package/docs/html/modules.html +1 -0
- package/docs/markdown/README.md +37 -0
- package/docs/markdown/classes/CurrencyPipeModule.md +19 -0
- package/docs/markdown/classes/DeleteIdentifierPipe.md +49 -0
- package/docs/markdown/classes/EscapeQuotationMarkPipe.md +49 -0
- package/docs/markdown/classes/GetFromObjectPipe.md +49 -0
- package/docs/markdown/classes/JoinPipe.md +49 -0
- package/docs/markdown/classes/LimitPipe.md +53 -0
- package/docs/markdown/classes/ReplacePipe.md +53 -0
- package/docs/markdown/classes/RxapCurrencyPipe.md +103 -0
- package/docs/markdown/classes/SlicePipe.md +57 -0
- package/docs/markdown/classes/ToDisplayPipe.md +49 -0
- package/docs/markdown/classes/TruncatePipe.md +53 -0
- package/docs/markdown/globals.md +19 -0
- package/docs/wiki/Class.CurrencyPipeModule.md +15 -0
- package/docs/wiki/Class.DeleteIdentifierPipe.md +45 -0
- package/docs/wiki/Class.EscapeQuotationMarkPipe.md +45 -0
- package/docs/wiki/Class.GetFromObjectPipe.md +45 -0
- package/docs/wiki/Class.JoinPipe.md +45 -0
- package/docs/wiki/Class.LimitPipe.md +49 -0
- package/docs/wiki/Class.ReplacePipe.md +49 -0
- package/docs/wiki/Class.RxapCurrencyPipe.md +99 -0
- package/docs/wiki/Class.SlicePipe.md +53 -0
- package/docs/wiki/Class.ToDisplayPipe.md +45 -0
- package/docs/wiki/Class.TruncatePipe.md +49 -0
- package/docs/wiki/Home.md +33 -0
- package/docs/wiki/_Sidebar.md +15 -0
- package/docs/wiki/globals.md +15 -0
- package/package.json +6 -5
- package/docs/assets/icons.js +0 -15
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1412
- package/docs/classes/CurrencyPipeModule.html +0 -2
- package/docs/classes/DeleteIdentifierPipe.html +0 -3
- package/docs/classes/EscapeQuotationMarkPipe.html +0 -3
- package/docs/classes/GetFromObjectPipe.html +0 -3
- package/docs/classes/JoinPipe.html +0 -3
- package/docs/classes/LimitPipe.html +0 -3
- package/docs/classes/ReplacePipe.html +0 -3
- package/docs/classes/RxapCurrencyPipe.html +0 -37
- package/docs/classes/SlicePipe.html +0 -3
- package/docs/classes/ToDisplayPipe.html +0 -4
- package/docs/classes/TruncatePipe.html +0 -3
- package/docs/index.html +0 -28
- package/docs/modules.html +0 -12
- /package/docs/{.nojekyll → html/.nojekyll} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@rxap/pipes</title><meta name="description" content="Documentation for @rxap/pipes"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@rxap/pipes</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h1>@rxap/pipes</h1></div><div class="tsd-panel tsd-typography"><p>Provides a set of Angular pipes for common data transformations, including currency formatting, string manipulation, and object property access. These pipes offer standalone functionality for easy integration into Angular templates. The package includes pipes for escaping quotation marks, joining arrays, limiting array length, replacing substrings, slicing arrays, truncating strings, and deleting identifier properties from objects.</p>
|
|
2
|
+
<p><a href="https://www.npmjs.com/package/@rxap/pipes"><img src="https://img.shields.io/npm/v/@rxap/pipes?style=flat-square" alt="npm version"></a>
|
|
3
|
+
<a href="https://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="commitizen
|
|
4
|
+
friendly"></a>
|
|
5
|
+
<a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square" alt="styled with
|
|
6
|
+
prettier"></a>
|
|
7
|
+
<img src="https://img.shields.io/librariesio/release/npm/@rxap/pipes" alt="Libraries.io dependency status for latest release, scoped npm
|
|
8
|
+
package">
|
|
9
|
+
<img src="https://img.shields.io/npm/dm/@rxap/pipes" alt="npm">
|
|
10
|
+
<img src="https://img.shields.io/npm/l/@rxap/pipes" alt="NPM"> -
|
|
11
|
+
<a href="#installation">Installation</a></p>
|
|
12
|
+
<ul>
|
|
13
|
+
<li><a href="#generators">Generators</a>
|
|
14
|
+
<ul>
|
|
15
|
+
<li><a href="#init">init</a></li>
|
|
16
|
+
</ul>
|
|
17
|
+
</li>
|
|
18
|
+
</ul>
|
|
19
|
+
<a id="installation-add-the-package-to-your-workspace-bash-yarn-add" class="tsd-anchor"></a><h1 class="tsd-anchor-link">Installation <strong>Add the package to your workspace:</strong> ```bash yarn add<a href="#installation-add-the-package-to-your-workspace-bash-yarn-add" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h1><p>@rxap/pipes</p>
|
|
20
|
+
<pre><code><span class="hl-0">**</span><span class="hl-1">Install</span><span class="hl-0"> </span><span class="hl-1">peer</span><span class="hl-0"> </span><span class="hl-2">dependencies</span><span class="hl-0">:** </span><span class="hl-3">```bash yarn add</span><br/><span class="hl-3"> @angular/common@^19.1.3 @angular/core@^19.1.3 @angular/platform-browser@^19.1.3 @rxap/utilities@^16.4.2-dev.4 </span>
|
|
21
|
+
</code><button>Copy</button></pre>
|
|
22
|
+
|
|
23
|
+
<p><strong>Execute the init generator:</strong> <code>bash yarn nx g @rxap/pipes:init </code></p>
|
|
24
|
+
<a id="generators" class="tsd-anchor"></a><h1 class="tsd-anchor-link">Generators<a href="#generators" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h1><pre><code>##
|
|
25
|
+
init
|
|
26
|
+
>
|
|
27
|
+
Initialize the package in the workspace
|
|
28
|
+
|
|
29
|
+
```bash nx g
|
|
30
|
+
@rxap/pipes:init
|
|
31
|
+
```
|
|
32
|
+
</code></pre>
|
|
33
|
+
</div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#installation-add-the-package-to-your-workspace-bash-yarn-add"><span>Installation <wbr/>Add the package to your workspace: ```bash yarn add</span></a><a href="#generators"><span>Generators</span></a></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html">@rxap/pipes</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@rxap/pipes</title><meta name="description" content="Documentation for @rxap/pipes"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@rxap/pipes</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="modules.html">@rxap/pipes</a></li></ul><h1>@rxap/pipes</h1></div><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Classes"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg> Classes</h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary"><a id="currencypipemodule" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/CurrencyPipeModule.html">CurrencyPipeModule</a><a href="#currencypipemodule" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="deleteidentifierpipe" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/DeleteIdentifierPipe.html">DeleteIdentifierPipe</a><a href="#deleteidentifierpipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="escapequotationmarkpipe" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/EscapeQuotationMarkPipe.html">EscapeQuotationMarkPipe</a><a href="#escapequotationmarkpipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="getfromobjectpipe" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/GetFromObjectPipe.html">GetFromObjectPipe</a><a href="#getfromobjectpipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="joinpipe" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/JoinPipe.html">JoinPipe</a><a href="#joinpipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="limitpipe" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/LimitPipe.html">LimitPipe</a><a href="#limitpipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="replacepipe" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/ReplacePipe.html">ReplacePipe</a><a href="#replacepipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="rxapcurrencypipe" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/RxapCurrencyPipe.html">RxapCurrencyPipe</a><a href="#rxapcurrencypipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="slicepipe" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/SlicePipe.html">SlicePipe</a><a href="#slicepipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="todisplaypipe" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/ToDisplayPipe.html">ToDisplayPipe</a><a href="#todisplaypipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary"><a id="truncatepipe" class="tsd-anchor"></a><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><a href="classes/TruncatePipe.html">TruncatePipe</a><a href="#truncatepipe" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Classes"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Classes</summary><div><a href="#currencypipemodule" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Currency<wbr/>Pipe<wbr/>Module</span></a><a href="#deleteidentifierpipe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Delete<wbr/>Identifier<wbr/>Pipe</span></a><a href="#escapequotationmarkpipe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Escape<wbr/>Quotation<wbr/>Mark<wbr/>Pipe</span></a><a href="#getfromobjectpipe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Get<wbr/>From<wbr/>Object<wbr/>Pipe</span></a><a href="#joinpipe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Join<wbr/>Pipe</span></a><a href="#limitpipe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Limit<wbr/>Pipe</span></a><a href="#replacepipe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Replace<wbr/>Pipe</span></a><a href="#rxapcurrencypipe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Rxap<wbr/>Currency<wbr/>Pipe</span></a><a href="#slicepipe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Slice<wbr/>Pipe</span></a><a href="#todisplaypipe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>To<wbr/>Display<wbr/>Pipe</span></a><a href="#truncatepipe" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg><span>Truncate<wbr/>Pipe</span></a></div></details></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html" class="current">@rxap/pipes</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
**@rxap/pipes**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
Provides a set of Angular pipes for common data transformations, including currency formatting, string manipulation, and object property access. These pipes offer standalone functionality for easy integration into Angular templates. The package includes pipes for escaping quotation marks, joining arrays, limiting array length, replacing substrings, slicing arrays, truncating strings, and deleting identifier properties from objects.
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/@rxap/pipes)
|
|
8
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
10
|
+
[](https://github.com/prettier/prettier)
|
|
12
|
+

|
|
14
|
+

|
|
15
|
+
 -
|
|
16
|
+
[Installation](#installation)
|
|
17
|
+
- [Generators](#generators)
|
|
18
|
+
- [init](#init)
|
|
19
|
+
|
|
20
|
+
# Installation **Add the package to your workspace:** ```bash yarn add
|
|
21
|
+
@rxap/pipes
|
|
22
|
+
```
|
|
23
|
+
**Install peer dependencies:** ```bash yarn add
|
|
24
|
+
@angular/common@^19.1.3 @angular/core@^19.1.3 @angular/platform-browser@^19.1.3 @rxap/utilities@^16.4.2-dev.4
|
|
25
|
+
```
|
|
26
|
+
**Execute the init generator:** ```bash yarn nx g
|
|
27
|
+
@rxap/pipes:init ```
|
|
28
|
+
# Generators
|
|
29
|
+
|
|
30
|
+
##
|
|
31
|
+
init
|
|
32
|
+
>
|
|
33
|
+
Initialize the package in the workspace
|
|
34
|
+
|
|
35
|
+
```bash nx g
|
|
36
|
+
@rxap/pipes:init
|
|
37
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[**@rxap/pipes**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/pipes](../globals.md) / CurrencyPipeModule
|
|
6
|
+
|
|
7
|
+
# Class: CurrencyPipeModule
|
|
8
|
+
|
|
9
|
+
Defined in: [currency.pipe.ts:67](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/currency.pipe.ts#L67)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### new CurrencyPipeModule()
|
|
14
|
+
|
|
15
|
+
> **new CurrencyPipeModule**(): [`CurrencyPipeModule`](CurrencyPipeModule.md)
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
[`CurrencyPipeModule`](CurrencyPipeModule.md)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[**@rxap/pipes**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/pipes](../globals.md) / DeleteIdentifierPipe
|
|
6
|
+
|
|
7
|
+
# Class: DeleteIdentifierPipe
|
|
8
|
+
|
|
9
|
+
Defined in: [delete-identifier.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/delete-identifier.pipe.ts#L16)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- `PipeTransform`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new DeleteIdentifierPipe()
|
|
18
|
+
|
|
19
|
+
> **new DeleteIdentifierPipe**(): [`DeleteIdentifierPipe`](DeleteIdentifierPipe.md)
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`DeleteIdentifierPipe`](DeleteIdentifierPipe.md)
|
|
24
|
+
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
### transform()
|
|
28
|
+
|
|
29
|
+
> **transform**\<`T`\>(`value`): `null` \| `T`
|
|
30
|
+
|
|
31
|
+
Defined in: [delete-identifier.pipe.ts:18](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/delete-identifier.pipe.ts#L18)
|
|
32
|
+
|
|
33
|
+
#### Type Parameters
|
|
34
|
+
|
|
35
|
+
• **T**
|
|
36
|
+
|
|
37
|
+
#### Parameters
|
|
38
|
+
|
|
39
|
+
##### value
|
|
40
|
+
|
|
41
|
+
`null` | WithIdentifier & T
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`null` \| `T`
|
|
46
|
+
|
|
47
|
+
#### Implementation of
|
|
48
|
+
|
|
49
|
+
`PipeTransform.transform`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[**@rxap/pipes**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/pipes](../globals.md) / EscapeQuotationMarkPipe
|
|
6
|
+
|
|
7
|
+
# Class: EscapeQuotationMarkPipe
|
|
8
|
+
|
|
9
|
+
Defined in: [escape-quotation-mark.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/escape-quotation-mark.pipe.ts#L11)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- `PipeTransform`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new EscapeQuotationMarkPipe()
|
|
18
|
+
|
|
19
|
+
> **new EscapeQuotationMarkPipe**(): [`EscapeQuotationMarkPipe`](EscapeQuotationMarkPipe.md)
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`EscapeQuotationMarkPipe`](EscapeQuotationMarkPipe.md)
|
|
24
|
+
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
### transform()
|
|
28
|
+
|
|
29
|
+
> **transform**(`value`, `reverse`): `string`
|
|
30
|
+
|
|
31
|
+
Defined in: [escape-quotation-mark.pipe.ts:13](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/escape-quotation-mark.pipe.ts#L13)
|
|
32
|
+
|
|
33
|
+
#### Parameters
|
|
34
|
+
|
|
35
|
+
##### value
|
|
36
|
+
|
|
37
|
+
`string`
|
|
38
|
+
|
|
39
|
+
##### reverse
|
|
40
|
+
|
|
41
|
+
`boolean` = `false`
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`string`
|
|
46
|
+
|
|
47
|
+
#### Implementation of
|
|
48
|
+
|
|
49
|
+
`PipeTransform.transform`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[**@rxap/pipes**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/pipes](../globals.md) / GetFromObjectPipe
|
|
6
|
+
|
|
7
|
+
# Class: GetFromObjectPipe
|
|
8
|
+
|
|
9
|
+
Defined in: [get-from-object.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/get-from-object.pipe.ts#L11)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- `PipeTransform`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new GetFromObjectPipe()
|
|
18
|
+
|
|
19
|
+
> **new GetFromObjectPipe**(): [`GetFromObjectPipe`](GetFromObjectPipe.md)
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`GetFromObjectPipe`](GetFromObjectPipe.md)
|
|
24
|
+
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
### transform()
|
|
28
|
+
|
|
29
|
+
> **transform**(`value`, `path`): `any`
|
|
30
|
+
|
|
31
|
+
Defined in: [get-from-object.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/get-from-object.pipe.ts#L12)
|
|
32
|
+
|
|
33
|
+
#### Parameters
|
|
34
|
+
|
|
35
|
+
##### value
|
|
36
|
+
|
|
37
|
+
`any`
|
|
38
|
+
|
|
39
|
+
##### path
|
|
40
|
+
|
|
41
|
+
`string`
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`any`
|
|
46
|
+
|
|
47
|
+
#### Implementation of
|
|
48
|
+
|
|
49
|
+
`PipeTransform.transform`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[**@rxap/pipes**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/pipes](../globals.md) / JoinPipe
|
|
6
|
+
|
|
7
|
+
# Class: JoinPipe
|
|
8
|
+
|
|
9
|
+
Defined in: [join.pipe.ts:11](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/join.pipe.ts#L11)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- `PipeTransform`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new JoinPipe()
|
|
18
|
+
|
|
19
|
+
> **new JoinPipe**(): [`JoinPipe`](JoinPipe.md)
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`JoinPipe`](JoinPipe.md)
|
|
24
|
+
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
### transform()
|
|
28
|
+
|
|
29
|
+
> **transform**(`list`, `separator`?): `string`
|
|
30
|
+
|
|
31
|
+
Defined in: [join.pipe.ts:13](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/join.pipe.ts#L13)
|
|
32
|
+
|
|
33
|
+
#### Parameters
|
|
34
|
+
|
|
35
|
+
##### list
|
|
36
|
+
|
|
37
|
+
`any`[]
|
|
38
|
+
|
|
39
|
+
##### separator?
|
|
40
|
+
|
|
41
|
+
`string`
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`string`
|
|
46
|
+
|
|
47
|
+
#### Implementation of
|
|
48
|
+
|
|
49
|
+
`PipeTransform.transform`
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[**@rxap/pipes**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/pipes](../globals.md) / LimitPipe
|
|
6
|
+
|
|
7
|
+
# Class: LimitPipe
|
|
8
|
+
|
|
9
|
+
Defined in: [limit.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/limit.pipe.ts#L10)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- `PipeTransform`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new LimitPipe()
|
|
18
|
+
|
|
19
|
+
> **new LimitPipe**(): [`LimitPipe`](LimitPipe.md)
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`LimitPipe`](LimitPipe.md)
|
|
24
|
+
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
### transform()
|
|
28
|
+
|
|
29
|
+
> **transform**\<`T`\>(`value`, `limit`): `T`[]
|
|
30
|
+
|
|
31
|
+
Defined in: [limit.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/limit.pipe.ts#L12)
|
|
32
|
+
|
|
33
|
+
#### Type Parameters
|
|
34
|
+
|
|
35
|
+
• **T**
|
|
36
|
+
|
|
37
|
+
#### Parameters
|
|
38
|
+
|
|
39
|
+
##### value
|
|
40
|
+
|
|
41
|
+
readonly `T`[]
|
|
42
|
+
|
|
43
|
+
##### limit
|
|
44
|
+
|
|
45
|
+
`number`
|
|
46
|
+
|
|
47
|
+
#### Returns
|
|
48
|
+
|
|
49
|
+
`T`[]
|
|
50
|
+
|
|
51
|
+
#### Implementation of
|
|
52
|
+
|
|
53
|
+
`PipeTransform.transform`
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[**@rxap/pipes**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/pipes](../globals.md) / ReplacePipe
|
|
6
|
+
|
|
7
|
+
# Class: ReplacePipe
|
|
8
|
+
|
|
9
|
+
Defined in: [replace.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/replace.pipe.ts#L10)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- `PipeTransform`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new ReplacePipe()
|
|
18
|
+
|
|
19
|
+
> **new ReplacePipe**(): [`ReplacePipe`](ReplacePipe.md)
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`ReplacePipe`](ReplacePipe.md)
|
|
24
|
+
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
### transform()
|
|
28
|
+
|
|
29
|
+
> **transform**(`value`, `replace`, `replaceValue`): `string`
|
|
30
|
+
|
|
31
|
+
Defined in: [replace.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/replace.pipe.ts#L12)
|
|
32
|
+
|
|
33
|
+
#### Parameters
|
|
34
|
+
|
|
35
|
+
##### value
|
|
36
|
+
|
|
37
|
+
`string`
|
|
38
|
+
|
|
39
|
+
##### replace
|
|
40
|
+
|
|
41
|
+
`RegExp`
|
|
42
|
+
|
|
43
|
+
##### replaceValue
|
|
44
|
+
|
|
45
|
+
`string`
|
|
46
|
+
|
|
47
|
+
#### Returns
|
|
48
|
+
|
|
49
|
+
`string`
|
|
50
|
+
|
|
51
|
+
#### Implementation of
|
|
52
|
+
|
|
53
|
+
`PipeTransform.transform`
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
[**@rxap/pipes**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/pipes](../globals.md) / RxapCurrencyPipe
|
|
6
|
+
|
|
7
|
+
# Class: RxapCurrencyPipe
|
|
8
|
+
|
|
9
|
+
Defined in: [currency.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/currency.pipe.ts#L12)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- `PipeTransform`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new RxapCurrencyPipe()
|
|
18
|
+
|
|
19
|
+
> **new RxapCurrencyPipe**(`currency`): [`RxapCurrencyPipe`](RxapCurrencyPipe.md)
|
|
20
|
+
|
|
21
|
+
Defined in: [currency.pipe.ts:14](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/currency.pipe.ts#L14)
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
##### currency
|
|
26
|
+
|
|
27
|
+
`CurrencyPipe`
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
[`RxapCurrencyPipe`](RxapCurrencyPipe.md)
|
|
32
|
+
|
|
33
|
+
## Methods
|
|
34
|
+
|
|
35
|
+
### transform()
|
|
36
|
+
|
|
37
|
+
> **transform**(`value`, `currencyCode`?, `display`?, `digitsInfo`?, `locale`?): `null` \| `string`
|
|
38
|
+
|
|
39
|
+
Defined in: [currency.pipe.ts:50](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/currency.pipe.ts#L50)
|
|
40
|
+
|
|
41
|
+
#### Parameters
|
|
42
|
+
|
|
43
|
+
##### value
|
|
44
|
+
|
|
45
|
+
`number`
|
|
46
|
+
|
|
47
|
+
The number to be formatted as currency.
|
|
48
|
+
|
|
49
|
+
##### currencyCode?
|
|
50
|
+
|
|
51
|
+
`string`
|
|
52
|
+
|
|
53
|
+
The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,
|
|
54
|
+
such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be
|
|
55
|
+
configured using the `DEFAULT_CURRENCY_CODE` injection token.
|
|
56
|
+
|
|
57
|
+
##### display?
|
|
58
|
+
|
|
59
|
+
The format for the currency indicator. One of the following:
|
|
60
|
+
- `code`: Show the code (such as `USD`).
|
|
61
|
+
- `symbol`(default): Show the symbol (such as `$`).
|
|
62
|
+
- `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their
|
|
63
|
+
currency.
|
|
64
|
+
For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the
|
|
65
|
+
locale has no narrow symbol, uses the standard symbol for the locale.
|
|
66
|
+
- String: Use the given string value instead of a code or a symbol.
|
|
67
|
+
For example, an empty string will suppress the currency & symbol.
|
|
68
|
+
- Boolean (marked deprecated in v5): `true` for symbol and false for `code`.
|
|
69
|
+
|
|
70
|
+
`string` | `boolean`
|
|
71
|
+
|
|
72
|
+
##### digitsInfo?
|
|
73
|
+
|
|
74
|
+
`string`
|
|
75
|
+
|
|
76
|
+
Decimal representation options, specified by a string
|
|
77
|
+
in the following format:<br>
|
|
78
|
+
<code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
|
|
79
|
+
- `minIntegerDigits`: The minimum number of integer digits before the decimal point.
|
|
80
|
+
Default is `1`.
|
|
81
|
+
- `minFractionDigits`: The minimum number of digits after the decimal point.
|
|
82
|
+
Default is `2`.
|
|
83
|
+
- `maxFractionDigits`: The maximum number of digits after the decimal point.
|
|
84
|
+
Default is `2`.
|
|
85
|
+
If not provided, the number will be formatted with the proper amount of digits,
|
|
86
|
+
depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.
|
|
87
|
+
For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.
|
|
88
|
+
|
|
89
|
+
##### locale?
|
|
90
|
+
|
|
91
|
+
`string`
|
|
92
|
+
|
|
93
|
+
A locale code for the locale format rules to use.
|
|
94
|
+
When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
|
|
95
|
+
See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).
|
|
96
|
+
|
|
97
|
+
#### Returns
|
|
98
|
+
|
|
99
|
+
`null` \| `string`
|
|
100
|
+
|
|
101
|
+
#### Implementation of
|
|
102
|
+
|
|
103
|
+
`PipeTransform.transform`
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
[**@rxap/pipes**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/pipes](../globals.md) / SlicePipe
|
|
6
|
+
|
|
7
|
+
# Class: SlicePipe
|
|
8
|
+
|
|
9
|
+
Defined in: [slice.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/slice.pipe.ts#L10)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- `PipeTransform`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new SlicePipe()
|
|
18
|
+
|
|
19
|
+
> **new SlicePipe**(): [`SlicePipe`](SlicePipe.md)
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`SlicePipe`](SlicePipe.md)
|
|
24
|
+
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
### transform()
|
|
28
|
+
|
|
29
|
+
> **transform**\<`T`\>(`value`, `start`, `end`?): `T`[]
|
|
30
|
+
|
|
31
|
+
Defined in: [slice.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/slice.pipe.ts#L12)
|
|
32
|
+
|
|
33
|
+
#### Type Parameters
|
|
34
|
+
|
|
35
|
+
• **T**
|
|
36
|
+
|
|
37
|
+
#### Parameters
|
|
38
|
+
|
|
39
|
+
##### value
|
|
40
|
+
|
|
41
|
+
readonly `T`[]
|
|
42
|
+
|
|
43
|
+
##### start
|
|
44
|
+
|
|
45
|
+
`number`
|
|
46
|
+
|
|
47
|
+
##### end?
|
|
48
|
+
|
|
49
|
+
`number`
|
|
50
|
+
|
|
51
|
+
#### Returns
|
|
52
|
+
|
|
53
|
+
`T`[]
|
|
54
|
+
|
|
55
|
+
#### Implementation of
|
|
56
|
+
|
|
57
|
+
`PipeTransform.transform`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[**@rxap/pipes**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/pipes](../globals.md) / ToDisplayPipe
|
|
6
|
+
|
|
7
|
+
# Class: ToDisplayPipe
|
|
8
|
+
|
|
9
|
+
Defined in: [to-display.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/to-display.pipe.ts#L12)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- `PipeTransform`
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new ToDisplayPipe()
|
|
18
|
+
|
|
19
|
+
> **new ToDisplayPipe**(): [`ToDisplayPipe`](ToDisplayPipe.md)
|
|
20
|
+
|
|
21
|
+
#### Returns
|
|
22
|
+
|
|
23
|
+
[`ToDisplayPipe`](ToDisplayPipe.md)
|
|
24
|
+
|
|
25
|
+
## Methods
|
|
26
|
+
|
|
27
|
+
### transform()
|
|
28
|
+
|
|
29
|
+
> **transform**(`value`, `toDisplay`): `string`
|
|
30
|
+
|
|
31
|
+
Defined in: [to-display.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/pipes/src/lib/to-display.pipe.ts#L16)
|
|
32
|
+
|
|
33
|
+
#### Parameters
|
|
34
|
+
|
|
35
|
+
##### value
|
|
36
|
+
|
|
37
|
+
`any`
|
|
38
|
+
|
|
39
|
+
##### toDisplay
|
|
40
|
+
|
|
41
|
+
`ToDisplayFunction` = `...`
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`string`
|
|
46
|
+
|
|
47
|
+
#### Implementation of
|
|
48
|
+
|
|
49
|
+
`PipeTransform.transform`
|