@rxap/pipes 21.0.1-dev.1 → 22.0.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 (48) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/compodoc/changelog.html +7 -0
  3. package/compodoc/dependencies.html +5 -5
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +31 -31
  7. package/docs/html/classes/DeleteIdentifierPipe.html +2 -2
  8. package/docs/html/classes/EscapeQuotationMarkPipe.html +2 -2
  9. package/docs/html/classes/GetFromObjectPipe.html +2 -2
  10. package/docs/html/classes/JoinPipe.html +2 -2
  11. package/docs/html/classes/LimitPipe.html +2 -2
  12. package/docs/html/classes/ReplacePipe.html +2 -2
  13. package/docs/html/classes/RxapCurrencyPipe.html +2 -2
  14. package/docs/html/classes/SlicePipe.html +2 -2
  15. package/docs/html/classes/ToDisplayPipe.html +2 -2
  16. package/docs/html/classes/TruncatePipe.html +2 -2
  17. package/docs/html/index.html +2 -2
  18. package/docs/html/modules.html +1 -1
  19. package/docs/markdown/README.md +1 -1
  20. package/docs/markdown/classes/DeleteIdentifierPipe.md +3 -3
  21. package/docs/markdown/classes/EscapeQuotationMarkPipe.md +3 -3
  22. package/docs/markdown/classes/GetFromObjectPipe.md +3 -3
  23. package/docs/markdown/classes/JoinPipe.md +3 -3
  24. package/docs/markdown/classes/LimitPipe.md +3 -3
  25. package/docs/markdown/classes/ReplacePipe.md +3 -3
  26. package/docs/markdown/classes/RxapCurrencyPipe.md +3 -3
  27. package/docs/markdown/classes/SlicePipe.md +3 -3
  28. package/docs/markdown/classes/ToDisplayPipe.md +3 -3
  29. package/docs/markdown/classes/TruncatePipe.md +3 -3
  30. package/docs/markdown/globals.md +2 -2
  31. package/docs/wiki/Class.DeleteIdentifierPipe.md +2 -2
  32. package/docs/wiki/Class.EscapeQuotationMarkPipe.md +2 -2
  33. package/docs/wiki/Class.GetFromObjectPipe.md +2 -2
  34. package/docs/wiki/Class.JoinPipe.md +2 -2
  35. package/docs/wiki/Class.LimitPipe.md +2 -2
  36. package/docs/wiki/Class.ReplacePipe.md +2 -2
  37. package/docs/wiki/Class.RxapCurrencyPipe.md +2 -2
  38. package/docs/wiki/Class.SlicePipe.md +2 -2
  39. package/docs/wiki/Class.ToDisplayPipe.md +2 -2
  40. package/docs/wiki/Class.TruncatePipe.md +2 -2
  41. package/docs/wiki/globals.md +1 -1
  42. package/fesm2022/rxap-pipes-santization.mjs +91 -63
  43. package/fesm2022/rxap-pipes-santization.mjs.map +1 -1
  44. package/fesm2022/rxap-pipes.mjs +399 -223
  45. package/fesm2022/rxap-pipes.mjs.map +1 -1
  46. package/package.json +11 -11
  47. package/types/rxap-pipes-santization.d.ts +17 -18
  48. package/types/rxap-pipes.d.ts +82 -91
