@edsis/angular 22.0.44 → 22.0.45

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edsis-angular-block-themes.mjs","sources":["../../../library/angular/block/themes/app-preferences.config.ts","../../../library/angular/block/themes/app-preferences-panel.service.ts","../../../library/angular/block/themes/app-preference-setting-group.component.ts","../../../library/angular/block/themes/app-preferences-surface.component.ts","../../../library/angular/block/themes/app-preferences-surface.component.html","../../../library/angular/block/themes/app-preferences.component.ts","../../../library/angular/block/themes/app-preferences-trigger.directive.ts","../../../library/angular/block/themes/edsis-angular-block-themes.ts"],"sourcesContent":["import { InjectionToken, makeEnvironmentProviders } from '@angular/core';\nimport type { NavigationDockbarMode, NavigationVerticalType } from '@edsis/navigation/service';\nimport type { LayoutSurface, LayoutStyle, LayoutWidth } from '@edsis/theme/layout/types';\nimport type { ThemeMode, ThemeRadius, ThemeSpace, ThemeStyle } from '@edsis/theme/styles';\n\nexport interface AppPreferencesDefaults {\n readonly theme: {\n readonly mode: ThemeMode;\n readonly space: ThemeSpace;\n readonly radius: ThemeRadius;\n readonly style: ThemeStyle;\n };\n readonly layout: {\n readonly appearance: LayoutStyle;\n readonly surface: LayoutSurface;\n readonly width: LayoutWidth;\n };\n readonly navigation: {\n readonly type: NavigationVerticalType;\n readonly collapsed: boolean;\n readonly dockbarMode: NavigationDockbarMode;\n };\n}\n\nexport interface AppPreferencesConfig {\n readonly defaults?: AppPreferencesDefaults;\n}\n\nexport const APP_PREFERENCES_CONFIG = new InjectionToken<AppPreferencesConfig>(\n 'APP_PREFERENCES_CONFIG',\n);\n\nexport function provideAppPreferences(config: AppPreferencesConfig = {}) {\n return makeEnvironmentProviders([{ provide: APP_PREFERENCES_CONFIG, useValue: config }]);\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n Injector,\n Service,\n afterNextRender,\n computed,\n effect,\n inject,\n linkedSignal,\n} from '@angular/core';\nimport { LayoutService } from '@edsis/theme/layout/services';\n\nconst NAVIGATION_FOCUS_SELECTOR =\n '[data-navigation-id=\"main\"] a[href]:not([aria-disabled=\"true\"]), [data-navigation-id=\"main\"] button:not(:disabled):not([aria-disabled=\"true\"])';\nconst CONTENT_FOCUS_SELECTOR = '[data-block-shell-content][tabindex=\"-1\"]';\n\n@Service()\nexport class AppPreferencesPanelService {\n private readonly document = inject(DOCUMENT, { optional: true });\n private readonly injector = inject(Injector);\n private readonly layout = inject(LayoutService);\n private readonly openedState = linkedSignal({\n source: this.layout.type,\n computation: () => false,\n });\n private origin: HTMLElement | null = null;\n private previouslyOpened = false;\n private finalizationPending = false;\n\n readonly supported = computed(() => this.layout.type() === 'vertical');\n readonly opened = this.openedState.asReadonly();\n\n constructor() {\n effect(() => {\n const opened = this.openedState();\n\n if (this.previouslyOpened && !opened) {\n this.finalizeClose();\n }\n\n this.previouslyOpened = opened;\n });\n }\n\n open(trigger?: HTMLElement): boolean {\n if (!this.supported()) {\n return false;\n }\n\n if (!this.openedState() && !this.origin) {\n this.origin = trigger ?? this.activeElement();\n }\n\n this.openedState.set(true);\n return true;\n }\n\n close(): void {\n this.openedState.set(false);\n }\n\n toggle(trigger?: HTMLElement): boolean {\n if (this.openedState()) {\n this.close();\n return false;\n }\n\n return this.open(trigger);\n }\n\n private finalizeClose(): void {\n if (this.finalizationPending) {\n return;\n }\n\n this.finalizationPending = true;\n afterNextRender(\n () => {\n this.finalizationPending = false;\n this.restoreFocus();\n this.origin = null;\n },\n { injector: this.injector },\n );\n }\n\n private restoreFocus(): void {\n const document = this.document;\n if (!document) {\n return;\n }\n\n const candidates = [\n this.origin,\n ...Array.from(document.querySelectorAll<HTMLElement>(NAVIGATION_FOCUS_SELECTOR)),\n document.querySelector<HTMLElement>(CONTENT_FOCUS_SELECTOR),\n ];\n\n for (const candidate of candidates) {\n if (!this.canFocus(candidate)) {\n continue;\n }\n\n candidate.focus({ preventScroll: true });\n if (document.activeElement === candidate) {\n return;\n }\n }\n }\n\n private activeElement(): HTMLElement | null {\n const activeElement = this.document?.activeElement;\n return activeElement instanceof HTMLElement ? activeElement : null;\n }\n\n private canFocus(element: HTMLElement | null): element is HTMLElement {\n if (!element?.isConnected || element.matches(':disabled, [aria-disabled=\"true\"]')) {\n return false;\n }\n\n if (element.closest('[hidden], [inert], [aria-hidden=\"true\"]')) {\n return false;\n }\n\n const view = this.document?.defaultView;\n return !view || element.getClientRects().length > 0;\n }\n}\n","import { Component, input, output } from '@angular/core';\nimport { IconComponent } from '@edsis/component/icon';\nimport { ToggleGroupComponent, ToggleGroupItemDirective } from '@edsis/component/toggle-group';\nimport { TooltipDirective } from '@edsis/component/tooltip';\n\nexport interface AppPreferenceOption {\n readonly value: string;\n readonly label: string;\n readonly icon: string;\n}\n\n@Component({\n selector: 'app-preference-setting-group',\n imports: [IconComponent, ToggleGroupComponent, ToggleGroupItemDirective, TooltipDirective],\n template: `\n <section class=\"border-b border-border/65 px-3 py-2.5 last:border-b-0\">\n <div class=\"flex items-start justify-between gap-3\">\n <div class=\"min-w-0\">\n <h3 [id]=\"headingId()\" class=\"text-sm font-medium text-foreground\">{{ title() }}</h3>\n @if (description()) {\n <p class=\"mt-1 text-xs leading-4 text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n\n <span class=\"shrink-0 font-mono text-xs text-muted-foreground\">{{ activeLabel() }}</span>\n </div>\n\n <ToggleGroup\n type=\"single\"\n variant=\"segmented\"\n [value]=\"selected()\"\n [attr.aria-labelledby]=\"headingId()\"\n class=\"mt-2 grid w-full grid-flow-col auto-cols-fr gap-0\"\n (valueChange)=\"onValueChange($event)\"\n >\n @for (option of options(); track option.value) {\n <button\n ToggleGroupItem\n [value]=\"option.value\"\n [Tooltip]=\"option.label\"\n [attr.aria-label]=\"option.label\"\n [attr.title]=\"option.label\"\n class=\"min-h-8 min-w-0 px-1.5 py-1\"\n >\n <Icon [name]=\"option.icon\" [size]=\"16\" />\n </button>\n }\n </ToggleGroup>\n </section>\n `,\n})\nexport class AppPreferenceSettingGroupComponent {\n readonly title = input.required<string>();\n readonly description = input<string | null>(null);\n readonly activeLabel = input.required<string>();\n readonly options = input.required<readonly AppPreferenceOption[]>();\n readonly selected = input.required<string>();\n readonly headingId = input.required<string>();\n readonly optionSelected = output<string>();\n\n protected onValueChange(value: string | null): void {\n if (value !== null) {\n this.optionSelected.emit(value);\n }\n }\n}\n","import {\n Component,\n ElementRef,\n afterNextRender,\n computed,\n inject,\n output,\n signal,\n} from '@angular/core';\nimport { ButtonComponent } from '@edsis/component/button';\nimport { IconComponent } from '@edsis/component/icon';\nimport {\n NavigationService,\n type NavigationDockbarMode,\n type NavigationState,\n type NavigationVerticalType,\n} from '@edsis/navigation/service';\nimport {\n LayoutService,\n isUiLayoutSurface,\n isUiLayoutStyle,\n isUiLayoutWidth,\n} from '@edsis/theme/layout';\nimport {\n PageComponent,\n PageContentComponent,\n PageFooterComponent,\n PageHeaderComponent,\n} from '@edsis/theme/page';\nimport {\n THEME_MODES,\n THEME_RADII,\n THEME_SPACES,\n THEME_STYLES,\n ThemeModeService,\n ThemeRadiusService,\n ThemeSpaceService,\n ThemeStyleService,\n isThemeMode,\n isThemeRadius,\n isThemeSpace,\n isThemeStyle,\n} from '@edsis/theme/styles';\n\nimport { APP_PREFERENCES_CONFIG } from './app-preferences.config';\nimport {\n AppPreferenceSettingGroupComponent,\n type AppPreferenceOption,\n} from './app-preference-setting-group.component';\n\nconst PRIMARY_NAVIGATION_ID = 'main';\nconst VERTICAL_NAVIGATION_TYPES = ['sidebar', 'dockbar'] as const;\nconst DOCKBAR_MODES = ['default', 'sticky', 'drawer'] as const;\n\nconst THEME_STYLE_OPTIONS = {\n dinamic: { label: 'Dinamis', icon: 'auto_awesome' },\n rail: { label: 'Rail', icon: 'view_sidebar' },\n ala: { label: 'Ala', icon: 'palette' },\n aye: { label: 'Aye', icon: 'visibility' },\n} as const;\nconst THEME_MODE_OPTIONS = {\n light: { label: 'Terang', icon: 'light_mode' },\n dark: { label: 'Gelap', icon: 'dark_mode' },\n system: { label: 'Sistem', icon: 'contrast' },\n} as const;\nconst THEME_SPACE_OPTIONS = {\n normal: { label: 'Normal', icon: 'density_large' },\n compact: { label: 'Ringkas', icon: 'density_small' },\n} as const;\nconst THEME_RADIUS_OPTIONS = {\n none: { label: 'Tanpa radius', icon: 'crop_square' },\n small: { label: 'Kecil', icon: 'rounded_corner' },\n medium: { label: 'Sedang', icon: 'rounded_corner' },\n large: { label: 'Besar', icon: 'rounded_corner' },\n} as const;\nconst LAYOUT_APPEARANCE_OPTIONS = {\n base: { label: 'Dasar', icon: 'crop_square' },\n 'border-rail': { label: 'Border rail', icon: 'border_outer' },\n} as const;\nconst LAYOUT_SURFACE_OPTIONS = {\n flat: { label: 'Datar', icon: 'crop_16_9' },\n grid: { label: 'Grid', icon: 'grid_4x4' },\n} as const;\nconst LAYOUT_WIDTH_OPTIONS = {\n full: { label: 'Penuh', icon: 'width_full' },\n wide: { label: 'Lebar', icon: 'width_wide' },\n container: { label: 'Container', icon: 'width_normal' },\n fluid: { label: 'Fluid', icon: 'fit_screen' },\n} as const;\nconst NAVIGATION_TYPE_OPTIONS = {\n sidebar: { label: 'Sidebar', icon: 'left_panel_open' },\n dockbar: { label: 'Dockbar', icon: 'dock_to_left' },\n} as const;\nconst DOCKBAR_MODE_OPTIONS = {\n default: { label: 'Default', icon: 'vertical_align_center' },\n sticky: { label: 'Melekat', icon: 'push_pin' },\n drawer: { label: 'Drawer', icon: 'left_panel_open' },\n} as const;\n\nfunction toOptions(\n values: readonly string[],\n options: Record<string, { readonly label: string; readonly icon: string }>,\n): readonly AppPreferenceOption[] {\n return values.map((value) => ({\n value,\n label: options[value]?.label ?? value,\n icon: options[value]?.icon ?? 'tune',\n }));\n}\n\n@Component({\n selector: 'app-preferences-surface',\n imports: [\n AppPreferenceSettingGroupComponent,\n ButtonComponent,\n IconComponent,\n PageComponent,\n PageContentComponent,\n PageFooterComponent,\n PageHeaderComponent,\n ],\n host: {\n class: 'block h-full min-h-0 w-full',\n },\n templateUrl: './app-preferences-surface.component.html',\n})\nexport class AppPreferencesSurfaceComponent {\n private readonly config = inject(APP_PREFERENCES_CONFIG, { optional: true });\n private readonly themeMode = inject(ThemeModeService);\n private readonly themeSpace = inject(ThemeSpaceService);\n private readonly themeRadius = inject(ThemeRadiusService);\n private readonly themeStyle = inject(ThemeStyleService);\n private readonly layout = inject(LayoutService);\n private readonly navigation = inject(NavigationService);\n private readonly host = inject(ElementRef<HTMLElement>);\n\n readonly closeRequested = output<void>();\n protected readonly announcement = signal('');\n protected readonly defaults = this.config?.defaults ?? null;\n protected readonly hasDefaults = computed(() => this.defaults !== null);\n protected readonly mode = this.themeMode.mode;\n protected readonly space = this.themeSpace.space;\n protected readonly radius = this.themeRadius.radius;\n protected readonly style = this.themeStyle.style;\n protected readonly appearance = this.layout.appearance;\n protected readonly surface = this.layout.surface;\n protected readonly width = this.layout.width;\n protected readonly navigationState = computed<NavigationState>(\n () =>\n this.navigation.state(PRIMARY_NAVIGATION_ID)() ?? {\n id: PRIMARY_NAVIGATION_ID,\n orientation: 'vertical',\n type: 'sidebar',\n position: 'left',\n collapsed: false,\n dockbarMode: 'default',\n },\n );\n\n protected readonly styleOptions = toOptions(THEME_STYLES, THEME_STYLE_OPTIONS);\n protected readonly modeOptions = toOptions(THEME_MODES, THEME_MODE_OPTIONS);\n protected readonly spaceOptions = toOptions(THEME_SPACES, THEME_SPACE_OPTIONS);\n protected readonly radiusOptions = toOptions(THEME_RADII, THEME_RADIUS_OPTIONS);\n protected readonly appearanceOptions = toOptions(\n ['base', 'border-rail'],\n LAYOUT_APPEARANCE_OPTIONS,\n );\n protected readonly surfaceOptions = toOptions(['flat', 'grid'], LAYOUT_SURFACE_OPTIONS);\n protected readonly widthOptions = toOptions(\n ['full', 'wide', 'container', 'fluid'],\n LAYOUT_WIDTH_OPTIONS,\n );\n protected readonly navigationTypeOptions = toOptions(\n VERTICAL_NAVIGATION_TYPES,\n NAVIGATION_TYPE_OPTIONS,\n );\n protected readonly navigationModeOptions = computed<readonly AppPreferenceOption[]>(() =>\n this.navigationState().type === 'sidebar'\n ? [\n { value: 'expanded', label: 'Diperluas', icon: 'unfold_more' },\n { value: 'collapsed', label: 'Dipadatkan', icon: 'compress' },\n ]\n : toOptions(DOCKBAR_MODES, DOCKBAR_MODE_OPTIONS),\n );\n protected readonly navigationMode = computed(() => {\n const state = this.navigationState();\n return state.type === 'sidebar'\n ? state.collapsed\n ? 'collapsed'\n : 'expanded'\n : state.dockbarMode;\n });\n protected readonly navigationModeLabel = computed(() => {\n const state = this.navigationState();\n return state.type === 'sidebar'\n ? state.collapsed\n ? 'Dipadatkan'\n : 'Diperluas'\n : DOCKBAR_MODE_OPTIONS[state.dockbarMode].label;\n });\n\n constructor() {\n const host = this.host.nativeElement as HTMLElement;\n afterNextRender(() => {\n const closeButton = host.querySelector(\n '[data-app-preferences-close]',\n ) as HTMLButtonElement | null;\n closeButton?.focus({ preventScroll: true });\n });\n }\n\n protected selectStyle(value: string): void {\n if (isThemeStyle(value)) this.themeStyle.setStyle(value);\n }\n\n protected selectMode(value: string): void {\n if (isThemeMode(value)) this.themeMode.setMode(value);\n }\n\n protected selectSpace(value: string): void {\n if (isThemeSpace(value)) this.themeSpace.setSpace(value);\n }\n\n protected selectRadius(value: string): void {\n if (isThemeRadius(value)) this.themeRadius.setRadius(value);\n }\n\n protected selectAppearance(value: string): void {\n if (isUiLayoutStyle(value)) this.layout.setAppearance(value);\n }\n\n protected selectSurface(value: string): void {\n if (isUiLayoutSurface(value)) this.layout.setSurface(value);\n }\n\n protected selectWidth(value: string): void {\n if (isUiLayoutWidth(value)) this.layout.setWidth(value);\n }\n\n protected selectNavigationType(value: string): void {\n if ((VERTICAL_NAVIGATION_TYPES as readonly string[]).includes(value)) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { type: value as NavigationVerticalType });\n }\n }\n\n protected selectNavigationMode(value: string): void {\n const state = this.navigationState();\n\n if (state.type === 'sidebar' && (value === 'expanded' || value === 'collapsed')) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { collapsed: value === 'collapsed' });\n }\n\n if (state.type === 'dockbar' && (DOCKBAR_MODES as readonly string[]).includes(value)) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, {\n dockbarMode: value as NavigationDockbarMode,\n });\n }\n }\n\n protected resetToDefaults(): void {\n const defaults = this.defaults;\n if (!defaults) return;\n\n let changed = false;\n if (this.mode() !== defaults.theme.mode) {\n this.themeMode.setMode(defaults.theme.mode);\n changed = true;\n }\n if (this.space() !== defaults.theme.space) {\n this.themeSpace.setSpace(defaults.theme.space);\n changed = true;\n }\n if (this.radius() !== defaults.theme.radius) {\n this.themeRadius.setRadius(defaults.theme.radius);\n changed = true;\n }\n if (this.style() !== defaults.theme.style) {\n this.themeStyle.setStyle(defaults.theme.style);\n changed = true;\n }\n if (this.appearance() !== defaults.layout.appearance) {\n this.layout.setAppearance(defaults.layout.appearance);\n changed = true;\n }\n if (this.surface() !== defaults.layout.surface) {\n this.layout.setSurface(defaults.layout.surface);\n changed = true;\n }\n if (this.width() !== defaults.layout.width) {\n this.layout.setWidth(defaults.layout.width);\n changed = true;\n }\n\n const navigation = this.navigationState();\n if (\n navigation.type !== defaults.navigation.type ||\n navigation.collapsed !== defaults.navigation.collapsed ||\n navigation.dockbarMode !== defaults.navigation.dockbarMode\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, defaults.navigation);\n changed = true;\n }\n\n this.announce(\n changed ? 'Preferensi dikembalikan ke default.' : 'Preferensi sudah menggunakan default.',\n );\n }\n\n private announce(message: string): void {\n this.announcement.set('');\n queueMicrotask(() => this.announcement.set(message));\n }\n}\n","<Page variant=\"stacked\" height=\"fix\" scroll=\"content\" class=\"bg-background\">\n <PageHeader class=\"h-11 px-3 py-0\">\n <div class=\"flex h-full items-center justify-between gap-3\">\n <h2\n id=\"app-preferences-title\"\n class=\"min-w-0 truncate text-base font-semibold text-foreground\"\n >\n Preferensi aplikasi\n </h2>\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n size=\"icon\"\n class=\"h-11 w-11 shrink-0\"\n data-app-preferences-close\n aria-label=\"Tutup preferensi aplikasi\"\n (click)=\"closeRequested.emit()\"\n >\n <Icon name=\"close\" [size]=\"20\" />\n </button>\n </div>\n </PageHeader>\n\n <PageContent class=\"overscroll-contain bg-muted/20\">\n <div class=\"space-y-5 p-3\">\n <p class=\"text-xs leading-4 text-muted-foreground\">\n Sesuaikan tampilan dan navigasi aplikasi.\n </p>\n\n <section aria-labelledby=\"app-preferences-theme\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-theme\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Tema\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-style\"\n title=\"Gaya tema\"\n [activeLabel]=\"styleOptions.find((option) => option.value === style())?.label ?? style()\"\n [options]=\"styleOptions\"\n [selected]=\"style()\"\n (optionSelected)=\"selectStyle($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-mode\"\n title=\"Mode warna\"\n description=\"Sistem mengikuti preferensi perangkat.\"\n [activeLabel]=\"modeOptions.find((option) => option.value === mode())?.label ?? mode()\"\n [options]=\"modeOptions\"\n [selected]=\"mode()\"\n (optionSelected)=\"selectMode($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-space\"\n title=\"Kerapatan\"\n [activeLabel]=\"spaceOptions.find((option) => option.value === space())?.label ?? space()\"\n [options]=\"spaceOptions\"\n [selected]=\"space()\"\n (optionSelected)=\"selectSpace($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-radius\"\n title=\"Sudut\"\n [activeLabel]=\"\n radiusOptions.find((option) => option.value === radius())?.label ?? radius()\n \"\n [options]=\"radiusOptions\"\n [selected]=\"radius()\"\n (optionSelected)=\"selectRadius($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-layout\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-layout\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Layout\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-appearance\"\n title=\"Bingkai\"\n [activeLabel]=\"\n appearanceOptions.find((option) => option.value === appearance())?.label ?? appearance()\n \"\n [options]=\"appearanceOptions\"\n [selected]=\"appearance()\"\n (optionSelected)=\"selectAppearance($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-surface\"\n title=\"Latar\"\n [activeLabel]=\"\n surfaceOptions.find((option) => option.value === surface())?.label ?? surface()\n \"\n [options]=\"surfaceOptions\"\n [selected]=\"surface()\"\n (optionSelected)=\"selectSurface($event)\"\n />\n <section class=\"border-b border-border/65 px-3 py-3\">\n <div class=\"flex items-start justify-between gap-3\">\n <div>\n <h3 class=\"text-sm font-medium text-foreground\">Tipe layout</h3>\n <p class=\"mt-1 text-xs leading-4 text-muted-foreground\">Didukung pada fase ini.</p>\n </div>\n <span class=\"font-mono text-xs text-muted-foreground\">Vertikal</span>\n </div>\n </section>\n <app-preference-setting-group\n headingId=\"app-preferences-width\"\n title=\"Lebar konten\"\n [activeLabel]=\"widthOptions.find((option) => option.value === width())?.label ?? width()\"\n [options]=\"widthOptions\"\n [selected]=\"width()\"\n (optionSelected)=\"selectWidth($event)\"\n />\n </section>\n\n <section aria-labelledby=\"app-preferences-navigation\" class=\"space-y-2\">\n <h2\n id=\"app-preferences-navigation\"\n class=\"text-xs font-semibold tracking-wide text-muted-foreground\"\n >\n Navigasi\n </h2>\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-type\"\n title=\"Tipe navigation\"\n [activeLabel]=\"navigationState().type === 'sidebar' ? 'Sidebar' : 'Dockbar'\"\n [options]=\"navigationTypeOptions\"\n [selected]=\"navigationState().type\"\n (optionSelected)=\"selectNavigationType($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-mode\"\n title=\"Mode navigation\"\n [activeLabel]=\"navigationModeLabel()\"\n [options]=\"navigationModeOptions()\"\n [selected]=\"navigationMode()\"\n (optionSelected)=\"selectNavigationMode($event)\"\n />\n </section>\n </div>\n </PageContent>\n\n @if (hasDefaults()) {\n <PageFooter class=\"px-3 py-0\">\n <button\n type=\"button\"\n Button\n variant=\"ghost\"\n class=\"h-full w-full justify-start\"\n (click)=\"resetToDefaults()\"\n >\n <Icon name=\"restart_alt\" [size]=\"18\" />\n Kembalikan default\n </button>\n </PageFooter>\n }\n\n <p class=\"sr-only\" aria-live=\"polite\" aria-atomic=\"true\">{{ announcement() }}</p>\n</Page>\n","import { DOCUMENT } from '@angular/common';\nimport { Component, DestroyRef, computed, effect, inject, signal } from '@angular/core';\nimport { SheetComponent } from '@edsis/component/sheet';\nimport { NavigationService, type NavigationState } from '@edsis/navigation/service';\n\nimport { AppPreferencesPanelService } from './app-preferences-panel.service';\nimport { AppPreferencesSurfaceComponent } from './app-preferences-surface.component';\n\nconst PRIMARY_NAVIGATION_ID = 'main';\nconst NARROW_VIEWPORT_QUERY = '(max-width: 767.98px)';\n\n@Component({\n selector: 'app-preferences',\n imports: [AppPreferencesSurfaceComponent, SheetComponent],\n host: {\n '[class]': 'hostClass()',\n '[attr.role]': 'inline() ? \"region\" : null',\n '[attr.aria-labelledby]': 'inline() ? \"app-preferences-title\" : null',\n },\n template: `\n @if (inline()) {\n <section\n id=\"app-preferences-panel\"\n class=\"h-full min-h-0 w-full\"\n aria-labelledby=\"app-preferences-title\"\n >\n <app-preferences-surface (closeRequested)=\"preferences.close()\" />\n </section>\n } @else {\n <Sheet\n [open]=\"preferences.opened()\"\n side=\"left\"\n [showCloseButton]=\"false\"\n [restoreFocus]=\"false\"\n aria-labelledby=\"app-preferences-title\"\n class=\"!w-[min(19rem,calc(100dvw-2rem))] !max-w-none !gap-0 !p-0\"\n (openChange)=\"onSheetOpenChange($event)\"\n >\n <app-preferences-surface\n id=\"app-preferences-panel\"\n (closeRequested)=\"preferences.close()\"\n />\n </Sheet>\n }\n `,\n})\nexport class AppPreferencesComponent {\n private readonly document = inject(DOCUMENT, { optional: true });\n private readonly destroyRef = inject(DestroyRef);\n private readonly navigation = inject(NavigationService);\n protected readonly preferences = inject(AppPreferencesPanelService);\n private readonly narrowState = signal(this.mediaQuery()?.matches ?? false);\n private readonly navigationState = computed<NavigationState>(\n () =>\n this.navigation.state(PRIMARY_NAVIGATION_ID)() ?? {\n id: PRIMARY_NAVIGATION_ID,\n orientation: 'vertical',\n type: 'sidebar',\n position: 'left',\n collapsed: false,\n dockbarMode: 'default',\n },\n );\n\n protected readonly inline = computed(\n () =>\n !this.narrowState() &&\n this.navigationState().type === 'sidebar' &&\n !this.navigationState().collapsed,\n );\n protected readonly hostClass = computed(() =>\n this.inline() ? 'block h-full w-76 border-r border-border' : 'relative block h-full w-16',\n );\n\n constructor() {\n const mediaQuery = this.mediaQuery();\n const onChange = (event: MediaQueryListEvent) => this.narrowState.set(event.matches);\n\n mediaQuery?.addEventListener('change', onChange);\n effect((onCleanup) => {\n if (!this.inline() || !this.preferences.opened()) {\n return;\n }\n\n const onKeydown = (event: KeyboardEvent) => {\n if (event.key === 'Escape' && !event.defaultPrevented) {\n this.preferences.close();\n }\n };\n\n this.document?.addEventListener('keydown', onKeydown);\n onCleanup(() => this.document?.removeEventListener('keydown', onKeydown));\n });\n this.destroyRef.onDestroy(() => {\n mediaQuery?.removeEventListener('change', onChange);\n if (this.preferences.opened()) this.preferences.close();\n });\n }\n\n protected onSheetOpenChange(open: boolean): void {\n if (!open) this.preferences.close();\n }\n\n private mediaQuery(): MediaQueryList | null {\n return this.document?.defaultView?.matchMedia?.(NARROW_VIEWPORT_QUERY) ?? null;\n }\n}\n","import { Directive, ElementRef, computed, inject } from '@angular/core';\nimport { AppPreferencesPanelService } from './app-preferences-panel.service';\n\n@Directive({\n selector: '[appPreferencesTrigger]',\n host: {\n '[attr.aria-expanded]': 'preferences.opened()',\n '[attr.aria-controls]': 'preferences.opened() ? \"app-preferences-panel\" : null',\n '[attr.aria-disabled]': 'isButton() && !preferences.supported() ? \"true\" : null',\n '[attr.disabled]': 'isButton() && !preferences.supported() ? \"\" : null',\n '(click)': 'onClick($event)',\n },\n})\nexport class AppPreferencesTriggerDirective {\n private readonly elementRef = inject(ElementRef<HTMLElement>);\n protected readonly preferences = inject(AppPreferencesPanelService);\n protected readonly isButton = computed(\n () => this.elementRef.nativeElement.localName === 'button',\n );\n\n protected onClick(event: MouseEvent): void {\n if (this.preferences.open(this.elementRef.nativeElement)) {\n event.preventDefault();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["PRIMARY_NAVIGATION_ID","LayoutService"],"mappings":";;;;;;;;;;;;;;MA4Ba,sBAAsB,GAAG,IAAI,cAAc,CACtD,wBAAwB;AAGpB,SAAU,qBAAqB,CAAC,MAAA,GAA+B,EAAE,EAAA;AACrE,IAAA,OAAO,wBAAwB,CAAC,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;AAC1F;;ACtBA,MAAM,yBAAyB,GAC7B,gJAAgJ;AAClJ,MAAM,sBAAsB,GAAG,2CAA2C;MAG7D,0BAA0B,CAAA;IACpB,QAAQ,GAAG,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC/C,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,IAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;IAC9B,WAAW,GAAG,YAAY,CAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,aAAA,EAAA,8BAAA,EAAA,CAAA,EACzC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;AACxB,QAAA,WAAW,EAAE,MAAM,KAAK,GACxB;IACM,MAAM,GAAuB,IAAI;IACjC,gBAAgB,GAAG,KAAK;IACxB,mBAAmB,GAAG,KAAK;AAE1B,IAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,K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AA,iBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,sBAAA,EAAA,oBAAA,EAAA,yDAAA,EAAA,oBAAA,EAAA,0DAAA,EAAA,eAAA,EAAA,sDAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA9B,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAV1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,IAAI,EAAE;AACJ,wBAAA,sBAAsB,EAAE,sBAAsB;AAC9C,wBAAA,sBAAsB,EAAE,uDAAuD;AAC/E,wBAAA,sBAAsB,EAAE,wDAAwD;AAChF,wBAAA,iBAAiB,EAAE,oDAAoD;AACvE,wBAAA,SAAS,EAAE,iBAAiB;AAC7B,qBAAA;AACF,iBAAA;;;ACZD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@edsis/angular",
3
- "version": "22.0.44",
3
+ "version": "22.0.45",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=22.0.0",
6
6
  "@angular/core": ">=22.0.0",
