import { KbqContentPanelModule } from '@koobiq/components/content-panel';@Component({ selector: 'kbq-content-panel' })
class KbqContentPanel {}@Component({
selector: 'kbq-content-panel-aside',
exportAs: 'kbqContentPanelAside'
})
class KbqContentPanelAside {}@Component({
selector: 'kbq-content-panel-body',
exportAs: 'kbqContentPanelBody'
})
class KbqContentPanelBody {}@Component({
selector: 'kbq-content-panel-container',
exportAs: 'kbqContentPanelContainer'
})
class KbqContentPanelContainer {
readonly openedInput = input<boolean | undefined>(undefined, {
alias: 'opened'
});
readonly disableClose = input<boolean>(false);
readonly disableCloseByEscape = input<boolean>(this.disableClose());
readonly disableResizer = input<boolean>(false);
readonly minWidth = input<number>(480);
readonly width = input<number>(640);
readonly maxWidth = input<number>(800);
readonly openedChange = output<boolean>();
readonly isOpened: Signal<boolean>;
get hasSavedState(): boolean;
saveState(): void;
clearSavedState(): void;
toggle(): void;
open(): void;
close(): void;
}openedboolean | undefined Whether the content panel is opened. Defaults to undefined.
Bound through the opened attribute. Unset it is undefined rather than false, which is how the
container tells an application that drives the panel from one that leaves it to remember its own
state. Read isOpened for the state itself.
disableCloseboolean Whether the content panel can not be closed by clicking on the close button or pressing the ESCAPE key.
Defaults to false.
disableCloseByEscapeboolean Whether the content panel can not be closed by pressing the ESCAPE key.
disableResizerboolean Whether the content panel resizer is disabled.
minWidthnumber Minimum width of the KbqContentPanel. Defaults to 480.
widthnumber Width of the KbqContentPanel. Defaults to 640.
maxWidthnumber Max width of the KbqContentPanel. Defaults to 800.
useStateSavingboolean Whether the component remembers its state across reloads and restores it on the next render.
Defaults to true, or to whatever KBQ_STATE_SAVING_ENABLED is provided as.
stateSavingKeystring The key the state is persisted under. While it is empty the key is derived from where the
component sits in the document, which moves when the surrounding markup is restructured — an id
on the component or any ancestor pins it just as well as this input does.
openedChangeboolean Emits event when the content panel opened state is changed.
isOpenedSignal<boolean> Whether the content panel is opened.
hasSavedStateboolean Whether state is currently persisted for this panel — restored on init, or written since.
Always false while useStateSaving is unset, and false again after clearSavedState().
saveState()void Persists whether the panel is open and how wide it is.
Called whenever the panel is opened, closed or resized.
clearSavedState()void Removes the state persisted for this panel.
Persistence itself stays on — the next change is written again. Unset useStateSaving to stop it.
toggle()void Toggles the content panel opened state.
open()void Opens the content panel.
close()void Closes the content panel.
@Component({ selector: 'kbq-content-panel-footer' })
class KbqContentPanelFooter {}@Component({ selector: 'kbq-content-panel-header' })
class KbqContentPanelHeader {}localeOverridesKbqPartialLocaleData | undefined Localized strings for this element and its subtree, keyed by locale section. Every key is optional at every depth.
@Directive({
selector: '[kbqContentPanelHeaderActions]',
exportAs: 'kbqContentPanelHeaderActions'
})
class KbqContentPanelHeaderActions {}@Directive({
selector: '[kbqContentPanelHeaderTitle]',
exportAs: 'kbqContentPanelHeaderTitle'
})
class KbqContentPanelHeaderTitle {}The persisted state of a content panel — whether it was open, and how wide it was dragged.
interface KbqContentPanelState {
opened: boolean;
width: number;
}