@dereekb/dbx-components-mcp 13.10.6 → 13.10.8

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.
@@ -30,14 +30,9 @@
30
30
  }
31
31
  ],
32
32
  "example": "<span>{{ 'Hello World' | cutText:5 }}</span>\n<!-- Output: \"Hello...\" -->\n\n<span>{{ longText | cutText:20:'--' }}</span>\n<!-- Output: \"Some long text here--\" -->",
33
- "sourcePath": "lib/pipe/value/cuttext.pipe.ts",
34
33
  "skillRefs": [
35
34
  "dbx-value-pipes"
36
- ],
37
- "sourceLocation": {
38
- "file": "src/lib/pipe/value/cuttext.pipe.ts",
39
- "line": 24
40
- }
35
+ ]
41
36
  },
42
37
  {
43
38
  "slug": "dollar-amount",
@@ -58,14 +53,9 @@
58
53
  }
59
54
  ],
60
55
  "example": "<span>{{ 19.5 | dollarAmount }}</span>\n<!-- Output: \"$19.50\" -->\n\n<span>{{ nullValue | dollarAmount:'N/A' }}</span>\n<!-- Output: \"N/A\" -->",
61
- "sourcePath": "lib/pipe/value/dollar.pipe.ts",
62
56
  "skillRefs": [
63
57
  "dbx-value-pipes"
64
- ],
65
- "sourceLocation": {
66
- "file": "src/lib/pipe/value/dollar.pipe.ts",
67
- "line": 23
68
- }
58
+ ]
69
59
  },
70
60
  {
71
61
  "slug": "get-value",
@@ -86,17 +76,12 @@
86
76
  }
87
77
  ],
88
78
  "example": "<span>{{ myGetterOrValue | getValue }}</span>\n<span>{{ myGetterFn | getValue:someArg }}</span>",
89
- "sourcePath": "lib/pipe/value/getvalue.pipe.ts",
90
79
  "relatedSlugs": [
91
80
  "get-value-once"
92
81
  ],
93
82
  "skillRefs": [
94
83
  "dbx-value-pipes"
95
- ],
96
- "sourceLocation": {
97
- "file": "src/lib/pipe/value/getvalue.pipe.ts",
98
- "line": 23
99
- }
84
+ ]
100
85
  },
101
86
  {
102
87
  "slug": "get-value-once",
@@ -117,17 +102,12 @@
117
102
  }
118
103
  ],
119
104
  "example": "<span>{{ myGetterOrValue | getValueOnce }}</span>",
120
- "sourcePath": "lib/pipe/value/getvalue.pipe.ts",
121
105
  "relatedSlugs": [
122
106
  "get-value"
123
107
  ],
124
108
  "skillRefs": [
125
109
  "dbx-value-pipes"
126
- ],
127
- "sourceLocation": {
128
- "file": "src/lib/pipe/value/getvalue.pipe.ts",
129
- "line": 51
130
- }
110
+ ]
131
111
  },
132
112
  {
133
113
  "slug": "prettyjson",
@@ -147,12 +127,7 @@
147
127
  "required": false
148
128
  }
149
129
  ],
150
- "example": "<pre>{{ myObject | prettyjson }}</pre>\n<!-- Output: formatted JSON with 2-space indentation -->\n\n<pre>{{ myObject | prettyjson:4 }}</pre>\n<!-- Output: formatted JSON with 4-space indentation -->",
151
- "sourcePath": "lib/pipe/misc/prettyjson.pipe.ts",
152
- "sourceLocation": {
153
- "file": "src/lib/pipe/misc/prettyjson.pipe.ts",
154
- "line": 22
155
- }
130
+ "example": "<pre>{{ myObject | prettyjson }}</pre>\n<!-- Output: formatted JSON with 2-space indentation -->\n\n<pre>{{ myObject | prettyjson:4 }}</pre>\n<!-- Output: formatted JSON with 4-space indentation -->"
156
131
  },
157
132
  {
158
133
  "slug": "date-day-range",
@@ -173,15 +148,10 @@
173
148
  }
