@rxap/pipes 19.0.0 → 19.1.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +1 -1
  3. package/compodoc/changelog.html +11 -0
  4. package/compodoc/dependencies.html +5 -5
  5. package/compodoc/index.html +1 -1
  6. package/compodoc/js/menu-wc.js +12 -0
  7. package/compodoc/js/menu-wc_es5.js +1 -1
  8. package/compodoc/js/search/search_index.js +2 -2
  9. package/compodoc/overview.html +1 -1
  10. package/compodoc/pipes/JoinPipe.html +340 -0
  11. package/compodoc/pipes/LimitPipe.html +342 -0
  12. package/compodoc/pipes/SlicePipe.html +354 -0
  13. package/compodoc/pipes/TruncatePipe.html +362 -0
  14. package/compodoc/properties.html +1 -1
  15. package/docs/assets/navigation.js +1 -1
  16. package/docs/assets/search.js +1 -1
  17. package/docs/classes/CurrencyPipeModule.html +1 -1
  18. package/docs/classes/DeleteIdentifierPipe.html +2 -2
  19. package/docs/classes/EscapeQuotationMarkPipe.html +2 -2
  20. package/docs/classes/GetFromObjectPipe.html +2 -2
  21. package/docs/classes/JoinPipe.html +3 -0
  22. package/docs/classes/LimitPipe.html +3 -0
  23. package/docs/classes/ReplacePipe.html +2 -2
  24. package/docs/classes/RxapCurrencyPipe.html +3 -3
  25. package/docs/classes/SlicePipe.html +3 -0
  26. package/docs/classes/ToDisplayPipe.html +2 -2
  27. package/docs/classes/TruncatePipe.html +3 -0
  28. package/docs/documentation.json +789 -61
  29. package/docs/index.html +1 -1
  30. package/docs/modules.html +4 -0
  31. package/fesm2022/rxap-pipes-santization.mjs +6 -6
  32. package/fesm2022/rxap-pipes.mjs +90 -23
  33. package/fesm2022/rxap-pipes.mjs.map +1 -1
  34. package/index.d.ts +4 -0
  35. package/lib/join.pipe.d.ts +7 -0
  36. package/lib/limit.pipe.d.ts +7 -0
  37. package/lib/slice.pipe.d.ts +7 -0
  38. package/lib/truncate.pipe.d.ts +7 -0
  39. package/package.json +12 -11
  40. package/theme.css +1 -35
package/docs/index.html CHANGED
@@ -15,7 +15,7 @@
15
15
  <pre><code class="language-bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">add</span><span class="hl-1"> </span><span class="hl-2">@rxap/pipes</span>
16
16
  </code><button>Copy</button></pre>
17
17
  <p><strong>Install peer dependencies:</strong></p>
18
- <pre><code class="language-bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">add</span><span class="hl-1"> </span><span class="hl-2">@angular/common@^19.0.3</span><span class="hl-1"> </span><span class="hl-2">@angular/core@^19.0.3</span><span class="hl-1"> </span><span class="hl-2">@angular/platform-browser@^19.0.3</span><span class="hl-1"> </span><span class="hl-2">@rxap/utilities@^16.4.1</span><span class="hl-1"> </span>
18
+ <pre><code class="language-bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">add</span><span class="hl-1"> </span><span class="hl-2">@angular/common@^19.1.3</span><span class="hl-1"> </span><span class="hl-2">@angular/core@^19.1.3</span><span class="hl-1"> </span><span class="hl-2">@angular/platform-browser@^19.1.3</span><span class="hl-1"> </span><span class="hl-2">@rxap/utilities@^16.4.2-dev.2</span><span class="hl-1"> </span>
19
19
  </code><button>Copy</button></pre>
20
20
  <p><strong>Execute the init generator:</strong></p>
21
21
  <pre><code class="language-bash"><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-2">nx</span><span class="hl-1"> </span><span class="hl-2">g</span><span class="hl-1"> </span><span class="hl-2">@rxap/pipes:init</span>
package/docs/modules.html CHANGED
@@ -2,7 +2,11 @@
2
2
  <a href="classes/DeleteIdentifierPipe.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-128"></use></svg><span>Delete<wbr/>Identifier<wbr/>Pipe</span></a>
