@truenas/ui-components 0.1.61 → 0.1.63
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
|
@@ -2103,6 +2103,7 @@ declare class TnSlideToggleComponent implements AfterViewInit, OnDestroy, Contro
|
|
|
2103
2103
|
declare class TnSlideToggleHarness extends ComponentHarness {
|
|
2104
2104
|
static hostSelector: string;
|
|
2105
2105
|
private _input;
|
|
2106
|
+
private _labelEl;
|
|
2106
2107
|
private _label;
|
|
2107
2108
|
/**
|
|
2108
2109
|
* Gets a `HarnessPredicate` that can be used to search for a slide toggle
|
|
@@ -6031,6 +6032,7 @@ declare class TnSidePanelHeaderActionDirective {
|
|
|
6031
6032
|
declare class TnSidePanelComponent implements OnDestroy {
|
|
6032
6033
|
private iconRegistry;
|
|
6033
6034
|
private document;
|
|
6035
|
+
private destroyRef;
|
|
6034
6036
|
private overlayRef;
|
|
6035
6037
|
protected initialized: _angular_core.WritableSignal<boolean>;
|
|
6036
6038
|
open: _angular_core.ModelSignal<boolean>;
|
|
@@ -6039,6 +6041,14 @@ declare class TnSidePanelComponent implements OnDestroy {
|
|
|
6039
6041
|
hasBackdrop: _angular_core.InputSignal<boolean>;
|
|
6040
6042
|
closeOnBackdropClick: _angular_core.InputSignal<boolean>;
|
|
6041
6043
|
closeOnEscape: _angular_core.InputSignal<boolean>;
|
|
6044
|
+
/**
|
|
6045
|
+
* Optional gate evaluated before a user-initiated close (× button, backdrop click,
|
|
6046
|
+
* or Escape). Return an observable resolving to `false` to veto the close — e.g. to
|
|
6047
|
+
* prompt about unsaved changes and keep the panel open if the user cancels. The
|
|
6048
|
+
* observable is expected to emit once. Programmatic `open` changes made by the host
|
|
6049
|
+
* bypass this guard; when unset, the panel closes immediately.
|
|
6050
|
+
*/
|
|
6051
|
+
closeGuard: _angular_core.InputSignal<(() => Observable<boolean>) | undefined>;
|
|
6042
6052
|
/**
|
|
6043
6053
|
* Test-id applied to the panel's root overlay element. Rendered under whichever attribute
|
|
6044
6054
|
* name is configured via `TN_TEST_ATTR` (default `data-testid`).
|
|
@@ -6064,7 +6074,7 @@ declare class TnSidePanelComponent implements OnDestroy {
|
|
|
6064
6074
|
private restoreFocus;
|
|
6065
6075
|
private registerMdiIcons;
|
|
6066
6076
|
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>;
|
|
6077
|
+
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
6078
|
}
|
|
6069
6079
|
|
|
6070
6080
|
interface SidePanelHarnessFilters extends BaseHarnessFilters {
|