@truenas/ui-components 0.1.61 → 0.1.62

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": "@truenas/ui-components",
3
- "version": "0.1.61",
3
+ "version": "0.1.62",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -6031,6 +6031,7 @@ declare class TnSidePanelHeaderActionDirective {
6031
6031
  declare class TnSidePanelComponent implements OnDestroy {
6032
6032
  private iconRegistry;
6033
6033
  private document;
6034
+ private destroyRef;
6034
6035
  private overlayRef;
6035
6036
  protected initialized: _angular_core.WritableSignal<boolean>;
6036
6037
  open: _angular_core.ModelSignal<boolean>;
@@ -6039,6 +6040,14 @@ declare class TnSidePanelComponent implements OnDestroy {
6039
6040
  hasBackdrop: _angular_core.InputSignal<boolean>;
6040
6041
  closeOnBackdropClick: _angular_core.InputSignal<boolean>;
6041
6042
  closeOnEscape: _angular_core.InputSignal<boolean>;
6043
+ /**
6044
+ * Optional gate evaluated before a user-initiated close (× button, backdrop click,
6045
+ * or Escape). Return an observable resolving to `false` to veto the close — e.g. to
6046
+ * prompt about unsaved changes and keep the panel open if the user cancels. The
6047
+ * observable is expected to emit once. Programmatic `open` changes made by the host
6048
+ * bypass this guard; when unset, the panel closes immediately.
6049
+ */
6050
+ closeGuard: _angular_core.InputSignal<(() => Observable<boolean>) | undefined>;
6042
6051
  /**
6043
6052
  * Test-id applied to the panel's root overlay element. Rendered under whichever attribute
6044
6053
  * name is configured via `TN_TEST_ATTR` (default `data-testid`).
@@ -6064,7 +6073,7 @@ declare class TnSidePanelComponent implements OnDestroy {
6064
6073
  private restoreFocus;
6065
6074
  private registerMdiIcons;
6066
6075
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TnSidePanelComponent, never>;
6067
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnSidePanelComponent, "tn-side-panel", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; "closeButtonTestId": { "alias": "closeButtonTestId"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "opened": "opened"; "closed": "closed"; }, ["actionContent"], ["[tnSidePanelHeaderAction]", "*", "[tnSidePanelAction]"], true, never>;
6076
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnSidePanelComponent, "tn-side-panel", never, { "open": { "alias": "open"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "closeGuard": { "alias": "closeGuard"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; "closeButtonTestId": { "alias": "closeButtonTestId"; "required": false; "isSignal": true; }; }, { "open": "openChange"; "opened": "opened"; "closed": "closed"; }, ["actionContent"], ["[tnSidePanelHeaderAction]", "*", "[tnSidePanelAction]"], true, never>;
6068
6077
  }
6069
6078
 
6070
6079
  interface SidePanelHarnessFilters extends BaseHarnessFilters {