flowbite-angular 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/accordion/accordion-title.component.d.ts +9 -2
  2. package/fesm2022/flowbite-angular-accordion.mjs +54 -35
  3. package/fesm2022/flowbite-angular-accordion.mjs.map +1 -1
  4. package/fesm2022/flowbite-angular-alert.mjs +6 -7
  5. package/fesm2022/flowbite-angular-alert.mjs.map +1 -1
  6. package/fesm2022/flowbite-angular-badge.mjs +6 -6
  7. package/fesm2022/flowbite-angular-badge.mjs.map +1 -1
  8. package/fesm2022/flowbite-angular-breadcrumb.mjs +12 -13
  9. package/fesm2022/flowbite-angular-breadcrumb.mjs.map +1 -1
  10. package/fesm2022/flowbite-angular-button.mjs +6 -7
  11. package/fesm2022/flowbite-angular-button.mjs.map +1 -1
  12. package/fesm2022/flowbite-angular-core.mjs.map +1 -1
  13. package/fesm2022/flowbite-angular-dark-theme-toggle.mjs +6 -7
  14. package/fesm2022/flowbite-angular-dark-theme-toggle.mjs.map +1 -1
  15. package/fesm2022/flowbite-angular-dropdown.mjs +24 -25
  16. package/fesm2022/flowbite-angular-dropdown.mjs.map +1 -1
  17. package/fesm2022/flowbite-angular-icon.mjs +6 -6
  18. package/fesm2022/flowbite-angular-icon.mjs.map +1 -1
  19. package/fesm2022/flowbite-angular-indicator.mjs +6 -6
  20. package/fesm2022/flowbite-angular-indicator.mjs.map +1 -1
  21. package/fesm2022/flowbite-angular-modal.mjs +24 -25
  22. package/fesm2022/flowbite-angular-modal.mjs.map +1 -1
  23. package/fesm2022/flowbite-angular-navbar.mjs +37 -38
  24. package/fesm2022/flowbite-angular-navbar.mjs.map +1 -1
  25. package/fesm2022/flowbite-angular-router-link-active.mjs +3 -3
  26. package/fesm2022/flowbite-angular-router-link-active.mjs.map +1 -1
  27. package/fesm2022/flowbite-angular-router-link.mjs +3 -3
  28. package/fesm2022/flowbite-angular-router-link.mjs.map +1 -1
  29. package/fesm2022/flowbite-angular-sanitize-html.mjs +3 -3
  30. package/fesm2022/flowbite-angular-sanitize-html.mjs.map +1 -1
  31. package/fesm2022/flowbite-angular-scroll-top.mjs +38 -13
  32. package/fesm2022/flowbite-angular-scroll-top.mjs.map +1 -1
  33. package/fesm2022/flowbite-angular-sidebar.mjs +36 -39
  34. package/fesm2022/flowbite-angular-sidebar.mjs.map +1 -1
  35. package/fesm2022/flowbite-angular-theme.mjs +3 -3
  36. package/fesm2022/flowbite-angular-theme.mjs.map +1 -1
  37. package/fesm2022/flowbite-angular-utils.mjs.map +1 -1
  38. package/fesm2022/flowbite-angular.mjs +3 -3
  39. package/fesm2022/flowbite-angular.mjs.map +1 -1
  40. package/package.json +12 -45
  41. package/scroll-top/scroll-top.component.d.ts +11 -2
  42. package/esm2022/accordion/accordion-content.component.mjs +0 -78
  43. package/esm2022/accordion/accordion-content.theme.mjs +0 -22
  44. package/esm2022/accordion/accordion-content.theme.service.mjs +0 -34
  45. package/esm2022/accordion/accordion-panel.component.mjs +0 -95
  46. package/esm2022/accordion/accordion-panel.theme.mjs +0 -10
  47. package/esm2022/accordion/accordion-panel.theme.service.mjs +0 -34
  48. package/esm2022/accordion/accordion-title.component.mjs +0 -103
  49. package/esm2022/accordion/accordion-title.theme.mjs +0 -29
  50. package/esm2022/accordion/accordion-title.theme.service.mjs +0 -35
  51. package/esm2022/accordion/accordion.component.mjs +0 -93
  52. package/esm2022/accordion/accordion.theme.mjs +0 -10
  53. package/esm2022/accordion/accordion.theme.service.mjs +0 -34
  54. package/esm2022/accordion/flowbite-angular-accordion.mjs +0 -5
  55. package/esm2022/accordion/index.mjs +0 -13
  56. package/esm2022/alert/alert.component.mjs +0 -209
  57. package/esm2022/alert/alert.theme.mjs +0 -37
  58. package/esm2022/alert/alert.theme.service.mjs +0 -35
  59. package/esm2022/alert/flowbite-angular-alert.mjs +0 -5
  60. package/esm2022/alert/index.mjs +0 -4
  61. package/esm2022/badge/badge.component.mjs +0 -102
  62. package/esm2022/badge/badge.theme.mjs +0 -37
  63. package/esm2022/badge/badge.theme.service.mjs +0 -36
  64. package/esm2022/badge/flowbite-angular-badge.mjs +0 -5
  65. package/esm2022/badge/index.mjs +0 -4
  66. package/esm2022/base-component.directive.mjs +0 -64
  67. package/esm2022/breadcrumb/breadcrumb-item.component.mjs +0 -91
  68. package/esm2022/breadcrumb/breadcrumb-item.theme.mjs +0 -21
  69. package/esm2022/breadcrumb/breadcrumb-item.theme.service.mjs +0 -35
  70. package/esm2022/breadcrumb/breadcrumb.component.mjs +0 -67
  71. package/esm2022/breadcrumb/breadcrumb.theme.mjs +0 -10
  72. package/esm2022/breadcrumb/breadcrumb.theme.service.mjs +0 -34
  73. package/esm2022/breadcrumb/flowbite-angular-breadcrumb.mjs +0 -5
  74. package/esm2022/breadcrumb/index.mjs +0 -7
  75. package/esm2022/button/button.component.mjs +0 -161
  76. package/esm2022/button/button.theme.mjs +0 -116
  77. package/esm2022/button/button.theme.service.mjs +0 -41
  78. package/esm2022/button/flowbite-angular-button.mjs +0 -5
  79. package/esm2022/button/index.mjs +0 -4
  80. package/esm2022/core/flowbite-angular-core.mjs +0 -5
  81. package/esm2022/core/flowbite.theme.init.mjs +0 -315
  82. package/esm2022/core/index.mjs +0 -2
  83. package/esm2022/dark-theme-toggle/dark-theme-toggle.component.mjs +0 -93
  84. package/esm2022/dark-theme-toggle/dark-theme-toggle.theme.mjs +0 -10
  85. package/esm2022/dark-theme-toggle/dark-theme-toggle.theme.service.mjs +0 -34
  86. package/esm2022/dark-theme-toggle/flowbite-angular-dark-theme-toggle.mjs +0 -5
  87. package/esm2022/dark-theme-toggle/index.mjs +0 -4
  88. package/esm2022/dropdown/dropdown-divider.component.mjs +0 -53
  89. package/esm2022/dropdown/dropdown-divider.theme.mjs +0 -10
  90. package/esm2022/dropdown/dropdown-divider.theme.service.mjs +0 -34
  91. package/esm2022/dropdown/dropdown-header.component.mjs +0 -61
  92. package/esm2022/dropdown/dropdown-header.theme.mjs +0 -13
  93. package/esm2022/dropdown/dropdown-header.theme.service.mjs +0 -35
  94. package/esm2022/dropdown/dropdown-item.component.mjs +0 -53
  95. package/esm2022/dropdown/dropdown-item.theme.mjs +0 -9
  96. package/esm2022/dropdown/dropdown-item.theme.service.mjs +0 -34
  97. package/esm2022/dropdown/dropdown.component.mjs +0 -182
  98. package/esm2022/dropdown/dropdown.theme.mjs +0 -35
  99. package/esm2022/dropdown/dropdown.theme.service.mjs +0 -39
  100. package/esm2022/dropdown/flowbite-angular-dropdown.mjs +0 -5
  101. package/esm2022/dropdown/index.mjs +0 -13
  102. package/esm2022/flowbite-angular.mjs +0 -5
  103. package/esm2022/flowbite.theme.service.mjs +0 -6
  104. package/esm2022/icon/flowbite-angular-icon.mjs +0 -5
  105. package/esm2022/icon/icon-registry.mjs +0 -159
  106. package/esm2022/icon/icon.component.mjs +0 -72
  107. package/esm2022/icon/index.mjs +0 -4
  108. package/esm2022/icon/trusted-types.mjs +0 -21
  109. package/esm2022/index.mjs +0 -4
  110. package/esm2022/indicator/flowbite-angular-indicator.mjs +0 -5
  111. package/esm2022/indicator/index.mjs +0 -4
  112. package/esm2022/indicator/indicators.component.mjs +0 -156
  113. package/esm2022/indicator/indicators.theme.mjs +0 -71
  114. package/esm2022/indicator/indicators.theme.service.mjs +0 -36
  115. package/esm2022/modal/flowbite-angular-modal.mjs +0 -5
  116. package/esm2022/modal/index.mjs +0 -13
  117. package/esm2022/modal/modal-body.component.mjs +0 -53
  118. package/esm2022/modal/modal-body.theme.mjs +0 -10
  119. package/esm2022/modal/modal-body.theme.service.mjs +0 -34
  120. package/esm2022/modal/modal-footer.component.mjs +0 -53
  121. package/esm2022/modal/modal-footer.theme.mjs +0 -10
  122. package/esm2022/modal/modal-footer.theme.service.mjs +0 -34
  123. package/esm2022/modal/modal-header.component.mjs +0 -96
  124. package/esm2022/modal/modal-header.theme.mjs +0 -16
  125. package/esm2022/modal/modal-header.theme.service.mjs +0 -36
  126. package/esm2022/modal/modal.component.mjs +0 -201
  127. package/esm2022/modal/modal.theme.mjs +0 -33
  128. package/esm2022/modal/modal.theme.service.mjs +0 -37
  129. package/esm2022/navbar/flowbite-angular-navbar.mjs +0 -5
  130. package/esm2022/navbar/index.mjs +0 -19
  131. package/esm2022/navbar/navbar-brand.component.mjs +0 -53
  132. package/esm2022/navbar/navbar-brand.theme.mjs +0 -10
  133. package/esm2022/navbar/navbar-brand.theme.service.mjs +0 -34
  134. package/esm2022/navbar/navbar-content.component.mjs +0 -84
  135. package/esm2022/navbar/navbar-content.theme.mjs +0 -13
  136. package/esm2022/navbar/navbar-content.theme.service.mjs +0 -35
  137. package/esm2022/navbar/navbar-icon-button.component.mjs +0 -66
  138. package/esm2022/navbar/navbar-icon-button.theme.mjs +0 -18
  139. package/esm2022/navbar/navbar-icon-button.theme.service.mjs +0 -34
  140. package/esm2022/navbar/navbar-item.component.mjs +0 -82
  141. package/esm2022/navbar/navbar-item.theme.mjs +0 -14
  142. package/esm2022/navbar/navbar-item.theme.service.mjs +0 -34
  143. package/esm2022/navbar/navbar-toggle.component.mjs +0 -87
  144. package/esm2022/navbar/navbar-toggle.theme.mjs +0 -10
  145. package/esm2022/navbar/navbar-toggle.theme.service.mjs +0 -34
  146. package/esm2022/navbar/navbar.component.mjs +0 -133
  147. package/esm2022/navbar/navbar.theme.mjs +0 -23
  148. package/esm2022/navbar/navbar.theme.service.mjs +0 -34
  149. package/esm2022/router-link/flowbite-angular-router-link.mjs +0 -5
  150. package/esm2022/router-link/flowbite-router-link.directive.mjs +0 -66
  151. package/esm2022/router-link/index.mjs +0 -2
  152. package/esm2022/router-link-active/flowbite-angular-router-link-active.mjs +0 -5
  153. package/esm2022/router-link-active/flowbite-router-link-active.directive.mjs +0 -61
  154. package/esm2022/router-link-active/index.mjs +0 -2
  155. package/esm2022/sanitize-html/flowbite-angular-sanitize-html.mjs +0 -5
  156. package/esm2022/sanitize-html/index.mjs +0 -2
  157. package/esm2022/sanitize-html/sanitize-html.pipe.mjs +0 -32
  158. package/esm2022/scroll-top/flowbite-angular-scroll-top.mjs +0 -5
  159. package/esm2022/scroll-top/index.mjs +0 -4
  160. package/esm2022/scroll-top/scroll-top.component.mjs +0 -101
  161. package/esm2022/scroll-top/scroll-top.theme.mjs +0 -30
  162. package/esm2022/scroll-top/scroll-top.theme.service.mjs +0 -34
  163. package/esm2022/sidebar/flowbite-angular-sidebar.mjs +0 -5
  164. package/esm2022/sidebar/index.mjs +0 -19
  165. package/esm2022/sidebar/sidebar-item-group.component.mjs +0 -129
  166. package/esm2022/sidebar/sidebar-item-group.theme.mjs +0 -21
  167. package/esm2022/sidebar/sidebar-item-group.theme.service.mjs +0 -35
  168. package/esm2022/sidebar/sidebar-item.component.mjs +0 -146
  169. package/esm2022/sidebar/sidebar-item.theme.mjs +0 -21
  170. package/esm2022/sidebar/sidebar-item.theme.service.mjs +0 -35
  171. package/esm2022/sidebar/sidebar-menu.component.mjs +0 -77
  172. package/esm2022/sidebar/sidebar-menu.theme.mjs +0 -27
  173. package/esm2022/sidebar/sidebar-menu.theme.service.mjs +0 -34
  174. package/esm2022/sidebar/sidebar-page-content.component.mjs +0 -55
  175. package/esm2022/sidebar/sidebar-page-content.theme.mjs +0 -15
  176. package/esm2022/sidebar/sidebar-page-content.theme.service.mjs +0 -34
  177. package/esm2022/sidebar/sidebar-toggle.component.mjs +0 -105
  178. package/esm2022/sidebar/sidebar-toggle.theme.mjs +0 -21
  179. package/esm2022/sidebar/sidebar-toggle.theme.service.mjs +0 -34
  180. package/esm2022/sidebar/sidebar.component.mjs +0 -116
  181. package/esm2022/sidebar/sidebar.theme.mjs +0 -11
  182. package/esm2022/sidebar/sidebar.theme.service.mjs +0 -34
  183. package/esm2022/theme/flowbite-angular-theme.mjs +0 -5
  184. package/esm2022/theme/flowbite-theme.directive.mjs +0 -71
  185. package/esm2022/theme/index.mjs +0 -2
  186. package/esm2022/type-definitions/colors/flowbite.colors.mjs +0 -2
  187. package/esm2022/type-definitions/colors/flowbite.gradient-colors.mjs +0 -2
  188. package/esm2022/type-definitions/colors/flowbite.gradient-duo-tone-colors.mjs +0 -2
  189. package/esm2022/type-definitions/colors/index.mjs +0 -2
  190. package/esm2022/type-definitions/flowbite.boolean.mjs +0 -10
  191. package/esm2022/type-definitions/flowbite.class.mjs +0 -2
  192. package/esm2022/type-definitions/flowbite.combination.mjs +0 -5
  193. package/esm2022/type-definitions/flowbite.content-positions.mjs +0 -2
  194. package/esm2022/type-definitions/flowbite.deep-partial.mjs +0 -2
  195. package/esm2022/type-definitions/flowbite.heading-levels.mjs +0 -2
  196. package/esm2022/type-definitions/flowbite.positions.mjs +0 -2
  197. package/esm2022/type-definitions/flowbite.router-link-parameter.mjs +0 -2
  198. package/esm2022/type-definitions/flowbite.sizes.mjs +0 -2
  199. package/esm2022/type-definitions/flowbite.themes.mjs +0 -2
  200. package/esm2022/type-definitions/index.mjs +0 -3
  201. package/esm2022/utils/flowbite-angular-utils.mjs +0 -5
  202. package/esm2022/utils/icon.list.mjs +0 -39
  203. package/esm2022/utils/id.generator.mjs +0 -81
  204. package/esm2022/utils/index.mjs +0 -9
  205. package/esm2022/utils/theme/clone-deep.mjs +0 -18
  206. package/esm2022/utils/theme/create-class.mjs +0 -10
  207. package/esm2022/utils/theme/create-theme.mjs +0 -10
  208. package/esm2022/utils/theme/is-object.mjs +0 -10
  209. package/esm2022/utils/theme/merge-theme.mjs +0 -29
  210. package/esm2022/utils/theme/to-string.mjs +0 -10