3
3
  <a href="classes/EscapeQuotationMarkPipe.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-128"></use></svg><span>Escape<wbr/>Quotation<wbr/>Mark<wbr/>Pipe</span></a>
4
4
  <a href="classes/GetFromObjectPipe.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-128"></use></svg><span>Get<wbr/>From<wbr/>Object<wbr/>Pipe</span></a>
5
+ <a href="classes/JoinPipe.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-128"></use></svg><span>Join<wbr/>Pipe</span></a>
6
+ <a href="classes/LimitPipe.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-128"></use></svg><span>Limit<wbr/>Pipe</span></a>
5
7
  <a href="classes/ReplacePipe.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-128"></use></svg><span>Replace<wbr/>Pipe</span></a>
6
8
  <a href="classes/RxapCurrencyPipe.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-128"></use></svg><span>Rxap<wbr/>Currency<wbr/>Pipe</span></a>
9
+ <a href="classes/SlicePipe.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-128"></use></svg><span>Slice<wbr/>Pipe</span></a>
7
10
  <a href="classes/ToDisplayPipe.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-128"></use></svg><span>To<wbr/>Display<wbr/>Pipe</span></a>
11
+ <a href="classes/TruncatePipe.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-128"></use></svg><span>Truncate<wbr/>Pipe</span></a>
8
12
  </div></section></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><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-private" name="private"/><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>Private</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></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-1"></use></svg><span>@rxap/pipes</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base="."><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>
@@ -26,10 +26,10 @@ class SantizationService {
26
26
  }
27
27
  throw new Error('type is not set');
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SantizationService, deps: [{ token: DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable }); }
30
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SantizationService, providedIn: 'root' }); }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SantizationService, deps: [{ token: DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable }); }
30
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SantizationService, providedIn: 'root' }); }
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SantizationService, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SantizationService, decorators: [{
33
33
  type: Injectable,
34
34
  args: [{
35
35
  providedIn: 'root',
@@ -46,10 +46,10 @@ class SantizationPipe {
46
46
  transform(value, type = 'url') {
47
47
  return this.santizationService.transform(value, type);
48
48
  }
49
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SantizationPipe, deps: [{ token: SantizationService }], target: i0.ɵɵFactoryTarget.Pipe }); }
50
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: SantizationPipe, isStandalone: true, name: "santization" }); }
49
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SantizationPipe, deps: [{ token: SantizationService }], target: i0.ɵɵFactoryTarget.Pipe }); }
50
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: SantizationPipe, isStandalone: true, name: "santization" }); }
51
51
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SantizationPipe, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SantizationPipe, decorators: [{
53
53
  type: Pipe,
54
54
  args: [{
55
55
  name: 'santization',
@@ -44,10 +44,10 @@ class RxapCurrencyPipe {
44
44
  transform(value, currencyCode, display, digitsInfo, locale) {
45
45
  return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
46
46
  }
47
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe }); }
48
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: RxapCurrencyPipe, isStandalone: true, name: "currency" }); }
47
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: RxapCurrencyPipe, deps: [{ token: i1.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe }); }
48
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: RxapCurrencyPipe, isStandalone: true, name: "currency" }); }
49
49
  }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
51
51
  type: Pipe,
52
52
  args: [{
53
53
  name: 'currency',
@@ -55,11 +55,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
55
55
  }]
56
56
  }], ctorParameters: () => [{ type: i1.CurrencyPipe }] });
57
57
  class CurrencyPipeModule {
58
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
59
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: CurrencyPipeModule, imports: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] }); }
60
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] }); }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CurrencyPipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
59
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: CurrencyPipeModule, imports: [RxapCurrencyPipe], exports: [RxapCurrencyPipe] }); }
60
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CurrencyPipeModule, providers: [CurrencyPipe] }); }
61
61
  }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: CurrencyPipeModule, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: CurrencyPipeModule, decorators: [{
63
63
  type: NgModule,
64
64
  args: [{
65
65
  imports: [RxapCurrencyPipe],
@@ -81,10 +81,10 @@ class DeleteIdentifierPipe {
81
81
  }
82
82
  return copy;
83
83
  }
84
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
85
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: DeleteIdentifierPipe, isStandalone: true, name: "deleteIdentifier" }); }
84
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
85
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: DeleteIdentifierPipe, isStandalone: true, name: "deleteIdentifier" }); }
86
86
  }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
88
88
  type: Pipe,
