@forgeroute/ui 0.4.92 → 0.4.93

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgeroute/ui",
3
- "version": "0.4.92",
3
+ "version": "0.4.93",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
@@ -609,6 +609,8 @@ export declare class MapAreaFormComponent {
609
609
  protected readonly points: import("@angular/core").WritableSignal<LatLng[]>;
610
610
  /** Errors show after the first Apply (or Add point), not while the user is still typing the first value. */
611
611
  protected readonly touched: import("@angular/core").WritableSignal<boolean>;
612
+ /** True once the user worked with the point list (added or removed a point, or moved focus out of the list). */
613
+ protected readonly pointsTouched: import("@angular/core").WritableSignal<boolean>;
612
614
  protected readonly pointTouched: import("@angular/core").WritableSignal<boolean>;
613
615
  protected readonly announcement: import("@angular/core").WritableSignal<string>;
614
616
  private lastApplied;
@@ -634,6 +636,8 @@ export declare class MapAreaFormComponent {
634
636
  pointLng: string;
635
637
  points: string;
636
638
  }>;
639
+ /** The polygon message under the point list: only after a failed Apply AND the user worked with the list (added/removed a point or left it); a failed Apply on an untouched polygon (empty, or 1-2 points that arrived from outside) shows nothing there. */
640
+ protected readonly pointsMessage: import("@angular/core").Signal<string>;
637
641
  /**
638
642
  * Whether the SHAPE has a problem (what Apply cares about). The messages of the "add a point" fields belong to Add point: a half-typed point never blocks
639
643
  * Apply of a polygon that is already valid (it is simply not part of the area).
@@ -16,7 +16,7 @@ export declare class VideoPickerComponent implements UiFieldValidity {
16
16
  readonly label: import("@angular/core").InputSignal<string>;
17
17
  /** Shows the red required marker; the picker is then invalid until a video is picked. */
18
18
  readonly required: import("@angular/core").InputSignal<boolean>;
19
- /** Reveal the built-in "<label> is required." message now (e.g. after a failed Save click); otherwise it shows after the field was blurred. */
19
+ /** The host's "tried to submit" flag (e.g. after a failed Save click). It never reveals the "<label> is required." message on a field the user has not left; the message shows only after the field was blurred. */
20
20
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
21
21
  /** Emits whenever `invalid` flips. */
22
22
  readonly invalidChange: import("@angular/core").OutputEmitterRef<boolean>;
@@ -46,7 +46,7 @@ export declare class VideoPickerComponent implements UiFieldValidity {
46
46
  readonly invalid: import("@angular/core").Signal<boolean>;
47
47
  /** "<label> is required." while invalid ('' otherwise), shown or not. */
48
48
  readonly errorMessage: import("@angular/core").Signal<string>;
49
- /** `errorMessage` once the field was blurred or `showErrors` is set. */
49
+ /** `errorMessage` once the field was blurred (`showErrors` alone never reveals it). */
50
50
  readonly visibleError: import("@angular/core").Signal<string>;
51
51
  readonly activeDescendant: import("@angular/core").Signal<string | null>;
52
52
  /** Polite announcement for screen readers: searching, the result count, or no results (only while the list is open). */
@@ -123,7 +123,7 @@ export declare class TemplatePickerComponent {
123
123
  readonly label: import("@angular/core").Signal<string>;
124
124
  /** Shows the red required asterisk (same as the library inputs) — e.g. when a template must be picked to send. */
125
125
  readonly required: import("@angular/core").InputSignal<boolean>;
126
- /** Reveal the built-in "<label> is required." message now (e.g. after a failed Send click); otherwise it shows after the field was blurred. */
126
+ /** The host's "tried to submit" flag (e.g. after a failed Send click). It never reveals the "<label> is required." message on a field the user has not left; the message shows only after the field was blurred. */
127
127
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
128
128
  readonly templateSelected: import("@angular/core").OutputEmitterRef<TemplateItem>;
129
129
  readonly previewClick: import("@angular/core").OutputEmitterRef<{
@@ -146,7 +146,7 @@ export declare class TemplatePickerComponent {
146
146
  readonly invalid: import("@angular/core").Signal<boolean>;
147
147
  /** "<label> is required." while invalid ('' otherwise), shown or not. */
148
148
  readonly errorMessage: import("@angular/core").Signal<string>;
149
- /** `errorMessage` once the field was blurred or `showErrors` is set. */
149
+ /** `errorMessage` once the field was blurred (`showErrors` alone never reveals it). */
150
150
  readonly visibleError: import("@angular/core").Signal<string>;
151
151
  /** Polite announcement for screen readers: searching, the result count, or no results (only while the list is open). */
152
152
  readonly liveText: import("@angular/core").Signal<string>;
@@ -537,8 +537,9 @@ export declare const DOCUMENT_PURPOSE_OPTIONS: SelectOption[];
537
537
  *
538
538
  * Validity: provides `UiFieldValidity` (`invalid` / `errorMessage`) and the `invalidChange` output. Invalid when `required`
539
539
  * and nothing is chosen, when the purpose is "Send as attachment" and a chosen document has no stored file, or when a shown signing
540
- * setting is blank / out of range. Messages
541
- * show only while `showErrors` is true.
540
+ * setting is blank / out of range. The document message shows only after the user interacted with the document selection
541
+ * (picked or removed a document, changed the purpose, or left the search box); `showErrors` alone never reveals it, and
542
+ * switching it back to false clears the touched state. DOCUMENTED EXCEPTION (see docs/shared-utils.md): an envelope's fixed (locked) document list has nothing the user can touch, so there `showErrors` reveals its status notice (no documents / archived document), because it blocks Send.
542
543
  */
543
544
  export declare class DocumentSendOptionsComponent implements UiFieldValidity {
544
545
  protected readonly labels: UiLabelsService;
@@ -552,8 +553,12 @@ export declare class DocumentSendOptionsComponent implements UiFieldValidity {
552
553
  readonly label: import("@angular/core").Signal<string>;
553
554
  /** When true, at least one document must be chosen. The message forms leave it false: documents are optional there. */
554
555
  readonly required: import("@angular/core").InputSignal<boolean>;
555
- /** Shows the validation message (bind it to the host's "tried to submit" flag). */
556
+ /** The host's "tried to submit" flag. It never reveals the document message by itself: only the user's own interaction with the selection does; true -> false clears the touched state. */
556
557
  readonly showErrors: import("@angular/core").InputSignal<boolean>;
558
+ protected readonly _reveal: {
559
+ touched: import("@angular/core").WritableSignal<boolean>;
560
+ revealed: import("@angular/core").Signal<boolean>;
561
+ };
557
562
  readonly valueChange: import("@angular/core").OutputEmitterRef<DocumentSendValue>;
558
563
  readonly invalidChange: import("@angular/core").OutputEmitterRef<boolean>;
559
564
  /**
@@ -1102,6 +1107,9 @@ declare class SendEmailComponent implements OnInit {
1102
1107
  mode: 'compose' | 'template';
1103
1108
  subject: string;
1104
1109
  body: string;
1110
+ /** The user edited or left the Subject / Message: only then does the length message under the form show for that field (a prefilled over-long value shows nothing until then; picking a template counts as the user's action). */
1111
+ subjectTouched: boolean;
1112
+ bodyTouched: boolean;
1105
1113
  templateId: string | null;
1106
1114
  previewFormat: 'preview' | 'raw';
1107
1115
  showSendPreview: boolean;
@@ -1196,6 +1204,8 @@ declare class SendEmailComponent implements OnInit {
1196
1204
  get subjectLengthError(): string;
1197
1205
  /** The length problem shown under the form in every mode; compose mode shows the message one on the editor instead. */
1198
1206
  get sendLengthError(): string;
1207
+ /** `sendLengthError` limited to the fields the user has interacted with (subject first, then the body outside compose mode). */
1208
+ get sendLengthErrorShown(): string;
1199
1209
  get canSend(): boolean;
1200
1210
  get minScheduleTime(): string;
1201
1211
  /**