flowbite-angular 1.0.0-alpha.2 → 1.0.0-alpha.4
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.
- package/LICENSE +21 -0
- package/README.md +376 -0
- package/accordion/README.md +3 -0
- package/{lib/components/accordion → accordion}/accordion-content.component.d.ts +1 -1
- package/{lib/components/accordion → accordion}/accordion-content.theme.d.ts +1 -1
- package/{lib/components/accordion → accordion}/accordion-content.theme.service.d.ts +1 -1
- package/{lib/components/accordion → accordion}/accordion-panel.component.d.ts +1 -1
- package/{lib/components/accordion → accordion}/accordion-panel.theme.d.ts +1 -1
- package/{lib/components/accordion → accordion}/accordion-panel.theme.service.d.ts +1 -1
- package/{lib/components/accordion → accordion}/accordion-title.component.d.ts +2 -2
- package/{lib/components/accordion → accordion}/accordion-title.theme.d.ts +1 -2
- package/{lib/components/accordion → accordion}/accordion-title.theme.service.d.ts +1 -1
- package/{lib/components/accordion → accordion}/accordion.component.d.ts +1 -1
- package/{lib/components/accordion → accordion}/accordion.theme.d.ts +1 -4
- package/{lib/components/accordion → accordion}/accordion.theme.service.d.ts +1 -1
- package/alert/README.md +3 -0
- package/{lib/components/alert → alert}/alert.component.d.ts +5 -5
- package/{lib/components/alert → alert}/alert.theme.d.ts +1 -4
- package/{lib/components/alert → alert}/alert.theme.service.d.ts +1 -1
- package/badge/README.md +3 -0
- package/{lib/components/badge → badge}/badge.component.d.ts +4 -4
- package/{lib/components/badge → badge}/badge.theme.d.ts +1 -6
- package/{lib/components/badge → badge}/badge.theme.service.d.ts +1 -1
- package/{lib/components/base-component.directive.d.ts → base-component.directive.d.ts} +2 -2
- package/breadcrumb/README.md +3 -0
- package/{lib/components/breadcrumb → breadcrumb}/breadcrumb-item.component.d.ts +4 -4
- package/{lib/components/breadcrumb → breadcrumb}/breadcrumb-item.theme.d.ts +1 -2
- package/{lib/components/breadcrumb → breadcrumb}/breadcrumb-item.theme.service.d.ts +1 -1
- package/{lib/components/breadcrumb → breadcrumb}/breadcrumb.component.d.ts +1 -1
- package/{lib/components/breadcrumb → breadcrumb}/breadcrumb.theme.d.ts +1 -1
- package/{lib/components/breadcrumb → breadcrumb}/breadcrumb.theme.service.d.ts +1 -1
- package/button/README.md +3 -0
- package/{lib/components/button → button}/button.component.d.ts +2 -2
- package/{lib/components/button → button}/button.theme.d.ts +1 -8
- package/{lib/components/button → button}/button.theme.service.d.ts +1 -1
- package/core/README.md +3 -0
- package/core/index.d.ts +1 -0
- package/dark-theme-toggle/README.md +3 -0
- package/{lib/components/dark-theme-toggle → dark-theme-toggle}/dark-theme-toggle.component.d.ts +2 -2
- package/{lib/components/dark-theme-toggle → dark-theme-toggle}/dark-theme-toggle.theme.d.ts +1 -1
- package/{lib/components/dark-theme-toggle → dark-theme-toggle}/dark-theme-toggle.theme.service.d.ts +1 -1
- package/{lib/components/dark-theme-toggle → dark-theme-toggle}/index.d.ts +1 -2
- package/dropdown/README.md +3 -0
- package/{lib/components/dropdown → dropdown}/dropdown-divider.component.d.ts +1 -1
- package/{lib/components/dropdown → dropdown}/dropdown-divider.theme.d.ts +1 -1
- package/{lib/components/dropdown → dropdown}/dropdown-divider.theme.service.d.ts +1 -1
- package/{lib/components/dropdown → dropdown}/dropdown-header.component.d.ts +1 -1
- package/{lib/components/dropdown → dropdown}/dropdown-header.theme.d.ts +1 -1
- package/{lib/components/dropdown → dropdown}/dropdown-header.theme.service.d.ts +1 -1
- package/{lib/components/dropdown → dropdown}/dropdown-item.component.d.ts +1 -1
- package/{lib/components/dropdown → dropdown}/dropdown-item.theme.d.ts +1 -1
- package/{lib/components/dropdown → dropdown}/dropdown-item.theme.service.d.ts +1 -1
- package/{lib/components/dropdown → dropdown}/dropdown.component.d.ts +2 -2
- package/{lib/components/dropdown → dropdown}/dropdown.theme.d.ts +1 -4
- package/{lib/components/dropdown → dropdown}/dropdown.theme.service.d.ts +1 -1
- package/esm2022/accordion/accordion-content.component.mjs +47 -0
- package/esm2022/accordion/accordion-content.theme.mjs +19 -0
- package/esm2022/accordion/accordion-content.theme.service.mjs +17 -0
- package/esm2022/accordion/accordion-panel.component.mjs +59 -0
- package/esm2022/accordion/accordion-panel.theme.mjs +7 -0
- package/esm2022/accordion/accordion-panel.theme.service.mjs +17 -0
- package/esm2022/accordion/accordion-title.component.mjs +71 -0
- package/esm2022/accordion/accordion-title.theme.mjs +26 -0
- package/esm2022/accordion/accordion-title.theme.service.mjs +18 -0
- package/esm2022/accordion/accordion.component.mjs +50 -0
- package/esm2022/accordion/accordion.theme.mjs +19 -0
- package/esm2022/accordion/accordion.theme.service.mjs +17 -0
- package/esm2022/accordion/flowbite-angular-accordion.mjs +5 -0
- package/esm2022/accordion/index.mjs +13 -0
- package/esm2022/alert/alert.component.mjs +96 -0
- package/esm2022/alert/alert.theme.mjs +34 -0
- package/esm2022/alert/alert.theme.service.mjs +18 -0
- package/esm2022/alert/flowbite-angular-alert.mjs +5 -0
- package/esm2022/alert/index.mjs +4 -0
- package/esm2022/badge/badge.component.mjs +48 -0
- package/esm2022/badge/badge.theme.mjs +34 -0
- package/esm2022/badge/badge.theme.service.mjs +19 -0
- package/esm2022/badge/flowbite-angular-badge.mjs +5 -0
- package/esm2022/badge/index.mjs +4 -0
- package/esm2022/base-component.directive.mjs +34 -0
- package/esm2022/breadcrumb/breadcrumb-item.component.mjs +59 -0
- package/esm2022/breadcrumb/breadcrumb-item.theme.mjs +18 -0
- package/esm2022/breadcrumb/breadcrumb-item.theme.service.mjs +18 -0
- package/esm2022/breadcrumb/breadcrumb.component.mjs +48 -0
- package/esm2022/breadcrumb/breadcrumb.theme.mjs +7 -0
- package/esm2022/breadcrumb/breadcrumb.theme.service.mjs +17 -0
- package/esm2022/breadcrumb/flowbite-angular-breadcrumb.mjs +5 -0
- package/esm2022/breadcrumb/index.mjs +7 -0
- package/esm2022/{lib/components/button → button}/button.component.mjs +6 -5
- package/esm2022/button/button.theme.mjs +113 -0
- package/esm2022/button/button.theme.service.mjs +24 -0
- package/esm2022/button/flowbite-angular-button.mjs +5 -0
- package/esm2022/button/index.mjs +4 -0
- package/esm2022/core/flowbite-angular-core.mjs +5 -0
- package/esm2022/core/flowbite.theme.init.mjs +281 -0
- package/esm2022/core/index.mjs +2 -0
- package/esm2022/{lib/components/dark-theme-toggle → dark-theme-toggle}/dark-theme-toggle.component.mjs +8 -6
- package/esm2022/dark-theme-toggle/dark-theme-toggle.theme.mjs +7 -0
- package/esm2022/dark-theme-toggle/dark-theme-toggle.theme.service.mjs +17 -0
- package/esm2022/dark-theme-toggle/flowbite-angular-dark-theme-toggle.mjs +5 -0
- package/esm2022/dark-theme-toggle/index.mjs +4 -0
- package/esm2022/dropdown/dropdown-divider.component.mjs +36 -0
- package/esm2022/dropdown/dropdown-divider.theme.mjs +7 -0
- package/esm2022/dropdown/dropdown-divider.theme.service.mjs +17 -0
- package/esm2022/dropdown/dropdown-header.component.mjs +46 -0
- package/esm2022/dropdown/dropdown-header.theme.mjs +10 -0
- package/esm2022/dropdown/dropdown-header.theme.service.mjs +18 -0
- package/esm2022/dropdown/dropdown-item.component.mjs +36 -0
- package/esm2022/dropdown/dropdown-item.theme.mjs +6 -0
- package/esm2022/dropdown/dropdown-item.theme.service.mjs +17 -0
- package/esm2022/dropdown/dropdown.component.mjs +150 -0
- package/esm2022/dropdown/dropdown.theme.mjs +32 -0
- package/esm2022/dropdown/dropdown.theme.service.mjs +22 -0
- package/esm2022/dropdown/flowbite-angular-dropdown.mjs +5 -0
- package/esm2022/dropdown/index.mjs +13 -0
- package/esm2022/flowbite-angular.mjs +2 -2
- package/esm2022/flowbite.theme.service.mjs +16 -0
- package/esm2022/icon/flowbite-angular-icon.mjs +5 -0
- package/esm2022/icon/icon-registry.mjs +159 -0
- package/esm2022/icon/icon.component.mjs +72 -0
- package/esm2022/icon/index.mjs +4 -0
- package/esm2022/icon/trusted-types.mjs +21 -0
- package/esm2022/index.mjs +4 -0
- package/esm2022/indicator/flowbite-angular-indicator.mjs +5 -0
- package/esm2022/indicator/index.mjs +4 -0
- package/esm2022/indicator/indicators.component.mjs +55 -0
- package/esm2022/indicator/indicators.theme.mjs +68 -0
- package/esm2022/indicator/indicators.theme.service.mjs +19 -0
- package/esm2022/modal/flowbite-angular-modal.mjs +5 -0
- package/esm2022/modal/index.mjs +13 -0
- package/esm2022/modal/modal-body.component.mjs +36 -0
- package/esm2022/modal/modal-body.theme.mjs +7 -0
- package/esm2022/modal/modal-body.theme.service.mjs +17 -0
- package/esm2022/modal/modal-footer.component.mjs +36 -0
- package/esm2022/modal/modal-footer.theme.mjs +7 -0
- package/esm2022/modal/modal-footer.theme.service.mjs +17 -0
- package/esm2022/modal/modal-header.component.mjs +68 -0
- package/esm2022/modal/modal-header.theme.mjs +13 -0
- package/esm2022/modal/modal-header.theme.service.mjs +19 -0
- package/esm2022/modal/modal.component.mjs +143 -0
- package/esm2022/modal/modal.theme.mjs +33 -0
- package/esm2022/modal/modal.theme.service.mjs +20 -0
- package/esm2022/navbar/flowbite-angular-navbar.mjs +5 -0
- package/esm2022/navbar/index.mjs +19 -0
- package/esm2022/navbar/navbar-brand.component.mjs +36 -0
- package/esm2022/navbar/navbar-brand.theme.mjs +7 -0
- package/esm2022/navbar/navbar-brand.theme.service.mjs +17 -0
- package/esm2022/navbar/navbar-content.component.mjs +46 -0
- package/esm2022/navbar/navbar-content.theme.mjs +14 -0
- package/esm2022/navbar/navbar-content.theme.service.mjs +18 -0
- package/esm2022/navbar/navbar-icon-button.component.mjs +44 -0
- package/esm2022/navbar/navbar-icon-button.theme.mjs +15 -0
- package/esm2022/navbar/navbar-icon-button.theme.service.mjs +17 -0
- package/esm2022/navbar/navbar-item.component.mjs +51 -0
- package/esm2022/{lib/components/navbar → navbar}/navbar-item.theme.mjs +2 -2
- package/esm2022/navbar/navbar-item.theme.service.mjs +17 -0
- package/esm2022/navbar/navbar-toggle.component.mjs +52 -0
- package/esm2022/navbar/navbar-toggle.theme.mjs +7 -0
- package/esm2022/navbar/navbar-toggle.theme.service.mjs +17 -0
- package/esm2022/navbar/navbar.component.mjs +63 -0
- package/esm2022/navbar/navbar.theme.mjs +23 -0
- package/esm2022/navbar/navbar.theme.service.mjs +17 -0
- package/esm2022/router-link/flowbite-angular-router-link.mjs +5 -0
- package/esm2022/router-link/flowbite-router-link.directive.mjs +54 -0
- package/esm2022/router-link/index.mjs +2 -0
- package/esm2022/router-link-active/flowbite-angular-router-link-active.mjs +5 -0
- package/esm2022/router-link-active/flowbite-router-link-active.directive.mjs +49 -0
- package/esm2022/router-link-active/index.mjs +2 -0
- package/esm2022/sanitize-html/flowbite-angular-sanitize-html.mjs +5 -0
- package/esm2022/sanitize-html/index.mjs +2 -0
- package/esm2022/sanitize-html/sanitize-html.pipe.mjs +32 -0
- package/esm2022/scroll-top/flowbite-angular-scroll-top.mjs +5 -0
- package/esm2022/scroll-top/index.mjs +4 -0
- package/esm2022/scroll-top/scroll-top.component.mjs +52 -0
- package/esm2022/scroll-top/scroll-top.theme.mjs +27 -0
- package/esm2022/scroll-top/scroll-top.theme.service.mjs +17 -0
- package/esm2022/sidebar/flowbite-angular-sidebar.mjs +5 -0
- package/esm2022/sidebar/index.mjs +19 -0
- package/esm2022/sidebar/sidebar-item-group.component.mjs +83 -0
- package/esm2022/sidebar/sidebar-item-group.theme.mjs +18 -0
- package/esm2022/sidebar/sidebar-item-group.theme.service.mjs +18 -0
- package/esm2022/sidebar/sidebar-item.component.mjs +79 -0
- package/esm2022/sidebar/sidebar-item.theme.mjs +18 -0
- package/esm2022/sidebar/sidebar-item.theme.service.mjs +18 -0
- package/esm2022/sidebar/sidebar-menu.component.mjs +50 -0
- package/esm2022/sidebar/sidebar-menu.theme.mjs +24 -0
- package/esm2022/sidebar/sidebar-menu.theme.service.mjs +17 -0
- package/esm2022/sidebar/sidebar-page-content.component.mjs +37 -0
- package/esm2022/sidebar/sidebar-page-content.theme.mjs +12 -0
- package/esm2022/sidebar/sidebar-page-content.theme.service.mjs +17 -0
- package/esm2022/sidebar/sidebar-toggle.component.mjs +55 -0
- package/esm2022/sidebar/sidebar-toggle.theme.mjs +18 -0
- package/esm2022/sidebar/sidebar-toggle.theme.service.mjs +17 -0
- package/esm2022/sidebar/sidebar.component.mjs +62 -0
- package/esm2022/sidebar/sidebar.theme.mjs +11 -0
- package/esm2022/sidebar/sidebar.theme.service.mjs +17 -0
- package/esm2022/type-definitions/colors/flowbite.colors.mjs +2 -0
- package/esm2022/type-definitions/colors/flowbite.gradient-colors.mjs +2 -0
- package/esm2022/type-definitions/colors/flowbite.gradient-duo-tone-colors.mjs +2 -0
- package/esm2022/type-definitions/colors/index.mjs +2 -0
- package/esm2022/type-definitions/flowbite.boolean.mjs +10 -0
- package/esm2022/type-definitions/flowbite.class.mjs +2 -0
- package/esm2022/type-definitions/flowbite.combination.mjs +5 -0
- package/esm2022/type-definitions/flowbite.content-positions.mjs +2 -0
- package/esm2022/type-definitions/flowbite.deep-partial.mjs +2 -0
- package/esm2022/type-definitions/flowbite.heading-levels.mjs +2 -0
- package/esm2022/type-definitions/flowbite.positions.mjs +2 -0
- package/esm2022/type-definitions/flowbite.router-link-parameter.mjs +2 -0
- package/esm2022/type-definitions/flowbite.sizes.mjs +2 -0
- package/esm2022/type-definitions/flowbite.themes.mjs +2 -0
- package/esm2022/type-definitions/index.mjs +3 -0
- package/esm2022/utils/flowbite-angular-utils.mjs +5 -0
- package/esm2022/utils/icon.list.mjs +39 -0
- package/esm2022/utils/id.generator.mjs +81 -0
- package/esm2022/utils/index.mjs +9 -0
- package/esm2022/utils/theme/clone-deep.mjs +18 -0
- package/esm2022/utils/theme/create-class.mjs +10 -0
- package/esm2022/utils/theme/create-theme.mjs +10 -0
- package/esm2022/utils/theme/is-object.mjs +10 -0
- package/esm2022/utils/theme/merge-theme.mjs +29 -0
- package/esm2022/utils/theme/to-string.mjs +10 -0
- package/fesm2022/flowbite-angular-accordion.mjs +338 -0
- package/fesm2022/flowbite-angular-accordion.mjs.map +1 -0
- package/fesm2022/flowbite-angular-alert.mjs +151 -0
- package/fesm2022/flowbite-angular-alert.mjs.map +1 -0
- package/fesm2022/flowbite-angular-badge.mjs +105 -0
- package/fesm2022/flowbite-angular-badge.mjs.map +1 -0
- package/fesm2022/flowbite-angular-breadcrumb.mjs +159 -0
- package/fesm2022/flowbite-angular-breadcrumb.mjs.map +1 -0
- package/fesm2022/flowbite-angular-button.mjs +223 -0
- package/fesm2022/flowbite-angular-button.mjs.map +1 -0
- package/fesm2022/flowbite-angular-core.mjs +288 -0
- package/fesm2022/flowbite-angular-core.mjs.map +1 -0
- package/fesm2022/flowbite-angular-dark-theme-toggle.mjs +105 -0
- package/fesm2022/flowbite-angular-dark-theme-toggle.mjs.map +1 -0
- package/fesm2022/flowbite-angular-dropdown.mjs +368 -0
- package/fesm2022/flowbite-angular-dropdown.mjs.map +1 -0
- package/fesm2022/flowbite-angular-icon.mjs +254 -0
- package/fesm2022/flowbite-angular-icon.mjs.map +1 -0
- package/fesm2022/flowbite-angular-indicator.mjs +146 -0
- package/fesm2022/flowbite-angular-indicator.mjs.map +1 -0
- package/fesm2022/flowbite-angular-modal.mjs +386 -0
- package/fesm2022/flowbite-angular-modal.mjs.map +1 -0
- package/fesm2022/flowbite-angular-navbar.mjs +422 -0
- package/fesm2022/flowbite-angular-navbar.mjs.map +1 -0
- package/fesm2022/flowbite-angular-router-link-active.mjs +56 -0
- package/fesm2022/flowbite-angular-router-link-active.mjs.map +1 -0
- package/fesm2022/flowbite-angular-router-link.mjs +61 -0
- package/fesm2022/flowbite-angular-router-link.mjs.map +1 -0
- package/fesm2022/flowbite-angular-sanitize-html.mjs +39 -0
- package/fesm2022/flowbite-angular-sanitize-html.mjs.map +1 -0
- package/fesm2022/flowbite-angular-scroll-top.mjs +99 -0
- package/fesm2022/flowbite-angular-scroll-top.mjs.map +1 -0
- package/fesm2022/flowbite-angular-sidebar.mjs +518 -0
- package/fesm2022/flowbite-angular-sidebar.mjs.map +1 -0
- package/fesm2022/flowbite-angular-utils.mjs +210 -0
- package/fesm2022/flowbite-angular-utils.mjs.map +1 -0
- package/fesm2022/flowbite-angular.mjs +13 -4176
- package/fesm2022/flowbite-angular.mjs.map +1 -1
- package/{lib/services/flowbite.theme.service.d.ts → flowbite.theme.service.d.ts} +1 -1
- package/icon/README.md +3 -0
- package/{lib/components/icon → icon}/icon.component.d.ts +2 -2
- package/index.d.ts +3 -5
- package/indicator/README.md +3 -0
- package/{lib/components/indicators → indicator}/indicators.component.d.ts +14 -14
- package/{lib/components/indicators → indicator}/indicators.theme.d.ts +1 -6
- package/{lib/components/indicators → indicator}/indicators.theme.service.d.ts +1 -1
- package/modal/README.md +3 -0
- package/{lib/components/modal → modal}/modal-body.component.d.ts +1 -1
- package/{lib/components/modal → modal}/modal-body.theme.d.ts +1 -1
- package/{lib/components/modal → modal}/modal-body.theme.service.d.ts +1 -1
- package/{lib/components/modal → modal}/modal-footer.component.d.ts +1 -1
- package/{lib/components/modal → modal}/modal-footer.theme.d.ts +1 -1
- package/{lib/components/modal → modal}/modal-footer.theme.service.d.ts +1 -1
- package/{lib/components/modal → modal}/modal-header.component.d.ts +2 -2
- package/{lib/components/modal → modal}/modal-header.theme.d.ts +1 -1
- package/{lib/components/modal → modal}/modal-header.theme.service.d.ts +1 -1
- package/{lib/components/modal → modal}/modal.component.d.ts +6 -6
- package/{lib/components/modal → modal}/modal.theme.d.ts +1 -5
- package/{lib/components/modal → modal}/modal.theme.service.d.ts +1 -1
- package/navbar/README.md +3 -0
- package/{lib/components/navbar → navbar}/navbar-brand.component.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-brand.theme.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-brand.theme.service.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-content.component.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-content.theme.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-content.theme.service.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-icon-button.component.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-icon-button.theme.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-icon-button.theme.service.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-item.component.d.ts +3 -3
- package/{lib/components/navbar → navbar}/navbar-item.theme.d.ts +1 -2
- package/{lib/components/navbar → navbar}/navbar-item.theme.service.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-toggle.component.d.ts +2 -2
- package/{lib/components/navbar → navbar}/navbar-toggle.theme.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar-toggle.theme.service.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar.component.d.ts +1 -1
- package/{lib/components/navbar → navbar}/navbar.theme.d.ts +1 -4
- package/{lib/components/navbar → navbar}/navbar.theme.service.d.ts +1 -1
- package/package.json +110 -2
- package/router-link/README.md +3 -0
- package/router-link/index.d.ts +1 -0
- package/router-link-active/README.md +3 -0
- package/{lib/directives → router-link-active}/index.d.ts +0 -1
- package/sanitize-html/README.md +3 -0
- package/scroll-top/README.md +3 -0
- package/{lib/components/scroll-top → scroll-top}/scroll-top.component.d.ts +7 -7
- package/{lib/components/scroll-top → scroll-top}/scroll-top.theme.d.ts +1 -1
- package/{lib/components/scroll-top → scroll-top}/scroll-top.theme.service.d.ts +1 -1
- package/sidebar/README.md +3 -0
- package/{lib/components/sidebar → sidebar}/sidebar-item-group.component.d.ts +3 -3
- package/{lib/components/sidebar → sidebar}/sidebar-item-group.theme.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar-item-group.theme.service.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar-item.component.d.ts +4 -4
- package/{lib/components/sidebar → sidebar}/sidebar-item.theme.d.ts +1 -2
- package/{lib/components/sidebar → sidebar}/sidebar-item.theme.service.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar-menu.component.d.ts +2 -2
- package/{lib/components/sidebar → sidebar}/sidebar-menu.theme.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar-menu.theme.service.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar-page-content.component.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar-page-content.theme.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar-page-content.theme.service.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar-toggle.component.d.ts +3 -3
- package/{lib/components/sidebar → sidebar}/sidebar-toggle.theme.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar-toggle.theme.service.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar.component.d.ts +1 -1
- package/{lib/components/sidebar → sidebar}/sidebar.theme.d.ts +1 -4
- package/{lib/components/sidebar → sidebar}/sidebar.theme.service.d.ts +1 -1
- package/tailwind.config.js +306 -0
- package/{lib/utils/boolean.util.d.ts → type-definitions/flowbite.boolean.d.ts} +7 -1
- package/{lib/common/type-definitions → type-definitions}/index.d.ts +1 -0
- package/utils/README.md +3 -0
- package/{lib/utils → utils}/index.d.ts +1 -1
- package/esm2022/lib/common/flowbite.theme.init.mjs +0 -318
- package/esm2022/lib/common/index.mjs +0 -3
- package/esm2022/lib/common/type-definitions/colors/flowbite.colors.mjs +0 -2
- package/esm2022/lib/common/type-definitions/colors/flowbite.gradient-colors.mjs +0 -2
- package/esm2022/lib/common/type-definitions/colors/flowbite.gradient-duo-tone-colors.mjs +0 -2
- package/esm2022/lib/common/type-definitions/colors/index.mjs +0 -2
- package/esm2022/lib/common/type-definitions/flowbite.boolean.mjs +0 -2
- package/esm2022/lib/common/type-definitions/flowbite.class.mjs +0 -2
- package/esm2022/lib/common/type-definitions/flowbite.combination.mjs +0 -5
- package/esm2022/lib/common/type-definitions/flowbite.content-positions.mjs +0 -2
- package/esm2022/lib/common/type-definitions/flowbite.deep-partial.mjs +0 -2
- package/esm2022/lib/common/type-definitions/flowbite.heading-levels.mjs +0 -2
- package/esm2022/lib/common/type-definitions/flowbite.positions.mjs +0 -2
- package/esm2022/lib/common/type-definitions/flowbite.router-link-parameter.mjs +0 -2
- package/esm2022/lib/common/type-definitions/flowbite.sizes.mjs +0 -2
- package/esm2022/lib/common/type-definitions/flowbite.themes.mjs +0 -2
- package/esm2022/lib/common/type-definitions/index.mjs +0 -2
- package/esm2022/lib/components/accordion/accordion-content.component.mjs +0 -46
- package/esm2022/lib/components/accordion/accordion-content.theme.mjs +0 -19
- package/esm2022/lib/components/accordion/accordion-content.theme.service.mjs +0 -17
- package/esm2022/lib/components/accordion/accordion-panel.component.mjs +0 -57
- package/esm2022/lib/components/accordion/accordion-panel.theme.mjs +0 -7
- package/esm2022/lib/components/accordion/accordion-panel.theme.service.mjs +0 -17
- package/esm2022/lib/components/accordion/accordion-title.component.mjs +0 -70
- package/esm2022/lib/components/accordion/accordion-title.theme.mjs +0 -26
- package/esm2022/lib/components/accordion/accordion-title.theme.service.mjs +0 -18
- package/esm2022/lib/components/accordion/accordion.component.mjs +0 -49
- package/esm2022/lib/components/accordion/accordion.theme.mjs +0 -19
- package/esm2022/lib/components/accordion/accordion.theme.service.mjs +0 -17
- package/esm2022/lib/components/accordion/index.mjs +0 -13
- package/esm2022/lib/components/alert/alert.component.mjs +0 -95
- package/esm2022/lib/components/alert/alert.theme.mjs +0 -34
- package/esm2022/lib/components/alert/alert.theme.service.mjs +0 -18
- package/esm2022/lib/components/alert/index.mjs +0 -4
- package/esm2022/lib/components/badge/badge.component.mjs +0 -47
- package/esm2022/lib/components/badge/badge.theme.mjs +0 -34
- package/esm2022/lib/components/badge/badge.theme.service.mjs +0 -19
- package/esm2022/lib/components/badge/index.mjs +0 -4
- package/esm2022/lib/components/base-component.directive.mjs +0 -34
- package/esm2022/lib/components/breadcrumb/breadcrumb-item.component.mjs +0 -57
- package/esm2022/lib/components/breadcrumb/breadcrumb-item.theme.mjs +0 -18
- package/esm2022/lib/components/breadcrumb/breadcrumb-item.theme.service.mjs +0 -18
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +0 -46
- package/esm2022/lib/components/breadcrumb/breadcrumb.theme.mjs +0 -7
- package/esm2022/lib/components/breadcrumb/breadcrumb.theme.service.mjs +0 -17
- package/esm2022/lib/components/breadcrumb/index.mjs +0 -7
- package/esm2022/lib/components/button/button.theme.mjs +0 -113
- package/esm2022/lib/components/button/button.theme.service.mjs +0 -24
- package/esm2022/lib/components/button/index.mjs +0 -4
- package/esm2022/lib/components/dark-theme-toggle/dark-theme-toggle.theme.mjs +0 -7
- package/esm2022/lib/components/dark-theme-toggle/dark-theme-toggle.theme.service.mjs +0 -17
- package/esm2022/lib/components/dark-theme-toggle/index.mjs +0 -4
- package/esm2022/lib/components/dropdown/dropdown-divider.component.mjs +0 -34
- package/esm2022/lib/components/dropdown/dropdown-divider.theme.mjs +0 -7
- package/esm2022/lib/components/dropdown/dropdown-divider.theme.service.mjs +0 -17
- package/esm2022/lib/components/dropdown/dropdown-header.component.mjs +0 -44
- package/esm2022/lib/components/dropdown/dropdown-header.theme.mjs +0 -10
- package/esm2022/lib/components/dropdown/dropdown-header.theme.service.mjs +0 -18
- package/esm2022/lib/components/dropdown/dropdown-item.component.mjs +0 -34
- package/esm2022/lib/components/dropdown/dropdown-item.theme.mjs +0 -6
- package/esm2022/lib/components/dropdown/dropdown-item.theme.service.mjs +0 -17
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +0 -149
- package/esm2022/lib/components/dropdown/dropdown.theme.mjs +0 -32
- package/esm2022/lib/components/dropdown/dropdown.theme.service.mjs +0 -22
- package/esm2022/lib/components/dropdown/index.mjs +0 -13
- package/esm2022/lib/components/form-field/directives/addon.directive.mjs +0 -32
- package/esm2022/lib/components/form-field/directives/addon.directive.theme.mjs +0 -8
- package/esm2022/lib/components/form-field/directives/addon.directive.theme.service.mjs +0 -17
- package/esm2022/lib/components/form-field/directives/base-input.directive.mjs +0 -26
- package/esm2022/lib/components/form-field/directives/helper.directive.mjs +0 -34
- package/esm2022/lib/components/form-field/directives/helper.directive.theme.mjs +0 -12
- package/esm2022/lib/components/form-field/directives/helper.directive.theme.service.mjs +0 -17
- package/esm2022/lib/components/form-field/directives/icon.directive.mjs +0 -32
- package/esm2022/lib/components/form-field/directives/icon.directive.theme.mjs +0 -8
- package/esm2022/lib/components/form-field/directives/icon.directive.theme.service.mjs +0 -17
- package/esm2022/lib/components/form-field/directives/index.mjs +0 -17
- package/esm2022/lib/components/form-field/directives/input.directive.mjs +0 -41
- package/esm2022/lib/components/form-field/directives/input.directive.theme.mjs +0 -79
- package/esm2022/lib/components/form-field/directives/input.directive.theme.service.mjs +0 -32
- package/esm2022/lib/components/form-field/directives/label.directive.mjs +0 -41
- package/esm2022/lib/components/form-field/directives/label.directive.theme.mjs +0 -51
- package/esm2022/lib/components/form-field/directives/label.directive.theme.service.mjs +0 -23
- package/esm2022/lib/components/form-field/form-field.component.mjs +0 -40
- package/esm2022/lib/components/form-field/form-field.theme.mjs +0 -8
- package/esm2022/lib/components/form-field/form-field.theme.service.mjs +0 -17
- package/esm2022/lib/components/form-field/index.mjs +0 -5
- package/esm2022/lib/components/icon/icon-registry.mjs +0 -159
- package/esm2022/lib/components/icon/icon.component.mjs +0 -67
- package/esm2022/lib/components/icon/index.mjs +0 -4
- package/esm2022/lib/components/icon/trusted-types.mjs +0 -21
- package/esm2022/lib/components/index.mjs +0 -16
- package/esm2022/lib/components/indicators/index.mjs +0 -4
- package/esm2022/lib/components/indicators/indicators.component.mjs +0 -54
- package/esm2022/lib/components/indicators/indicators.theme.mjs +0 -68
- package/esm2022/lib/components/indicators/indicators.theme.service.mjs +0 -19
- package/esm2022/lib/components/modal/index.mjs +0 -13
- package/esm2022/lib/components/modal/modal-body.component.mjs +0 -34
- package/esm2022/lib/components/modal/modal-body.theme.mjs +0 -7
- package/esm2022/lib/components/modal/modal-body.theme.service.mjs +0 -17
- package/esm2022/lib/components/modal/modal-footer.component.mjs +0 -34
- package/esm2022/lib/components/modal/modal-footer.theme.mjs +0 -7
- package/esm2022/lib/components/modal/modal-footer.theme.service.mjs +0 -17
- package/esm2022/lib/components/modal/modal-header.component.mjs +0 -66
- package/esm2022/lib/components/modal/modal-header.theme.mjs +0 -13
- package/esm2022/lib/components/modal/modal-header.theme.service.mjs +0 -19
- package/esm2022/lib/components/modal/modal.component.mjs +0 -142
- package/esm2022/lib/components/modal/modal.theme.mjs +0 -33
- package/esm2022/lib/components/modal/modal.theme.service.mjs +0 -20
- package/esm2022/lib/components/navbar/index.mjs +0 -19
- package/esm2022/lib/components/navbar/navbar-brand.component.mjs +0 -34
- package/esm2022/lib/components/navbar/navbar-brand.theme.mjs +0 -7
- package/esm2022/lib/components/navbar/navbar-brand.theme.service.mjs +0 -17
- package/esm2022/lib/components/navbar/navbar-content.component.mjs +0 -45
- package/esm2022/lib/components/navbar/navbar-content.theme.mjs +0 -14
- package/esm2022/lib/components/navbar/navbar-content.theme.service.mjs +0 -18
- package/esm2022/lib/components/navbar/navbar-icon-button.component.mjs +0 -42
- package/esm2022/lib/components/navbar/navbar-icon-button.theme.mjs +0 -15
- package/esm2022/lib/components/navbar/navbar-icon-button.theme.service.mjs +0 -17
- package/esm2022/lib/components/navbar/navbar-item.component.mjs +0 -49
- package/esm2022/lib/components/navbar/navbar-item.theme.service.mjs +0 -17
- package/esm2022/lib/components/navbar/navbar-toggle.component.mjs +0 -50
- package/esm2022/lib/components/navbar/navbar-toggle.theme.mjs +0 -7
- package/esm2022/lib/components/navbar/navbar-toggle.theme.service.mjs +0 -17
- package/esm2022/lib/components/navbar/navbar.component.mjs +0 -62
- package/esm2022/lib/components/navbar/navbar.theme.mjs +0 -23
- package/esm2022/lib/components/navbar/navbar.theme.service.mjs +0 -17
- package/esm2022/lib/components/scroll-top/index.mjs +0 -4
- package/esm2022/lib/components/scroll-top/scroll-top.component.mjs +0 -50
- package/esm2022/lib/components/scroll-top/scroll-top.theme.mjs +0 -27
- package/esm2022/lib/components/scroll-top/scroll-top.theme.service.mjs +0 -17
- package/esm2022/lib/components/sidebar/index.mjs +0 -19
- package/esm2022/lib/components/sidebar/sidebar-item-group.component.mjs +0 -81
- package/esm2022/lib/components/sidebar/sidebar-item-group.theme.mjs +0 -18
- package/esm2022/lib/components/sidebar/sidebar-item-group.theme.service.mjs +0 -18
- package/esm2022/lib/components/sidebar/sidebar-item.component.mjs +0 -77
- package/esm2022/lib/components/sidebar/sidebar-item.theme.mjs +0 -18
- package/esm2022/lib/components/sidebar/sidebar-item.theme.service.mjs +0 -18
- package/esm2022/lib/components/sidebar/sidebar-menu.component.mjs +0 -49
- package/esm2022/lib/components/sidebar/sidebar-menu.theme.mjs +0 -24
- package/esm2022/lib/components/sidebar/sidebar-menu.theme.service.mjs +0 -17
- package/esm2022/lib/components/sidebar/sidebar-page-content.component.mjs +0 -36
- package/esm2022/lib/components/sidebar/sidebar-page-content.theme.mjs +0 -12
- package/esm2022/lib/components/sidebar/sidebar-page-content.theme.service.mjs +0 -17
- package/esm2022/lib/components/sidebar/sidebar-toggle.component.mjs +0 -53
- package/esm2022/lib/components/sidebar/sidebar-toggle.theme.mjs +0 -18
- package/esm2022/lib/components/sidebar/sidebar-toggle.theme.service.mjs +0 -17
- package/esm2022/lib/components/sidebar/sidebar.component.mjs +0 -61
- package/esm2022/lib/components/sidebar/sidebar.theme.mjs +0 -11
- package/esm2022/lib/components/sidebar/sidebar.theme.service.mjs +0 -17
- package/esm2022/lib/directives/flowbite-router-link-active.directive.mjs +0 -51
- package/esm2022/lib/directives/flowbite-router-link.directive.mjs +0 -44
- package/esm2022/lib/directives/index.mjs +0 -3
- package/esm2022/lib/pipes/index.mjs +0 -2
- package/esm2022/lib/pipes/sanitize-html/index.mjs +0 -2
- package/esm2022/lib/pipes/sanitize-html/sanitize-html.pipe.mjs +0 -32
- package/esm2022/lib/services/flowbite.theme.service.mjs +0 -16
- package/esm2022/lib/services/index.mjs +0 -2
- package/esm2022/lib/utils/boolean.util.mjs +0 -10
- package/esm2022/lib/utils/directives/index.mjs +0 -3
- package/esm2022/lib/utils/directives/inputs/index.mjs +0 -3
- package/esm2022/lib/utils/directives/inputs/router-link-active.input.mjs +0 -8
- package/esm2022/lib/utils/directives/inputs/router-link.inputs.mjs +0 -20
- package/esm2022/lib/utils/directives/outputs/index.mjs +0 -3
- package/esm2022/lib/utils/directives/outputs/router-link-active.output.mjs +0 -8
- package/esm2022/lib/utils/directives/outputs/router-link.output.mjs +0 -8
- package/esm2022/lib/utils/icon.list.mjs +0 -39
- package/esm2022/lib/utils/id.generator.mjs +0 -81
- package/esm2022/lib/utils/index.mjs +0 -9
- package/esm2022/lib/utils/theme/clone-deep.mjs +0 -18
- package/esm2022/lib/utils/theme/create-class.mjs +0 -10
- package/esm2022/lib/utils/theme/create-theme.mjs +0 -10
- package/esm2022/lib/utils/theme/is-object.mjs +0 -10
- package/esm2022/lib/utils/theme/merge-theme.mjs +0 -29
- package/esm2022/lib/utils/theme/to-string.mjs +0 -10
- package/esm2022/public-api.mjs +0 -7
- package/lib/common/index.d.ts +0 -2
- package/lib/common/type-definitions/flowbite.boolean.d.ts +0 -7
- package/lib/components/form-field/directives/addon.directive.d.ts +0 -13
- package/lib/components/form-field/directives/addon.directive.theme.d.ts +0 -10
- package/lib/components/form-field/directives/addon.directive.theme.service.d.ts +0 -8
- package/lib/components/form-field/directives/base-input.directive.d.ts +0 -14
- package/lib/components/form-field/directives/helper.directive.d.ts +0 -18
- package/lib/components/form-field/directives/helper.directive.theme.d.ts +0 -13
- package/lib/components/form-field/directives/helper.directive.theme.service.d.ts +0 -8
- package/lib/components/form-field/directives/icon.directive.d.ts +0 -13
- package/lib/components/form-field/directives/icon.directive.theme.d.ts +0 -10
- package/lib/components/form-field/directives/icon.directive.theme.service.d.ts +0 -8
- package/lib/components/form-field/directives/index.d.ts +0 -21
- package/lib/components/form-field/directives/input.directive.d.ts +0 -100
- package/lib/components/form-field/directives/input.directive.theme.d.ts +0 -24
- package/lib/components/form-field/directives/input.directive.theme.service.d.ts +0 -8
- package/lib/components/form-field/directives/label.directive.d.ts +0 -62
- package/lib/components/form-field/directives/label.directive.theme.d.ts +0 -20
- package/lib/components/form-field/directives/label.directive.theme.service.d.ts +0 -8
- package/lib/components/form-field/form-field.component.d.ts +0 -20
- package/lib/components/form-field/form-field.theme.d.ts +0 -45
- package/lib/components/form-field/form-field.theme.service.d.ts +0 -8
- package/lib/components/form-field/index.d.ts +0 -5
- package/lib/components/index.d.ts +0 -15
- package/lib/pipes/index.d.ts +0 -1
- package/lib/services/index.d.ts +0 -1
- package/lib/utils/directives/index.d.ts +0 -2
- package/lib/utils/directives/inputs/index.d.ts +0 -2
- package/lib/utils/directives/inputs/router-link-active.input.d.ts +0 -8
- package/lib/utils/directives/inputs/router-link.inputs.d.ts +0 -8
- package/lib/utils/directives/outputs/index.d.ts +0 -2
- package/lib/utils/directives/outputs/router-link-active.output.d.ts +0 -8
- package/lib/utils/directives/outputs/router-link.output.d.ts +0 -8
- package/public-api.d.ts +0 -6
- /package/{lib/components/accordion → accordion}/index.d.ts +0 -0
- /package/{lib/components/alert → alert}/index.d.ts +0 -0
- /package/{lib/components/badge → badge}/index.d.ts +0 -0
- /package/{lib/components/breadcrumb → breadcrumb}/index.d.ts +0 -0
- /package/{lib/components/button → button}/index.d.ts +0 -0
- /package/{lib/common → core}/flowbite.theme.init.d.ts +0 -0
- /package/{lib/components/dropdown → dropdown}/index.d.ts +0 -0
- /package/{lib/components/icon → icon}/icon-registry.d.ts +0 -0
- /package/{lib/components/icon → icon}/index.d.ts +0 -0
- /package/{lib/components/icon → icon}/trusted-types.d.ts +0 -0
- /package/{lib/components/indicators → indicator}/index.d.ts +0 -0
- /package/{lib/components/modal → modal}/index.d.ts +0 -0
- /package/{lib/components/navbar → navbar}/index.d.ts +0 -0
- /package/{lib/directives → router-link}/flowbite-router-link.directive.d.ts +0 -0
- /package/{lib/directives → router-link-active}/flowbite-router-link-active.directive.d.ts +0 -0
- /package/{lib/pipes/sanitize-html → sanitize-html}/index.d.ts +0 -0
- /package/{lib/pipes/sanitize-html → sanitize-html}/sanitize-html.pipe.d.ts +0 -0
- /package/{lib/components/scroll-top → scroll-top}/index.d.ts +0 -0
- /package/{lib/components/sidebar → sidebar}/index.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/colors/flowbite.colors.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/colors/flowbite.gradient-colors.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/colors/flowbite.gradient-duo-tone-colors.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/colors/index.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/flowbite.class.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/flowbite.combination.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/flowbite.content-positions.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/flowbite.deep-partial.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/flowbite.heading-levels.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/flowbite.positions.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/flowbite.router-link-parameter.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/flowbite.sizes.d.ts +0 -0
- /package/{lib/common/type-definitions → type-definitions}/flowbite.themes.d.ts +0 -0
- /package/{lib/utils → utils}/icon.list.d.ts +0 -0
- /package/{lib/utils → utils}/id.generator.d.ts +0 -0
- /package/{lib/utils → utils}/theme/clone-deep.d.ts +0 -0
- /package/{lib/utils → utils}/theme/create-class.d.ts +0 -0
- /package/{lib/utils → utils}/theme/create-theme.d.ts +0 -0
- /package/{lib/utils → utils}/theme/is-object.d.ts +0 -0
- /package/{lib/utils → utils}/theme/merge-theme.d.ts +0 -0
- /package/{lib/utils → utils}/theme/to-string.d.ts +0 -0
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import { mergeTheme, BARS_SVG_ICON, createTheme } from 'flowbite-angular/utils';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { InjectionToken, inject, model, Component, ViewEncapsulation, ChangeDetectionStrategy, contentChild, untracked } from '@angular/core';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
import { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';
|
|
6
|
+
import { NgClass, CommonModule } from '@angular/common';
|
|
7
|
+
import { IconRegistry, IconComponent } from 'flowbite-angular/icon';
|
|
8
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
9
|
+
import { FlowbiteRouterLinkDirective } from 'flowbite-angular/router-link';
|
|
10
|
+
import { FlowbiteRouterLinkActiveDirective } from 'flowbite-angular/router-link-active';
|
|
11
|
+
|
|
12
|
+
const FLOWBITE_NAVBAR_BRAND_THEME_TOKEN = new InjectionToken('FLOWBITE_NAVBAR_BRAND_THEME_TOKEN');
|
|
13
|
+
class NavbarBrandThemeService {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.baseTheme = inject(FLOWBITE_NAVBAR_BRAND_THEME_TOKEN);
|
|
16
|
+
}
|
|
17
|
+
getClasses(properties) {
|
|
18
|
+
const theme = mergeTheme(this.baseTheme, properties.customStyle);
|
|
19
|
+
const output = {
|
|
20
|
+
rootClass: twMerge(theme.root.base),
|
|
21
|
+
};
|
|
22
|
+
return output;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
class NavbarBrandComponent extends BaseComponent {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
this.themeService = inject(NavbarBrandThemeService);
|
|
30
|
+
this.navbarComponent = inject(NavbarComponent);
|
|
31
|
+
//#region properties
|
|
32
|
+
this.customStyle = model({});
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region BaseComponent implementation
|
|
36
|
+
fetchClass() {
|
|
37
|
+
return this.themeService.getClasses({
|
|
38
|
+
customStyle: this.customStyle(),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarBrandComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
42
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: NavbarBrandComponent, isStandalone: true, selector: "flowbite-navbar-brand", inputs: { customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { customStyle: "customStyleChange" }, usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
43
|
+
}
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarBrandComponent, decorators: [{
|
|
45
|
+
type: Component,
|
|
46
|
+
args: [{
|
|
47
|
+
selector: 'flowbite-navbar-brand',
|
|
48
|
+
standalone: true,
|
|
49
|
+
imports: [NgClass],
|
|
50
|
+
template: `<ng-content />`,
|
|
51
|
+
encapsulation: ViewEncapsulation.None,
|
|
52
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
53
|
+
}]
|
|
54
|
+
}] });
|
|
55
|
+
|
|
56
|
+
const FLOWBITE_NAVBAR_CONTENT_THEME_TOKEN = new InjectionToken('FLOWBITE_NAVBAR_CONTENT_THEME_TOKEN');
|
|
57
|
+
class NavbarContentThemeService {
|
|
58
|
+
constructor() {
|
|
59
|
+
this.baseTheme = inject(FLOWBITE_NAVBAR_CONTENT_THEME_TOKEN);
|
|
60
|
+
}
|
|
61
|
+
getClasses(properties) {
|
|
62
|
+
const theme = mergeTheme(this.baseTheme, properties.customStyle);
|
|
63
|
+
const output = {
|
|
64
|
+
rootClass: twMerge(theme.root.base, theme.root.isOpen[properties.isOpen]),
|
|
65
|
+
navbarContentListClass: twMerge(theme.list.base),
|
|
66
|
+
};
|
|
67
|
+
return output;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
class NavbarContentComponent extends BaseComponent {
|
|
72
|
+
constructor() {
|
|
73
|
+
super(...arguments);
|
|
74
|
+
this.themeService = inject(NavbarContentThemeService);
|
|
75
|
+
this.navbarComponent = model(inject(NavbarComponent));
|
|
76
|
+
//#region properties
|
|
77
|
+
this.color = model(this.navbarComponent().color());
|
|
78
|
+
this.customStyle = model({});
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region BaseComponent implementation
|
|
82
|
+
fetchClass() {
|
|
83
|
+
return this.themeService.getClasses({
|
|
84
|
+
isOpen: booleanToFlowbiteBoolean(this.navbarComponent().isOpen()),
|
|
85
|
+
customStyle: this.customStyle(),
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
89
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: NavbarContentComponent, isStandalone: true, selector: "flowbite-navbar-content", inputs: { navbarComponent: { classPropertyName: "navbarComponent", publicName: "navbarComponent", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { navbarComponent: "navbarComponentChange", color: "colorChange", customStyle: "customStyleChange" }, usesInheritance: true, ngImport: i0, template: `
|
|
90
|
+
<div [ngClass]="contentClasses().navbarContentListClass">
|
|
91
|
+
<ng-content />
|
|
92
|
+
</div>
|
|
93
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
94
|
+
}
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarContentComponent, decorators: [{
|
|
96
|
+
type: Component,
|
|
97
|
+
args: [{
|
|
98
|
+
selector: 'flowbite-navbar-content',
|
|
99
|
+
standalone: true,
|
|
100
|
+
imports: [NgClass],
|
|
101
|
+
template: `
|
|
102
|
+
<div [ngClass]="contentClasses().navbarContentListClass">
|
|
103
|
+
<ng-content />
|
|
104
|
+
</div>
|
|
105
|
+
`,
|
|
106
|
+
encapsulation: ViewEncapsulation.None,
|
|
107
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
108
|
+
}]
|
|
109
|
+
}] });
|
|
110
|
+
|
|
111
|
+
const FLOWBITE_NAVBAR_TOGGLE_THEME_TOKEN = new InjectionToken('FLOWBITE_NAVBAR_TOGGLE_THEME_TOKEN');
|
|
112
|
+
class NavbarToggleThemeService {
|
|
113
|
+
constructor() {
|
|
114
|
+
this.baseTheme = inject(FLOWBITE_NAVBAR_TOGGLE_THEME_TOKEN);
|
|
115
|
+
}
|
|
116
|
+
getClasses(properties) {
|
|
117
|
+
const theme = mergeTheme(this.baseTheme, properties.customStyle);
|
|
118
|
+
const output = {
|
|
119
|
+
rootClass: twMerge(theme.root.base),
|
|
120
|
+
};
|
|
121
|
+
return output;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
class NavbarToggleComponent extends BaseComponent {
|
|
126
|
+
constructor() {
|
|
127
|
+
super(...arguments);
|
|
128
|
+
this.themeService = inject(NavbarToggleThemeService);
|
|
129
|
+
this.navbarComponent = model(inject(NavbarComponent));
|
|
130
|
+
this.iconRegistry = inject(IconRegistry);
|
|
131
|
+
this.domSanitizer = inject(DomSanitizer);
|
|
132
|
+
//#region properties
|
|
133
|
+
this.customStyle = model({});
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region BaseComponent implementation
|
|
137
|
+
fetchClass() {
|
|
138
|
+
return this.themeService.getClasses({
|
|
139
|
+
customStyle: this.customStyle(),
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
init() {
|
|
143
|
+
this.iconRegistry.addRawSvgIconInNamepsace('flowbite-angular', 'bars', this.domSanitizer.bypassSecurityTrustHtml(BARS_SVG_ICON));
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
onClick() {
|
|
147
|
+
const isCollapsed = this.navbarComponent().isOpen();
|
|
148
|
+
this.navbarComponent().isOpen.set(!isCollapsed);
|
|
149
|
+
}
|
|
150
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarToggleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
151
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: NavbarToggleComponent, isStandalone: true, selector: "flowbite-navbar-toggle", inputs: { navbarComponent: { classPropertyName: "navbarComponent", publicName: "navbarComponent", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { navbarComponent: "navbarComponentChange", customStyle: "customStyleChange" }, host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0, template: ` <flowbite-icon svgIcon="flowbite-angular:bars" class="w-5 h-5" /> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IconComponent, selector: "flowbite-icon", inputs: ["svgIcon"], outputs: ["svgIconChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
152
|
+
}
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarToggleComponent, decorators: [{
|
|
154
|
+
type: Component,
|
|
155
|
+
args: [{
|
|
156
|
+
selector: 'flowbite-navbar-toggle',
|
|
157
|
+
standalone: true,
|
|
158
|
+
imports: [CommonModule, IconComponent],
|
|
159
|
+
template: ` <flowbite-icon svgIcon="flowbite-angular:bars" class="w-5 h-5" /> `,
|
|
160
|
+
host: {
|
|
161
|
+
'(click)': 'onClick()',
|
|
162
|
+
},
|
|
163
|
+
encapsulation: ViewEncapsulation.None,
|
|
164
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
165
|
+
}]
|
|
166
|
+
}] });
|
|
167
|
+
|
|
168
|
+
const FLOWBITE_NAVBAR_THEME_TOKEN = new InjectionToken('FLOWBITE_NAVBAR_THEME_TOKEN');
|
|
169
|
+
class NavbarThemeService {
|
|
170
|
+
constructor() {
|
|
171
|
+
this.baseTheme = inject(FLOWBITE_NAVBAR_THEME_TOKEN);
|
|
172
|
+
}
|
|
173
|
+
getClasses(properties) {
|
|
174
|
+
const theme = mergeTheme(this.baseTheme, properties.customStyle);
|
|
175
|
+
const output = {
|
|
176
|
+
rootClass: twMerge(theme.root.base, theme.root.color['gray'], theme.root.isRounded[properties.isRounded], theme.root.hasBorder[properties.hasBorder], theme.root.isFixed[properties.isFixed]),
|
|
177
|
+
};
|
|
178
|
+
return output;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @see https://flowbite.com/docs/components/navbar/
|
|
184
|
+
*/
|
|
185
|
+
class NavbarComponent extends BaseComponent {
|
|
186
|
+
constructor() {
|
|
187
|
+
super(...arguments);
|
|
188
|
+
this.themeService = inject(NavbarThemeService);
|
|
189
|
+
this.navbarBrandChild = contentChild(NavbarBrandComponent);
|
|
190
|
+
this.navbarToggleChild = contentChild(NavbarToggleComponent);
|
|
191
|
+
this.navbarContentChild = contentChild(NavbarContentComponent);
|
|
192
|
+
//#region properties
|
|
193
|
+
this.color = model('primary');
|
|
194
|
+
this.isOpen = model(false);
|
|
195
|
+
this.isRounded = model(false);
|
|
196
|
+
this.hasBorder = model(false);
|
|
197
|
+
this.isFixed = model(false);
|
|
198
|
+
this.customStyle = model({});
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region BaseComponent implementation
|
|
202
|
+
fetchClass() {
|
|
203
|
+
return this.themeService.getClasses({
|
|
204
|
+
hasBorder: booleanToFlowbiteBoolean(this.isRounded()),
|
|
205
|
+
isRounded: booleanToFlowbiteBoolean(this.hasBorder()),
|
|
206
|
+
isFixed: booleanToFlowbiteBoolean(this.isFixed()),
|
|
207
|
+
customStyle: this.customStyle(),
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
verify() {
|
|
211
|
+
if (this.navbarContentChild() === undefined) {
|
|
212
|
+
throw new Error('No NavbarContentComponent available');
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
toggleVisibility(isOpen) {
|
|
217
|
+
if (isOpen === undefined) {
|
|
218
|
+
isOpen = untracked(() => !this.isOpen());
|
|
219
|
+
}
|
|
220
|
+
this.isOpen.set(isOpen);
|
|
221
|
+
}
|
|
222
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
223
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.0.0", type: NavbarComponent, isStandalone: true, selector: "flowbite-navbar", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, isRounded: { classPropertyName: "isRounded", publicName: "isRounded", isSignal: true, isRequired: false, transformFunction: null }, hasBorder: { classPropertyName: "hasBorder", publicName: "hasBorder", isSignal: true, isRequired: false, transformFunction: null }, isFixed: { classPropertyName: "isFixed", publicName: "isFixed", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { color: "colorChange", isOpen: "isOpenChange", isRounded: "isRoundedChange", hasBorder: "hasBorderChange", isFixed: "isFixedChange", customStyle: "customStyleChange" }, queries: [{ propertyName: "navbarBrandChild", first: true, predicate: NavbarBrandComponent, descendants: true, isSignal: true }, { propertyName: "navbarToggleChild", first: true, predicate: NavbarToggleComponent, descendants: true, isSignal: true }, { propertyName: "navbarContentChild", first: true, predicate: NavbarContentComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
224
|
+
}
|
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarComponent, decorators: [{
|
|
226
|
+
type: Component,
|
|
227
|
+
args: [{
|
|
228
|
+
standalone: true,
|
|
229
|
+
imports: [NgClass],
|
|
230
|
+
selector: 'flowbite-navbar',
|
|
231
|
+
template: `<ng-content />`,
|
|
232
|
+
encapsulation: ViewEncapsulation.None,
|
|
233
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
234
|
+
}]
|
|
235
|
+
}] });
|
|
236
|
+
|
|
237
|
+
const navbarTheme = createTheme({
|
|
238
|
+
root: {
|
|
239
|
+
base: 'flex flex-wrap items-center justify-between p-4',
|
|
240
|
+
color: {
|
|
241
|
+
primary: 'bg-primary-200 dark:bg-primary-800 border-primary-200 dark:border-primary-700',
|
|
242
|
+
gray: 'bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700',
|
|
243
|
+
},
|
|
244
|
+
isRounded: {
|
|
245
|
+
enabled: 'rounded',
|
|
246
|
+
disabled: '',
|
|
247
|
+
},
|
|
248
|
+
hasBorder: {
|
|
249
|
+
enabled: 'border',
|
|
250
|
+
disabled: '',
|
|
251
|
+
},
|
|
252
|
+
isFixed: {
|
|
253
|
+
enabled: 'border-b',
|
|
254
|
+
disabled: '',
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
const navbarBrandTheme = createTheme({
|
|
260
|
+
root: {
|
|
261
|
+
base: 'cursor-pointer flex items-center space-x-3 rtl:space-x-reverse',
|
|
262
|
+
},
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
const navbarContentTheme = createTheme({
|
|
266
|
+
root: {
|
|
267
|
+
base: 'w-full md:block md:w-auto order-last md:order-none',
|
|
268
|
+
isOpen: {
|
|
269
|
+
enabled: '',
|
|
270
|
+
disabled: 'hidden',
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
list: {
|
|
274
|
+
base: 'font-medium flex flex-col p-4 md:p-0 mt-4 items-center border border-gray-100 rounded-lg bg-gray-50 md:flex-row md:space-x-8 rtl:space-x-reverse md:mt-0 md:border-0 md:bg-white dark:bg-gray-900 md:dark:bg-gray-800 dark:border-gray-700',
|
|
275
|
+
},
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
const FLOWBITE_NAVBAR_ITEM_THEME_TOKEN = new InjectionToken('FLOWBITE_NAVBAR_ITEM_THEME_TOKEN');
|
|
279
|
+
class NavbarItemThemeService {
|
|
280
|
+
constructor() {
|
|
281
|
+
this.baseTheme = inject(FLOWBITE_NAVBAR_ITEM_THEME_TOKEN);
|
|
282
|
+
}
|
|
283
|
+
getClasses(properties) {
|
|
284
|
+
const theme = mergeTheme(this.baseTheme, properties.customStyle);
|
|
285
|
+
const output = {
|
|
286
|
+
rootClass: twMerge(theme.root.base, theme.root.color[properties.color]),
|
|
287
|
+
};
|
|
288
|
+
return output;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
class NavbarItemComponent extends BaseComponent {
|
|
293
|
+
constructor() {
|
|
294
|
+
super(...arguments);
|
|
295
|
+
this.flowbiteRouterLink = inject(FlowbiteRouterLinkDirective, { optional: true });
|
|
296
|
+
this.flowbiteRouterLinkActive = inject(FlowbiteRouterLinkActiveDirective, {
|
|
297
|
+
optional: true,
|
|
298
|
+
});
|
|
299
|
+
this.themeService = inject(NavbarItemThemeService);
|
|
300
|
+
this.navbarContentComponent = inject(NavbarContentComponent);
|
|
301
|
+
//#region properties
|
|
302
|
+
this.color = model(this.navbarContentComponent.color());
|
|
303
|
+
this.customStyle = model({});
|
|
304
|
+
}
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region BaseComponent implementation
|
|
307
|
+
fetchClass() {
|
|
308
|
+
return this.themeService.getClasses({
|
|
309
|
+
color: this.color(),
|
|
310
|
+
customStyle: this.customStyle(),
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
//#endregion
|
|
314
|
+
onClick() {
|
|
315
|
+
this.navbarContentComponent.navbarComponent().toggleVisibility(false);
|
|
316
|
+
}
|
|
317
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
318
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: NavbarItemComponent, isStandalone: true, selector: "flowbite-navbar-item", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { color: "colorChange", customStyle: "customStyleChange" }, host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
319
|
+
}
|
|
320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarItemComponent, decorators: [{
|
|
321
|
+
type: Component,
|
|
322
|
+
args: [{
|
|
323
|
+
selector: 'flowbite-navbar-item',
|
|
324
|
+
standalone: true,
|
|
325
|
+
imports: [NgClass],
|
|
326
|
+
template: `<ng-content />`,
|
|
327
|
+
host: {
|
|
328
|
+
'(click)': 'onClick()',
|
|
329
|
+
},
|
|
330
|
+
encapsulation: ViewEncapsulation.None,
|
|
331
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
332
|
+
}]
|
|
333
|
+
}] });
|
|
334
|
+
|
|
335
|
+
const navbarItemTheme = createTheme({
|
|
336
|
+
root: {
|
|
337
|
+
base: 'cursor-pointer block py-2 px-3 rounded text-sm text-gray-900 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 md:hover:bg-transparent md:border-0 md:p-0 md:dark:hover:bg-transparent',
|
|
338
|
+
color: {
|
|
339
|
+
primary: 'md:hover:text-primary-700 md:dark:hover:text-primary-500 aria-current:text-primary-500 dark:aria-current:text-primary-300',
|
|
340
|
+
gray: 'md:hover:text-gray-700 md:dark:hover:text-gray-500 aria-current:text-gray-500 dark:aria-current:text-gray-300',
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
const navbarToogleTheme = createTheme({
|
|
346
|
+
root: {
|
|
347
|
+
base: 'cursor-pointer inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600',
|
|
348
|
+
},
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
const FLOWBITE_NAVBAR_ICON_BUTTON_THEME_TOKEN = new InjectionToken('FLOWBITE_NAVBAR_TOGGLE_THEME_TOKEN');
|
|
352
|
+
class NavbarIconButtonThemeService {
|
|
353
|
+
constructor() {
|
|
354
|
+
this.baseTheme = inject(FLOWBITE_NAVBAR_ICON_BUTTON_THEME_TOKEN);
|
|
355
|
+
}
|
|
356
|
+
getClasses(properties) {
|
|
357
|
+
const theme = mergeTheme(this.baseTheme, properties.customStyle);
|
|
358
|
+
const output = {
|
|
359
|
+
rootClass: twMerge(theme.root.base, theme.root.color[properties.color]),
|
|
360
|
+
};
|
|
361
|
+
return output;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
class NavbarIconButtonComponent extends BaseComponent {
|
|
366
|
+
constructor() {
|
|
367
|
+
super(...arguments);
|
|
368
|
+
this.themeService = inject(NavbarIconButtonThemeService);
|
|
369
|
+
this.navbarComponent = inject(NavbarComponent, { optional: true });
|
|
370
|
+
this.navbarContentComponent = inject(NavbarContentComponent, { optional: true });
|
|
371
|
+
//#region properties
|
|
372
|
+
this.color = model(this.navbarContentComponent?.color() || this.navbarComponent.color());
|
|
373
|
+
this.customStyle = model({});
|
|
374
|
+
}
|
|
375
|
+
//#endregion
|
|
376
|
+
//#region BaseComponent implementation
|
|
377
|
+
fetchClass() {
|
|
378
|
+
return this.themeService.getClasses({
|
|
379
|
+
color: this.color(),
|
|
380
|
+
customStyle: this.customStyle(),
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
verify() {
|
|
384
|
+
if (this.navbarComponent === null && this.navbarContentComponent === null) {
|
|
385
|
+
throw new Error('No NavbarComponent/NavbarContentComponent available');
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarIconButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
389
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: NavbarIconButtonComponent, isStandalone: true, selector: "flowbite-navbar-icon-button", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { color: "colorChange", customStyle: "customStyleChange" }, usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
390
|
+
}
|
|
391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NavbarIconButtonComponent, decorators: [{
|
|
392
|
+
type: Component,
|
|
393
|
+
args: [{
|
|
394
|
+
selector: 'flowbite-navbar-icon-button',
|
|
395
|
+
standalone: true,
|
|
396
|
+
imports: [],
|
|
397
|
+
template: `<ng-content />`,
|
|
398
|
+
encapsulation: ViewEncapsulation.None,
|
|
399
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
400
|
+
}]
|
|
401
|
+
}] });
|
|
402
|
+
|
|
403
|
+
const navbarIconButtonTheme = createTheme({
|
|
404
|
+
root: {
|
|
405
|
+
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',
|
|
406
|
+
color: {
|
|
407
|
+
primary: 'text-primary-500 dark:text-primary-300',
|
|
408
|
+
gray: 'text-gray-500 dark:text-gray-400',
|
|
409
|
+
blue: 'text-blue-500 dark:text-blue-300',
|
|
410
|
+
red: 'text-red-500 dark:text-red-300',
|
|
411
|
+
green: 'text-green-500 dark:text-green-300',
|
|
412
|
+
yellow: 'text-yellow-500 dark:text-yellow-300',
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Generated bundle index. Do not edit.
|
|
419
|
+
*/
|
|
420
|
+
|
|
421
|
+
export { FLOWBITE_NAVBAR_BRAND_THEME_TOKEN, FLOWBITE_NAVBAR_CONTENT_THEME_TOKEN, FLOWBITE_NAVBAR_ICON_BUTTON_THEME_TOKEN, FLOWBITE_NAVBAR_ITEM_THEME_TOKEN, FLOWBITE_NAVBAR_THEME_TOKEN, FLOWBITE_NAVBAR_TOGGLE_THEME_TOKEN, NavbarBrandComponent, NavbarBrandThemeService, NavbarComponent, NavbarContentComponent, NavbarContentThemeService, NavbarIconButtonComponent, NavbarIconButtonThemeService, NavbarItemComponent, NavbarItemThemeService, NavbarThemeService, NavbarToggleComponent, NavbarToggleThemeService, navbarBrandTheme, navbarContentTheme, navbarIconButtonTheme, navbarItemTheme, navbarTheme, navbarToogleTheme };
|
|
422
|
+
//# sourceMappingURL=flowbite-angular-navbar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowbite-angular-navbar.mjs","sources":["../../../../libs/flowbite-angular/navbar/navbar-brand.theme.service.ts","../../../../libs/flowbite-angular/navbar/navbar-brand.component.ts","../../../../libs/flowbite-angular/navbar/navbar-content.theme.service.ts","../../../../libs/flowbite-angular/navbar/navbar-content.component.ts","../../../../libs/flowbite-angular/navbar/navbar-toggle.theme.service.ts","../../../../libs/flowbite-angular/navbar/navbar-toggle.component.ts","../../../../libs/flowbite-angular/navbar/navbar.theme.service.ts","../../../../libs/flowbite-angular/navbar/navbar.component.ts","../../../../libs/flowbite-angular/navbar/navbar.theme.ts","../../../../libs/flowbite-angular/navbar/navbar-brand.theme.ts","../../../../libs/flowbite-angular/navbar/navbar-content.theme.ts","../../../../libs/flowbite-angular/navbar/navbar-item.theme.service.ts","../../../../libs/flowbite-angular/navbar/navbar-item.component.ts","../../../../libs/flowbite-angular/navbar/navbar-item.theme.ts","../../../../libs/flowbite-angular/navbar/navbar-toggle.theme.ts","../../../../libs/flowbite-angular/navbar/navbar-icon-button.theme.service.ts","../../../../libs/flowbite-angular/navbar/navbar-icon-button.component.ts","../../../../libs/flowbite-angular/navbar/navbar-icon-button.theme.ts","../../../../libs/flowbite-angular/navbar/flowbite-angular-navbar.ts"],"sourcesContent":["import type {\n NavbarBrandClass,\n NavbarBrandProperties,\n NavbarBrandTheme,\n} from './navbar-brand.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\nexport const FLOWBITE_NAVBAR_BRAND_THEME_TOKEN = new InjectionToken<NavbarBrandTheme>(\n 'FLOWBITE_NAVBAR_BRAND_THEME_TOKEN'\n);\n\nexport class NavbarBrandThemeService implements FlowbiteThemeService<NavbarBrandProperties> {\n private readonly baseTheme = inject(FLOWBITE_NAVBAR_BRAND_THEME_TOKEN);\n\n public getClasses(properties: NavbarBrandProperties): NavbarBrandClass {\n const theme: NavbarBrandTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: NavbarBrandClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import type { NavbarBrandClass, NavbarBrandTheme } from './navbar-brand.theme';\nimport { NavbarBrandThemeService } from './navbar-brand.theme.service';\nimport { NavbarComponent } from './navbar.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@Component({\n selector: 'flowbite-navbar-brand',\n standalone: true,\n imports: [NgClass],\n template: `<ng-content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NavbarBrandComponent extends BaseComponent<NavbarBrandClass> {\n public readonly themeService = inject(NavbarBrandThemeService);\n public readonly navbarComponent = inject(NavbarComponent);\n\n //#region properties\n public customStyle = model<DeepPartial<NavbarBrandTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): NavbarBrandClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n}\n","import type {\n NavbarContentClass,\n NavbarContentProperties,\n NavbarContentTheme,\n} from './navbar-content.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\nexport const FLOWBITE_NAVBAR_CONTENT_THEME_TOKEN = new InjectionToken<NavbarContentTheme>(\n 'FLOWBITE_NAVBAR_CONTENT_THEME_TOKEN'\n);\n\nexport class NavbarContentThemeService implements FlowbiteThemeService<NavbarContentProperties> {\n private readonly baseTheme = inject(FLOWBITE_NAVBAR_CONTENT_THEME_TOKEN);\n\n public getClasses(properties: NavbarContentProperties): NavbarContentClass {\n const theme: NavbarContentTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: NavbarContentClass = {\n rootClass: twMerge(theme.root.base, theme.root.isOpen[properties.isOpen]),\n navbarContentListClass: twMerge(theme.list.base),\n };\n\n return output;\n }\n}\n","import type { NavbarContentClass, NavbarContentTheme } from './navbar-content.theme';\nimport { NavbarContentThemeService } from './navbar-content.theme.service';\nimport { NavbarComponent } from './navbar.component';\nimport type { NavbarColors } from './navbar.theme';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';\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';\n\n@Component({\n selector: 'flowbite-navbar-content',\n standalone: true,\n imports: [NgClass],\n template: `\n <div [ngClass]=\"contentClasses().navbarContentListClass\">\n <ng-content />\n </div>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NavbarContentComponent extends BaseComponent<NavbarContentClass> implements OnInit {\n public readonly themeService = inject(NavbarContentThemeService);\n public readonly navbarComponent = model<NavbarComponent>(inject(NavbarComponent));\n\n //#region properties\n public color = model<keyof NavbarColors>(this.navbarComponent().color());\n public customStyle = model<DeepPartial<NavbarContentTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): NavbarContentClass {\n return this.themeService.getClasses({\n isOpen: booleanToFlowbiteBoolean(this.navbarComponent().isOpen()),\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n}\n","import type {\n NavbarToggleClass,\n NavbarToggleProperties,\n NavbarToggleTheme,\n} from './navbar-toggle.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\nexport const FLOWBITE_NAVBAR_TOGGLE_THEME_TOKEN = new InjectionToken<NavbarToggleTheme>(\n 'FLOWBITE_NAVBAR_TOGGLE_THEME_TOKEN'\n);\n\nexport class NavbarToggleThemeService implements FlowbiteThemeService<NavbarToggleProperties> {\n private readonly baseTheme = inject(FLOWBITE_NAVBAR_TOGGLE_THEME_TOKEN);\n\n public getClasses(properties: NavbarToggleProperties): NavbarToggleClass {\n const theme: NavbarToggleTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: NavbarToggleClass = {\n rootClass: twMerge(theme.root.base),\n };\n\n return output;\n }\n}\n","import type { NavbarToggleClass, NavbarToggleTheme } from './navbar-toggle.theme';\nimport { NavbarToggleThemeService } from './navbar-toggle.theme.service';\nimport { NavbarComponent } from './navbar.component';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { BARS_SVG_ICON } from 'flowbite-angular/utils';\n\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\n@Component({\n selector: 'flowbite-navbar-toggle',\n standalone: true,\n imports: [CommonModule, IconComponent],\n template: ` <flowbite-icon svgIcon=\"flowbite-angular:bars\" class=\"w-5 h-5\" /> `,\n host: {\n '(click)': 'onClick()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NavbarToggleComponent extends BaseComponent<NavbarToggleClass> {\n public readonly themeService = inject(NavbarToggleThemeService);\n public readonly navbarComponent = model<NavbarComponent>(inject(NavbarComponent));\n public readonly iconRegistry = inject(IconRegistry);\n public readonly domSanitizer = inject(DomSanitizer);\n\n //#region properties\n public customStyle = model<DeepPartial<NavbarToggleTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): NavbarToggleClass {\n return this.themeService.getClasses({\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'bars',\n this.domSanitizer.bypassSecurityTrustHtml(BARS_SVG_ICON)\n );\n }\n //#endregion\n\n public onClick(): void {\n const isCollapsed = this.navbarComponent().isOpen();\n\n this.navbarComponent().isOpen.set(!isCollapsed);\n }\n}\n","import type { NavbarClass, NavbarProperties, NavbarTheme } from './navbar.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\nexport const FLOWBITE_NAVBAR_THEME_TOKEN = new InjectionToken<NavbarTheme>(\n 'FLOWBITE_NAVBAR_THEME_TOKEN'\n);\n\nexport class NavbarThemeService implements FlowbiteThemeService<NavbarProperties> {\n private readonly baseTheme = inject(FLOWBITE_NAVBAR_THEME_TOKEN);\n\n public getClasses(properties: NavbarProperties): NavbarClass {\n const theme: NavbarTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: NavbarClass = {\n rootClass: twMerge(\n theme.root.base,\n theme.root.color['gray'],\n theme.root.isRounded[properties.isRounded],\n theme.root.hasBorder[properties.hasBorder],\n theme.root.isFixed[properties.isFixed]\n ),\n };\n\n return output;\n }\n}\n","import { NavbarBrandComponent } from './navbar-brand.component';\nimport { NavbarContentComponent } from './navbar-content.component';\nimport { NavbarToggleComponent } from './navbar-toggle.component';\nimport type { NavbarClass, NavbarColors, NavbarTheme } from './navbar.theme';\nimport { NavbarThemeService } from './navbar.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 contentChild,\n inject,\n model,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\n\n/**\n * @see https://flowbite.com/docs/components/navbar/\n */\n@Component({\n standalone: true,\n imports: [NgClass],\n selector: 'flowbite-navbar',\n template: `<ng-content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NavbarComponent extends BaseComponent<NavbarClass> {\n public readonly themeService = inject(NavbarThemeService);\n public readonly navbarBrandChild = contentChild(NavbarBrandComponent);\n public readonly navbarToggleChild = contentChild(NavbarToggleComponent);\n public readonly navbarContentChild = contentChild(NavbarContentComponent);\n\n //#region properties\n public color = model<keyof NavbarColors>('primary');\n public isOpen = model<boolean>(false);\n public isRounded = model<boolean>(false);\n public hasBorder = model<boolean>(false);\n public isFixed = model<boolean>(false);\n public customStyle = model<DeepPartial<NavbarTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): NavbarClass {\n return this.themeService.getClasses({\n hasBorder: booleanToFlowbiteBoolean(this.isRounded()),\n isRounded: booleanToFlowbiteBoolean(this.hasBorder()),\n isFixed: booleanToFlowbiteBoolean(this.isFixed()),\n customStyle: this.customStyle(),\n });\n }\n\n public override verify(): void {\n if (this.navbarContentChild() === undefined) {\n throw new Error('No NavbarContentComponent available');\n }\n }\n //#endregion\n\n public toggleVisibility(isOpen?: boolean): void {\n if (isOpen === undefined) {\n isOpen = untracked(() => !this.isOpen());\n }\n\n this.isOpen.set(isOpen);\n }\n}\n","import type { DeepPartial, FlowbiteBoolean, FlowbiteClass, FlowbiteColors } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n//#region Component theme option\nexport interface NavbarColors extends Pick<FlowbiteColors, 'primary' | 'gray'> {\n [key: string]: string;\n}\n//#endregion\n\nexport interface NavbarProperties {\n isRounded: keyof FlowbiteBoolean;\n hasBorder: keyof FlowbiteBoolean;\n isFixed: keyof FlowbiteBoolean;\n customStyle: DeepPartial<NavbarTheme>;\n}\n\nexport interface NavbarTheme {\n root: {\n base: string;\n color: NavbarColors;\n isRounded: FlowbiteBoolean;\n hasBorder: FlowbiteBoolean;\n isFixed: FlowbiteBoolean;\n };\n}\n\nexport const navbarTheme: NavbarTheme = createTheme({\n root: {\n base: 'flex flex-wrap items-center justify-between p-4',\n color: {\n primary: 'bg-primary-200 dark:bg-primary-800 border-primary-200 dark:border-primary-700',\n gray: 'bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700',\n },\n isRounded: {\n enabled: 'rounded',\n disabled: '',\n },\n hasBorder: {\n enabled: 'border',\n disabled: '',\n },\n isFixed: {\n enabled: 'border-b',\n disabled: '',\n },\n },\n});\n\nexport type NavbarClass = FlowbiteClass;\n","import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\nexport interface NavbarBrandProperties {\n customStyle: DeepPartial<NavbarBrandTheme>;\n}\n\nexport interface NavbarBrandTheme {\n root: {\n base: string;\n };\n}\n\nexport const navbarBrandTheme: NavbarBrandTheme = createTheme({\n root: {\n base: 'cursor-pointer flex items-center space-x-3 rtl:space-x-reverse',\n },\n});\n\nexport type NavbarBrandClass = FlowbiteClass;\n","import type { DeepPartial, FlowbiteBoolean, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\nexport interface NavbarContentProperties {\n isOpen: keyof FlowbiteBoolean;\n customStyle: DeepPartial<NavbarContentTheme>;\n}\n\nexport interface NavbarContentTheme {\n root: {\n base: string;\n isOpen: FlowbiteBoolean;\n };\n list: {\n base: string;\n };\n}\n\nexport const navbarContentTheme: NavbarContentTheme = createTheme({\n root: {\n base: 'w-full md:block md:w-auto order-last md:order-none',\n isOpen: {\n enabled: '',\n disabled: 'hidden',\n },\n },\n list: {\n base: 'font-medium flex flex-col p-4 md:p-0 mt-4 items-center border border-gray-100 rounded-lg bg-gray-50 md:flex-row md:space-x-8 rtl:space-x-reverse md:mt-0 md:border-0 md:bg-white dark:bg-gray-900 md:dark:bg-gray-800 dark:border-gray-700',\n },\n});\n\nexport interface NavbarContentClass extends FlowbiteClass {\n navbarContentListClass: string;\n}\n","import type { NabvarItemProperties, NavbarItemClass, NavbarItemTheme } from './navbar-item.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\nexport const FLOWBITE_NAVBAR_ITEM_THEME_TOKEN = new InjectionToken<NavbarItemTheme>(\n 'FLOWBITE_NAVBAR_ITEM_THEME_TOKEN'\n);\n\nexport class NavbarItemThemeService implements FlowbiteThemeService<NabvarItemProperties> {\n private readonly baseTheme = inject(FLOWBITE_NAVBAR_ITEM_THEME_TOKEN);\n\n public getClasses(properties: NabvarItemProperties): NavbarItemClass {\n const theme: NavbarItemTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: NavbarItemClass = {\n rootClass: twMerge(theme.root.base, theme.root.color[properties.color]),\n };\n\n return output;\n }\n}\n","import { NavbarContentComponent } from './navbar-content.component';\nimport type { NavbarItemClass, NavbarItemTheme } from './navbar-item.theme';\nimport { NavbarItemThemeService } from './navbar-item.theme.service';\nimport type { NavbarColors } from './navbar.theme';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\nimport { FlowbiteRouterLinkDirective } from 'flowbite-angular/router-link';\nimport { FlowbiteRouterLinkActiveDirective } from 'flowbite-angular/router-link-active';\n\nimport { NgClass } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n@Component({\n selector: 'flowbite-navbar-item',\n standalone: true,\n imports: [NgClass],\n template: `<ng-content />`,\n host: {\n '(click)': 'onClick()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NavbarItemComponent extends BaseComponent<NavbarItemClass> {\n public readonly flowbiteRouterLink = inject(FlowbiteRouterLinkDirective, { optional: true });\n public readonly flowbiteRouterLinkActive = inject(FlowbiteRouterLinkActiveDirective, {\n optional: true,\n });\n public readonly themeService = inject(NavbarItemThemeService);\n public readonly navbarContentComponent = inject(NavbarContentComponent);\n\n //#region properties\n public color = model<keyof NavbarColors>(this.navbarContentComponent.color());\n public customStyle = model<DeepPartial<NavbarItemTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): NavbarItemClass {\n return this.themeService.getClasses({\n color: this.color(),\n customStyle: this.customStyle(),\n });\n }\n //#endregion\n\n public onClick(): void {\n this.navbarContentComponent.navbarComponent().toggleVisibility(false);\n }\n}\n","import type { NavbarColors } from './navbar.theme';\n\nimport type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\nexport interface NabvarItemProperties {\n color: keyof NavbarColors;\n customStyle: DeepPartial<NavbarItemTheme>;\n}\n\nexport interface NavbarItemTheme {\n root: {\n base: string;\n color: NavbarColors;\n };\n}\n\nexport const navbarItemTheme: NavbarItemTheme = createTheme({\n root: {\n base: 'cursor-pointer block py-2 px-3 rounded text-sm text-gray-900 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 md:hover:bg-transparent md:border-0 md:p-0 md:dark:hover:bg-transparent',\n color: {\n primary:\n 'md:hover:text-primary-700 md:dark:hover:text-primary-500 aria-current:text-primary-500 dark:aria-current:text-primary-300',\n gray: 'md:hover:text-gray-700 md:dark:hover:text-gray-500 aria-current:text-gray-500 dark:aria-current:text-gray-300',\n },\n },\n});\n\nexport type NavbarItemClass = FlowbiteClass;\n","import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\nexport interface NavbarToggleProperties {\n customStyle: DeepPartial<NavbarToggleTheme>;\n}\n\nexport interface NavbarToggleTheme {\n root: {\n base: string;\n };\n}\n\nexport const navbarToogleTheme: NavbarToggleTheme = createTheme({\n root: {\n base: 'cursor-pointer inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600',\n },\n});\n\nexport type NavbarToggleClass = FlowbiteClass;\n","import type {\n NavbarIconButtonClass,\n NavbarIconButtonProperties,\n NavbarIconButtonTheme,\n} from './navbar-icon-button.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\nexport const FLOWBITE_NAVBAR_ICON_BUTTON_THEME_TOKEN = new InjectionToken<NavbarIconButtonTheme>(\n 'FLOWBITE_NAVBAR_TOGGLE_THEME_TOKEN'\n);\n\nexport class NavbarIconButtonThemeService\n implements FlowbiteThemeService<NavbarIconButtonProperties>\n{\n private readonly baseTheme = inject(FLOWBITE_NAVBAR_ICON_BUTTON_THEME_TOKEN);\n\n public getClasses(properties: NavbarIconButtonProperties): NavbarIconButtonClass {\n const theme: NavbarIconButtonTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: NavbarIconButtonClass = {\n rootClass: twMerge(theme.root.base, theme.root.color[properties.color]),\n };\n\n return output;\n }\n}\n","import { NavbarContentComponent } from './navbar-content.component';\nimport type { NavbarIconButtonClass, NavbarIconButtonTheme } from './navbar-icon-button.theme';\nimport { NavbarIconButtonThemeService } from './navbar-icon-button.theme.service';\nimport { NavbarComponent } from './navbar.component';\nimport type { NavbarColors } from './navbar.theme';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\n\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n model,\n ViewEncapsulation,\n} from '@angular/core';\n\n@Component({\n selector: 'flowbite-navbar-icon-button',\n standalone: true,\n imports: [],\n template: `<ng-content />`,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NavbarIconButtonComponent extends BaseComponent<NavbarIconButtonClass> {\n public readonly themeService = inject(NavbarIconButtonThemeService);\n public readonly navbarComponent = inject(NavbarComponent, { optional: true });\n public readonly navbarContentComponent = inject(NavbarContentComponent, { optional: true });\n\n //#region properties\n public color = model<keyof NavbarColors>(\n this.navbarContentComponent?.color() || this.navbarComponent!.color()\n );\n public customStyle = model<DeepPartial<NavbarIconButtonTheme>>({});\n //#endregion\n\n //#region BaseComponent implementation\n public override fetchClass(): NavbarIconButtonClass {\n return this.themeService.getClasses({\n color: this.color(),\n customStyle: this.customStyle(),\n });\n }\n\n public override verify(): void {\n if (this.navbarComponent === null && this.navbarContentComponent === null) {\n throw new Error('No NavbarComponent/NavbarContentComponent available');\n }\n }\n}\n","import type { NavbarColors } from './navbar.theme';\n\nimport type { DeepPartial, FlowbiteClass } from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\nexport interface NavbarIconButtonProperties {\n color: keyof NavbarColors;\n customStyle: DeepPartial<NavbarIconButtonTheme>;\n}\n\nexport interface NavbarIconButtonTheme {\n root: {\n base: string;\n color: NavbarColors;\n };\n}\n\nexport const navbarIconButtonTheme: NavbarIconButtonTheme = 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 color: {\n primary: 'text-primary-500 dark:text-primary-300',\n gray: 'text-gray-500 dark:text-gray-400',\n blue: 'text-blue-500 dark:text-blue-300',\n red: 'text-red-500 dark:text-red-300',\n green: 'text-green-500 dark:text-green-300',\n yellow: 'text-yellow-500 dark:text-yellow-300',\n },\n },\n});\n\nexport type NavbarIconButtonClass = Flow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AA,EAAA;AAAzB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,yBAAyB,icAJ1B,CAAgB,cAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;2FAIf,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBARrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,6BAA6B;AACvC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,QAAQ,EAAE,CAAgB,cAAA,CAAA;oBAC1B,aAAa,EAAE,iBAAiB,CAAC,IAAI;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA,CAAA;;;ACPM,MAAM,qBAAqB,GAA0B,WAAW,CAAC;AACtE,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,gMAAgM;AACtM,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAE,wCAAwC;AACjD,YAAA,IAAI,EAAE,kCAAkC;AACxC,YAAA,IAAI,EAAE,kCAAkC;AACxC,YAAA,GAAG,EAAE,gCAAgC;AACrC,YAAA,KAAK,EAAE,oCAAoC;AAC3C,YAAA,MAAM,EAAE,sCAAsC;AAC/C,SAAA;AACF,KAAA;AACF,CAAA;;AC7BD;;AAEG;;;;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, signal, Directive } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/router';
|
|
4
|
+
import { RouterLinkActive } from '@angular/router';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Wrapping directive over RouterLinkActive.
|
|
8
|
+
*
|
|
9
|
+
* @usageNotes
|
|
10
|
+
* It provides a clean way to have 'isActive' data with signal base value.
|
|
11
|
+
*
|
|
12
|
+
* @see `RouterLinkActive`
|
|
13
|
+
*/
|
|
14
|
+
class FlowbiteRouterLinkActiveDirective {
|
|
15
|
+
get isActive() {
|
|
16
|
+
return this._isActive.asReadonly();
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Set the RouterLinkActive's ariaCurrentWhenActive to the value passed to the component (via this Directive).
|
|
20
|
+
*/
|
|
21
|
+
constructor() {
|
|
22
|
+
this.ariaCurrentValue = true;
|
|
23
|
+
this.routerLinkActive = inject(RouterLinkActive);
|
|
24
|
+
this._isActive = signal(this.routerLinkActive.isActive);
|
|
25
|
+
this.routerLinkActive.ariaCurrentWhenActive = this.ariaCurrentValue;
|
|
26
|
+
}
|
|
27
|
+
onIsActiveChange() {
|
|
28
|
+
this._isActive.set(this.routerLinkActive.isActive);
|
|
29
|
+
}
|
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: FlowbiteRouterLinkActiveDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
31
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0", type: FlowbiteRouterLinkActiveDirective, isStandalone: true, selector: "[flowbiteRouterLinkActive]", host: { attributes: { "isActiveChange": "onIsActiveChange" } }, hostDirectives: [{ directive: i1.RouterLinkActive, inputs: ["routerLinkActiveOptions", "routerLinkActiveOptions", "ariaCurrentWhenActive", "ariaCurrentWhenActive", "routerLinkActive", "routerLinkActive"], outputs: ["isActiveChange", "isActiveChange"] }], ngImport: i0 }); }
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: FlowbiteRouterLinkActiveDirective, decorators: [{
|
|
34
|
+
type: Directive,
|
|
35
|
+
args: [{
|
|
36
|
+
standalone: true,
|
|
37
|
+
selector: '[flowbiteRouterLinkActive]',
|
|
38
|
+
host: {
|
|
39
|
+
isActiveChange: 'onIsActiveChange',
|
|
40
|
+
},
|
|
41
|
+
hostDirectives: [
|
|
42
|
+
{
|
|
43
|
+
directive: RouterLinkActive,
|
|
44
|
+
inputs: ['routerLinkActiveOptions', 'ariaCurrentWhenActive', 'routerLinkActive'],
|
|
45
|
+
outputs: ['isActiveChange'],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
}]
|
|
49
|
+
}], ctorParameters: () => [] });
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Generated bundle index. Do not edit.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
export { FlowbiteRouterLinkActiveDirective };
|
|
56
|
+
//# sourceMappingURL=flowbite-angular-router-link-active.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowbite-angular-router-link-active.mjs","sources":["../../../../libs/flowbite-angular/router-link-active/flowbite-router-link-active.directive.ts","../../../../libs/flowbite-angular/router-link-active/flowbite-angular-router-link-active.ts"],"sourcesContent":["import type { Signal } from '@angular/core';\nimport { Directive, inject, signal } from '@angular/core';\nimport { RouterLinkActive } from '@angular/router';\n\n/**\n * Wrapping directive over RouterLinkActive.\n *\n * @usageNotes\n * It provides a clean way to have 'isActive' data with signal base value.\n *\n * @see `RouterLinkActive`\n */\n@Directive({\n standalone: true,\n selector: '[flowbiteRouterLinkActive]',\n host: {\n isActiveChange: 'onIsActiveChange',\n },\n hostDirectives: [\n {\n directive: RouterLinkActive,\n inputs: ['routerLinkActiveOptions', 'ariaCurrentWhenActive', 'routerLinkActive'],\n outputs: ['isActiveChange'],\n },\n ],\n})\nexport class FlowbiteRouterLinkActiveDirective {\n private readonly ariaCurrentValue: boolean = true;\n\n public routerLinkActive = inject(RouterLinkActive);\n\n private _isActive = signal<boolean>(this.routerLinkActive.isActive);\n\n public get isActive(): Signal<boolean> {\n return this._isActive.asReadonly();\n }\n\n /**\n * Set the RouterLinkActive's ariaCurrentWhenActive to the value passed to the component (via this Directive).\n */\n constructor() {\n this.routerLinkActive.ariaCurrentWhenActive = this.ariaCurrentValue;\n }\n\n onIsActiveChange(): void {\n this._isActive.set(this.routerLinkActive.isActive);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIA;;;;;;;AAOG;MAeU,iCAAiC,CAAA;AAO5C,IAAA,IAAW,QAAQ,GAAA;AACjB,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;KACpC;AAED;;AAEG;AACH,IAAA,WAAA,GAAA;QAbiB,IAAgB,CAAA,gBAAA,GAAY,IAAI,CAAC;AAE3C,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAE3C,IAAS,CAAA,SAAA,GAAG,MAAM,CAAU,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAUlE,IAAI,CAAC,gBAAgB,CAAC,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAC;KACrE;IAED,gBAAgB,GAAA;QACd,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;KACpD;8GApBU,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAjC,iCAAiC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,yBAAA,EAAA,uBAAA,EAAA,uBAAA,EAAA,kBAAA,EAAA,kBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAd7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,IAAI,EAAE;AACJ,wBAAA,cAAc,EAAE,kBAAkB;AACnC,qBAAA;AACD,oBAAA,cAAc,EAAE;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,gBAAgB;AAC3B,4BAAA,MAAM,EAAE,CAAC,yBAAyB,EAAE,uBAAuB,EAAE,kBAAkB,CAAC;4BAChF,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,yBAAA;AACF,qBAAA;AACF,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, model, Directive } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/router';
|
|
4
|
+
import { Router, RouterLink } from '@angular/router';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Wrapping directive over RouterLink.
|
|
8
|
+
*
|
|
9
|
+
* @see `RouterLink`
|
|
10
|
+
*/
|
|
11
|
+
class FlowbiteRouterLinkDirective {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.router = inject(Router);
|
|
14
|
+
this.routerLink = inject(RouterLink);
|
|
15
|
+
this.href = model();
|
|
16
|
+
}
|
|
17
|
+
onClick() {
|
|
18
|
+
const hrefValue = this.href();
|
|
19
|
+
if (hrefValue) {
|
|
20
|
+
this.router.navigateByUrl(hrefValue);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: FlowbiteRouterLinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
24
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.0.0", type: FlowbiteRouterLinkDirective, isStandalone: true, selector: "[flowbiteRouterLink]", inputs: { href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { href: "hrefChange" }, host: { listeners: { "click": "onClick()" } }, hostDirectives: [{ directive: i1.RouterLink, inputs: ["target", "target", "queryParams", "queryParams", "fragment", "fragment", "queryParamsHandling", "queryParamsHandling", "state", "state", "info", "info", "relativeTo", "relativeTo", "preserveFragment", "preserveFragment", "skipLocationChange", "skipLocationChange", "replaceUrl", "replaceUrl", "routerLink", "routerLink"] }], ngImport: i0 }); }
|
|
25
|
+
}
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: FlowbiteRouterLinkDirective, decorators: [{
|
|
27
|
+
type: Directive,
|
|
28
|
+
args: [{
|
|
29
|
+
standalone: true,
|
|
30
|
+
selector: '[flowbiteRouterLink]',
|
|
31
|
+
host: {
|
|
32
|
+
'(click)': 'onClick()',
|
|
33
|
+
},
|
|
34
|
+
hostDirectives: [
|
|
35
|
+
{
|
|
36
|
+
directive: RouterLink,
|
|
37
|
+
inputs: [
|
|
38
|
+
'target',
|
|
39
|
+
'queryParams',
|
|
40
|
+
'fragment',
|
|
41
|
+
'queryParamsHandling',
|
|
42
|
+
'state',
|
|
43
|
+
'info',
|
|
44
|
+
'relativeTo',
|
|
45
|
+
'preserveFragment',
|
|
46
|
+
'skipLocationChange',
|
|
47
|
+
'replaceUrl',
|
|
48
|
+
'routerLink',
|
|
49
|
+
],
|
|
50
|
+
outputs: [],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
}]
|
|
54
|
+
}] });
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Generated bundle index. Do not edit.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
export { FlowbiteRouterLinkDirective };
|
|
61
|
+
//# sourceMappingURL=flowbite-angular-router-link.mjs.map
|