174
149
  ],
175
150
  "example": "<span>{{ dateRange | dateDayRange }}</span>\n<!-- Output: \"Jan 5 - Jan 8\" -->\n\n<span>{{ nullRange | dateDayRange:'No dates' }}</span>\n<!-- Output: \"No dates\" -->",
176
- "sourcePath": "lib/pipe/date/datedayrange.pipe.ts",
177
151
  "relatedSlugs": [
178
152
  "date-time-range",
179
153
  "date-day-time-range"
180
- ],
181
- "sourceLocation": {
182
- "file": "src/lib/pipe/date/datedayrange.pipe.ts",
183
- "line": 23
184
- }
154
+ ]
185
155
  },
186
156
  {
187
157
  "slug": "date-day-time-range",
@@ -202,15 +172,10 @@
202
172
  }
203
173
  ],
204
174
  "example": "<span>{{ dateRange | dateDayTimeRange }}</span>\n<!-- Output: \"Jan 5, 2:00 PM - Jan 8, 4:00 PM\" -->\n\n<span>{{ nullRange | dateDayTimeRange:'No dates' }}</span>\n<!-- Output: \"No dates\" -->",
205
- "sourcePath": "lib/pipe/date/datedaytimerange.pipe.ts",
206
175
  "relatedSlugs": [
207
176
  "date-time-range",
208
177
  "date-day-range"
209
- ],
210
- "sourceLocation": {
211
- "file": "src/lib/pipe/date/datedaytimerange.pipe.ts",
212
- "line": 23
213
- }
178
+ ]
214
179
  },
215
180
  {
216
181
  "slug": "date-distance",
@@ -237,16 +202,11 @@
237
202
  }
238
203
  ],
239
204
  "example": "<span>{{ someDate | dateDistance }}</span>\n<!-- Output: \"3 hours ago\" -->\n\n<span>{{ someDate | dateDistance:referenceDate }}</span>\n<!-- Output: \"2 days ago\" -->\n\n<span>{{ nullDate | dateDistance:null:'Unknown' }}</span>\n<!-- Output: \"Unknown\" -->",
240
- "sourcePath": "lib/pipe/date/datedistance.pipe.ts",
241
205
  "relatedSlugs": [
242
206
  "date-range-distance",
243
207
  "date-format-distance",
244
208
  "time-distance"
245
- ],
246
- "sourceLocation": {
247
- "file": "src/lib/pipe/date/datedistance.pipe.ts",
248
- "line": 27
249
- }
209
+ ]
250
210
  },
251
211
  {
252
212
  "slug": "date-format-distance",
@@ -273,15 +233,10 @@
273
233
  }
274
234
  ],
275
235
  "example": "<span>{{ someDate | dateFormatDistance:'MMM d, y' }}</span>\n<!-- Output: \"Jan 5, 2024 (3 days ago)\" -->\n\n<span>{{ someDate | dateFormatDistance:'short':true }}</span>\n<!-- Output: \"1/5/24, 2:30 PM (about 3 days ago)\" with includeSeconds enabled -->",
276
- "sourcePath": "lib/pipe/date/dateformatdistance.pipe.ts",
277
236
  "relatedSlugs": [
278
237
  "date-distance",
279
238
  "date-format-from-to"
280
- ],
281
- "sourceLocation": {
282
- "file": "src/lib/pipe/date/dateformatdistance.pipe.ts",
283
- "line": 25
284
- }
239
+ ]
285
240
  },
286
241
  {
287
242
  "slug": "date-format-from-to",
@@ -308,15 +263,10 @@
308
263
  }
309
264
  ],
310
265
  "example": "<span>{{ eventStart | dateFormatFromTo:'MMM d, h:mm a':90 }}</span>\n<!-- Output: \"Jan 5, 2:00 PM - 3:30 PM\" -->",
