@truenas/ui-components 0.2.2 → 0.2.3
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
package/src/styles/themes.css
CHANGED
|
@@ -603,6 +603,21 @@ tn-dialog-shell {
|
|
|
603
603
|
gap: 16px;
|
|
604
604
|
}
|
|
605
605
|
|
|
606
|
+
/* Hide a content section / actions footer that has nothing to show, so it
|
|
607
|
+
doesn't render as an empty bordered, padded bar.
|
|
608
|
+
- `:empty` covers dialogs that project nothing into the slot (the ng-content
|
|
609
|
+
comment anchor is ignored by `:empty`, but real text/elements are not).
|
|
610
|
+
- The `--hidden` modifier (driven by the [hideContent]/[hideActions] inputs)
|
|
611
|
+
covers slots that always project a wrapper element whose contents are
|
|
612
|
+
conditional, so the slot is never truly `:empty`.
|
|
613
|
+
Declared after the layout rules above so it wins on equal specificity. */
|
|
614
|
+
.tn-dialog__content:empty,
|
|
615
|
+
.tn-dialog__content--hidden,
|
|
616
|
+
.tn-dialog__actions:empty,
|
|
617
|
+
.tn-dialog__actions--hidden {
|
|
618
|
+
display: none;
|
|
619
|
+
}
|
|
620
|
+
|
|
606
621
|
/* Destructive variant */
|
|
607
622
|
.tn-dialog--destructive .tn-dialog__header {
|
|
608
623
|
border-bottom-color: var(--tn-lines, #e5e7eb);
|
|
@@ -6506,6 +6506,22 @@ declare class TnDialog {
|
|
|
6506
6506
|
declare class TnDialogShellComponent implements OnInit {
|
|
6507
6507
|
title: _angular_core.InputSignal<string>;
|
|
6508
6508
|
showFullscreenButton: _angular_core.InputSignal<boolean>;
|
|
6509
|
+
/**
|
|
6510
|
+
* Show the header close (X) button. Disable for dialogs that must not be
|
|
6511
|
+
* dismissed from the chrome — e.g. a running job that can only be minimized.
|
|
6512
|
+
*/
|
|
6513
|
+
showCloseButton: _angular_core.InputSignal<boolean>;
|
|
6514
|
+
/**
|
|
6515
|
+
* Hide the content section. Use when the body is projected through an
|
|
6516
|
+
* always-present wrapper whose contents are conditional, so the section is
|
|
6517
|
+
* never truly `:empty` (consumers cannot project from inside an `@if`, see
|
|
6518
|
+
* the dialog docs). An empty section with no wrapper is hidden automatically
|
|
6519
|
+
* via the `:empty` rule in the theme, so this input is only needed for the
|
|
6520
|
+
* wrapper case.
|
|
6521
|
+
*/
|
|
6522
|
+
hideContent: _angular_core.InputSignal<boolean>;
|
|
6523
|
+
/** Hide the actions footer. Same wrapper-case rationale as {@link hideContent}. */
|
|
6524
|
+
hideActions: _angular_core.InputSignal<boolean>;
|
|
6509
6525
|
/**
|
|
6510
6526
|
* Optional semantic base that scopes the shell's chrome buttons. The close
|
|
6511
6527
|
* and fullscreen buttons emit `button-close` / `button-fullscreen` by default,
|
|
@@ -6547,7 +6563,7 @@ declare class TnDialogShellComponent implements OnInit {
|
|
|
6547
6563
|
private enterFullscreen;
|
|
6548
6564
|
private exitFullscreen;
|
|
6549
6565
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TnDialogShellComponent, never>;
|
|
6550
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnDialogShellComponent, "tn-dialog-shell", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "showFullscreenButton": { "alias": "showFullscreenButton"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[tnDialogAction]"], true, never>;
|
|
6566
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnDialogShellComponent, "tn-dialog-shell", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "showFullscreenButton": { "alias": "showFullscreenButton"; "required": false; "isSignal": true; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; "isSignal": true; }; "hideContent": { "alias": "hideContent"; "required": false; "isSignal": true; }; "hideActions": { "alias": "hideActions"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; }, {}, never, ["*", "[tnDialogAction]"], true, never>;
|
|
6551
6567
|
}
|
|
6552
6568
|
|
|
6553
6569
|
/**
|