@ojiepermana/angular 21.3.4 → 22.0.1

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 (290) hide show
  1. package/README.md +10 -6
  2. package/component/accordion/README.md +195 -0
  3. package/component/alert/README.md +182 -0
  4. package/component/alert-dialog/README.md +239 -0
  5. package/component/aspect-ratio/README.md +112 -0
  6. package/component/avatar/README.md +176 -0
  7. package/component/badge/README.md +133 -0
  8. package/component/breadcrumb/README.md +216 -0
  9. package/component/button/README.md +139 -0
  10. package/component/button-group/README.md +208 -0
  11. package/component/calendar/README.md +132 -0
  12. package/component/card/README.md +220 -0
  13. package/component/carousel/README.md +276 -0
  14. package/component/checkbox/README.md +149 -0
  15. package/component/collapsible/README.md +195 -0
  16. package/component/combobox/README.md +198 -0
  17. package/component/command/README.md +275 -0
  18. package/component/composer/README.md +235 -0
  19. package/component/composer/package.json +4 -0
  20. package/component/context-menu/README.md +267 -0
  21. package/component/date-picker/README.md +177 -0
  22. package/component/dialog/README.md +237 -0
  23. package/component/drawer/README.md +145 -0
  24. package/component/dropdown-menu/README.md +311 -0
  25. package/component/editor/README.md +136 -0
  26. package/component/editor/package.json +4 -0
  27. package/component/empty/README.md +183 -0
  28. package/component/empty/package.json +4 -0
  29. package/component/form/README.md +210 -0
  30. package/component/hover-card/README.md +146 -0
  31. package/component/hover-card/package.json +4 -0
  32. package/component/input/README.md +159 -0
  33. package/component/input-group/README.md +239 -0
  34. package/component/input-otp/README.md +278 -0
  35. package/component/input-otp/package.json +4 -0
  36. package/component/item/README.md +247 -0
  37. package/component/kanban/README.md +81 -0
  38. package/component/kanban/package.json +4 -0
  39. package/component/kbd/README.md +139 -0
  40. package/component/kbd/package.json +4 -0
  41. package/component/label/README.md +136 -0
  42. package/component/menubar/README.md +269 -0
  43. package/component/menubar/package.json +4 -0
  44. package/component/native-select/README.md +176 -0
  45. package/component/native-select/package.json +4 -0
  46. package/component/navigation-menu/README.md +160 -0
  47. package/component/navigation-menu/package.json +4 -0
  48. package/component/pagination/README.md +144 -0
  49. package/component/pillbox/README.md +67 -0
  50. package/component/pillbox/package.json +4 -0
  51. package/component/popover/README.md +43 -0
  52. package/component/progress/README.md +160 -0
  53. package/component/radio/README.md +209 -0
  54. package/component/resizable/README.md +168 -0
  55. package/component/resizable/package.json +4 -0
  56. package/component/scroll-area/README.md +143 -0
  57. package/component/select/README.md +174 -0
  58. package/component/separator/README.md +170 -0
  59. package/component/sheet/README.md +183 -0
  60. package/component/skeleton/README.md +158 -0
  61. package/component/slider/README.md +207 -0
  62. package/component/spinner/README.md +160 -0
  63. package/component/spinner/package.json +4 -0
  64. package/component/switch/README.md +166 -0
  65. package/component/table/README.md +291 -0
  66. package/component/tabs/README.md +219 -0
  67. package/component/textarea/README.md +154 -0
  68. package/component/timeline/README.md +94 -0
  69. package/component/timeline/package.json +4 -0
  70. package/component/toast/README.md +321 -0
  71. package/component/toggle/README.md +131 -0
  72. package/component/toggle/package.json +4 -0
  73. package/component/toggle-group/README.md +206 -0
  74. package/component/toggle-group/package.json +4 -0
  75. package/component/tooltip/README.md +211 -0
  76. package/fesm2022/ojiepermana-angular-component-accordion.mjs +45 -30
  77. package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +1 -1
  78. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +95 -61
  79. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +1 -1
  80. package/fesm2022/ojiepermana-angular-component-alert.mjs +30 -21
  81. package/fesm2022/ojiepermana-angular-component-alert.mjs.map +1 -1
  82. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +11 -7
  83. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +1 -1
  84. package/fesm2022/ojiepermana-angular-component-avatar.mjs +50 -34
  85. package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +1 -1
  86. package/fesm2022/ojiepermana-angular-component-badge.mjs +9 -6
  87. package/fesm2022/ojiepermana-angular-component-badge.mjs.map +1 -1
  88. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +49 -35
  89. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +1 -1
  90. package/fesm2022/ojiepermana-angular-component-button-group.mjs +25 -17
  91. package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +1 -1
  92. package/fesm2022/ojiepermana-angular-component-button.mjs +11 -7
  93. package/fesm2022/ojiepermana-angular-component-button.mjs.map +1 -1
  94. package/fesm2022/ojiepermana-angular-component-calendar.mjs +23 -13
  95. package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +1 -1
  96. package/fesm2022/ojiepermana-angular-component-card.mjs +51 -36
  97. package/fesm2022/ojiepermana-angular-component-card.mjs.map +1 -1
  98. package/fesm2022/ojiepermana-angular-component-carousel.mjs +66 -42
  99. package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +1 -1
  100. package/fesm2022/ojiepermana-angular-component-chart.mjs +494 -283
  101. package/fesm2022/ojiepermana-angular-component-chart.mjs.map +1 -1
  102. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +23 -13
  103. package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +1 -1
  104. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +28 -20
  105. package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +1 -1
  106. package/fesm2022/ojiepermana-angular-component-combobox.mjs +27 -18
  107. package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +1 -1
  108. package/fesm2022/ojiepermana-angular-component-command.mjs +77 -52
  109. package/fesm2022/ojiepermana-angular-component-command.mjs.map +1 -1
  110. package/fesm2022/ojiepermana-angular-component-composer.mjs +352 -0
  111. package/fesm2022/ojiepermana-angular-component-composer.mjs.map +1 -0
  112. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +9 -6
  113. package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +1 -1
  114. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +34 -19
  115. package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +1 -1
  116. package/fesm2022/ojiepermana-angular-component-dialog.mjs +55 -38
  117. package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +1 -1
  118. package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +1 -1
  119. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +108 -74
  120. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +1 -1
  121. package/fesm2022/ojiepermana-angular-component-editor.mjs +717 -0
  122. package/fesm2022/ojiepermana-angular-component-editor.mjs.map +1 -0
  123. package/fesm2022/ojiepermana-angular-component-empty.mjs +145 -0
  124. package/fesm2022/ojiepermana-angular-component-empty.mjs.map +1 -0
  125. package/fesm2022/ojiepermana-angular-component-form.mjs +200 -42
  126. package/fesm2022/ojiepermana-angular-component-form.mjs.map +1 -1
  127. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +297 -0
  128. package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +1 -0
  129. package/fesm2022/ojiepermana-angular-component-input-group.mjs +48 -33
  130. package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +1 -1
  131. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +514 -0
  132. package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +1 -0
  133. package/fesm2022/ojiepermana-angular-component-input.mjs +7 -5
  134. package/fesm2022/ojiepermana-angular-component-input.mjs.map +1 -1
  135. package/fesm2022/ojiepermana-angular-component-item.mjs +76 -53
  136. package/fesm2022/ojiepermana-angular-component-item.mjs.map +1 -1
  137. package/fesm2022/ojiepermana-angular-component-kanban.mjs +314 -0
  138. package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +1 -0
  139. package/fesm2022/ojiepermana-angular-component-kbd.mjs +55 -0
  140. package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +1 -0
  141. package/fesm2022/ojiepermana-angular-component-label.mjs +9 -6
  142. package/fesm2022/ojiepermana-angular-component-label.mjs.map +1 -1
  143. package/fesm2022/ojiepermana-angular-component-menubar.mjs +308 -0
  144. package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +1 -0
  145. package/fesm2022/ojiepermana-angular-component-native-select.mjs +67 -0
  146. package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +1 -0
  147. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +413 -0
  148. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +1 -0
  149. package/fesm2022/ojiepermana-angular-component-pagination.mjs +65 -31
  150. package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +1 -1
  151. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +812 -0
  152. package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +1 -0
  153. package/fesm2022/ojiepermana-angular-component-popover.mjs +18 -12
  154. package/fesm2022/ojiepermana-angular-component-popover.mjs.map +1 -1
  155. package/fesm2022/ojiepermana-angular-component-progress.mjs +17 -10
  156. package/fesm2022/ojiepermana-angular-component-progress.mjs.map +1 -1
  157. package/fesm2022/ojiepermana-angular-component-radio.mjs +47 -17
  158. package/fesm2022/ojiepermana-angular-component-radio.mjs.map +1 -1
  159. package/fesm2022/ojiepermana-angular-component-resizable.mjs +481 -0
  160. package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +1 -0
  161. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +15 -9
  162. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +1 -1
  163. package/fesm2022/ojiepermana-angular-component-select.mjs +71 -26
  164. package/fesm2022/ojiepermana-angular-component-select.mjs.map +1 -1
  165. package/fesm2022/ojiepermana-angular-component-separator.mjs +11 -7
  166. package/fesm2022/ojiepermana-angular-component-separator.mjs.map +1 -1
  167. package/fesm2022/ojiepermana-angular-component-sheet.mjs +91 -42
  168. package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +1 -1
  169. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +7 -5
  170. package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +1 -1
  171. package/fesm2022/ojiepermana-angular-component-slider.mjs +401 -7
  172. package/fesm2022/ojiepermana-angular-component-slider.mjs.map +1 -1
  173. package/fesm2022/ojiepermana-angular-component-spinner.mjs +60 -0
  174. package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +1 -0
  175. package/fesm2022/ojiepermana-angular-component-switch.mjs +47 -15
  176. package/fesm2022/ojiepermana-angular-component-switch.mjs.map +1 -1
  177. package/fesm2022/ojiepermana-angular-component-table.mjs +56 -40
  178. package/fesm2022/ojiepermana-angular-component-table.mjs.map +1 -1
  179. package/fesm2022/ojiepermana-angular-component-tabs.mjs +58 -38
  180. package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +1 -1
  181. package/fesm2022/ojiepermana-angular-component-textarea.mjs +8 -6
  182. package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +1 -1
  183. package/fesm2022/ojiepermana-angular-component-timeline.mjs +237 -0
  184. package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +1 -0
  185. package/fesm2022/ojiepermana-angular-component-toast.mjs +28 -4
  186. package/fesm2022/ojiepermana-angular-component-toast.mjs.map +1 -1
  187. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +289 -0
  188. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +1 -0
  189. package/fesm2022/ojiepermana-angular-component-toggle.mjs +82 -0
  190. package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +1 -0
  191. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +304 -6
  192. package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +1 -1
  193. package/fesm2022/ojiepermana-angular-component-utils.mjs.map +1 -1
  194. package/fesm2022/ojiepermana-angular-layout-component.mjs +45 -24
  195. package/fesm2022/ojiepermana-angular-layout-component.mjs.map +1 -1
  196. package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +1 -1
  197. package/fesm2022/ojiepermana-angular-layout-services.mjs +7 -5
  198. package/fesm2022/ojiepermana-angular-layout-services.mjs.map +1 -1
  199. package/fesm2022/ojiepermana-angular-layout-shell.mjs +3 -3
  200. package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +1 -1
  201. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +9 -6
  202. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +1 -1
  203. package/fesm2022/ojiepermana-angular-layout-token.mjs.map +1 -1
  204. package/fesm2022/{ojiepermana-angular-layout-empty.mjs → ojiepermana-angular-layout-type-empty.mjs} +4 -4
  205. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +1 -0
  206. package/fesm2022/{ojiepermana-angular-layout-horizontal.mjs → ojiepermana-angular-layout-type-horizontal.mjs} +26 -17
  207. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +1 -0
  208. package/fesm2022/{ojiepermana-angular-layout-vertical.mjs → ojiepermana-angular-layout-type-vertical.mjs} +28 -18
  209. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +1 -0
  210. package/fesm2022/ojiepermana-angular-layout.mjs +74 -50
  211. package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -1
  212. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +1 -1
  213. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +11 -7
  214. package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +1 -1
  215. package/fesm2022/ojiepermana-angular-navigation-item.mjs +27 -16
  216. package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +1 -1
  217. package/fesm2022/ojiepermana-angular-navigation-service.mjs +29 -20
  218. package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +1 -1
  219. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +71 -43
  220. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +1 -1
  221. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +261 -24
  222. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +1 -1
  223. package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +1 -1
  224. package/fesm2022/ojiepermana-angular-theme-services.mjs +19 -11
  225. package/fesm2022/ojiepermana-angular-theme-services.mjs.map +1 -1
  226. package/fesm2022/ojiepermana-angular-theme-token.mjs.map +1 -1
  227. package/fesm2022/ojiepermana-angular-theme.mjs +19 -11
  228. package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -1
  229. package/generator/api/bin/src/emit/client.js +4 -2
  230. package/generator/api/bin/src/writer/index.js +2 -2
  231. package/generator/guide/bin/schematics/build/index.js +3 -2
  232. package/generator/guide/bin/src/engine/component.js +2 -2
  233. package/generator/guide/bin/src/engine/index.js +3 -3
  234. package/generator/guide/bin/src/engine/render.js +10 -5
  235. package/layout/type/empty/package.json +4 -0
  236. package/layout/type/horizontal/package.json +4 -0
  237. package/layout/type/vertical/package.json +4 -0
  238. package/navigation/topbar/README.md +196 -0
  239. package/package.json +89 -25
  240. package/theme/README.md +110 -3
  241. package/theme/styles/integrations/material/autocomplete.css +178 -0
  242. package/theme/styles/integrations/material/button.css +468 -0
  243. package/theme/styles/integrations/material/dialog.css +152 -0
  244. package/theme/styles/integrations/material/select.css +175 -0
  245. package/theme/styles/integrations/material/slide-toggle.css +234 -0
  246. package/theme/styles/integrations/material/slider.css +194 -0
  247. package/theme/styles/integrations/material/tabs.css +229 -0
  248. package/theme/styles/integrations/material.css +70 -60
  249. package/types/ojiepermana-angular-component-combobox.d.ts +1 -2
  250. package/types/ojiepermana-angular-component-composer.d.ts +90 -0
  251. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +2 -0
  252. package/types/ojiepermana-angular-component-editor.d.ts +123 -0
  253. package/types/ojiepermana-angular-component-empty.d.ts +50 -0
  254. package/types/ojiepermana-angular-component-form.d.ts +52 -3
  255. package/types/ojiepermana-angular-component-hover-card.d.ts +74 -0
  256. package/types/ojiepermana-angular-component-input-otp.d.ts +136 -0
  257. package/types/ojiepermana-angular-component-kanban.d.ts +70 -0
  258. package/types/ojiepermana-angular-component-kbd.d.ts +16 -0
  259. package/types/ojiepermana-angular-component-menubar.d.ts +67 -0
  260. package/types/ojiepermana-angular-component-native-select.d.ts +26 -0
  261. package/types/ojiepermana-angular-component-navigation-menu.d.ts +96 -0
  262. package/types/ojiepermana-angular-component-pagination.d.ts +10 -4
  263. package/types/ojiepermana-angular-component-pillbox.d.ts +157 -0
  264. package/types/ojiepermana-angular-component-radio.d.ts +7 -1
  265. package/types/ojiepermana-angular-component-resizable.d.ts +99 -0
  266. package/types/ojiepermana-angular-component-select.d.ts +17 -5
  267. package/types/ojiepermana-angular-component-sheet.d.ts +3 -1
  268. package/types/ojiepermana-angular-component-slider.d.ts +59 -1
  269. package/types/ojiepermana-angular-component-spinner.d.ts +13 -0
  270. package/types/ojiepermana-angular-component-switch.d.ts +13 -3
  271. package/types/ojiepermana-angular-component-timeline.d.ts +63 -0
  272. package/types/ojiepermana-angular-component-toast.d.ts +12 -3
  273. package/types/ojiepermana-angular-component-toggle-group.d.ts +89 -0
  274. package/types/ojiepermana-angular-component-toggle.d.ts +25 -0
  275. package/types/ojiepermana-angular-component-tooltip.d.ts +72 -5
  276. package/types/{ojiepermana-angular-layout-horizontal.d.ts → ojiepermana-angular-layout-type-horizontal.d.ts} +3 -3
  277. package/types/{ojiepermana-angular-layout-vertical.d.ts → ojiepermana-angular-layout-type-vertical.d.ts} +3 -3
  278. package/types/ojiepermana-angular-layout.d.ts +5 -5
  279. package/types/ojiepermana-angular-navigation-item.d.ts +1 -1
  280. package/types/ojiepermana-angular-navigation-service.d.ts +7 -7
  281. package/types/ojiepermana-angular-navigation-sidebar.d.ts +8 -8
  282. package/types/ojiepermana-angular-navigation-topbar.d.ts +24 -4
  283. package/types/ojiepermana-angular-navigation-types.d.ts +14 -8
  284. package/fesm2022/ojiepermana-angular-layout-empty.mjs.map +0 -1
  285. package/fesm2022/ojiepermana-angular-layout-horizontal.mjs.map +0 -1
  286. package/fesm2022/ojiepermana-angular-layout-vertical.mjs.map +0 -1
  287. package/layout/empty/package.json +0 -4
  288. package/layout/horizontal/package.json +0 -4
  289. package/layout/vertical/package.json +0 -4
  290. /package/types/{ojiepermana-angular-layout-empty.d.ts → ojiepermana-angular-layout-type-empty.d.ts} +0 -0