7
7
  "@angular/forms": ">=22.0.0",
8
8
  "@angular/router": ">=22.0.0",
9
- "@edsis/navigation": "^22.0.44",
10
- "@edsis/sdk": "^22.0.44",
11
- "@edsis/theme": "^22.0.44",
12
- "@edsis/component": "^22.0.44",
9
+ "@edsis/navigation": "^22.0.45",
10
+ "@edsis/sdk": "^22.0.45",
11
+ "@edsis/theme": "^22.0.45",
12
+ "@edsis/component": "^22.0.45",
13
13
  "rxjs": ">=7.8.0"
14
14
  },
15
15
  "peerDependenciesMeta": {
@@ -57,6 +57,10 @@
57
57
  "types": "./types/edsis-angular-block-shell.d.ts",
58
58
  "default": "./fesm2022/edsis-angular-block-shell.mjs"
59
59
  },
60
+ "./block/themes": {
61
+ "types": "./types/edsis-angular-block-themes.d.ts",
62
+ "default": "./fesm2022/edsis-angular-block-themes.mjs"
63
+ },
60
64
  "./module/auth": {
61
65
  "types": "./types/edsis-angular-module-auth.d.ts",
62
66
  "default": "./fesm2022/edsis-angular-module-auth.mjs"
@@ -1,4 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
2
3
  import { LayoutService } from '@edsis/theme/layout';
3
4
  import { NavigationItem, NavigationHorizontalType, NavigationVerticalType, NavigationDockbarMode } from '@edsis/navigation';
4
5
 
@@ -9,6 +10,18 @@ type BlockShellWorkspaceLink = {
9
10
  readonly path: `/${string}`;
10
11
  };
11
12
 
13
+ declare class BlockShellNavigationPanelDirective {
14
+ readonly templateRef: TemplateRef<any>;
15
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BlockShellNavigationPanelDirective, never>;
16
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BlockShellNavigationPanelDirective, "ng-template[blockShellNavigationPanel]", never, {}, {}, never, never, true, never>;
17
+ }
18
+
19
+ declare class BlockShellNavigationFooterActionDirective {
20
+ readonly templateRef: TemplateRef<any>;
21
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<BlockShellNavigationFooterActionDirective, never>;
22
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BlockShellNavigationFooterActionDirective, "ng-template[blockShellNavigationFooterAction]", never, {}, {}, never, never, true, never>;
23
+ }
24
+
12
25
  declare class BlockShellComponent {
13
26
  readonly navigation: _angular_core.InputSignal<readonly NavigationItem[]>;
14
27
  readonly workspaceLinks: _angular_core.InputSignal<readonly BlockShellWorkspaceLink[]>;
@@ -30,9 +43,13 @@ declare class BlockShellComponent {
30
43
  readonly topAriaLabel: _angular_core.InputSignal<string>;
31
44
  readonly sideAriaLabel: _angular_core.InputSignal<string>;
32
45
  readonly contentAriaLabel: _angular_core.InputSignal<string>;
46
+ readonly navigationPanelOpen: _angular_core.InputSignal<boolean>;
33
47
  protected readonly layout: LayoutService;
48
+ protected readonly navigationPanel: _angular_core.Signal<BlockShellNavigationPanelDirective | undefined>;
49
+ protected readonly footerAction: _angular_core.Signal<BlockShellNavigationFooterActionDirective | undefined>;
50
+ protected readonly navigationPanelActive: _angular_core.Signal<boolean>;
34
51
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BlockShellComponent, never>;
35
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellComponent, "block-shell", never, { "navigation": { "alias": "navigation"; "required": true; "isSignal": true; }; "workspaceLinks": { "alias": "workspaceLinks"; "required": false; "isSignal": true; }; "navbarId": { "alias": "navbarId"; "required": false; "isSignal": true; }; "sidebarNavId": { "alias": "sidebarNavId"; "required": false; "isSignal": true; }; "shellName": { "alias": "shellName"; "required": true; "isSignal": true; }; "brandSubtitle": { "alias": "brandSubtitle"; "required": false; "isSignal": true; }; "logoText": { "alias": "logoText"; "required": false; "isSignal": true; }; "homePath": { "alias": "homePath"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": true; "isSignal": true; }; "userPosition": { "alias": "userPosition"; "required": true; "isSignal": true; }; "userPhotoUrl": { "alias": "userPhotoUrl"; "required": false; "isSignal": true; }; "topAriaLabel": { "alias": "topAriaLabel"; "required": false; "isSignal": true; }; "sideAriaLabel": { "alias": "sideAriaLabel"; "required": false; "isSignal": true; }; "contentAriaLabel": { "alias": "contentAriaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
52
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellComponent, "block-shell", never, { "navigation": { "alias": "navigation"; "required": true; "isSignal": true; }; "workspaceLinks": { "alias": "workspaceLinks"; "required": false; "isSignal": true; }; "navbarId": { "alias": "navbarId"; "required": false; "isSignal": true; }; "sidebarNavId": { "alias": "sidebarNavId"; "required": false; "isSignal": true; }; "shellName": { "alias": "shellName"; "required": true; "isSignal": true; }; "brandSubtitle": { "alias": "brandSubtitle"; "required": false; "isSignal": true; }; "logoText": { "alias": "logoText"; "required": false; "isSignal": true; }; "homePath": { "alias": "homePath"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": true; "isSignal": true; }; "userPosition": { "alias": "userPosition"; "required": true; "isSignal": true; }; "userPhotoUrl": { "alias": "userPhotoUrl"; "required": false; "isSignal": true; }; "topAriaLabel": { "alias": "topAriaLabel"; "required": false; "isSignal": true; }; "sideAriaLabel": { "alias": "sideAriaLabel"; "required": false; "isSignal": true; }; "contentAriaLabel": { "alias": "contentAriaLabel"; "required": false; "isSignal": true; }; "navigationPanelOpen": { "alias": "navigationPanelOpen"; "required": false; "isSignal": true; }; }, {}, ["navigationPanel", "footerAction"], never, true, never>;
36
53
  }
37
54
 
38
55
  declare const MAIN_SIDEBAR_NAV_ID = "main";
@@ -77,6 +94,7 @@ declare class BlockShellSidebarNavigationComponent {
77
94
  readonly userPosition: _angular_core.InputSignal<string>;
78
95
  readonly userPhotoUrl: _angular_core.InputSignal<string | undefined>;
79
96
  readonly ariaLabel: _angular_core.InputSignal<string>;
97
+ readonly footerActionTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
80
98
  /** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi vertikal. */
81
99
  readonly type: _angular_core.InputSignal<NavigationVerticalType>;
82
100
  protected readonly responsiveCollapsed: _angular_core.WritableSignal<boolean>;
@@ -88,7 +106,7 @@ declare class BlockShellSidebarNavigationComponent {
88
106
  constructor();
89
107
  private readResponsiveCollapsed;
90
108
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BlockShellSidebarNavigationComponent, never>;
91
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellSidebarNavigationComponent, "block-shell-sidebar-navigation", never, { "navigation": { "alias": "navigation"; "required": true; "isSignal": true; }; "workspaceLinks": { "alias": "workspaceLinks"; "required": false; "isSignal": true; }; "shellName": { "alias": "shellName"; "required": true; "isSignal": true; }; "brandSubtitle": { "alias": "brandSubtitle"; "required": false; "isSignal": true; }; "logoText": { "alias": "logoText"; "required": false; "isSignal": true; }; "homePath": { "alias": "homePath"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": true; "isSignal": true; }; "userPosition": { "alias": "userPosition"; "required": true; "isSignal": true; }; "userPhotoUrl": { "alias": "userPhotoUrl"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
109
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellSidebarNavigationComponent, "block-shell-sidebar-navigation", never, { "navigation": { "alias": "navigation"; "required": true; "isSignal": true; }; "workspaceLinks": { "alias": "workspaceLinks"; "required": false; "isSignal": true; }; "shellName": { "alias": "shellName"; "required": true; "isSignal": true; }; "brandSubtitle": { "alias": "brandSubtitle"; "required": false; "isSignal": true; }; "logoText": { "alias": "logoText"; "required": false; "isSignal": true; }; "homePath": { "alias": "homePath"; "required": false; "isSignal": true; }; "userName": { "alias": "userName"; "required": true; "isSignal": true; }; "userPosition": { "alias": "userPosition"; "required": true; "isSignal": true; }; "userPhotoUrl": { "alias": "userPhotoUrl"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "footerActionTemplate": { "alias": "footerActionTemplate"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
92
110
  }
93
111
 
94
112
  declare class BlockShellNavigationHeaderComponent {
@@ -113,9 +131,10 @@ declare class BlockShellNavigationFooterComponent {
113
131
  readonly photoUrl: _angular_core.InputSignal<string | undefined>;
114
132
  readonly collapsible: _angular_core.InputSignal<boolean>;
115
133
  readonly desktopOnly: _angular_core.InputSignal<boolean>;
134
+ readonly actionTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
116
135
  protected readonly resolvedInitials: _angular_core.Signal<string>;
117
136
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BlockShellNavigationFooterComponent, never>;
118
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellNavigationFooterComponent, "block-shell-navigation-footer", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": true; "isSignal": true; }; "initials": { "alias": "initials"; "required": false; "isSignal": true; }; "photoUrl": { "alias": "photoUrl"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "desktopOnly": { "alias": "desktopOnly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
137
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellNavigationFooterComponent, "block-shell-navigation-footer", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": true; "isSignal": true; }; "initials": { "alias": "initials"; "required": false; "isSignal": true; }; "photoUrl": { "alias": "photoUrl"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "desktopOnly": { "alias": "desktopOnly"; "required": false; "isSignal": true; }; "actionTemplate": { "alias": "actionTemplate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
119
138
  }
120
139
 
121
140
  declare class BlockShellNavigationAvatarComponent {
@@ -143,5 +162,5 @@ declare class BlockShellLogoComponent {
143
162
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<BlockShellLogoComponent, "block-shell-logo", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; "homePath": { "alias": "homePath"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
144
163
  }
145
164
 
146
- export { BlockShellComponent, BlockShellLogoComponent, BlockShellNavigationAvatarComponent, BlockShellNavigationFooterComponent, BlockShellNavigationHeaderComponent, BlockShellNavigationMetaComponent, BlockShellSidebarNavigationComponent, BlockShellTopNavigationComponent, MAIN_SIDEBAR_NAV_ID, workspaceNavbarId };
165
+ export { BlockShellComponent, BlockShellLogoComponent, BlockShellNavigationAvatarComponent, BlockShellNavigationFooterActionDirective, BlockShellNavigationFooterComponent, BlockShellNavigationHeaderComponent, BlockShellNavigationMetaComponent, BlockShellNavigationPanelDirective, BlockShellSidebarNavigationComponent, BlockShellTopNavigationComponent, MAIN_SIDEBAR_NAV_ID, workspaceNavbarId };
147
166
  export type { BlockShellWorkspaceLink };
@@ -0,0 +1,79 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
3
+ import { NavigationVerticalType, NavigationDockbarMode } from '@edsis/navigation/service';
4
+ import { LayoutStyle, LayoutSurface, LayoutWidth } from '@edsis/theme/layout/types';
5
+ import { ThemeMode, ThemeSpace, ThemeRadius, ThemeStyle } from '@edsis/theme/styles';
6
+
7
+ interface AppPreferencesDefaults {
8
+ readonly theme: {
9
+ readonly mode: ThemeMode;
10
+ readonly space: ThemeSpace;
11
+ readonly radius: ThemeRadius;
12
+ readonly style: ThemeStyle;
13
+ };
14
+ readonly layout: {
15
+ readonly appearance: LayoutStyle;
16
+ readonly surface: LayoutSurface;
17
+ readonly width: LayoutWidth;
18
+ };
19
+ readonly navigation: {
20
+ readonly type: NavigationVerticalType;
21
+ readonly collapsed: boolean;
22
+ readonly dockbarMode: NavigationDockbarMode;
23
+ };
24
+ }
25
+ interface AppPreferencesConfig {
26
+ readonly defaults?: AppPreferencesDefaults;
27
+ }
28
+ declare const APP_PREFERENCES_CONFIG: InjectionToken<AppPreferencesConfig>;
29
+ declare function provideAppPreferences(config?: AppPreferencesConfig): _angular_core.EnvironmentProviders;
30
+
31
+ declare class AppPreferencesPanelService {
32
+ private readonly document;
33
+ private readonly injector;
34
+ private readonly layout;
35
+ private readonly openedState;
36
+ private origin;
37
+ private previouslyOpened;
38
+ private finalizationPending;
39
+ readonly supported: _angular_core.Signal<boolean>;
40
+ readonly opened: _angular_core.Signal<boolean>;
41
+ constructor();
42
+ open(trigger?: HTMLElement): boolean;
43
+ close(): void;
44
+ toggle(trigger?: HTMLElement): boolean;
45
+ private finalizeClose;
46
+ private restoreFocus;
47
+ private activeElement;
48
+ private canFocus;
49
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppPreferencesPanelService, never>;
50
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<AppPreferencesPanelService>;
51
+ }
52
+
53
+ declare class AppPreferencesComponent {
54
+ private readonly document;
55
+ private readonly destroyRef;
56
+ private readonly navigation;
57
+ protected readonly preferences: AppPreferencesPanelService;
58
+ private readonly narrowState;
59
+ private readonly navigationState;
60
+ protected readonly inline: _angular_core.Signal<boolean>;
61
+ protected readonly hostClass: _angular_core.Signal<"block h-full w-76 border-r border-border" | "relative block h-full w-16">;
62
+ constructor();
63
+ protected onSheetOpenChange(open: boolean): void;
64
+ private mediaQuery;
65
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppPreferencesComponent, never>;
66
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppPreferencesComponent, "app-preferences", never, {}, {}, never, never, true, never>;
67
+ }
68
+
69
+ declare class AppPreferencesTriggerDirective {
70
+ private readonly elementRef;
71
+ protected readonly preferences: AppPreferencesPanelService;
72
+ protected readonly isButton: _angular_core.Signal<boolean>;
73
+ protected onClick(event: MouseEvent): void;
74
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppPreferencesTriggerDirective, never>;
75
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AppPreferencesTriggerDirective, "[appPreferencesTrigger]", never, {}, {}, never, never, true, never>;
76
+ }
77
+
78
+ export { APP_PREFERENCES_CONFIG, AppPreferencesComponent, AppPreferencesPanelService, AppPreferencesTriggerDirective, provideAppPreferences };
79
+ export type { AppPreferencesConfig, AppPreferencesDefaults };