@edsis/angular 22.0.90 → 22.0.93

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.
@@ -1 +1 @@
1
- {"version":3,"file":"edsis-angular-block-themes.mjs","sources":["../../../library/angular/block/themes/theme-appearance-preset.service.ts","../../../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/runtime-theme-device.provider.ts","../../../library/angular/block/themes/edsis-angular-block-themes.ts"],"sourcesContent":["import { effect, inject, Service } from '@angular/core';\nimport {\n NavigationService,\n type NavigationDockbarMode,\n type NavigationOrientation,\n type NavigationPosition,\n type NavigationState,\n type NavigationType,\n} from '@edsis/navigation/service';\nimport {\n LayoutService,\n isUiLayoutSurface,\n isUiLayoutType,\n isUiLayoutWidth,\n} from '@edsis/theme/layout';\nimport {\n DEFAULT_THEME_BRAND,\n DEFAULT_THEME_COLOR,\n DEFAULT_THEME_MODE,\n ThemeBrandService,\n ThemeColorService,\n ThemeModeService,\n ThemeRadiusService,\n ThemeSpaceService,\n ThemeAppearanceService,\n isThemeBrand,\n isThemeColor,\n isThemeMode,\n isThemeRadius,\n isThemeSpace,\n themeAppearancePresetEntry,\n type ThemeAppearance,\n} from '@edsis/theme/styles';\nimport {\n LAYOUT_DEFAULT_SURFACE,\n LAYOUT_DEFAULT_TYPE,\n LAYOUT_DEFAULT_WIDTH,\n} from '@edsis/theme/layout/types';\n\nimport { APP_PREFERENCES_CONFIG } from './app-preferences.config';\n\nconst PRIMARY_NAVIGATION_ID = 'main';\nconst NAVIGATION_TYPES = ['sidebar', 'dockbar', 'navbar', 'flyout'] as const;\nconst NAVIGATION_ORIENTATIONS = ['vertical', 'horizontal'] as const;\nconst NAVIGATION_POSITIONS = ['left', 'right', 'top', 'bottom'] as const;\nconst NAVIGATION_DOCKBAR_MODES = ['default', 'drawer', 'sticky'] as const;\n\n@Service()\nexport class ThemeAppearancePresetService {\n private readonly config = inject(APP_PREFERENCES_CONFIG, { optional: true });\n private readonly themeAppearance = inject(ThemeAppearanceService);\n private readonly themeMode = inject(ThemeModeService);\n private readonly themeSpace = inject(ThemeSpaceService);\n private readonly themeRadius = inject(ThemeRadiusService);\n private readonly themeColor = inject(ThemeColorService);\n private readonly themeBrand = inject(ThemeBrandService);\n private readonly layout = inject(LayoutService);\n private readonly navigation = inject(NavigationService);\n\n constructor() {\n let previousAppearance = this.themeAppearance.appearance();\n\n if (this.themeAppearance.hasStoredAppearance()) {\n this.enforceLockedValues(previousAppearance);\n } else {\n this.applyPreset(previousAppearance);\n }\n\n effect(() => {\n const appearance = this.themeAppearance.appearance();\n\n if (appearance === previousAppearance) return;\n\n previousAppearance = appearance;\n this.applyPreset(appearance);\n });\n\n effect(() => this.enforceLockedValues(this.themeAppearance.appearance()));\n }\n\n private applyPreset(themeAppearance: ThemeAppearance): void {\n this.applyThemeValues(themeAppearance);\n this.applyLayoutValues(themeAppearance);\n this.applyNavigationValues(themeAppearance);\n }\n\n private applyThemeValues(themeAppearance: ThemeAppearance): void {\n const mode = this.valueFor(themeAppearance, 'theme-mode', this.defaultMode());\n if (isThemeMode(mode)) this.themeMode.setMode(mode);\n\n const space = this.valueFor(themeAppearance, 'theme-space', this.defaultSpace());\n if (isThemeSpace(space)) this.themeSpace.setSpace(space);\n\n const radius = this.valueFor(themeAppearance, 'theme-radius', this.defaultRadius());\n if (isThemeRadius(radius)) this.themeRadius.setRadius(radius);\n\n const color = this.valueFor(themeAppearance, 'theme-color', this.defaultColor());\n if (isThemeColor(color)) this.themeColor.setColor(color);\n\n const brand = this.valueFor(themeAppearance, 'theme-brand', this.defaultBrand());\n if (isThemeBrand(brand)) this.themeBrand.setBrand(brand);\n }\n\n private applyLayoutValues(themeAppearance: ThemeAppearance): void {\n const type = this.valueFor(themeAppearance, 'layout-type', this.defaultLayoutType());\n if (isUiLayoutType(type)) this.layout.setType(type);\n\n const width = this.valueFor(themeAppearance, 'layout-width', this.defaultLayoutWidth());\n if (isUiLayoutWidth(width)) this.layout.setWidth(width);\n\n const surface = this.valueFor(themeAppearance, 'layout-surface', this.defaultLayoutSurface());\n if (isUiLayoutSurface(surface)) this.layout.setSurface(surface);\n }\n\n private applyNavigationValues(themeAppearance: ThemeAppearance): void {\n const orientation = this.valueFor(\n themeAppearance,\n 'nav-orientation',\n this.defaultNavigationOrientation(),\n );\n const type = this.valueFor(themeAppearance, 'nav-type', this.defaultNavigationType());\n const position = this.valueFor(\n themeAppearance,\n 'nav-position',\n this.defaultNavigationPosition(),\n );\n const typeMode = this.valueFor(themeAppearance, 'nav-type-mode', 'default');\n\n this.navigation.update(PRIMARY_NAVIGATION_ID, {\n orientation: isNavigationOrientation(orientation)\n ? orientation\n : this.defaultNavigationOrientation(),\n type: isNavigationType(type) ? type : this.defaultNavigationType(),\n position: isNavigationPosition(position) ? position : this.defaultNavigationPosition(),\n collapsed:\n typeMode === 'collapsed'\n ? true\n : typeMode === 'expanded'\n ? false\n : this.defaultNavigationCollapsed(),\n dockbarMode: isNavigationDockbarMode(typeMode)\n ? typeMode\n : this.defaultNavigationDockbarMode(),\n });\n }\n\n private enforceLockedValues(themeAppearance: ThemeAppearance): void {\n const mode = this.lockedValueFor(themeAppearance, 'theme-mode');\n if (isThemeMode(mode) && this.themeMode.mode() !== mode) this.themeMode.setMode(mode);\n\n const space = this.lockedValueFor(themeAppearance, 'theme-space');\n if (isThemeSpace(space) && this.themeSpace.space() !== space) this.themeSpace.setSpace(space);\n\n const radius = this.lockedValueFor(themeAppearance, 'theme-radius');\n if (isThemeRadius(radius) && this.themeRadius.radius() !== radius)\n this.themeRadius.setRadius(radius);\n\n const color = this.lockedValueFor(themeAppearance, 'theme-color');\n if (isThemeColor(color) && this.themeColor.color() !== color) this.themeColor.setColor(color);\n\n const brand = this.lockedValueFor(themeAppearance, 'theme-brand');\n if (isThemeBrand(brand) && this.themeBrand.brand() !== brand) this.themeBrand.setBrand(brand);\n\n const type = this.lockedValueFor(themeAppearance, 'layout-type');\n if (isUiLayoutType(type) && this.layout.type() !== type) this.layout.setType(type);\n\n const width = this.lockedValueFor(themeAppearance, 'layout-width');\n if (isUiLayoutWidth(width) && this.layout.width() !== width) this.layout.setWidth(width);\n\n const surface = this.lockedValueFor(themeAppearance, 'layout-surface');\n if (isUiLayoutSurface(surface) && this.layout.surface() !== surface)\n this.layout.setSurface(surface);\n\n const orientation = this.lockedValueFor(themeAppearance, 'nav-orientation');\n const navigationType = this.lockedValueFor(themeAppearance, 'nav-type');\n const position = this.lockedValueFor(themeAppearance, 'nav-position');\n const typeMode = this.lockedValueFor(themeAppearance, 'nav-type-mode');\n const currentNavigationState = this.navigation.currentState(PRIMARY_NAVIGATION_ID);\n const navigationState: NavigationState = currentNavigationState ?? {\n id: PRIMARY_NAVIGATION_ID,\n orientation: 'vertical',\n type: 'sidebar',\n position: 'left',\n collapsed: false,\n dockbarMode: 'default',\n };\n const navigationUpdate = {\n ...(isNavigationOrientation(orientation) && navigationState.orientation !== orientation\n ? { orientation }\n : {}),\n ...(isNavigationType(navigationType) && navigationState.type !== navigationType\n ? { type: navigationType }\n : {}),\n ...(isNavigationPosition(position) && navigationState.position !== position\n ? { position }\n : {}),\n ...(typeMode === 'collapsed' && !navigationState.collapsed\n ? { collapsed: true }\n : typeMode === 'expanded' && navigationState.collapsed\n ? { collapsed: false }\n : typeMode === 'default' &&\n navigationState.collapsed !== this.defaultNavigationCollapsed()\n ? { collapsed: this.defaultNavigationCollapsed() }\n : {}),\n ...(isNavigationDockbarMode(typeMode) && navigationState.dockbarMode !== typeMode\n ? { dockbarMode: typeMode }\n : typeMode === 'default' &&\n navigationState.dockbarMode !== this.defaultNavigationDockbarMode()\n ? { dockbarMode: this.defaultNavigationDockbarMode() }\n : {}),\n };\n\n const hasLockedNavigationValue = [orientation, navigationType, position, typeMode].some(\n (value) => value !== null,\n );\n\n if (\n Object.keys(navigationUpdate).length > 0 ||\n (currentNavigationState === null && hasLockedNavigationValue)\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, navigationUpdate);\n }\n }\n\n private lockedValueFor(\n themeAppearance: ThemeAppearance,\n key: Parameters<typeof themeAppearancePresetEntry>[1],\n ): string | null {\n const entry = themeAppearancePresetEntry(themeAppearance, key);\n\n return entry.control === 'fix' ? entry.value : null;\n }\n\n private valueFor(\n themeAppearance: ThemeAppearance,\n key: Parameters<typeof themeAppearancePresetEntry>[1],\n fallback: string,\n ): string {\n const value = themeAppearancePresetEntry(themeAppearance, key).value;\n\n return value === 'default' ? fallback : value;\n }\n\n private defaultMode(): string {\n return this.config?.defaults?.theme.mode ?? DEFAULT_THEME_MODE;\n }\n\n private defaultSpace(): string {\n return this.config?.defaults?.theme.space ?? 'normal';\n }\n\n private defaultRadius(): string {\n return this.config?.defaults?.theme.radius ?? 'medium';\n }\n\n private defaultColor(): string {\n return this.config?.defaults?.theme.color ?? DEFAULT_THEME_COLOR;\n }\n\n private defaultBrand(): string {\n return this.config?.defaults?.theme.brand ?? DEFAULT_THEME_BRAND;\n }\n\n private defaultLayoutType(): string {\n return this.config?.defaults?.layout.type ?? LAYOUT_DEFAULT_TYPE;\n }\n\n private defaultLayoutWidth(): string {\n return this.config?.defaults?.layout.width ?? LAYOUT_DEFAULT_WIDTH;\n }\n\n private defaultLayoutSurface(): string {\n return this.config?.defaults?.layout.surface ?? LAYOUT_DEFAULT_SURFACE;\n }\n\n private defaultNavigationOrientation(): NavigationOrientation {\n return this.config?.defaults?.navigation.orientation ?? 'vertical';\n }\n\n private defaultNavigationType(): NavigationType {\n return this.config?.defaults?.navigation.type ?? 'sidebar';\n }\n\n private defaultNavigationPosition(): NavigationPosition {\n return this.config?.defaults?.navigation.position ?? 'left';\n }\n\n private defaultNavigationCollapsed(): boolean {\n return this.config?.defaults?.navigation.collapsed ?? false;\n }\n\n private defaultNavigationDockbarMode(): NavigationDockbarMode {\n return this.config?.defaults?.navigation.dockbarMode ?? 'default';\n }\n}\n\nfunction isNavigationType(value: string | null): value is NavigationType {\n return value !== null && (NAVIGATION_TYPES as readonly string[]).includes(value);\n}\n\nfunction isNavigationOrientation(value: string | null): value is NavigationOrientation {\n return value !== null && (NAVIGATION_ORIENTATIONS as readonly string[]).includes(value);\n}\n\nfunction isNavigationPosition(value: string | null): value is NavigationPosition {\n return value !== null && (NAVIGATION_POSITIONS as readonly string[]).includes(value);\n}\n\nfunction isNavigationDockbarMode(value: string | null): value is NavigationDockbarMode {\n return value !== null && (NAVIGATION_DOCKBAR_MODES as readonly string[]).includes(value);\n}\n","import {\n inject,\n InjectionToken,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n} from '@angular/core';\nimport type {\n NavigationDockbarMode,\n NavigationOrientation,\n NavigationPosition,\n NavigationType,\n} from '@edsis/navigation/service';\nimport type { LayoutSurface, LayoutType, LayoutWidth } from '@edsis/theme/layout/types';\nimport type {\n ThemeBrand,\n ThemeColor,\n ThemeMode,\n ThemeRadius,\n ThemeSpace,\n ThemeAppearance,\n} from '@edsis/theme/styles';\n\nimport { ThemeAppearancePresetService } from './theme-appearance-preset.service';\n\nexport interface AppPreferencesDefaults {\n readonly theme: {\n readonly mode: ThemeMode;\n readonly space: ThemeSpace;\n readonly radius: ThemeRadius;\n readonly appearance: ThemeAppearance;\n readonly color: ThemeColor;\n readonly brand: ThemeBrand;\n };\n readonly layout: {\n readonly surface: LayoutSurface;\n readonly width: LayoutWidth;\n readonly type: LayoutType;\n };\n readonly navigation: {\n readonly orientation: NavigationOrientation;\n readonly type: NavigationType;\n readonly position: NavigationPosition;\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([\n { provide: APP_PREFERENCES_CONFIG, useValue: config },\n provideEnvironmentInitializer(() => {\n inject(ThemeAppearancePresetService);\n }),\n ]);\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(\n () => this.layout.type() === 'vertical' || this.layout.type() === 'horizontal',\n );\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\n class=\"flex shrink-0 items-center gap-1 font-mono text-xs text-muted-foreground\"\n [attr.aria-label]=\"locked() ? activeLabel() + ', dikunci oleh gaya tema' : null\"\n >\n {{ activeLabel() }}\n @if (locked()) {\n <Icon name=\"lock\" [size]=\"14\" aria-hidden=\"true\" />\n }\n </span>\n </div>\n\n <ToggleGroup\n type=\"single\"\n variant=\"segmented\"\n [value]=\"selected()\"\n [disabled]=\"locked()\"\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 locked = input(false);\n readonly optionSelected = output<string>();\n\n protected onValueChange(value: string | null): void {\n if (value !== null && !this.locked()) {\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 NavigationOrientation,\n type NavigationPosition,\n type NavigationState,\n type NavigationType,\n type NavigationVerticalType,\n} from '@edsis/navigation/service';\nimport {\n LayoutService,\n isUiLayoutSurface,\n isUiLayoutType,\n isUiLayoutWidth,\n} from '@edsis/theme/layout';\nimport {\n PageComponent,\n PageContentComponent,\n PageFooterComponent,\n PageHeaderComponent,\n} from '@edsis/theme/page';\nimport {\n THEME_BRANDS,\n THEME_COLORS,\n THEME_MODES,\n THEME_RADII,\n THEME_SPACES,\n THEME_APPEARANCES,\n ThemeBrandService,\n ThemeColorService,\n ThemeModeService,\n ThemeRadiusService,\n ThemeSpaceService,\n ThemeAppearanceService,\n isThemeBrand,\n isThemeColor,\n isThemeMode,\n isThemeRadius,\n isThemeSpace,\n isThemeAppearance,\n isThemeAppearanceSettingLocked,\n type ThemeAppearanceSettingKey,\n} from '@edsis/theme/styles';\n\nimport { APP_PREFERENCES_CONFIG } from './app-preferences.config';\nimport { AppPreferencesPanelService } from './app-preferences-panel.service';\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 HORIZONTAL_NAVIGATION_TYPES = ['navbar', 'flyout'] as const;\nconst NAVIGATION_LAYOUT_TYPES = ['vertical', 'horizontal'] as const;\nconst DOCKBAR_MODES = ['default', 'sticky', 'drawer'] as const;\n\nconst THEME_APPEARANCE_OPTIONS = {\n browser: { label: 'Browser', icon: 'language' },\n rail: { label: 'Rail', icon: 'view_sidebar' },\n tablet: { label: 'Tablet', icon: 'tablet_android' },\n desktop: { label: 'Desktop', icon: 'desktop_windows' },\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_COLOR_OPTIONS = {\n default: { label: 'Default', icon: 'format_color_fill' },\n} as const;\nconst THEME_BRAND_OPTIONS = {\n default: { label: 'Default', icon: 'branding_watermark' },\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_SURFACE_OPTIONS = {\n base: { label: 'Dasar', icon: 'crop_square' },\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 LAYOUT_TYPE_OPTIONS = {\n vertical: { label: 'Vertikal', icon: 'view_sidebar' },\n horizontal: { label: 'Horizontal', icon: 'view_stream' },\n} as const;\nconst NAVIGATION_TYPE_OPTIONS = {\n sidebar: { label: 'Sidebar', icon: 'left_panel_open' },\n dockbar: { label: 'Dockbar', icon: 'dock_to_left' },\n navbar: { label: 'Navbar', icon: 'top_panel_open' },\n flyout: { label: 'Flyout', icon: 'menu_open' },\n} as const;\nconst NAVIGATION_POSITION_OPTIONS = {\n left: { label: 'Kiri', icon: 'align_horizontal_left' },\n right: { label: 'Kanan', icon: 'align_horizontal_right' },\n top: { label: 'Atas', icon: 'vertical_align_top' },\n bottom: { label: 'Bawah', icon: 'vertical_align_bottom' },\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 preferences = inject(AppPreferencesPanelService);\n private readonly themeMode = inject(ThemeModeService);\n private readonly themeSpace = inject(ThemeSpaceService);\n private readonly themeRadius = inject(ThemeRadiusService);\n private readonly themeAppearanceService = inject(ThemeAppearanceService);\n private readonly themeColor = inject(ThemeColorService);\n private readonly themeBrand = inject(ThemeBrandService);\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 themeAppearance = this.themeAppearanceService.appearance;\n protected readonly color = this.themeColor.color;\n protected readonly brand = this.themeBrand.brand;\n protected readonly surface = this.layout.surface;\n protected readonly width = this.layout.width;\n protected readonly layoutType = this.layout.type;\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 themeAppearanceOptions = toOptions(\n THEME_APPEARANCES,\n THEME_APPEARANCE_OPTIONS,\n );\n protected readonly modeOptions = toOptions(THEME_MODES, THEME_MODE_OPTIONS);\n protected readonly colorOptions = toOptions(THEME_COLORS, THEME_COLOR_OPTIONS);\n protected readonly brandOptions = toOptions(THEME_BRANDS, THEME_BRAND_OPTIONS);\n protected readonly spaceOptions = toOptions(THEME_SPACES, THEME_SPACE_OPTIONS);\n protected readonly radiusOptions = toOptions(THEME_RADII, THEME_RADIUS_OPTIONS);\n protected readonly surfaceOptions = toOptions(['base', 'flat', 'grid'], LAYOUT_SURFACE_OPTIONS);\n protected readonly widthOptions = toOptions(\n ['full', 'wide', 'container', 'fluid'],\n LAYOUT_WIDTH_OPTIONS,\n );\n protected readonly layoutTypeOptions = toOptions(NAVIGATION_LAYOUT_TYPES, LAYOUT_TYPE_OPTIONS);\n protected readonly navigationTypeOptions = computed(() =>\n toOptions(\n this.navigationState().orientation === 'vertical'\n ? VERTICAL_NAVIGATION_TYPES\n : HORIZONTAL_NAVIGATION_TYPES,\n NAVIGATION_TYPE_OPTIONS,\n ),\n );\n protected readonly navigationPositionOptions = computed(() =>\n toOptions(\n this.navigationState().orientation === 'vertical' ? ['left', 'right'] : ['top', 'bottom'],\n NAVIGATION_POSITION_OPTIONS,\n ),\n );\n protected readonly navigationModeOptions = computed<readonly AppPreferenceOption[]>(() =>\n this.navigationState().orientation === 'horizontal'\n ? []\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\n if (state.orientation === 'horizontal') return 'default';\n\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\n if (state.orientation === 'horizontal') return 'Default';\n\n return state.type === 'sidebar'\n ? state.collapsed\n ? 'Dipadatkan'\n : 'Diperluas'\n : DOCKBAR_MODE_OPTIONS[state.dockbarMode].label;\n });\n protected readonly navigationTypeLabel = computed(\n () => NAVIGATION_TYPE_OPTIONS[this.navigationState().type].label,\n );\n protected readonly navigationPositionLabel = computed(\n () => NAVIGATION_POSITION_OPTIONS[this.navigationState().position].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 selectThemeAppearance(value: string): void {\n if (!isThemeAppearance(value)) return;\n\n // An appearance may switch the shell between sidebar and dockbar. Close the\n // currently projected panel first so the navigation tree and preferences\n // surface do not transition at the same time.\n this.preferences.close();\n this.themeAppearanceService.setAppearance(value);\n }\n\n protected selectMode(value: string): void {\n if (!this.isLocked('theme-mode') && isThemeMode(value)) this.themeMode.setMode(value);\n }\n\n protected selectColor(value: string): void {\n if (!this.isLocked('theme-color') && isThemeColor(value)) this.themeColor.setColor(value);\n }\n\n protected selectBrand(value: string): void {\n if (!this.isLocked('theme-brand') && isThemeBrand(value)) this.themeBrand.setBrand(value);\n }\n\n protected selectSpace(value: string): void {\n if (!this.isLocked('theme-space') && isThemeSpace(value)) this.themeSpace.setSpace(value);\n }\n\n protected selectRadius(value: string): void {\n if (!this.isLocked('theme-radius') && isThemeRadius(value)) this.themeRadius.setRadius(value);\n }\n\n protected selectSurface(value: string): void {\n if (!this.isLocked('layout-surface') && isUiLayoutSurface(value)) {\n this.layout.setSurface(value);\n }\n }\n\n protected selectWidth(value: string): void {\n if (!this.isLocked('layout-width') && isUiLayoutWidth(value)) this.layout.setWidth(value);\n }\n\n protected selectLayoutType(value: string): void {\n if (\n this.isLayoutTypeLocked() ||\n !isUiLayoutType(value) ||\n !(NAVIGATION_LAYOUT_TYPES as readonly string[]).includes(value)\n ) {\n return;\n }\n\n const orientation = value as NavigationOrientation;\n const state = this.navigationState();\n const type = isNavigationTypeForOrientation(state.type, orientation)\n ? state.type\n : orientation === 'vertical'\n ? 'sidebar'\n : 'navbar';\n const position = isNavigationPositionForOrientation(state.position, orientation)\n ? state.position\n : orientation === 'vertical'\n ? 'left'\n : 'top';\n\n this.layout.setType(value);\n this.navigation.update(PRIMARY_NAVIGATION_ID, { orientation, type, position });\n }\n\n protected selectNavigationType(value: string): void {\n const state = this.navigationState();\n\n if (!this.isLocked('nav-type') && isNavigationTypeForOrientation(value, state.orientation)) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { type: value });\n }\n }\n\n protected selectNavigationMode(value: string): void {\n const state = this.navigationState();\n\n if (this.isLocked('nav-type-mode')) return;\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 selectNavigationPosition(value: string): void {\n const state = this.navigationState();\n\n if (\n !this.isLocked('nav-position') &&\n isNavigationPositionForOrientation(value, state.orientation)\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { position: value });\n }\n }\n\n protected resetToDefaults(): void {\n const defaults = this.defaults;\n if (!defaults) return;\n\n let changed = false;\n if (!this.isLocked('theme-mode') && this.mode() !== defaults.theme.mode) {\n this.themeMode.setMode(defaults.theme.mode);\n changed = true;\n }\n if (!this.isLocked('theme-color') && this.color() !== defaults.theme.color) {\n this.themeColor.setColor(defaults.theme.color);\n changed = true;\n }\n if (!this.isLocked('theme-brand') && this.brand() !== defaults.theme.brand) {\n this.themeBrand.setBrand(defaults.theme.brand);\n changed = true;\n }\n if (!this.isLocked('theme-space') && this.space() !== defaults.theme.space) {\n this.themeSpace.setSpace(defaults.theme.space);\n changed = true;\n }\n if (!this.isLocked('theme-radius') && this.radius() !== defaults.theme.radius) {\n this.themeRadius.setRadius(defaults.theme.radius);\n changed = true;\n }\n if (this.themeAppearance() !== defaults.theme.appearance) {\n this.themeAppearanceService.setAppearance(defaults.theme.appearance);\n changed = true;\n }\n if (!this.isLocked('layout-surface') && this.surface() !== defaults.layout.surface) {\n this.layout.setSurface(defaults.layout.surface);\n changed = true;\n }\n if (!this.isLocked('layout-width') && this.width() !== defaults.layout.width) {\n this.layout.setWidth(defaults.layout.width);\n changed = true;\n }\n if (!this.isLayoutTypeLocked() && this.layoutType() !== defaults.layout.type) {\n this.selectLayoutType(defaults.layout.type);\n changed = true;\n }\n\n const navigation = this.navigationState();\n const nextNavigation = {\n orientation: this.isLocked('nav-orientation')\n ? navigation.orientation\n : defaults.navigation.orientation,\n type: this.isLocked('nav-type') ? navigation.type : defaults.navigation.type,\n position: this.isLocked('nav-position') ? navigation.position : defaults.navigation.position,\n collapsed: this.isLocked('nav-type-mode')\n ? navigation.collapsed\n : defaults.navigation.collapsed,\n dockbarMode: this.isLocked('nav-type-mode')\n ? navigation.dockbarMode\n : defaults.navigation.dockbarMode,\n };\n if (\n navigation.orientation !== nextNavigation.orientation ||\n navigation.type !== nextNavigation.type ||\n navigation.position !== nextNavigation.position ||\n navigation.collapsed !== nextNavigation.collapsed ||\n navigation.dockbarMode !== nextNavigation.dockbarMode\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, nextNavigation);\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 protected isLocked(key: ThemeAppearanceSettingKey): boolean {\n return isThemeAppearanceSettingLocked(this.themeAppearance(), key);\n }\n\n protected isLayoutTypeLocked(): boolean {\n return this.isLocked('layout-type') || this.isLocked('nav-orientation');\n }\n}\n\nfunction isNavigationTypeForOrientation(\n value: string,\n orientation: NavigationOrientation,\n): value is NavigationType {\n return orientation === 'vertical'\n ? (VERTICAL_NAVIGATION_TYPES as readonly string[]).includes(value)\n : (HORIZONTAL_NAVIGATION_TYPES as readonly string[]).includes(value);\n}\n\nfunction isNavigationPositionForOrientation(\n value: string,\n orientation: NavigationOrientation,\n): value is NavigationPosition {\n return orientation === 'vertical'\n ? value === 'left' || value === 'right'\n : value === 'top' || value === 'bottom';\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-theme-appearance\"\n title=\"Tampilan tema\"\n [activeLabel]=\"\n themeAppearanceOptions.find((option) => option.value === themeAppearance())?.label ??\n themeAppearance()\n \"\n [options]=\"themeAppearanceOptions\"\n [selected]=\"themeAppearance()\"\n (optionSelected)=\"selectThemeAppearance($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 [locked]=\"isLocked('theme-mode')\"\n (optionSelected)=\"selectMode($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-color\"\n title=\"Warna tema\"\n [activeLabel]=\"colorOptions.find((option) => option.value === color())?.label ?? color()\"\n [options]=\"colorOptions\"\n [selected]=\"color()\"\n [locked]=\"isLocked('theme-color')\"\n (optionSelected)=\"selectColor($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-brand\"\n title=\"Brand\"\n [activeLabel]=\"brandOptions.find((option) => option.value === brand())?.label ?? brand()\"\n [options]=\"brandOptions\"\n [selected]=\"brand()\"\n [locked]=\"isLocked('theme-brand')\"\n (optionSelected)=\"selectBrand($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 [locked]=\"isLocked('theme-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 [locked]=\"isLocked('theme-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-surface\"\n title=\"Latar\"\n [activeLabel]=\"\n surfaceOptions.find((option) => option.value === surface())?.label ?? surface()\n \"\n [options]=\"surfaceOptions\"\n [selected]=\"surface()\"\n [locked]=\"isLocked('layout-surface')\"\n (optionSelected)=\"selectSurface($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-layout-type\"\n title=\"Tipe layout\"\n [activeLabel]=\"\n layoutTypeOptions.find((option) => option.value === layoutType())?.label ?? layoutType()\n \"\n [options]=\"layoutTypeOptions\"\n [selected]=\"layoutType()\"\n [locked]=\"isLayoutTypeLocked()\"\n (optionSelected)=\"selectLayoutType($event)\"\n />\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 [locked]=\"isLocked('layout-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]=\"navigationTypeLabel()\"\n [options]=\"navigationTypeOptions()\"\n [selected]=\"navigationState().type\"\n [locked]=\"isLocked('nav-type')\"\n (optionSelected)=\"selectNavigationType($event)\"\n />\n @if (navigationState().orientation === 'vertical') {\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 [locked]=\"isLocked('nav-type-mode')\"\n (optionSelected)=\"selectNavigationMode($event)\"\n />\n }\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-position\"\n title=\"Posisi navigation\"\n [activeLabel]=\"navigationPositionLabel()\"\n [options]=\"navigationPositionOptions()\"\n [selected]=\"navigationState().position\"\n [locked]=\"isLocked('nav-position')\"\n (optionSelected)=\"selectNavigationPosition($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 { cn } from '@edsis/component/class';\nimport { SheetComponent, type SheetSide } from '@edsis/component/sheet';\nimport { NavigationService, type NavigationState } from '@edsis/navigation/service';\nimport { LayoutService } from '@edsis/theme/layout';\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]=\"sheetSide()\"\n [showCloseButton]=\"false\"\n [restoreFocus]=\"false\"\n aria-labelledby=\"app-preferences-title\"\n [class]=\"sheetClass()\"\n (openedChange)=\"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 layout = inject(LayoutService);\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.layout.appearance() !== 'desktop' &&\n !this.narrowState() &&\n this.navigationState().type === 'sidebar' &&\n !this.navigationState().collapsed,\n );\n protected readonly sheetSide = computed<SheetSide>(() =>\n this.navigationState().orientation === 'vertical' ? 'left' : 'right',\n );\n protected readonly hostClass = computed(() =>\n this.inline()\n ? 'block h-full w-76 border-r border-border'\n : 'relative block h-full w-16',\n );\n protected readonly sheetClass = computed(() =>\n cn(\n 'w-[min(19rem,calc(100dvw-2rem))]! max-w-none! gap-0! p-0!',\n this.sheetSide() === 'left' ? 'border-r-2 border-border' : 'border-l-2 border-border',\n ),\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","import {\n inject,\n makeEnvironmentProviders,\n provideAppInitializer,\n type EnvironmentProviders,\n} from '@angular/core';\nimport { RuntimeContextService, type EdsisDeviceType } from '@edsis/angular/services/runtime';\nimport {\n ThemeAppearanceService,\n ThemeDeviceService,\n type ThemeAppearance,\n} from '@edsis/theme/styles';\n\n/** Registers immutable runtime fallbacks without replacing stored theme preferences. */\nexport function provideRuntimeThemeDevice(): EnvironmentProviders {\n return makeEnvironmentProviders([\n provideAppInitializer(() => {\n const runtime = inject(RuntimeContextService);\n const themeDevice = inject(ThemeDeviceService);\n const themeAppearance = inject(ThemeAppearanceService);\n\n return runtime.initialize().then(() => {\n const deviceType = runtime.deviceType();\n\n themeDevice.registerType(deviceType);\n themeAppearance.registerAppearance(appearanceForDeviceType(deviceType));\n });\n }),\n ]);\n}\n\nfunction appearanceForDeviceType(deviceType: EdsisDeviceType): ThemeAppearance {\n switch (deviceType) {\n case 'windows':\n case 'macos':\n return 'desktop';\n case 'android':\n case 'ipados':\n return 'tablet';\n case 'browser':\n return 'browser';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["PRIMARY_NAVIGATION_ID","LayoutService"],"mappings":";;;;;;;;;;;;;;;;;AAyCA,MAAMA,uBAAqB,GAAG,MAAM;AACpC,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAU;AAC5E,MAAM,uBAAuB,GAAG,CAAC,UAAU,EAAE,YAAY,CAAU;AACnE,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAU;AACxE,MAAM,wBAAwB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAU;MAG5D,4BAA4B,CAAA;IACtB,MAAM,GAAG,MAAM,CA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AA;;;ACCD;SACgB,yBAAyB,GAAA;AACvC,IAAA,OAAO,wBAAwB,CAAC;QAC9B,qBAAqB,CAAC,MAAK;AACzB,YAAA,MAAM,OAAO,GAAG,MAAM,CAAC,qBAAqB,CAAC;AAC7C,YAAA,MAAM,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAC9C,YAAA,MAAM,eAAe,GAAG,MAAM,CAAC,sBAAsB,CAAC;YAEtD,OAAO,OAAO,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,MAAK;AACpC,gBAAA,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,EAAE;AAEvC,gBAAA,WAAW,CAAC,YAAY,CAAC,UAAU,CAAC;gBACpC,eAAe,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,UAAU,CAAC,CAAC;AACzE,YAAA,CAAC,CAAC;AACJ,QAAA,CAAC,CAAC;AACH,KAAA,CAAC;AACJ;AAEA,SAAS,uBAAuB,CAAC,UAA2B,EAAA;IAC1D,QAAQ,UAAU;AAChB,QAAA,KAAK,SAAS;AACd,QAAA,KAAK,OAAO;AACV,YAAA,OAAO,SAAS;AAClB,QAAA,KAAK,SAAS;AACd,QAAA,KAAK,QAAQ;AACX,YAAA,OAAO,QAAQ;AACjB,QAAA,KAAK,SAAS;AACZ,YAAA,OAAO,SAAS;;AAEtB;;AC1CA;;AAEG;;;;"}
1
+ {"version":3,"file":"edsis-angular-block-themes.mjs","sources":["../../../library/angular/block/themes/theme-appearance-preset.service.ts","../../../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/runtime-theme-device.provider.ts","../../../library/angular/block/themes/edsis-angular-block-themes.ts"],"sourcesContent":["import { effect, inject, Service } from '@angular/core';\nimport {\n NavigationService,\n type NavigationDockbarMode,\n type NavigationOrientation,\n type NavigationPosition,\n type NavigationState,\n type NavigationType,\n} from '@edsis/navigation/service';\nimport {\n LayoutService,\n isUiLayoutSurface,\n isUiLayoutType,\n isUiLayoutWidth,\n} from '@edsis/theme/layout';\nimport {\n DEFAULT_THEME_BRAND,\n DEFAULT_THEME_COLOR,\n DEFAULT_THEME_MODE,\n ThemeBrandService,\n ThemeColorService,\n ThemeModeService,\n ThemeRadiusService,\n ThemeSpaceService,\n ThemeAppearanceService,\n isThemeBrand,\n isThemeColor,\n isThemeMode,\n isThemeRadius,\n isThemeSpace,\n themeAppearancePresetEntry,\n type ThemeAppearance,\n} from '@edsis/theme/styles';\nimport {\n LAYOUT_DEFAULT_SURFACE,\n LAYOUT_DEFAULT_TYPE,\n LAYOUT_DEFAULT_WIDTH,\n} from '@edsis/theme/layout/types';\n\nimport { APP_PREFERENCES_CONFIG } from './app-preferences.config';\n\nconst PRIMARY_NAVIGATION_ID = 'main';\nconst NAVIGATION_TYPES = ['sidebar', 'dockbar', 'navbar', 'flyout'] as const;\nconst NAVIGATION_ORIENTATIONS = ['vertical', 'horizontal'] as const;\nconst NAVIGATION_POSITIONS = ['left', 'right', 'top', 'bottom'] as const;\nconst NAVIGATION_DOCKBAR_MODES = ['default', 'drawer', 'sticky'] as const;\n\n@Service()\nexport class ThemeAppearancePresetService {\n private readonly config = inject(APP_PREFERENCES_CONFIG, { optional: true });\n private readonly themeAppearance = inject(ThemeAppearanceService);\n private readonly themeMode = inject(ThemeModeService);\n private readonly themeSpace = inject(ThemeSpaceService);\n private readonly themeRadius = inject(ThemeRadiusService);\n private readonly themeColor = inject(ThemeColorService);\n private readonly themeBrand = inject(ThemeBrandService);\n private readonly layout = inject(LayoutService);\n private readonly navigation = inject(NavigationService);\n\n constructor() {\n let previousAppearance = this.themeAppearance.appearance();\n\n if (this.themeAppearance.hasStoredAppearance()) {\n this.enforceLockedValues(previousAppearance);\n } else {\n this.applyPreset(previousAppearance);\n }\n\n effect(() => {\n const appearance = this.themeAppearance.appearance();\n\n if (appearance === previousAppearance) return;\n\n previousAppearance = appearance;\n this.applyPreset(appearance);\n });\n\n effect(() => this.enforceLockedValues(this.themeAppearance.appearance()));\n }\n\n private applyPreset(themeAppearance: ThemeAppearance): void {\n this.applyThemeValues(themeAppearance);\n this.applyLayoutValues(themeAppearance);\n this.applyNavigationValues(themeAppearance);\n }\n\n private applyThemeValues(themeAppearance: ThemeAppearance): void {\n const mode = this.valueFor(themeAppearance, 'theme-mode', this.defaultMode());\n if (isThemeMode(mode)) this.themeMode.setMode(mode);\n\n const space = this.valueFor(themeAppearance, 'theme-space', this.defaultSpace());\n if (isThemeSpace(space)) this.themeSpace.setSpace(space);\n\n const radius = this.valueFor(themeAppearance, 'theme-radius', this.defaultRadius());\n if (isThemeRadius(radius)) this.themeRadius.setRadius(radius);\n\n const color = this.valueFor(themeAppearance, 'theme-color', this.defaultColor());\n if (isThemeColor(color)) this.themeColor.setColor(color);\n\n const brand = this.valueFor(themeAppearance, 'theme-brand', this.defaultBrand());\n if (isThemeBrand(brand)) this.themeBrand.setBrand(brand);\n }\n\n private applyLayoutValues(themeAppearance: ThemeAppearance): void {\n const type = this.valueFor(themeAppearance, 'layout-type', this.defaultLayoutType());\n if (isUiLayoutType(type)) this.layout.setType(type);\n\n const width = this.valueFor(themeAppearance, 'layout-width', this.defaultLayoutWidth());\n if (isUiLayoutWidth(width)) this.layout.setWidth(width);\n\n const surface = this.valueFor(themeAppearance, 'layout-surface', this.defaultLayoutSurface());\n if (isUiLayoutSurface(surface)) this.layout.setSurface(surface);\n }\n\n private applyNavigationValues(themeAppearance: ThemeAppearance): void {\n const orientation = this.valueFor(\n themeAppearance,\n 'nav-orientation',\n this.defaultNavigationOrientation(),\n );\n const type = this.valueFor(themeAppearance, 'nav-type', this.defaultNavigationType());\n const position = this.valueFor(\n themeAppearance,\n 'nav-position',\n this.defaultNavigationPosition(),\n );\n const typeMode = this.valueFor(themeAppearance, 'nav-type-mode', 'default');\n\n this.navigation.update(PRIMARY_NAVIGATION_ID, {\n orientation: isNavigationOrientation(orientation)\n ? orientation\n : this.defaultNavigationOrientation(),\n type: isNavigationType(type) ? type : this.defaultNavigationType(),\n position: isNavigationPosition(position) ? position : this.defaultNavigationPosition(),\n collapsed:\n typeMode === 'collapsed'\n ? true\n : typeMode === 'expanded'\n ? false\n : this.defaultNavigationCollapsed(),\n dockbarMode: isNavigationDockbarMode(typeMode)\n ? typeMode\n : this.defaultNavigationDockbarMode(),\n });\n }\n\n private enforceLockedValues(themeAppearance: ThemeAppearance): void {\n const mode = this.lockedValueFor(themeAppearance, 'theme-mode');\n if (isThemeMode(mode) && this.themeMode.mode() !== mode) this.themeMode.setMode(mode);\n\n const space = this.lockedValueFor(themeAppearance, 'theme-space');\n if (isThemeSpace(space) && this.themeSpace.space() !== space) this.themeSpace.setSpace(space);\n\n const radius = this.lockedValueFor(themeAppearance, 'theme-radius');\n if (isThemeRadius(radius) && this.themeRadius.radius() !== radius)\n this.themeRadius.setRadius(radius);\n\n const color = this.lockedValueFor(themeAppearance, 'theme-color');\n if (isThemeColor(color) && this.themeColor.color() !== color) this.themeColor.setColor(color);\n\n const brand = this.lockedValueFor(themeAppearance, 'theme-brand');\n if (isThemeBrand(brand) && this.themeBrand.brand() !== brand) this.themeBrand.setBrand(brand);\n\n const type = this.lockedValueFor(themeAppearance, 'layout-type');\n if (isUiLayoutType(type) && this.layout.type() !== type) this.layout.setType(type);\n\n const width = this.lockedValueFor(themeAppearance, 'layout-width');\n if (isUiLayoutWidth(width) && this.layout.width() !== width) this.layout.setWidth(width);\n\n const surface = this.lockedValueFor(themeAppearance, 'layout-surface');\n if (isUiLayoutSurface(surface) && this.layout.surface() !== surface)\n this.layout.setSurface(surface);\n\n const orientation = this.lockedValueFor(themeAppearance, 'nav-orientation');\n const navigationType = this.lockedValueFor(themeAppearance, 'nav-type');\n const position = this.lockedValueFor(themeAppearance, 'nav-position');\n const typeMode = this.lockedValueFor(themeAppearance, 'nav-type-mode');\n const currentNavigationState = this.navigation.currentState(PRIMARY_NAVIGATION_ID);\n const navigationState: NavigationState = currentNavigationState ?? {\n id: PRIMARY_NAVIGATION_ID,\n orientation: 'vertical',\n type: 'sidebar',\n position: 'left',\n collapsed: false,\n dockbarMode: 'default',\n };\n const navigationUpdate = {\n ...(isNavigationOrientation(orientation) && navigationState.orientation !== orientation\n ? { orientation }\n : {}),\n ...(isNavigationType(navigationType) && navigationState.type !== navigationType\n ? { type: navigationType }\n : {}),\n ...(isNavigationPosition(position) && navigationState.position !== position\n ? { position }\n : {}),\n ...(typeMode === 'collapsed' && !navigationState.collapsed\n ? { collapsed: true }\n : typeMode === 'expanded' && navigationState.collapsed\n ? { collapsed: false }\n : typeMode === 'default' &&\n navigationState.collapsed !== this.defaultNavigationCollapsed()\n ? { collapsed: this.defaultNavigationCollapsed() }\n : {}),\n ...(isNavigationDockbarMode(typeMode) && navigationState.dockbarMode !== typeMode\n ? { dockbarMode: typeMode }\n : typeMode === 'default' &&\n navigationState.dockbarMode !== this.defaultNavigationDockbarMode()\n ? { dockbarMode: this.defaultNavigationDockbarMode() }\n : {}),\n };\n\n const hasLockedNavigationValue = [orientation, navigationType, position, typeMode].some(\n (value) => value !== null,\n );\n\n if (\n Object.keys(navigationUpdate).length > 0 ||\n (currentNavigationState === null && hasLockedNavigationValue)\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, navigationUpdate);\n }\n }\n\n private lockedValueFor(\n themeAppearance: ThemeAppearance,\n key: Parameters<typeof themeAppearancePresetEntry>[1],\n ): string | null {\n const entry = themeAppearancePresetEntry(themeAppearance, key);\n\n return entry.control === 'fix' ? entry.value : null;\n }\n\n private valueFor(\n themeAppearance: ThemeAppearance,\n key: Parameters<typeof themeAppearancePresetEntry>[1],\n fallback: string,\n ): string {\n const value = themeAppearancePresetEntry(themeAppearance, key).value;\n\n return value === 'default' ? fallback : value;\n }\n\n private defaultMode(): string {\n return this.config?.defaults?.theme.mode ?? DEFAULT_THEME_MODE;\n }\n\n private defaultSpace(): string {\n return this.config?.defaults?.theme.space ?? 'normal';\n }\n\n private defaultRadius(): string {\n return this.config?.defaults?.theme.radius ?? 'medium';\n }\n\n private defaultColor(): string {\n return this.config?.defaults?.theme.color ?? DEFAULT_THEME_COLOR;\n }\n\n private defaultBrand(): string {\n return this.config?.defaults?.theme.brand ?? DEFAULT_THEME_BRAND;\n }\n\n private defaultLayoutType(): string {\n return this.config?.defaults?.layout.type ?? LAYOUT_DEFAULT_TYPE;\n }\n\n private defaultLayoutWidth(): string {\n return this.config?.defaults?.layout.width ?? LAYOUT_DEFAULT_WIDTH;\n }\n\n private defaultLayoutSurface(): string {\n return this.config?.defaults?.layout.surface ?? LAYOUT_DEFAULT_SURFACE;\n }\n\n private defaultNavigationOrientation(): NavigationOrientation {\n return this.config?.defaults?.navigation.orientation ?? 'vertical';\n }\n\n private defaultNavigationType(): NavigationType {\n return this.config?.defaults?.navigation.type ?? 'sidebar';\n }\n\n private defaultNavigationPosition(): NavigationPosition {\n return this.config?.defaults?.navigation.position ?? 'left';\n }\n\n private defaultNavigationCollapsed(): boolean {\n return this.config?.defaults?.navigation.collapsed ?? false;\n }\n\n private defaultNavigationDockbarMode(): NavigationDockbarMode {\n return this.config?.defaults?.navigation.dockbarMode ?? 'default';\n }\n}\n\nfunction isNavigationType(value: string | null): value is NavigationType {\n return value !== null && (NAVIGATION_TYPES as readonly string[]).includes(value);\n}\n\nfunction isNavigationOrientation(value: string | null): value is NavigationOrientation {\n return value !== null && (NAVIGATION_ORIENTATIONS as readonly string[]).includes(value);\n}\n\nfunction isNavigationPosition(value: string | null): value is NavigationPosition {\n return value !== null && (NAVIGATION_POSITIONS as readonly string[]).includes(value);\n}\n\nfunction isNavigationDockbarMode(value: string | null): value is NavigationDockbarMode {\n return value !== null && (NAVIGATION_DOCKBAR_MODES as readonly string[]).includes(value);\n}\n","import {\n inject,\n InjectionToken,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n} from '@angular/core';\nimport type {\n NavigationDockbarMode,\n NavigationOrientation,\n NavigationPosition,\n NavigationType,\n} from '@edsis/navigation/service';\nimport type { LayoutSurface, LayoutType, LayoutWidth } from '@edsis/theme/layout/types';\nimport type {\n ThemeBrand,\n ThemeColor,\n ThemeMode,\n ThemeRadius,\n ThemeSpace,\n ThemeAppearance,\n} from '@edsis/theme/styles';\n\nimport { ThemeAppearancePresetService } from './theme-appearance-preset.service';\n\nexport interface AppPreferencesDefaults {\n readonly theme: {\n readonly mode: ThemeMode;\n readonly space: ThemeSpace;\n readonly radius: ThemeRadius;\n readonly appearance: ThemeAppearance;\n readonly color: ThemeColor;\n readonly brand: ThemeBrand;\n };\n readonly layout: {\n readonly surface: LayoutSurface;\n readonly width: LayoutWidth;\n readonly type: LayoutType;\n };\n readonly navigation: {\n readonly orientation: NavigationOrientation;\n readonly type: NavigationType;\n readonly position: NavigationPosition;\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([\n { provide: APP_PREFERENCES_CONFIG, useValue: config },\n provideEnvironmentInitializer(() => {\n inject(ThemeAppearancePresetService);\n }),\n ]);\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(\n () => this.layout.type() === 'vertical' || this.layout.type() === 'horizontal',\n );\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\n class=\"flex shrink-0 items-center gap-1 font-mono text-xs text-muted-foreground\"\n [attr.aria-label]=\"locked() ? activeLabel() + ', dikunci oleh gaya tema' : null\"\n >\n {{ activeLabel() }}\n @if (locked()) {\n <Icon name=\"lock\" [size]=\"14\" aria-hidden=\"true\" />\n }\n </span>\n </div>\n\n <ToggleGroup\n type=\"single\"\n variant=\"segmented\"\n [value]=\"selected()\"\n [disabled]=\"locked()\"\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 locked = input(false);\n readonly optionSelected = output<string>();\n\n protected onValueChange(value: string | null): void {\n if (value !== null && !this.locked()) {\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 NavigationOrientation,\n type NavigationPosition,\n type NavigationState,\n type NavigationType,\n type NavigationVerticalType,\n} from '@edsis/navigation/service';\nimport {\n LayoutService,\n isUiLayoutSurface,\n isUiLayoutType,\n isUiLayoutWidth,\n} from '@edsis/theme/layout';\nimport {\n PageComponent,\n PageContentComponent,\n PageFooterComponent,\n PageHeaderComponent,\n} from '@edsis/theme/page';\nimport {\n THEME_BRANDS,\n THEME_COLORS,\n THEME_MODES,\n THEME_RADII,\n THEME_SPACES,\n THEME_APPEARANCES,\n ThemeBrandService,\n ThemeColorService,\n ThemeModeService,\n ThemeRadiusService,\n ThemeSpaceService,\n ThemeAppearanceService,\n isThemeBrand,\n isThemeColor,\n isThemeMode,\n isThemeRadius,\n isThemeSpace,\n isThemeAppearance,\n isThemeAppearanceSettingLocked,\n type ThemeAppearanceSettingKey,\n} from '@edsis/theme/styles';\n\nimport { APP_PREFERENCES_CONFIG } from './app-preferences.config';\nimport { AppPreferencesPanelService } from './app-preferences-panel.service';\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 HORIZONTAL_NAVIGATION_TYPES = ['navbar', 'flyout'] as const;\nconst NAVIGATION_LAYOUT_TYPES = ['vertical', 'horizontal'] as const;\nconst DOCKBAR_MODES = ['default', 'sticky', 'drawer'] as const;\n\nconst THEME_APPEARANCE_OPTIONS = {\n browser: { label: 'Browser', icon: 'language' },\n rail: { label: 'Rail', icon: 'view_sidebar' },\n tablet: { label: 'Tablet', icon: 'tablet_android' },\n desktop: { label: 'Desktop', icon: 'desktop_windows' },\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_COLOR_OPTIONS = {\n default: { label: 'Default', icon: 'format_color_fill' },\n} as const;\nconst THEME_BRAND_OPTIONS = {\n default: { label: 'Default', icon: 'branding_watermark' },\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_SURFACE_OPTIONS = {\n base: { label: 'Dasar', icon: 'crop_square' },\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 LAYOUT_TYPE_OPTIONS = {\n vertical: { label: 'Vertikal', icon: 'view_sidebar' },\n horizontal: { label: 'Horizontal', icon: 'view_stream' },\n} as const;\nconst NAVIGATION_TYPE_OPTIONS = {\n sidebar: { label: 'Sidebar', icon: 'left_panel_open' },\n dockbar: { label: 'Dockbar', icon: 'dock_to_left' },\n navbar: { label: 'Navbar', icon: 'top_panel_open' },\n flyout: { label: 'Flyout', icon: 'menu_open' },\n} as const;\nconst NAVIGATION_POSITION_OPTIONS = {\n left: { label: 'Kiri', icon: 'align_horizontal_left' },\n right: { label: 'Kanan', icon: 'align_horizontal_right' },\n top: { label: 'Atas', icon: 'vertical_align_top' },\n bottom: { label: 'Bawah', icon: 'vertical_align_bottom' },\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 preferences = inject(AppPreferencesPanelService);\n private readonly themeMode = inject(ThemeModeService);\n private readonly themeSpace = inject(ThemeSpaceService);\n private readonly themeRadius = inject(ThemeRadiusService);\n private readonly themeAppearanceService = inject(ThemeAppearanceService);\n private readonly themeColor = inject(ThemeColorService);\n private readonly themeBrand = inject(ThemeBrandService);\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 themeAppearance = this.themeAppearanceService.appearance;\n protected readonly color = this.themeColor.color;\n protected readonly brand = this.themeBrand.brand;\n protected readonly surface = this.layout.surface;\n protected readonly width = this.layout.width;\n protected readonly layoutType = this.layout.type;\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 themeAppearanceOptions = toOptions(\n THEME_APPEARANCES,\n THEME_APPEARANCE_OPTIONS,\n );\n protected readonly modeOptions = toOptions(THEME_MODES, THEME_MODE_OPTIONS);\n protected readonly colorOptions = toOptions(THEME_COLORS, THEME_COLOR_OPTIONS);\n protected readonly brandOptions = toOptions(THEME_BRANDS, THEME_BRAND_OPTIONS);\n protected readonly spaceOptions = toOptions(THEME_SPACES, THEME_SPACE_OPTIONS);\n protected readonly radiusOptions = toOptions(THEME_RADII, THEME_RADIUS_OPTIONS);\n protected readonly surfaceOptions = toOptions(['base', 'flat', 'grid'], LAYOUT_SURFACE_OPTIONS);\n protected readonly widthOptions = toOptions(\n ['full', 'wide', 'container', 'fluid'],\n LAYOUT_WIDTH_OPTIONS,\n );\n protected readonly layoutTypeOptions = toOptions(NAVIGATION_LAYOUT_TYPES, LAYOUT_TYPE_OPTIONS);\n protected readonly navigationTypeOptions = computed(() =>\n toOptions(\n this.navigationState().orientation === 'vertical'\n ? VERTICAL_NAVIGATION_TYPES\n : HORIZONTAL_NAVIGATION_TYPES,\n NAVIGATION_TYPE_OPTIONS,\n ),\n );\n protected readonly navigationPositionOptions = computed(() =>\n toOptions(\n this.navigationState().orientation === 'vertical' ? ['left', 'right'] : ['top', 'bottom'],\n NAVIGATION_POSITION_OPTIONS,\n ),\n );\n protected readonly navigationModeOptions = computed<readonly AppPreferenceOption[]>(() =>\n this.navigationState().orientation === 'horizontal'\n ? []\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\n if (state.orientation === 'horizontal') return 'default';\n\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\n if (state.orientation === 'horizontal') return 'Default';\n\n return state.type === 'sidebar'\n ? state.collapsed\n ? 'Dipadatkan'\n : 'Diperluas'\n : DOCKBAR_MODE_OPTIONS[state.dockbarMode].label;\n });\n protected readonly navigationTypeLabel = computed(\n () => NAVIGATION_TYPE_OPTIONS[this.navigationState().type].label,\n );\n protected readonly navigationPositionLabel = computed(\n () => NAVIGATION_POSITION_OPTIONS[this.navigationState().position].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 selectThemeAppearance(value: string): void {\n if (!isThemeAppearance(value)) return;\n\n // An appearance may switch the shell between sidebar and dockbar. Close the\n // currently projected panel first so the navigation tree and preferences\n // surface do not transition at the same time.\n this.preferences.close();\n this.themeAppearanceService.setAppearance(value);\n }\n\n protected selectMode(value: string): void {\n if (!this.isLocked('theme-mode') && isThemeMode(value)) this.themeMode.setMode(value);\n }\n\n protected selectColor(value: string): void {\n if (!this.isLocked('theme-color') && isThemeColor(value)) this.themeColor.setColor(value);\n }\n\n protected selectBrand(value: string): void {\n if (!this.isLocked('theme-brand') && isThemeBrand(value)) this.themeBrand.setBrand(value);\n }\n\n protected selectSpace(value: string): void {\n if (!this.isLocked('theme-space') && isThemeSpace(value)) this.themeSpace.setSpace(value);\n }\n\n protected selectRadius(value: string): void {\n if (!this.isLocked('theme-radius') && isThemeRadius(value)) this.themeRadius.setRadius(value);\n }\n\n protected selectSurface(value: string): void {\n if (!this.isLocked('layout-surface') && isUiLayoutSurface(value)) {\n this.layout.setSurface(value);\n }\n }\n\n protected selectWidth(value: string): void {\n if (!this.isLocked('layout-width') && isUiLayoutWidth(value)) this.layout.setWidth(value);\n }\n\n protected selectLayoutType(value: string): void {\n if (\n this.isLayoutTypeLocked() ||\n !isUiLayoutType(value) ||\n !(NAVIGATION_LAYOUT_TYPES as readonly string[]).includes(value)\n ) {\n return;\n }\n\n const orientation = value as NavigationOrientation;\n const state = this.navigationState();\n const type = isNavigationTypeForOrientation(state.type, orientation)\n ? state.type\n : orientation === 'vertical'\n ? 'sidebar'\n : 'navbar';\n const position = isNavigationPositionForOrientation(state.position, orientation)\n ? state.position\n : orientation === 'vertical'\n ? 'left'\n : 'top';\n\n this.layout.setType(value);\n this.navigation.update(PRIMARY_NAVIGATION_ID, { orientation, type, position });\n }\n\n protected selectNavigationType(value: string): void {\n const state = this.navigationState();\n\n if (!this.isLocked('nav-type') && isNavigationTypeForOrientation(value, state.orientation)) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { type: value });\n }\n }\n\n protected selectNavigationMode(value: string): void {\n const state = this.navigationState();\n\n if (this.isLocked('nav-type-mode')) return;\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 selectNavigationPosition(value: string): void {\n const state = this.navigationState();\n\n if (\n !this.isLocked('nav-position') &&\n isNavigationPositionForOrientation(value, state.orientation)\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, { position: value });\n }\n }\n\n protected resetToDefaults(): void {\n const defaults = this.defaults;\n if (!defaults) return;\n\n let changed = false;\n if (!this.isLocked('theme-mode') && this.mode() !== defaults.theme.mode) {\n this.themeMode.setMode(defaults.theme.mode);\n changed = true;\n }\n if (!this.isLocked('theme-color') && this.color() !== defaults.theme.color) {\n this.themeColor.setColor(defaults.theme.color);\n changed = true;\n }\n if (!this.isLocked('theme-brand') && this.brand() !== defaults.theme.brand) {\n this.themeBrand.setBrand(defaults.theme.brand);\n changed = true;\n }\n if (!this.isLocked('theme-space') && this.space() !== defaults.theme.space) {\n this.themeSpace.setSpace(defaults.theme.space);\n changed = true;\n }\n if (!this.isLocked('theme-radius') && this.radius() !== defaults.theme.radius) {\n this.themeRadius.setRadius(defaults.theme.radius);\n changed = true;\n }\n if (this.themeAppearance() !== defaults.theme.appearance) {\n this.themeAppearanceService.setAppearance(defaults.theme.appearance);\n changed = true;\n }\n if (!this.isLocked('layout-surface') && this.surface() !== defaults.layout.surface) {\n this.layout.setSurface(defaults.layout.surface);\n changed = true;\n }\n if (!this.isLocked('layout-width') && this.width() !== defaults.layout.width) {\n this.layout.setWidth(defaults.layout.width);\n changed = true;\n }\n if (!this.isLayoutTypeLocked() && this.layoutType() !== defaults.layout.type) {\n this.selectLayoutType(defaults.layout.type);\n changed = true;\n }\n\n const navigation = this.navigationState();\n const nextNavigation = {\n orientation: this.isLocked('nav-orientation')\n ? navigation.orientation\n : defaults.navigation.orientation,\n type: this.isLocked('nav-type') ? navigation.type : defaults.navigation.type,\n position: this.isLocked('nav-position') ? navigation.position : defaults.navigation.position,\n collapsed: this.isLocked('nav-type-mode')\n ? navigation.collapsed\n : defaults.navigation.collapsed,\n dockbarMode: this.isLocked('nav-type-mode')\n ? navigation.dockbarMode\n : defaults.navigation.dockbarMode,\n };\n if (\n navigation.orientation !== nextNavigation.orientation ||\n navigation.type !== nextNavigation.type ||\n navigation.position !== nextNavigation.position ||\n navigation.collapsed !== nextNavigation.collapsed ||\n navigation.dockbarMode !== nextNavigation.dockbarMode\n ) {\n this.navigation.update(PRIMARY_NAVIGATION_ID, nextNavigation);\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 protected isLocked(key: ThemeAppearanceSettingKey): boolean {\n return isThemeAppearanceSettingLocked(this.themeAppearance(), key);\n }\n\n protected isLayoutTypeLocked(): boolean {\n return this.isLocked('layout-type') || this.isLocked('nav-orientation');\n }\n}\n\nfunction isNavigationTypeForOrientation(\n value: string,\n orientation: NavigationOrientation,\n): value is NavigationType {\n return orientation === 'vertical'\n ? (VERTICAL_NAVIGATION_TYPES as readonly string[]).includes(value)\n : (HORIZONTAL_NAVIGATION_TYPES as readonly string[]).includes(value);\n}\n\nfunction isNavigationPositionForOrientation(\n value: string,\n orientation: NavigationOrientation,\n): value is NavigationPosition {\n return orientation === 'vertical'\n ? value === 'left' || value === 'right'\n : value === 'top' || value === 'bottom';\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-theme-appearance\"\n title=\"Tampilan tema\"\n [activeLabel]=\"\n themeAppearanceOptions.find((option) => option.value === themeAppearance())?.label ??\n themeAppearance()\n \"\n [options]=\"themeAppearanceOptions\"\n [selected]=\"themeAppearance()\"\n (optionSelected)=\"selectThemeAppearance($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 [locked]=\"isLocked('theme-mode')\"\n (optionSelected)=\"selectMode($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-color\"\n title=\"Warna tema\"\n [activeLabel]=\"colorOptions.find((option) => option.value === color())?.label ?? color()\"\n [options]=\"colorOptions\"\n [selected]=\"color()\"\n [locked]=\"isLocked('theme-color')\"\n (optionSelected)=\"selectColor($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-brand\"\n title=\"Brand\"\n [activeLabel]=\"brandOptions.find((option) => option.value === brand())?.label ?? brand()\"\n [options]=\"brandOptions\"\n [selected]=\"brand()\"\n [locked]=\"isLocked('theme-brand')\"\n (optionSelected)=\"selectBrand($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 [locked]=\"isLocked('theme-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 [locked]=\"isLocked('theme-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-surface\"\n title=\"Latar\"\n [activeLabel]=\"\n surfaceOptions.find((option) => option.value === surface())?.label ?? surface()\n \"\n [options]=\"surfaceOptions\"\n [selected]=\"surface()\"\n [locked]=\"isLocked('layout-surface')\"\n (optionSelected)=\"selectSurface($event)\"\n />\n <app-preference-setting-group\n headingId=\"app-preferences-layout-type\"\n title=\"Tipe layout\"\n [activeLabel]=\"\n layoutTypeOptions.find((option) => option.value === layoutType())?.label ?? layoutType()\n \"\n [options]=\"layoutTypeOptions\"\n [selected]=\"layoutType()\"\n [locked]=\"isLayoutTypeLocked()\"\n (optionSelected)=\"selectLayoutType($event)\"\n />\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 [locked]=\"isLocked('layout-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]=\"navigationTypeLabel()\"\n [options]=\"navigationTypeOptions()\"\n [selected]=\"navigationState().type\"\n [locked]=\"isLocked('nav-type')\"\n (optionSelected)=\"selectNavigationType($event)\"\n />\n @if (navigationState().orientation === 'vertical') {\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 [locked]=\"isLocked('nav-type-mode')\"\n (optionSelected)=\"selectNavigationMode($event)\"\n />\n }\n <app-preference-setting-group\n headingId=\"app-preferences-navigation-position\"\n title=\"Posisi navigation\"\n [activeLabel]=\"navigationPositionLabel()\"\n [options]=\"navigationPositionOptions()\"\n [selected]=\"navigationState().position\"\n [locked]=\"isLocked('nav-position')\"\n (optionSelected)=\"selectNavigationPosition($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 { cn } from '@edsis/component/class';\nimport { SheetComponent, type SheetSide } from '@edsis/component/sheet';\nimport { NavigationService, type NavigationState } from '@edsis/navigation/service';\nimport { LayoutService } from '@edsis/theme/layout';\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]=\"sheetSide()\"\n [showCloseButton]=\"false\"\n [restoreFocus]=\"false\"\n aria-labelledby=\"app-preferences-title\"\n [class]=\"sheetClass()\"\n (openedChange)=\"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 layout = inject(LayoutService);\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.layout.appearance() !== 'desktop' &&\n !this.narrowState() &&\n this.navigationState().type === 'sidebar' &&\n !this.navigationState().collapsed,\n );\n protected readonly sheetSide = computed<SheetSide>(() =>\n this.navigationState().orientation === 'vertical' ? 'left' : 'right',\n );\n protected readonly hostClass = computed(() =>\n this.inline()\n ? 'block h-full w-76 border-r border-border'\n : 'relative block h-full w-16',\n );\n protected readonly sheetClass = computed(() =>\n cn(\n 'w-[min(19rem,calc(100dvw-2rem))]! max-w-none! gap-0! p-0!',\n this.sheetSide() === 'left' ? 'border-r-2 border-border' : 'border-l-2 border-border',\n ),\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","import {\n inject,\n makeEnvironmentProviders,\n provideAppInitializer,\n type EnvironmentProviders,\n} from '@angular/core';\nimport { RuntimeContextService, type EdsisDeviceType } from '@edsis/angular/services/runtime';\nimport {\n ThemeAppearanceService,\n ThemeDeviceService,\n type ThemeAppearance,\n} from '@edsis/theme/styles';\n\nexport interface RuntimeThemeDeviceOptions {\n /** Default true. Disable when a named application profile owns appearance. */\n readonly appearanceFallback?: boolean;\n}\n\n/** Registers immutable runtime fallbacks without replacing stored theme preferences. */\nexport function provideRuntimeThemeDevice(\n options: RuntimeThemeDeviceOptions = {},\n): EnvironmentProviders {\n return makeEnvironmentProviders([\n provideAppInitializer(() => {\n const runtime = inject(RuntimeContextService);\n const themeDevice = inject(ThemeDeviceService);\n const themeAppearance = inject(ThemeAppearanceService);\n\n return runtime.initialize().then(() => {\n const deviceType = runtime.deviceType();\n\n themeDevice.registerType(deviceType);\n if (options.appearanceFallback !== false) {\n themeAppearance.registerAppearance(appearanceForDeviceType(deviceType));\n }\n });\n }),\n ]);\n}\n\nfunction appearanceForDeviceType(deviceType: EdsisDeviceType): ThemeAppearance {\n switch (deviceType) {\n case 'windows':\n case 'macos':\n return 'desktop';\n case 'android':\n case 'ipados':\n return 'tablet';\n case 'browser':\n return 'browser';\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["PRIMARY_NAVIGATION_ID","LayoutService"],"mappings":";;;;;;;;;;;;;;;;;AAyCA,MAAMA,uBAAqB,GAAG,MAAM;AACpC,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAU;AAC5E,MAAM,uBAAuB,GAAG,CAAC,UAAU,EAAE,YAAY,CAAU;AACnE,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAU;AACxE,MAAM,wBAAwB,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAU;MAG5D,4BAA4B,CAAA;IACtB,MAAM,GAAG,MAAM,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC3D,IAAA,eAAe,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAChD,IAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACpC,IAAA,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACtC,IAAA,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC;AACxC,IAAA,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACtC,IAAA,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC;AACtC,I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