flowbite-angular 1.3.0 → 20.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/README.md +30 -39
  2. package/accordion/index.d.ts +569 -16
  3. package/alert/index.d.ts +602 -4
  4. package/badge/index.d.ts +636 -4
  5. package/breadcrumb/index.d.ts +452 -8
  6. package/button/index.d.ts +335 -4
  7. package/button-group/README.md +4 -0
  8. package/button-group/index.d.ts +85 -0
  9. package/{core → card}/README.md +2 -2
  10. package/card/index.d.ts +640 -0
  11. package/{accordion → clipboard}/README.md +2 -2
  12. package/clipboard/index.d.ts +103 -0
  13. package/dropdown/index.d.ts +536 -16
  14. package/fesm2022/flowbite-angular-accordion.mjs +339 -479
  15. package/fesm2022/flowbite-angular-accordion.mjs.map +1 -1
  16. package/fesm2022/flowbite-angular-alert.mjs +308 -240
  17. package/fesm2022/flowbite-angular-alert.mjs.map +1 -1
  18. package/fesm2022/flowbite-angular-badge.mjs +332 -238
  19. package/fesm2022/flowbite-angular-badge.mjs.map +1 -1
  20. package/fesm2022/flowbite-angular-breadcrumb.mjs +262 -191
  21. package/fesm2022/flowbite-angular-breadcrumb.mjs.map +1 -1
  22. package/fesm2022/flowbite-angular-button-group.mjs +86 -0
  23. package/fesm2022/flowbite-angular-button-group.mjs.map +1 -0
  24. package/fesm2022/flowbite-angular-button.mjs +189 -270
  25. package/fesm2022/flowbite-angular-button.mjs.map +1 -1
  26. package/fesm2022/flowbite-angular-card.mjs +344 -0
  27. package/fesm2022/flowbite-angular-card.mjs.map +1 -0
  28. package/fesm2022/flowbite-angular-clipboard.mjs +174 -0
  29. package/fesm2022/flowbite-angular-clipboard.mjs.map +1 -0
  30. package/fesm2022/flowbite-angular-dropdown.mjs +272 -459
  31. package/fesm2022/flowbite-angular-dropdown.mjs.map +1 -1
  32. package/fesm2022/flowbite-angular-form.mjs +444 -0
  33. package/fesm2022/flowbite-angular-form.mjs.map +1 -0
  34. package/fesm2022/flowbite-angular-icon-brand.mjs +71 -0
  35. package/fesm2022/flowbite-angular-icon-brand.mjs.map +1 -0
  36. package/fesm2022/flowbite-angular-icon-outline-arrows.mjs +51 -0
  37. package/fesm2022/flowbite-angular-icon-outline-arrows.mjs.map +1 -0
  38. package/fesm2022/flowbite-angular-icon-outline-e-commerce.mjs +23 -0
  39. package/fesm2022/flowbite-angular-icon-outline-e-commerce.mjs.map +1 -0
  40. package/fesm2022/flowbite-angular-icon-outline-emoji.mjs +13 -0
  41. package/fesm2022/flowbite-angular-icon-outline-emoji.mjs.map +1 -0
  42. package/fesm2022/flowbite-angular-icon-outline-files-folders.mjs +42 -0
  43. package/fesm2022/flowbite-angular-icon-outline-files-folders.mjs.map +1 -0
  44. package/fesm2022/flowbite-angular-icon-outline-general.mjs +145 -0
  45. package/fesm2022/flowbite-angular-icon-outline-general.mjs.map +1 -0
  46. package/fesm2022/flowbite-angular-icon-outline-media.mjs +25 -0
  47. package/fesm2022/flowbite-angular-icon-outline-media.mjs.map +1 -0
  48. package/fesm2022/flowbite-angular-icon-outline-text.mjs +20 -0
  49. package/fesm2022/flowbite-angular-icon-outline-text.mjs.map +1 -0
  50. package/fesm2022/flowbite-angular-icon-outline-user.mjs +17 -0
  51. package/fesm2022/flowbite-angular-icon-outline-user.mjs.map +1 -0
  52. package/fesm2022/flowbite-angular-icon-outline-weather.mjs +9 -0
  53. package/fesm2022/flowbite-angular-icon-outline-weather.mjs.map +1 -0
  54. package/fesm2022/flowbite-angular-icon-outline.mjs +6 -0
  55. package/fesm2022/flowbite-angular-icon-outline.mjs.map +1 -0
  56. package/fesm2022/flowbite-angular-icon-solid-arrows.mjs +17 -0
  57. package/fesm2022/flowbite-angular-icon-solid-arrows.mjs.map +1 -0
  58. package/fesm2022/flowbite-angular-icon-solid-brands.mjs +33 -0
  59. package/fesm2022/flowbite-angular-icon-solid-brands.mjs.map +1 -0
  60. package/fesm2022/flowbite-angular-icon-solid-e-commerce.mjs +21 -0
  61. package/fesm2022/flowbite-angular-icon-solid-e-commerce.mjs.map +1 -0
  62. package/fesm2022/flowbite-angular-icon-solid-emoji.mjs +13 -0
  63. package/fesm2022/flowbite-angular-icon-solid-emoji.mjs.map +1 -0
  64. package/fesm2022/flowbite-angular-icon-solid-files-folder.mjs +42 -0
  65. package/fesm2022/flowbite-angular-icon-solid-files-folder.mjs.map +1 -0
  66. package/fesm2022/flowbite-angular-icon-solid-general.mjs +123 -0
  67. package/fesm2022/flowbite-angular-icon-solid-general.mjs.map +1 -0
  68. package/fesm2022/flowbite-angular-icon-solid-media.mjs +24 -0
  69. package/fesm2022/flowbite-angular-icon-solid-media.mjs.map +1 -0
  70. package/fesm2022/flowbite-angular-icon-solid-text.mjs +11 -0
  71. package/fesm2022/flowbite-angular-icon-solid-text.mjs.map +1 -0
  72. package/fesm2022/flowbite-angular-icon-solid-user.mjs +17 -0
  73. package/fesm2022/flowbite-angular-icon-solid-user.mjs.map +1 -0
  74. package/fesm2022/flowbite-angular-icon-solid-weather.mjs +9 -0
  75. package/fesm2022/flowbite-angular-icon-solid-weather.mjs.map +1 -0
  76. package/fesm2022/flowbite-angular-icon-solid.mjs +6 -0
  77. package/fesm2022/flowbite-angular-icon-solid.mjs.map +1 -0
  78. package/fesm2022/flowbite-angular-icon.mjs +318 -219
  79. package/fesm2022/flowbite-angular-icon.mjs.map +1 -1
  80. package/fesm2022/flowbite-angular-indicator.mjs +119 -231
  81. package/fesm2022/flowbite-angular-indicator.mjs.map +1 -1
  82. package/fesm2022/flowbite-angular-modal.mjs +337 -486
  83. package/fesm2022/flowbite-angular-modal.mjs.map +1 -1
  84. package/fesm2022/flowbite-angular-navbar.mjs +600 -604
  85. package/fesm2022/flowbite-angular-navbar.mjs.map +1 -1
  86. package/fesm2022/flowbite-angular-pagination.mjs +994 -0
  87. package/fesm2022/flowbite-angular-pagination.mjs.map +1 -0
  88. package/fesm2022/flowbite-angular-sidebar.mjs +400 -776
  89. package/fesm2022/flowbite-angular-sidebar.mjs.map +1 -1
  90. package/fesm2022/flowbite-angular-tab.mjs +465 -0
  91. package/fesm2022/flowbite-angular-tab.mjs.map +1 -0
  92. package/fesm2022/flowbite-angular-theme-toggle.mjs +263 -0
  93. package/fesm2022/flowbite-angular-theme-toggle.mjs.map +1 -0
  94. package/fesm2022/flowbite-angular-tooltip.mjs +117 -0
  95. package/fesm2022/flowbite-angular-tooltip.mjs.map +1 -0
  96. package/fesm2022/flowbite-angular.mjs +53 -66
  97. package/fesm2022/flowbite-angular.mjs.map +1 -1
  98. package/flowbite-angular.css +2 -0
  99. package/{alert → form}/README.md +2 -2
  100. package/form/index.d.ts +684 -0
  101. package/{breadcrumb → icon/brand}/README.md +2 -2
  102. package/icon/brand/index.d.ts +66 -0
  103. package/icon/index.d.ts +322 -5
  104. package/icon/outline/README.md +4 -0
  105. package/icon/outline/arrows/index.d.ts +46 -0
  106. package/icon/outline/e-commerce/index.d.ts +18 -0
  107. package/icon/outline/emoji/index.d.ts +8 -0
  108. package/icon/outline/files-folders/index.d.ts +37 -0
  109. package/icon/outline/general/index.d.ts +140 -0
  110. package/icon/outline/index.d.ts +2 -0
  111. package/icon/outline/media/index.d.ts +20 -0
  112. package/icon/outline/text/index.d.ts +15 -0
  113. package/icon/outline/user/index.d.ts +12 -0
  114. package/icon/outline/weather/index.d.ts +4 -0
  115. package/icon/solid/README.md +4 -0
  116. package/icon/solid/arrows/index.d.ts +12 -0
  117. package/icon/solid/brands/index.d.ts +28 -0
  118. package/icon/solid/e-commerce/index.d.ts +16 -0
  119. package/icon/solid/emoji/index.d.ts +8 -0
  120. package/icon/solid/files-folder/index.d.ts +37 -0
  121. package/icon/solid/general/index.d.ts +118 -0
  122. package/icon/solid/index.d.ts +2 -0
  123. package/icon/solid/media/index.d.ts +19 -0
  124. package/icon/solid/text/index.d.ts +6 -0
  125. package/icon/solid/user/index.d.ts +12 -0
  126. package/icon/solid/weather/index.d.ts +4 -0
  127. package/index.d.ts +126 -3
  128. package/indicator/index.d.ts +242 -4
  129. package/modal/index.d.ts +458 -16
  130. package/navbar/index.d.ts +1467 -24
  131. package/package.json +133 -38
  132. package/pagination/README.md +4 -0
  133. package/pagination/index.d.ts +1135 -0
  134. package/sidebar/index.d.ts +880 -24
  135. package/styles/flowbite-angular.css +8 -0
  136. package/styles/part/animation.css +0 -0
  137. package/styles/part/color.css +125 -0
  138. package/styles/part/font-size.css +67 -0
  139. package/styles/part/rounded.css +11 -0
  140. package/styles/part/shadow.css +9 -0
  141. package/styles/part/spacing.css +38 -0
  142. package/{badge → tab}/README.md +2 -2
  143. package/tab/index.d.ts +791 -0
  144. package/theme-toggle/README.md +4 -0
  145. package/theme-toggle/index.d.ts +342 -0
  146. package/{button → tooltip}/README.md +2 -2
  147. package/tooltip/index.d.ts +158 -0
  148. package/accordion/accordion-content.component.d.ts +0 -69
  149. package/accordion/accordion-content.theme.d.ts +0 -28
  150. package/accordion/accordion-content.theme.service.d.ts +0 -19
  151. package/accordion/accordion-panel.component.d.ts +0 -67
  152. package/accordion/accordion-panel.theme.d.ts +0 -23
  153. package/accordion/accordion-panel.theme.service.d.ts +0 -20
  154. package/accordion/accordion-title.component.d.ts +0 -106
  155. package/accordion/accordion-title.theme.d.ts +0 -35
  156. package/accordion/accordion-title.theme.service.d.ts +0 -19
  157. package/accordion/accordion.component.d.ts +0 -61
  158. package/accordion/accordion.theme.d.ts +0 -29
  159. package/accordion/accordion.theme.service.d.ts +0 -19
  160. package/alert/alert.component.d.ts +0 -150
  161. package/alert/alert.theme.d.ts +0 -39
  162. package/alert/alert.theme.service.d.ts +0 -19
  163. package/badge/badge.component.d.ts +0 -196
  164. package/badge/badge.theme.d.ts +0 -53
  165. package/badge/badge.theme.service.d.ts +0 -19
  166. package/base-component.directive.d.ts +0 -51
  167. package/breadcrumb/breadcrumb-item.component.d.ts +0 -84
  168. package/breadcrumb/breadcrumb-item.theme.d.ts +0 -33
  169. package/breadcrumb/breadcrumb-item.theme.service.d.ts +0 -19
  170. package/breadcrumb/breadcrumb.component.d.ts +0 -43
  171. package/breadcrumb/breadcrumb.theme.d.ts +0 -29
  172. package/breadcrumb/breadcrumb.theme.service.d.ts +0 -19
  173. package/button/button.component.d.ts +0 -250
  174. package/button/button.theme.d.ts +0 -79
  175. package/button/button.theme.service.d.ts +0 -19
  176. package/core/flowbite.theme.init.d.ts +0 -9
  177. package/core/index.d.ts +0 -1
  178. package/dark-theme-toggle/README.md +0 -4
  179. package/dark-theme-toggle/dark-theme-toggle.component.d.ts +0 -51
  180. package/dark-theme-toggle/dark-theme-toggle.theme.d.ts +0 -23
  181. package/dark-theme-toggle/dark-theme-toggle.theme.service.d.ts +0 -19
  182. package/dark-theme-toggle/index.d.ts +0 -3
  183. package/dropdown/README.md +0 -4
  184. package/dropdown/dropdown-divider.component.d.ts +0 -36
  185. package/dropdown/dropdown-divider.theme.d.ts +0 -23
  186. package/dropdown/dropdown-divider.theme.service.d.ts +0 -19
  187. package/dropdown/dropdown-header.component.d.ts +0 -42
  188. package/dropdown/dropdown-header.theme.d.ts +0 -28
  189. package/dropdown/dropdown-header.theme.service.d.ts +0 -19
  190. package/dropdown/dropdown-item.component.d.ts +0 -36
  191. package/dropdown/dropdown-item.theme.d.ts +0 -23
  192. package/dropdown/dropdown-item.theme.service.d.ts +0 -19
  193. package/dropdown/dropdown.component.d.ts +0 -136
  194. package/dropdown/dropdown.theme.d.ts +0 -56
  195. package/dropdown/dropdown.theme.service.d.ts +0 -19
  196. package/fesm2022/flowbite-angular-core.mjs +0 -322
  197. package/fesm2022/flowbite-angular-core.mjs.map +0 -1
  198. package/fesm2022/flowbite-angular-dark-theme-toggle.mjs +0 -139
  199. package/fesm2022/flowbite-angular-dark-theme-toggle.mjs.map +0 -1
  200. package/fesm2022/flowbite-angular-router-link-active.mjs +0 -68
  201. package/fesm2022/flowbite-angular-router-link-active.mjs.map +0 -1
  202. package/fesm2022/flowbite-angular-router-link.mjs +0 -73
  203. package/fesm2022/flowbite-angular-router-link.mjs.map +0 -1
  204. package/fesm2022/flowbite-angular-sanitize-html.mjs +0 -39
  205. package/fesm2022/flowbite-angular-sanitize-html.mjs.map +0 -1
  206. package/fesm2022/flowbite-angular-scroll-top.mjs +0 -193
  207. package/fesm2022/flowbite-angular-scroll-top.mjs.map +0 -1
  208. package/fesm2022/flowbite-angular-theme.mjs +0 -78
  209. package/fesm2022/flowbite-angular-theme.mjs.map +0 -1
  210. package/fesm2022/flowbite-angular-utils.mjs +0 -210
  211. package/fesm2022/flowbite-angular-utils.mjs.map +0 -1
  212. package/flowbite.theme.service.d.ts +0 -12
  213. package/icon/icon-registry.d.ts +0 -45
  214. package/icon/icon.component.d.ts +0 -22
  215. package/icon/trusted-types.d.ts +0 -15
  216. package/indicator/indicators.component.d.ts +0 -224
  217. package/indicator/indicators.theme.d.ts +0 -59
  218. package/indicator/indicators.theme.service.d.ts +0 -19
  219. package/modal/modal-body.component.d.ts +0 -36
  220. package/modal/modal-body.theme.d.ts +0 -23
  221. package/modal/modal-body.theme.service.d.ts +0 -19
  222. package/modal/modal-footer.component.d.ts +0 -36
  223. package/modal/modal-footer.theme.d.ts +0 -23
  224. package/modal/modal-footer.theme.service.d.ts +0 -19
  225. package/modal/modal-header.component.d.ts +0 -60
  226. package/modal/modal-header.theme.d.ts +0 -32
  227. package/modal/modal-header.theme.service.d.ts +0 -19
  228. package/modal/modal.component.d.ts +0 -146
  229. package/modal/modal.theme.d.ts +0 -35
  230. package/modal/modal.theme.service.d.ts +0 -19
  231. package/navbar/navbar-brand.component.d.ts +0 -36
  232. package/navbar/navbar-brand.theme.d.ts +0 -23
  233. package/navbar/navbar-brand.theme.service.d.ts +0 -19
  234. package/navbar/navbar-content.component.d.ts +0 -50
  235. package/navbar/navbar-content.theme.d.ts +0 -28
  236. package/navbar/navbar-content.theme.service.d.ts +0 -19
  237. package/navbar/navbar-icon-button.component.d.ts +0 -59
  238. package/navbar/navbar-icon-button.theme.d.ts +0 -26
  239. package/navbar/navbar-icon-button.theme.service.d.ts +0 -19
  240. package/navbar/navbar-item.component.d.ts +0 -67
  241. package/navbar/navbar-item.theme.d.ts +0 -26
  242. package/navbar/navbar-item.theme.service.d.ts +0 -19
  243. package/navbar/navbar-toggle.component.d.ts +0 -51
  244. package/navbar/navbar-toggle.theme.d.ts +0 -23
  245. package/navbar/navbar-toggle.theme.service.d.ts +0 -19
  246. package/navbar/navbar.component.d.ts +0 -121
  247. package/navbar/navbar.theme.d.ts +0 -21
  248. package/navbar/navbar.theme.service.d.ts +0 -19
  249. package/router-link/README.md +0 -4
  250. package/router-link/flowbite-router-link.directive.d.ts +0 -28
  251. package/router-link/index.d.ts +0 -1
  252. package/router-link-active/README.md +0 -4
  253. package/router-link-active/flowbite-router-link-active.directive.d.ts +0 -37
  254. package/router-link-active/index.d.ts +0 -1
  255. package/sanitize-html/README.md +0 -4
  256. package/sanitize-html/index.d.ts +0 -1
  257. package/sanitize-html/sanitize-html.pipe.d.ts +0 -20
  258. package/scroll-top/README.md +0 -4
  259. package/scroll-top/index.d.ts +0 -4
  260. package/scroll-top/scroll-top.component.d.ts +0 -114
  261. package/scroll-top/scroll-top.theme.d.ts +0 -39
  262. package/scroll-top/scroll-top.theme.service.d.ts +0 -19
  263. package/sidebar/sidebar-item-group.component.d.ts +0 -100
  264. package/sidebar/sidebar-item-group.theme.d.ts +0 -31
  265. package/sidebar/sidebar-item-group.theme.service.d.ts +0 -19
  266. package/sidebar/sidebar-item.component.d.ts +0 -101
  267. package/sidebar/sidebar-item.theme.d.ts +0 -33
  268. package/sidebar/sidebar-item.theme.service.d.ts +0 -19
  269. package/sidebar/sidebar-menu.component.d.ts +0 -93
  270. package/sidebar/sidebar-menu.theme.d.ts +0 -30
  271. package/sidebar/sidebar-menu.theme.service.d.ts +0 -19
  272. package/sidebar/sidebar-page-content.component.d.ts +0 -46
  273. package/sidebar/sidebar-page-content.theme.d.ts +0 -27
  274. package/sidebar/sidebar-page-content.theme.service.d.ts +0 -19
  275. package/sidebar/sidebar-toggle.component.d.ts +0 -95
  276. package/sidebar/sidebar-toggle.theme.d.ts +0 -34
  277. package/sidebar/sidebar-toggle.theme.service.d.ts +0 -19
  278. package/sidebar/sidebar.component.d.ts +0 -84
  279. package/sidebar/sidebar.theme.d.ts +0 -22
  280. package/sidebar/sidebar.theme.service.d.ts +0 -19
  281. package/tailwind.config.js +0 -303
  282. package/theme/README.md +0 -4
  283. package/theme/flowbite-theme.directive.d.ts +0 -36
  284. package/theme/index.d.ts +0 -1
  285. package/type-definitions/colors/flowbite.colors.d.ts +0 -19
  286. package/type-definitions/colors/flowbite.gradient-colors.d.ts +0 -11
  287. package/type-definitions/colors/flowbite.gradient-duo-tone-colors.d.ts +0 -12
  288. package/type-definitions/colors/index.d.ts +0 -3
  289. package/type-definitions/flowbite.boolean.d.ts +0 -14
  290. package/type-definitions/flowbite.class.d.ts +0 -6
  291. package/type-definitions/flowbite.combination.d.ts +0 -8
  292. package/type-definitions/flowbite.content-positions.d.ts +0 -6
  293. package/type-definitions/flowbite.deep-partial.d.ts +0 -6
  294. package/type-definitions/flowbite.heading-levels.d.ts +0 -4
  295. package/type-definitions/flowbite.positions.d.ts +0 -14
  296. package/type-definitions/flowbite.router-link-parameter.d.ts +0 -5
  297. package/type-definitions/flowbite.sizes.d.ts +0 -10
  298. package/type-definitions/flowbite.themes.d.ts +0 -4
  299. package/type-definitions/index.d.ts +0 -12
  300. package/utils/README.md +0 -4
  301. package/utils/icon.list.d.ts +0 -7
  302. package/utils/id.generator.d.ts +0 -59
  303. package/utils/index.d.ts +0 -8
  304. package/utils/theme/clone-deep.d.ts +0 -7
  305. package/utils/theme/create-class.d.ts +0 -7
  306. package/utils/theme/create-theme.d.ts +0 -7
  307. package/utils/theme/is-object.d.ts +0 -7
  308. package/utils/theme/merge-theme.d.ts +0 -8
  309. package/utils/theme/to-string.d.ts +0 -7