@@ -1,224 +1,400 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, LOCALE_ID, DEFAULT_CURRENCY_CODE, Pipe } from '@angular/core';
3
- import { CurrencyPipe, JsonPipe } from '@angular/common';
4
- import { clone, hasIdentifierProperty, getIdentifierProperties, getFromObject } from '@rxap/utilities';
5
-
6
- class RxapCurrencyPipe {
7
- constructor() {
8
- this.currency = new CurrencyPipe(inject(LOCALE_ID), inject(DEFAULT_CURRENCY_CODE, { optional: true }) ?? undefined);
9
- }
10
- /**
11
- *
12
- * @param value The number to be formatted as currency.
13
- * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,
14
- * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be
15
- * configured using the `DEFAULT_CURRENCY_CODE` injection token.
16
- * @param display The format for the currency indicator. One of the following:
17
- * - `code`: Show the code (such as `USD`).
18
- * - `symbol`(default): Show the symbol (such as `$`).
19
- * - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their
20
- * currency.
21
- * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the
22
- * locale has no narrow symbol, uses the standard symbol for the locale.
23
- * - String: Use the given string value instead of a code or a symbol.
24
- * For example, an empty string will suppress the currency & symbol.
25
- * - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.
26
- *
27
- * @param digitsInfo Decimal representation options, specified by a string
28
- * in the following format:<br>
29
- * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
30
- * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
31
- * Default is `1`.
32
- * - `minFractionDigits`: The minimum number of digits after the decimal point.
33
- * Default is `2`.
34
- * - `maxFractionDigits`: The maximum number of digits after the decimal point.
35
- * Default is `2`.
36
- * If not provided, the number will be formatted with the proper amount of digits,
37
- * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.
38
- * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.
39
- * @param locale A locale code for the locale format rules to use.
40
- * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
41
- * See [Setting your app locale](guide/i18n#setting-up-the-locale-of-your-app).
42
- */
43
- transform(value, currencyCode, display, digitsInfo, locale) {
44
- return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
45
- }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapCurrencyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
47
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: RxapCurrencyPipe, isStandalone: true, name: "currency" }); }
48
- }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RxapCurrencyPipe, decorators: [{
50
- type: Pipe,
51
- args: [{
52
- name: 'currency',
53
- standalone: true,
54
- }]
55
- }] });
56
-
57
- class DeleteIdentifierPipe {
58
- transform(value) {
59
- if (!value) {
60
- return value;
61
- }
62
- const copy = clone(value);
63
- if (hasIdentifierProperty(copy)) {
64
- for (const pk of getIdentifierProperties(copy)) {
65
- delete copy[pk];
66
- }
67
- }
68
- return copy;
69
- }
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DeleteIdentifierPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
71
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: DeleteIdentifierPipe, isStandalone: true, name: "deleteIdentifier" }); }
72
- }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DeleteIdentifierPipe, decorators: [{
74
- type: Pipe,
75
- args: [{
76
- name: 'deleteIdentifier',
77
- standalone: true,
78
- }]
79
- }] });
80
-
81
- class ReplacePipe {
82
- transform(value, replace, replaceValue) {
83
- return value ? value.replace(replace, replaceValue) : '';
84
- }
85
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
86
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: ReplacePipe, isStandalone: true, name: "replace" }); }
87
- }
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ReplacePipe, decorators: [{
89
- type: Pipe,
90
- args: [{
91
- name: 'replace',
92
- standalone: true,
93
- }]
94
- }] });
95
-
96
- class EscapeQuotationMarkPipe {
97
- transform(value, reverse = false) {
98
- if (reverse) {
99
- return new ReplacePipe().transform(value, /\\"/g, '"');
100
- }
101
- else {
102
- return new ReplacePipe().transform(value, /"/g, '\\"');
103
- }
104
- }
105
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: EscapeQuotationMarkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
106
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: EscapeQuotationMarkPipe, isStandalone: true, name: "escapeQuotationMark" }); }
107
- }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: EscapeQuotationMarkPipe, decorators: [{
109
- type: Pipe,
110
- args: [{
111
- name: 'escapeQuotationMark',
112
- standalone: true,
113
- }]
114
- }] });
115
-
116
- class GetFromObjectPipe {
117
- transform(value, path) {
118
- return getFromObject(value, path);
119
- }
120
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetFromObjectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
121
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: GetFromObjectPipe, isStandalone: true, name: "getFromObject" }); }
122
- }
123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetFromObjectPipe, decorators: [{
124
- type: Pipe,
125
- args: [{
126
- name: 'getFromObject',
127
- standalone: true,
128
- }]
129
- }] });
130
-
131
- class JoinPipe {
132
- transform(list, separator) {
133
- return list.join(separator);
134
- }
135
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: JoinPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
136
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: JoinPipe, isStandalone: true, name: "join" }); }
137
- }
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: JoinPipe, decorators: [{
139
- type: Pipe,
140
- args: [{
141
- name: 'join',
142
- pure: true,
143
- standalone: true,
144
- }]
145
- }] });
146
-
147
- class LimitPipe {
148
- transform(value, limit) {
149
- return value.slice(0, limit);
150
- }
151
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LimitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
152
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: LimitPipe, isStandalone: true, name: "limit" }); }
153
- }
154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: LimitPipe, decorators: [{
155
- type: Pipe,
156
- args: [{
157
- name: 'limit',
158
- standalone: true,
159
- }]
160
- }] });
161
-
162
- class SlicePipe {
163
- transform(value, start, end) {
164
- return value.slice(start, end);
165
- }
166
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
167
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: SlicePipe, isStandalone: true, name: "slice" }); }
168
- }
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SlicePipe, decorators: [{
170
- type: Pipe,
171
- args: [{
172
- name: 'slice',
173
- standalone: true,
174
- }]
175
- }] });
176
-
177
- class ToDisplayPipe {
178
- constructor() {
179
- this.jsonPipe = new JsonPipe();
180
- }
181
- transform(value, toDisplay = this.jsonPipe.transform) {
182
- return toDisplay(value);
183
- }
184
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ToDisplayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
185
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: ToDisplayPipe, isStandalone: true, name: "toDisplay" }); }
186
- }
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ToDisplayPipe, decorators: [{
188
- type: Pipe,
189
- args: [{
190
- name: 'toDisplay',
191
- standalone: true,
192
- }]
193
- }] });
194
-
195
- class TruncatePipe {
196
- transform(value, length = 64, ellipsis = '...') {
197
- if (!value) {
198
- return '';
199
- }
200
- if (value.length <= length) {
201
- return value;
202
- }
203
- return value.substring(0, length) + ellipsis;
204
- }
205
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
206
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: TruncatePipe, isStandalone: true, name: "truncate" }); }
207
- }
208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TruncatePipe, decorators: [{
209
- type: Pipe,
210
- args: [{
211
- name: 'truncate',
212
- standalone: true,
213
- }]
214
- }] });
215
-
216
- // region
217
- // endregion
218
-
219
- /**
220
- * Generated bundle index. Do not edit.
221
- */
222
-
1
+ import * as i0 from "@angular/core";
2
+ import { DEFAULT_CURRENCY_CODE, LOCALE_ID, Pipe, inject } from "@angular/core";
3
+ import { CurrencyPipe, JsonPipe } from "@angular/common";
4
+ import { clone, getFromObject, getIdentifierProperties, hasIdentifierProperty } from "@rxap/utilities";
5
+ var RxapCurrencyPipe = class RxapCurrencyPipe {
6
+ constructor() {
7
+ this.currency = new CurrencyPipe(inject(LOCALE_ID), inject(DEFAULT_CURRENCY_CODE, { optional: true }) ?? void 0);
8
+ }
9
+ transform(value, currencyCode, display, digitsInfo, locale) {
10
+ return this.currency.transform(value / 100, currencyCode, display, digitsInfo, locale);
11
+ }
12
+ static {
13
+ this.ɵfac = i0.ɵɵngDeclareFactory({
14
+ minVersion: "12.0.0",
15
+ version: "22.3.0",
16
+ ngImport: i0,
17
+ type: RxapCurrencyPipe,
18
+ deps: [],
19
+ target: i0.ɵɵFactoryTarget.Pipe
20
+ });
21
+ }
22
+ static {
23
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
24
+ minVersion: "14.0.0",
25
+ version: "22.3.0",
26
+ ngImport: i0,
27
+ type: RxapCurrencyPipe,
28
+ isStandalone: true,
29
+ name: "currency"
30
+ });
31
+ }
32
+ };
33
+ i0.ɵɵngDeclareClassMetadata({
34
+ minVersion: "12.0.0",
35
+ version: "22.3.0",
36
+ ngImport: i0,
37
+ type: RxapCurrencyPipe,
38
+ decorators: [{
39
+ type: Pipe,
40
+ args: [{
41
+ name: "currency",
42
+ standalone: true
43
+ }]
44
+ }]
45
+ });
46
+ var DeleteIdentifierPipe = class DeleteIdentifierPipe {
47
+ transform(value) {
48
+ if (!value) return value;
49
+ const copy = clone(value);
50
+ if (hasIdentifierProperty(copy)) for (const pk of getIdentifierProperties(copy)) delete copy[pk];
51
+ return copy;
52
+ }
53
+ static {
54
+ this.ɵfac = i0.ɵɵngDeclareFactory({
55
+ minVersion: "12.0.0",
56
+ version: "22.3.0",
57
+ ngImport: i0,
58
+ type: DeleteIdentifierPipe,
59
+ deps: [],
60
+ target: i0.ɵɵFactoryTarget.Pipe
61
+ });
62
+ }
63
+ static {
64
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
65
+ minVersion: "14.0.0",
66
+ version: "22.3.0",
67
+ ngImport: i0,
68
+ type: DeleteIdentifierPipe,
69
+ isStandalone: true,
70
+ name: "deleteIdentifier"
71
+ });
72
+ }
73
+ };
74
+ i0.ɵɵngDeclareClassMetadata({
75
+ minVersion: "12.0.0",
76
+ version: "22.3.0",
77
+ ngImport: i0,
78
+ type: DeleteIdentifierPipe,
79
+ decorators: [{
80
+ type: Pipe,
81
+ args: [{
82
+ name: "deleteIdentifier",
83
+ standalone: true
84
+ }]
85
+ }]
86
+ });
87
+ var ReplacePipe = class ReplacePipe {
88
+ transform(value, replace, replaceValue) {
89
+ return value ? value.replace(replace, replaceValue) : "";
90
+ }
91
+ static {
92
+ this.ɵfac = i0.ɵɵngDeclareFactory({
93
+ minVersion: "12.0.0",
94
+ version: "22.3.0",
95
+ ngImport: i0,
96
+ type: ReplacePipe,
97
+ deps: [],
98
+ target: i0.ɵɵFactoryTarget.Pipe
99
+ });
100
+ }
101
+ static {
102
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
103
+ minVersion: "14.0.0",
104
+ version: "22.3.0",
105
+ ngImport: i0,
106
+ type: ReplacePipe,
107
+ isStandalone: true,
108
+ name: "replace"
109
+ });
110
+ }
111
+ };
112
+ i0.ɵɵngDeclareClassMetadata({
113
+ minVersion: "12.0.0",
114
+ version: "22.3.0",
115
+ ngImport: i0,
116
+ type: ReplacePipe,
117
+ decorators: [{
118
+ type: Pipe,
119
+ args: [{
120
+ name: "replace",
121
+ standalone: true
122
+ }]
123
+ }]
124
+ });
125
+ var EscapeQuotationMarkPipe = class EscapeQuotationMarkPipe {
126
+ transform(value, reverse = false) {
127
+ if (reverse) return new ReplacePipe().transform(value, /\\"/g, "\"");
128
+ else return new ReplacePipe().transform(value, /"/g, "\\\"");
129
+ }
130
+ static {
131
+ this.ɵfac = i0.ɵɵngDeclareFactory({
132
+ minVersion: "12.0.0",
133
+ version: "22.3.0",
134
+ ngImport: i0,
135
+ type: EscapeQuotationMarkPipe,
136
+ deps: [],
137
+ target: i0.ɵɵFactoryTarget.Pipe
138
+ });
139
+ }
140
+ static {
141
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
142
+ minVersion: "14.0.0",
143
+ version: "22.3.0",
144
+ ngImport: i0,
145
+ type: EscapeQuotationMarkPipe,
146
+ isStandalone: true,
147
+ name: "escapeQuotationMark"
148
+ });
149
+ }
150
+ };
151
+ i0.ɵɵngDeclareClassMetadata({
152
+ minVersion: "12.0.0",
153
+ version: "22.3.0",
154
+ ngImport: i0,
155
+ type: EscapeQuotationMarkPipe,
156
+ decorators: [{
157
+ type: Pipe,
158
+ args: [{
159
+ name: "escapeQuotationMark",
160
+ standalone: true
161
+ }]
162
+ }]
163
+ });
164
+ var GetFromObjectPipe = class GetFromObjectPipe {
165
+ transform(value, path) {
166
+ return getFromObject(value, path);
167
+ }
168
+ static {
169
+ this.ɵfac = i0.ɵɵngDeclareFactory({
170
+ minVersion: "12.0.0",
171
+ version: "22.3.0",
172
+ ngImport: i0,
173
+ type: GetFromObjectPipe,
174
+ deps: [],
175
+ target: i0.ɵɵFactoryTarget.Pipe
176
+ });
177
+ }
178
+ static {
179
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
180
+ minVersion: "14.0.0",
181
+ version: "22.3.0",
182
+ ngImport: i0,
183
+ type: GetFromObjectPipe,
184
+ isStandalone: true,
185
+ name: "getFromObject"
186
+ });
187
+ }
188
+ };
189
+ i0.ɵɵngDeclareClassMetadata({
190
+ minVersion: "12.0.0",
191
+ version: "22.3.0",
192
+ ngImport: i0,
193
+ type: GetFromObjectPipe,
194
+ decorators: [{
195
+ type: Pipe,
196
+ args: [{
197
+ name: "getFromObject",
198
+ standalone: true
199
+ }]
200
+ }]
201
+ });
202
+ var JoinPipe = class JoinPipe {
203
+ transform(list, separator) {
204
+ return list.join(separator);
205
+ }
206
+ static {
207
+ this.ɵfac = i0.ɵɵngDeclareFactory({
208
+ minVersion: "12.0.0",
209
+ version: "22.3.0",
210
+ ngImport: i0,
211
+ type: JoinPipe,
212
+ deps: [],
213
+ target: i0.ɵɵFactoryTarget.Pipe
214
+ });
215
+ }
216
+ static {
217
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
218
+ minVersion: "14.0.0",
219
+ version: "22.3.0",
220
+ ngImport: i0,
221
+ type: JoinPipe,
222
+ isStandalone: true,
223
+ name: "join"
224
+ });
225
+ }
226
+ };
227
+ i0.ɵɵngDeclareClassMetadata({
228
+ minVersion: "12.0.0",
229
+ version: "22.3.0",
230
+ ngImport: i0,
231
+ type: JoinPipe,
232
+ decorators: [{
233
+ type: Pipe,
234
+ args: [{
235
+ name: "join",
236
+ pure: true,
237
+ standalone: true
238
+ }]
239
+ }]
240
+ });
241
+ var LimitPipe = class LimitPipe {
242
+ transform(value, limit) {
243
+ return value.slice(0, limit);
244
+ }
245
+ static {
246
+ this.ɵfac = i0.ɵɵngDeclareFactory({
247
+ minVersion: "12.0.0",
248
+ version: "22.3.0",
249
+ ngImport: i0,
250
+ type: LimitPipe,
251
+ deps: [],
252
+ target: i0.ɵɵFactoryTarget.Pipe
253
+ });
254
+ }
255
+ static {
256
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
257
+ minVersion: "14.0.0",
258
+ version: "22.3.0",
259
+ ngImport: i0,
260
+ type: LimitPipe,
261
+ isStandalone: true,
262
+ name: "limit"
263
+ });
264
+ }
265
+ };
266
+ i0.ɵɵngDeclareClassMetadata({
267
+ minVersion: "12.0.0",
268
+ version: "22.3.0",
269
+ ngImport: i0,
270
+ type: LimitPipe,
271
+ decorators: [{
272
+ type: Pipe,
273
+ args: [{
274
+ name: "limit",
275
+ standalone: true
276
+ }]
277
+ }]
278
+ });
279
+ var SlicePipe = class SlicePipe {
280
+ transform(value, start, end) {
281
+ return value.slice(start, end);
282
+ }
283
+ static {
284
+ this.ɵfac = i0.ɵɵngDeclareFactory({
285
+ minVersion: "12.0.0",
286
+ version: "22.3.0",
287
+ ngImport: i0,
288
+ type: SlicePipe,
289
+ deps: [],
290
+ target: i0.ɵɵFactoryTarget.Pipe
291
+ });
292
+ }
293
+ static {
294
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
295
+ minVersion: "14.0.0",
296
+ version: "22.3.0",
297
+ ngImport: i0,
298
+ type: SlicePipe,
299
+ isStandalone: true,
300
+ name: "slice"
301
+ });
302
+ }
303
+ };
304
+ i0.ɵɵngDeclareClassMetadata({
305
+ minVersion: "12.0.0",
306
+ version: "22.3.0",
307
+ ngImport: i0,
308
+ type: SlicePipe,
309
+ decorators: [{
310
+ type: Pipe,
311
+ args: [{
312
+ name: "slice",
313
+ standalone: true
314
+ }]
315
+ }]
316
+ });
317
+ var ToDisplayPipe = class ToDisplayPipe {
318
+ constructor() {
319
+ this.jsonPipe = new JsonPipe();
320
+ }
321
+ transform(value, toDisplay = this.jsonPipe.transform) {
322
+ return toDisplay(value);
323
+ }
324
+ static {
325
+ this.ɵfac = i0.ɵɵngDeclareFactory({
326
+ minVersion: "12.0.0",
327
+ version: "22.3.0",
328
+ ngImport: i0,
329
+ type: ToDisplayPipe,
330
+ deps: [],
331
+ target: i0.ɵɵFactoryTarget.Pipe
332
+ });
333
+ }
334
+ static {
335
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
336
+ minVersion: "14.0.0",
337
+ version: "22.3.0",
338
+ ngImport: i0,
339
+ type: ToDisplayPipe,
340
+ isStandalone: true,
341
+ name: "toDisplay"
342
+ });
343
+ }
344
+ };
345
+ i0.ɵɵngDeclareClassMetadata({
346
+ minVersion: "12.0.0",
347
+ version: "22.3.0",
348
+ ngImport: i0,
349
+ type: ToDisplayPipe,
350
+ decorators: [{
351
+ type: Pipe,
352
+ args: [{
353
+ name: "toDisplay",
354
+ standalone: true
355
+ }]
356
+ }]
357
+ });
358
+ var TruncatePipe = class TruncatePipe {
359
+ transform(value, length = 64, ellipsis = "...") {
360
+ if (!value) return "";
361
+ if (value.length <= length) return value;
362
+ return value.substring(0, length) + ellipsis;
363
+ }
364
+ static {
365
+ this.ɵfac = i0.ɵɵngDeclareFactory({
366
+ minVersion: "12.0.0",
367
+ version: "22.3.0",
368
+ ngImport: i0,
369
+ type: TruncatePipe,
370
+ deps: [],
371
+ target: i0.ɵɵFactoryTarget.Pipe
372
+ });
373
+ }
374
+ static {
375
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
376
+ minVersion: "14.0.0",
377
+ version: "22.3.0",
378
+ ngImport: i0,
379
+ type: TruncatePipe,
380
+ isStandalone: true,
381
+ name: "truncate"
382
+ });
383
+ }
384
+ };
385
+ i0.ɵɵngDeclareClassMetadata({
386
+ minVersion: "12.0.0",
387
+ version: "22.3.0",
388
+ ngImport: i0,
389
+ type: TruncatePipe,
390
+ decorators: [{
391
+ type: Pipe,
392
+ args: [{
393
+ name: "truncate",
394
+ standalone: true
395
+ }]
396
+ }]
397
+ });
223
398
  export { DeleteIdentifierPipe, EscapeQuotationMarkPipe, GetFromObjectPipe, JoinPipe, LimitPipe, ReplacePipe, RxapCurrencyPipe, SlicePipe, ToDisplayPipe, TruncatePipe };
224
- //# sourceMappingURL=rxap-pipes.mjs.map
399
+
400
+ //# sourceMappingURL=rxap-pipes.mjs.map