@ieeesa-npm/presentation 0.33.15 → 0.33.16

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.
@@ -0,0 +1,24 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * TimezoneFormatPipe formats a time zone string for display by replacing every
5
+ * underscore in the raw IANA identifier with a space. This is a display-only
6
+ * transform: for example `(UTC-04:00) America/New_York` is shown as
7
+ * `(UTC-04:00) America/New York`. The underlying stored value (which the backend
8
+ * expects with underscores) is never modified. Null, undefined, or empty inputs
9
+ * return an empty string so templates can apply their own fallback.
10
+ * @export
11
+ * @class TimezoneFormatPipe
12
+ * @implements {PipeTransform}
13
+ */
14
+ export declare class TimezoneFormatPipe implements PipeTransform {
15
+ /**
16
+ * Replaces underscores with spaces in a time zone string for display.
17
+ * @param {(string | null | undefined)} value - The raw time zone string, e.g. `(UTC-04:00) America/New_York`.
18
+ * @return {string} The display-friendly time zone with spaces instead of underscores, or an empty string.
19
+ * @memberof TimezoneFormatPipe
20
+ */
21
+ transform(value: string | null | undefined): string;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimezoneFormatPipe, never>;
23
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimezoneFormatPipe, "timezoneFormat", true>;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ieeesa-npm/presentation",
3
- "version": "0.33.15",
3
+ "version": "0.33.16",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
package/public-api.d.ts CHANGED
@@ -112,6 +112,7 @@ export * from './lib/services/form-utility.service';
112
112
  export * from './lib/services/file-upload.service';
113
113
  export * from './lib/services/break-point-observer.service';
114
114
  export * from './lib/pipes/safe.pipe';
115
+ export * from './lib/pipes/timezone-format.pipe';
115
116
  export * from './lib/presentation.module';
116
117
  export { SelectOption, CheckboxOption, IconButton, AlignType, ConfirmationModalData, MessagePart, InfoModalData } from '@ieeesa-npm/models';
117
118
  export * from './lib/components/stepper/stepper.component';