@@ -1,8 +1,305 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, input, effect, Directive } from '@angular/core';
2
+ import { InjectionToken, input, forwardRef, ChangeDetectionStrategy, Component, inject, TemplateRef, Directive, ViewContainerRef, ElementRef, DestroyRef, output, signal, effect } from '@angular/core';
3
+ import { Overlay } from '@angular/cdk/overlay';
4
+ import { TemplatePortal } from '@angular/cdk/portal';
5
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
+ import { merge } from 'rxjs';
7
+ import { filter } from 'rxjs/operators';
3
8
  import * as i1 from '@angular/material/tooltip';
4
9
  import { MatTooltip } from '@angular/material/tooltip';
5
10
 
11
+ const TOOLTIP_DEFAULTS = new InjectionToken('TOOLTIP_DEFAULTS');
12
+ class TooltipComponent {
13
+ side = input('top', /* @ts-ignore */
14
+ ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
15
+ align = input('center', /* @ts-ignore */
16
+ ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
17
+ sideOffset = input(4, /* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []));
19
+ openDelay = input(150, /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "openDelay" }] : /* istanbul ignore next */ []));
21
+ closeDelay = input(0, /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "closeDelay" }] : /* istanbul ignore next */ []));
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: TooltipComponent, isStandalone: true, selector: "ui-tooltip", inputs: { side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, openDelay: { classPropertyName: "openDelay", publicName: "openDelay", isSignal: true, isRequired: false, transformFunction: null }, closeDelay: { classPropertyName: "closeDelay", publicName: "closeDelay", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, providers: [{ provide: TOOLTIP_DEFAULTS, useExisting: forwardRef(() => TooltipComponent) }], ngImport: i0, template: '<ng-content />', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
25
+ }
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TooltipComponent, decorators: [{
27
+ type: Component,
28
+ args: [{
29
+ selector: 'ui-tooltip',
30
+ changeDetection: ChangeDetectionStrategy.OnPush,
31
+ providers: [{ provide: TOOLTIP_DEFAULTS, useExisting: forwardRef(() => TooltipComponent) }],
32
+ host: {
33
+ class: 'contents',
34
+ },
35
+ template: '<ng-content />',
36
+ }]
37
+ }], propDecorators: { side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], sideOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideOffset", required: false }] }], openDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "openDelay", required: false }] }], closeDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeDelay", required: false }] }] } });
38
+
39
+ class TooltipContentDirective {
40
+ template = inject(TemplateRef);
41
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TooltipContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
42
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: TooltipContentDirective, isStandalone: true, selector: "ng-template[uiTooltipContent]", exportAs: ["uiTooltipContent"], ngImport: i0 });
43
+ }
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TooltipContentDirective, decorators: [{
45
+ type: Directive,
46
+ args: [{
47
+ selector: 'ng-template[uiTooltipContent]',
48
+ exportAs: 'uiTooltipContent',
49
+ }]
50
+ }] });
51
+
52
+ const TOOLTIP_PANEL_CLASSES = [
53
+ 'ui-tooltip-panel',
54
+ 'pointer-events-none',
55
+ 'z-50',
56
+ 'max-w-xs',
57
+ 'overflow-hidden',
58
+ 'rounded-md',
59
+ 'border',
60
+ 'border-border',
61
+ 'bg-primary',
62
+ 'px-3',
63
+ 'py-1.5',
64
+ 'text-xs',
65
+ 'font-medium',
66
+ 'leading-none',
67
+ 'text-primary-foreground',
68
+ 'shadow-md',
69
+ 'select-none',
70
+ ];
71
+ const POSITION_ANCHORS = {
72
+ top: (align) => ({
73
+ originX: align === 'start' ? 'start' : align === 'end' ? 'end' : 'center',
74
+ originY: 'top',
75
+ overlayX: align === 'start' ? 'start' : align === 'end' ? 'end' : 'center',
76
+ overlayY: 'bottom',
77
+ }),
78
+ bottom: (align) => ({
79
+ originX: align === 'start' ? 'start' : align === 'end' ? 'end' : 'center',
80
+ originY: 'bottom',
81
+ overlayX: align === 'start' ? 'start' : align === 'end' ? 'end' : 'center',
82
+ overlayY: 'top',
83
+ }),
84
+ left: (align) => ({
85
+ originX: 'start',
86
+ originY: align === 'start' ? 'top' : align === 'end' ? 'bottom' : 'center',
87
+ overlayX: 'end',
88
+ overlayY: align === 'start' ? 'top' : align === 'end' ? 'bottom' : 'center',
89
+ }),
90
+ right: (align) => ({
91
+ originX: 'end',
92
+ originY: align === 'start' ? 'top' : align === 'end' ? 'bottom' : 'center',
93
+ overlayX: 'start',
94
+ overlayY: align === 'start' ? 'top' : align === 'end' ? 'bottom' : 'center',
95
+ }),
96
+ };
97
+ function positionFor(side, align, sideOffset) {
98
+ const anchor = POSITION_ANCHORS[side](align);
99
+ if (side === 'top') {
100
+ return { ...anchor, offsetY: -sideOffset };
101
+ }
102
+ if (side === 'bottom') {
103
+ return { ...anchor, offsetY: sideOffset };
104
+ }
105
+ if (side === 'left') {
106
+ return { ...anchor, offsetX: -sideOffset };
107
+ }
108
+ return { ...anchor, offsetX: sideOffset };
109
+ }
110
+ let nextTooltipId = 0;
111
+ class TooltipTriggerDirective {
112
+ overlay = inject(Overlay);
113
+ vcr = inject(ViewContainerRef);
114
+ el = inject(ElementRef);
115
+ destroyRef = inject(DestroyRef);
116
+ defaults = inject(TOOLTIP_DEFAULTS, { optional: true });
117
+ uiTooltipTrigger = input.required(/* @ts-ignore */
118
+ ...(ngDevMode ? [{ debugName: "uiTooltipTrigger" }] : /* istanbul ignore next */ []));
119
+ side = input(undefined, /* @ts-ignore */
120
+ ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
121
+ align = input(undefined, /* @ts-ignore */
122
+ ...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
123
+ sideOffset = input(undefined, /* @ts-ignore */
124
+ ...(ngDevMode ? [{ debugName: "sideOffset" }] : /* istanbul ignore next */ []));
125
+ openDelay = input(undefined, /* @ts-ignore */
126
+ ...(ngDevMode ? [{ debugName: "openDelay" }] : /* istanbul ignore next */ []));
127
+ closeDelay = input(undefined, /* @ts-ignore */
128
+ ...(ngDevMode ? [{ debugName: "closeDelay" }] : /* istanbul ignore next */ []));
129
+ disabled = input(false, /* @ts-ignore */
130
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
131
+ openedChange = output();
132
+ isOpen = signal(false, /* @ts-ignore */
133
+ ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
134
+ contentId = signal(null, /* @ts-ignore */
135
+ ...(ngDevMode ? [{ debugName: "contentId" }] : /* istanbul ignore next */ []));
136
+ overlayRef = null;
137
+ openTimeoutId = null;
138
+ closeTimeoutId = null;
139
+ isPointerInsideTrigger = false;
140
+ isTriggerFocused = false;
141
+ isDestroying = false;
142
+ constructor() {
143
+ this.destroyRef.onDestroy(() => {
144
+ this.isDestroying = true;
145
+ this.clearOpenTimeout();
146
+ this.clearCloseTimeout();
147
+ this.contentId.set(null);
148
+ this.isOpen.set(false);
149
+ this.overlayRef?.dispose();
150
+ this.overlayRef = null;
151
+ });
152
+ }
153
+ handlePointerEnter() {
154
+ if (this.disabled()) {
155
+ return;
156
+ }
157
+ this.isPointerInsideTrigger = true;
158
+ this.clearCloseTimeout();
159
+ this.scheduleOpen();
160
+ }
161
+ handlePointerLeave(event) {
162
+ if (this.el.nativeElement.contains(event.relatedTarget)) {
163
+ return;
164
+ }
165
+ this.isPointerInsideTrigger = false;
166
+ this.scheduleClose();
167
+ }
168
+ handleFocusIn() {
169
+ if (this.disabled()) {
170
+ return;
171
+ }
172
+ this.isTriggerFocused = true;
173
+ this.clearCloseTimeout();
174
+ this.scheduleOpen();
175
+ }
176
+ handleFocusOut(event) {
177
+ if (this.el.nativeElement.contains(event.relatedTarget)) {
178
+ return;
179
+ }
180
+ this.isTriggerFocused = false;
181
+ this.scheduleClose();
182
+ }
183
+ open() {
184
+ if (this.isOpen() || this.disabled()) {
185
+ return;
186
+ }
187
+ const side = this.side() ?? this.defaults?.side() ?? 'top';
188
+ const align = this.align() ?? this.defaults?.align() ?? 'center';
189
+ const sideOffset = this.sideOffset() ?? this.defaults?.sideOffset() ?? 4;
190
+ const primary = positionFor(side, align, sideOffset);
191
+ const fallback = positionFor(this.oppositeSide(side), align, sideOffset);
192
+ const positionStrategy = this.overlay
193
+ .position()
194
+ .flexibleConnectedTo(this.el)
195
+ .withPositions([primary, fallback])
196
+ .withPush(false)
197
+ .withFlexibleDimensions(false);
198
+ this.overlayRef = this.overlay.create({
199
+ positionStrategy,
200
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
201
+ hasBackdrop: false,
202
+ panelClass: [...TOOLTIP_PANEL_CLASSES],
203
+ });
204
+ const tooltipId = `ui-tooltip-${nextTooltipId++}`;
205
+ this.overlayRef.overlayElement.id = tooltipId;
206
+ this.overlayRef.overlayElement.setAttribute('role', 'tooltip');
207
+ const portal = new TemplatePortal(this.uiTooltipTrigger().template, this.vcr);
208
+ this.overlayRef.attach(portal);
209
+ this.bindOverlayLifecycle();
210
+ this.contentId.set(tooltipId);
211
+ this.isOpen.set(true);
212
+ if (!this.isDestroying) {
213
+ this.openedChange.emit(true);
214
+ }
215
+ }
216
+ close() {
217
+ this.clearOpenTimeout();
218
+ this.clearCloseTimeout();
219
+ if (!this.isOpen()) {
220
+ return;
221
+ }
222
+ this.overlayRef?.dispose();
223
+ this.overlayRef = null;
224
+ this.contentId.set(null);
225
+ this.isOpen.set(false);
226
+ if (!this.isDestroying) {
227
+ this.openedChange.emit(false);
228
+ }
229
+ }
230
+ bindOverlayLifecycle() {
231
+ if (!this.overlayRef) {
232
+ return;
233
+ }
234
+ merge(this.overlayRef
235
+ .outsidePointerEvents()
236
+ .pipe(filter((event) => !this.el.nativeElement.contains(event.target))), this.overlayRef.keydownEvents().pipe(filter((event) => event.key === 'Escape')), this.overlayRef.detachments())
237
+ .pipe(takeUntilDestroyed(this.destroyRef))
238
+ .subscribe(() => this.close());
239
+ }
240
+ scheduleOpen() {
241
+ this.clearCloseTimeout();
242
+ if (this.isOpen()) {
243
+ return;
244
+ }
245
+ this.clearOpenTimeout();
246
+ this.openTimeoutId = window.setTimeout(() => {
247
+ this.openTimeoutId = null;
248
+ if (this.disabled() || (!this.isPointerInsideTrigger && !this.isTriggerFocused)) {
249
+ return;
250
+ }
251
+ this.open();
252
+ }, this.openDelay() ?? this.defaults?.openDelay() ?? 150);
253
+ }
254
+ scheduleClose() {
255
+ this.clearOpenTimeout();
256
+ if (!this.isOpen()) {
257
+ return;
258
+ }
259
+ this.clearCloseTimeout();
260
+ this.closeTimeoutId = window.setTimeout(() => {
261
+ this.closeTimeoutId = null;
262
+ if (this.isPointerInsideTrigger || this.isTriggerFocused) {
263
+ return;
264
+ }
265
+ this.close();
266
+ }, this.closeDelay() ?? this.defaults?.closeDelay() ?? 0);
267
+ }
268
+ clearOpenTimeout() {
269
+ if (this.openTimeoutId !== null) {
270
+ window.clearTimeout(this.openTimeoutId);
271
+ this.openTimeoutId = null;
272
+ }
273
+ }
274
+ clearCloseTimeout() {
275
+ if (this.closeTimeoutId !== null) {
276
+ window.clearTimeout(this.closeTimeoutId);
277
+ this.closeTimeoutId = null;
278
+ }
279
+ }
280
+ oppositeSide(side) {
281
+ return side === 'top' ? 'bottom' : side === 'bottom' ? 'top' : side === 'left' ? 'right' : 'left';
282
+ }
283
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TooltipTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
284
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: TooltipTriggerDirective, isStandalone: true, selector: "[uiTooltipTrigger]", inputs: { uiTooltipTrigger: { classPropertyName: "uiTooltipTrigger", publicName: "uiTooltipTrigger", isSignal: true, isRequired: true, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, sideOffset: { classPropertyName: "sideOffset", publicName: "sideOffset", isSignal: true, isRequired: false, transformFunction: null }, openDelay: { classPropertyName: "openDelay", publicName: "openDelay", isSignal: true, isRequired: false, transformFunction: null }, closeDelay: { classPropertyName: "closeDelay", publicName: "closeDelay", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { openedChange: "openedChange" }, host: { listeners: { "pointerenter": "handlePointerEnter()", "pointerleave": "handlePointerLeave($event)", "focusin": "handleFocusIn()", "focusout": "handleFocusOut($event)", "keydown.escape": "close()" }, properties: { "attr.aria-describedby": "contentId()", "attr.data-state": "isOpen() ? \"open\" : \"closed\"" } }, exportAs: ["uiTooltipTrigger"], ngImport: i0 });
285
+ }
286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TooltipTriggerDirective, decorators: [{
287
+ type: Directive,
288
+ args: [{
289
+ selector: '[uiTooltipTrigger]',
290
+ exportAs: 'uiTooltipTrigger',
291
+ host: {
292
+ '[attr.aria-describedby]': 'contentId()',
293
+ '[attr.data-state]': 'isOpen() ? "open" : "closed"',
294
+ '(pointerenter)': 'handlePointerEnter()',
295
+ '(pointerleave)': 'handlePointerLeave($event)',
296
+ '(focusin)': 'handleFocusIn()',
297
+ '(focusout)': 'handleFocusOut($event)',
298
+ '(keydown.escape)': 'close()',
299
+ },
300
+ }]
301
+ }], ctorParameters: () => [], propDecorators: { uiTooltipTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "uiTooltipTrigger", required: true }] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], sideOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideOffset", required: false }] }], openDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "openDelay", required: false }] }], closeDelay: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeDelay", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], openedChange: [{ type: i0.Output, args: ["openedChange"] }] } });
302
+
6
303
  /**
7
304
  * Shadcn-styled tooltip directive. Thin wrapper around `matTooltip` that
8
305
  * forces the shadcn panel class and sensible defaults.
@@ -12,7 +309,8 @@ import { MatTooltip } from '@angular/material/tooltip';
12
309
  */
