@ieeesa-npm/presentation 0.33.15 → 0.33.17

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.
@@ -87,6 +87,24 @@ export declare class MultiSelectAutocompleteComponent implements OnInit, FormFie
87
87
  * @memberof MultiSelectAutocompleteComponent
88
88
  */
89
89
  onChange(option: any): AutoCompleteOption;
90
+ /**
91
+ * Clears the typeahead search text from both the reactive form control and the
92
+ * native input element without touching the selected chips. Uses
93
+ * `emitEvent: false` so the valueChanges search stream is not re-triggered.
94
+ * @memberof MultiSelectAutocompleteComponent
95
+ */
96
+ private clearSearchInput;
97
+ /**
98
+ * Fires when focus leaves the search input (click outside / tab away). If text
99
+ * was typed but never committed as a chip (i.e. nothing was picked from the
100
+ * dropdown), clear it so stale search text is not left behind. Deferred with a
101
+ * short timeout so that if the blur was caused by clicking a dropdown option,
102
+ * onChange commits the selection first (and has already cleared the text),
103
+ * making this a no-op in that case. Clicking back into the same field does not
104
+ * blur it, so the text is preserved while the user is still editing.
105
+ * @memberof MultiSelectAutocompleteComponent
106
+ */
107
+ onInputBlur(): void;
90
108
  /**
91
109
  * Formats the selected options and emits the multiSelectAutoCompleteOptionSelected event.
92
110
  * @param {SelectOption[]} selectedOptions -Array of selected options.
@@ -84,6 +84,12 @@ export interface FieldConfig {
84
84
  canHideColorPicker?: boolean;
85
85
  canHideTextInput?: boolean;
86
86
  multiSelectAutoCompleteOptions?: AutoCompleteOption[];
87
+ /**
88
+ * When set, controls the reactive form update/validation strategy for this
89
+ * field (e.g. 'blur' so validation errors surface only after the user leaves
90
+ * the field, avoiding an error flash while interacting).
91
+ */
92
+ updateOn?: 'change' | 'blur' | 'submit';
87
93
  editorConfig?: EditorConfig;
88
94
  isAllowAnyFileType?: boolean;
89
95
  alignBrowsedFiles?: AlignBrowsedFiles;
@@ -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.17",
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';