Skip to content

Commit 1d92f74

Browse files
committed
feat(sheet): add input comments and use readonly for property
1 parent 2c96742 commit 1d92f74

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

apps/app/src/app/pages/(components)/components/(sheet)/sheet.page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { RouteMeta } from '@analogjs/router';
22
import { Component, computed, inject } from '@angular/core';
33
import { PrimitiveSnippetsService } from '@spartan-ng/app/app/core/services/primitive-snippets.service';
4-
import { hlmH4, hlmCode, hlmP } from '@spartan-ng/helm/typography';
4+
import { hlmCode, hlmH4, hlmP } from '@spartan-ng/helm/typography';
55
import { Code } from '../../../../shared/code/code';
66
import { CodePreview } from '../../../../shared/code/code-preview';
77
import { MainSection } from '../../../../shared/layout/main-section';

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)