flowbite-angular 1.0.0-alpha.6 → 1.0.0

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.
Files changed (56) hide show
  1. package/README.md +11 -5
  2. package/accordion/README.md +2 -1
  3. package/accordion/accordion-content.component.d.ts +4 -0
  4. package/accordion/accordion-content.theme.d.ts +2 -0
  5. package/accordion/accordion.component.d.ts +0 -13
  6. package/accordion/accordion.theme.d.ts +1 -5
  7. package/alert/README.md +2 -1
  8. package/badge/README.md +2 -1
  9. package/breadcrumb/README.md +2 -1
  10. package/button/README.md +2 -1
  11. package/core/README.md +2 -1
  12. package/dark-theme-toggle/README.md +2 -1
  13. package/dropdown/README.md +2 -1
  14. package/esm2022/accordion/accordion-content.component.mjs +2 -1
  15. package/esm2022/accordion/accordion-content.theme.mjs +6 -2
  16. package/esm2022/accordion/accordion-content.theme.service.mjs +2 -2
  17. package/esm2022/accordion/accordion-title.theme.mjs +3 -3
  18. package/esm2022/accordion/accordion.component.mjs +2 -4
  19. package/esm2022/accordion/accordion.theme.mjs +1 -13
  20. package/esm2022/accordion/accordion.theme.service.mjs +2 -2
  21. package/esm2022/alert/alert.component.mjs +7 -3
  22. package/esm2022/dark-theme-toggle/dark-theme-toggle.component.mjs +13 -5
  23. package/esm2022/dropdown/dropdown.component.mjs +19 -5
  24. package/esm2022/modal/modal-header.component.mjs +7 -3
  25. package/esm2022/modal/modal.component.mjs +7 -3
  26. package/esm2022/navbar/navbar-toggle.component.mjs +11 -3
  27. package/esm2022/scroll-top/scroll-top.component.mjs +7 -3
  28. package/esm2022/sidebar/sidebar-item-group.component.mjs +7 -3
  29. package/esm2022/sidebar/sidebar-item.component.mjs +15 -5
  30. package/fesm2022/flowbite-angular-accordion.mjs +10 -19
  31. package/fesm2022/flowbite-angular-accordion.mjs.map +1 -1
  32. package/fesm2022/flowbite-angular-alert.mjs +6 -2
  33. package/fesm2022/flowbite-angular-alert.mjs.map +1 -1
  34. package/fesm2022/flowbite-angular-dark-theme-toggle.mjs +12 -4
  35. package/fesm2022/flowbite-angular-dark-theme-toggle.mjs.map +1 -1
  36. package/fesm2022/flowbite-angular-dropdown.mjs +18 -4
  37. package/fesm2022/flowbite-angular-dropdown.mjs.map +1 -1
  38. package/fesm2022/flowbite-angular-modal.mjs +12 -4
  39. package/fesm2022/flowbite-angular-modal.mjs.map +1 -1
  40. package/fesm2022/flowbite-angular-navbar.mjs +10 -2
  41. package/fesm2022/flowbite-angular-navbar.mjs.map +1 -1
  42. package/fesm2022/flowbite-angular-scroll-top.mjs +6 -2
  43. package/fesm2022/flowbite-angular-scroll-top.mjs.map +1 -1
  44. package/fesm2022/flowbite-angular-sidebar.mjs +20 -6
  45. package/fesm2022/flowbite-angular-sidebar.mjs.map +1 -1
  46. package/icon/README.md +2 -1
  47. package/indicator/README.md +2 -1
  48. package/modal/README.md +2 -1
  49. package/navbar/README.md +2 -1
  50. package/package.json +1 -1
  51. package/router-link/README.md +2 -1
  52. package/router-link-active/README.md +2 -1
  53. package/sanitize-html/README.md +2 -1
  54. package/scroll-top/README.md +2 -1
  55. package/sidebar/README.md +2 -1
  56. package/utils/README.md +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"flowbite-angular-accordion.mjs","sources":["../../../../libs/flowbite-angular/accordion/accordion-content.theme.service.ts","../../../../libs/flowbite-angular/accordion/accordion-content.component.ts","../../../../libs/flowbite-angular/accordion/accordion-panel.theme.service.ts","../../../../libs/flowbite-angular/accordion/accordion-title.theme.service.ts","../../../../libs/flowbite-angular/accordion/accordion-title.component.ts","../../../../libs/flowbite-angular/accordion/accordion-panel.component.ts","../../../../libs/flowbite-angular/accordion/accordion.theme.service.ts","../../../../libs/flowbite-angular/accordion/accordion.component.ts","../../../../libs/flowbite-angular/accordion/accordion.theme.ts","../../../../libs/flowbite-angular/accordion/accordion-content.theme.ts","../../../../libs/flowbite-angular/accordion/accordion-panel.theme.ts","../../../../libs/flowbite-angular/accordion/accordion-title.theme.ts","../../../../libs/flowbite-angular/accordion/flowbite-angular-accordion.ts"],"sourcesContent":["import type {\n AccordionContentClass,\n AccordionContentProperties,\n AccordionContentTheme,\n} from './accordion-content.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `AccordionContentTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN = new InjectionToken<AccordionContentTheme>(\n 'FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccordionContentThemeService\n implements FlowbiteThemeService<AccordionContentProperties>\n{\n private readonly baseTheme = inject(FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN);\n\n public getClasses(properties: AccordionContentProperties): AccordionContentClass {\n const theme: AccordionContentTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: AccordionContentClass = {\n rootClass: twMerge(\n theme.root.base,\n theme.root.color[properties.color],\n theme.root.isOpen[properties.isOpen]\n ),\n };\n\n return output;\n }\n}\n","import type { AccordionContentClass, AccordionContentTheme } from './accordion-content.theme';\nimport { AccordionContentThemeService } from './accordion-content.theme.service';\nimport { AccordionPanelComponent } from './accordion-panel.component';\nimport type { AccordionColors } from './accordion.theme';\n\nimport { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';\nimport type { DeepPartial } from 'flowbite-angular';\n\nimport { NgClass, NgIf } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/accordion/\n */\n@Component({\n standalone: true,\n imports: [NgIf, NgClass],\n selector: 'flowbite-accordion-content',\n template: `\n <ng-container *ngIf=\"accordionPanelComponent.isOpen()\">\n <ng-content />\n </ng-container>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccordionContentComponent extends BaseComponent<AccordionContentClass> {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(AccordionContentThemeService);\n /**\n * The parent `AccordionPanelComponent`\n */\n public readonly accordionPanelComponent = inject(AccordionPanelComponent);\n\n //#region properties\n /**\n * Set the accordion content color\n * \n @default `AccordionPanelComponent`'s color\n */\n public color = model<keyof AccordionColors>(this.accordionPanelComponent.color());\n /**\n * Set the custom style for this accordion content\n */\n public customStyle = model<DeepPartial<AccordionContentTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): AccordionContentClass {\n return this.themeService.getClasses({\n color: this.accordionPanelComponent.accordionComponent.color(),\n isOpen: booleanToFlowbiteBoolean(this.accordionPanelComponent.isOpen()),\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n}\n","import type {\n AccordionPanelClass,\n AccordionPanelProperties,\n AccordionPanelTheme,\n} from './accordion-panel.theme';\nimport type { AccordionClass } from './accordion.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `AccordionPanelTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_ACCORDION_PANEL_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_ACCORDION_PANEL_THEME_TOKEN = new InjectionToken<AccordionPanelTheme>(\n 'FLOWBITE_ACCORDION_PANEL_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccordionPanelThemeService implements FlowbiteThemeService<AccordionPanelProperties> {\n private readonly baseTheme = inject(FLOWBITE_ACCORDION_PANEL_THEME_TOKEN);\n\n public getClasses(properties: AccordionPanelProperties): AccordionClass {\n const theme: AccordionPanelTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: AccordionPanelClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import type {\n AccordionTitleClass,\n AccordionTitleProperties,\n AccordionTitleTheme,\n} from './accordion-title.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `AccordionTitleTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_ACCORDION_TITLE_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_ACCORDION_TITLE_THEME_TOKEN = new InjectionToken<AccordionTitleTheme>(\n 'FLOWBITE_ACCORDION_TITLE_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccordionTitleThemeService implements FlowbiteThemeService<AccordionTitleProperties> {\n private readonly baseTheme = inject(FLOWBITE_ACCORDION_TITLE_THEME_TOKEN);\n\n public getClasses(properties: AccordionTitleProperties): AccordionTitleClass {\n const theme: AccordionTitleTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: AccordionTitleClass = {\n rootClass: twMerge(\n theme.root.base,\n theme.root.color[properties.color],\n theme.root.isFlush[properties.isFlush],\n theme.root.isOpen[properties.isOpen]\n ),\n textClass: twMerge(theme.text.base),\n };\n\n return output;\n }\n}\n","import { AccordionPanelComponent } from './accordion-panel.component';\nimport type { AccordionTitleClass, AccordionTitleTheme } from './accordion-title.theme';\nimport { AccordionTitleThemeService } from './accordion-title.theme.service';\nimport type { AccordionColors } from './accordion.theme';\n\nimport { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';\nimport type { DeepPartial } from 'flowbite-angular';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { CHEVRON_DOWN_SVG_ICON } from 'flowbite-angular/utils';\n\nimport { NgClass } from '@angular/common';\nimport type { OnInit } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * @see https://flowbite.com/docs/components/accordion/\n */\n@Component({\n standalone: true,\n imports: [NgClass, IconComponent],\n selector: 'flowbite-accordion-title',\n template: `\n <h2 [ngClass]=\"contentClasses().textClass\">\n <ng-content />\n </h2>\n <flowbite-icon\n svgIcon=\"flowbite-angular:chevron-down\"\n class=\"h-6 w-6 shrink-0 duration-200\"\n [class.rotate-180]=\"accordionPanelComponent.isOpen()\" />\n `,\n host: {\n '(click)': 'onClick()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccordionTitleComponent extends BaseComponent<AccordionTitleClass> implements OnInit {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(AccordionTitleThemeService);\n /**\n * The parent `AccordionPanelComponent`\n */\n public readonly accordionPanelComponent = inject(AccordionPanelComponent);\n /**\n * `IconRegistry` service\n */\n public readonly iconRegistry = inject(IconRegistry);\n /**\n * `DomSanitizer` service\n */\n public readonly domSanitizer = inject(DomSanitizer);\n\n //#region properties\n /**\n * Set the accordion title color\n *\n * @default `AccordionPanelComponents`'s color\n */\n public color = model<keyof AccordionColors>(this.accordionPanelComponent.color());\n /**\n * Set the custom style for this accordion title\n */\n public customStyle = model<DeepPartial<AccordionTitleTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): AccordionTitleClass {\n return this.themeService.getClasses({\n color: this.accordionPanelComponent.accordionComponent.color(),\n isFlush: booleanToFlowbiteBoolean(this.accordionPanelComponent.accordionComponent.isFlush()),\n isOpen: booleanToFlowbiteBoolean(this.accordionPanelComponent.isOpen()),\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'chevron-down',\n this.domSanitizer.bypassSecurityTrustHtml(CHEVRON_DOWN_SVG_ICON)\n );\n }\n //#endregion\n\n /**\n * Toggle the parent `AccordionPanelComponent`'s isOpen\n */\n public onClick(): void {\n this.accordionPanelComponent.toggleVisibility();\n }\n}\n","import { AccordionContentComponent } from './accordion-content.component';\nimport type { AccordionPanelClass, AccordionPanelTheme } from './accordion-panel.theme';\nimport { AccordionPanelThemeService } from './accordion-panel.theme.service';\nimport { AccordionTitleComponent } from './accordion-title.component';\nimport { AccordionComponent } from './accordion.component';\nimport type { AccordionColors } from './accordion.theme';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\n\nimport type { OnInit } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n inject,\n model,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/accordion/\n */\n@Component({\n standalone: true,\n imports: [],\n selector: 'flowbite-accordion-panel',\n template: `<ng-content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccordionPanelComponent extends BaseComponent<AccordionPanelClass> implements OnInit {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(AccordionPanelThemeService);\n /**\n * The parent `AccordionComponent`\n */\n public readonly accordionComponent = inject(AccordionComponent);\n /**\n * The child `AccordionTitleComponent`\n */\n public readonly accordionTitleChild = contentChild(AccordionTitleComponent);\n /**\n * The child `AccordionContentComponent`\n */\n public readonly accordionContentChild = contentChild(AccordionContentComponent);\n\n //#region properties\n /**\n * Set the accordion panel color\n *\n * @default `AccordionComponent`'s color\n */\n public color = model<keyof AccordionColors>(this.accordionComponent.color());\n /**\n * Set if the accordion panel is open or not\n *\n * @default false\n */\n public isOpen = model<boolean>(false);\n /**\n * Set the custom style for this accordion panel\n */\n public customStyle = model<DeepPartial<AccordionPanelTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): AccordionPanelClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n\n public override verify(): void {\n if (this.accordionTitleChild() === undefined) {\n throw new Error('No AccordionTitleComponent available');\n }\n if (this.accordionContentChild() == undefined) {\n throw new Error('No AccordionContentComponent available');\n }\n }\n //#endregion\n\n /**\n * Toggle isOpen for itself and close every other `AccordionPanelComponent` if the parent `AccordionComponent`'s isAlwaysOpen is false\n *\n * @param isOpen Instead of toggle, it can set the value provided\n */\n public toggleVisibility(isOpen?: boolean): void {\n if (isOpen === undefined) {\n isOpen = untracked(() => !this.isOpen());\n }\n\n if (isOpen && untracked(() => !this.accordionComponent.isAlwaysOpen())) {\n this.accordionComponent.closeAll();\n }\n\n this.isOpen.set(isOpen);\n }\n}\n","import type { AccordionClass, AccordionProperties, AccordionTheme } from './accordion.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `AccordionTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_ACCORDION_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_ACCORDION_THEME_TOKEN = new InjectionToken<AccordionTheme>(\n 'FLOWBITE_ACCORDION_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccordionThemeService implements FlowbiteThemeService<AccordionProperties> {\n private readonly baseTheme = inject(FLOWBITE_ACCORDION_THEME_TOKEN);\n\n public getClasses(properties: AccordionProperties): AccordionClass {\n const theme: AccordionTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: AccordionClass = {\n rootClass: twMerge(\n theme.root.base,\n theme.root.isFlush[properties.isFlush],\n theme.root.color[properties.color]\n ),\n };\n\n return output;\n }\n}\n","import { AccordionPanelComponent } from './accordion-panel.component';\nimport type { AccordionClass, AccordionColors, AccordionTheme } from './accordion.theme';\nimport { AccordionThemeService } from './accordion.theme.service';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/accordion/\n */\n@Component({\n standalone: true,\n imports: [NgClass],\n selector: 'flowbite-accordion',\n template: `<ng-content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccordionComponent extends BaseComponent<AccordionClass> {\n /**\n * Service injected used to generated class\n */\n public readonly themeService = inject(AccordionThemeService);\n /**\n * List of `AccordionPanelComponent`\n */\n public readonly accordionPanelChildren = contentChildren(AccordionPanelComponent);\n\n //#region properties\n /**\n * Does the opened `AccordionPanelComponent` stay open if another one is opening\n *\n * @default false\n */\n public isAlwaysOpen = model<boolean>(false);\n /**\n * Set the accordion color and every child default color\n *\n * @default primary\n */\n public color = model<keyof AccordionColors>('primary');\n /**\n * Set the accordion as flush or not\n *\n * @default false\n */\n public isFlush = model<boolean>(false);\n /**\n * Set the custom style for this accordion\n */\n public customStyle = model<DeepPartial<AccordionTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): AccordionClass {\n return this.themeService.getClasses({\n color: this.color(),\n isFlush: booleanToFlowbiteBoolean(this.isFlush()),\n customStyle: this.customStyle(),\n });\n }\n\n public override verify(): void {\n if (this.accordionPanelChildren().length === 0) {\n throw new Error('No AccordionPanelComponent available');\n }\n }\n //#endregion\n\n /**\n * Close every `AccordionPanelComponent`\n */\n public closeAll(): void {\n this.accordionPanelChildren().forEach((child) => child.toggleVisibility(false));\n }\n}\n","import type { DeepPartial, FlowbiteBoolean, FlowbiteClass, FlowbiteColors } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n//#region Component theme option\n/**\n * Available colors for `AccordionComponent`\n */\nexport interface AccordionColors\n extends Pick<FlowbiteColors, 'primary' | 'light' | 'blue' | 'red' | 'green' | 'yellow'> {\n [key: string]: string;\n}\n//#endregion\n\n/**\n * Required properties for the class generation of `AccordionComponent`\n */\nexport interface AccordionProperties {\n color: keyof AccordionColors;\n isFlush: keyof FlowbiteBoolean;\n customStyle: DeepPartial<AccordionTheme>;\n}\n\n/**\n * Theme definition for `AccordionComponent`\n */\nexport interface AccordionTheme {\n root: {\n base: string;\n color: AccordionColors;\n isFlush: FlowbiteBoolean;\n };\n}\n\n/**\n * Default theme for `AccordionComponent`\n */\nexport const accordionTheme: AccordionTheme = createTheme({\n root: {\n base: '',\n color: {\n primary:\n 'border-primary-200 dark:border-primary-700 divide-primary-200 dark:divide-primary-700',\n light: 'border-gray-300 dark:border-gray-700 divide-gray-200 dark:divide-gray-700',\n blue: 'border-blue-200 dark:border-blue-700 divide-blue-200 dark:divide-blue-700',\n red: 'border-red-200 dark:border-red-700 divide-red-200 dark:divide-red-700',\n green: 'border-green-200 dark:border-green-700 divide-green-200 dark:divide-green-700',\n yellow: 'border-yellow-200 dark:border-yellow-700 divide-yellow-200 dark:divide-yellow-700',\n },\n isFlush: {\n enabled: '',\n disabled: 'rounded-lg border shadow-sm',\n },\n },\n});\n\n/**\n * Generated class definition for `AccordionComponent`\n */\nexport type AccordionClass = FlowbiteClass;\n","import type { AccordionColors } from './accordion.theme';\n\nimport type { DeepPartial, FlowbiteBoolean, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for the class generation of `AccordionContentComponent`\n */\nexport interface AccordionContentProperties {\n color: keyof AccordionColors;\n isOpen: keyof FlowbiteBoolean;\n customStyle: DeepPartial<AccordionContentTheme>;\n}\n\n/**\n * Theme definition for `AccordionContentComponent`\n */\nexport interface AccordionContentTheme {\n root: {\n base: string;\n color: AccordionColors;\n isOpen: FlowbiteBoolean;\n };\n}\n\n/**\n * Default theme for `AccordionContentComponent`\n */\nexport const accordionContentTheme: AccordionContentTheme = createTheme({\n root: {\n base: 'flex flex-col gap-2',\n color: {\n primary: 'border-primary-200 dark:border-primary-700',\n light: 'border-gray-200 dark:border-gray-700',\n blue: 'border-blue-200 dark:border-blue-700',\n red: 'border-red-200 dark:border-red-700',\n green: 'border-green-200 dark:border-green-700',\n yellow: 'border-yellow-200 dark:border-yellow-700',\n },\n isOpen: {\n enabled: 'p-5',\n disabled: '',\n },\n },\n});\n\n/**\n * Generated class definition for `AccordionContentComponent`\n */\nexport type AccordionContentClass = FlowbiteClass;\n","import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for th class generation of `AccordionPanelComponent`\n */\nexport interface AccordionPanelProperties {\n customStyle: DeepPartial<AccordionPanelTheme>;\n}\n\n/**\n * Theme definition for `AccordionPanelComponent`\n */\nexport interface AccordionPanelTheme {\n root: {\n base: string;\n };\n}\n\n/**\n * Default theme for `AccordionPanelComponent`\n */\nexport const accordionPanelTheme: AccordionPanelTheme = createTheme({\n root: {\n base: 'group',\n },\n});\n\n/**\n * Generated class definition for `AccordionPanelComponent`\n */\nexport type AccordionPanelClass = FlowbiteClass;\n","import type { AccordionColors } from './accordion.theme';\n\nimport type { DeepPartial, FlowbiteBoolean, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for the class generation of `AccordionTitleComponent`\n */\nexport interface AccordionTitleProperties {\n color: keyof AccordionColors;\n isOpen: keyof FlowbiteBoolean;\n isFlush: keyof FlowbiteBoolean;\n customStyle: DeepPartial<AccordionTitleTheme>;\n}\n\n/**\n * Theme definition for `AccordionTitleComponent`\n */\nexport interface AccordionTitleTheme {\n root: {\n base: string;\n color: AccordionColors;\n isFlush: FlowbiteBoolean;\n isOpen: FlowbiteBoolean;\n };\n text: {\n base: string;\n };\n}\n\n/**\n * Default theme for `AccordionTitleComponent`\n */\nexport const accordionTitleTheme: AccordionTitleTheme = createTheme({\n root: {\n base: 'cursor-pointer flex items-center p-5 justify-between group-first:rounded-t-lg',\n color: {\n primary:\n 'text-primary-900 dark:text-primary-50 border-primary-200 dark:border-primary-700 bg-primary-100 hover:bg-primary-100 dark:bg-primary-800 dark:hover:bg-primary-800',\n light:\n 'text-gray-900 dark:text-gray-50 border-gray-200 dark:border-gray-700 bg-gray-100 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-800',\n blue: 'text-blue-900 dark:text-blue-50 border-blue-200 dark:border-blue-700 bg-blue-100 hover:bg-blue-100 dark:bg-blue-800 dark:hover:bg-blue-800',\n red: 'text-red-900 dark:text-red-50 border-red-200 dark:border-red-700 bg-red-100 hover:bg-red-100 dark:bg-red-800 dark:hover:bg-red-800',\n green:\n 'text-green-900 dark:text-green-50 border-green-200 dark:border-green-700 bg-green-100 hover:bg-green-100 dark:bg-green-800 dark:hover:bg-green-800',\n yellow:\n 'text-yellow-900 dark:text-yellow-50 border-yellow-200 dark:border-yellow-700 bg-yellow-100 hover:bg-yellow-100 dark:bg-yellow-800 dark:hover:bg-yellow-800',\n },\n isFlush: {\n enabled: 'border-b bg-transparent hover:bg-transparent',\n disabled: '',\n },\n isOpen: {\n enabled: '',\n disabled: 'bg-transparent dark:bg-transparent text-gray-500 ',\n },\n },\n text: {\n base: 'font-semibold text-base',\n },\n});\n\n/**\n * Generated class definition for `AccordionTitleComponent`\n */\nexport interface AccordionTitleClass extends FlowbiteClass {\n textClass: string;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAYA;;;;;;;AAOG;MACU,sCAAsC,GAAG,IAAI,cAAc,CACtE,wCAAwC,EACxC;MAKW,4BAA4B,CAAA;AAHzC,IAAA,WAAA,GAAA;AAMmB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sCAAsC,CAAC,CAAC;AAe7E,KAAA;AAbQ,IAAA,UAAU,CAAC,UAAsC,EAAA;AACtD,QAAA,MAAM,K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B,WAAW,CAAC;AAClE,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,OAAO;AACd,KAAA;AACF,CAAA;;ACID;;AAEG;AACI,MAAM,mBAAmB,GAAwB,WAAW,CAAC;AAClE,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,+EAA+E;AACrF,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EACL,oKAAoK;AACtK,YAAA,KAAK,EACH,4IAA4I;AAC9I,YAAA,IAAI,EAAE,4IAA4I;AAClJ,YAAA,GAAG,EAAE,oIAAoI;AACzI,YAAA,KAAK,EACH,oJAAoJ;AACtJ,YAAA,MAAM,EACJ,4JAA4J;AAC/J,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,8CAA8C;AACvD,YAAA,QAAQ,EAAE,EAAE;AACb,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE,EAAE;AACX,YAAA,QAAQ,EAAE,mDAAmD;AAC9D,SAAA;AACF,KAAA;AACD,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,yBAAyB;AAChC,KAAA;AACF,CAAA;;AC5DD;;AAEG;;;;"}
