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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FlowbiteClass } from '
|
|
2
|
-
import { Guid } from '
|
|
1
|
+
import type { FlowbiteClass } from './type-definitions/flowbite.class';
|
|
2
|
+
import { Guid } from 'flowbite-angular/utils';
|
|
3
3
|
import type { OnInit } from '@angular/core';
|
|
4
4
|
import { Injector } from '@angular/core';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FlowbiteRouterLinkDirective } from '../../directives/flowbite-router-link.directive';
|
|
2
|
-
import { BaseComponent } from '../base-component.directive';
|
|
3
|
-
import { IconRegistry } from '../icon';
|
|
4
1
|
import type { BreadcrumbItemClass } from './breadcrumb-item.theme';
|
|
5
2
|
import { BreadcrumbItemThemeService } from './breadcrumb-item.theme.service';
|
|
6
3
|
import { BreadcrumbComponent } from './breadcrumb.component';
|
|
7
4
|
import type { BreadcrumbColors } from './breadcrumb.theme';
|
|
5
|
+
import { BaseComponent } from 'flowbite-angular';
|
|
6
|
+
import { IconRegistry } from 'flowbite-angular/icon';
|
|
7
|
+
import { FlowbiteRouterLinkDirective } from 'flowbite-angular/router-link';
|
|
8
8
|
import type { OnInit } from '@angular/core';
|
|
9
9
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
@@ -21,11 +21,11 @@ export declare class BreadcrumbItemComponent extends BaseComponent<BreadcrumbIte
|
|
|
21
21
|
color?: {
|
|
22
22
|
[x: string]: string | undefined;
|
|
23
23
|
primary?: string | undefined;
|
|
24
|
+
dark?: string | undefined;
|
|
24
25
|
blue?: string | undefined;
|
|
25
26
|
red?: string | undefined;
|
|
26
27
|
green?: string | undefined;
|
|
27
28
|
yellow?: string | undefined;
|
|
28
|
-
dark?: string | undefined;
|
|
29
29
|
} | undefined;
|
|
30
30
|
} | undefined;
|
|
31
31
|
icon?: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { FlowbiteClass } from '../../common/type-definitions/flowbite.class';
|
|
2
|
-
import type { DeepPartial } from '../../common/type-definitions/flowbite.deep-partial';
|
|
3
1
|
import type { BreadcrumbColors } from './breadcrumb.theme';
|
|
2
|
+
import type { DeepPartial, FlowbiteClass } from 'flowbite-angular';
|
|
4
3
|
import type { UrlTree } from '@angular/router';
|
|
5
4
|
export interface BreadcrumbItemProperties {
|
|
6
5
|
color: keyof BreadcrumbColors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FlowbiteThemeService } from '../../services';
|
|
2
1
|
import type { BreadcrumbItemClass, BreadcrumbItemProperties, BreadcrumbItemTheme } from './breadcrumb-item.theme';
|
|
2
|
+
import type { FlowbiteThemeService } from 'flowbite-angular';
|
|
3
3
|
import { InjectionToken } from '@angular/core';
|
|
4
4
|
export declare const FLOWBITE_BREADCRUMB_ITEM_THEME_TOKEN: InjectionToken<BreadcrumbItemTheme>;
|
|
5
5
|
export declare class BreadcrumbItemThemeService implements FlowbiteThemeService<BreadcrumbItemProperties> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseComponent } from '../base-component.directive';
|
|
2
1
|
import { BreadcrumbItemComponent } from './breadcrumb-item.component';
|
|
3
2
|
import type { BreadcrumbClass, BreadcrumbColors } from './breadcrumb.theme';
|
|
4
3
|
import { BreadcrumbThemeService } from './breadcrumb.theme.service';
|
|
4
|
+
import { BaseComponent } from 'flowbite-angular';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* @see https://flowbite.com/docs/components/breadcrumb/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DeepPartial, FlowbiteClass, FlowbiteColors } from '
|
|
1
|
+
import type { DeepPartial, FlowbiteClass, FlowbiteColors } from 'flowbite-angular';
|
|
2
2
|
export interface BreadcrumbColors extends Pick<FlowbiteColors, 'primary' | 'dark' | 'blue' | 'red' | 'green' | 'yellow'> {
|
|
3
3
|
[key: string]: string;
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FlowbiteThemeService } from '../../services';
|
|
2
1
|
import type { BreadcrumbClass, BreadcrumbProperties, BreadcrumbTheme } from './breadcrumb.theme';
|
|
2
|
+
import type { FlowbiteThemeService } from 'flowbite-angular';
|
|
3
3
|
import { InjectionToken } from '@angular/core';
|
|
4
4
|
export declare const FLOWBITE_BREADCRUMB_THEME_TOKEN: InjectionToken<BreadcrumbTheme>;
|
|
5
5
|
export declare class BreadcrumbThemeService implements FlowbiteThemeService<BreadcrumbProperties> {
|
package/button/README.md
ADDED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseComponent } from '../base-component.directive';
|
|
2
1
|
import type { ButtonClass, ButtonColors, ButtonFill, ButtonMonochromeColors, ButtonSizes } from './button.theme';
|
|
3
2
|
import { ButtonThemeService } from './button.theme.service';
|
|
3
|
+
import { BaseComponent } from 'flowbite-angular';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* @see https://flowbite.com/docs/components/buttons/
|
|
@@ -35,10 +35,10 @@ export declare class ButtonComponent extends BaseComponent<ButtonClass> {
|
|
|
35
35
|
blue?: string | undefined;
|
|
36
36
|
red?: string | undefined;
|
|
37
37
|
green?: string | undefined;
|
|
38
|
+
purple?: string | undefined;
|
|
38
39
|
cyan?: string | undefined;
|
|
39
40
|
lime?: string | undefined;
|
|
40
41
|
pink?: string | undefined;
|
|
41
|
-
purple?: string | undefined;
|
|
42
42
|
teal?: string | undefined;
|
|
43
43
|
} | undefined;
|
|
44
44
|
gradientDuoTone?: {
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import type { FlowbiteColors } from '
|
|
2
|
-
import type { FlowbiteGradientColors } from '../../common/type-definitions/colors/flowbite.gradient-colors';
|
|
3
|
-
import type { FlowbiteGradientDuoToneColors } from '../../common/type-definitions/colors/flowbite.gradient-duo-tone-colors';
|
|
4
|
-
import type { FlowbiteBoolean } from '../../common/type-definitions/flowbite.boolean';
|
|
5
|
-
import type { FlowbiteClass } from '../../common/type-definitions/flowbite.class';
|
|
6
|
-
import type { Combination } from '../../common/type-definitions/flowbite.combination';
|
|
7
|
-
import type { DeepPartial } from '../../common/type-definitions/flowbite.deep-partial';
|
|
8
|
-
import type { FlowbiteSizes } from '../../common/type-definitions/flowbite.sizes';
|
|
1
|
+
import type { Combination, DeepPartial, FlowbiteBoolean, FlowbiteClass, FlowbiteColors, FlowbiteGradientColors, FlowbiteGradientDuoToneColors, FlowbiteSizes } from 'flowbite-angular';
|
|
9
2
|
export interface ButtonColors extends Pick<FlowbiteColors, 'dark' | 'primary' | 'light' | 'blue' | 'red' | 'green' | 'yellow' | 'purple'> {
|
|
10
3
|
[key: string]: string;
|
|
11
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FlowbiteThemeService } from '../../services';
|
|
2
1
|
import type { ButtonClass, ButtonProperties, ButtonTheme } from './button.theme';
|
|
2
|
+
import type { FlowbiteThemeService } from 'flowbite-angular';
|
|
3
3
|
import { InjectionToken } from '@angular/core';
|
|
4
4
|
export declare const FLOWBITE_BUTTON_THEME_TOKEN: InjectionToken<ButtonTheme>;
|
|
5
5
|
export declare class ButtonThemeService implements FlowbiteThemeService<ButtonProperties> {
|
package/core/README.md
ADDED
package/core/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { initFlowbite } from '../core/flowbite.theme.init';
|
package/{lib/components/dark-theme-toggle → dark-theme-toggle}/dark-theme-toggle.component.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseComponent } from '../base-component.directive';
|
|
2
|
-
import { IconRegistry } from '../icon';
|
|
3
1
|
import type { DarkThemeToggleClass } from './dark-theme-toggle.theme';
|
|
4
2
|
import { DarkThemeToggleThemeService } from './dark-theme-toggle.theme.service';
|
|
3
|
+
import { BaseComponent } from 'flowbite-angular';
|
|
4
|
+
import { IconRegistry } from 'flowbite-angular/icon';
|
|
5
5
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class DarkThemeToggleComponent extends BaseComponent<DarkThemeToggleClass> {
|
package/{lib/components/dark-theme-toggle → dark-theme-toggle}/dark-theme-toggle.theme.service.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FlowbiteThemeService } from '../../services';
|
|
2
1
|
import type { DarkThemeToggleClass, DarkThemeToggleProperties, DarkThemeToggleTheme } from './dark-theme-toggle.theme';
|
|
2
|
+
import type { FlowbiteThemeService } from 'flowbite-angular';
|
|
3
3
|
import { InjectionToken } from '@angular/core';
|
|
4
4
|
export declare const FLOWBITE_DARK_THEME_TOGGLE_THEME_TOKEN: InjectionToken<DarkThemeToggleTheme>;
|
|
5
5
|
export declare class DarkThemeToggleThemeService implements FlowbiteThemeService<DarkThemeToggleProperties> {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { DarkThemeToggleComponent } from './dark-theme-toggle.component';
|
|
2
|
-
export
|
|
3
|
-
export { darkThemeToggleTheme } from './dark-theme-toggle.theme';
|
|
2
|
+
export { DarkThemeToggleClass, DarkThemeToggleProperties, DarkThemeToggleTheme, darkThemeToggleTheme, } from './dark-theme-toggle.theme';
|
|
4
3
|
export { DarkThemeToggleThemeService, FLOWBITE_DARK_THEME_TOGGLE_THEME_TOKEN, } from './dark-theme-toggle.theme.service';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseComponent } from '../base-component.directive';
|
|
2
1
|
import type { DropdownDividerClass, DropdownDividerTheme } from './dropdown-divider.theme';
|
|
3
2
|
import { DropdownDividerThemeService } from './dropdown-divider.theme.service';
|
|
4
3
|
import { DropdownComponent } from './dropdown.component';
|
|
4
|
+
import { BaseComponent } from 'flowbite-angular';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DropdownDividerComponent extends BaseComponent<DropdownDividerClass> {
|
|
7
7
|
readonly themeService: DropdownDividerThemeService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FlowbiteThemeService } from '../../services';
|
|
2
1
|
import type { DropdownDividerClass, DropdownDividerProperties, DropdownDividerTheme } from './dropdown-divider.theme';
|
|
2
|
+
import type { FlowbiteThemeService } from 'flowbite-angular';
|
|
3
3
|
import { InjectionToken } from '@angular/core';
|
|
4
4
|
export declare const FLOWBITE_DROPDOWN_DIVIDER_THEME_TOKEN: InjectionToken<DropdownDividerTheme>;
|
|
5
5
|
export declare class DropdownDividerThemeService implements FlowbiteThemeService<DropdownDividerProperties> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseComponent } from '../base-component.directive';
|
|
2
1
|
import type { DropdownHeaderClass, DropdownHeaderTheme } from './dropdown-header.theme';
|
|
3
2
|
import { DropdownHeaderThemeService } from './dropdown-header.theme.service';
|
|
4
3
|
import { DropdownComponent } from './dropdown.component';
|
|
4
|
+
import { BaseComponent } from 'flowbite-angular';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DropdownHeaderComponent extends BaseComponent<DropdownHeaderClass> {
|
|
7
7
|
readonly themeService: DropdownHeaderThemeService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FlowbiteThemeService } from '../../services';
|
|
2
1
|
import type { DropdownHeaderClass, DropdownHeaderProperties, DropdownHeaderTheme } from './dropdown-header.theme';
|
|
2
|
+
import type { FlowbiteThemeService } from 'flowbite-angular';
|
|
3
3
|
import { InjectionToken } from '@angular/core';
|
|
4
4
|
export declare const FLOWBITE_DROPDOWN_HEADER_THEME_TOKEN: InjectionToken<DropdownHeaderTheme>;
|
|
5
5
|
export declare class DropdownHeaderThemeService implements FlowbiteThemeService<DropdownHeaderProperties> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BaseComponent } from '../base-component.directive';
|
|
2
1
|
import type { DropdownItemClass } from './dropdown-item.theme';
|
|
3
2
|
import { DropdownItemThemeService } from './dropdown-item.theme.service';
|
|
4
3
|
import { DropdownComponent } from './dropdown.component';
|
|
4
|
+
import { BaseComponent } from 'flowbite-angular';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DropdownItemComponent extends BaseComponent<DropdownItemClass> {
|
|
7
7
|
readonly themeService: DropdownItemThemeService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FlowbiteThemeService } from '../../services';
|
|
2
1
|
import type { DropdownItemClass, DropdownItemProperties, DropdownItemTheme } from './dropdown-item.theme';
|
|
2
|
+
import type { FlowbiteThemeService } from 'flowbite-angular';
|
|
3
3
|
import { InjectionToken } from '@angular/core';
|
|
4
4
|
export declare const FLOWBITE_DROPDOWN_ITEM_THEME_TOKEN: InjectionToken<DropdownItemTheme>;
|
|
5
5
|
export declare class DropdownItemThemeService implements FlowbiteThemeService<DropdownItemProperties> {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BaseComponent } from '../base-component.directive';
|
|
2
|
-
import { IconRegistry } from '../icon';
|
|
3
1
|
import { DropdownDividerComponent } from './dropdown-divider.component';
|
|
4
2
|
import { DropdownHeaderComponent } from './dropdown-header.component';
|
|
5
3
|
import { DropdownItemComponent } from './dropdown-item.component';
|
|
6
4
|
import type { DropdownClass, DropdownPositions } from './dropdown.theme';
|
|
7
5
|
import { DropdownThemeService } from './dropdown.theme.service';
|
|
6
|
+
import { BaseComponent } from 'flowbite-angular';
|
|
7
|
+
import { IconRegistry } from 'flowbite-angular/icon';
|
|
8
8
|
import type { AfterViewInit } from '@angular/core';
|
|
9
9
|
import { ElementRef } from '@angular/core';
|
|
10
10
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import type { DeepPartial } from '
|
|
2
|
-
import type { FlowbiteBoolean } from '../../common/type-definitions/flowbite.boolean';
|
|
3
|
-
import type { FlowbiteClass } from '../../common/type-definitions/flowbite.class';
|
|
4
|
-
import type { FlowbitePositions } from '../../common/type-definitions/flowbite.positions';
|
|
1
|
+
import type { DeepPartial, FlowbiteBoolean, FlowbiteClass, FlowbitePositions } from 'flowbite-angular';
|
|
5
2
|
export interface DropdownPositions extends Pick<FlowbitePositions, 'bottom-center' | 'top-center'> {
|
|
6
3
|
'left-center': string;
|
|
7
4
|
'right-center': string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { FlowbiteThemeService } from '../../services';
|
|
2
1
|
import type { DropdownClass, DropdownProperties, DropdownTheme } from './dropdown.theme';
|
|
2
|
+
import type { FlowbiteThemeService } from 'flowbite-angular';
|
|
3
3
|
import { InjectionToken } from '@angular/core';
|
|
4
4
|
export declare const FLOWBITE_DROPDOWN_THEME_TOKEN: InjectionToken<DropdownTheme>;
|
|
5
5
|
export declare class DropdownThemeService implements FlowbiteThemeService<DropdownProperties> {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AccordionContentThemeService } from './accordion-content.theme.service';
|
|
2
|
+
import { AccordionPanelComponent } from './accordion-panel.component';
|
|
3
|
+
import { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';
|
|
4
|
+
import { NgClass, NgIf } from '@angular/common';
|
|
5
|
+
import { ChangeDetectionStrategy, Component, inject, model, ViewEncapsulation, } from '@angular/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class AccordionContentComponent extends BaseComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.themeService = inject(AccordionContentThemeService);
|
|
11
|
+
this.accordionPanelComponent = inject(AccordionPanelComponent);
|
|
12
|
+
//#region properties
|
|
13
|
+
this.color = model(this.accordionPanelComponent.color());
|
|
14
|
+
this.customStyle = model({});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region BaseComponent implementation
|
|
18
|
+
fetchClass() {
|
|
19
|
+
return this.themeService.getClasses({
|
|
20
|
+
color: this.accordionPanelComponent.accordionComponent.color(),
|
|
21
|
+
isOpen: booleanToFlowbiteBoolean(this.accordionPanelComponent.isOpen()),
|
|
22
|
+
customStyle: this.customStyle(),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: AccordionContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: AccordionContentComponent, isStandalone: true, selector: "flowbite-accordion-content", 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: `
|
|
27
|
+
<ng-container *ngIf="accordionPanelComponent.isOpen()">
|
|
28
|
+
<ng-content />
|
|
29
|
+
</ng-container>
|
|
30
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: AccordionContentComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{
|
|
35
|
+
standalone: true,
|
|
36
|
+
imports: [NgIf, NgClass],
|
|
37
|
+
selector: 'flowbite-accordion-content',
|
|
38
|
+
template: `
|
|
39
|
+
<ng-container *ngIf="accordionPanelComponent.isOpen()">
|
|
40
|
+
<ng-content />
|
|
41
|
+
</ng-container>
|
|
42
|
+
`,
|
|
43
|
+
encapsulation: ViewEncapsulation.None,
|
|
44
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
|
+
}]
|
|
46
|
+
}] });
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLWNvbnRlbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vb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b2YgQWNjb3JkaW9uQ29sb3JzPih0aGlzLmFjY29yZGlvblBhbmVsQ29tcG9uZW50LmNvbG9yKCkpO1xuICBwdWJsaWMgY3VzdG9tU3R5bGUgPSBtb2RlbDxEZWVwUGFydGlhbDxBY2NvcmRpb25Db250ZW50VGhlbWU+Pih7fSk7XG4gIC8vI2VuZHJlZ2lvblxuXG4gIC8vI3JlZ2lvbiBCYXNlQ29tcG9uZW50IGltcGxlbWVudGF0aW9uXG4gIHB1YmxpYyBvdmVycmlkZSBmZXRjaENsYXNzKCk6IEFjY29yZGlvbkNvbnRlbnRDbGFzcyB7XG4gICAgcmV0dXJuIHRoaXMudGhlbWVTZXJ2aWNlLmdldENsYXNzZXMoe1xuICAgICAgY29sb3I6IHRoaXMuYWNjb3JkaW9uUGFuZWxDb21wb25lbnQuYWNjb3JkaW9uQ29tcG9uZW50LmNvbG9yKCksXG4gICAgICBpc09wZW46IGJvb2xlYW5Ub0Zsb3diaXRlQm9vbGVhbih0aGlzLmFjY29yZGlvblBhbmVsQ29tcG9uZW50LmlzT3BlbigpKSxcbiAgICAgIGN1c3RvbVN0eWxlOiB0aGlzLmN1c3RvbVN0eWxlKCksXG4gICAgfSk7XG4gIH1cbiAgLy8jZW5kcmVnaW9uXG59XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createTheme } from 'flowbite-angular/utils';
|
|
2
|
+
export const accordionContentTheme = createTheme({
|
|
3
|
+
root: {
|
|
4
|
+
base: 'flex flex-col gap-2',
|
|
5
|
+
color: {
|
|
6
|
+
primary: 'border-primary-200 dark:border-primary-700',
|
|
7
|
+
light: 'border-gray-200 dark:border-gray-700',
|
|
8
|
+
blue: 'border-blue-200 dark:border-blue-700',
|
|
9
|
+
red: 'border-red-200 dark:border-red-700',
|
|
10
|
+
green: 'border-green-200 dark:border-green-700',
|
|
11
|
+
yellow: 'border-yellow-200 dark:border-yellow-700',
|
|
12
|
+
},
|
|
13
|
+
isOpen: {
|
|
14
|
+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VyLXllbGxvdy03MDAnLFxuICAgIH0sXG4gICAgaXNPcGVuOiB7XG4gICAgICBlbmFibGVkOiAncC01JyxcbiAgICAgIGRpc2FibGVkOiAnJyxcbiAgICB9LFxuICB9LFxufSk7XG5cbmV4cG9ydCB0eXBlIEFjY29yZGlvbkNvbnRlbnRDbGFzcyA9IEZsb3diaXRlQ2xhc3M7XG4iXX0=
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { mergeTheme } from 'flowbite-angular/utils';
|
|
2
|
+
import { inject, InjectionToken } from '@angular/core';
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
export const FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN = new InjectionToken('FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN');
|
|
5
|
+
export class AccordionContentThemeService {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.baseTheme = inject(FLOWBITE_ACCORDION_CONTENT_THEME_TOKEN);
|
|
8
|
+
}
|
|
9
|
+
getClasses(properties) {
|
|
10
|
+
const theme = mergeTheme(this.baseTheme, properties.customStyle);
|
|
11
|
+
const output = {
|
|
12
|
+
rootClass: twMerge(theme.root.base, theme.root.color[properties.color], theme.root.isOpen[properties.isOpen]),
|
|
13
|
+
};
|
|
14
|
+
return output;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLWNvbnRlbnQudGhlbWUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZmxvd2JpdGUtYW5ndWxhci9hY2NvcmRpb24vYWNjb3JkaW9uLWNvbnRlbnQudGhlbWUuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFcEQ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b3BlcnRpZXMuY29sb3JdLFxuICAgICAgICB0aGVtZS5yb290LmlzT3Blbltwcm9wZXJ0aWVzLmlzT3Blbl1cbiAgICAgICksXG4gICAgfTtcblxuICAgIHJldHVybiBvdXRwdXQ7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AccordionContentComponent } from './accordion-content.component';
|
|
2
|
+
import { AccordionPanelThemeService } from './accordion-panel.theme.service';
|
|
3
|
+
import { AccordionTitleComponent } from './accordion-title.component';
|
|
4
|
+
import { AccordionComponent } from './accordion.component';
|
|
5
|
+
import { BaseComponent } from 'flowbite-angular';
|
|
6
|
+
import { ChangeDetectionStrategy, Component, contentChild, inject, model, untracked, ViewEncapsulation, } from '@angular/core';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class AccordionPanelComponent extends BaseComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.themeService = inject(AccordionPanelThemeService);
|
|
12
|
+
this.accordionComponent = inject(AccordionComponent);
|
|
13
|
+
this.accordionTitleChild = contentChild(AccordionTitleComponent);
|
|
14
|
+
this.accordionContentChild = contentChild(AccordionContentComponent);
|
|
15
|
+
//#region properties
|
|
16
|
+
this.color = model(this.accordionComponent.color());
|
|
17
|
+
this.isOpen = model(false);
|
|
18
|
+
this.customStyle = model({});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region BaseComponent implementation
|
|
22
|
+
fetchClass() {
|
|
23
|
+
return this.themeService.getClasses({
|
|
24
|
+
customStyle: this.customStyle(),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
verify() {
|
|
28
|
+
if (this.accordionTitleChild() === undefined) {
|
|
29
|
+
throw new Error('No AccordionTitleComponent available');
|
|
30
|
+
}
|
|
31
|
+
if (this.accordionContentChild() == undefined) {
|
|
32
|
+
throw new Error('No AccordionContentComponent available');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
toggleVisibility(isOpen) {
|
|
37
|
+
if (isOpen === undefined) {
|
|
38
|
+
isOpen = untracked(() => !this.isOpen());
|
|
39
|
+
}
|
|
40
|
+
if (isOpen && untracked(() => !this.accordionComponent.isAlwaysOpen())) {
|
|
41
|
+
this.accordionComponent.closeAll();
|
|
42
|
+
}
|
|
43
|
+
this.isOpen.set(isOpen);
|
|
44
|
+
}
|
|
45
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: AccordionPanelComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
46
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.0.0", type: AccordionPanelComponent, isStandalone: true, selector: "flowbite-accordion-panel", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { color: "colorChange", isOpen: "isOpenChange", customStyle: "customStyleChange" }, queries: [{ propertyName: "accordionTitleChild", first: true, predicate: AccordionTitleComponent, descendants: true, isSignal: true }, { propertyName: "accordionContentChild", first: true, predicate: AccordionContentComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
47
|
+
}
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: AccordionPanelComponent, decorators: [{
|
|
49
|
+
type: Component,
|
|
50
|
+
args: [{
|
|
51
|
+
standalone: true,
|
|
52
|
+
imports: [],
|
|
53
|
+
selector: 'flowbite-accordion-panel',
|
|
54
|
+
template: `<ng-content />`,
|
|
55
|
+
encap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AgIH1cbiAgICBpZiAodGhpcy5hY2NvcmRpb25Db250ZW50Q2hpbGQoKSA9PSB1bmRlZmluZWQpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignTm8gQWNjb3JkaW9uQ29udGVudENvbXBvbmVudCBhdmFpbGFibGUnKTtcbiAgICB9XG4gIH1cbiAgLy8jZW5kcmVnaW9uXG5cbiAgcHVibGljIHRvZ2dsZVZpc2liaWxpdHkoaXNPcGVuPzogYm9vbGVhbik6IHZvaWQge1xuICAgIGlmIChpc09wZW4gPT09IHVuZGVmaW5lZCkge1xuICAgICAgaXNPcGVuID0gdW50cmFja2VkKCgpID0+ICF0aGlzLmlzT3BlbigpKTtcbiAgICB9XG5cbiAgICBpZiAoaXNPcGVuICYmIHVudHJhY2tlZCgoKSA9PiAhdGhpcy5hY2NvcmRpb25Db21wb25lbnQuaXNBbHdheXNPcGVuKCkpKSB7XG4gICAgICB0aGlzLmFjY29yZGlvbkNvbXBvbmVudC5jbG9zZUFsbCgpO1xuICAgIH1cblxuICAgIHRoaXMuaXNPcGVuLnNldChpc09wZW4pO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createTheme } from 'flowbite-angular/utils';
|
|
2
|
+
export const accordionPanelTheme = createTheme({
|
|
3
|
+
root: {
|
|
4
|
+
base: 'group',
|
|
5
|
+
},
|
|
6
|
+
});
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLXBhbmVsLnRoZW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9mbG93Yml0ZS1hbmd1bGFyL2FjY29yZGlvbi9hY2NvcmRpb24tcGFuZWwudGhlbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBWXJELE1BQU0sQ0FBQyxNQUFNLG1CQUFtQixHQUF3QixXQUFXLENBQUM7SUFDbEUsSUFBSSxFQUFFO1FBQ0osSUFBSSxFQUFFLE9BQU87S0FDZDtDQUNGLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgRGVlcFBhcnRpYWwsIEZsb3diaXRlQ2xhc3MgfSBmcm9tICdmbG93Yml0ZS1hbmd1bGFyJztcbmltcG9ydCB7IGNyZWF0ZVRoZW1lIH0gZnJvbSAnZmxvd2JpdGUtYW5ndWxhci91dGlscyc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQWNjb3JkaW9uUGFuZWxQcm9wZXJ0aWVzIHtcbiAgY3VzdG9tU3R5bGU6IERlZXBQYXJ0aWFsPEFjY29yZGlvblBhbmVsVGhlbWU+O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFjY29yZGlvblBhbmVsVGhlbWUge1xuICByb290OiB7XG4gICAgYmFzZTogc3RyaW5nO1xuICB9O1xufVxuXG5leHBvcnQgY29uc3QgYWNjb3JkaW9uUGFuZWxUaGVtZTogQWNjb3JkaW9uUGFuZWxUaGVtZSA9IGNyZWF0ZVRoZW1lKHtcbiAgcm9vdDoge1xuICAgIGJhc2U6ICdncm91cCcsXG4gIH0sXG59KTtcblxuZXhwb3J0IHR5cGUgQWNjb3JkaW9uUGFuZWxDbGFzcyA9IEZsb3diaXRlQ2xhc3M7XG4iXX0=
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { mergeTheme } from 'flowbite-angular/utils';
|
|
2
|
+
import { inject, InjectionToken } from '@angular/core';
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
export const FLOWBITE_ACCORDION_PANEL_THEME_TOKEN = new InjectionToken('FLOWBITE_ACCORDION_PANEL_THEME_TOKEN');
|
|
5
|
+
export class AccordionPanelThemeService {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.baseTheme = inject(FLOWBITE_ACCORDION_PANEL_THEME_TOKEN);
|
|
8
|
+
}
|
|
9
|
+
getClasses(properties) {
|
|
10
|
+
const theme = mergeTheme(this.baseTheme, properties.customStyle);
|
|
11
|
+
const output = {
|
|
12
|
+
rootClass: twMerge(theme.root.base),
|
|
13
|
+
};
|
|
14
|
+
return output;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLXBhbmVsLnRoZW1lLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2Zsb3diaXRlLWFuZ3VsYXIvYWNjb3JkaW9uL2FjY29yZGlvbi1wYW5lbC50aGVtZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUVwRCxPQUFPLEVBQUUsTUFBTSxFQUFFLGNBQWMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN2RCxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFekMsTUFBTSxDQUFDLE1BQU0sb0NBQW9DLEdBQUcsSUFBSSxjQUFjLENBQ3BFLHNDQUFzQyxDQUN2QyxDQUFDO0FBRUYsTUFBTSxPQUFPLDBCQUEwQjtJQUF2QztRQUNtQixjQUFTLEdBQUcsTUFBTSxDQUFDLG9DQUFvQyxDQUFDLENBQUM7SUFXNUUsQ0FBQztJQVRRLFVBQVUsQ0FBQyxVQUFvQztRQUNwRCxNQUFNLEtBQUssR0FBd0IsVUFBVSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsVUFBVSxDQUFDLFdBQVcsQ0FBQyxDQUFDO1FBRXRGLE1BQU0sTUFBTSxHQUF3QjtZQUNsQyxTQUFTLEVBQUUsT0FBTyxDQ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RFX0FDQ09SRElPTl9QQU5FTF9USEVNRV9UT0tFTik7XG5cbiAgcHVibGljIGdldENsYXNzZXMocHJvcGVydGllczogQWNjb3JkaW9uUGFuZWxQcm9wZXJ0aWVzKTogQWNjb3JkaW9uQ2xhc3Mge1xuICAgIGNvbnN0IHRoZW1lOiBBY2NvcmRpb25QYW5lbFRoZW1lID0gbWVyZ2VUaGVtZSh0aGlzLmJhc2VUaGVtZSwgcHJvcGVydGllcy5jdXN0b21TdHlsZSk7XG5cbiAgICBjb25zdCBvdXRwdXQ6IEFjY29yZGlvblBhbmVsQ2xhc3MgPSB7XG4gICAgICByb290Q2xhc3M6IHR3TWVyZ2UodGhlbWUucm9vdC5iYXNlKSxcbiAgICB9O1xuXG4gICAgcmV0dXJuIG91dHB1dDtcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { AccordionPanelComponent } from './accordion-panel.component';
|
|
2
|
+
import { AccordionTitleThemeService } from './accordion-title.theme.service';
|
|
3
|
+
import { BaseComponent, booleanToFlowbiteBoolean } from 'flowbite-angular';
|
|
4
|
+
import { IconComponent, IconRegistry } from 'flowbite-angular/icon';
|
|
5
|
+
import { CHEVRON_DOWN_SVG_ICON } from 'flowbite-angular/utils';
|
|
6
|
+
import { NgClass } from '@angular/common';
|
|
7
|
+
import { ChangeDetectionStrategy, Component, inject, model, ViewEncapsulation, } from '@angular/core';
|
|
8
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export class AccordionTitleComponent extends BaseComponent {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.themeService = inject(AccordionTitleThemeService);
|
|
14
|
+
this.accordionPanelComponent = inject(AccordionPanelComponent);
|
|
15
|
+
this.iconRegistry = inject(IconRegistry);
|
|
16
|
+
this.domSanitizer = inject(DomSanitizer);
|
|
17
|
+
//#region properties
|
|
18
|
+
this.color = model(this.accordionPanelComponent.color());
|
|
19
|
+
this.customStyle = model({});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region BaseComponent implementation
|
|
23
|
+
fetchClass() {
|
|
24
|
+
return this.themeService.getClasses({
|
|
25
|
+
color: this.accordionPanelComponent.accordionComponent.color(),
|
|
26
|
+
isFlush: booleanToFlowbiteBoolean(this.accordionPanelComponent.accordionComponent.isFlush()),
|
|
27
|
+
isOpen: booleanToFlowbiteBoolean(this.accordionPanelComponent.isOpen()),
|
|
28
|
+
customStyle: this.customStyle(),
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
init() {
|
|
32
|
+
this.iconRegistry.addRawSvgIconInNamepsace('flowbite-angular', 'chevron-down', this.domSanitizer.bypassSecurityTrustHtml(CHEVRON_DOWN_SVG_ICON));
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
onClick() {
|
|
36
|
+
this.accordionPanelComponent.toggleVisibility();
|
|
37
|
+
}
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: AccordionTitleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: AccordionTitleComponent, isStandalone: true, selector: "flowbite-accordion-title", 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: `
|
|
40
|
+
<h2 [ngClass]="contentClasses().textClass">
|
|
41
|
+
<ng-content />
|
|
42
|
+
</h2>
|
|
43
|
+
<flowbite-icon
|
|
44
|
+
svgIcon="flowbite-angular:chevron-down"
|
|
45
|
+
class="h-6 w-6 shrink-0 duration-200"
|
|
46
|
+
[class.rotate-180]="accordionPanelComponent.isOpen()" />
|
|
47
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconComponent, selector: "flowbite-icon", inputs: ["svgIcon"], outputs: ["svgIconChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: AccordionTitleComponent, decorators: [{
|
|
50
|
+
type: Component,
|
|
51
|
+
args: [{
|
|
52
|
+
standalone: true,
|
|
53
|
+
imports: [NgClass, IconComponent],
|
|
54
|
+
selector: 'flowbite-accordion-title',
|
|
55
|
+
template: `
|
|
56
|
+
<h2 [ngClass]="contentClasses().textClass">
|
|
57
|
+
<ng-content />
|
|
58
|
+
</h2>
|
|
59
|
+
<flowbite-icon
|
|
60
|
+
svgIcon="flowbite-angular:chevron-down"
|
|
61
|
+
class="h-6 w-6 shrink-0 duration-200"
|
|
62
|
+
[class.rotate-180]="accordionPanelComponent.isOpen()" />
|
|
63
|
+
`,
|
|
64
|
+
host: {
|
|
65
|
+
'(click)': 'onClick()',
|
|
66
|
+
},
|
|
67
|
+
encapsulation: ViewEncapsulation.None,
|
|
68
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
69
|
+
}]
|
|
70
|
+
}] });
|
|
71
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLXRpdGxlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZmxvd2JpdGUtYW5ndWxhci9hY2NvcmRpb24vYWNjb3JkaW9uLXRpdGxlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx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