ngx-transforms 0.3.1 → 0.3.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ngx-transforms",
3
- "version": "0.3.1",
4
- "description": "A collection of 36 standalone Angular pipes for text, security, media, data, and array transformations.",
3
+ "version": "0.3.2",
4
+ "description": "90+ standalone, tree-shakable Angular pipes for text, arrays, math, objects, booleans, and more.",
5
5
  "keywords": [
6
6
  "angular",
7
7
  "pipes",
@@ -34,10 +34,11 @@
34
34
  "range"
35
35
  ],
36
36
  "license": "MIT",
37
+ "type": "module",
37
38
  "author": "Mofiro Jean <mofirojean@gmail.com>",
38
39
  "repository": {
39
40
  "type": "git",
40
- "url": "https://github.com/mofirojean/ngx-transforms"
41
+ "url": "git+https://github.com/mofirojean/ngx-transforms.git"
41
42
  },
42
43
  "homepage": "https://github.com/mofirojean/ngx-transforms#readme",
43
44
  "bugs": {
@@ -66,4 +67,4 @@
66
67
  "default": "./fesm2022/ngx-transforms.mjs"
67
68
  }
68
69
  }
69
- }
70
+ }
@@ -1338,7 +1338,7 @@ declare class QrCodePipe implements PipeTransform {
1338
1338
  }
1339
1339
 
1340
1340
  declare class CountPipe implements PipeTransform {
1341
- transform(value: any): number;
1341
+ transform(value: unknown): number;
1342
1342
  static ɵfac: i0.ɵɵFactoryDeclaration<CountPipe, never>;
1343
1343
  static ɵpipe: i0.ɵɵPipeDeclaration<CountPipe, "count", true>;
1344
1344
  }
@@ -1364,13 +1364,13 @@ type DeviceType = 'mobile' | 'tablet' | 'desktop' | 'unknown';
1364
1364
  * @returns {'mobile' | 'tablet' | 'desktop' | 'unknown'} - The detected device type.
1365
1365
  *
1366
1366
  * @example
1367
- * {{ '' | device }} // Outputs: 'mobile' (on a mobile device)
1368
- * <div *ngIf="'' | device === 'desktop'">Desktop-only content</div>
1367
+ * {{ '' | deviceType }} // Outputs: 'mobile' (on a mobile device)
1368
+ * <div *ngIf="'' | deviceType === 'desktop'">Desktop-only content</div>
1369
1369
  */
1370
1370
  declare class DeviceTypePipe implements PipeTransform {
1371
1371
  transform(value?: string): DeviceType;
1372
1372
  static ɵfac: i0.ɵɵFactoryDeclaration<DeviceTypePipe, never>;
1373
- static ɵpipe: i0.ɵɵPipeDeclaration<DeviceTypePipe, "device", true>;
1373
+ static ɵpipe: i0.ɵɵPipeDeclaration<DeviceTypePipe, "deviceType", true>;
1374
1374
  }
1375
1375
 
1376
1376
  /**
@@ -1430,13 +1430,13 @@ declare class TextToSpeechPipe implements PipeTransform {
1430
1430
  * @note Pure pipe - output won't automatically update as time passes.
1431
1431
  * Use signals or periodic change detection to re-trigger.
1432
1432
  * */