311
- "sourcePath": "lib/pipe/date/dateformatfromto.pipe.ts",
312
266
  "relatedSlugs": [
313
267
  "date-time-range",
314
268
  "date-format-distance"
315
- ],
316
- "sourceLocation": {
317
- "file": "src/lib/pipe/date/dateformatfromto.pipe.ts",
318
- "line": 23
319
- }
269
+ ]
320
270
  },
321
271
  {
322
272
  "slug": "date-range-distance",
@@ -337,14 +287,9 @@
337
287
  }
338
288
  ],
339
289
  "example": "<span>{{ someDate | dateRangeDistance }}</span>\n<!-- Output: \"3 hours ago\" -->\n\n<span>{{ nullDate | dateRangeDistance:'Unknown' }}</span>\n<!-- Output: \"Unknown\" -->",
340
- "sourcePath": "lib/pipe/date/daterangedistance.pipe.ts",
341
290
  "relatedSlugs": [
342
291
  "date-distance"
343
- ],
344
- "sourceLocation": {
345
- "file": "src/lib/pipe/date/daterangedistance.pipe.ts",
346
- "line": 24
347
- }
292
+ ]
348
293
  },
349
294
  {
350
295
  "slug": "date-time-range",
@@ -365,16 +310,11 @@
365
310
  }
366
311
  ],
367
312
  "example": "<span>{{ dateRange | dateTimeRange }}</span>\n<!-- Output: \"Jan 5, 2:00 PM - 4:00 PM\" -->\n\n<span>{{ nullRange | dateTimeRange:'TBD' }}</span>\n<!-- Output: \"TBD\" -->",
368
- "sourcePath": "lib/pipe/date/datetimerange.pipe.ts",
369
313
  "relatedSlugs": [
370
314
  "date-time-range-only",
371
315
  "date-day-range",
372
316
  "date-day-time-range"
373
- ],
374
- "sourceLocation": {
375
- "file": "src/lib/pipe/date/datetimerange.pipe.ts",
376
- "line": 23
377
- }
317
+ ]
378
318
  },
379
319
  {
380
320
  "slug": "date-time-range-only",
@@ -395,14 +335,9 @@
395
335
  }
396
336
  ],
397
337
  "example": "<span>{{ dateRange | dateTimeRangeOnly }}</span>\n<!-- Output: \"2:00 PM - 4:00 PM\" -->\n\n<span>{{ nullRange | dateTimeRangeOnly:'TBD' }}</span>\n<!-- Output: \"TBD\" -->",
398
- "sourcePath": "lib/pipe/date/datetimerangeonly.pipe.ts",
399
338
  "relatedSlugs": [
400
339
  "date-time-range"
401
- ],
402
- "sourceLocation": {
403
- "file": "src/lib/pipe/date/datetimerangeonly.pipe.ts",
404
- "line": 23
405
- }
340
+ ]
406
341
  },
407
342
  {
408
343
  "slug": "date-time-range-only-distance",
@@ -429,15 +364,10 @@
429
364
  }
430
365
  ],
431
366
  "example": "<span>{{ dateRange | dateTimeRangeOnlyDistance }}</span>\n<!-- Output: \"3 hours\" -->\n\n<span>{{ dateRange | dateTimeRangeOnlyDistance:config }}</span>\n<!-- Output varies based on config -->\n\n<span>{{ nullRange | dateTimeRangeOnlyDistance:null:'TBD' }}</span>\n<!-- Output: \"TBD\" -->",
432
- "sourcePath": "lib/pipe/date/datetimerangeonlydistance.pipe.ts",
433
367
  "relatedSlugs": [
434
368
  "date-time-range",
435
369
  "date-range-distance"
436
- ],
437
- "sourceLocation": {
438
- "file": "src/lib/pipe/date/datetimerangeonlydistance.pipe.ts",
439
- "line": 27
440
- }
370
+ ]
441
371
  },