89
89
  args: [{
90
90
  name: 'deleteIdentifier',
@@ -96,10 +96,10 @@ class ReplacePipe {
96
96
  transform(value, replace, replaceValue) {
97
97
  return value ? value.replace(replace, replaceValue) : '';
98
98
  }
99
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
100
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: ReplacePipe, isStandalone: true, name: "replace" }); }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
100
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: ReplacePipe, isStandalone: true, name: "replace" }); }
101
101
  }
102
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ReplacePipe, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ReplacePipe, decorators: [{
103
103
  type: Pipe,
104
104
  args: [{
105
105
  name: 'replace',
@@ -116,10 +116,10 @@ class EscapeQuotationMarkPipe {
116
116
  return new ReplacePipe().transform(value, /"/g, '\\"');
117
117
  }
118
118
  }
119
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
120
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: EscapeQuotationMarkPipe, isStandalone: true, name: "escapeQuotationMark" }); }
119
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
120
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: EscapeQuotationMarkPipe, isStandalone: true, name: "escapeQuotationMark" }); }
121
121
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
123
123
  type: Pipe,
124
124
  args: [{
125
125
  name: 'escapeQuotationMark',
@@ -131,10 +131,10 @@ class GetFromObjectPipe {
131
131
  transform(value, path) {
132
132
  return getFromObject(value, path);
133
133
  }
134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
135
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: GetFromObjectPipe, isStandalone: true, name: "getFromObject" }); }
134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
135
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: GetFromObjectPipe, isStandalone: true, name: "getFromObject" }); }
136
136
  }
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: GetFromObjectPipe, decorators: [{
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: GetFromObjectPipe, decorators: [{
138
138
  type: Pipe,
139
139
  args: [{
140
140
  name: 'getFromObject',
@@ -142,6 +142,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
142
142
  }]
143
143
  }] });
144
144
 
145
+ class JoinPipe {
146
+ transform(list, separator) {
147
+ return list.join(separator);
148
+ }
149
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: JoinPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
150
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: JoinPipe, isStandalone: true, name: "join" }); }
151
+ }
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: JoinPipe, decorators: [{
153
+ type: Pipe,
154
+ args: [{
155
+ name: 'join',
156
+ pure: true,
157
+ standalone: true,
158
+ }]
159
+ }] });
160
+
161
+ class LimitPipe {
162
+ transform(value, limit) {
163
+ return value.slice(0, limit);
164
+ }
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: LimitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
166
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: LimitPipe, isStandalone: true, name: "limit" }); }
167
+ }
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: LimitPipe, decorators: [{
169
+ type: Pipe,
170
+ args: [{
171
+ name: 'limit',
172
+ standalone: true,
173
+ }]
174
+ }] });
175
+
176
+ class SlicePipe {
177
+ transform(value, start, end) {
178
+ return value.slice(start, end);
179
+ }
180
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
181
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: SlicePipe, isStandalone: true, name: "slice" }); }
182
+ }
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: SlicePipe, decorators: [{
184
+ type: Pipe,
185
+ args: [{
186
+ name: 'slice',
187
+ standalone: true,
188
+ }]
189
+ }] });
190
+
145
191
  class ToDisplayPipe {
146
192
  constructor() {
147
193
  this.jsonPipe = new JsonPipe();
@@ -149,10 +195,10 @@ class ToDisplayPipe {
149
195
  transform(value, toDisplay = this.jsonPipe.transform) {
150
196
  return toDisplay(value);
151
197
  }
152
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
153
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: ToDisplayPipe, isStandalone: true, name: "toDisplay" }); }
198
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
199
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: ToDisplayPipe, isStandalone: true, name: "toDisplay" }); }
154
200
  }
155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ToDisplayPipe, decorators: [{
201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: ToDisplayPipe, decorators: [{
156
202
  type: Pipe,
157
203
  args: [{
158
204
  name: 'toDisplay',
@@ -160,6 +206,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
160
206
  }]
161
207
  }] });
162
208
 
