Skip to content

Commit 9f453b4

Browse files
committed
feat(sheet): add input comments and use readonly for property
1 parent 99c0ba7 commit 9f453b4

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

libs/brain/sheet/src/lib/brn-sheet-trigger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { BrnSheet } from './brn-sheet';
88
export class BrnSheetTrigger extends BrnDialogTrigger {
99
private readonly _sheet = inject(BrnSheet, { optional: true });
1010

11+
/** Override the side from where the sheet appears for this trigger. */
1112
public readonly side = input<'top' | 'bottom' | 'left' | 'right' | undefined>(undefined);
1213

1314
override open() {

libs/brain/sheet/src/lib/brn-sheet.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { BrnDialog } from '@spartan-ng/brain/dialog';
2626
exportAs: 'brnSheet',
2727
})
2828
export class BrnSheet extends BrnDialog {
29+
/** Specifies the side of the screen where the sheet will appear. */
2930
public readonly side = input<'top' | 'bottom' | 'left' | 'right'>('top');
3031
public readonly sideState = linkedSignal(() => this.side());
3132
constructor() {

libs/helm/sheet/src/lib/hlm-sheet-content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const sheetVariants = cva(
5757
export class HlmSheetContent {
5858
private readonly _stateProvider = injectExposesStateProvider({ host: true });
5959
private readonly _sideProvider = injectExposedSideProvider({ host: true });
60-
public state = this._stateProvider.state ?? signal('closed');
60+
public readonly state = this._stateProvider.state ?? signal('closed');
6161
private readonly _renderer = inject(Renderer2);
6262
private readonly _element = inject(ElementRef);
6363

0 commit comments

Comments
 (0)