442
372
  {
443
373
  "slug": "minutes-string",
@@ -451,14 +381,9 @@
451
381
  "description": "Converts a numeric minute value into a human-readable duration string with automatic unit scaling.\n\n- Values over 3600 minutes are displayed as days (e.g., \"~2 days\")\n- Values over 180 minutes are displayed as hours (e.g., \"~4 hours\")\n- Values at or below 180 minutes are displayed as minutes (e.g., \"90 minutes\")\n\nA `~` prefix is added when the value is rounded up. Returns `undefined` for `null` or non-numeric input.",
452
382
  "args": [],
453
383
  "example": "<span>{{ 90 | minutesString }}</span>\n<!-- Output: \"90 minutes\" -->\n\n<span>{{ 250 | minutesString }}</span>\n<!-- Output: \"~5 hours\" -->\n\n<span>{{ 5000 | minutesString }}</span>\n<!-- Output: \"~4 days\" -->",
454
- "sourcePath": "lib/pipe/date/minutesstring.pipe.ts",
455
384
  "relatedSlugs": [
456
385
  "to-minutes"
457
- ],
458
- "sourceLocation": {
459
- "file": "src/lib/pipe/date/minutesstring.pipe.ts",
460
- "line": 29
461
- }
386
+ ]
462
387
  },
463
388
  {
464
389
  "slug": "system-date-to-target-date",
@@ -479,15 +404,10 @@
479
404
  }
480
405
  ],
481
406
  "example": "<span>{{ systemDate | systemDateToTargetDate:'America/New_York' | date:'short' }}</span>\n<!-- Output: the date/time as it appears in the New York timezone -->",
482
- "sourcePath": "lib/pipe/date/systemdatetotargetdate.pipe.ts",
483
407
  "relatedSlugs": [
484
408
  "target-date-to-system-date",
485
409
  "timezone-abbreviation"
486
- ],
487
- "sourceLocation": {
488
- "file": "src/lib/pipe/date/systemdatetotargetdate.pipe.ts",
489
- "line": 21
490
- }
410
+ ]
491
411
  },
492
412
  {
493
413
  "slug": "target-date-to-system-date",
@@ -508,15 +428,10 @@
508
428
  }
509
429
  ],
510
430
  "example": "<span>{{ targetDate | targetDateToSystemDate:'America/New_York' | date:'short' }}</span>\n<!-- Output: the date/time converted back to the system timezone -->",
511
- "sourcePath": "lib/pipe/date/targetdatetosystemdate.pipe.ts",
512
431
  "relatedSlugs": [
513
432
  "system-date-to-target-date",
514
433
  "timezone-abbreviation"
515
- ],
516
- "sourceLocation": {
517
- "file": "src/lib/pipe/date/targetdatetosystemdate.pipe.ts",
518
- "line": 22
519
- }
434
+ ]
520
435
  },
521
436
  {
522
437
  "slug": "time-countdown-distance",
@@ -543,14 +458,9 @@
543
458
  }
544
459
  ],
545
460
  "example": "<span>{{ futureDate | timeCountdownDistance }}</span>\n<!-- Output: \"in 3 hours\" or \"Soon\" if past -->\n\n<span>{{ futureDate | timeCountdownDistance:'Imminent':'N/A' }}</span>\n<!-- Output: \"Imminent\" if past, \"N/A\" if null -->",
546
- "sourcePath": "lib/pipe/date/timedistance.pipe.ts",
547
461
  "relatedSlugs": [
548
462
  "time-distance"
549
- ],
550
- "sourceLocation": {
551
- "file": "src/lib/pipe/date/timedistance.pipe.ts",
552
- "line": 26
553
- }
463
+ ]
554
464
  },
555
465
  {
556
466
  "slug": "time-distance",
@@ -577,15 +487,10 @@
577
487
  }
578
488
  ],
579
489
  "example": "<span>{{ someDate | timeDistance }}</span>\n<!-- Output: \"3 hours ago\" -->\n\n<span>{{ someDate | timeDistance:referenceDate }}</span>\n<!-- Output: \"2 days ago\" (relative to referenceDate) -->\n\n<span>{{ nullDate | timeDistance:null:'Unknown' }}</span>\n<!-- Output: \"Unknown\" -->",