1
+ {"version":3,"file":"flowbite-angular-accordion.mjs","sources":["../../../../libs/flowbite-angular/accordion/accordion-content.theme.service.ts","../../../../libs/flowbite-angular/accordion/accordion-content.component.ts","../../../../libs/flowbite-angular/accordion/accordion-panel.theme.service.ts","../../../../libs/flowbite-angular/accordion/accordion-title.theme.service.ts","../../../../libs/flowbite-angular/accordion/accordion-title.component.ts","../../../../libs/flowbite-angular/accordion/accordion-panel.component.ts","../../../../libs/flowbite-angular/accordion/accordion.theme.service.ts","../../../../libs/flowbite-angular/accordion/accordion.component.ts","../../../../libs/flowbite-angular/accordion/accordion.theme.ts","../../../../libs/flowbite-angular/accordion/accordion-content.theme.ts","../../../../libs/flowbite-angular/accordion/accordion-panel.theme.ts","../../../../libs/flowbite-angular/accordion/accordion-title.theme.ts","../../../../libs/flowbite-angular/accordion/flowbite-angular-accordion.ts"],"sourcesContent":["import type {\n AccordionContentClass,\n AccordionContentProperties,\n AccordionContentTheme,\n} from './accordion-content.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `AccordionContentTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN = new InjectionToken<AccordionContentTheme>(\n 'FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccordionContentThemeService\n implements FlowbiteThemeService<AccordionContentProperties>\n{\n private readonly baseTheme = inject(FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN);\n\n public getClasses(properties: AccordionContentProperties): AccordionContentClass {\n const theme: AccordionContentTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: AccordionContentClass = {\n rootClass: twMerge(\n theme.root.base,\n theme.root.color[properties.color],\n theme.root.isOpen[properties.isOpen],\n theme.root.isFlush[properties.isFlush]\n ),\n };\n\n return output;\n }\n}\n","import type { AccordionContentClass, AccordionContentTheme } from './accordion-content.theme';\nimport { AccordionContentThemeService } from './accordion-content.theme.service';\nimport { AccordionPanelComponent } from './accordion-panel.component';\nimport type { AccordionColors } from './accordion.theme';\n\nimport { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';\nimport type { DeepPartial } from 'flowbite-angular';\n\nimport { NgClass, NgIf } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/accordion/\n */\n@Component({\n standalone: true,\n imports: [NgIf, NgClass],\n selector: 'flowbite-accordion-content',\n template: `\n <ng-container *ngIf=\"accordionPanelComponent.isOpen()\">\n <ng-content />\n </ng-container>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccordionContentComponent extends BaseComponent<AccordionContentClass> {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(AccordionContentThemeService);\n /**\n * The parent `AccordionPanelComponent`\n */\n public readonly accordionPanelComponent = inject(AccordionPanelComponent);\n\n //#region properties\n /**\n * Set the accordion content color\n * \n @default `AccordionPanelComponent`'s color\n */\n public color = model<keyof AccordionColors>(this.accordionPanelComponent.color());\n /**\n * Set the custom style for this accordion content\n */\n public customStyle = model<DeepPartial<AccordionContentTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): AccordionContentClass {\n return this.themeService.getClasses({\n color: this.accordionPanelComponent.accordionComponent.color(),\n isOpen: booleanToFlowbiteBoolean(this.accordionPanelComponent.isOpen()),\n isFlush: booleanToFlowbiteBoolean(this.accordionPanelComponent.accordionComponent.isFlush()),\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n}\n","import type {\n AccordionPanelClass,\n AccordionPanelProperties,\n AccordionPanelTheme,\n} from './accordion-panel.theme';\nimport type { AccordionClass } from './accordion.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `AccordionPanelTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_ACCORDION_PANEL_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_ACCORDION_PANEL_THEME_TOKEN = new InjectionToken<AccordionPanelTheme>(\n 'FLOWBITE_ACCORDION_PANEL_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccordionPanelThemeService implements FlowbiteThemeService<AccordionPanelProperties> {\n private readonly baseTheme = inject(FLOWBITE_ACCORDION_PANEL_THEME_TOKEN);\n\n public getClasses(properties: AccordionPanelProperties): AccordionClass {\n const theme: AccordionPanelTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: AccordionPanelClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import type {\n AccordionTitleClass,\n AccordionTitleProperties,\n AccordionTitleTheme,\n} from './accordion-title.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `AccordionTitleTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_ACCORDION_TITLE_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_ACCORDION_TITLE_THEME_TOKEN = new InjectionToken<AccordionTitleTheme>(\n 'FLOWBITE_ACCORDION_TITLE_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccordionTitleThemeService implements FlowbiteThemeService<AccordionTitleProperties> {\n private readonly baseTheme = inject(FLOWBITE_ACCORDION_TITLE_THEME_TOKEN);\n\n public getClasses(properties: AccordionTitleProperties): AccordionTitleClass {\n const theme: AccordionTitleTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: AccordionTitleClass = {\n rootClass: twMerge(\n theme.root.base,\n theme.root.color[properties.color],\n theme.root.isFlush[properties.isFlush],\n theme.root.isOpen[properties.isOpen]\n ),\n textClass: twMerge(theme.text.base),\n };\n\n return output;\n }\n}\n","import { AccordionPanelComponent } from './accordion-panel.component';\nimport type { AccordionTitleClass, AccordionTitleTheme } from './accordion-title.theme';\nimport { AccordionTitleThemeService } from './accordion-title.theme.service';\nimport type { AccordionColors } from './accordion.theme';\n\nimport { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';\nimport type { DeepPartial } from 'flowbite-angular';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { CHEVRON_DOWN_SVG_ICON } from 'flowbite-angular/utils';\n\nimport { NgClass } from '@angular/common';\nimport type { OnInit } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * @see https://flowbite.com/docs/components/accordion/\n */\n@Component({\n standalone: true,\n imports: [NgClass, IconComponent],\n selector: 'flowbite-accordion-title',\n template: `\n <h2 [ngClass]=\"contentClasses().textClass\">\n <ng-content />\n </h2>\n <flowbite-icon\n svgIcon=\"flowbite-angular:chevron-down\"\n class=\"h-6 w-6 shrink-0 duration-200\"\n [class.rotate-180]=\"accordionPanelComponent.isOpen()\" />\n `,\n host: {\n '(click)': 'onClick()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccordionTitleComponent extends BaseComponent<AccordionTitleClass> implements OnInit {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(AccordionTitleThemeService);\n /**\n * The parent `AccordionPanelComponent`\n */\n public readonly accordionPanelComponent = inject(AccordionPanelComponent);\n /**\n * `IconRegistry` service\n */\n public readonly iconRegistry = inject(IconRegistry);\n /**\n * `DomSanitizer` service\n */\n public readonly domSanitizer = inject(DomSanitizer);\n\n //#region properties\n /**\n * Set the accordion title color\n *\n * @default `AccordionPanelComponents`'s color\n */\n public color = model<keyof AccordionColors>(this.accordionPanelComponent.color());\n /**\n * Set the custom style for this accordion title\n */\n public customStyle = model<DeepPartial<AccordionTitleTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): AccordionTitleClass {\n return this.themeService.getClasses({\n color: this.accordionPanelComponent.accordionComponent.color(),\n isFlush: booleanToFlowbiteBoolean(this.accordionPanelComponent.accordionComponent.isFlush()),\n isOpen: booleanToFlowbiteBoolean(this.accordionPanelComponent.isOpen()),\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'chevron-down',\n this.domSanitizer.bypassSecurityTrustHtml(CHEVRON_DOWN_SVG_ICON)\n );\n }\n //#endregion\n\n /**\n * Toggle the parent `AccordionPanelComponent`'s isOpen\n */\n public onClick(): void {\n this.accordionPanelComponent.toggleVisibility();\n }\n}\n","import { AccordionContentComponent } from './accordion-content.component';\nimport type { AccordionPanelClass, AccordionPanelTheme } from './accordion-panel.theme';\nimport { AccordionPanelThemeService } from './accordion-panel.theme.service';\nimport { AccordionTitleComponent } from './accordion-title.component';\nimport { AccordionComponent } from './accordion.component';\nimport type { AccordionColors } from './accordion.theme';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\n\nimport type { OnInit } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n inject,\n model,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/accordion/\n */\n@Component({\n standalone: true,\n imports: [],\n selector: 'flowbite-accordion-panel',\n template: `<ng-content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccordionPanelComponent extends BaseComponent<AccordionPanelClass> implements OnInit {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(AccordionPanelThemeService);\n /**\n * The parent `AccordionComponent`\n */\n public readonly accordionComponent = inject(AccordionComponent);\n /**\n * The child `AccordionTitleComponent`\n */\n public readonly accordionTitleChild = contentChild(AccordionTitleComponent);\n /**\n * The child `AccordionContentComponent`\n */\n public readonly accordionContentChild = contentChild(AccordionContentComponent);\n\n //#region properties\n /**\n * Set the accordion panel color\n *\n * @default `AccordionComponent`'s color\n */\n public color = model<keyof AccordionColors>(this.accordionComponent.color());\n /**\n * Set if the accordion panel is open or not\n *\n * @default false\n */\n public isOpen = model<boolean>(false);\n /**\n * Set the custom style for this accordion panel\n */\n public customStyle = model<DeepPartial<AccordionPanelTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): AccordionPanelClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n\n public override verify(): void {\n if (this.accordionTitleChild() === undefined) {\n throw new Error('No AccordionTitleComponent available');\n }\n if (this.accordionContentChild() == undefined) {\n throw new Error('No AccordionContentComponent available');\n }\n }\n //#endregion\n\n /**\n * Toggle isOpen for itself and close every other `AccordionPanelComponent` if the parent `AccordionComponent`'s isAlwaysOpen is false\n *\n * @param isOpen Instead of toggle, it can set the value provided\n */\n public toggleVisibility(isOpen?: boolean): void {\n if (isOpen === undefined) {\n isOpen = untracked(() => !this.isOpen());\n }\n\n if (isOpen && untracked(() => !this.accordionComponent.isAlwaysOpen())) {\n this.accordionComponent.closeAll();\n }\n\n this.isOpen.set(isOpen);\n }\n}\n","import type { AccordionClass, AccordionProperties, AccordionTheme } from './accordion.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `AccordionTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_ACCORDION_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_ACCORDION_THEME_TOKEN = new InjectionToken<AccordionTheme>(\n 'FLOWBITE_ACCORDION_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AccordionThemeService implements FlowbiteThemeService<AccordionProperties> {\n private readonly baseTheme = inject(FLOWBITE_ACCORDION_THEME_TOKEN);\n\n public getClasses(properties: AccordionProperties): AccordionClass {\n const theme: AccordionTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: AccordionClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import { AccordionPanelComponent } from './accordion-panel.component';\nimport type { AccordionClass, AccordionColors, AccordionTheme } from './accordion.theme';\nimport { AccordionThemeService } from './accordion.theme.service';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/accordion/\n */\n@Component({\n standalone: true,\n imports: [NgClass],\n selector: 'flowbite-accordion',\n template: `<ng-content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AccordionComponent extends BaseComponent<AccordionClass> {\n /**\n * Service injected used to generated class\n */\n public readonly themeService = inject(AccordionThemeService);\n /**\n * List of `AccordionPanelComponent`\n */\n public readonly accordionPanelChildren = contentChildren(AccordionPanelComponent);\n\n //#region properties\n /**\n * Does the opened `AccordionPanelComponent` stay open if another one is opening\n *\n * @default false\n */\n public isAlwaysOpen = model<boolean>(false);\n /**\n * Set the accordion color and every child default color\n *\n * @default primary\n */\n public color = model<keyof AccordionColors>('primary');\n /**\n * Set the accordion as flush or not\n *\n * @default false\n */\n public isFlush = model<boolean>(false);\n /**\n * Set the custom style for this accordion\n */\n public customStyle = model<DeepPartial<AccordionTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): AccordionClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n\n public override verify(): void {\n if (this.accordionPanelChildren().length === 0) {\n throw new Error('No AccordionPanelComponent available');\n }\n }\n //#endregion\n\n /**\n * Close every `AccordionPanelComponent`\n */\n public closeAll(): void {\n this.accordionPanelChildren().forEach((child) => child.toggleVisibility(false));\n }\n}\n","import type { DeepPartial, FlowbiteClass, FlowbiteColors } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n//#region Component theme option\n/**\n * Available colors for `AccordionComponent`\n */\nexport interface AccordionColors\n extends Pick<FlowbiteColors, 'primary' | 'light' | 'blue' | 'red' | 'green' | 'yellow'> {\n [key: string]: string;\n}\n//#endregion\n\n/**\n * Required properties for the class generation of `AccordionComponent`\n */\nexport interface AccordionProperties {\n customStyle: DeepPartial<AccordionTheme>;\n}\n\n/**\n * Theme definition for `AccordionComponent`\n */\nexport interface AccordionTheme {\n root: {\n base: string;\n };\n}\n\n/**\n * Default theme for `AccordionComponent`\n */\nexport const accordionTheme: AccordionTheme = createTheme({\n root: {\n base: '',\n },\n});\n\n/**\n * Generated class definition for `AccordionComponent`\n */\nexport type AccordionClass = FlowbiteClass;\n","import type { AccordionColors } from './accordion.theme';\n\nimport type { DeepPartial, FlowbiteBoolean, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for the class generation of `AccordionContentComponent`\n */\nexport interface AccordionContentProperties {\n color: keyof AccordionColors;\n isOpen: keyof FlowbiteBoolean;\n isFlush: keyof FlowbiteBoolean;\n customStyle: DeepPartial<AccordionContentTheme>;\n}\n\n/**\n * Theme definition for `AccordionContentComponent`\n */\nexport interface AccordionContentTheme {\n root: {\n base: string;\n color: AccordionColors;\n isOpen: FlowbiteBoolean;\n isFlush: FlowbiteBoolean;\n };\n}\n\n/**\n * Default theme for `AccordionContentComponent`\n */\nexport const accordionContentTheme: AccordionContentTheme = createTheme({\n root: {\n base: 'flex flex-col',\n color: {\n primary: 'border-primary-200 dark:border-primary-700',\n light: 'border-gray-200 dark:border-gray-700',\n blue: 'border-blue-200 dark:border-blue-700',\n red: 'border-red-200 dark:border-red-700',\n green: 'border-green-200 dark:border-green-700',\n yellow: 'border-yellow-200 dark:border-yellow-700',\n },\n isOpen: {\n enabled: 'p-5',\n disabled: '',\n },\n isFlush: {\n enabled: '',\n disabled: 'border-x border-t group-last:border-b',\n },\n },\n});\n\n/**\n * Generated class definition for `AccordionContentComponent`\n */\nexport type AccordionContentClass = FlowbiteClass;\n","import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for th class generation of `AccordionPanelComponent`\n */\nexport interface AccordionPanelProperties {\n customStyle: DeepPartial<AccordionPanelTheme>;\n}\n\n/**\n * Theme definition for `AccordionPanelComponent`\n */\nexport interface AccordionPanelTheme {\n root: {\n base: string;\n };\n}\n\n/**\n * Default theme for `AccordionPanelComponent`\n */\nexport const accordionPanelTheme: AccordionPanelTheme = createTheme({\n root: {\n base: 'group',\n },\n});\n\n/**\n * Generated class definition for `AccordionPanelComponent`\n */\nexport type AccordionPanelClass = FlowbiteClass;\n","import type { AccordionColors } from './accordion.theme';\n\nimport type { DeepPartial, FlowbiteBoolean, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for the class generation of `AccordionTitleComponent`\n */\nexport interface AccordionTitleProperties {\n color: keyof AccordionColors;\n isOpen: keyof FlowbiteBoolean;\n isFlush: keyof FlowbiteBoolean;\n customStyle: DeepPartial<AccordionTitleTheme>;\n}\n\n/**\n * Theme definition for `AccordionTitleComponent`\n */\nexport interface AccordionTitleTheme {\n root: {\n base: string;\n color: AccordionColors;\n isFlush: FlowbiteBoolean;\n isOpen: FlowbiteBoolean;\n };\n text: {\n base: string;\n };\n}\n\n/**\n * Default theme for `AccordionTitleComponent`\n */\nexport const accordionTitleTheme: AccordionTitleTheme = createTheme({\n root: {\n base: 'cursor-pointer flex items-center p-5 justify-between group-first:rounded-t-lg',\n color: {\n primary:\n 'text-primary-900 dark:text-primary-50 border-primary-200 dark:border-primary-700 bg-primary-100 hover:bg-primary-100 dark:bg-primary-800 dark:hover:bg-primary-800',\n light:\n 'text-gray-900 dark:text-gray-50 border-gray-200 dark:border-gray-700 bg-gray-100 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-800',\n blue: 'text-blue-900 dark:text-blue-50 border-blue-200 dark:border-blue-700 bg-blue-100 hover:bg-blue-100 dark:bg-blue-800 dark:hover:bg-blue-800',\n red: 'text-red-900 dark:text-red-50 border-red-200 dark:border-red-700 bg-red-100 hover:bg-red-100 dark:bg-red-800 dark:hover:bg-red-800',\n green:\n 'text-green-900 dark:text-green-50 border-green-200 dark:border-green-700 bg-green-100 hover:bg-green-100 dark:bg-green-800 dark:hover:bg-green-800',\n yellow:\n 'text-yellow-900 dark:text-yellow-50 border-yellow-200 dark:border-yellow-700 bg-yellow-100 hover:bg-yellow-100 dark:bg-yellow-800 dark:hover:bg-yellow-800',\n },\n isFlush: {\n enabled: 'border-b bg-transparent hover:bg-transparent',\n disabled: 'border border-b-0',\n },\n isOpen: {\n enabled: '',\n disabled: 'bg-transparent dark:bg-transparent',\n },\n },\n text: {\n base: 'font-semibold text-base',\n },\n});\n\n/**\n * Generated class definition for `AccordionTitleComponent`\n */\nexport interface AccordionTitleClass extends FlowbiteClass {\n textClass: string;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAYA;;;;;;;AAOG;MACU,sCAAsC,GAAG,IAAI,cAAc,CACtE,wCAAwC,EACxC;MAKW,4BAA4B,CAAA;AAHzC,IAAA,WAAA,GAAA;AAMmB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sCAAsC,CAAC,CAAC;AAgB7E,KAAA;AAdQ,IAAA,UAAU,CAAC,UAAsC,EAAA;AACtD,QAAA,MAAM,KAAK,GAA0B,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;AAExF,QAAA,MAAM,MAAM,GAA0B;AACpC,YAAA,SAAS,EAAE,OAAO,CAChB,KAAK,CAAC,IAAI,CAAC,IAAI,EACf,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,EAClC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,EACpC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CACvC;SACF,CAAC;AAEF,QAA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AEG;;;;"}
@@ -141,7 +141,9 @@ class AlertComponent extends BaseComponent {
141
141
  aria-label="Close"
142
142
  (click)="onDismissClick()">
143
143
  <span class="sr-only">Close</span>
144
- <flowbite-icon svgIcon="flowbite-angular:close" class="h-5 w-5" />
144
+ <flowbite-icon
145
+ svgIcon="flowbite-angular:close"
146
+ class="h-5 w-5" />
145
147
  </button>
146
148
  </div>
147
149
  <ng-container [ngTemplateOutlet]="additionalContent()"></ng-container>
@@ -166,7 +168,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImpor
166
168
  aria-label="Close"
167
169
  (click)="onDismissClick()">
168
170
  <span class="sr-only">Close</span>
169
- <flowbite-icon svgIcon="flowbite-angular:close" class="h-5 w-5" />
171
+ <flowbite-icon
172
+ svgIcon="flowbite-angular:close"
173
+ class="h-5 w-5" />
170
174
  </button>
171
175
  </div>
172
176
  <ng-container [ngTemplateOutlet]="additionalContent()"></ng-container>
@@ -1 +1 @@
1
- {"version":3,"file":"flowbite-angular-alert.mjs","sources":["../../../../libs/flowbite-angular/alert/alert.theme.service.ts","../../../../libs/flowbite-angular/alert/alert.component.ts","../../../../libs/flowbite-angular/alert/alert.theme.ts","../../../../libs/flowbite-angular/alert/flowbite-angular-alert.ts"],"sourcesContent":["import type { AlertClass, AlertProperties, AlertTheme } from './alert.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `AlertTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_ALERT_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_ALERT_THEME_TOKEN = new InjectionToken<AlertTheme>(\n 'FLOWBITE_ALERT_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AlertThemeService implements FlowbiteThemeService<AlertProperties> {\n private readonly baseTheme = inject(FLOWBITE_ALERT_THEME_TOKEN);\n\n public getClasses(properties: AlertProperties): AlertClass {\n const theme: AlertTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: AlertClass = {\n rootClass: twMerge(\n theme.root.base,\n theme.root.color[properties.color],\n theme.root.hasBorder[properties.hasBorder],\n theme.root.hasBorderAccent[properties.hasBorderAccent]\n ),\n closeButtonClass: twMerge(theme.closeButton.base, theme.closeButton.color[properties.color]),\n };\n\n return output;\n }\n}\n","import type { AlertClass, AlertColors, AlertTheme } from './alert.theme';\nimport { AlertThemeService } from './alert.theme.service';\n\nimport { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';\nimport type { DeepPartial } from 'flowbite-angular';\nimport { ButtonComponent } from 'flowbite-angular/button';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { CLOSE_SVG_ICON } from 'flowbite-angular/utils';\n\nimport { NgClass, NgIf, NgTemplateOutlet } from '@angular/common';\nimport type { OnInit, TemplateRef } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * @see https://flowbite.com/docs/components/alerts/\n */\n@Component({\n standalone: true,\n imports: [NgIf, NgClass, NgTemplateOutlet, IconComponent, ButtonComponent],\n selector: 'flowbite-alert',\n template: `\n <div class=\"flex items-center\">\n <ng-container [ngTemplateOutlet]=\"icon()\"></ng-container>\n <div>\n <ng-content />\n </div>\n <button\n type=\"button\"\n [ngClass]=\"contentClasses()!.closeButtonClass\"\n *ngIf=\"isDismissable()\"\n aria-label=\"Close\"\n (click)=\"onDismissClick()\">\n <span class=\"sr-only\">Close</span>\n <flowbite-icon svgIcon=\"flowbite-angular:close\" class=\"h-5 w-5\" />\n </button>\n </div>\n <ng-container [ngTemplateOutlet]=\"additionalContent()\"></ng-container>\n `,\n host: {\n '[attr.role]': 'alert',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AlertComponent extends BaseComponent<AlertClass> implements OnInit {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(AlertThemeService);\n /**\n * `IcoRegistry` service\n */\n public readonly iconRegistry = inject(IconRegistry);\n /**\n * `DomSanitizer` service\n */\n public readonly domSanitizer = inject(DomSanitizer);\n\n //#region properties\n /**\n * Set the indicator color\n *\n * @default primary\n */\n public color = model<keyof AlertColors>('primary');\n /**\n * Set if the alert has border\n *\n * @default false\n */\n public hasBorder = model<boolean>(false);\n /**\n * Set if the alert has border accent\n *\n * @default false\n */\n public hasBorderAccent = model<boolean>(false);\n /**\n * Set the custom style for this alert\n */\n public customStyle = model<DeepPartial<AlertTheme>>({});\n /**\n * Set the custom icon\n *\n * @default null\n */\n public icon = model<TemplateRef<unknown> | null>(null);\n /**\n * Set the additional content\n *\n * @default null\n */\n public additionalContent = model<TemplateRef<unknown> | null>(null);\n /**\n * Set if the alert is dismissable\n *\n * @default false\n */\n public isDismissable = model<boolean>(false);\n /**\n * Set the function called when the alert is dismissed\n *\n * @default undefined\n */\n public onDismiss = model<() => void | undefined>();\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): AlertClass {\n return this.themeService.getClasses({\n color: this.color(),\n hasBorder: booleanToFlowbiteBoolean(this.hasBorder()),\n hasBorderAccent: booleanToFlowbiteBoolean(this.hasBorderAccent()),\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'close',\n this.domSanitizer.bypassSecurityTrustHtml(CLOSE_SVG_ICON)\n );\n }\n //#endregion\n\n /**\n * Call the onDismiss function if it's not undefined\n */\n public onDismissClick() {\n const func = this.onDismiss();\n\n if (func) func();\n }\n}\n","import type { DeepPartial, FlowbiteBoolean, FlowbiteClass, FlowbiteColors } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n//#region Component theme option\n/**\n * Available colors for `AlertComponent`\n */\nexport type AlertColors = Pick<\n FlowbiteColors,\n 'primary' | 'dark' | 'blue' | 'red' | 'green' | 'yellow'\n>;\n//#endregion\n\n/**\n * Required properties for the class generation of `AlertComponent`\n */\nexport interface AlertProperties {\n color: keyof AlertColors;\n hasBorder: keyof FlowbiteBoolean;\n hasBorderAccent: keyof FlowbiteBoolean;\n customStyle: DeepPartial<AlertTheme>;\n}\n\n/**\n * Theme definition for `AlertComponent`\n */\nexport interface AlertTheme {\n root: {\n base: string;\n color: AlertColors;\n hasBorder: FlowbiteBoolean;\n hasBorderAccent: FlowbiteBoolean;\n };\n closeButton: {\n base: string;\n color: AlertColors;\n };\n}\n\n/**\n * Default theme for `AlertComponent`\n */\nexport const alertTheme: AlertTheme = createTheme({\n root: {\n base: 'flex flex-col gap-2 p-4 text-sm rounded-lg',\n color: {\n primary:\n 'text-primary-800 dark:text-primary-400 bg-primary-50 dark:bg-gray-800 border-primary-300 dark:border-primary-800',\n dark: 'text-gray-800 dark:text-gray-300 bg-gray-100 dark:bg-gray-800 border-gray-300 dark:border-gray-600',\n blue: 'text-blue-800 dark:text-blue-400 bg-blue-50 dark:bg-gray-800 border-blue-300 dark:border-blue-800',\n red: 'text-red-800 dark:text-red-400 bg-red-100 dark:bg-gray-800 border-red-300 dark:border-red-800',\n green:\n 'text-green-800 dark:text-green-400 bg-green-100 dark:bg-gray-800 border-green-300 dark:border-green-800',\n yellow:\n 'text-yellow-800 dark:text-yellow-300 bg-yellow-100 dark:bg-gray-800 border-yellow-300 dark:border-yellow-800',\n },\n hasBorder: {\n enabled: 'border',\n disabled: 'border-0',\n },\n hasBorderAccent: {\n enabled: 'border-t-4',\n disabled: '',\n },\n },\n closeButton: {\n base: '-mx-1.5 -my-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2',\n color: {\n primary:\n 'text-primary-500 dark:text-primary-600 hover:bg-primary-200 dark:hover:bg-primary-300',\n dark: 'text-gray-500 dark:text-gray-600 hover:bg-gray-200 dark:hover:bg-gray-300',\n blue: 'text-blue-500 dark:text-blue-600 hover:bg-blue-200 dark:hover:bg-blue-300',\n red: 'text-red-500 dark:text-red-600 hover:bg-red-200 dark:hover:bg-red-300',\n green: 'text-green-500 dark:text-green-600 hover:bg-green-200 dark:hover:bg-green-300',\n yellow: 'text-yellow-500 dark:text-yellow-600 hover:bg-yellow-200 dark:hover:bg-yellow-300',\n },\n },\n});\n\n/**\n * Generated class definition for `AlertComponent`\n */\nexport interface AlertClass extends FlowbiteClass {\n closeButtonClass: string;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAQA;;;;;;;AAOG;MACU,0BAA0B,GAAG,IAAI,cAAc,CAC1D,4BAA4B,EAC5B;MAKW,iBAAiB,CAAA;AAH9B,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAiBjE,KAAA;AAfQ,IAAA,UAAU,CAAC,UAA2B,EAAA;AAC3C,QAAA,MAAM,KAAK,GAAe,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;AAE7E,QAAA,MAAM,MAAM,GAAe;AACzB,YAAA,SAAS,EAAE,OAAO,CAChB,KAAK,CAAC,IAAI,CAAC,IAAI,EACf,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,EAClC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,EAC1C,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,eAAe,CAAC,CACvD;AACD,YAAA,gBAAgB,EAAE,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;SAC7F,CAAC;AAEF,QAAA,OAAO,MAA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,EAAA,CAAA;AACD,oBAAA,IAAI,EAAE;AACJ,wBAAA,aAAa,EAAE,OAAO;AACvB,qBAAA;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA,CAAA;;;ACXD;;AAEG;AACI,MAAM,UAAU,GAAe,WAAW,CAAC;AAChD,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,4CAA4C;AAClD,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EACL,kHAAkH;AACpH,YAAA,IAAI,EAAE,oGAAoG;AAC1G,YAAA,IAAI,EAAE,mGAAmG;AACzG,YAAA,GAAG,EAAE,+FAA+F;AACpG,YAAA,KAAK,EACH,yGAAyG;AAC3G,YAAA,MAAM,EACJ,8GAA8G;AACjH,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,OAAO,EAAE,QAAQ;AACjB,YAAA,QAAQ,EAAE,UAAU;AACrB,SAAA;AACD,QAAA,eAAe,EAAE;AACf,YAAA,OAAO,EAAE,YAAY;AACrB,YAAA,QAAQ,EAAE,EAAE;AACb,SAAA;AACF,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,IAAI,EAAE,2EAA2E;AACjF,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EACL,uFAAuF;AACzF,YAAA,IAAI,EAAE,2EAA2E;AACjF,YAAA,IAAI,EAAE,2EAA2E;AACjF,YAAA,GAAG,EAAE,uEAAuE;AAC5E,YAAA,KAAK,EAAE,+EAA+E;AACtF,YAAA,MAAM,EAAE,mFAAmF;AAC5F,SAAA;AACF,KAAA;AACF,CAAA;;AC7ED;;AAEG;;;;"}
1
+ {"version":3,"file":"flowbite-angular-alert.mjs","sources":["../../../../libs/flowbite-angular/alert/alert.theme.service.ts","../../../../libs/flowbite-angular/alert/alert.component.ts","../../../../libs/flowbite-angular/alert/alert.theme.ts","../../../../libs/flowbite-angular/alert/flowbite-angular-alert.ts"],"sourcesContent":["import type { AlertClass, AlertProperties, AlertTheme } from './alert.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `AlertTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_ALERT_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_ALERT_THEME_TOKEN = new InjectionToken<AlertTheme>(\n 'FLOWBITE_ALERT_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AlertThemeService implements FlowbiteThemeService<AlertProperties> {\n private readonly baseTheme = inject(FLOWBITE_ALERT_THEME_TOKEN);\n\n public getClasses(properties: AlertProperties): AlertClass {\n const theme: AlertTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: AlertClass = {\n rootClass: twMerge(\n theme.root.base,\n theme.root.color[properties.color],\n theme.root.hasBorder[properties.hasBorder],\n theme.root.hasBorderAccent[properties.hasBorderAccent]\n ),\n closeButtonClass: twMerge(theme.closeButton.base, theme.closeButton.color[properties.color]),\n };\n\n return output;\n }\n}\n","import type { AlertClass, AlertColors, AlertTheme } from './alert.theme';\nimport { AlertThemeService } from './alert.theme.service';\n\nimport { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';\nimport type { DeepPartial } from 'flowbite-angular';\nimport { ButtonComponent } from 'flowbite-angular/button';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { CLOSE_SVG_ICON } from 'flowbite-angular/utils';\n\nimport { NgClass, NgIf, NgTemplateOutlet } from '@angular/common';\nimport type { OnInit, TemplateRef } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * @see https://flowbite.com/docs/components/alerts/\n */\n@Component({\n standalone: true,\n imports: [NgIf, NgClass, NgTemplateOutlet, IconComponent, ButtonComponent],\n selector: 'flowbite-alert',\n template: `\n <div class=\"flex items-center\">\n <ng-container [ngTemplateOutlet]=\"icon()\"></ng-container>\n <div>\n <ng-content />\n </div>\n <button\n type=\"button\"\n [ngClass]=\"contentClasses()!.closeButtonClass\"\n *ngIf=\"isDismissable()\"\n aria-label=\"Close\"\n (click)=\"onDismissClick()\">\n <span class=\"sr-only\">Close</span>\n <flowbite-icon\n svgIcon=\"flowbite-angular:close\"\n class=\"h-5 w-5\" />\n </button>\n </div>\n <ng-container [ngTemplateOutlet]=\"additionalContent()\"></ng-container>\n `,\n host: {\n '[attr.role]': 'alert',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AlertComponent extends BaseComponent<AlertClass> implements OnInit {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(AlertThemeService);\n /**\n * `IcoRegistry` service\n */\n public readonly iconRegistry = inject(IconRegistry);\n /**\n * `DomSanitizer` service\n */\n public readonly domSanitizer = inject(DomSanitizer);\n\n //#region properties\n /**\n * Set the indicator color\n *\n * @default primary\n */\n public color = model<keyof AlertColors>('primary');\n /**\n * Set if the alert has border\n *\n * @default false\n */\n public hasBorder = model<boolean>(false);\n /**\n * Set if the alert has border accent\n *\n * @default false\n */\n public hasBorderAccent = model<boolean>(false);\n /**\n * Set the custom style for this alert\n */\n public customStyle = model<DeepPartial<AlertTheme>>({});\n /**\n * Set the custom icon\n *\n * @default null\n */\n public icon = model<TemplateRef<unknown> | null>(null);\n /**\n * Set the additional content\n *\n * @default null\n */\n public additionalContent = model<TemplateRef<unknown> | null>(null);\n /**\n * Set if the alert is dismissable\n *\n * @default false\n */\n public isDismissable = model<boolean>(false);\n /**\n * Set the function called when the alert is dismissed\n *\n * @default undefined\n */\n public onDismiss = model<() => void | undefined>();\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): AlertClass {\n return this.themeService.getClasses({\n color: this.color(),\n hasBorder: booleanToFlowbiteBoolean(this.hasBorder()),\n hasBorderAccent: booleanToFlowbiteBoolean(this.hasBorderAccent()),\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'close',\n this.domSanitizer.bypassSecurityTrustHtml(CLOSE_SVG_ICON)\n );\n }\n //#endregion\n\n /**\n * Call the onDismiss function if it's not undefined\n */\n public onDismissClick() {\n const func = this.onDismiss();\n\n if (func) func();\n }\n}\n","import type { DeepPartial, FlowbiteBoolean, FlowbiteClass, FlowbiteColors } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n//#region Component theme option\n/**\n * Available colors for `AlertComponent`\n */\nexport type AlertColors = Pick<\n FlowbiteColors,\n 'primary' | 'dark' | 'blue' | 'red' | 'green' | 'yellow'\n>;\n//#endregion\n\n/**\n * Required properties for the class generation of `AlertComponent`\n */\nexport interface AlertProperties {\n color: keyof AlertColors;\n hasBorder: keyof FlowbiteBoolean;\n hasBorderAccent: keyof FlowbiteBoolean;\n customStyle: DeepPartial<AlertTheme>;\n}\n\n/**\n * Theme definition for `AlertComponent`\n */\nexport interface AlertTheme {\n root: {\n base: string;\n color: AlertColors;\n hasBorder: FlowbiteBoolean;\n hasBorderAccent: FlowbiteBoolean;\n };\n closeButton: {\n base: string;\n color: AlertColors;\n };\n}\n\n/**\n * Default theme for `AlertComponent`\n */\nexport const alertTheme: AlertTheme = createTheme({\n root: {\n base: 'flex flex-col gap-2 p-4 text-sm rounded-lg',\n color: {\n primary:\n 'text-primary-800 dark:text-primary-400 bg-primary-50 dark:bg-gray-800 border-primary-300 dark:border-primary-800',\n dark: 'text-gray-800 dark:text-gray-300 bg-gray-100 dark:bg-gray-800 border-gray-300 dark:border-gray-600',\n blue: 'text-blue-800 dark:text-blue-400 bg-blue-50 dark:bg-gray-800 border-blue-300 dark:border-blue-800',\n red: 'text-red-800 dark:text-red-400 bg-red-100 dark:bg-gray-800 border-red-300 dark:border-red-800',\n green:\n 'text-green-800 dark:text-green-400 bg-green-100 dark:bg-gray-800 border-green-300 dark:border-green-800',\n yellow:\n 'text-yellow-800 dark:text-yellow-300 bg-yellow-100 dark:bg-gray-800 border-yellow-300 dark:border-yellow-800',\n },\n hasBorder: {\n enabled: 'border',\n disabled: 'border-0',\n },\n hasBorderAccent: {\n enabled: 'border-t-4',\n disabled: '',\n },\n },\n closeButton: {\n base: '-mx-1.5 -my-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2',\n color: {\n primary:\n 'text-primary-500 dark:text-primary-600 hover:bg-primary-200 dark:hover:bg-primary-300',\n dark: 'text-gray-500 dark:text-gray-600 hover:bg-gray-200 dark:hover:bg-gray-300',\n blue: 'text-blue-500 dark:text-blue-600 hover:bg-blue-200 dark:hover:bg-blue-300',\n red: 'text-red-500 dark:text-red-600 hover:bg-red-200 dark:hover:bg-red-300',\n green: 'text-green-500 dark:text-green-600 hover:bg-green-200 dark:hover:bg-green-300',\n yellow: 'text-yellow-500 dark:text-yellow-600 hover:bg-yellow-200 dark:hover:bg-yellow-300',\n },\n },\n});\n\n/**\n * Generated class definition for `AlertComponent`\n */\nexport interface AlertClass extends FlowbiteClass {\n closeButtonClass: string;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAQA;;;;;;;AAOG;MACU,0BAA0B,GAAG,IAAI,cAAc,CAC1D,4BAA4B,EAC5B;MAKW,iBAAiB,CAAA;AAH9B,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAiBjE,KAAA;AAfQ,IAAA,UAAU,CAAC,UAA2B,EAAA;AAC3C,QAAA,MAAM,KAAK,GAAe,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;AAE7E,QAAA,MAAM,MAAM,GAAe;AACzB,Y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EAAE;AACL,YAAA,OAAO,EACL,uFAAuF;AACzF,YAAA,IAAI,EAAE,2EAA2E;AACjF,YAAA,IAAI,EAAE,2EAA2E;AACjF,YAAA,GAAG,EAAE,uEAAuE;AAC5E,YAAA,KAAK,EAAE,+EAA+E;AACtF,YAAA,MAAM,EAAE,mFAAmF;AAC5F,SAAA;AACF,KAAA;AACF,CAAA;;AC7ED;;AAEG;;;;"}
@@ -117,8 +117,12 @@ class DarkThemeToggleComponent extends BaseComponent {
117
117
  }
118
118
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: DarkThemeToggleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
119
119
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: DarkThemeToggleComponent, isStandalone: true, selector: "flowbite-dark-theme-toggle", inputs: { customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { customStyle: "customStyleChange" }, host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0, template: `
120
- <flowbite-icon svgIcon="flowbite-angular:moon" class="h-5 w-5 block dark:hidden" />
121
- <flowbite-icon svgIcon="flowbite-angular:sun" class="h-5 w-5 hidden dark:block" />
120
+ <flowbite-icon
121
+ svgIcon="flowbite-angular:moon"
122
+ class="h-5 w-5 block dark:hidden" />
123
+ <flowbite-icon
124
+ svgIcon="flowbite-angular:sun"
125
+ class="h-5 w-5 hidden dark:block" />
122
126
  `, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "flowbite-icon", inputs: ["svgIcon"], outputs: ["svgIconChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
123
127
  }
124
128
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: DarkThemeToggleComponent, decorators: [{
@@ -128,8 +132,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImpor
128
132
  imports: [NgIf, NgClass, IconComponent],
129
133
  selector: 'flowbite-dark-theme-toggle',
130
134
  template: `
131
- <flowbite-icon svgIcon="flowbite-angular:moon" class="h-5 w-5 block dark:hidden" />
132
- <flowbite-icon svgIcon="flowbite-angular:sun" class="h-5 w-5 hidden dark:block" />
135
+ <flowbite-icon
136
+ svgIcon="flowbite-angular:moon"
137
+ class="h-5 w-5 block dark:hidden" />
138
+ <flowbite-icon
139
+ svgIcon="flowbite-angular:sun"
140
+ class="h-5 w-5 hidden dark:block" />
133
141
  `,
134
142
  host: {
135
143
  '(click)': 'onClick()',
@@ -1 +1 @@
1
- {"version":3,"file":"flowbite-angular-dark-theme-toggle.mjs","sources":["../../../../libs/flowbite-angular/dark-theme-toggle/dark-theme-toggle.theme.service.ts","../../../../libs/flowbite-angular/dark-theme-toggle/dark-theme-toggle.component.ts","../../../../libs/flowbite-angular/dark-theme-toggle/dark-theme-toggle.theme.ts","../../../../libs/flowbite-angular/dark-theme-toggle/flowbite-angular-dark-theme-toggle.ts"],"sourcesContent":["import type {\n DarkThemeToggleClass,\n DarkThemeToggleProperties,\n DarkThemeToggleTheme,\n} from './dark-theme-toggle.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `DarkThemeToggleTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_DARK_THEME_TOGGLE_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_DARK_THEME_TOGGLE_THEME_TOKEN = new InjectionToken<DarkThemeToggleTheme>(\n 'FLOWBITE_DARK_THEME_TOGGLE_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DarkThemeToggleThemeService\n implements FlowbiteThemeService<DarkThemeToggleProperties>\n{\n private readonly baseTheme = inject(FLOWBITE_DARK_THEME_TOGGLE_THEME_TOKEN);\n\n public getClasses(properties: DarkThemeToggleProperties): DarkThemeToggleClass {\n const theme: DarkThemeToggleTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: DarkThemeToggleClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import type { DarkThemeToggleClass, DarkThemeToggleTheme } from './dark-theme-toggle.theme';\nimport { DarkThemeToggleThemeService } from './dark-theme-toggle.theme.service';\n\nimport type { DeepPartial, FlowbiteTheme } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { MOON_SVG_ICON, SUN_SVG_ICON } from 'flowbite-angular/utils';\n\nimport { NgClass, NgIf } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * Use to toggle light/dark mode accross the site\n */\n@Component({\n standalone: true,\n imports: [NgIf, NgClass, IconComponent],\n selector: 'flowbite-dark-theme-toggle',\n template: `\n <flowbite-icon svgIcon=\"flowbite-angular:moon\" class=\"h-5 w-5 block dark:hidden\" />\n <flowbite-icon svgIcon=\"flowbite-angular:sun\" class=\"h-5 w-5 hidden dark:block\" />\n `,\n host: {\n '(click)': 'onClick()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DarkThemeToggleComponent extends BaseComponent<DarkThemeToggleClass> {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(DarkThemeToggleThemeService);\n /**\n * `IconRegistry` service\n */\n public readonly iconRegistry = inject(IconRegistry);\n /**\n * `DomSanitizer` service\n */\n public readonly domSanitizer = inject(DomSanitizer);\n\n //#region properties\n /**\n * Set the custom style for this dark-theme-toggle\n */\n public customStyle = model<DeepPartial<DarkThemeToggleTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): DarkThemeToggleClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n afterNextRender(\n () => {\n this.toggleTheme(this.getTheme());\n },\n { injector: this.injector }\n );\n\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'sun',\n this.domSanitizer.bypassSecurityTrustHtml(SUN_SVG_ICON)\n );\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'moon',\n this.domSanitizer.bypassSecurityTrustHtml(MOON_SVG_ICON)\n );\n }\n //#endregion\n\n /**\n * Toggle between dark and light mode\n */\n public onClick() {\n this.toggleTheme();\n }\n\n /**\n * Get theme from the `localStorage`\n * @returns The current theme saved in the `localStorage` with the key `color-theme`\n */\n private getTheme(): FlowbiteTheme {\n return localStorage.getItem('color-theme') === 'dark' ? 'dark' : 'light';\n }\n\n /**\n * Toggle the theme saced in the `localStorage`\n *\n * @param theme If provided, force the theme instead of toggling it between light and dark mode\n */\n private toggleTheme(theme?: FlowbiteTheme): void {\n if (!theme) {\n const tmpTheme = this.getTheme();\n\n if (tmpTheme === 'dark') theme = 'light';\n else theme = 'dark';\n }\n\n this.setTheme(theme);\n }\n\n /**\n * Set the theme inside the page\n *\n * @param theme Theme to apply\n */\n private setTheme(theme: FlowbiteTheme): void {\n localStorage.setItem('color-theme', theme);\n\n theme === 'dark'\n ? document.documentElement.classList.add('dark')\n : document.documentElement.classList.remove('dark');\n }\n}\n","import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for the class generation of `DarkThemeToggleComponent`\n */\nexport interface DarkThemeToggleProperties {\n customStyle: DeepPartial<DarkThemeToggleTheme>;\n}\n\n/**\n * Theme definition for `DarkThemeToggleComponent`\n */\nexport interface DarkThemeToggleTheme {\n root: {\n base: string;\n };\n}\n\n/**\n * Default theme for `DarkThemeToggleComponent`\n */\nexport const darkThemeToggleTheme: DarkThemeToggleTheme = createTheme({\n root: {\n base: 'cursor-pointer rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700',\n },\n});\n\n/**\n * Generated class definition for `DarkThemeToggleComponent`\n */\nexport type DarkThemeToggleClass = FlowbiteClass;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAYA;;;;;;;AAOG;MACU,sCAAsC,GAAG,IAAI,cAAc,CACtE,wCAAwC,EACxC;MAKW,2BAA2B,CAAA;AAHxC,IAAA,WAAA,GAAA;AAMmB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sCAAsC,CAAC,CAAC;AAW7E,KAAA;AATQ,IAAA,UAAU,CAAC,UAAqC,EAAA;AACrD,QAAA,MAAM,KAAK,GAAyB,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;AAEvF,QAAA,MAAM,MAAM,GAAyB;YACnC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;SACpC,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACf;8GAbU,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cAF1B,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEP,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAHvC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBA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EAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;AAGT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EALwB,aAAa,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAY3B,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAdpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,aAAa,CAAC;AACvC,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,QAAQ,EAAE,CAAA;;;AAGT,EAAA,CAAA;AACD,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACvB,qBAAA;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA,CAAA;;;AChBD;;AAEG;AACI,MAAM,oBAAoB,GAAyB,WAAW,CAAC;AACpE,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,gMAAgM;AACvM,KAAA;AACF,CAAA;;AC1BD;;AAEG;;;;"}
1
+ {"version":3,"file":"flowbite-angular-dark-theme-toggle.mjs","sources":["../../../../libs/flowbite-angular/dark-theme-toggle/dark-theme-toggle.theme.service.ts","../../../../libs/flowbite-angular/dark-theme-toggle/dark-theme-toggle.component.ts","../../../../libs/flowbite-angular/dark-theme-toggle/dark-theme-toggle.theme.ts","../../../../libs/flowbite-angular/dark-theme-toggle/flowbite-angular-dark-theme-toggle.ts"],"sourcesContent":["import type {\n DarkThemeToggleClass,\n DarkThemeToggleProperties,\n DarkThemeToggleTheme,\n} from './dark-theme-toggle.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `DarkThemeToggleTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_DARK_THEME_TOGGLE_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_DARK_THEME_TOGGLE_THEME_TOKEN = new InjectionToken<DarkThemeToggleTheme>(\n 'FLOWBITE_DARK_THEME_TOGGLE_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DarkThemeToggleThemeService\n implements FlowbiteThemeService<DarkThemeToggleProperties>\n{\n private readonly baseTheme = inject(FLOWBITE_DARK_THEME_TOGGLE_THEME_TOKEN);\n\n public getClasses(properties: DarkThemeToggleProperties): DarkThemeToggleClass {\n const theme: DarkThemeToggleTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: DarkThemeToggleClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import type { DarkThemeToggleClass, DarkThemeToggleTheme } from './dark-theme-toggle.theme';\nimport { DarkThemeToggleThemeService } from './dark-theme-toggle.theme.service';\n\nimport type { DeepPartial, FlowbiteTheme } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { MOON_SVG_ICON, SUN_SVG_ICON } from 'flowbite-angular/utils';\n\nimport { NgClass, NgIf } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n/**\n * Use to toggle light/dark mode accross the site\n */\n@Component({\n standalone: true,\n imports: [NgIf, NgClass, IconComponent],\n selector: 'flowbite-dark-theme-toggle',\n template: `\n <flowbite-icon\n svgIcon=\"flowbite-angular:moon\"\n class=\"h-5 w-5 block dark:hidden\" />\n <flowbite-icon\n svgIcon=\"flowbite-angular:sun\"\n class=\"h-5 w-5 hidden dark:block\" />\n `,\n host: {\n '(click)': 'onClick()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DarkThemeToggleComponent extends BaseComponent<DarkThemeToggleClass> {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(DarkThemeToggleThemeService);\n /**\n * `IconRegistry` service\n */\n public readonly iconRegistry = inject(IconRegistry);\n /**\n * `DomSanitizer` service\n */\n public readonly domSanitizer = inject(DomSanitizer);\n\n //#region properties\n /**\n * Set the custom style for this dark-theme-toggle\n */\n public customStyle = model<DeepPartial<DarkThemeToggleTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): DarkThemeToggleClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n afterNextRender(\n () => {\n this.toggleTheme(this.getTheme());\n },\n { injector: this.injector }\n );\n\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'sun',\n this.domSanitizer.bypassSecurityTrustHtml(SUN_SVG_ICON)\n );\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'moon',\n this.domSanitizer.bypassSecurityTrustHtml(MOON_SVG_ICON)\n );\n }\n //#endregion\n\n /**\n * Toggle between dark and light mode\n */\n public onClick() {\n this.toggleTheme();\n }\n\n /**\n * Get theme from the `localStorage`\n * @returns The current theme saved in the `localStorage` with the key `color-theme`\n */\n private getTheme(): FlowbiteTheme {\n return localStorage.getItem('color-theme') === 'dark' ? 'dark' : 'light';\n }\n\n /**\n * Toggle the theme saced in the `localStorage`\n *\n * @param theme If provided, force the theme instead of toggling it between light and dark mode\n */\n private toggleTheme(theme?: FlowbiteTheme): void {\n if (!theme) {\n const tmpTheme = this.getTheme();\n\n if (tmpTheme === 'dark') theme = 'light';\n else theme = 'dark';\n }\n\n this.setTheme(theme);\n }\n\n /**\n * Set the theme inside the page\n *\n * @param theme Theme to apply\n */\n private setTheme(theme: FlowbiteTheme): void {\n localStorage.setItem('color-theme', theme);\n\n theme === 'dark'\n ? document.documentElement.classList.add('dark')\n : document.documentElement.classList.remove('dark');\n }\n}\n","import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for the class generation of `DarkThemeToggleComponent`\n */\nexport interface DarkThemeToggleProperties {\n customStyle: DeepPartial<DarkThemeToggleTheme>;\n}\n\n/**\n * Theme definition for `DarkThemeToggleComponent`\n */\nexport interface DarkThemeToggleTheme {\n root: {\n base: string;\n };\n}\n\n/**\n * Default theme for `DarkThemeToggleComponent`\n */\nexport const darkThemeToggleTheme: DarkThemeToggleTheme = createTheme({\n root: {\n base: 'cursor-pointer rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700',\n },\n});\n\n/**\n * Generated class definition for `DarkThemeToggleComponent`\n */\nexport type DarkThemeToggleClass = FlowbiteClass;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAYA;;;;;;;AAOG;MACU,sCAAsC,GAAG,IAAI,cAAc,CACtE,wCAAwC,EACxC;MAKW,2BAA2B,CAAA;AAHxC,IAAA,WAAA,GAAA;AAMmB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sCAAsC,CAAC,CAAC;AAW7E,KAAA;AATQ,IAAA,UAAU,CAAC,UAAqC,EAAA;AACrD,QAAA,MAAM,KAAK,GAAyB,UAAU,CAAC,IAAI,CAAC,SAAS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,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;AAOT,EAAA,CAAA;AACD,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACvB,qBAAA;oBACD,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA,CAAA;;;ACpBD;;AAEG;AACI,MAAM,oBAAoB,GAAyB,WAAW,CAAC;AACpE,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,gMAAgM;AACvM,KAAA;AACF,CAAA;;AC1BD;;AAEG;;;;"}
@@ -363,6 +363,8 @@ class DropdownComponent extends BaseComponent {
363
363
  });
364
364
  }
365
365
  ngAfterViewInit() {
366
+ // todo : Fix ERROR ReferenceError: ResizeObserver is not defined
367
+ // Append when runing command 'pnpm lib:build'
366
368
  autoUpdate(this.button.nativeElement, this.dropdown.nativeElement, () => {
367
369
  if (!this.isOpen())
368
370
  return;
@@ -391,10 +393,16 @@ class DropdownComponent extends BaseComponent {
391
393
  }
392
394
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: DropdownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
393
395
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.0.0", type: DropdownComponent, isStandalone: true, selector: "flowbite-dropdown", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { label: "labelChange", isOpen: "isOpenChange", position: "positionChange", customStyle: "customStyleChange" }, host: { listeners: { "document:click": "clickout($event)" } }, queries: [{ propertyName: "dropdownItemChildren", predicate: DropdownItemComponent, isSignal: true }, { propertyName: "dropdownHeaderChildren", predicate: DropdownHeaderComponent, isSignal: true }, { propertyName: "dropdownDividerChildren", predicate: DropdownDividerComponent, isSignal: true }], viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true }, { propertyName: "button", first: true, predicate: ["button"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
394
- <button type="button" [ngClass]="contentClasses().dropdownClass" (click)="toggle()" #button>
396
+ <button
397
+ type="button"
398
+ [ngClass]="contentClasses().dropdownClass"
399
+ (click)="toggle()"
400
+ #button>
395
401
  <span [ngClass]="contentClasses().spanClass">
396
402
  {{ label() }}
397
- <flowbite-icon svgIcon="flowbite-angular:chevron-down" class="ml-2 h-4 w-4" />
403
+ <flowbite-icon
404
+ svgIcon="flowbite-angular:chevron-down"
405
+ class="ml-2 h-4 w-4" />
398
406
  </span>
399
407
  </button>
400
408
  <div
@@ -416,10 +424,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImpor
416
424
  imports: [NgClass, IconComponent],
417
425
  selector: 'flowbite-dropdown',
418
426
  template: `
419
- <button type="button" [ngClass]="contentClasses().dropdownClass" (click)="toggle()" #button>
427
+ <button
428
+ type="button"
429
+ [ngClass]="contentClasses().dropdownClass"
430
+ (click)="toggle()"
431
+ #button>
420
432
  <span [ngClass]="contentClasses().spanClass">
421
433
  {{ label() }}
422
- <flowbite-icon svgIcon="flowbite-angular:chevron-down" class="ml-2 h-4 w-4" />
434
+ <flowbite-icon
435
+ svgIcon="flowbite-angular:chevron-down"
436
+ class="ml-2 h-4 w-4" />
423
437
  </span>
424
438
  </button>
425
439
  <div
@@ -1 +1 @@
1
- {"version":3,"file":"flowbite-angular-dropdown.mjs","sources":["../../../../libs/flowbite-angular/dropdown/dropdown-divider.theme.service.ts","../../../../libs/flowbite-angular/dropdown/dropdown-divider.component.ts","../../../../libs/flowbite-angular/dropdown/dropdown-header.theme.service.ts","../../../../libs/flowbite-angular/dropdown/dropdown-header.component.ts","../../../../libs/flowbite-angular/dropdown/dropdown-item.theme.service.ts","../../../../libs/flowbite-angular/dropdown/dropdown-item.component.ts","../../../../libs/flowbite-angular/dropdown/dropdown.theme.service.ts","../../../../libs/flowbite-angular/dropdown/dropdown.component.ts","../../../../libs/flowbite-angular/dropdown/dropdown.theme.ts","../../../../libs/flowbite-angular/dropdown/dropdown-item.theme.ts","../../../../libs/flowbite-angular/dropdown/dropdown-divider.theme.ts","../../../../libs/flowbite-angular/dropdown/dropdown-header.theme.ts","../../../../libs/flowbite-angular/dropdown/flowbite-angular-dropdown.ts"],"sourcesContent":["import type {\n DropdownDividerClass,\n DropdownDividerProperties,\n DropdownDividerTheme,\n} from './dropdown-divider.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `DropdownDividerTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_DROPDOWN_DIVIDER_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_DROPDOWN_DIVIDER_THEME_TOKEN = new InjectionToken<DropdownDividerTheme>(\n 'FLOWBITE_DROPDOWN_DIVIDER_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DropdownDividerThemeService\n implements FlowbiteThemeService<DropdownDividerProperties>\n{\n private readonly baseTheme = inject(FLOWBITE_DROPDOWN_DIVIDER_THEME_TOKEN);\n\n public getClasses(properties: DropdownDividerProperties): DropdownDividerClass {\n const theme: DropdownDividerTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: DropdownDividerClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import type { DropdownDividerClass, DropdownDividerTheme } from './dropdown-divider.theme';\nimport { DropdownDividerThemeService } from './dropdown-divider.theme.service';\nimport { DropdownComponent } from './dropdown.component';\n\nimport { BaseComponent } from 'flowbite-angular';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/dropdowns/\n */\n@Component({\n standalone: true,\n imports: [NgClass],\n selector: 'flowbite-dropdown-divider',\n template: ``,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DropdownDividerComponent extends BaseComponent<DropdownDividerClass> {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(DropdownDividerThemeService);\n /**\n * The parent `DropdownComponent`\n */\n public readonly dropdownComponent = inject(DropdownComponent);\n\n //#region properties\n /**\n * Set the custom style for this dropdown divider\n */\n public customStyle = model<Partial<DropdownDividerTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): DropdownDividerClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n}\n","import type {\n DropdownHeaderClass,\n DropdownHeaderProperties,\n DropdownHeaderTheme,\n} from './dropdown-header.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `DropdownHeaderTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_DROPDOWN_HEADER_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_DROPDOWN_HEADER_THEME_TOKEN = new InjectionToken<DropdownHeaderTheme>(\n 'FLOWBITE_DROPDOWN_HEADER_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DropdownHeaderThemeService implements FlowbiteThemeService<DropdownHeaderProperties> {\n private readonly baseTheme = inject(FLOWBITE_DROPDOWN_HEADER_THEME_TOKEN);\n\n public getClasses(properties: DropdownHeaderProperties): DropdownHeaderClass {\n const theme: DropdownHeaderTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: DropdownHeaderClass = {\n rootClass: twMerge(theme.root.base),\n root: twMerge(theme.content.base),\n };\n\n return output;\n }\n}\n","import type { DropdownHeaderClass, DropdownHeaderTheme } from './dropdown-header.theme';\nimport { DropdownHeaderThemeService } from './dropdown-header.theme.service';\nimport { DropdownComponent } from './dropdown.component';\n\nimport { BaseComponent } from 'flowbite-angular';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/dropdowns/\n */\n@Component({\n standalone: true,\n imports: [NgClass],\n selector: 'flowbite-dropdown-header',\n template: `\n <div [ngClass]=\"contentClasses().root\">\n <ng-content />\n </div>\n <div class=\"my-1 h-px bg-gray-100 dark:bg-gray-600\"></div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DropdownHeaderComponent extends BaseComponent<DropdownHeaderClass> {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(DropdownHeaderThemeService);\n /**\n * The parent `DropdownComponent`\n */\n public readonly dropdownComponent = inject(DropdownComponent);\n\n //#region properties\n /**\n * Set the custom style for this dropdown header\n */\n public customStyle = model<Partial<DropdownHeaderTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): DropdownHeaderClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n}\n","import type {\n DropdownItemClass,\n DropdownItemProperties,\n DropdownItemTheme,\n} from './dropdown-item.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `DropdownItemTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_DROPDOWN_ITEM_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_DROPDOWN_ITEM_THEME_TOKEN = new InjectionToken<DropdownItemTheme>(\n 'FLOWBITE_DROPDOWN_ITEM_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DropdownItemThemeService implements FlowbiteThemeService<DropdownItemProperties> {\n private readonly baseTheme = inject(FLOWBITE_DROPDOWN_ITEM_THEME_TOKEN);\n\n public getClasses(properties: DropdownItemProperties): DropdownItemClass {\n const theme: DropdownItemTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: DropdownItemClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import type { DropdownItemClass, DropdownItemTheme } from './dropdown-item.theme';\nimport { DropdownItemThemeService } from './dropdown-item.theme.service';\nimport { DropdownComponent } from './dropdown.component';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/dropdowns/\n */\n@Component({\n standalone: true,\n imports: [NgClass],\n selector: 'flowbite-dropdown-item',\n template: `<ng-content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DropdownItemComponent extends BaseComponent<DropdownItemClass> {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(DropdownItemThemeService);\n /**\n * The parent `DropdownComponent`\n */\n public readonly dropdownComponent = inject(DropdownComponent);\n\n //#region properties\n /**\n * Set the custom style for this dropdown item\n */\n public customStyle = model<DeepPartial<DropdownItemTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): DropdownItemClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n}\n","import type { DropdownClass, DropdownProperties, DropdownTheme } from './dropdown.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `DropdownTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_DROPDOWN_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_DROPDOWN_THEME_TOKEN = new InjectionToken<DropdownTheme>(\n 'FLOWBITE_DROPDOWN_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DropdownThemeService implements FlowbiteThemeService<DropdownProperties> {\n private readonly baseTheme = inject(FLOWBITE_DROPDOWN_THEME_TOKEN);\n\n public getClasses(properties: DropdownProperties): DropdownClass {\n const theme: DropdownTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: DropdownClass = {\n rootClass: twMerge(theme.root.base),\n dropdownClass: twMerge(theme.dropdown.base),\n spanClass: twMerge(theme.span.base),\n containerClass: twMerge(\n theme.container.base,\n theme.container.isOpen[properties.isOpen],\n theme.container.placement[properties.placement]\n ),\n contentClass: twMerge(theme.content.base),\n subContentClass: twMerge(theme.subContent.base),\n };\n\n return output;\n }\n}\n","import { DropdownDividerComponent } from './dropdown-divider.component';\nimport { DropdownHeaderComponent } from './dropdown-header.component';\nimport { DropdownItemComponent } from './dropdown-item.component';\nimport type { DropdownClass, DropdownPositions, DropdownTheme } from './dropdown.theme';\nimport { DropdownThemeService } from './dropdown.theme.service';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { CHEVRON_DOWN_SVG_ICON } from 'flowbite-angular/utils';\n\nimport { NgClass } from '@angular/common';\nimport type { AfterViewInit } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n ElementRef,\n inject,\n model,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport type { Placement } from '@floating-ui/dom';\nimport { autoUpdate, computePosition, flip, offset, shift } from '@floating-ui/dom';\n\n/**\n * @see https://flowbite.com/docs/components/dropdowns/\n */\n@Component({\n standalone: true,\n imports: [NgClass, IconComponent],\n selector: 'flowbite-dropdown',\n template: `\n <button type=\"button\" [ngClass]=\"contentClasses().dropdownClass\" (click)=\"toggle()\" #button>\n <span [ngClass]=\"contentClasses().spanClass\">\n {{ label() }}\n <flowbite-icon svgIcon=\"flowbite-angular:chevron-down\" class=\"ml-2 h-4 w-4\" />\n </span>\n </button>\n <div\n [ngClass]=\"contentClasses().containerClass\"\n #dropdown\n [style.display]=\"isOpen() ? 'block' : 'none'\">\n <div [ngClass]=\"contentClasses().contentClass\">\n <ul [ngClass]=\"contentClasses().subContentClass\">\n <ng-content />\n </ul>\n </div>\n </div>\n `,\n host: {\n '(document:click)': 'clickout($event)',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DropdownComponent extends BaseComponent<DropdownClass> implements AfterViewInit {\n @ViewChild('dropdown') dropdown!: ElementRef;\n @ViewChild('button') button!: ElementRef;\n\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(DropdownThemeService);\n /**\n * `IconRegistry` service\n */\n public readonly iconRegistry = inject(IconRegistry);\n /**\n * `DomSanitizer` service\n */\n public readonly domSanitizer = inject(DomSanitizer);\n /**\n * List of `DropdownItemComponent`\n */\n public readonly dropdownItemChildren = contentChildren(DropdownItemComponent);\n /**\n * List of `DropdownHeaderComponent`\n */\n public readonly dropdownHeaderChildren = contentChildren(DropdownHeaderComponent);\n /**\n * List of `DropdownDividerComponent`\n */\n public readonly dropdownDividerChildren = contentChildren(DropdownDividerComponent);\n\n //#region properties\n /**\n * Set the dropdown label\n *\n * @default Dropdown\n */\n public label = model('Dropdown');\n /**\n * Set if the dropdown is open\n *\n * @default false\n */\n public isOpen = model<boolean>(false);\n /**\n * Set the dropdown position\n *\n * @default bottom-center\n */\n public position = model<keyof DropdownPositions>('bottom-center');\n /**\n * Set the custom style for this dropdown\n */\n public customStyle = model<DeepPartial<DropdownTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): DropdownClass {\n return this.themeService.getClasses({\n label: this.label(),\n isOpen: booleanToFlowbiteBoolean(this.isOpen()),\n placement: this.position(),\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'chevron-down',\n this.domSanitizer.bypassSecurityTrustHtml(CHEVRON_DOWN_SVG_ICON)\n );\n }\n\n public override verify(): void {\n if (this.dropdownItemChildren().length === 0) {\n throw new Error('No DropdownItemComponent available');\n }\n }\n //#endregion\n\n x = 0;\n y = 0;\n width = 0;\n\n /**\n * Toggle dropdown isOpen\n */\n public toggle() {\n this.isOpen.set(!this.isOpen());\n }\n\n calculatePosition() {\n computePosition(this.button.nativeElement, this.dropdown.nativeElement, {\n placement: this.convertPosition(this.position()),\n middleware: [offset(8), flip(), shift()],\n }).then(({ x, y }: { x: number; y: number }) => {\n this.dropdown.nativeElement.style.left = x + 'px';\n this.dropdown.nativeElement.style.top = y + 'px';\n this.width = this.button.nativeElement.offsetWidth;\n });\n }\n\n ngAfterViewInit() {\n autoUpdate(this.button.nativeElement, this.dropdown.nativeElement, () => {\n if (!this.isOpen()) return;\n this.calculatePosition();\n });\n }\n\n // Onclick outside the dropdown, close it\n clickout(event: Event) {\n if (\n !this.dropdown.nativeElement.contains(event.target) &&\n this.isOpen() &&\n !this.button.nativeElement.contains(event.target)\n ) {\n this.isOpen.set(false);\n }\n }\n\n convertPosition(pos: keyof DropdownPositions): Placement {\n switch (pos) {\n case 'top-center':\n return 'top';\n case 'bottom-center':\n return 'bottom';\n case 'left-center':\n return 'left';\n case 'right-center':\n return 'right';\n }\n }\n}\n","import type {\n DeepPartial,\n FlowbiteBoolean,\n FlowbiteClass,\n FlowbitePositions,\n} from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n//#region Component theme option\n/**\n * Available positions for `DropdownComponent`\n */\nexport interface DropdownPositions extends Pick<FlowbitePositions, 'bottom-center' | 'top-center'> {\n 'left-center': string;\n 'right-center': string;\n}\n//#endregion\n\n/**\n * Required properties for the class generation of `DropdownComponent`\n */\nexport interface DropdownProperties {\n label: string;\n isOpen: keyof FlowbiteBoolean;\n placement: keyof DropdownPositions;\n customStyle: DeepPartial<DropdownTheme>;\n}\n\n/**\n * Theme definition for `DropdownComponent`\n */\nexport interface DropdownTheme {\n root: {\n base: string;\n };\n dropdown: {\n base: string;\n };\n span: {\n base: string;\n };\n container: {\n base: string;\n isOpen: FlowbiteBoolean;\n placement: DropdownPositions;\n };\n content: {\n base: string;\n };\n subContent: {\n base: string;\n };\n}\n\n/**\n * Default theme for `DropdownComponent`\n */\nexport const dropdownTheme: DropdownTheme = createTheme({\n root: {\n base: '',\n },\n dropdown: {\n base: 'text-white bg-blue-700 border border-transparent hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 disabled:hover:bg-blue-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 dark:disabled:hover:bg-blue-600 group flex h-min items-center justify-center p-0.5 text-center font-medium focus:z-10 rounded-lg',\n },\n span: {\n base: 'flex items-center rounded-md text-sm px-4 py-2',\n },\n container: {\n base: 'z-10 bg-white divide-y divide-gray-100 rounded-lg shadow dark:bg-gray-700 min-w-fit absolute',\n isOpen: {\n enabled: 'block',\n disabled: 'hidden',\n },\n placement: {\n 'top-center': '',\n 'bottom-center': '',\n 'left-center': '',\n 'right-center': '',\n },\n },\n content: {\n base: 'py-1 text-sm text-gray-700 dark:text-gray-200 shadow-md',\n },\n subContent: {\n base: 'py-1',\n },\n});\n\n/**\n * Generated class definition for `DropdownComponent`\n */\nexport interface DropdownClass extends FlowbiteClass {\n dropdownClass: string;\n spanClass: string;\n containerClass: string;\n contentClass: string;\n subContentClass: string;\n}\n","import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\n\n/**\n * Required properties for the cmass generation of `DropdownItemComponent`\n */\nexport interface DropdownItemProperties {\n customStyle: DeepPartial<DropdownItemTheme>;\n}\n\n/**\n * Theme definition for `DropdownItemComponent`\n */\nexport interface DropdownItemTheme {\n root: {\n base: string;\n };\n}\n\n/**\n * Default theme value for `DropdownItemComponent`\n */\nexport const dropdownItemTheme: DropdownItemTheme = {\n root: {\n base: 'flex items-center justify-start py-2 px-4 text-sm text-gray-700 cursor-pointer hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white',\n },\n};\n\n/**\n * Generated class definition for `DropdownItemComponent`\n */\nexport type DropdownItemClass = FlowbiteClass;\n","import type { FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for the class generation of `DropdownDividerComponent`\n */\nexport interface DropdownDividerProperties {\n customStyle: Partial<DropdownDividerTheme>;\n}\n\n/**\n * Theme definition for `DropdownDividerComponent`\n */\nexport interface DropdownDividerTheme {\n root: {\n base: string;\n };\n}\n\n/**\n * Default theme for `DropdownDividerComponent`\n */\nexport const dropdownDividerTheme: DropdownDividerTheme = createTheme({\n root: {\n base: 'block my-1 h-px bg-gray-100 dark:bg-gray-600',\n },\n});\n\n/**\n * Generated class definition for `DropdownDividerComponent`\n */\nexport type DropdownDividerClass = FlowbiteClass;\n","import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for the class generation of `DropdownHeaderComponent`\n */\nexport interface DropdownHeaderProperties {\n customStyle: DeepPartial<DropdownHeaderTheme>;\n}\n\n/**\n * Theme definition of `DropdownHeaderComponent`\n */\nexport interface DropdownHeaderTheme {\n root: {\n base: string;\n };\n content: {\n base: string;\n };\n}\n\n/**\n * Default theme for `DropdownHeaderComponent`\n */\nexport const dropdownHeaderTheme: DropdownHeaderTheme = createTheme({\n root: {\n base: '',\n },\n content: {\n base: 'block py-2 px-4 text-sm text-gray-700 dark:text-gray-200',\n },\n});\n\n/**\n * Generated class definition for `DropdownHeaderComponent`\n */\nexport interface DropdownHeaderClass extends FlowbiteClass {\n root: string;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAYA;;;;;;;AAOG;MACU,qCAAqC,GAAG,IAAI,cAAc,CACrE,uCAAuC,EACvC;MAKW,2BAA2B,CAAA;AAHxC,IAAA,WAAA,GAAA;AAMmB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qCAAqC,CAAC,CAAC;AAW5E,KAAA;AATQ,IAAA,UAAU,CAAC,UAAqC,EAAA;AACrD,QAAA,MAAM,KAAK,GAAyB,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;AAEvF,QAAA,MAAM,MAAM,GAAyB;YACnC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;SACpC,CAAC;AAEF,QAAA,OAAO,MAAM,CAAC;KACf;8GAbU,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,cAF1B,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEP,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAHvC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACXD;;AAEG;AASG,MAAO,wBAAyB,SAAQ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AAE;AACJ,QAAA,IAAI,EAAE,8CAA8C;AACrD,KAAA;AACF,CAAA;;ACJD;;AAEG;AACI,MAAM,mBAAmB,GAAwB,WAAW,CAAC;AAClE,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,EAAE;AACT,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE,0DAA0D;AACjE,KAAA;AACF,CAAA;;AChCD;;AAEG;;;;"}
1
+ {"version":3,"file":"flowbite-angular-dropdown.mjs","sources":["../../../../libs/flowbite-angular/dropdown/dropdown-divider.theme.service.ts","../../../../libs/flowbite-angular/dropdown/dropdown-divider.component.ts","../../../../libs/flowbite-angular/dropdown/dropdown-header.theme.service.ts","../../../../libs/flowbite-angular/dropdown/dropdown-header.component.ts","../../../../libs/flowbite-angular/dropdown/dropdown-item.theme.service.ts","../../../../libs/flowbite-angular/dropdown/dropdown-item.component.ts","../../../../libs/flowbite-angular/dropdown/dropdown.theme.service.ts","../../../../libs/flowbite-angular/dropdown/dropdown.component.ts","../../../../libs/flowbite-angular/dropdown/dropdown.theme.ts","../../../../libs/flowbite-angular/dropdown/dropdown-item.theme.ts","../../../../libs/flowbite-angular/dropdown/dropdown-divider.theme.ts","../../../../libs/flowbite-angular/dropdown/dropdown-header.theme.ts","../../../../libs/flowbite-angular/dropdown/flowbite-angular-dropdown.ts"],"sourcesContent":["import type {\n DropdownDividerClass,\n DropdownDividerProperties,\n DropdownDividerTheme,\n} from './dropdown-divider.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `DropdownDividerTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_DROPDOWN_DIVIDER_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_DROPDOWN_DIVIDER_THEME_TOKEN = new InjectionToken<DropdownDividerTheme>(\n 'FLOWBITE_DROPDOWN_DIVIDER_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DropdownDividerThemeService\n implements FlowbiteThemeService<DropdownDividerProperties>\n{\n private readonly baseTheme = inject(FLOWBITE_DROPDOWN_DIVIDER_THEME_TOKEN);\n\n public getClasses(properties: DropdownDividerProperties): DropdownDividerClass {\n const theme: DropdownDividerTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: DropdownDividerClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import type { DropdownDividerClass, DropdownDividerTheme } from './dropdown-divider.theme';\nimport { DropdownDividerThemeService } from './dropdown-divider.theme.service';\nimport { DropdownComponent } from './dropdown.component';\n\nimport { BaseComponent } from 'flowbite-angular';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/dropdowns/\n */\n@Component({\n standalone: true,\n imports: [NgClass],\n selector: 'flowbite-dropdown-divider',\n template: ``,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DropdownDividerComponent extends BaseComponent<DropdownDividerClass> {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(DropdownDividerThemeService);\n /**\n * The parent `DropdownComponent`\n */\n public readonly dropdownComponent = inject(DropdownComponent);\n\n //#region properties\n /**\n * Set the custom style for this dropdown divider\n */\n public customStyle = model<Partial<DropdownDividerTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): DropdownDividerClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n}\n","import type {\n DropdownHeaderClass,\n DropdownHeaderProperties,\n DropdownHeaderTheme,\n} from './dropdown-header.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `DropdownHeaderTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_DROPDOWN_HEADER_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_DROPDOWN_HEADER_THEME_TOKEN = new InjectionToken<DropdownHeaderTheme>(\n 'FLOWBITE_DROPDOWN_HEADER_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DropdownHeaderThemeService implements FlowbiteThemeService<DropdownHeaderProperties> {\n private readonly baseTheme = inject(FLOWBITE_DROPDOWN_HEADER_THEME_TOKEN);\n\n public getClasses(properties: DropdownHeaderProperties): DropdownHeaderClass {\n const theme: DropdownHeaderTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: DropdownHeaderClass = {\n rootClass: twMerge(theme.root.base),\n root: twMerge(theme.content.base),\n };\n\n return output;\n }\n}\n","import type { DropdownHeaderClass, DropdownHeaderTheme } from './dropdown-header.theme';\nimport { DropdownHeaderThemeService } from './dropdown-header.theme.service';\nimport { DropdownComponent } from './dropdown.component';\n\nimport { BaseComponent } from 'flowbite-angular';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/dropdowns/\n */\n@Component({\n standalone: true,\n imports: [NgClass],\n selector: 'flowbite-dropdown-header',\n template: `\n <div [ngClass]=\"contentClasses().root\">\n <ng-content />\n </div>\n <div class=\"my-1 h-px bg-gray-100 dark:bg-gray-600\"></div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DropdownHeaderComponent extends BaseComponent<DropdownHeaderClass> {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(DropdownHeaderThemeService);\n /**\n * The parent `DropdownComponent`\n */\n public readonly dropdownComponent = inject(DropdownComponent);\n\n //#region properties\n /**\n * Set the custom style for this dropdown header\n */\n public customStyle = model<Partial<DropdownHeaderTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): DropdownHeaderClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n}\n","import type {\n DropdownItemClass,\n DropdownItemProperties,\n DropdownItemTheme,\n} from './dropdown-item.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `DropdownItemTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_DROPDOWN_ITEM_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_DROPDOWN_ITEM_THEME_TOKEN = new InjectionToken<DropdownItemTheme>(\n 'FLOWBITE_DROPDOWN_ITEM_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DropdownItemThemeService implements FlowbiteThemeService<DropdownItemProperties> {\n private readonly baseTheme = inject(FLOWBITE_DROPDOWN_ITEM_THEME_TOKEN);\n\n public getClasses(properties: DropdownItemProperties): DropdownItemClass {\n const theme: DropdownItemTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: DropdownItemClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import type { DropdownItemClass, DropdownItemTheme } from './dropdown-item.theme';\nimport { DropdownItemThemeService } from './dropdown-item.theme.service';\nimport { DropdownComponent } from './dropdown.component';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/dropdowns/\n */\n@Component({\n standalone: true,\n imports: [NgClass],\n selector: 'flowbite-dropdown-item',\n template: `<ng-content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DropdownItemComponent extends BaseComponent<DropdownItemClass> {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(DropdownItemThemeService);\n /**\n * The parent `DropdownComponent`\n */\n public readonly dropdownComponent = inject(DropdownComponent);\n\n //#region properties\n /**\n * Set the custom style for this dropdown item\n */\n public customStyle = model<DeepPartial<DropdownItemTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): DropdownItemClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n}\n","import type { DropdownClass, DropdownProperties, DropdownTheme } from './dropdown.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `DropdownTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_DROPDOWN_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_DROPDOWN_THEME_TOKEN = new InjectionToken<DropdownTheme>(\n 'FLOWBITE_DROPDOWN_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DropdownThemeService implements FlowbiteThemeService<DropdownProperties> {\n private readonly baseTheme = inject(FLOWBITE_DROPDOWN_THEME_TOKEN);\n\n public getClasses(properties: DropdownProperties): DropdownClass {\n const theme: DropdownTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: DropdownClass = {\n rootClass: twMerge(theme.root.base),\n dropdownClass: twMerge(theme.dropdown.base),\n spanClass: twMerge(theme.span.base),\n containerClass: twMerge(\n theme.container.base,\n theme.container.isOpen[properties.isOpen],\n theme.container.placement[properties.placement]\n ),\n contentClass: twMerge(theme.content.base),\n subContentClass: twMerge(theme.subContent.base),\n };\n\n return output;\n }\n}\n","import { DropdownDividerComponent } from './dropdown-divider.component';\nimport { DropdownHeaderComponent } from './dropdown-header.component';\nimport { DropdownItemComponent } from './dropdown-item.component';\nimport type { DropdownClass, DropdownPositions, DropdownTheme } from './dropdown.theme';\nimport { DropdownThemeService } from './dropdown.theme.service';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { CHEVRON_DOWN_SVG_ICON } from 'flowbite-angular/utils';\n\nimport { NgClass } from '@angular/common';\nimport type { AfterViewInit } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n contentChildren,\n ElementRef,\n inject,\n model,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport type { Placement } from '@floating-ui/dom';\nimport { autoUpdate, computePosition, flip, offset, shift } from '@floating-ui/dom';\n\n/**\n * @see https://flowbite.com/docs/components/dropdowns/\n */\n@Component({\n standalone: true,\n imports: [NgClass, IconComponent],\n selector: 'flowbite-dropdown',\n template: `\n <button\n type=\"button\"\n [ngClass]=\"contentClasses().dropdownClass\"\n (click)=\"toggle()\"\n #button>\n <span [ngClass]=\"contentClasses().spanClass\">\n {{ label() }}\n <flowbite-icon\n svgIcon=\"flowbite-angular:chevron-down\"\n class=\"ml-2 h-4 w-4\" />\n </span>\n </button>\n <div\n [ngClass]=\"contentClasses().containerClass\"\n #dropdown\n [style.display]=\"isOpen() ? 'block' : 'none'\">\n <div [ngClass]=\"contentClasses().contentClass\">\n <ul [ngClass]=\"contentClasses().subContentClass\">\n <ng-content />\n </ul>\n </div>\n </div>\n `,\n host: {\n '(document:click)': 'clickout($event)',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class DropdownComponent extends BaseComponent<DropdownClass> implements AfterViewInit {\n @ViewChild('dropdown') dropdown!: ElementRef;\n @ViewChild('button') button!: ElementRef;\n\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(DropdownThemeService);\n /**\n * `IconRegistry` service\n */\n public readonly iconRegistry = inject(IconRegistry);\n /**\n * `DomSanitizer` service\n */\n public readonly domSanitizer = inject(DomSanitizer);\n /**\n * List of `DropdownItemComponent`\n */\n public readonly dropdownItemChildren = contentChildren(DropdownItemComponent);\n /**\n * List of `DropdownHeaderComponent`\n */\n public readonly dropdownHeaderChildren = contentChildren(DropdownHeaderComponent);\n /**\n * List of `DropdownDividerComponent`\n */\n public readonly dropdownDividerChildren = contentChildren(DropdownDividerComponent);\n\n //#region properties\n /**\n * Set the dropdown label\n *\n * @default Dropdown\n */\n public label = model('Dropdown');\n /**\n * Set if the dropdown is open\n *\n * @default false\n */\n public isOpen = model<boolean>(false);\n /**\n * Set the dropdown position\n *\n * @default bottom-center\n */\n public position = model<keyof DropdownPositions>('bottom-center');\n /**\n * Set the custom style for this dropdown\n */\n public customStyle = model<DeepPartial<DropdownTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): DropdownClass {\n return this.themeService.getClasses({\n label: this.label(),\n isOpen: booleanToFlowbiteBoolean(this.isOpen()),\n placement: this.position(),\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'chevron-down',\n this.domSanitizer.bypassSecurityTrustHtml(CHEVRON_DOWN_SVG_ICON)\n );\n }\n\n public override verify(): void {\n if (this.dropdownItemChildren().length === 0) {\n throw new Error('No DropdownItemComponent available');\n }\n }\n //#endregion\n\n x = 0;\n y = 0;\n width = 0;\n\n /**\n * Toggle dropdown isOpen\n */\n public toggle() {\n this.isOpen.set(!this.isOpen());\n }\n\n calculatePosition() {\n computePosition(this.button.nativeElement, this.dropdown.nativeElement, {\n placement: this.convertPosition(this.position()),\n middleware: [offset(8), flip(), shift()],\n }).then(({ x, y }: { x: number; y: number }) => {\n this.dropdown.nativeElement.style.left = x + 'px';\n this.dropdown.nativeElement.style.top = y + 'px';\n this.width = this.button.nativeElement.offsetWidth;\n });\n }\n\n ngAfterViewInit() {\n // todo : Fix ERROR ReferenceError: ResizeObserver is not defined\n // Append when runing command 'pnpm lib:build'\n autoUpdate(this.button.nativeElement, this.dropdown.nativeElement, () => {\n if (!this.isOpen()) return;\n this.calculatePosition();\n });\n }\n\n // Onclick outside the dropdown, close it\n clickout(event: Event) {\n if (\n !this.dropdown.nativeElement.contains(event.target) &&\n this.isOpen() &&\n !this.button.nativeElement.contains(event.target)\n ) {\n this.isOpen.set(false);\n }\n }\n\n convertPosition(pos: keyof DropdownPositions): Placement {\n switch (pos) {\n case 'top-center':\n return 'top';\n case 'bottom-center':\n return 'bottom';\n case 'left-center':\n return 'left';\n case 'right-center':\n return 'right';\n }\n }\n}\n","import type {\n DeepPartial,\n FlowbiteBoolean,\n FlowbiteClass,\n FlowbitePositions,\n} from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n//#region Component theme option\n/**\n * Available positions for `DropdownComponent`\n */\nexport interface DropdownPositions extends Pick<FlowbitePositions, 'bottom-center' | 'top-center'> {\n 'left-center': string;\n 'right-center': string;\n}\n//#endregion\n\n/**\n * Required properties for the class generation of `DropdownComponent`\n */\nexport interface DropdownProperties {\n label: string;\n isOpen: keyof FlowbiteBoolean;\n placement: keyof DropdownPositions;\n customStyle: DeepPartial<DropdownTheme>;\n}\n\n/**\n * Theme definition for `DropdownComponent`\n */\nexport interface DropdownTheme {\n root: {\n base: string;\n };\n dropdown: {\n base: string;\n };\n span: {\n base: string;\n };\n container: {\n base: string;\n isOpen: FlowbiteBoolean;\n placement: DropdownPositions;\n };\n content: {\n base: string;\n };\n subContent: {\n base: string;\n };\n}\n\n/**\n * Default theme for `DropdownComponent`\n */\nexport const dropdownTheme: DropdownTheme = createTheme({\n root: {\n base: '',\n },\n dropdown: {\n base: 'text-white bg-blue-700 border border-transparent hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 disabled:hover:bg-blue-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 dark:disabled:hover:bg-blue-600 group flex h-min items-center justify-center p-0.5 text-center font-medium focus:z-10 rounded-lg',\n },\n span: {\n base: 'flex items-center rounded-md text-sm px-4 py-2',\n },\n container: {\n base: 'z-10 bg-white divide-y divide-gray-100 rounded-lg shadow dark:bg-gray-700 min-w-fit absolute',\n isOpen: {\n enabled: 'block',\n disabled: 'hidden',\n },\n placement: {\n 'top-center': '',\n 'bottom-center': '',\n 'left-center': '',\n 'right-center': '',\n },\n },\n content: {\n base: 'py-1 text-sm text-gray-700 dark:text-gray-200 shadow-md',\n },\n subContent: {\n base: 'py-1',\n },\n});\n\n/**\n * Generated class definition for `DropdownComponent`\n */\nexport interface DropdownClass extends FlowbiteClass {\n dropdownClass: string;\n spanClass: string;\n containerClass: string;\n contentClass: string;\n subContentClass: string;\n}\n","import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\n\n/**\n * Required properties for the cmass generation of `DropdownItemComponent`\n */\nexport interface DropdownItemProperties {\n customStyle: DeepPartial<DropdownItemTheme>;\n}\n\n/**\n * Theme definition for `DropdownItemComponent`\n */\nexport interface DropdownItemTheme {\n root: {\n base: string;\n };\n}\n\n/**\n * Default theme value for `DropdownItemComponent`\n */\nexport const dropdownItemTheme: DropdownItemTheme = {\n root: {\n base: 'flex items-center justify-start py-2 px-4 text-sm text-gray-700 cursor-pointer hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white',\n },\n};\n\n/**\n * Generated class definition for `DropdownItemComponent`\n */\nexport type DropdownItemClass = FlowbiteClass;\n","import type { FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for the class generation of `DropdownDividerComponent`\n */\nexport interface DropdownDividerProperties {\n customStyle: Partial<DropdownDividerTheme>;\n}\n\n/**\n * Theme definition for `DropdownDividerComponent`\n */\nexport interface DropdownDividerTheme {\n root: {\n base: string;\n };\n}\n\n/**\n * Default theme for `DropdownDividerComponent`\n */\nexport const dropdownDividerTheme: DropdownDividerTheme = createTheme({\n root: {\n base: 'block my-1 h-px bg-gray-100 dark:bg-gray-600',\n },\n});\n\n/**\n * Generated class definition for `DropdownDividerComponent`\n */\nexport type DropdownDividerClass = FlowbiteClass;\n","import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n/**\n * Required properties for the class generation of `DropdownHeaderComponent`\n */\nexport interface DropdownHeaderProperties {\n customStyle: DeepPartial<DropdownHeaderTheme>;\n}\n\n/**\n * Theme definition of `DropdownHeaderComponent`\n */\nexport interface DropdownHeaderTheme {\n root: {\n base: string;\n };\n content: {\n base: string;\n };\n}\n\n/**\n * Default theme for `DropdownHeaderComponent`\n */\nexport const dropdownHeaderTheme: DropdownHeaderTheme = createTheme({\n root: {\n base: '',\n },\n content: {\n base: 'block py-2 px-4 text-sm text-gray-700 dark:text-gray-200',\n },\n});\n\n/**\n * Generated class definition for `DropdownHeaderComponent`\n */\nexport interface DropdownHeaderClass extends FlowbiteClass {\n root: string;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAYA;;;;;;;AAOG;MACU,qCAAqC,GAAG,IAAI,cAAc,CACrE,uCAAuC,EACvC;MAKW,2BAA2B,CAAA;AAHxC,IAAA,WAAA,GAAA;AAMmB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qCAAqC,CAAC,CAAC;AAW5E,KAAA;AATQ,IAAA,UAAU,CAAC,UAAqC,EAAA;AACrD,QAAA,MAAM,KAAK,GAAyB,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;AAEvF,QAAA,MAAM,MAAM,GAAyB;YACnC,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;SACpC,CAAC;AAEF,QAAA,OAAO,MA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