@@ -4,6 +4,7 @@ import { InjectionToken, inject, Injectable, makeEnvironmentProviders, model, Co
4
4
  import { twMerge } from 'tailwind-merge';
5
5
  import { BaseComponent } from 'flowbite-angular';
6
6
  import { IconRegistry, IconComponent } from 'flowbite-angular/icon';
7
+ import { NgTemplateOutlet } from '@angular/common';
7
8
  import { DomSanitizer } from '@angular/platform-browser';
8
9
 
9
10
  /**
@@ -26,10 +27,10 @@ class ScrollTopThemeService {
26
27
  };
27
28
  return output;
28
29
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: ScrollTopThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
30
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: ScrollTopThemeService, providedIn: 'root' }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: ScrollTopThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
31
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: ScrollTopThemeService, providedIn: 'root' }); }
31
32
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: ScrollTopThemeService, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: ScrollTopThemeService, decorators: [{
33
34
  type: Injectable,
34
35
  args: [{
35
36
  providedIn: 'root',
@@ -38,6 +39,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImpor
38
39
 
39
40
  const FLOWBITE_SCROLL_TOP_COLOR_DEFAULT_VALUE = new InjectionToken('FLOWBITE_SCROLL_TOP_COLOR_DEFAULT_VALUE');
40
41
  const FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE = new InjectionToken('FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE');
42
+ const FLOWBITE_SCROLL_TOP_ICON_DEFAULT_VALUE = new InjectionToken('FLOWBITE_SCROLL_TOP_ICON_DEFAULT_VALUE');
41
43
  const FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE = new InjectionToken('FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE');
42
44
  const scrollTopDefaultValueProvider = makeEnvironmentProviders([
43
45
  {
@@ -48,6 +50,10 @@ const scrollTopDefaultValueProvider = makeEnvironmentProviders([
48
50
  provide: FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE,
49
51
  useValue: 'bottom-right',
50
52
  },
53
+ {
54
+ provide: FLOWBITE_SCROLL_TOP_ICON_DEFAULT_VALUE,
55
+ useValue: undefined,
56
+ },
51
57
  {
52
58
  provide: FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE,
53
59
  useValue: {},
@@ -84,8 +90,16 @@ class ScrollTopComponent extends BaseComponent {
84
90
  * @default bottom-right
85
91
  */
86
92
  this.position = model(inject(FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE));
93
+ /**
94
+ * Set the scroll top icon
95
+ *
96
+ * @default undefined
97
+ */
98
+ this.icon = model(inject(FLOWBITE_SCROLL_TOP_ICON_DEFAULT_VALUE));
87
99
  /**
88
100
  * Set the custom style for this scroll top
101
+ *
102
+ * @default {}
89
103
  */
90
104
  this.customStyle = model(inject(FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE));
91
105
  }