13
310
  class TooltipDirective {
14
311
  tooltip = inject(MatTooltip, { host: true });
15
- uiTooltip = input('', ...(ngDevMode ? [{ debugName: "uiTooltip" }] : /* istanbul ignore next */ []));
312
+ uiTooltip = input('', /* @ts-ignore */
313
+ ...(ngDevMode ? [{ debugName: "uiTooltip" }] : /* istanbul ignore next */ []));
16
314
  constructor() {
17
315
  this.tooltip.tooltipClass = 'ui-tooltip-panel';
18
316
  effect(() => {
@@ -25,10 +323,10 @@ class TooltipDirective {
25
323
  hide() {
26
324
  this.tooltip.hide();
27
325
  }
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
29
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.14", type: TooltipDirective, isStandalone: true, selector: "[uiTooltip]", inputs: { uiTooltip: { classPropertyName: "uiTooltip", publicName: "uiTooltip", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["uiTooltip"], hostDirectives: [{ directive: i1.MatTooltip, inputs: ["matTooltipPosition", "uiTooltipPosition", "matTooltipDisabled", "uiTooltipDisabled", "matTooltipShowDelay", "uiTooltipShowDelay", "matTooltipHideDelay", "uiTooltipHideDelay", "matTooltipTouchGestures", "uiTooltipTouchGestures"] }], ngImport: i0 });
326
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
327
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.0", type: TooltipDirective, isStandalone: true, selector: "[uiTooltip]", inputs: { uiTooltip: { classPropertyName: "uiTooltip", publicName: "uiTooltip", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["uiTooltip"], hostDirectives: [{ directive: i1.MatTooltip, inputs: ["matTooltipPosition", "uiTooltipPosition", "matTooltipDisabled", "uiTooltipDisabled", "matTooltipShowDelay", "uiTooltipShowDelay", "matTooltipHideDelay", "uiTooltipHideDelay", "matTooltipTouchGestures", "uiTooltipTouchGestures"] }], ngImport: i0 });
30
328
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: TooltipDirective, decorators: [{
329
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: TooltipDirective, decorators: [{
32
330
  type: Directive,
33
331
  args: [{
34
332
  selector: '[uiTooltip]',
@@ -52,5 +350,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
52
350
  * Generated bundle index. Do not edit.
53
351
  */
54
352
 
55
- export { TooltipDirective };
353
+ export { TOOLTIP_DEFAULTS, TooltipComponent, TooltipContentDirective, TooltipDirective, TooltipTriggerDirective };
56
354
  //# sourceMappingURL=ojiepermana-angular-component-tooltip.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ojiepermana-angular-component-tooltip.mjs","sources":["../../../projects/angular/component/tooltip/src/lib/tooltip.directive.ts","../../../projects/angular/component/tooltip/ojiepermana-angular-component-tooltip.ts"],"sourcesContent":["import { Directive, effect, inject, input } from '@angular/core';\nimport { MatTooltip, TooltipPosition } from '@angular/material/tooltip';\n\n/**\n * Shadcn-styled tooltip directive. Thin wrapper around `matTooltip` that\n * forces the shadcn panel class and sensible defaults.\n *\n * @example\n * <button ui-button [uiTooltip]=\"'Save changes'\" uiTooltipPosition=\"above\">Save</button>\n */\n@Directive({\n selector: '[uiTooltip]',\n hostDirectives: [\n {\n directive: MatTooltip,\n inputs: [\n 'matTooltipPosition: uiTooltipPosition',\n 'matTooltipDisabled: uiTooltipDisabled',\n 'matTooltipShowDelay: uiTooltipShowDelay',\n 'matTooltipHideDelay: uiTooltipHideDelay',\n 'matTooltipTouchGestures: uiTooltipTouchGestures',\n ],\n },\n ],\n exportAs: 'uiTooltip',\n})\nexport class TooltipDirective {\n private readonly tooltip = inject(MatTooltip, { host: true });\n\n readonly uiTooltip = input<string>('');\n\n constructor() {\n this.tooltip.tooltipClass = 'ui-tooltip-panel';\n effect(() => {\n this.tooltip.message = this.uiTooltip();\n });\n }\n\n show(): void {\n this.tooltip.show();\n }\n\n hide(): void {\n this.tooltip.hide();\n }\n}\n\nexport type { TooltipPosition };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAGA;;;;;;AAMG;MAiBU,gBAAgB,CAAA;IACV,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAEpD,IAAA,SAAS,GAAG,KAAK,CAAS,EAAE,gFAAC;AAEtC,IAAA,WAAA,GAAA;AACE,QAAA,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,kBAAkB;QAC9C,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE;AACzC,QAAA,CAAC,CAAC;IACJ;IAEA,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;IACrB;IAEA,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;IACrB;wGAlBW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,UAAA,EAAA,MAAA,EAAA,CAAA,oBAAA,EAAA,mBAAA,EAAA,oBAAA,EAAA,mBAAA,EAAA,qBAAA,EAAA,oBAAA,EAAA,qBAAA,EAAA,oBAAA,EAAA,yBAAA,EAAA,wBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAhB5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,cAAc,EAAE;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,UAAU;AACrB,4BAAA,MAAM,EAAE;gCACN,uCAAuC;gCACvC,uCAAuC;gCACvC,yCAAyC;gCACzC,yCAAyC;gCACzC,iDAAiD;AAClD,6BAAA;AACF,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE,WAAW;AACtB,iBAAA;;;ACzBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ojiepermana-angular-component-tooltip.mjs","sources":["../../../projects/angular/component/tooltip/tooltip.component.ts","../../../projects/angular/component/tooltip/tooltip-content.directive.ts","../../../projects/angular/component/tooltip/tooltip-trigger.directive.ts","../../../projects/angular/component/tooltip/tooltip.directive.ts","../../../projects/angular/component/tooltip/ojiepermana-angular-component-tooltip.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, InjectionToken, Signal, forwardRef, input } from '@angular/core';\n\nexport type TooltipSide = 'top' | 'right' | 'bottom' | 'left';\nexport type TooltipAlign = 'start' | 'center' | 'end';\n\nexport interface TooltipDefaults {\n readonly side: Signal<TooltipSide>;\n readonly align: Signal<TooltipAlign>;\n readonly sideOffset: Signal<number>;\n readonly openDelay: Signal<number>;\n readonly closeDelay: Signal<number>;\n}\n\nexport const TOOLTIP_DEFAULTS = new InjectionToken<TooltipDefaults>('TOOLTIP_DEFAULTS');\n\n@Component({\n selector: 'ui-tooltip',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: TOOLTIP_DEFAULTS, useExisting: forwardRef(() => TooltipComponent) }],\n host: {\n class: 'contents',\n },\n template: '<ng-content />',\n})\nexport class TooltipComponent implements TooltipDefaults {\n readonly side = input<TooltipSide>('top');\n readonly align = input<TooltipAlign>('center');\n readonly sideOffset = input(4);\n readonly openDelay = input(150);\n readonly closeDelay = input(0);\n}\n","import { Directive, TemplateRef, inject } from '@angular/core';\n\n@Directive({\n selector: 'ng-template[uiTooltipContent]',\n exportAs: 'uiTooltipContent',\n})\nexport class TooltipContentDirective {\n readonly template = inject<TemplateRef<unknown>>(TemplateRef);\n}\n","import { Overlay, OverlayRef, ConnectedPosition } from '@angular/cdk/overlay';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { DestroyRef, Directive, ElementRef, ViewContainerRef, inject, input, output, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { merge } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport { TOOLTIP_DEFAULTS, type TooltipAlign, type TooltipSide } from './tooltip.component';\nimport type { TooltipContentDirective } from './tooltip-content.directive';\n\nconst TOOLTIP_PANEL_CLASSES = [\n 'ui-tooltip-panel',\n 'pointer-events-none',\n 'z-50',\n 'max-w-xs',\n 'overflow-hidden',\n 'rounded-md',\n 'border',\n 'border-border',\n 'bg-primary',\n 'px-3',\n 'py-1.5',\n 'text-xs',\n 'font-medium',\n 'leading-none',\n 'text-primary-foreground',\n 'shadow-md',\n 'select-none',\n] as const;\n\nconst POSITION_ANCHORS: Record<TooltipSide, (align: TooltipAlign) => ConnectedPosition> = {\n top: (align) => ({\n originX: align === 'start' ? 'start' : align === 'end' ? 'end' : 'center',\n originY: 'top',\n overlayX: align === 'start' ? 'start' : align === 'end' ? 'end' : 'center',\n overlayY: 'bottom',\n }),\n bottom: (align) => ({\n originX: align === 'start' ? 'start' : align === 'end' ? 'end' : 'center',\n originY: 'bottom',\n overlayX: align === 'start' ? 'start' : align === 'end' ? 'end' : 'center',\n overlayY: 'top',\n }),\n left: (align) => ({\n originX: 'start',\n originY: align === 'start' ? 'top' : align === 'end' ? 'bottom' : 'center',\n overlayX: 'end',\n overlayY: align === 'start' ? 'top' : align === 'end' ? 'bottom' : 'center',\n }),\n right: (align) => ({\n originX: 'end',\n originY: align === 'start' ? 'top' : align === 'end' ? 'bottom' : 'center',\n overlayX: 'start',\n overlayY: align === 'start' ? 'top' : align === 'end' ? 'bottom' : 'center',\n }),\n};\n\nfunction positionFor(side: TooltipSide, align: TooltipAlign, sideOffset: number): ConnectedPosition {\n const anchor = POSITION_ANCHORS[side](align);\n\n if (side === 'top') {\n return { ...anchor, offsetY: -sideOffset };\n }\n\n if (side === 'bottom') {\n return { ...anchor, offsetY: sideOffset };\n }\n\n if (side === 'left') {\n return { ...anchor, offsetX: -sideOffset };\n }\n\n return { ...anchor, offsetX: sideOffset };\n}\n\nlet nextTooltipId = 0;\n\n@Directive({\n selector: '[uiTooltipTrigger]',\n exportAs: 'uiTooltipTrigger',\n host: {\n '[attr.aria-describedby]': 'contentId()',\n '[attr.data-state]': 'isOpen() ? \"open\" : \"closed\"',\n '(pointerenter)': 'handlePointerEnter()',\n '(pointerleave)': 'handlePointerLeave($event)',\n '(focusin)': 'handleFocusIn()',\n '(focusout)': 'handleFocusOut($event)',\n '(keydown.escape)': 'close()',\n },\n})\nexport class TooltipTriggerDirective {\n private readonly overlay = inject(Overlay);\n private readonly vcr = inject(ViewContainerRef);\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly destroyRef = inject(DestroyRef);\n private readonly defaults = inject(TOOLTIP_DEFAULTS, { optional: true });\n\n readonly uiTooltipTrigger = input.required<TooltipContentDirective>();\n readonly side = input<TooltipSide | undefined>(undefined);\n readonly align = input<TooltipAlign | undefined>(undefined);\n readonly sideOffset = input<number | undefined>(undefined);\n readonly openDelay = input<number | undefined>(undefined);\n readonly closeDelay = input<number | undefined>(undefined);\n readonly disabled = input(false);\n\n readonly openedChange = output<boolean>();\n\n readonly isOpen = signal(false);\n protected readonly contentId = signal<string | null>(null);\n\n private overlayRef: OverlayRef | null = null;\n private openTimeoutId: number | null = null;\n private closeTimeoutId: number | null = null;\n private isPointerInsideTrigger = false;\n private isTriggerFocused = false;\n private isDestroying = false;\n\n constructor() {\n this.destroyRef.onDestroy(() => {\n this.isDestroying = true;\n this.clearOpenTimeout();\n this.clearCloseTimeout();\n this.contentId.set(null);\n this.isOpen.set(false);\n this.overlayRef?.dispose();\n this.overlayRef = null;\n });\n }\n\n handlePointerEnter(): void {\n if (this.disabled()) {\n return;\n }\n\n this.isPointerInsideTrigger = true;\n this.clearCloseTimeout();\n this.scheduleOpen();\n }\n\n handlePointerLeave(event: PointerEvent): void {\n if (this.el.nativeElement.contains(event.relatedTarget as Node | null)) {\n return;\n }\n\n this.isPointerInsideTrigger = false;\n this.scheduleClose();\n }\n\n handleFocusIn(): void {\n if (this.disabled()) {\n return;\n }\n\n this.isTriggerFocused = true;\n this.clearCloseTimeout();\n this.scheduleOpen();\n }\n\n handleFocusOut(event: FocusEvent): void {\n if (this.el.nativeElement.contains(event.relatedTarget as Node | null)) {\n return;\n }\n\n this.isTriggerFocused = false;\n this.scheduleClose();\n }\n\n open(): void {\n if (this.isOpen() || this.disabled()) {\n return;\n }\n\n const side = this.side() ?? this.defaults?.side() ?? 'top';\n const align = this.align() ?? this.defaults?.align() ?? 'center';\n const sideOffset = this.sideOffset() ?? this.defaults?.sideOffset() ?? 4;\n\n const primary = positionFor(side, align, sideOffset);\n const fallback = positionFor(this.oppositeSide(side), align, sideOffset);\n\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.el)\n .withPositions([primary, fallback])\n .withPush(false)\n .withFlexibleDimensions(false);\n\n this.overlayRef = this.overlay.create({\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.reposition(),\n hasBackdrop: false,\n panelClass: [...TOOLTIP_PANEL_CLASSES],\n });\n\n const tooltipId = `ui-tooltip-${nextTooltipId++}`;\n this.overlayRef.overlayElement.id = tooltipId;\n this.overlayRef.overlayElement.setAttribute('role', 'tooltip');\n\n const portal = new TemplatePortal(this.uiTooltipTrigger().template, this.vcr);\n this.overlayRef.attach(portal);\n this.bindOverlayLifecycle();\n\n this.contentId.set(tooltipId);\n this.isOpen.set(true);\n\n if (!this.isDestroying) {\n this.openedChange.emit(true);\n }\n }\n\n close(): void {\n this.clearOpenTimeout();\n this.clearCloseTimeout();\n\n if (!this.isOpen()) {\n return;\n }\n\n this.overlayRef?.dispose();\n this.overlayRef = null;\n this.contentId.set(null);\n this.isOpen.set(false);\n\n if (!this.isDestroying) {\n this.openedChange.emit(false);\n }\n }\n\n private bindOverlayLifecycle(): void {\n if (!this.overlayRef) {\n return;\n }\n\n merge(\n this.overlayRef\n .outsidePointerEvents()\n .pipe(filter((event) => !this.el.nativeElement.contains(event.target as Node))),\n this.overlayRef.keydownEvents().pipe(filter((event) => event.key === 'Escape')),\n this.overlayRef.detachments(),\n )\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => this.close());\n }\n\n private scheduleOpen(): void {\n this.clearCloseTimeout();\n\n if (this.isOpen()) {\n return;\n }\n\n this.clearOpenTimeout();\n this.openTimeoutId = window.setTimeout(\n () => {\n this.openTimeoutId = null;\n\n if (this.disabled() || (!this.isPointerInsideTrigger && !this.isTriggerFocused)) {\n return;\n }\n\n this.open();\n },\n this.openDelay() ?? this.defaults?.openDelay() ?? 150,\n );\n }\n\n private scheduleClose(): void {\n this.clearOpenTimeout();\n\n if (!this.isOpen()) {\n return;\n }\n\n this.clearCloseTimeout();\n this.closeTimeoutId = window.setTimeout(\n () => {\n this.closeTimeoutId = null;\n\n if (this.isPointerInsideTrigger || this.isTriggerFocused) {\n return;\n }\n\n this.close();\n },\n this.closeDelay() ?? this.defaults?.closeDelay() ?? 0,\n );\n }\n\n private clearOpenTimeout(): void {\n if (this.openTimeoutId !== null) {\n window.clearTimeout(this.openTimeoutId);\n this.openTimeoutId = null;\n }\n }\n\n private clearCloseTimeout(): void {\n if (this.closeTimeoutId !== null) {\n window.clearTimeout(this.closeTimeoutId);\n this.closeTimeoutId = null;\n }\n }\n\n private oppositeSide(side: TooltipSide): TooltipSide {\n return side === 'top' ? 'bottom' : side === 'bottom' ? 'top' : side === 'left' ? 'right' : 'left';\n }\n}\n","import { Directive, effect, inject, input } from '@angular/core';\nimport { MatTooltip, TooltipPosition } from '@angular/material/tooltip';\n\n/**\n * Shadcn-styled tooltip directive. Thin wrapper around `matTooltip` that\n * forces the shadcn panel class and sensible defaults.\n *\n * @example\n * <button ui-button [uiTooltip]=\"'Save changes'\" uiTooltipPosition=\"above\">Save</button>\n */\n@Directive({\n selector: '[uiTooltip]',\n hostDirectives: [\n {\n directive: MatTooltip,\n inputs: [\n 'matTooltipPosition: uiTooltipPosition',\n 'matTooltipDisabled: uiTooltipDisabled',\n 'matTooltipShowDelay: uiTooltipShowDelay',\n 'matTooltipHideDelay: uiTooltipHideDelay',\n 'matTooltipTouchGestures: uiTooltipTouchGestures',\n ],\n },\n ],\n exportAs: 'uiTooltip',\n})\nexport class TooltipDirective {\n private readonly tooltip = inject(MatTooltip, { host: true });\n\n readonly uiTooltip = input<string>('');\n\n constructor() {\n this.tooltip.tooltipClass = 'ui-tooltip-panel';\n effect(() => {\n this.tooltip.message = this.uiTooltip();\n });\n }\n\n show(): void {\n this.tooltip.show();\n }\n\n hide(): void {\n this.tooltip.hide();\n }\n}\n\nexport type { TooltipPosition };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAaa,gBAAgB,GAAG,IAAI,cAAc,CAAkB,kBAAkB;MAWzE,gBAAgB,CAAA;IAClB,IAAI,GAAG,KAAK,CAAc,KAAK;6EAAC;IAChC,KAAK,GAAG,KAAK,CAAe,QAAQ;8EAAC;IACrC,UAAU,GAAG,KAAK,CAAC,CAAC;mFAAC;IACrB,SAAS,GAAG,KAAK,CAAC,GAAG;kFAAC;IACtB,UAAU,GAAG,KAAK,CAAC,CAAC;mFAAC;uGALnB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,C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B;IAEA,IAAI,GAAA;AACF,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;IACrB;uGAlBW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,WAAA,CAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,UAAA,EAAA,MAAA,EAAA,CAAA,oBAAA,EAAA,mBAAA,EAAA,oBAAA,EAAA,mBAAA,EAAA,qBAAA,EAAA,oBAAA,EAAA,qBAAA,EAAA,oBAAA,EAAA,yBAAA,EAAA,wBAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAhB5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,cAAc,EAAE;AACd,wBAAA;AACE,4BAAA,SAAS,EAAE,UAAU;AACrB,4BAAA,MAAM,EAAE;gCACN,uCAAuC;gCACvC,uCAAuC;gCACvC,yCAAyC;gCACzC,yCAAyC;gCACzC,iDAAiD;AAClD,6BAAA;AACF,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE,WAAW;AACtB,iBAAA;;;ACzBD;;AAEG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"ojiepermana-angular-component-utils.mjs","sources":["../../../projects/angular/component/utils/src/lib/cn.util.ts","../../../projects/angular/component/utils/ojiepermana-angular-component-utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAGM,SAAU,EAAE,CAAC,GAAG,MAAoB,EAAA;AACxC,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9B;;ACLA;;AAEG;;;;"}
1
+ {"version":3,"file":"ojiepermana-angular-component-utils.mjs","sources":["../../../projects/angular/component/utils/cn.util.ts","../../../projects/angular/component/utils/ojiepermana-angular-component-utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]): string {\n return twMerge(clsx(inputs));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAGM,SAAU,EAAE,CAAC,GAAG,MAAoB,EAAA;AACxC,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9B;;ACLA;;AAEG;;;;"}
@@ -51,37 +51,58 @@ class ThemePanelComponent {
51
51
  sanitizer = inject(DomSanitizer);
52
52
  themePort = inject(THEME_PANEL_THEME_PORT, { optional: true });
53
53
  layoutPort = inject(THEME_PANEL_LAYOUT_PORT, { optional: true });
54
- connected = input(true, ...(ngDevMode ? [{ debugName: "connected" }] : /* istanbul ignore next */ []));
55
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
56
- title = input('Theme panel', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
57
- description = input('', ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
58
- userName = input('', ...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
59
- userSubtitle = input('', ...(ngDevMode ? [{ debugName: "userSubtitle" }] : /* istanbul ignore next */ []));
60
- userInitials = input('', ...(ngDevMode ? [{ debugName: "userInitials" }] : /* istanbul ignore next */ []));
61
- themeColor = input('base', ...(ngDevMode ? [{ debugName: "themeColor" }] : /* istanbul ignore next */ []));
62
- themeMode = input('light', ...(ngDevMode ? [{ debugName: "themeMode" }] : /* istanbul ignore next */ []));
63
- themeStyle = input('default', ...(ngDevMode ? [{ debugName: "themeStyle" }] : /* istanbul ignore next */ []));
64
- layoutMode = input('vertical', ...(ngDevMode ? [{ debugName: "layoutMode" }] : /* istanbul ignore next */ []));
65
- layoutWidth = input('container', ...(ngDevMode ? [{ debugName: "layoutWidth" }] : /* istanbul ignore next */ []));
54
+ connected = input(true, /* @ts-ignore */
55
+ ...(ngDevMode ? [{ debugName: "connected" }] : /* istanbul ignore next */ []));
56
+ class = input('', /* @ts-ignore */
57
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
58
+ title = input('Theme panel', /* @ts-ignore */
59
+ ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
60
+ description = input('', /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
62
+ userName = input('', /* @ts-ignore */
63
+ ...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
64
+ userSubtitle = input('', /* @ts-ignore */
65
+ ...(ngDevMode ? [{ debugName: "userSubtitle" }] : /* istanbul ignore next */ []));
66
+ userInitials = input('', /* @ts-ignore */
67
+ ...(ngDevMode ? [{ debugName: "userInitials" }] : /* istanbul ignore next */ []));
68
+ themeColor = input('base', /* @ts-ignore */
69
+ ...(ngDevMode ? [{ debugName: "themeColor" }] : /* istanbul ignore next */ []));
70
+ themeMode = input('light', /* @ts-ignore */
71
+ ...(ngDevMode ? [{ debugName: "themeMode" }] : /* istanbul ignore next */ []));
72
+ themeStyle = input('default', /* @ts-ignore */
73
+ ...(ngDevMode ? [{ debugName: "themeStyle" }] : /* istanbul ignore next */ []));
74
+ layoutMode = input('vertical', /* @ts-ignore */
75
+ ...(ngDevMode ? [{ debugName: "layoutMode" }] : /* istanbul ignore next */ []));
76
+ layoutWidth = input('container', /* @ts-ignore */
77
+ ...(ngDevMode ? [{ debugName: "layoutWidth" }] : /* istanbul ignore next */ []));
66
78
  themeColorChange = output();
67
79
  themeModeChange = output();
68
80
  themeStyleChange = output();
69
81
  layoutModeChange = output();
70
82
  layoutWidthChange = output();
71
- currentThemeColor = signal(this.themeColor(), ...(ngDevMode ? [{ debugName: "currentThemeColor" }] : /* istanbul ignore next */ []));
72
- currentThemeMode = signal(this.themeMode(), ...(ngDevMode ? [{ debugName: "currentThemeMode" }] : /* istanbul ignore next */ []));
73
- currentThemeStyle = signal(this.themeStyle(), ...(ngDevMode ? [{ debugName: "currentThemeStyle" }] : /* istanbul ignore next */ []));
74
- currentLayoutMode = signal(this.layoutMode(), ...(ngDevMode ? [{ debugName: "currentLayoutMode" }] : /* istanbul ignore next */ []));
75
- currentLayoutWidth = signal(this.layoutWidth(), ...(ngDevMode ? [{ debugName: "currentLayoutWidth" }] : /* istanbul ignore next */ []));
83
+ currentThemeColor = signal(this.themeColor(), /* @ts-ignore */
84
+ ...(ngDevMode ? [{ debugName: "currentThemeColor" }] : /* istanbul ignore next */ []));
85
+ currentThemeMode = signal(this.themeMode(), /* @ts-ignore */
86
+ ...(ngDevMode ? [{ debugName: "currentThemeMode" }] : /* istanbul ignore next */ []));
87
+ currentThemeStyle = signal(this.themeStyle(), /* @ts-ignore */
88
+ ...(ngDevMode ? [{ debugName: "currentThemeStyle" }] : /* istanbul ignore next */ []));
89
+ currentLayoutMode = signal(this.layoutMode(), /* @ts-ignore */
90
+ ...(ngDevMode ? [{ debugName: "currentLayoutMode" }] : /* istanbul ignore next */ []));
91
+ currentLayoutWidth = signal(this.layoutWidth(), /* @ts-ignore */
92
+ ...(ngDevMode ? [{ debugName: "currentLayoutWidth" }] : /* istanbul ignore next */ []));
76
93
  themeColorOptions = THEME_COLOR_OPTIONS;
77
94
  themeModeOptions = THEME_MODE_OPTIONS;
78
95
  themeStyleOptions = THEME_STYLE_OPTIONS;
79
96
  layoutModeOptions = LAYOUT_MODE_OPTIONS;
80
97
  layoutWidthOptions = LAYOUT_WIDTH_OPTIONS;
81
- hostClasses = computed(() => cn('block overflow-hidden rounded-lg border border-border/70 bg-card text-card-foreground shadow-sm', this.class()), ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
82
- hasUserHeader = computed(() => !!this.userName().trim() || !!this.userSubtitle().trim(), ...(ngDevMode ? [{ debugName: "hasUserHeader" }] : /* istanbul ignore next */ []));
83
- resolvedUserInitials = computed(() => this.userInitials().trim() || this.toInitials(this.userName() || this.title()), ...(ngDevMode ? [{ debugName: "resolvedUserInitials" }] : /* istanbul ignore next */ []));
84
- currentThemeColorLabel = computed(() => this.themeColorOptions.find((option) => option.value === this.currentThemeColor())?.label ?? '', ...(ngDevMode ? [{ debugName: "currentThemeColorLabel" }] : /* istanbul ignore next */ []));
98
+ hostClasses = computed(() => cn('block overflow-hidden rounded-lg border border-border/70 bg-card text-card-foreground shadow-sm', this.class()), /* @ts-ignore */
99
+ ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
100
+ hasUserHeader = computed(() => !!this.userName().trim() || !!this.userSubtitle().trim(), /* @ts-ignore */
101
+ ...(ngDevMode ? [{ debugName: "hasUserHeader" }] : /* istanbul ignore next */ []));
102
+ resolvedUserInitials = computed(() => this.userInitials().trim() || this.toInitials(this.userName() || this.title()), /* @ts-ignore */
103
+ ...(ngDevMode ? [{ debugName: "resolvedUserInitials" }] : /* istanbul ignore next */ []));
104
+ currentThemeColorLabel = computed(() => this.themeColorOptions.find((option) => option.value === this.currentThemeColor())?.label ?? '', /* @ts-ignore */
105
+ ...(ngDevMode ? [{ debugName: "currentThemeColorLabel" }] : /* istanbul ignore next */ []));
85
106
  constructor() {
86
107
  effect(() => {
87
108
  this.currentThemeColor.set(this.connected() && this.themePort ? this.themePort.color() : this.themeColor());
@@ -187,8 +208,8 @@ class ThemePanelComponent {
187
208
  }
188
209
  return words.map((word) => word[0]?.toUpperCase() ?? '').join('');
189
210
  }
190
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ThemePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
191
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: ThemePanelComponent, isStandalone: true, selector: "ui-theme-panel", inputs: { connected: { classPropertyName: "connected", publicName: "connected", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: false, transformFunction: null }, userSubtitle: { classPropertyName: "userSubtitle", publicName: "userSubtitle", isSignal: true, isRequired: false, transformFunction: null }, userInitials: { classPropertyName: "userInitials", publicName: "userInitials", isSignal: true, isRequired: false, transformFunction: null }, themeColor: { classPropertyName: "themeColor", publicName: "themeColor", isSignal: true, isRequired: false, transformFunction: null }, themeMode: { classPropertyName: "themeMode", publicName: "themeMode", isSignal: true, isRequired: false, transformFunction: null }, themeStyle: { classPropertyName: "themeStyle", publicName: "themeStyle", isSignal: true, isRequired: false, transformFunction: null }, layoutMode: { classPropertyName: "layoutMode", publicName: "layoutMode", isSignal: true, isRequired: false, transformFunction: null }, layoutWidth: { classPropertyName: "layoutWidth", publicName: "layoutWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { themeColorChange: "themeColorChange", themeModeChange: "themeModeChange", themeStyleChange: "themeStyleChange", layoutModeChange: "layoutModeChange", layoutWidthChange: "layoutWidthChange" }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: `
211
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ThemePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
212
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: ThemePanelComponent, isStandalone: true, selector: "ui-theme-panel", inputs: { connected: { classPropertyName: "connected", publicName: "connected", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: false, transformFunction: null }, userSubtitle: { classPropertyName: "userSubtitle", publicName: "userSubtitle", isSignal: true, isRequired: false, transformFunction: null }, userInitials: { classPropertyName: "userInitials", publicName: "userInitials", isSignal: true, isRequired: false, transformFunction: null }, themeColor: { classPropertyName: "themeColor", publicName: "themeColor", isSignal: true, isRequired: false, transformFunction: null }, themeMode: { classPropertyName: "themeMode", publicName: "themeMode", isSignal: true, isRequired: false, transformFunction: null }, themeStyle: { classPropertyName: "themeStyle", publicName: "themeStyle", isSignal: true, isRequired: false, transformFunction: null }, layoutMode: { classPropertyName: "layoutMode", publicName: "layoutMode", isSignal: true, isRequired: false, transformFunction: null }, layoutWidth: { classPropertyName: "layoutWidth", publicName: "layoutWidth", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { themeColorChange: "themeColorChange", themeModeChange: "themeModeChange", themeStyleChange: "themeStyleChange", layoutModeChange: "layoutModeChange", layoutWidthChange: "layoutWidthChange" }, host: { properties: { "class": "hostClasses()" } }, ngImport: i0, template: `
192
213
  <div class="flex flex-col gap-4 p-4">
193
214
  @if (hasUserHeader()) {
194
215
  <header class="flex items-center gap-3 px-1 pt-1">
@@ -375,7 +396,7 @@ class ThemePanelComponent {
375
396
  </div>
376
397
  `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[ui-button], a[ui-button]", inputs: ["variant", "size", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
377
398
  }
378
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ThemePanelComponent, decorators: [{
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ThemePanelComponent, decorators: [{
379
400
  type: Component,
380
401
  args: [{
381
402
  selector: 'ui-theme-panel',