{"version":3,"file":"flowbite-angular-sidebar.mjs","sources":["../../../../libs/flowbite-angular/sidebar/src/sidebar/theme.ts","../../../../libs/flowbite-angular/sidebar/src/config/sidebar-config.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar/sidebar-state.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar/sidebar.directive.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar-content/theme.ts","../../../../libs/flowbite-angular/sidebar/src/config/sidebar-content-config.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar-content/sidebar-content-state.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar-content/sidebar-content.component.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar-toggle/theme.ts","../../../../libs/flowbite-angular/sidebar/src/config/sidebar-toggle-config.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar-toggle/sidebar-toggle-state.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar-toggle/sidebar-toggle.directive.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar-item/theme.ts","../../../../libs/flowbite-angular/sidebar/src/config/sidebar-item-config.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar-item/sidebar-item-state.ts","../../../../libs/flowbite-angular/sidebar/src/sidebar-item/sidebar-item.directive.ts","../../../../libs/flowbite-angular/sidebar/src/index.ts","../../../../libs/flowbite-angular/sidebar/src/flowbite-angular-sidebar.ts"],"sourcesContent":["import type { ColorToTheme, FlowbiteBoolean, FlowbiteColors } from 'flowbite-angular';\r\nimport { createTheme } from 'flowbite-angular';\r\n\r\nexport interface FlowbiteSidebarColors\r\n  extends Pick<FlowbiteColors, 'default' | 'info' | 'failure' | 'success' | 'warning' | 'primary'> {\r\n  [key: string]: ColorToTheme;\r\n}\r\n\r\nexport interface FlowbiteSidebarTheme {\r\n  host: FlowbiteSidebarHostTheme;\r\n}\r\n\r\nexport interface FlowbiteSidebarHostTheme {\r\n  base: string;\r\n  transition: string;\r\n  open: FlowbiteBoolean;\r\n}\r\n\r\nexport const flowbiteSidebarTheme: FlowbiteSidebarTheme = createTheme({\r\n  host: {\r\n    base: 'fixed inset-0 top-0 left-0 z-40 h-screen lg:w-64',\r\n    transition: '',\r\n    open: {\r\n      on: 'w-full backdrop-blur-sm',\r\n      off: 'w-0',\r\n    },\r\n  },\r\n});\r\n","import type { FlowbiteSidebarColors } from '../sidebar/theme';\r\nimport { flowbiteSidebarTheme, type FlowbiteSidebarTheme } from '../sidebar/theme';\r\n\r\nimport type { DeepPartial } from 'flowbite-angular';\r\n\r\nimport type { Provider } from '@angular/core';\r\nimport { inject, InjectionToken } from '@angular/core';\r\n\r\nexport interface FlowbiteSidebarConfig {\r\n  /**\r\n   * The default theme of sidebar\r\n   */\r\n  baseTheme: FlowbiteSidebarTheme;\r\n  /**\r\n   * Whether the sidebar is open\r\n   */\r\n  open: boolean;\r\n  /**\r\n   * The default color of sidebar\r\n   */\r\n  color: keyof FlowbiteSidebarColors;\r\n  /**\r\n   * The custom theme of sidebar\r\n   */\r\n  customTheme: DeepPartial<FlowbiteSidebarTheme>;\r\n}\r\n\r\nexport const defaultFlowbiteSidebarConfig: FlowbiteSidebarConfig = {\r\n  baseTheme: flowbiteSidebarTheme,\r\n  open: false,\r\n  color: 'default',\r\n  customTheme: {},\r\n};\r\n\r\nexport const FlowbiteSidebarConfigToken = new InjectionToken<FlowbiteSidebarConfig>(\r\n  'FlowbiteSidebarConfigToken'\r\n);\r\n\r\n/**\r\n * Provide the default Sidebar configuration\r\n * @param config The Sidebar configuration\r\n * @returns The provider\r\n */\r\nexport const provideFlowbiteSidebarConfig = (\r\n  config: Partial<FlowbiteSidebarConfig>\r\n): Provider[] => [\r\n  {\r\n    provide: FlowbiteSidebarConfigToken,\r\n    useValue: { ...defaultFlowbiteSidebarConfig, ...config },\r\n  },\r\n];\r\n\r\n/**\r\n * Inject the Sidebar configuration\r\n * @see {@link defaultFlowbiteSidebarConfig}\r\n * @returns The configuration\r\n */\r\nexport const injectFlowbiteSidebarConfig = (): FlowbiteSidebarConfig =>\r\n  inject(FlowbiteSidebarConfigToken, { optional: true }) ?? defaultFlowbiteSidebarConfig;\r\n","import type { Sidebar } from './sidebar.directive';\r\n\r\nimport {\r\n  createState,\r\n  createStateInjector,\r\n  createStateProvider,\r\n  createStateToken,\r\n} from 'ng-primitives/state';\r\n\r\nexport const FlowbiteSidebarStateToken = createStateToken<Sidebar>('Flowbite Sidebar');\r\nexport const provideFlowbiteSidebarState = createStateProvider(FlowbiteSidebarStateToken);\r\nexport const injectFlowbiteSidebarState = createStateInjector(FlowbiteSidebarStateToken);\r\nexport const flowbiteSidebarState = createState(FlowbiteSidebarStateToken);\r\n","import { injectFlowbiteSidebarConfig } from '../config/sidebar-config';\r\nimport { flowbiteSidebarState, provideFlowbiteSidebarState } from './sidebar-state';\r\nimport type { FlowbiteSidebarColors, FlowbiteSidebarTheme } from './theme';\r\n\r\nimport { mergeDeep, type DeepPartial } from 'flowbite-angular';\r\n\r\nimport type { BooleanInput } from '@angular/cdk/coercion';\r\nimport { booleanAttribute, computed, Directive, input } from '@angular/core';\r\nimport { twMerge } from 'tailwind-merge';\r\n\r\n@Directive({\r\n  standalone: true,\r\n  selector: `\r\n    aside[flowbiteSidebar]\r\n  `,\r\n  exportAs: 'flowbiteSidebar',\r\n  hostDirectives: [],\r\n  providers: [provideFlowbiteSidebarState({ inherit: true })],\r\n  host: {\r\n    '[class]': `theme().host.root`,\r\n    '(click)': 'onClick()',\r\n  },\r\n})\r\nexport class Sidebar {\r\n  protected readonly config = injectFlowbiteSidebarConfig();\r\n\r\n  /**\r\n   * @see {@link injectFlowbiteSidebarConfig}\r\n   */\r\n  readonly open = input<boolean, BooleanInput>(this.config.open, { transform: booleanAttribute });\r\n  /**\r\n   * @see {@link injectFlowbiteSidebarConfig}\r\n   */\r\n  readonly color = input<keyof FlowbiteSidebarColors>(this.config.color);\r\n  /**\r\n   * @see {@link injectFlowbiteSidebarConfig}\r\n   */\r\n  readonly customTheme = input<DeepPartial<FlowbiteSidebarTheme>>(this.config.customTheme);\r\n\r\n  readonly theme = computed(() => {\r\n    const mergedTheme = mergeDeep(this.config.baseTheme, this.state.customTheme());\r\n\r\n    return {\r\n      host: {\r\n        root: twMerge(\r\n          mergedTheme.host.base,\r\n          mergedTheme.host.transition,\r\n          mergedTheme.host.open[this.state.open() ? 'on' : 'off']\r\n        ),\r\n      },\r\n    };\r\n  });\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  readonly state = flowbiteSidebarState<Sidebar>(this);\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  onClick(): void {\r\n    this.toggle();\r\n  }\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  toggle(newState?: boolean): void {\r\n    newState ??= !this.state.open();\r\n\r\n    this.state.open.set(newState);\r\n  }\r\n}\r\n","import type { FlowbiteSidebarColors } from '../sidebar/theme';\r\n\r\nimport type { FlowbiteBoolean } from 'flowbite-angular';\r\nimport { createTheme } from 'flowbite-angular';\r\n\r\nexport interface FlowbiteSidebarContentTheme {\r\n  host: FlowbiteSidebarContentHostTheme;\r\n  container: FlowbiteSidebarContentContainerTheme;\r\n}\r\n\r\nexport interface FlowbiteSidebarContentHostTheme {\r\n  base: string;\r\n  transition: string;\r\n  open: FlowbiteBoolean;\r\n  color: FlowbiteSidebarColors;\r\n}\r\n\r\nexport interface FlowbiteSidebarContentContainerTheme {\r\n  base: string;\r\n}\r\n\r\nexport const flowbiteSidebarContentTheme: FlowbiteSidebarContentTheme = createTheme({\r\n  host: {\r\n    base: 'h-full overflow-y-auto border-r px-3 py-4 lg:translate-x-0 lg:border-0',\r\n    transition: '',\r\n    open: {\r\n      on: 'w-64 translate-x-0',\r\n      off: '-translate-x-full',\r\n    },\r\n    color: {\r\n      default: {\r\n        light: 'border-gray-200 bg-gray-100',\r\n        dark: 'dark:border-gray-800 dark:bg-gray-900',\r\n      },\r\n      info: {\r\n        light: 'border-blue-200 bg-gray-100',\r\n        dark: 'dark:border-blue-800 dark:bg-gray-900',\r\n      },\r\n      failure: {\r\n        light: 'border-red-200 bg-gray-100',\r\n        dark: 'dark:border-red-800 dark:bg-gray-900',\r\n      },\r\n      success: {\r\n        light: 'border-green-200 bg-gray-100',\r\n        dark: 'dark:border-green-800 dark:bg-gray-900',\r\n      },\r\n      warning: {\r\n        light: 'border-yellow-200 bg-gray-100',\r\n        dark: 'dark:border-yellow-800 dark:bg-gray-900',\r\n      },\r\n      primary: {\r\n        light: 'border-primary-200 bg-gray-100',\r\n        dark: 'dark:border-primary-800 dark:bg-gray-900',\r\n      },\r\n    },\r\n  },\r\n  container: {\r\n    base: 'space-y-2 font-medium',\r\n  },\r\n});\r\n","import {\r\n  flowbiteSidebarContentTheme,\r\n  type FlowbiteSidebarContentTheme,\r\n} from '../sidebar-content/theme';\r\n\r\nimport type { DeepPartial } from 'flowbite-angular';\r\n\r\nimport type { Provider } from '@angular/core';\r\nimport { inject, InjectionToken } from '@angular/core';\r\n\r\nexport interface FlowbiteSidebarContentConfig {\r\n  /**\r\n   * The default theme of sidebar-content\r\n   */\r\n  baseTheme: FlowbiteSidebarContentTheme;\r\n\r\n  /**\r\n   * The custom theme of sidebar-content\r\n   */\r\n  customTheme: DeepPartial<FlowbiteSidebarContentTheme>;\r\n}\r\n\r\nexport const defaultFlowbiteSidebarContentConfig: FlowbiteSidebarContentConfig = {\r\n  baseTheme: flowbiteSidebarContentTheme,\r\n  customTheme: {},\r\n};\r\n\r\nexport const FlowbiteSidebarContentConfigToken = new InjectionToken<FlowbiteSidebarContentConfig>(\r\n  'FlowbiteSidebarContentConfigToken'\r\n);\r\n\r\n/**\r\n * Provide the default SidebarContent configuration\r\n * @param config The SidebarContent configuration\r\n * @returns The provider\r\n */\r\nexport const provideFlowbiteSidebarContentConfig = (\r\n  config: Partial<FlowbiteSidebarContentConfig>\r\n): Provider[] => [\r\n  {\r\n    provide: FlowbiteSidebarContentConfigToken,\r\n    useValue: { ...defaultFlowbiteSidebarContentConfig, ...config },\r\n  },\r\n];\r\n\r\n/**\r\n * Inject the SidebarContent configuration\r\n * @see {@link defaultFlowbiteSidebarContentConfig}\r\n * @returns The configuration\r\n */\r\nexport const injectFlowbiteSidebarContentConfig = (): FlowbiteSidebarContentConfig =>\r\n  inject(FlowbiteSidebarContentConfigToken, { optional: true }) ??\r\n  defaultFlowbiteSidebarContentConfig;\r\n","import type { SidebarContent } from './sidebar-content.component';\r\n\r\nimport {\r\n  createState,\r\n  createStateInjector,\r\n  createStateProvider,\r\n  createStateToken,\r\n} from 'ng-primitives/state';\r\n\r\nexport const FlowbiteSidebarContentStateToken =\r\n  createStateToken<SidebarContent>('Flowbite SidebarContent');\r\nexport const provideFlowbiteSidebarContentState = createStateProvider(\r\n  FlowbiteSidebarContentStateToken\r\n);\r\nexport const injectFlowbiteSidebarContentState = createStateInjector(\r\n  FlowbiteSidebarContentStateToken\r\n);\r\nexport const flowbiteSidebarContentState = createState(FlowbiteSidebarContentStateToken);\r\n","import { injectFlowbiteSidebarContentConfig } from '../config/sidebar-content-config';\r\nimport { injectFlowbiteSidebarState } from '../sidebar/sidebar-state';\r\nimport {\r\n  flowbiteSidebarContentState,\r\n  provideFlowbiteSidebarContentState,\r\n} from './sidebar-content-state';\r\nimport type { FlowbiteSidebarContentTheme } from './theme';\r\n\r\nimport { colorToTheme, mergeDeep, type DeepPartial } from 'flowbite-angular';\r\n\r\nimport {\r\n  ChangeDetectionStrategy,\r\n  Component,\r\n  computed,\r\n  input,\r\n  ViewEncapsulation,\r\n} from '@angular/core';\r\nimport { twMerge } from 'tailwind-merge';\r\n\r\n@Component({\r\n  standalone: true,\r\n  selector: `\r\n    div[flowbiteSidebarContent]\r\n  `,\r\n  exportAs: 'flowbiteSidebarContent',\r\n  hostDirectives: [],\r\n  imports: [],\r\n  providers: [provideFlowbiteSidebarContentState()],\r\n  host: {\r\n    '[class]': `theme().host.root`,\r\n    '(click)': 'onClick($event)',\r\n  },\r\n  template: `\r\n    <ul [class]=\"theme().container.root\">\r\n      <ng-content />\r\n    </ul>\r\n  `,\r\n  encapsulation: ViewEncapsulation.None,\r\n  changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class SidebarContent {\r\n  readonly config = injectFlowbiteSidebarContentConfig();\r\n  readonly sidebarState = injectFlowbiteSidebarState();\r\n\r\n  /**\r\n   * @see {@link injectFlowbiteSidebarContentConfig}\r\n   */\r\n  readonly customTheme = input<DeepPartial<FlowbiteSidebarContentTheme>>(this.config.customTheme);\r\n\r\n  readonly theme = computed(() => {\r\n    const mergedTheme = mergeDeep(this.config.baseTheme, this.state.customTheme());\r\n\r\n    return {\r\n      host: {\r\n        root: twMerge(\r\n          mergedTheme.host.base,\r\n          mergedTheme.host.transition,\r\n          mergedTheme.host.open[this.sidebarState().open() ? 'on' : 'off'],\r\n          colorToTheme(mergedTheme.host.color, this.sidebarState().color())\r\n        ),\r\n      },\r\n      container: {\r\n        root: twMerge(mergedTheme.container.base),\r\n      },\r\n    };\r\n  });\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  readonly state = flowbiteSidebarContentState<SidebarContent>(this);\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  onClick($event: MouseEvent): void {\r\n    $event.stopPropagation();\r\n  }\r\n}\r\n","import type { FlowbiteBoolean } from 'flowbite-angular';\r\nimport { createTheme } from 'flowbite-angular';\r\nimport type { FlowbiteBaseButtonColors, FlowbiteBaseButtonSizes } from 'flowbite-angular/button';\r\n\r\nexport interface FlowbiteSidebarToggleTheme {\r\n  host: FlowbiteSidebarToggleHostTheme;\r\n}\r\n\r\nexport interface FlowbiteSidebarToggleHostTheme {\r\n  base: string;\r\n  transition: string;\r\n  focus: string;\r\n  disabled: string;\r\n  size: FlowbiteBaseButtonSizes;\r\n  pill: FlowbiteBoolean;\r\n  color: FlowbiteBaseButtonColors;\r\n  colorOutline: FlowbiteBaseButtonColors;\r\n}\r\n\r\nexport const flowbiteSidebarToggleTheme: FlowbiteSidebarToggleTheme = createTheme({\r\n  host: {\r\n    base: 'inline-flex h-10 w-10 cursor-pointer items-center justify-center rounded-lg p-2 text-sm lg:hidden',\r\n    transition: '',\r\n    focus:\r\n      'data-focus:ring-0 data-focus:outline-none data-focus-visible:ring-2 data-focus-visible:outline-none',\r\n    disabled: 'data-disabled:cursor-not-allowed data-disabled:opacity-50',\r\n    size: {} as FlowbiteBaseButtonSizes,\r\n    pill: {} as FlowbiteBoolean,\r\n    color: {\r\n      default: {\r\n        light: 'text-gray-900',\r\n        dark: 'dark:text-gray-100',\r\n      },\r\n      info: {\r\n        light: 'text-blue-900',\r\n        dark: 'dark:text-blue-100',\r\n      },\r\n      failure: {\r\n        light: 'text-red-900',\r\n        dark: 'dark:text-red-100',\r\n      },\r\n      success: {\r\n        light: 'text-green-900',\r\n        dark: 'dark:text-green-100',\r\n      },\r\n      warning: {\r\n        light: 'text-yellow-900',\r\n        dark: 'dark:text-yellow-100',\r\n      },\r\n      primary: {\r\n        light: 'text-primary-900',\r\n        dark: 'dark:text-primary-100',\r\n      },\r\n    },\r\n    colorOutline: {} as FlowbiteBaseButtonColors,\r\n  },\r\n});\r\n","import {\r\n  flowbiteSidebarToggleTheme,\r\n  type FlowbiteSidebarToggleTheme,\r\n} from '../sidebar-toggle/theme';\r\n\r\nimport type { DeepPartial } from 'flowbite-angular';\r\n\r\nimport type { Provider } from '@angular/core';\r\nimport { inject, InjectionToken } from '@angular/core';\r\n\r\nexport interface FlowbiteSidebarToggleConfig {\r\n  /**\r\n   * The default theme of sidebar-toggle\r\n   */\r\n  baseTheme: FlowbiteSidebarToggleTheme;\r\n\r\n  /**\r\n   * The custom theme of sidebar-toggle\r\n   */\r\n  customTheme: DeepPartial<FlowbiteSidebarToggleTheme>;\r\n}\r\n\r\nexport const defaultFlowbiteSidebarToggleConfig: FlowbiteSidebarToggleConfig = {\r\n  baseTheme: flowbiteSidebarToggleTheme,\r\n  customTheme: {},\r\n};\r\n\r\nexport const FlowbiteSidebarToggleConfigToken = new InjectionToken<FlowbiteSidebarToggleConfig>(\r\n  'FlowbiteSidebarToggleConfigToken'\r\n);\r\n\r\n/**\r\n * Provide the default SidebarToggle configuration\r\n * @param config The SidebarToggle configuration\r\n * @returns The provider\r\n */\r\nexport const provideFlowbiteSidebarToggleConfig = (\r\n  config: Partial<FlowbiteSidebarToggleConfig>\r\n): Provider[] => [\r\n  {\r\n    provide: FlowbiteSidebarToggleConfigToken,\r\n    useValue: { ...defaultFlowbiteSidebarToggleConfig, ...config },\r\n  },\r\n];\r\n\r\n/**\r\n * Inject the SidebarToggle configuration\r\n * @see {@link defaultFlowbiteSidebarToggleConfig}\r\n * @returns The configuration\r\n */\r\nexport const injectFlowbiteSidebarToggleConfig = (): FlowbiteSidebarToggleConfig =>\r\n  inject(FlowbiteSidebarToggleConfigToken, { optional: true }) ??\r\n  defaultFlowbiteSidebarToggleConfig;\r\n","import type { SidebarToggle } from './sidebar-toggle.directive';\r\n\r\nimport {\r\n  createState,\r\n  createStateInjector,\r\n  createStateProvider,\r\n  createStateToken,\r\n} from 'ng-primitives/state';\r\n\r\nexport const FlowbiteSidebarToggleStateToken =\r\n  createStateToken<SidebarToggle>('Flowbite SidebarToggle');\r\nexport const provideFlowbiteSidebarToggleState = createStateProvider(\r\n  FlowbiteSidebarToggleStateToken\r\n);\r\nexport const injectFlowbiteSidebarToggleState = createStateInjector(\r\n  FlowbiteSidebarToggleStateToken\r\n);\r\nexport const flowbiteSidebarToggleState = createState(FlowbiteSidebarToggleStateToken);\r\n","import { injectFlowbiteSidebarToggleConfig } from '../config/sidebar-toggle-config';\r\nimport { injectFlowbiteSidebarState } from '../sidebar/sidebar-state';\r\nimport {\r\n  flowbiteSidebarToggleState,\r\n  provideFlowbiteSidebarToggleState,\r\n} from './sidebar-toggle-state';\r\nimport type { FlowbiteSidebarToggleTheme } from './theme';\r\n\r\nimport { colorToTheme, mergeDeep, type DeepPartial } from 'flowbite-angular';\r\nimport { BaseButton } from 'flowbite-angular/button';\r\nimport { barsFromLeft } from 'flowbite-angular/icon/outline/general';\r\n\r\nimport { computed, Directive, input } from '@angular/core';\r\nimport { provideIcons } from '@ng-icons/core';\r\nimport { twMerge } from 'tailwind-merge';\r\n\r\n@Directive({\r\n  standalone: true,\r\n  selector: `\r\n    button[flowbiteSidebarToggle]\r\n  `,\r\n  exportAs: 'flowbiteSidebarToggle',\r\n  hostDirectives: [\r\n    {\r\n      directive: BaseButton,\r\n      inputs: [],\r\n      outputs: [],\r\n    },\r\n  ],\r\n  providers: [provideFlowbiteSidebarToggleState(), provideIcons({ barsFromLeft })],\r\n  host: {\r\n    '[class]': `theme().host.root`,\r\n    '(click)': 'onClick()',\r\n  },\r\n})\r\nexport class SidebarToggle {\r\n  protected readonly config = injectFlowbiteSidebarToggleConfig();\r\n  protected readonly sidebarState = injectFlowbiteSidebarState();\r\n\r\n  /**\r\n   * @see {@link injectFlowbiteSidebarToggleConfig}\r\n   */\r\n  readonly customTheme = input<DeepPartial<FlowbiteSidebarToggleTheme>>(this.config.customTheme);\r\n\r\n  readonly theme = computed(() => {\r\n    const mergedTheme = mergeDeep(this.config.baseTheme, this.state.customTheme());\r\n\r\n    return {\r\n      host: {\r\n        root: twMerge(\r\n          mergedTheme.host.base,\r\n          mergedTheme.host.transition,\r\n          mergedTheme.host.focus,\r\n          mergedTheme.host.disabled,\r\n          colorToTheme(mergedTheme.host.color, this.sidebarState().color())\r\n        ),\r\n      },\r\n    };\r\n  });\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  readonly state = flowbiteSidebarToggleState<SidebarToggle>(this);\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  onClick(): void {\r\n    this.toggleSidebar();\r\n  }\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  toggleSidebar(): void {\r\n    this.sidebarState().toggle();\r\n  }\r\n}\r\n","import type { FlowbiteBoolean } from 'flowbite-angular';\r\nimport { createTheme } from 'flowbite-angular';\r\nimport type { FlowbiteBaseButtonColors, FlowbiteBaseButtonSizes } from 'flowbite-angular/button';\r\n\r\nexport interface FlowbiteSidebarItemTheme {\r\n  host: FlowbiteSidebarItemHostTheme;\r\n}\r\n\r\nexport interface FlowbiteSidebarItemHostTheme {\r\n  base: string;\r\n  transition: string;\r\n  focus: string;\r\n  disabled: string;\r\n  size: FlowbiteBaseButtonSizes;\r\n  pill: FlowbiteBoolean;\r\n  color: FlowbiteBaseButtonColors;\r\n  colorOutline: FlowbiteBaseButtonColors;\r\n}\r\n\r\nexport const flowbiteSidebarItemTheme: FlowbiteSidebarItemTheme = createTheme({\r\n  host: {\r\n    base: 'm-0 flex cursor-pointer flex-row rounded-sm px-3 py-2',\r\n    transition: '',\r\n    focus:\r\n      'data-focus:ring-0 data-focus:outline-none data-focus-visible:ring-2 data-focus-visible:outline-none',\r\n    disabled: 'data-disabled:cursor-not-allowed data-disabled:opacity-50',\r\n    size: {} as FlowbiteBaseButtonSizes,\r\n    pill: {} as FlowbiteBoolean,\r\n    color: {\r\n      default: {\r\n        light: 'text-gray-800 data-hover:text-gray-900',\r\n        dark: 'dark:text-white dark:data-hover:text-gray-100',\r\n      },\r\n      info: {\r\n        light: 'text-gray-800 data-hover:text-blue-900',\r\n        dark: 'dark:text-white dark:data-hover:text-blue-100',\r\n      },\r\n      failure: {\r\n        light: 'text-gray-800 data-hover:text-red-900',\r\n        dark: 'dark:text-white dark:data-hover:text-red-100',\r\n      },\r\n      success: {\r\n        light: 'text-gray-800 data-hover:text-green-900',\r\n        dark: 'dark:text-white dark:data-hover:text-green-100',\r\n      },\r\n      warning: {\r\n        light: 'text-gray-800 data-hover:text-yellow-900',\r\n        dark: 'dark:text-white dark:data-hover:text-yellow-100',\r\n      },\r\n      primary: {\r\n        light: 'data-hover:text-primary-900 text-gray-800',\r\n        dark: 'dark:data-hover:text-primary-100 dark:text-white',\r\n      },\r\n    },\r\n    colorOutline: {} as FlowbiteBaseButtonColors,\r\n  },\r\n});\r\n","import { flowbiteSidebarItemTheme, type FlowbiteSidebarItemTheme } from '../sidebar-item/theme';\r\n\r\nimport type { DeepPartial } from 'flowbite-angular';\r\n\r\nimport type { Provider } from '@angular/core';\r\nimport { inject, InjectionToken } from '@angular/core';\r\n\r\nexport interface FlowbiteSidebarItemConfig {\r\n  /**\r\n   * The default theme of sidebar-item\r\n   */\r\n  baseTheme: FlowbiteSidebarItemTheme;\r\n\r\n  /**\r\n   * The custom theme of sidebar-item\r\n   */\r\n  customTheme: DeepPartial<FlowbiteSidebarItemTheme>;\r\n}\r\n\r\nexport const defaultFlowbiteSidebarItemConfig: FlowbiteSidebarItemConfig = {\r\n  baseTheme: flowbiteSidebarItemTheme,\r\n  customTheme: {},\r\n};\r\n\r\nexport const FlowbiteSidebarItemConfigToken = new InjectionToken<FlowbiteSidebarItemConfig>(\r\n  'FlowbiteSidebarItemConfigToken'\r\n);\r\n\r\n/**\r\n * Provide the default SidebarItem configuration\r\n * @param config The SidebarItem configuration\r\n * @returns The provider\r\n */\r\nexport const provideFlowbiteSidebarItemConfig = (\r\n  config: Partial<FlowbiteSidebarItemConfig>\r\n): Provider[] => [\r\n  {\r\n    provide: FlowbiteSidebarItemConfigToken,\r\n    useValue: { ...defaultFlowbiteSidebarItemConfig, ...config },\r\n  },\r\n];\r\n\r\n/**\r\n * Inject the SidebarItem configuration\r\n * @see {@link defaultFlowbiteSidebarItemConfig}\r\n * @returns The configuration\r\n */\r\nexport const injectFlowbiteSidebarItemConfig = (): FlowbiteSidebarItemConfig =>\r\n  inject(FlowbiteSidebarItemConfigToken, { optional: true }) ?? defaultFlowbiteSidebarItemConfig;\r\n","import type { SidebarItem } from './sidebar-item.directive';\r\n\r\nimport {\r\n  createState,\r\n  createStateInjector,\r\n  createStateProvider,\r\n  createStateToken,\r\n} from 'ng-primitives/state';\r\n\r\nexport const FlowbiteSidebarItemStateToken = createStateToken<SidebarItem>('Flowbite SidebarItem');\r\nexport const provideFlowbiteSidebarItemState = createStateProvider(FlowbiteSidebarItemStateToken);\r\nexport const injectFlowbiteSidebarItemState = createStateInjector(FlowbiteSidebarItemStateToken);\r\nexport const flowbiteSidebarItemState = createState(FlowbiteSidebarItemStateToken);\r\n","import { injectFlowbiteSidebarItemConfig } from '../config/sidebar-item-config';\r\nimport { injectFlowbiteSidebarState } from '../sidebar/sidebar-state';\r\nimport { flowbiteSidebarItemState, provideFlowbiteSidebarItemState } from './sidebar-item-state';\r\nimport type { FlowbiteSidebarItemTheme } from './theme';\r\n\r\nimport { colorToTheme, mergeDeep, type DeepPartial } from 'flowbite-angular';\r\nimport { BaseButton } from 'flowbite-angular/button';\r\n\r\nimport { computed, Directive, input } from '@angular/core';\r\nimport { NgpButton } from 'ng-primitives/button';\r\nimport { NgpFocus } from 'ng-primitives/interactions';\r\nimport { twMerge } from 'tailwind-merge';\r\n\r\n@Directive({\r\n  standalone: true,\r\n  selector: `\r\n    a[flowbiteSidebarItem],\r\n    button[flowbiteSidebarItem]\r\n  `,\r\n  exportAs: 'flowbiteSidebarItem',\r\n  hostDirectives: [\r\n    {\r\n      directive: BaseButton,\r\n      inputs: [],\r\n      outputs: [],\r\n    },\r\n    {\r\n      directive: NgpButton,\r\n      inputs: ['disabled:disabled'],\r\n      outputs: [],\r\n    },\r\n    {\r\n      directive: NgpFocus,\r\n      inputs: ['ngpFocusDisabled:focusDisabled'],\r\n      outputs: ['ngpFocus'],\r\n    },\r\n  ],\r\n  providers: [provideFlowbiteSidebarItemState()],\r\n  host: {\r\n    '[class]': `theme().host.root`,\r\n    '(click)': 'onClick()',\r\n  },\r\n})\r\nexport class SidebarItem {\r\n  readonly config = injectFlowbiteSidebarItemConfig();\r\n  readonly sidebarState = injectFlowbiteSidebarState();\r\n\r\n  /**\r\n   * @see {@link injectFlowbiteSidebarItemConfig}\r\n   */\r\n  readonly customTheme = input<DeepPartial<FlowbiteSidebarItemTheme>>(this.config.customTheme);\r\n\r\n  readonly theme = computed(() => {\r\n    const mergedTheme = mergeDeep(this.config.baseTheme, this.state.customTheme());\r\n\r\n    return {\r\n      host: {\r\n        root: twMerge(\r\n          mergedTheme.host.base,\r\n          mergedTheme.host.transition,\r\n          mergedTheme.host.focus,\r\n          mergedTheme.host.disabled,\r\n          colorToTheme(mergedTheme.host.color, this.sidebarState().color())\r\n        ),\r\n      },\r\n    };\r\n  });\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  readonly state = flowbiteSidebarItemState<SidebarItem>(this);\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  onClick(): void {\r\n    this.toggleSidebar();\r\n  }\r\n\r\n  /**\r\n   * @internal\r\n   */\r\n  toggleSidebar(): void {\r\n    this.sidebarState().toggle();\r\n  }\r\n}\r\n","/* Sidebar */\r\nexport * from './sidebar/sidebar.directive';\r\nexport * from './sidebar/sidebar-state';\r\nexport * from './sidebar/theme';\r\n/* Config */\r\nexport * from './config/sidebar-config';\r\n\r\n/* SidebarContent */\r\nexport * from './sidebar-content/sidebar-content.component';\r\nexport * from './sidebar-content/sidebar-content-state';\r\nexport * from './sidebar-content/theme';\r\n/* Config */\r\nexport * from './config/sidebar-content-config';\r\n\r\n/* SidebarToggle */\r\nexport * from './sidebar-toggle/sidebar-toggle.directive';\r\nexport * from './sidebar-toggle/sidebar-toggle-state';\r\nexport * from './sidebar-toggle/theme';\r\n/* Config */\r\nexport * from './config/sidebar-toggle-config';\r\n\r\n/* SidebarItem */\r\nexport * from './sidebar-item/sidebar-item.directive';\r\nexport * from './sidebar-item/sidebar-item-state';\r\nexport * from './sidebar-item/theme';\r\n/* Config */\r\nexport * from './config/sidebar-item-config';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAkBO,MAAM,oBAAoB,GAAyB,WAAW,CAAC;AACpE,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,kDAAkD;AACxD,QAAA,UAAU,EAAE,EAAE;AACd,QAAA,IAAI,EAAE;AACJ,YAAA,EAAE,EAAE,yBAAyB;AAC7B,YAAA,GAAG,EAAE,KAAK;AACX,SAAA;AACF,KAAA;AACF,CAAA;;ACAM,MAAM,4BAA4B,GAA0B;AACjE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