@@ -108,20 +122,31 @@ class ScrollTopComponent extends BaseComponent {
108
122
  onClick() {
109
123
  window.scrollTo(window.scrollX, 0);
110
124
  }
111
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: ScrollTopComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
112
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: ScrollTopComponent, isStandalone: true, selector: "flowbite-scroll-top", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { color: "colorChange", position: "positionChange", customStyle: "customStyleChange" }, host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0, template: `<flowbite-icon
113
- svgIcon="flowbite-angular:chevron-up"
114
- class="w-5 h-5" />`, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "flowbite-icon", inputs: ["svgIcon"], outputs: ["svgIconChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
125
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: ScrollTopComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
126
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.4", type: ScrollTopComponent, isStandalone: true, selector: "flowbite-scroll-top", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { color: "colorChange", position: "positionChange", icon: "iconChange", customStyle: "customStyleChange" }, host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0, template: `
127
+ @if (icon()) {
128
+ <ng-container [ngTemplateOutlet]="icon()!" />
129
+ } @else {
130
+ <flowbite-icon
131
+ svgIcon="flowbite-angular:chevron-up"
132
+ class="w-5 h-5" />
133
+ }
134
+ `, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "flowbite-icon", inputs: ["svgIcon"], outputs: ["svgIconChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
115
135
  }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: ScrollTopComponent, decorators: [{
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: ScrollTopComponent, decorators: [{
117
137
  type: Component,
118
138
  args: [{
119
139
  selector: 'flowbite-scroll-top',
120
- standalone: true,
121
- imports: [IconComponent],
122
- template: `<flowbite-icon
123
- svgIcon="flowbite-angular:chevron-up"
124
- class="w-5 h-5" />`,
140
+ imports: [IconComponent, NgTemplateOutlet],
141
+ template: `
142
+ @if (icon()) {
143
+ <ng-container [ngTemplateOutlet]="icon()!" />
144
+ } @else {
145
+ <flowbite-icon
146
+ svgIcon="flowbite-angular:chevron-up"
147
+ class="w-5 h-5" />
148
+ }
149
+ `,
125
150
  host: {
126
151
  '(click)': 'onClick()',
127
152
  },
@@ -1 +1 @@
1
- {"version":3,"file":"flowbite-angular-scroll-top.mjs","sources":["../../../../libs/flowbite-angular/scroll-top/scroll-top.theme.service.ts","../../../../libs/flowbite-angular/scroll-top/scroll-top.component.ts","../../../../libs/flowbite-angular/scroll-top/scroll-top.theme.ts","../../../../libs/flowbite-angular/scroll-top/flowbite-angular-scroll-top.ts"],"sourcesContent":["import type { ScrollTopClass, ScrollTopProperties, ScrollTopTheme } from './scroll-top.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `ScrollTopTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_SCROLL_TOP_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_SCROLL_TOP_THEME_TOKEN = new InjectionToken<ScrollTopTheme>(\n 'FLOWBITE_SCROLL_TOP_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ScrollTopThemeService implements FlowbiteThemeService<ScrollTopProperties> {\n private readonly baseTheme = inject(FLOWBITE_SCROLL_TOP_THEME_TOKEN);\n\n public getClasses(properties: ScrollTopProperties): ScrollTopClass {\n const theme: ScrollTopTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: ScrollTopClass = {\n rootClass: twMerge(\n theme.root.base,\n theme.root.color[properties.color],\n theme.root.position[properties.position]\n ),\n };\n\n return output;\n }\n}\n","import type {\n ScrollTopClass,\n ScrollTopColors,\n ScrollTopPositions,\n ScrollTopTheme,\n} from './scroll-top.theme';\nimport { ScrollTopThemeService } from './scroll-top.theme.service';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { CHEVRON_UP_SVG_ICON } from 'flowbite-angular/utils';\n\nimport type { OnInit } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n InjectionToken,\n makeEnvironmentProviders,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nexport const FLOWBITE_SCROLL_TOP_COLOR_DEFAULT_VALUE = new InjectionToken<keyof ScrollTopColors>(\n 'FLOWBITE_SCROLL_TOP_COLOR_DEFAULT_VALUE'\n);\n\nexport const FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE = new InjectionToken<\n keyof ScrollTopPositions\n>('FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE');\n\nexport const FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE = new InjectionToken<\n DeepPartial<ScrollTopTheme>\n>('FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE');\n\nexport const scrollTopDefaultValueProvider = makeEnvironmentProviders([\n {\n provide: FLOWBITE_SCROLL_TOP_COLOR_DEFAULT_VALUE,\n useValue: 'primary',\n },\n {\n provide: FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE,\n useValue: 'bottom-right',\n },\n {\n provide: FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE,\n useValue: {},\n },\n]);\n\n/**\n * Provide a way to go at the top of the page via a button\n */\n@Component({\n selector: 'flowbite-scroll-top',\n standalone: true,\n imports: [IconComponent],\n template: `<flowbite-icon\n svgIcon=\"flowbite-angular:chevron-up\"\n class=\"w-5 h-5\" />`,\n host: {\n '(click)': 'onClick()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScrollTopComponent extends BaseComponent<ScrollTopClass> implements OnInit {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(ScrollTopThemeService);\n /**\n * `IconRegistry` service\n */\n public readonly iconRegistry = inject(IconRegistry);\n /**\n * `DomSanitizer` service\n */\n public readonly domSanitizer = inject(DomSanitizer);\n\n //#region properties\n /**\n * Set the scroll top color\n *\n * @default primary\n */\n public color = model(inject(FLOWBITE_SCROLL_TOP_COLOR_DEFAULT_VALUE));\n /**\n * Set the scroll top position\n *\n * @default bottom-right\n */\n public position = model(inject(FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE));\n /**\n * Set the custom style for this scroll top\n */\n public customStyle = model(inject(FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE));\n //#endregion\n\n //#region BaseComponent implemenation\n public override fetchClass(): ScrollTopClass {\n return this.themeService.getClasses({\n color: this.color(),\n position: this.position(),\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'chevron-up',\n this.domSanitizer.bypassSecurityTrustHtml(CHEVRON_UP_SVG_ICON)\n );\n }\n //#endregion\n\n /**\n * Navigate to the top of the page\n */\n public onClick(): void {\n window.scrollTo(window.scrollX, 0);\n }\n}\n","import type {\n DeepPartial,\n FlowbiteClass,\n FlowbiteColors,\n FlowbitePositions,\n} from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n//#region region Component theme option\n/**\n * Available colors for `ScrollTopComponent`\n */\nexport interface ScrollTopColors\n extends Pick<\n FlowbiteColors,\n 'primary' | 'dark' | 'blue' | 'gray' | 'green' | 'lime' | 'purple' | 'red'\n > {\n [key: string]: string;\n}\n\n/**\n * Available positions for `ScrollTopComponent`\n */\nexport interface ScrollTopPositions extends Omit<FlowbitePositions, 'center'> {\n [key: string]: string;\n}\n//#endregion\n\n/**\n * Required properties for the class generation for `ScrollTopComponent`\n */\nexport interface ScrollTopProperties {\n color: keyof ScrollTopColors;\n position: keyof ScrollTopPositions;\n customStyle: DeepPartial<ScrollTopTheme>;\n}\n\n/**\n * Theme definition for `ScrollTopComponent`\n */\nexport interface ScrollTopTheme {\n root: {\n base: string;\n color: ScrollTopColors;\n position: ScrollTopPositions;\n };\n}\n\n/**\n * Default theme for `ScrollTopComponent`\n */\nexport const scrollTopTheme: ScrollTopTheme = createTheme({\n root: {\n base: 'cursor-pointer fixed flex flex-row place-items-center p-2 rounded-lg',\n color: {\n primary: 'bg-primary-100',\n dark: 'bg-gray-100 dark:bg-gray-800 dark:text-white',\n blue: 'bg-blue-100',\n gray: 'bg-gray-100',\n green: 'bg-green-100',\n lime: 'bg-lime-100',\n purple: 'bg-purple-100',\n red: 'bg-red-100',\n },\n position: {\n 'bottom-center': 'bottom-3 left-1/2 right-1/2',\n 'bottom-left': 'bottom-3 left-3',\n 'bottom-right': 'bottom-3 right-3',\n 'center-left': 'left-3 top-1/2 bottom-1/2',\n 'center-right': 'right-3 top-1/2 bottom-1/2',\n 'top-center': 'top-3 left-1/2 right-1/2',\n 'top-left': 'top-3 left-3',\n 'top-right': 'top-3 right-3',\n },\n },\n});\n\n/**\n * Generated class definition for `ScrollTopComponent`\n */\nexport type ScrollTopClass = FlowbiteClass;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAQA;;;;;;;AAOG;MACU,+BAA+B,GAAG,IAAI,cAAc,CAC/D,iCAAiC,EACjC;MAKW,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AE,2BAA2B;AAC1C,YAAA,cAAc,EAAE,4BAA4B;AAC5C,YAAA,YAAY,EAAE,0BAA0B;AACxC,YAAA,UAAU,EAAE,cAAc;AAC1B,YAAA,WAAW,EAAE,eAAe;AAC7B,SAAA;AACF,KAAA;AACF,CAAA;;AC3ED;;AAEG;;;;"}
1
+ {"version":3,"file":"flowbite-angular-scroll-top.mjs","sources":["../../../../libs/flowbite-angular/scroll-top/scroll-top.theme.service.ts","../../../../libs/flowbite-angular/scroll-top/scroll-top.component.ts","../../../../libs/flowbite-angular/scroll-top/scroll-top.theme.ts","../../../../libs/flowbite-angular/scroll-top/flowbite-angular-scroll-top.ts"],"sourcesContent":["import type { ScrollTopClass, ScrollTopProperties, ScrollTopTheme } from './scroll-top.theme';\n\nimport type { FlowbiteThemeService } from 'flowbite-angular';\nimport { mergeTheme } from 'flowbite-angular/utils';\n\nimport { inject, Injectable, InjectionToken } from '@angular/core';\nimport { twMerge } from 'tailwind-merge';\n\n/**\n * `InjectionToken` used to import `ScrollTopTheme` value\n *\n * @example\n * ```\n * var theme = inject(FLOWBITE_SCROLL_TOP_THEME_TOKEN)\n * ```\n */\nexport const FLOWBITE_SCROLL_TOP_THEME_TOKEN = new InjectionToken<ScrollTopTheme>(\n 'FLOWBITE_SCROLL_TOP_THEME_TOKEN'\n);\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ScrollTopThemeService implements FlowbiteThemeService<ScrollTopProperties> {\n private readonly baseTheme = inject(FLOWBITE_SCROLL_TOP_THEME_TOKEN);\n\n public getClasses(properties: ScrollTopProperties): ScrollTopClass {\n const theme: ScrollTopTheme = mergeTheme(this.baseTheme, properties.customStyle);\n\n const output: ScrollTopClass = {\n rootClass: twMerge(\n theme.root.base,\n theme.root.color[properties.color],\n theme.root.position[properties.position]\n ),\n };\n\n return output;\n }\n}\n","import type {\n ScrollTopClass,\n ScrollTopColors,\n ScrollTopPositions,\n ScrollTopTheme,\n} from './scroll-top.theme';\nimport { ScrollTopThemeService } from './scroll-top.theme.service';\n\nimport type { DeepPartial } from 'flowbite-angular';\nimport { BaseComponent } from 'flowbite-angular';\nimport { IconComponent, IconRegistry } from 'flowbite-angular/icon';\nimport { CHEVRON_UP_SVG_ICON } from 'flowbite-angular/utils';\n\nimport { NgTemplateOutlet } from '@angular/common';\nimport type { OnInit, TemplateRef } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n inject,\n InjectionToken,\n makeEnvironmentProviders,\n model,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\n\nexport const FLOWBITE_SCROLL_TOP_COLOR_DEFAULT_VALUE = new InjectionToken<keyof ScrollTopColors>(\n 'FLOWBITE_SCROLL_TOP_COLOR_DEFAULT_VALUE'\n);\n\nexport const FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE = new InjectionToken<\n keyof ScrollTopPositions\n>('FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE');\n\nexport const FLOWBITE_SCROLL_TOP_ICON_DEFAULT_VALUE = new InjectionToken<\n TemplateRef<unknown> | undefined\n>('FLOWBITE_SCROLL_TOP_ICON_DEFAULT_VALUE');\n\nexport const FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE = new InjectionToken<\n DeepPartial<ScrollTopTheme>\n>('FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE');\n\nexport const scrollTopDefaultValueProvider = makeEnvironmentProviders([\n {\n provide: FLOWBITE_SCROLL_TOP_COLOR_DEFAULT_VALUE,\n useValue: 'primary',\n },\n {\n provide: FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE,\n useValue: 'bottom-right',\n },\n {\n provide: FLOWBITE_SCROLL_TOP_ICON_DEFAULT_VALUE,\n useValue: undefined,\n },\n {\n provide: FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE,\n useValue: {},\n },\n]);\n\n/**\n * Provide a way to go at the top of the page via a button\n */\n@Component({\n selector: 'flowbite-scroll-top',\n imports: [IconComponent, NgTemplateOutlet],\n template: `\n @if (icon()) {\n <ng-container [ngTemplateOutlet]=\"icon()!\" />\n } @else {\n <flowbite-icon\n svgIcon=\"flowbite-angular:chevron-up\"\n class=\"w-5 h-5\" />\n }\n `,\n host: {\n '(click)': 'onClick()',\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ScrollTopComponent extends BaseComponent<ScrollTopClass> implements OnInit {\n /**\n * Service injected used to generate class\n */\n public readonly themeService = inject(ScrollTopThemeService);\n /**\n * `IconRegistry` service\n */\n public readonly iconRegistry = inject(IconRegistry);\n /**\n * `DomSanitizer` service\n */\n public readonly domSanitizer = inject(DomSanitizer);\n\n //#region properties\n /**\n * Set the scroll top color\n *\n * @default primary\n */\n public color = model(inject(FLOWBITE_SCROLL_TOP_COLOR_DEFAULT_VALUE));\n /**\n * Set the scroll top position\n *\n * @default bottom-right\n */\n public position = model(inject(FLOWBITE_SCROLL_TOP_POSITION_DEFAULT_VALUE));\n /**\n * Set the scroll top icon\n *\n * @default undefined\n */\n public icon = model(inject(FLOWBITE_SCROLL_TOP_ICON_DEFAULT_VALUE));\n /**\n * Set the custom style for this scroll top\n *\n * @default {}\n */\n public customStyle = model(inject(FLOWBITE_SCROLL_TOP_CUSTOM_STYLE_DEFAULT_VALUE));\n //#endregion\n\n //#region BaseComponent implemenation\n public override fetchClass(): ScrollTopClass {\n return this.themeService.getClasses({\n color: this.color(),\n position: this.position(),\n customStyle: this.customStyle(),\n });\n }\n\n public override init(): void {\n this.iconRegistry.addRawSvgIconInNamepsace(\n 'flowbite-angular',\n 'chevron-up',\n this.domSanitizer.bypassSecurityTrustHtml(CHEVRON_UP_SVG_ICON)\n );\n }\n //#endregion\n\n /**\n * Navigate to the top of the page\n */\n public onClick(): void {\n window.scrollTo(window.scrollX, 0);\n }\n}\n","import type {\n DeepPartial,\n FlowbiteClass,\n FlowbiteColors,\n FlowbitePositions,\n} from 'flowbite-angular';\nimport { createTheme } from 'flowbite-angular/utils';\n\n//#region region Component theme option\n/**\n * Available colors for `ScrollTopComponent`\n */\nexport interface ScrollTopColors\n extends Pick<\n FlowbiteColors,\n 'primary' | 'dark' | 'blue' | 'gray' | 'green' | 'lime' | 'purple' | 'red'\n > {\n [key: string]: string;\n}\n\n/**\n * Available positions for `ScrollTopComponent`\n */\nexport interface ScrollTopPositions extends Omit<FlowbitePositions, 'center'> {\n [key: string]: string;\n}\n//#endregion\n\n/**\n * Required properties for the class generation for `ScrollTopComponent`\n */\nexport interface ScrollTopProperties {\n color: keyof ScrollTopColors;\n position: keyof ScrollTopPositions;\n customStyle: DeepPartial<ScrollTopTheme>;\n}\n\n/**\n * Theme definition for `ScrollTopComponent`\n */\nexport interface ScrollTopTheme {\n root: {\n base: string;\n color: ScrollTopColors;\n position: ScrollTopPositions;\n };\n}\n\n/**\n * Default theme for `ScrollTopComponent`\n */\nexport const scrollTopTheme: ScrollTopTheme = createTheme({\n root: {\n base: 'cursor-pointer fixed flex flex-row place-items-center p-2 rounded-lg',\n color: {\n primary: 'bg-primary-100',\n dark: 'bg-gray-100 dark:bg-gray-800 dark:text-white',\n blue: 'bg-blue-100',\n gray: 'bg-gray-100',\n green: 'bg-green-100',\n lime: 'bg-lime-100',\n purple: 'bg-purple-100',\n red: 'bg-red-100',\n },\n position: {\n 'bottom-center': 'bottom-3 left-1/2 right-1/2',\n 'bottom-left': 'bottom-3 left-3',\n 'bottom-right': 'bottom-3 right-3',\n 'center-left': 'left-3 top-1/2 bottom-1/2',\n 'center-right': 'right-3 top-1/2 bottom-1/2',\n 'top-center': 'top-3 left-1/2 right-1/2',\n 'top-left': 'top-3 left-3',\n 'top-right': 'top-3 right-3',\n },\n },\n});\n\n/**\n * Generated class definition for `ScrollTopComponent`\n */\nexport type ScrollTopClass = FlowbiteClass;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAQA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AACnB,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,KAAK,EAAE,cAAc;AACrB,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,MAAM,EAAE,eAAe;AACvB,YAAA,GAAG,EAAE,YAAY;AAClB,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,eAAe,EAAE,6BAA6B;AAC9C,YAAA,aAAa,EAAE,iBAAiB;AAChC,YAAA,cAAc,EAAE,kBAAkB;AAClC,YAAA,aAAa,EAAE,2BAA2B;AAC1C,YAAA,cAAc,EAAE,4BAA4B;AAC5C,YAAA,YAAY,EAAE,0BAA0B;AACxC,YAAA,UAAU,EAAE,cAAc;AAC1B,YAAA,WAAW,EAAE,eAAe;AAC7B,SAAA;AACF,KAAA;AACF,CAAA;;AC3ED;;AAEG;;;;"}
@@ -31,10 +31,10 @@ class SidebarItemGroupThemeService {
31
31
  };
32
32
  return output;
33
33
  }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarItemGroupThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
35
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarItemGroupThemeService, providedIn: 'root' }); }
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarItemGroupThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
35
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarItemGroupThemeService, providedIn: 'root' }); }
36
36
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarItemGroupThemeService, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarItemGroupThemeService, decorators: [{
38
38
  type: Injectable,
39
39
  args: [{
40
40
  providedIn: 'root',
@@ -62,10 +62,10 @@ class SidebarItemThemeService {
62
62
  };
63
63
  return output;
64
64
  }
65
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarItemThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
66
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarItemThemeService, providedIn: 'root' }); }
65
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarItemThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
66
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarItemThemeService, providedIn: 'root' }); }
67
67
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarItemThemeService, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarItemThemeService, decorators: [{
69
69
  type: Injectable,
70
70
  args: [{
71
71
  providedIn: 'root',
@@ -160,8 +160,8 @@ class SidebarItemComponent extends BaseComponent {
160
160
  (this.sidebarMenuComponent || this.sidebarItemGroupComponent?.sidebarMenuComponent)?.closeAll();
161
161
  (this.sidebarMenuComponent || this.sidebarItemGroupComponent?.sidebarMenuComponent)?.sidebarComponent.toggleVisibility(false);
162
162
  }
163
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
164
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.0", type: SidebarItemComponent, isStandalone: true, selector: "flowbite-sidebar-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { icon: "iconChange", color: "colorChange", label: "labelChange", customStyle: "customStyleChange" }, host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0, template: `
163
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
164
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.4", type: SidebarItemComponent, isStandalone: true, selector: "flowbite-sidebar-item", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { icon: "iconChange", color: "colorChange", label: "labelChange", customStyle: "customStyleChange" }, host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0, template: `
165
165
  @if (icon()) {
166
166
  <span
167
167
  class="flex-shrink-0"
@@ -178,10 +178,9 @@ class SidebarItemComponent extends BaseComponent {
178
178
  }
179
179
  `, isInline: true, dependencies: [{ kind: "pipe", type: SanitizeHtmlPipe, name: "sanitizeHtml" }, { kind: "component", type: BadgeComponent, selector: "flowbite-badge", inputs: ["color", "size", "isIconOnly", "isPill", "customStyle"], outputs: ["colorChange", "sizeChange", "isIconOnlyChange", "isPillChange", "customStyleChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
180
180
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarItemComponent, decorators: [{
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarItemComponent, decorators: [{
182
182
  type: Component,
183
183
  args: [{
184
- standalone: true,
185
184
  imports: [SanitizeHtmlPipe, BadgeComponent],
186
185
  selector: 'flowbite-sidebar-item',
187
186
  template: `
@@ -287,8 +286,8 @@ class SidebarItemGroupComponent extends BaseComponent {
287
286
  }
288
287
  this.isOpen.set(isOpen);
289
288
  }
290
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarItemGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
291
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.0", type: SidebarItemGroupComponent, isStandalone: true, selector: "flowbite-sidebar-item-group", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", color: "colorChange", title: "titleChange", customStyle: "customStyleChange" }, queries: [{ propertyName: "sidebarItemChildren", predicate: SidebarItemComponent, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
289
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarItemGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
290
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.4", type: SidebarItemGroupComponent, isStandalone: true, selector: "flowbite-sidebar-item-group", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", color: "colorChange", title: "titleChange", customStyle: "customStyleChange" }, queries: [{ propertyName: "sidebarItemChildren", predicate: SidebarItemComponent, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
292
291
  <span
293
292
  [class]="contentClasses().spanClass"
294
293
  (click)="toggleVisibility()">
@@ -303,10 +302,9 @@ class SidebarItemGroupComponent extends BaseComponent {
303
302
  }
304
303
  `, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "flowbite-icon", inputs: ["svgIcon"], outputs: ["svgIconChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
305
304
  }
306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarItemGroupComponent, decorators: [{
305
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarItemGroupComponent, decorators: [{
307
306
  type: Component,
308
307
  args: [{
309
- standalone: true,
310
308
  imports: [IconComponent],
311
309
  selector: 'flowbite-sidebar-item-group',
312
310
  template: `
@@ -348,10 +346,10 @@ class SidebarMenuThemeService {
348
346
  };
349
347
  return output;
350
348
  }
351
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarMenuThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
352
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarMenuThemeService, providedIn: 'root' }); }
349
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarMenuThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
350
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarMenuThemeService, providedIn: 'root' }); }
353
351
  }
