File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { BrnSheet } from './brn-sheet';
8
8
export class BrnSheetTrigger extends BrnDialogTrigger {
9
9
private readonly _sheet = inject ( BrnSheet , { optional : true } ) ;
10
10
11
+ /** Override the side from where the sheet appears for this trigger. */
11
12
public readonly side = input < 'top' | 'bottom' | 'left' | 'right' | undefined > ( undefined ) ;
12
13
13
14
override open ( ) {
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { BrnDialog } from '@spartan-ng/brain/dialog';
26
26
exportAs : 'brnSheet' ,
27
27
} )
28
28
export class BrnSheet extends BrnDialog {
29
+ /** Specifies the side of the screen where the sheet will appear. */
29
30
public readonly side = input < 'top' | 'bottom' | 'left' | 'right' > ( 'top' ) ;
30
31
public readonly sideState = linkedSignal ( ( ) => this . side ( ) ) ;
31
32
constructor ( ) {
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export const sheetVariants = cva(
57
57
export class HlmSheetContent {
58
58
private readonly _stateProvider = injectExposesStateProvider ( { host : true } ) ;
59
59
private readonly _sideProvider = injectExposedSideProvider ( { host : true } ) ;
60
- public state = this . _stateProvider . state ?? signal ( 'closed' ) ;
60
+ public readonly state = this . _stateProvider . state ?? signal ( 'closed' ) ;
61
61
private readonly _renderer = inject ( Renderer2 ) ;
62
62
private readonly _element = inject ( ElementRef ) ;
63
63
You can’t perform that action at this time.
0 commit comments