209
+ class TruncatePipe {
210
+ transform(value, length = 64, ellipsis = '...') {
211
+ if (!value) {
212
+ return '';
213
+ }
214
+ if (value.length <= length) {
215
+ return value;
216
+ }
217
+ return value.substring(0, length) + ellipsis;
218
+ }
219
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: TruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
220
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.3", ngImport: i0, type: TruncatePipe, isStandalone: true, name: "truncate" }); }
221
+ }
222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.3", ngImport: i0, type: TruncatePipe, decorators: [{
223
+ type: Pipe,
224
+ args: [{
225
+ name: 'truncate',
226
+ standalone: true,
227
+ }]
228
+ }] });
229
+
163
230
  // region
164
231
  // endregion
165
232
 
@@ -167,5 +234,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
167
234
  * Generated bundle index. Do not edit.
168
235
  */
169
236
 
170
- export { CurrencyPipeModule, DeleteIdentifierPipe, EscapeQuotationMarkPipe, GetFromObjectPipe, ReplacePipe, RxapCurrencyPipe, ToDisplayPipe };
237
+ export { CurrencyPipeModule, DeleteIdentifierPipe, EscapeQuotationMarkPipe, GetFromObjectPipe, JoinPipe, LimitPipe, ReplacePipe, RxapCurrencyPipe, SlicePipe, ToDisplayPipe, TruncatePipe };
171
238
  //# sourceMappingURL=rxap-pipes.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-pipes.mjs","sources":["../../../../../packages/angular/pipes/src/lib/currency.pipe.ts","../../../../../packages/angular/pipes/src/lib/delete-identifier.pipe.ts","../../../../../packages/angular/pipes/src/lib/replace.pipe.ts","../../../../../packages/angular/pipes/src/lib/escape-quotation-mark.pipe.ts","../../../../../packages/angular/pipes/src/lib/get-from-object.pipe.ts","../../../../../packages/angular/pipes/src/lib/to-display.pipe.ts","../../../../../packages/angular/pipes/src/index.ts","../../../../../packages/angular/pipes/src/rxap-pipes.ts"],"sourcesContent":["import {\n NgModule,\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { CurrencyPipe } from '@angular/common';\n\n@Pipe({\n name: 'currency',\n standalone: true,\n})\nexport class RxapCurrencyPipe implements PipeTransform {\n\n constructor(private readonly currency: CurrencyPipe) {\n }\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 imports: [ RxapCurrencyPipe ],\n exports: [ RxapCurrencyPipe ],\n providers: [ CurrencyPipe ],\n})\nexport class CurrencyPipeModule {\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport {\n clone,\n getIdentifierProperties,\n hasIdentifierProperty,\n WithIdentifier,\n} from '@rxap/utilities';\n\n@Pipe({\n name: 'deleteIdentifier',\n standalone: true,\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\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'replace',\n standalone: true,\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\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { ReplacePipe } from './replace.pipe';\n\n@Pipe({\n name: 'escapeQuotationMark',\n standalone: true,\n})\nexport class EscapeQuotationMarkPipe implements PipeTransform {\n\n public transform(value: string, reverse = 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\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { getFromObject } from '@rxap/utilities';\n\n@Pipe({\n name: 'getFromObject',\n standalone: true,\n})\nexport class GetFromObjectPipe implements PipeTransform {\n transform(value: any, path: string): any {\n return getFromObject(value, path);\n }\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { ToDisplayFunction } from '@rxap/utilities';\nimport { JsonPipe } from '@angular/common';\n\n@Pipe({\n name: 'toDisplay',\n standalone: true,\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\n","// region \nexport * from './lib/currency.pipe';\nexport * from './lib/delete-identifier.pipe';\nexport * from './lib/escape-quotation-mark.pipe';\nexport * from './lib/get-from-object.pipe';\nexport * from './lib/replace.pipe';\nexport * from './lib/to-display.pipe';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,gBAAgB,CAAA;AAE3B,IAAA,WAAA,CAA6B,QAAsB,EAAA;QAAtB,IAAQ,CAAA,QAAA,GAAR,QAAQ;;AAGrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCG;IACI,SAAS,CACd,KAAa,EACb,YAAqB,EACrB,OAAgE,EAChE,UAAmB,EACnB,MAAe,EAAA;AAEf,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK,GAAG,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC;;8GA7C7E,gBAAgB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,YAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;MAwDY,kBAAkB,CAAA;8GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAlB,kBAAkB,EAAA,OAAA,EAAA,CAvDlB,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAAhB,gBAAgB,CAAA,EAA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IAAA,EAAA,eAAA,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,eAAe;AACrB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;MCEY,aAAa,CAAA;AAJ1B,IAAA,WAAA,GAAA;AAMU,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,QAAQ,EAAE;AAMlC;IAJQ,SAAS,CAAC,KAAU,EAAE,SAAA,GAA+B,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAA;AACjF,QAAA,OAAO,SAAS,CAAC,KAAK,CAAC;;8GALd,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,WAAW;AACjB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACVD;AAOA;;ACPA;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-pipes.mjs","sources":["../../../../../packages/angular/pipes/src/lib/currency.pipe.ts","../../../../../packages/angular/pipes/src/lib/delete-identifier.pipe.ts","../../../../../packages/angular/pipes/src/lib/replace.pipe.ts","../../../../../packages/angular/pipes/src/lib/escape-quotation-mark.pipe.ts","../../../../../packages/angular/pipes/src/lib/get-from-object.pipe.ts","../../../../../packages/angular/pipes/src/lib/join.pipe.ts","../../../../../packages/angular/pipes/src/lib/limit.pipe.ts","../../../../../packages/angular/pipes/src/lib/slice.pipe.ts","../../../../../packages/angular/pipes/src/lib/to-display.pipe.ts","../../../../../packages/angular/pipes/src/lib/truncate.pipe.ts","../../../../../packages/angular/pipes/src/index.ts","../../../../../packages/angular/pipes/src/rxap-pipes.ts"],"sourcesContent":["import {\n NgModule,\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { CurrencyPipe } from '@angular/common';\n\n@Pipe({\n name: 'currency',\n standalone: true,\n})\nexport class RxapCurrencyPipe implements PipeTransform {\n\n constructor(private readonly currency: CurrencyPipe) {\n }\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 imports: [ RxapCurrencyPipe ],\n exports: [ RxapCurrencyPipe ],\n providers: [ CurrencyPipe ],\n})\nexport class CurrencyPipeModule {\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport {\n clone,\n getIdentifierProperties,\n hasIdentifierProperty,\n WithIdentifier,\n} from '@rxap/utilities';\n\n@Pipe({\n name: 'deleteIdentifier',\n standalone: true,\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\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'replace',\n standalone: true,\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\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { ReplacePipe } from './replace.pipe';\n\n@Pipe({\n name: 'escapeQuotationMark',\n standalone: true,\n})\nexport class EscapeQuotationMarkPipe implements PipeTransform {\n\n public transform(value: string, reverse = 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\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { getFromObject } from '@rxap/utilities';\n\n@Pipe({\n name: 'getFromObject',\n standalone: true,\n})\nexport class GetFromObjectPipe implements PipeTransform {\n transform(value: any, path: string): any {\n return getFromObject(value, path);\n }\n}\n\n\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'join',\n pure: true,\n standalone: true,\n})\nexport class JoinPipe implements PipeTransform {\n\n transform(list: any[], separator?: string): string {\n return list.join(separator);\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'limit',\n standalone: true,\n})\nexport class LimitPipe implements PipeTransform {\n\n transform<T>(value: readonly T[], limit: number): T[] {\n return value.slice(0, limit);\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'slice',\n standalone: true,\n})\nexport class SlicePipe implements PipeTransform {\n\n transform<T>(value: readonly T[], start: number, end?: number): T[] {\n return value.slice(start, end);\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { ToDisplayFunction } from '@rxap/utilities';\nimport { JsonPipe } from '@angular/common';\n\n@Pipe({\n name: 'toDisplay',\n standalone: true,\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\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\n\n@Pipe({\n name: 'truncate',\n standalone: true,\n})\nexport class TruncatePipe implements PipeTransform {\n\n transform(value?: string | null, length = 64, ellipsis = '...'): string {\n if (!value) {\n return '';\n }\n if (value.length <= length) {\n return value;\n }\n return value.substring(0, length) + ellipsis;\n }\n\n}\n","// region \nexport * from './lib/currency.pipe';\nexport * from './lib/delete-identifier.pipe';\nexport * from './lib/escape-quotation-mark.pipe';\nexport * from './lib/get-from-object.pipe';\nexport * from './lib/join.pipe';\nexport * from './lib/limit.pipe';\nexport * from './lib/replace.pipe';\nexport * from './lib/slice.pipe';\nexport * from './lib/to-display.pipe';\nexport * from './lib/truncate.pipe';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAWa,gBAAgB,CAAA;AA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;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACRD;AAWA;;ACXA;;AAEG;;;;"}
