@thalassic/ui 0.15.3 → 0.16.0

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": "@thalassic/ui",
3
- "version": "0.15.3",
3
+ "version": "0.16.0",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^21.0.0",
@@ -119,6 +119,14 @@ interface ConnectedOverlayConfig {
119
119
  closeOnBackdropClick?: boolean;
120
120
  /** Close on an outside pointer event. Defaults to `true` when no backdrop is rendered. */
121
121
  closeOnOutsidePointer?: boolean;
122
+ /**
123
+ * Ignore the first outside `auxclick` after opening. Set when the overlay is
124
+ * opened by a right-click gesture (a context menu): that same gesture ends
125
+ * with an `auxclick`, which CDK would otherwise treat as an outside pointer
126
+ * event and use to dismiss the menu the instant the button is released.
127
+ * Defaults to `false`.
128
+ */
129
+ ignoreTrailingAuxClick?: boolean;
122
130
  /** Close when Escape is pressed. Defaults to `true`. */
123
131
  closeOnEscape?: boolean;
124
132
  /** Minimum width applied to the pane on every open (e.g. to match a trigger). */
@@ -148,12 +156,19 @@ declare class OverlayManager {
148
156
  private _overlayRef;
149
157
  private _config;
150
158
  private readonly _isOpen;
159
+ private _ignoreTrailingAuxClick;
151
160
  readonly isOpen: i0.Signal<boolean>;
152
161
  private readonly _teardown;
153
162
  open(config: ConnectedOverlayConfig): void;
154
163
  close(): void;
155
164
  private _buildPositionStrategy;
156
165
  private _wireDismissal;
166
+ /**
167
+ * Disposes a detached overlay once the panel's exit animation has finished, so
168
+ * the pane is not torn down while `animate.leave` is still playing. Falls back
169
+ * to a timeout when no animation runs (e.g. the `none` motion level).
170
+ */
171
+ private _disposeAfterAnimation;
157
172
  private _dispose;
158
173
  }
159
174
 
@@ -415,6 +430,10 @@ interface FormItemConfig {
415
430
  reserveErrorSpace: boolean;
416
431
  reserveLabelSpace: boolean;
417
432
  displayErrors: boolean;
433
+ /** Whether required fields are marked with a `*`. */
434
+ showRequiredMarker: boolean;
435
+ /** Text appended to non-required fields (e.g. `(optional)`). Not shown when omitted. */
436
+ optionalText?: string;
418
437
  errorMessages: ErrorMessageMap;
419
438
  }
420
439
  declare const DEFAULT_FORM_ITEM_CONFIG: FormItemConfig;
@@ -426,14 +445,17 @@ declare class FormItem {
426
445
  reserveErrorSpace: i0.InputSignal<boolean>;
427
446
  reserveLabelSpace: i0.InputSignal<boolean>;
428
447
  displayErrors: i0.InputSignal<boolean>;
448
+ showRequiredMarker: i0.InputSignal<boolean>;
449
+ optionalText: i0.InputSignal<string | undefined>;
429
450
  protected isInvalid: Signal<boolean>;
430
- protected isRequired: Signal<boolean>;
451
+ protected showRequired: Signal<boolean>;
452
+ protected showOptional: Signal<boolean>;
431
453
  protected hostClasses: Signal<string[]>;
432
454
  protected errorMessages: Signal<string[]>;
433
455
  protected firstErrorMessage: Signal<string | null>;
434
456
  private _getErrorMessages;
435
457
  static ɵfac: i0.ɵɵFactoryDeclaration<FormItem, never>;
436
- static ɵcmp: i0.ɵɵComponentDeclaration<FormItem, "tls-form-item", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "reserveErrorSpace": { "alias": "reserveErrorSpace"; "required": false; "isSignal": true; }; "reserveLabelSpace": { "alias": "reserveLabelSpace"; "required": false; "isSignal": true; }; "displayErrors": { "alias": "displayErrors"; "required": false; "isSignal": true; }; }, {}, ["control"], ["*"], true, never>;
458
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormItem, "tls-form-item", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "reserveErrorSpace": { "alias": "reserveErrorSpace"; "required": false; "isSignal": true; }; "reserveLabelSpace": { "alias": "reserveLabelSpace"; "required": false; "isSignal": true; }; "displayErrors": { "alias": "displayErrors"; "required": false; "isSignal": true; }; "showRequiredMarker": { "alias": "showRequiredMarker"; "required": false; "isSignal": true; }; "optionalText": { "alias": "optionalText"; "required": false; "isSignal": true; }; }, {}, ["control"], ["*"], true, never>;
437
459
  }
438
460
 
439
461
  declare const FORM_ITEM_CONFIG: InjectionToken<FormItemConfig>;