@@ -1,78 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, Injector, signal, afterNextRender, untracked, Directive } from '@angular/core';
3
-
4
- /**
5
- * Use to give a clean API on the current application theme
6
- */
7
- class FlowbiteThemeDirective {
8
- constructor() {
9
- this.injector = inject(Injector);
10
- this.localStorageKey = 'color-theme';
11
- this._currentTheme = signal('light');
12
- /**
13
- * Get the application theme based on `signals`
14
- */
15
- this.currentTheme = this._currentTheme.asReadonly();
16
- }
17
- ngOnInit() {
18
- afterNextRender(() => {
19
- this.toggleTheme(this.getLocalStorageTheme());
20
- }, { injector: this.injector });
21
- }
22
- /**
23
- * Get theme from the `localStorage`
24
- *
25
- * @returns The current theme saved in the `localStorage` with the key `color-theme`
26
- */
27
- getLocalStorageTheme() {
28
- return localStorage.getItem(this.localStorageKey) === 'dark' ? 'dark' : 'light';
29
- }
30
- /**
31
- * Toggle the theme saved in the `localStorage` and available in `currentTheme`
32
- *
33
- * @param theme If provided, force the theme instead of toggling it between light and dark mode
34
- */
35
- toggleTheme(theme) {
36
- if (!theme) {
37
- const tmpTheme = untracked(() => this.currentTheme());
38
- if (tmpTheme === 'dark')
39
- theme = 'light';
40
- else
41
- theme = 'dark';
42
- }
43
- this.setTheme(theme);
44
- }
45
- /**
46
- * Set the theme inside the page
47
- *
48
- * @param theme Theme to apply
49
- */
50
- setTheme(theme) {
51
- try {
52
- localStorage.setItem(this.localStorageKey, theme);
53
- }
54
- catch (error) {
55
- console.warn('Failed to save theme to localStorage:', error);
56
- }
57
- this._currentTheme.set(theme);
58
- theme === 'dark'
59
- ? document.documentElement.classList.add('dark')
60
- : document.documentElement.classList.remove('dark');
61
- }
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: FlowbiteThemeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
63
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.4", type: FlowbiteThemeDirective, isStandalone: true, selector: "[flowbiteTheme]", ngImport: i0 }); }
64
- }
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: FlowbiteThemeDirective, decorators: [{
66
- type: Directive,
67
- args: [{
68
- standalone: true,
69
- selector: '[flowbiteTheme]',
70
- }]
71
- }] });
72
-
73
- /**
74
- * Generated bundle index. Do not edit.
75
- */
76
-
77
- export { FlowbiteThemeDirective };
78
- //# sourceMappingURL=flowbite-angular-theme.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flowbite-angular-theme.mjs","sources":["../../../../libs/flowbite-angular/theme/flowbite-theme.directive.ts","../../../../libs/flowbite-angular/theme/flowbite-angular-theme.ts"],"sourcesContent":["import type { FlowbiteTheme } from 'flowbite-angular';\n\nimport type { OnInit } from '@angular/core';\nimport { afterNextRender, Directive, inject, Injector, signal, untracked } from '@angular/core';\n\n/**\n * Use to give a clean API on the current application theme\n */\n@Directive({\n standalone: true,\n selector: '[flowbiteTheme]',\n})\nexport class FlowbiteThemeDirective implements OnInit {\n private readonly injector = inject(Injector);\n\n private readonly localStorageKey = 'color-theme';\n private readonly _currentTheme = signal<FlowbiteTheme>('light');\n\n public ngOnInit(): void {\n afterNextRender(\n () => {\n this.toggleTheme(this.getLocalStorageTheme());\n },\n { injector: this.injector }\n );\n }\n\n /**\n * Get the application theme based on `signals`\n */\n public readonly currentTheme = this._currentTheme.asReadonly();\n\n /**\n * Get theme from the `localStorage`\n *\n * @returns The current theme saved in the `localStorage` with the key `color-theme`\n */\n public getLocalStorageTheme(): FlowbiteTheme {\n return localStorage.getItem(this.localStorageKey) === 'dark' ? 'dark' : 'light';\n }\n\n /**\n * Toggle the theme saved in the `localStorage` and available in `currentTheme`\n *\n * @param theme If provided, force the theme instead of toggling it between light and dark mode\n */\n public toggleTheme(theme?: FlowbiteTheme): void {\n if (!theme) {\n const tmpTheme = untracked(() => this.currentTheme());\n\n if (tmpTheme === 'dark') theme = 'light';\n else theme = 'dark';\n }\n\n this.setTheme(theme);\n }\n\n /**\n * Set the theme inside the page\n *\n * @param theme Theme to apply\n */\n public setTheme(theme: FlowbiteTheme): void {\n try {\n localStorage.setItem(this.localStorageKey, theme);\n } catch (error) {\n console.warn('Failed to save theme to localStorage:', error);\n }\n this._currentTheme.set(theme);\n\n theme === 'dark'\n ? document.documentElement.classList.add('dark')\n : document.documentElement.classList.remove('dark');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAKA;;AAEG;MAKU,sBAAsB,CAAA;AAJnC,IAAA,WAAA,GAAA;AAKmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAE3B,IAAe,CAAA,eAAA,GAAG,aAAa;AAC/B,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAgB,OAAO,CAAC;AAW/D;;AAEG;AACa,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE;AA4C/D;IAxDQ,QAAQ,GAAA;QACb,eAAe,CACb,MAAK;YACH,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC;SAC9C,EACD,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAC5B;;AAQH;;;;AAIG;IACI,oBAAoB,GAAA;AACzB,QAAA,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,MAAM,GAAG,MAAM,GAAG,OAAO;;AAGjF;;;;AAIG;AACI,IAAA,WAAW,CAAC,KAAqB,EAAA;QACtC,IAAI,CAAC,KAAK,EAAE;AACV,YAAA,MAAM,QAAQ,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;YAErD,IAAI,QAAQ,KAAK,MAAM;gBAAE,KAAK,GAAG,OAAO;;gBACnC,KAAK,GAAG,MAAM;;AAGrB,QAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;;AAGtB;;;;AAIG;AACI,IAAA,QAAQ,CAAC,KAAoB,EAAA;AAClC,QAAA,IAAI;YACF,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC;;QACjD,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,CAAC,IAAI,CAAC,uCAAuC,EAAE,KAAK,CAAC;;AAE9D,QAAA,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC;AAE7B,QAAA,KAAK,KAAK;cACN,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM;cAC7C,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;;8GA5D5C,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,iBAAiB;AAC5B,iBAAA;;;ACXD;;AAEG;;;;"}
@@ -1,210 +0,0 @@
1
- /**
2
- * Check if the provided parameter is an object or not.
3
- *
4
- * @param item The unknown type parameter.
5
- * @returns true if it's an ibject ; false otherwise.
6
- */
7
- function isObject(item) {
8
- return item !== null && typeof item === 'object' && item.constructor === Object;
9
- }
10
-
11
- /**
12
- * Function that return the cloned type of the provided generic type.
13
- *
14
- * @param source Generic object to be cloned.
15
- * @returns The clone type of th eprovided type.
16
- */
17
- function cloneDeep(source) {
18
- if (!isObject(source)) {
19
- return source;
20
- }
21
- const output = {};
22
- for (const key in source) {
23
- output[key] = cloneDeep(source[key]);
24
- }
25
- return output;
26
- }
27
-
28
- /**
29
- * This function is used to create classes for component's while keeping the intellisens up for TailwindCSS and other extensions.
30
- *
31
- * @param input Generic type to be created.
32
- * @returns The generic type's definition.
33
- */
34
- function createClass(input) {
35
- return input;
36
- }
37
-
38
- /**
39
- * This function is used to create themes for component's while keeping the intellisens up for TailwindCSS and other extensions.
40
- *
41
- * @param input Generic type to be created.
42
- * @returns The generic type's definition.
43
- */
44
- function createTheme(input) {
45
- return input;
46
- }
47
-
48
- /**
49
- * Merge two objects into one.
50
- *
51
- * @param target Object to be merged.
52
- * @param source Object to be merged.
53
- * @returns The merged object.
54
- */
55
- function mergeTheme(target, source) {
56
- if (isObject(source) && Object.keys(source).length === 0) {
57
- return cloneDeep({ ...target, ...source });
58
- }
59
- const output = { ...target, ...source };
60
- if (isObject(source) && isObject(target)) {
61
- for (const key in source) {
62
- if (isObject(source[key]) && key in target && isObject(target[key])) {
63
- output[key] = mergeTheme(target[key], source[key]);
64
- }
65
- else {
66
- output[key] = isObject(source[key])
67
- ? cloneDeep(source[key])
68
- : source[key];
69
- }
70
- }
71
- }
72
- return output;
73
- }
74
-
75
- /**
76
- * Return theme value to an indented string.
77
- *
78
- * @param value The theme to be stringify.
79
- * @returns The theme as string.
80
- */
81
- function themeToString(value) {
82
- return JSON.stringify(value, undefined, 2);
83
- }
84
-
85
- const CLOSE_SVG_ICON = `
86
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
87
- <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
88
- d="M6 18 17.94 6M18 18 6.06 6" />
89
- </svg>
90
- `;
91
- const CHEVRON_UP_SVG_ICON = `
92
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
93
- <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m16 14-4-4-4 4" />
94
- </svg>
95
- `;
96
- const CHEVRON_DOWN_SVG_ICON = `
97
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
98
- <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m8 10 4 4 4-4" />
99
- </svg>
100
- `;
101
- const CHEVRON_RIGHT_SVG_ICON = `
102
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
103
- <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m10 16 4-4-4-4" />
104
- </svg>
105
- `;
106
- const SUN_SVG_ICON = `
107
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
108
- <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
109
- d="M12 5V3m0 18v-2M7.05 7.05 5.636 5.636m12.728 12.728L16.95 16.95M5 12H3m18 0h-2M7.05 16.95l-1.414 1.414M18.364 5.636 16.95 7.05M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z" />
110
- </svg>
111
- `;
112
- const MOON_SVG_ICON = `
113
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
114
- <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
115
- d="M12 21a9 9 0 0 1-.5-17.986V3c-.354.966-.5 1.911-.5 3a9 9 0 0 0 9 9c.239 0 .254.018.488 0A9.004 9.004 0 0 1 12 21Z" />
116
- </svg>
117
- `;
118
- const BARS_SVG_ICON = `
119
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
120
- <path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5 7h14M5 12h14M5 17h14" />
121
- </svg>
122
- `;
123
-
124
- /**
125
- * This class provide an implementation of Guid used as id for flowbite-angular components.
126
- *
127
- * @see https://gist.github.com/emptyother/1fd97db034ef848f38eca3354fa9ee90
128
- */
129
- class Guid {
130
- /**
131
- * If value is given and if the value is a valid Guid, then return a Guid from the string ; Otherwise or if no value is given, create a Guid class without value.
132
- *
133
- * @param value Guid as string if you want to get a Guid type from string
134
- */
135
- constructor(value) {
136
- this.value = this.empty;
137
- if (value) {
138
- if (Guid.isValid(value)) {
139
- this.value = value;
140
- }
141
- }
142
- }
143
- /**
144
- * Function that generate new Guid.
145
- *
146
- * @returns New Guid.
147
- */
148
- static newGuid() {
149
- return new Guid(crypto.randomUUID());
150
- }
151
- /**
152
- * Function that generate an empty Guid.
153
- *
154
- * @return "00000000-0000-0000-0000-000000000000".
155
- */
156
- static get empty() {
157
- return '00000000-0000-0000-0000-000000000000';
158
- }
159
- /**
160
- * Function that generate an empty Guid.
161
- *
162
- * @return "00000000-0000-0000-0000-000000000000".
163
- */
164
- get empty() {
165
- return Guid.empty;
166
- }
167
- /**
168
- * Check if the provided Guid is valid.
169
- *
170
- * @param str The Guid to check.
171
- * @returns true if the Guid is valid ; false otherwise.
172
- */
173
- static isValid(str) {
174
- const validRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
175
- return validRegex.test(str);
176
- }
177
- /**
178
- * ToString base method.
179
- *
180
- * @returns Value as string.
181
- */
182
- toString() {
183
- return this.value;
184
- }
185
- /**
186
- * ToJson base method.
187
- *
188
- * @returns Value as Json compatible string.
189
- */
190
- toJSON() {
191
- return this.value;
192
- }
193
- }
194
- /**
195
- * Function that return a new Guid.
196
- *
197
- * @returns New {@link Guid}.
198
- *
199
- * @see `Guid`
200
- */
201
- function generateId() {
202
- return Guid.newGuid();
203
- }
204
-
205
- /**
206
- * Generated bundle index. Do not edit.
207
- */
208
-
209
- export { BARS_SVG_ICON, CHEVRON_DOWN_SVG_ICON, CHEVRON_RIGHT_SVG_ICON, CHEVRON_UP_SVG_ICON, CLOSE_SVG_ICON, Guid, MOON_SVG_ICON, SUN_SVG_ICON, cloneDeep, createClass, createTheme, generateId, isObject, mergeTheme, themeToString };
210
- //# sourceMappingURL=flowbite-angular-utils.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flowbite-angular-utils.mjs","sources":["../../../../libs/flowbite-angular/utils/theme/is-object.ts","../../../../libs/flowbite-angular/utils/theme/clone-deep.ts","../../../../libs/flowbite-angular/utils/theme/create-class.ts","../../../../libs/flowbite-angular/utils/theme/create-theme.ts","../../../../libs/flowbite-angular/utils/theme/merge-theme.ts","../../../../libs/flowbite-angular/utils/theme/to-string.ts","../../../../libs/flowbite-angular/utils/icon.list.ts","../../../../libs/flowbite-angular/utils/id.generator.ts","../../../../libs/flowbite-angular/utils/flowbite-angular-utils.ts"],"sourcesContent":["/**\n * Check if the provided parameter is an object or not.\n *\n * @param item The unknown type parameter.\n * @returns true if it's an ibject ; false otherwise.\n */\nexport function isObject(item: unknown): item is Record<string, unknown> {\n return item !== null && typeof item === 'object' && item.constructor === Object;\n}\n","import { isObject } from './is-object';\n\n/**\n * Function that return the cloned type of the provided generic type.\n *\n * @param source Generic object to be cloned.\n * @returns The clone type of th eprovided type.\n */\nexport function cloneDeep<T>(source: T): T {\n if (!isObject(source)) {\n return source;\n }\n\n const output: Record<string, unknown> = {};\n\n for (const key in source) {\n output[key] = cloneDeep(source[key]);\n }\n\n return output as T;\n}\n","/**\n * This function is used to create classes for component's while keeping the intellisens up for TailwindCSS and other extensions.\n *\n * @param input Generic type to be created.\n * @returns The generic type's definition.\n */\nexport function createClass<T>(input: T) {\n return input;\n}\n","/**\n * This function is used to create themes for component's while keeping the intellisens up for TailwindCSS and other extensions.\n *\n * @param input Generic type to be created.\n * @returns The generic type's definition.\n */\nexport function createTheme<T>(input: T) {\n return input;\n}\n","import { cloneDeep } from './clone-deep';\nimport { isObject } from './is-object';\n\n/**\n * Merge two objects into one.\n *\n * @param target Object to be merged.\n * @param source Object to be merged.\n * @returns The merged object.\n */\nexport function mergeTheme<T extends object, S extends object>(target: T, source: S): T & S {\n if (isObject(source) && Object.keys(source).length === 0) {\n return cloneDeep({ ...target, ...source });\n }\n\n const output = { ...target, ...source };\n\n if (isObject(source) && isObject(target)) {\n for (const key in source) {\n if (isObject(source[key]) && key in target && isObject(target[key])) {\n (output as Record<string, unknown>)[key] = mergeTheme(\n target[key] as object,\n source[key] as object\n );\n } else {\n (output as Record<string, unknown>)[key] = isObject(source[key])\n ? cloneDeep(source[key])\n : source[key];\n }\n }\n }\n\n return output;\n}\n","/**\n * Return theme value to an indented string.\n *\n * @param value The theme to be stringify.\n * @returns The theme as string.\n */\nexport function themeToString(value: unknown): string {\n return JSON.stringify(value, undefined, 2);\n}\n","export const CLOSE_SVG_ICON = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"\n d=\"M6 18 17.94 6M18 18 6.06 6\" />\n</svg>\n`;\n\nexport const CHEVRON_UP_SVG_ICON = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m16 14-4-4-4 4\" />\n</svg>\n`;\n\nexport const CHEVRON_DOWN_SVG_ICON = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m8 10 4 4 4-4\" />\n</svg>\n`;\n\nexport const CHEVRON_RIGHT_SVG_ICON = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m10 16 4-4-4-4\" />\n</svg>\n`;\n\nexport const SUN_SVG_ICON = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"\n d=\"M12 5V3m0 18v-2M7.05 7.05 5.636 5.636m12.728 12.728L16.95 16.95M5 12H3m18 0h-2M7.05 16.95l-1.414 1.414M18.364 5.636 16.95 7.05M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z\" />\n</svg>\n`;\n\nexport const MOON_SVG_ICON = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"\n d=\"M12 21a9 9 0 0 1-.5-17.986V3c-.354.966-.5 1.911-.5 3a9 9 0 0 0 9 9c.239 0 .254.018.488 0A9.004 9.004 0 0 1 12 21Z\" />\n</svg>\n`;\n\nexport const BARS_SVG_ICON = `\n<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\">\n <path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"2\" d=\"M5 7h14M5 12h14M5 17h14\" />\n</svg>\n`;\n","/**\n * This class provide an implementation of Guid used as id for flowbite-angular components.\n *\n * @see https://gist.github.com/emptyother/1fd97db034ef848f38eca3354fa9ee90\n */\nexport class Guid {\n private value: string = this.empty;\n\n /**\n * If value is given and if the value is a valid Guid, then return a Guid from the string ; Otherwise or if no value is given, create a Guid class without value.\n *\n * @param value Guid as string if you want to get a Guid type from string\n */\n constructor(value?: string) {\n if (value) {\n if (Guid.isValid(value)) {\n this.value = value;\n }\n }\n }\n\n /**\n * Function that generate new Guid.\n *\n * @returns New Guid.\n */\n public static newGuid(): Guid {\n return new Guid(crypto.randomUUID());\n }\n\n /**\n * Function that generate an empty Guid.\n *\n * @return \"00000000-0000-0000-0000-000000000000\".\n */\n public static get empty(): string {\n return '00000000-0000-0000-0000-000000000000';\n }\n\n /**\n * Function that generate an empty Guid.\n *\n * @return \"00000000-0000-0000-0000-000000000000\".\n */\n public get empty(): string {\n return Guid.empty;\n }\n\n /**\n * Check if the provided Guid is valid.\n *\n * @param str The Guid to check.\n * @returns true if the Guid is valid ; false otherwise.\n */\n public static isValid(str: string): boolean {\n const validRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n return validRegex.test(str);\n }\n\n /**\n * ToString base method.\n *\n * @returns Value as string.\n */\n public toString() {\n return this.value;\n }\n\n /**\n * ToJson base method.\n *\n * @returns Value as Json compatible string.\n */\n public toJSON(): string {\n return this.value;\n }\n}\n\n/**\n * Function that return a new Guid.\n *\n * @returns New {@link Guid}.\n *\n * @see `Guid`\n */\nexport function generateId(): Guid {\n return Guid.newGuid();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
@@ -1,12 +0,0 @@
1
- import type { FlowbiteClass } from './type-definitions';
2
- /**
3
- * Provide an abstract class used in theming system of flowbite-angular.
4
- */
5
- export declare abstract class FlowbiteThemeService<TProperties> {
6
- /**
7
- * This function prepare the component's classes, based on properties, used in the template of the component.
8
- *
9
- * @param properties Properties of the component being styled.
10
- */
11
- abstract getClasses(properties: TProperties): FlowbiteClass;
12
- }
@@ -1,45 +0,0 @@
1
- import type { TrustedHTML } from './trusted-types';
2
- import type { OnDestroy } from '@angular/core';
3
- import type { SafeHtml } from '@angular/platform-browser';
4
- import { type SafeResourceUrl } from '@angular/platform-browser';
5
- import { type Observable } from 'rxjs';
6
- import * as i0 from "@angular/core";
7
- export declare function getSvgIconFromNamedError(iconName: string): Error;
8
- export declare function getSvgIconFailedToSanitizeRawError(raw: SafeHtml): Error;
9
- export declare function getSvgIconFailedToSanitizeUrlError(url: SafeResourceUrl): Error;
10
- export declare function getSvgIconNoHttpClientProvidedError(): Error;
11
- export interface SvgIconOptions {
12
- viewBox: string;
13
- }
14
- export declare class SvgIconConfig {
15
- url: SafeResourceUrl;
16
- svgText: TrustedHTML | undefined;
17
- options?: SvgIconOptions | undefined;
18
- svgElement: SVGElement | null;
19
- constructor(url: SafeResourceUrl, svgText: TrustedHTML | undefined, options?: SvgIconOptions | undefined);
20
- }
21
- export declare class IconRegistry implements OnDestroy {
22
- private platformId;
23
- private _httpClient;
24
- private _sanitizer;
25
- private _document;
26
- private _svgIconConfig;
27
- private _cachedSvgIconByUrl;
28
- private _inProgressSvgIconFetch;
29
- addSvgIcon(iconName: string, url: SafeResourceUrl, options?: SvgIconOptions): this;
30
- addRawSvgIcon(iconName: string, raw: SafeHtml, options?: SvgIconOptions): this;
31
- addSvgIconInNamespace(namespace: string, iconName: string, url: SafeResourceUrl, options?: SvgIconOptions): this;
32
- addRawSvgIconInNamepsace(namespace: string, iconName: string, raw: SafeHtml, options?: SvgIconOptions): this;
33
- getSvgIconFromUrl(safeUrl: SafeResourceUrl): Observable<SVGElement>;
34
- getSvgIconFromName(iconName: string, namespace: string): Observable<SVGElement>;
35
- ngOnDestroy(): void;
36
- private _addSvgIconConfig;
37
- private _getSvgIconFromConfig;
38
- private _loadSvgIconFromConfig;
39
- private _setSvgAttributes;
40
- private _svgElementFromConfig;
41
- private _svgElementFromString;
42
- private _fetchIcon;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<IconRegistry, never>;
44
- static ɵprov: i0.ɵɵInjectableDeclaration<IconRegistry>;
45
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * Thanks to Angular Material for Icon part of this library : https://github.com/angular/components
3
- */
4
- import { IconRegistry } from './icon-registry';
5
- import type { FlowbiteClass } from 'flowbite-angular';
6
- import { BaseComponent } from 'flowbite-angular';
7
- import type { OnInit } from '@angular/core';
8
- import { ElementRef } from '@angular/core';
9
- import * as i0 from "@angular/core";
10
- export declare class IconComponent extends BaseComponent<FlowbiteClass> implements OnInit {
11
- _elementRef: ElementRef<HTMLElement>;
12
- _iconRegistry: IconRegistry;
13
- svgIcon: import("@angular/core").ModelSignal<string>;
14
- init(): void;
15
- fetchClass(): FlowbiteClass;
16
- private _splitIconName;
17
- private _updateSvgIcon;
18
- private _setSvgElement;
19
- private _clearSvgElements;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "flowbite-icon", never, { "svgIcon": { "alias": "svgIcon"; "required": true; "isSignal": true; }; }, { "svgIcon": "svgIconChange"; }, never, ["*"], true, never>;
22
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * Thanks to Angular Material for Icon part of this library : https://github.com/angular/components
3
- */
4
- export declare interface TrustedHTML {
5
- __brand__: 'TrustedHTML';
6
- }
7
- export declare interface TrustedTypePolicyFactory {
8
- createPolicy(policyName: string, policyOptions: {
9
- createHTML?: (input: string) => string;
10
- }): TrustedTypePolicy;
11
- }
12
- export declare interface TrustedTypePolicy {
13
- createHTML(input: string): TrustedHTML;
14
- }
15
- export declare function trustedHTMLFromString(raw: string): TrustedHTML;
@@ -1,224 +0,0 @@
1
- import type { indicatorClass, IndicatorColors, IndicatorPositions, IndicatorSizes } from './indicators.theme';
2
- import { IndicatorThemeService } from './indicators.theme.service';
3
- import { BaseComponent } from 'flowbite-angular';
4
- import { InjectionToken } from '@angular/core';
5
- import * as i0 from "@angular/core";
6
- export declare const FLOWBITE_INDICATOR_IS_PILL_DEFAULT_VALUE: InjectionToken<boolean>;
7
- export declare const FLOWBITE_INDICATOR_IS_OUTLINE_DEFAULT_VALUE: InjectionToken<boolean>;
8
- export declare const FLOWBITE_INDICATOR_IS_DISABLED_DEFAULT_VALUE: InjectionToken<boolean>;
9
- export declare const FLOWBITE_INDICATOR_HAS_OFFSET_DEFAULT_VALUE: InjectionToken<boolean>;
10
- export declare const FLOWBITE_INDICATOR_IS_ROUNDED_DEFAULT_VALUE: InjectionToken<boolean>;
11
- export declare const FLOWBITE_INDICATOR_HAS_BORDER_DEFAULT_VALUE: InjectionToken<boolean>;
12
- export declare const FLOWBITE_INDICATOR_COLOR_DEFAULT_VALUE: InjectionToken<keyof IndicatorColors>;
13
- export declare const FLOWBITE_INDICATOR_SIZE_DEFAULT_VALUE: InjectionToken<keyof IndicatorSizes>;
14
- export declare const FLOWBITE_INDICATOR_PLACEMENT_DEFAULT_VALUE: InjectionToken<keyof IndicatorPositions | undefined>;
15
- export declare const FLOWBITE_INDICATOR_CUSTOM_STYLE_DEFAULT_VALUE: InjectionToken<{
16
- root?: {
17
- base?: string | undefined;
18
- isPill?: {
19
- enabled?: string | undefined;
20
- disabled?: string | undefined;
21
- } | undefined;
22
- isOutline?: {
23
- enabled?: string | undefined;
24
- disabled?: string | undefined;
25
- } | undefined;
26
- isDisabled?: {
27
- enabled?: string | undefined;
28
- disabled?: string | undefined;
29
- } | undefined;
30
- hasOffset?: {
31
- [x: string]: string | undefined;
32
- 'top-left'?: string | undefined;
33
- 'top-center'?: string | undefined;
34
- 'top-right'?: string | undefined;
35
- 'center-left'?: string | undefined;
36
- center?: string | undefined;
37
- 'center-right'?: string | undefined;
38
- 'bottom-left'?: string | undefined;
39
- 'bottom-center'?: string | undefined;
40
- 'bottom-right'?: string | undefined;
41
- } | undefined;
42
- isRounded?: {
43
- enabled?: string | undefined;
44
- disabled?: string | undefined;
45
- } | undefined;
46
- hasBorder?: {
47
- enabled?: string | undefined;
48
- disabled?: string | undefined;
49
- } | undefined;
50
- color?: {
51
- [x: string]: string | undefined;
52
- primary?: string | undefined;
53
- dark?: string | undefined;
54
- gray?: string | undefined;
55
- blue?: string | undefined;
56
- green?: string | undefined;
57
- red?: string | undefined;
58
- purple?: string | undefined;
59
- indigo?: string | undefined;
60
- yellow?: string | undefined;
61
- teal?: string | undefined;
62
- } | undefined;
63
- size?: {
64
- [x: string]: string | undefined;
65
- xs?: string | undefined;
66
- sm?: string | undefined;
67
- md?: string | undefined;
68
- lg?: string | undefined;
69
- xl?: string | undefined;
70
- } | undefined;
71
- placement?: {
72
- [x: string]: string | undefined;
73
- 'top-left'?: string | undefined;
74
- 'top-center'?: string | undefined;
75
- 'top-right'?: string | undefined;
76
- 'center-left'?: string | undefined;
77
- center?: string | undefined;
78
- 'center-right'?: string | undefined;
79
- 'bottom-left'?: string | undefined;
80
- 'bottom-center'?: string | undefined;
81
- 'bottom-right'?: string | undefined;
82
- } | undefined;
83
- } | undefined;
84
- }>;
85
- export declare const indicatorDefaultValueProvider: import("@angular/core").EnvironmentProviders;
86
- /**
87
- * @see https://flowbite.com/docs/components/indicators/
88
- */
89
- export declare class IndicatorComponent extends BaseComponent<indicatorClass> {
90
- /**
91
- * Service injected used to generate class
92
- */
93
- readonly themeService: IndicatorThemeService;
94
- /**
95
- * Set if the indicator is pill
96
- *
97
- * @default false
98
- */
99
- isPill: import("@angular/core").ModelSignal<boolean>;
100
- /**
101
- * Set if the indicator is outline
102
- *
103
- * @default false
104
- */
105
- isOutline: import("@angular/core").ModelSignal<boolean>;
106
- /**
107
- * Set if the indicator is disable
108
- *
109
- * @default false
110
- */
111
- isDisabled: import("@angular/core").ModelSignal<boolean>;
112
- /**
113
- * Set if the indicator has offset
114
- *
115
- * @default false
116
- */
117
- hasOffset: import("@angular/core").ModelSignal<boolean>;
118
- /**
119
- * Set if the indicator is rounded
120
- *
121
- * @default false
122
- */
123
- isRounded: import("@angular/core").ModelSignal<boolean>;
124
- /**
125
- * Set if the indicator has border
126
- *
127
- * @default false
128
- */
129
- hasBorder: import("@angular/core").ModelSignal<boolean>;
130
- /**
131
- * Set the indicator color
132
- *
133
- * @default primary
134
- */
135
- color: import("@angular/core").ModelSignal<keyof IndicatorColors>;
136
- /**
137
- * Set the indicator size
138
- *
139
- * @default md
140
- */
141
- size: import("@angular/core").ModelSignal<keyof IndicatorSizes>;
142
- /**
143
- * Set the indicator placement
144
- *
145
- * @default undefined
146
- */
147
- placement: import("@angular/core").ModelSignal<keyof IndicatorPositions | undefined>;
148
- /**
149
- * Set the custom style for this indicator
150
- */
151
- customStyle: import("@angular/core").ModelSignal<{
152
- root?: {
153
- base?: string | undefined;
154
- isPill?: {
155
- enabled?: string | undefined;
156
- disabled?: string | undefined;
157
- } | undefined;
158
- isOutline?: {
159
- enabled?: string | undefined;
160
- disabled?: string | undefined;
161
- } | undefined;
162
- isDisabled?: {
163
- enabled?: string | undefined;
164
- disabled?: string | undefined;
165
- } | undefined;
166
- hasOffset?: {
167
- [x: string]: string | undefined;
168
- 'top-left'?: string | undefined;
169
- 'top-center'?: string | undefined;
170
- 'top-right'?: string | undefined;
171
- 'center-left'?: string | undefined;
172
- center?: string | undefined;
173
- 'center-right'?: string | undefined;
174
- 'bottom-left'?: string | undefined;
175
- 'bottom-center'?: string | undefined;
176
- 'bottom-right'?: string | undefined;
177
- } | undefined;
178
- isRounded?: {
179
- enabled?: string | undefined;
180
- disabled?: string | undefined;
181
- } | undefined;
182
- hasBorder?: {
183
- enabled?: string | undefined;
184
- disabled?: string | undefined;
185
- } | undefined;
186
- color?: {
187
- [x: string]: string | undefined;
188
- primary?: string | undefined;
189
- dark?: string | undefined;
190
- gray?: string | undefined;
191
- blue?: string | undefined;
192
- green?: string | undefined;
193
- red?: string | undefined;
194
- purple?: string | undefined;
195
- indigo?: string | undefined;
196
- yellow?: string | undefined;
197
- teal?: string | undefined;
198
- } | undefined;
199
- size?: {
200
- [x: string]: string | undefined;
201
- xs?: string | undefined;
202
- sm?: string | undefined;
203
- md?: string | undefined;
204
- lg?: string | undefined;
205
- xl?: string | undefined;
206
- } | undefined;
207
- placement?: {
208
- [x: string]: string | undefined;
209
- 'top-left'?: string | undefined;
210
- 'top-center'?: string | undefined;
211
- 'top-right'?: string | undefined;
212
- 'center-left'?: string | undefined;
213
- center?: string | undefined;
214
- 'center-right'?: string | undefined;
215
- 'bottom-left'?: string | undefined;
216
- 'bottom-center'?: string | undefined;
217
- 'bottom-right'?: string | undefined;
218
- } | undefined;
219
- } | undefined;
220
- }>;
221
- fetchClass(): indicatorClass;
222
- static ɵfac: i0.ɵɵFactoryDeclaration<IndicatorComponent, never>;
223
- static ɵcmp: i0.ɵɵComponentDeclaration<IndicatorComponent, "flowbite-indicator", never, { "isPill": { "alias": "isPill"; "required": false; "isSignal": true; }; "isOutline": { "alias": "isOutline"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "hasOffset": { "alias": "hasOffset"; "required": false; "isSignal": true; }; "isRounded": { "alias": "isRounded"; "required": false; "isSignal": true; }; "hasBorder": { "alias": "hasBorder"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "customStyle": { "alias": "customStyle"; "required": false; "isSignal": true; }; }, { "isPill": "isPillChange"; "isOutline": "isOutlineChange"; "isDisabled": "isDisabledChange"; "hasOffset": "hasOffsetChange"; "isRounded": "isRoundedChange"; "hasBorder": "hasBorderChange"; "color": "colorChange"; "size": "sizeChange"; "placement": "placementChange"; "customStyle": "customStyleChange"; }, never, ["*"], true, never>;
224
- }