package/index.d.ts CHANGED
@@ -2,5 +2,9 @@ export * from './lib/currency.pipe';
2
2
  export * from './lib/delete-identifier.pipe';
3
3
  export * from './lib/escape-quotation-mark.pipe';
4
4
  export * from './lib/get-from-object.pipe';
5
+ export * from './lib/join.pipe';
6
+ export * from './lib/limit.pipe';
5
7
  export * from './lib/replace.pipe';
8
+ export * from './lib/slice.pipe';
6
9
  export * from './lib/to-display.pipe';
10
+ export * from './lib/truncate.pipe';
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class JoinPipe implements PipeTransform {
4
+ transform(list: any[], separator?: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<JoinPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<JoinPipe, "join", true>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LimitPipe implements PipeTransform {
4
+ transform<T>(value: readonly T[], limit: number): T[];
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<LimitPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<LimitPipe, "limit", true>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SlicePipe implements PipeTransform {
4
+ transform<T>(value: readonly T[], start: number, end?: number): T[];
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<SlicePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<SlicePipe, "slice", true>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TruncatePipe implements PipeTransform {
4
+ transform(value?: string | null, length?: number, ellipsis?: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
7
+ }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
- "version": "19.0.0",
2
+ "version": "19.1.0-dev.0",
3
3
  "name": "@rxap/pipes",
4
4
  "description": "A collection of utility angular pipes used in RxAP.",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "dependencies": {
7
- "@nx/devkit": "20.3.1",
7
+ "@nx/devkit": "20.4.0",
8
8
  "tslib": "2.6.2"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "^19.0.3",
12
- "@angular/core": "^19.0.3",
13
- "@angular/platform-browser": "^19.0.3",
14
- "@rxap/utilities": "^16.4.1"
11
+ "@angular/common": "^19.1.3",
12
+ "@angular/core": "^19.1.3",
13
+ "@angular/platform-browser": "^19.1.3",
14
+ "@rxap/utilities": "^16.4.2-dev.2"
15
15
  },
16
16
  "author": {
17
17
  "name": "Merzough Münker",
@@ -36,23 +36,23 @@
36
36
  "packageGroup": [
37
37
  {
38
38
  "package": "@angular/animations",
39
- "version": "19.0.3"
39
+ "version": "19.1.3"
40
40
  },
41
41
  {
42
42
  "package": "@angular/common",
43
- "version": "19.0.3"
43
+ "version": "19.1.3"
44
44
  },
45
45
  {
46
46
  "package": "@angular/core",
47
- "version": "19.0.3"
47
+ "version": "19.1.3"
48
48
  },
49
49
  {
50
50
  "package": "@angular/platform-browser",
51
- "version": "19.0.3"
51
+ "version": "19.1.3"
52
52
  },
53
53
  {
54
54
  "package": "@rxap/utilities",
55
- "version": "16.4.1"
55
+ "version": "16.4.2-dev.2"
56
56
  }
57
57
  ]
58
58
  },
@@ -66,6 +66,7 @@
66
66
  "directory": "packages/angular/pipes"
67
67
  },
68
68
  "sideEffects": false,
69
+ "gitHead": "19fb407911bba163d3088ee26fbcac354fe153a0",
69
70
  "module": "fesm2022/rxap-pipes.mjs",
70
71
  "typings": "index.d.ts",
71
72
  "exports": {
package/theme.css CHANGED
@@ -1,35 +1 @@
1
- .static {
2
- position: static
3
- }
4
-
5
- .relative {
6
- position: relative
7
- }
8
-
9
- .sticky {
10
- position: sticky
11
- }
12
-
13
- .block {
14
- display: block
15
- }
16
-
17
- .inline {
18
- display: inline
19
- }
20
-
21
- .contents {
22
- display: contents
23
- }
24
-
25
- .transform {
26
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
27
- }
28
-
29
- .capitalize {
30
- text-transform: capitalize
31
- }
32
-
33
- .filter {
34
- filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
35
- }
1
+ .static{position:static}.relative{position:relative}.sticky{position:sticky}.block{display:block}.inline{display:inline}.contents{display:contents}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.capitalize{text-transform:capitalize}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}