1433
- declare class TimeAgoPipePipe implements PipeTransform {
1433
+ declare class TimeAgoPipe implements PipeTransform {
1434
1434
  private static readonly THRESHOLDS;
1435
1435
  private cacheLocal;
1436
1436
  private rtf;
1437
1437
  transform(value: Date | number | string, local?: string): string;
1438
- static ɵfac: i0.ɵɵFactoryDeclaration<TimeAgoPipePipe, never>;
1439
- static ɵpipe: i0.ɵɵPipeDeclaration<TimeAgoPipePipe, "timeAgo", true>;
1438
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeAgoPipe, never>;
1439
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeAgoPipe, "timeAgo", true>;
1440
1440
  }
1441
1441
 
1442
1442
  /**
@@ -1539,10 +1539,10 @@ declare class ChunkPipe implements PipeTransform {
1539
1539
  * {{ [[1, [2, [3]]]] | flatten:1 }} // [1, 2, [3]]
1540
1540
  * {{ [['a', 'b'], ['c']] | flatten }} // ['a', 'b', 'c']
1541
1541
  */
1542
- declare class Flatten implements PipeTransform {
1542
+ declare class FlattenPipe implements PipeTransform {
1543
1543
  transform(value: unknown[], depth?: number): unknown[];
1544
- static ɵfac: i0.ɵɵFactoryDeclaration<Flatten, never>;
1545
- static ɵpipe: i0.ɵɵPipeDeclaration<Flatten, "flatten", true>;
1544
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlattenPipe, never>;
1545
+ static ɵpipe: i0.ɵɵPipeDeclaration<FlattenPipe, "flatten", true>;
1546
1546
  }
1547
1547
 
1548
1548
  /**
@@ -1578,7 +1578,7 @@ declare class GroupByPipe implements PipeTransform {
1578
1578
  * {{ ['a', 'b', 'c'] | initial }} // ['a', 'b']
1579
1579
  */
1580
1580
  declare class InitialPipe implements PipeTransform {
1581
- transform(value: unknown, n?: number): unknown[];
1581
+ transform(value: unknown[], n?: number): unknown[];
1582
1582
  static ɵfac: i0.ɵɵFactoryDeclaration<InitialPipe, never>;
1583
1583
  static ɵpipe: i0.ɵɵPipeDeclaration<InitialPipe, "initial", true>;
1584
1584
  }
@@ -2148,5 +2148,5 @@ declare class RadiansPipe implements PipeTransform {
2148
2148
 
2149
2149
  declare const ALL_PIPES: Provider[];
2150
2150
 
2151
- export { ALL_PIPES, AsciiArtPipe, AveragePipe, BarcodePipe, BytesPipe, CamelCasePipe, CapitalizePipe, CeilPipe, ChunkPipe, ColorConvertPipe, CountPipe, CreditCardMaskPipe, DecodeUriComponentPipe, DecodeUriPipe, DegreesPipe, DeviceTypePipe, DiffObjPipe, DiffPipe, EmailMaskPipe, EncodeUriComponentPipe, EncodeUriPipe, EveryPipe, FilterByPipe, Flatten, FloorPipe, GravatarPipe, GroupByPipe, HighlightPipe, HtmlEscapePipe, HtmlSanitizePipe, InitialPipe, InitialsPipe, IntersectionPipe, InvertByPipe, InvertPipe, IpAddressMaskPipe, IsArrayPipe, IsDefinedPipe, IsEmptyPipe, IsFunctionPipe, IsNullPipe, IsNumberPipe, IsObjectPipe, IsStringPipe, JsonPrettyPipe, KebabCasePipe, KeysPipe, LatinizePipe, LeftPadPipe, MatchPipe, MaxPipe, MinPipe, MorseCodePipe, NewlinesPipe, OmitPipe, OrderByPipe, PadPipe, PairsPipe, PercentagePipe, PickPipe, PluckPipe, PowPipe, QrCodePipe, RadiansPipe, RangePipe, RepeatPipe, ReplacePipe, ReversePipe, RightPadPipe, RoundPipe, SamplePipe, ShufflePipe, SlugifyPipe, SnakeCasePipe, SomePipe, SplitPipe, SqrtPipe, StripTagsPipe, SumPipe, TailPipe, TemplatePipe, TestPipe, TextToSpeechPipe, TimeAgoPipePipe, TitleCasePipe, TrimPipe, TruncatePipe, TruthifyPipe, UnionPipe, UniquePipe, UpperFirstPipe, ValuesPipe, WithoutPipe, WrapPipe };
2151
+ export { ALL_PIPES, AsciiArtPipe, AveragePipe, BarcodePipe, BytesPipe, CamelCasePipe, CapitalizePipe, CeilPipe, ChunkPipe, ColorConvertPipe, CountPipe, CreditCardMaskPipe, DecodeUriComponentPipe, DecodeUriPipe, DegreesPipe, DeviceTypePipe, DiffObjPipe, DiffPipe, EmailMaskPipe, EncodeUriComponentPipe, EncodeUriPipe, EveryPipe, FilterByPipe, FlattenPipe, FloorPipe, GravatarPipe, GroupByPipe, HighlightPipe, HtmlEscapePipe, HtmlSanitizePipe, InitialPipe, InitialsPipe, IntersectionPipe, InvertByPipe, InvertPipe, IpAddressMaskPipe, IsArrayPipe, IsDefinedPipe, IsEmptyPipe, IsFunctionPipe, IsNullPipe, IsNumberPipe, IsObjectPipe, IsStringPipe, JsonPrettyPipe, KebabCasePipe, KeysPipe, LatinizePipe, LeftPadPipe, MatchPipe, MaxPipe, MinPipe, MorseCodePipe, NewlinesPipe, OmitPipe, OrderByPipe, PadPipe, PairsPipe, PercentagePipe, PickPipe, PluckPipe, PowPipe, QrCodePipe, RadiansPipe, RangePipe, RepeatPipe, ReplacePipe, ReversePipe, RightPadPipe, RoundPipe, SamplePipe, ShufflePipe, SlugifyPipe, SnakeCasePipe, SomePipe, SplitPipe, SqrtPipe, StripTagsPipe, SumPipe, TailPipe, TemplatePipe, TestPipe, TextToSpeechPipe, TimeAgoPipe, TitleCasePipe, TrimPipe, TruncatePipe, TruthifyPipe, UnionPipe, UniquePipe, UpperFirstPipe, ValuesPipe, WithoutPipe, WrapPipe };
2152
2152
  export type { AsciiArtOptions, BarcodeElementType, BarcodeFormat, BarcodeOptions, ColorTargetType, DeviceType, QrCodeOptions };