580
- "sourcePath": "lib/pipe/date/timedistance.pipe.ts",
581
490
  "relatedSlugs": [
582
491
  "date-distance",
583
492
  "time-countdown-distance"
584
- ],
585
- "sourceLocation": {
586
- "file": "src/lib/pipe/date/timedistance.pipe.ts",
587
- "line": 76
588
- }
493
+ ]
589
494
  },
590
495
  {
591
496
  "slug": "timezone-abbreviation",
@@ -606,15 +511,10 @@
606
511
  }
607
512
  ],
608
513
  "example": "<span>{{ 'America/New_York' | timezoneAbbreviation }}</span>\n<!-- Output: \"EST\" or \"EDT\" depending on the current date -->\n\n<span>{{ timezone | timezoneAbbreviation:referenceDate }}</span>\n<!-- Output: abbreviation for the timezone at the given reference date -->",
609
- "sourcePath": "lib/pipe/date/timezoneabbreviation.pipe.ts",
610
514
  "relatedSlugs": [
611
515
  "system-date-to-target-date",
612
516
  "target-date-to-system-date"
613
- ],
614
- "sourceLocation": {
615
- "file": "src/lib/pipe/date/timezoneabbreviation.pipe.ts",
616
- "line": 25
617
- }
517
+ ]
618
518
  },
619
519
  {
620
520
  "slug": "to-js-date",
@@ -628,15 +528,10 @@
628
528
  "description": "Converts a {@link DateOrDateString} value to a JavaScript {@link Date} object using {@link toJsDate}.\n\nReturns `undefined` if the input is `null`, `undefined`, or results in an invalid date.\nAlso provides a static `toJsDate()` method used by other pipes in this package.",
629
529
  "args": [],
630
530
  "example": "<span>{{ '2024-01-05T12:00:00Z' | toJsDate | date:'short' }}</span>\n<!-- Output: \"1/5/24, 12:00 PM\" -->\n\n<span>{{ dateOrString | toJsDate | date:'fullDate' }}</span>",
631
- "sourcePath": "lib/pipe/date/tojsdate.pipe.ts",
632
531
  "relatedSlugs": [
633
532
  "date-distance",
634
533
  "date-format-distance"
635
- ],
636
- "sourceLocation": {
637
- "file": "src/lib/pipe/date/tojsdate.pipe.ts",
638
- "line": 24
639
- }
534
+ ]
640
535
  },
641
536
  {
642
537
  "slug": "to-minutes",
@@ -650,14 +545,9 @@
650
545
  "description": "Converts a duration in milliseconds to whole minutes using {@link millisecondsToMinutes}.\n\nReturns the original value (0 or falsy) if the input is falsy.",
651
546
  "args": [],
652
547
  "example": "<span>{{ 180000 | toMinutes }}</span>\n<!-- Output: 3 -->\n\n<span>{{ durationMs | toMinutes }} min</span>\n<!-- Output: \"5 min\" -->",
653
- "sourcePath": "lib/pipe/date/tominutes.pipe.ts",
654
548
  "relatedSlugs": [
655
549
  "minutes-string"
656
- ],
657
- "sourceLocation": {
658
- "file": "src/lib/pipe/date/tominutes.pipe.ts",
659
- "line": 22
660
- }
550
+ ]
661
551
  },
662
552
  {
663
553
  "slug": "as-observable",
@@ -670,12 +560,7 @@
670
560
  "purity": "pure",
671
561
  "description": "Converts an {@link ObservableOrValueGetter} into an {@link Observable}.\n\nUseful for normalizing values that may be plain values, getter functions, or Observables\ninto a consistent Observable stream for use with the `async` pipe.",
672
562
  "args": [],
673
- "example": "<span>{{ valueOrGetter | asObservable | async }}</span>",
674
- "sourcePath": "lib/pipe/async/asobservable.pipe.ts",
675
- "sourceLocation": {
676
- "file": "src/lib/pipe/async/asobservable.pipe.ts",
677
- "line": 19
678
- }
563
+ "example": "<span>{{ valueOrGetter | asObservable | async }}</span>"
679
564
  }
680
565
  ]
681
566
  }