354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarMenuThemeService, decorators: [{
352
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarMenuThemeService, decorators: [{
355
353
  type: Injectable,
356
354
  args: [{
357
355
  providedIn: 'root',
@@ -414,10 +412,10 @@ class SidebarMenuComponent extends BaseComponent {
414
412
  closeAll() {
415
413
  this.sidebarItemGroupChildren().forEach((x) => x.toggleVisibility(false));
416
414
  }
417
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarMenuComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
418
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.0.0", type: SidebarMenuComponent, isStandalone: true, selector: "flowbite-sidebar-menu", 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" }, queries: [{ propertyName: "sidebarItemGroupChildren", predicate: SidebarItemGroupComponent, isSignal: true }, { propertyName: "sidebarItemChildren", predicate: SidebarItemComponent, isSignal: true }], usesInheritance: true, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
415
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarMenuComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
416
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.4", type: SidebarMenuComponent, isStandalone: true, selector: "flowbite-sidebar-menu", 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" }, queries: [{ propertyName: "sidebarItemGroupChildren", predicate: SidebarItemGroupComponent, isSignal: true }, { propertyName: "sidebarItemChildren", predicate: SidebarItemComponent, isSignal: true }], usesInheritance: true, ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
419
417
  }
420
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarMenuComponent, decorators: [{
418
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarMenuComponent, decorators: [{
421
419
  type: Component,
422
420
  args: [{
423
421
  standalone: true,
@@ -448,10 +446,10 @@ class SidebarPageContentThemeService {
448
446
  };
449
447
  return output;
450
448
  }
451
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarPageContentThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
452
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarPageContentThemeService, providedIn: 'root' }); }
449
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarPageContentThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
450
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarPageContentThemeService, providedIn: 'root' }); }
453
451
  }
454
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarPageContentThemeService, decorators: [{
452
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarPageContentThemeService, decorators: [{
455
453
  type: Injectable,
456
454
  args: [{
457
455
  providedIn: 'root',
@@ -494,10 +492,10 @@ class SidebarPageContentComponent extends BaseComponent {
494
492
  customStyle: this.customStyle(),
495
493
  });
496
494
  }
497
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarPageContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
498
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: SidebarPageContentComponent, isStandalone: true, selector: "flowbite-sidebar-page-content", inputs: { customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { customStyle: "customStyleChange" }, usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
495
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarPageContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
496
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.4", type: SidebarPageContentComponent, isStandalone: true, selector: "flowbite-sidebar-page-content", inputs: { customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { customStyle: "customStyleChange" }, usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
499
497
  }
500
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarPageContentComponent, decorators: [{
498
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarPageContentComponent, decorators: [{
501
499
  type: Component,
502
500
  args: [{
503
501
  standalone: true,
@@ -528,10 +526,10 @@ class SidebarThemeService {
528
526
  };
529
527
  return output;
530
528
  }
531
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
532
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarThemeService, providedIn: 'root' }); }
529
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
530
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarThemeService, providedIn: 'root' }); }
533
531
  }
534
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarThemeService, decorators: [{
532
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarThemeService, decorators: [{
535
533
  type: Injectable,
536
534
  args: [{
537
535
  providedIn: 'root',
@@ -634,10 +632,10 @@ class SidebarComponent extends BaseComponent {
634
632
  }
635
633
  this.isOpen.set(isOpen);
636
634
  }
637
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
638
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "18.0.0", type: SidebarComponent, isStandalone: true, selector: "flowbite-sidebar", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, displayMode: { classPropertyName: "displayMode", publicName: "displayMode", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, isRounded: { classPropertyName: "isRounded", publicName: "isRounded", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { color: "colorChange", displayMode: "displayModeChange", isOpen: "isOpenChange", isRounded: "isRoundedChange", customStyle: "customStyleChange" }, queries: [{ propertyName: "sidebarMenuChild", first: true, predicate: SidebarMenuComponent, descendants: true, isSignal: true }, { propertyName: "sidebarPageContentChild", first: true, predicate: SidebarPageContentComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
635
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
636
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.4", type: SidebarComponent, isStandalone: true, selector: "flowbite-sidebar", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, displayMode: { classPropertyName: "displayMode", publicName: "displayMode", isSignal: true, isRequired: false, transformFunction: null }, isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, isRounded: { classPropertyName: "isRounded", publicName: "isRounded", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { color: "colorChange", displayMode: "displayModeChange", isOpen: "isOpenChange", isRounded: "isRoundedChange", customStyle: "customStyleChange" }, queries: [{ propertyName: "sidebarMenuChild", first: true, predicate: SidebarMenuComponent, descendants: true, isSignal: true }, { propertyName: "sidebarPageContentChild", first: true, predicate: SidebarPageContentComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
639
637
  }
640
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarComponent, decorators: [{
638
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarComponent, decorators: [{
641
639
  type: Component,
642
640
  args: [{
643
641
  standalone: true,
@@ -718,10 +716,10 @@ class SidebarToggleThemeService {
718
716
  };
719
717
  return output;
720
718
  }
721
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarToggleThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
722
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarToggleThemeService, providedIn: 'root' }); }
719
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarToggleThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
720
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarToggleThemeService, providedIn: 'root' }); }
723
721
  }
724
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarToggleThemeService, decorators: [{
722
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarToggleThemeService, decorators: [{
725
723
  type: Injectable,
726
724
  args: [{
727
725
  providedIn: 'root',
@@ -807,13 +805,12 @@ class SidebarToggleComponent extends BaseComponent {
807
805
  const isOpen = this.sidebarComponent().isOpen();
808
806
  this.sidebarComponent().isOpen.set(!isOpen);
809
807
  }
810
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarToggleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
811
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.0.0", type: SidebarToggleComponent, isStandalone: true, selector: "flowbite-sidebar-toggle", inputs: { sidebarComponent: { classPropertyName: "sidebarComponent", publicName: "sidebarComponent", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sidebarComponent: "sidebarComponentChange", color: "colorChange", size: "sizeChange", customStyle: "customStyleChange" }, host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0, template: `<flowbite-icon svgIcon="flowbite-angular:bars" />`, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "flowbite-icon", inputs: ["svgIcon"], outputs: ["svgIconChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
808
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarToggleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
809
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.4", type: SidebarToggleComponent, isStandalone: true, selector: "flowbite-sidebar-toggle", inputs: { sidebarComponent: { classPropertyName: "sidebarComponent", publicName: "sidebarComponent", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, customStyle: { classPropertyName: "customStyle", publicName: "customStyle", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sidebarComponent: "sidebarComponentChange", color: "colorChange", size: "sizeChange", customStyle: "customStyleChange" }, host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0, template: `<flowbite-icon svgIcon="flowbite-angular:bars" />`, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "flowbite-icon", inputs: ["svgIcon"], outputs: ["svgIconChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
812
810
  }
813
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: SidebarToggleComponent, decorators: [{
811
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: SidebarToggleComponent, decorators: [{
814
812
  type: Component,
815
813
  args: [{
816
- standalone: true,
817
814
  imports: [IconComponent],
818
815
  selector: 'flowbite-sidebar-toggle',
819
816
  template: `<flowbite-icon svgIcon="flowbite-angular:bars" />`,