@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
@@ -0,0 +1,481 @@
1
+ import { DOCUMENT } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { Directive, inject, ElementRef, input, signal, computed, ChangeDetectionStrategy, Component, booleanAttribute, contentChildren, effect, untracked, forwardRef } from '@angular/core';
4
+ import { cn } from '@ojiepermana/angular/component/utils';
5
+
6
+ class ResizableGroupContextBase {
7
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizableGroupContextBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: ResizableGroupContextBase, isStandalone: true, ngImport: i0 });
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizableGroupContextBase, decorators: [{
11
+ type: Directive
12
+ }] });
13
+ class ResizablePanelComponent {
14
+ ctx = inject(ResizableGroupContextBase);
15
+ host = inject((ElementRef));
16
+ defaultSize = input(null, /* @ts-ignore */
17
+ ...(ngDevMode ? [{ debugName: "defaultSize" }] : /* istanbul ignore next */ []));
18
+ minSize = input('10%', /* @ts-ignore */
19
+ ...(ngDevMode ? [{ debugName: "minSize" }] : /* istanbul ignore next */ []));
20
+ maxSize = input('90%', /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "maxSize" }] : /* istanbul ignore next */ []));
22
+ id = input(null, /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
24
+ class = input('', /* @ts-ignore */
25
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
26
+ generatedId = `ui-resizable-panel-${nextId()}`;
27
+ currentSize = signal(null, /* @ts-ignore */
28
+ ...(ngDevMode ? [{ debugName: "currentSize" }] : /* istanbul ignore next */ []));
29
+ resolvedId = computed(() => this.id() ?? this.generatedId, /* @ts-ignore */
30
+ ...(ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []));
31
+ classes = computed(() => cn('relative block min-h-0 min-w-0 overflow-hidden', this.ctx.groupOrientation() === 'horizontal' ? 'h-full' : 'w-full', this.class()), /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
33
+ flexStyle = computed(() => {
34
+ const size = this.currentSize();
35
+ return size == null ? '1 1 0%' : `0 0 ${size}%`;
36
+ }, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "flexStyle" }] : /* istanbul ignore next */ []));
38
+ panelId() {
39
+ return this.resolvedId();
40
+ }
41
+ preferredSizePercent() {
42
+ return parsePercent(this.defaultSize());
43
+ }
44
+ minSizePercent() {
45
+ return clamp(parsePercent(this.minSize()) ?? 10, 0, 100);
46
+ }
47
+ maxSizePercent() {
48
+ return clamp(parsePercent(this.maxSize()) ?? 90, this.minSizePercent(), 100);
49
+ }
50
+ size() {
51
+ return this.currentSize() ?? 0;
52
+ }
53
+ setSize(size) {
54
+ this.currentSize.set(roundPercentage(clamp(size, 0, 100)));
55
+ }
56
+ nativeElement() {
57
+ return this.host.nativeElement;
58
+ }
59
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizablePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
60
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: ResizablePanelComponent, isStandalone: true, selector: "ui-resizable-panel", inputs: { defaultSize: { classPropertyName: "defaultSize", publicName: "defaultSize", isSignal: true, isRequired: false, transformFunction: null }, minSize: { classPropertyName: "minSize", publicName: "minSize", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "resolvedId()", "style.flex": "flexStyle()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
61
+ }
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizablePanelComponent, decorators: [{
63
+ type: Component,
64
+ args: [{
65
+ selector: 'ui-resizable-panel',
66
+ changeDetection: ChangeDetectionStrategy.OnPush,
67
+ host: {
68
+ '[class]': 'classes()',
69
+ '[attr.id]': 'resolvedId()',
70
+ '[style.flex]': 'flexStyle()',
71
+ },
72
+ template: `<ng-content />`,
73
+ }]
74
+ }], propDecorators: { defaultSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSize", required: false }] }], minSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "minSize", required: false }] }], maxSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSize", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
75
+ class ResizableHandleComponent {
76
+ ctx = inject(ResizableGroupContextBase);
77
+ host = inject((ElementRef));
78
+ withHandle = input(false, { ...(ngDevMode ? { debugName: "withHandle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
79
+ ariaLabel = input(null, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
80
+ class = input('', /* @ts-ignore */
81
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
82
+ lastExpandedPrimarySize = signal(null, /* @ts-ignore */
83
+ ...(ngDevMode ? [{ debugName: "lastExpandedPrimarySize" }] : /* istanbul ignore next */ []));
84
+ active = signal(false, /* @ts-ignore */
85
+ ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
86
+ state = computed(() => this.ctx.pairState(this), /* @ts-ignore */
87
+ ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
88
+ classes = computed(() => cn('group relative flex shrink-0 select-none items-center justify-center bg-transparent text-foreground transition-colors', 'touch-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background', this.ctx.groupOrientation() === 'horizontal'
89
+ ? 'h-full w-2 cursor-col-resize before:absolute before:inset-y-0 before:left-1/2 before:w-px before:-translate-x-1/2 before:bg-border'
90
+ : 'h-2 w-full cursor-row-resize before:absolute before:inset-x-0 before:top-1/2 before:h-px before:-translate-y-1/2 before:bg-border', this.active() ? 'before:bg-foreground/60' : 'hover:before:bg-foreground/40', this.class()), /* @ts-ignore */
91
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
92
+ separatorOrientation = computed(() => this.ctx.groupOrientation() === 'horizontal' ? 'vertical' : 'horizontal', /* @ts-ignore */
93
+ ...(ngDevMode ? [{ debugName: "separatorOrientation" }] : /* istanbul ignore next */ []));
94
+ controls = computed(() => this.state()?.panelId ?? null, /* @ts-ignore */
95
+ ...(ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []));
96
+ label = computed(() => this.ariaLabel() ?? 'Resize panel', /* @ts-ignore */
97
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
98
+ valueNow = computed(() => toAriaValue(this.state()?.valueNow), /* @ts-ignore */
99
+ ...(ngDevMode ? [{ debugName: "valueNow" }] : /* istanbul ignore next */ []));
100
+ valueMin = computed(() => toAriaValue(this.state()?.valueMin), /* @ts-ignore */
101
+ ...(ngDevMode ? [{ debugName: "valueMin" }] : /* istanbul ignore next */ []));
102
+ valueMax = computed(() => toAriaValue(this.state()?.valueMax), /* @ts-ignore */
103
+ ...(ngDevMode ? [{ debugName: "valueMax" }] : /* istanbul ignore next */ []));
104
+ valueText = computed(() => {
105
+ const value = this.state()?.valueNow;
106
+ return value == null ? null : `${Math.round(value)}%`;
107
+ }, /* @ts-ignore */
108
+ ...(ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []));
109
+ onPointerDown(event) {
110
+ if (event.button !== 0) {
111
+ return;
112
+ }
113
+ event.preventDefault();
114
+ this.host.nativeElement.focus();
115
+ this.ctx.beginPointerResize(this, event);
116
+ }
117
+ onKeydown(event) {
118
+ this.ctx.handleKeydown(this, event);
119
+ }
120
+ setActive(active) {
121
+ this.active.set(active);
122
+ }
123
+ rememberPrimarySize(size) {
124
+ this.lastExpandedPrimarySize.set(roundPercentage(size));
125
+ }
126
+ rememberedPrimarySize() {
127
+ return this.lastExpandedPrimarySize();
128
+ }
129
+ nativeElement() {
130
+ return this.host.nativeElement;
131
+ }
132
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizableHandleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
133
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: ResizableHandleComponent, isStandalone: true, selector: "ui-resizable-handle", inputs: { withHandle: { classPropertyName: "withHandle", publicName: "withHandle", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator", "tabindex": "0" }, listeners: { "keydown": "onKeydown($event)", "pointerdown": "onPointerDown($event)" }, properties: { "class": "classes()", "attr.data-active": "active() ? \"true\" : null", "attr.aria-controls": "controls()", "attr.aria-label": "label()", "attr.aria-orientation": "separatorOrientation()", "attr.aria-valuenow": "valueNow()", "attr.aria-valuemin": "valueMin()", "attr.aria-valuemax": "valueMax()", "attr.aria-valuetext": "valueText()" } }, ngImport: i0, template: `
134
+ @if (withHandle()) {
135
+ <span
136
+ aria-hidden="true"
137
+ class="pointer-events-none inline-flex items-center justify-center rounded-sm border border-border bg-background px-1 py-0.5 shadow-sm">
138
+ <svg class="h-3 w-3 text-muted-foreground" viewBox="0 0 24 24" fill="currentColor">
139
+ <circle cx="9" cy="8" r="1.25" />
140
+ <circle cx="15" cy="8" r="1.25" />
141
+ <circle cx="9" cy="12" r="1.25" />
142
+ <circle cx="15" cy="12" r="1.25" />
143
+ <circle cx="9" cy="16" r="1.25" />
144
+ <circle cx="15" cy="16" r="1.25" />
145
+ </svg>
146
+ </span>
147
+ }
148
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
149
+ }
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizableHandleComponent, decorators: [{
151
+ type: Component,
152
+ args: [{
153
+ selector: 'ui-resizable-handle',
154
+ changeDetection: ChangeDetectionStrategy.OnPush,
155
+ host: {
156
+ '[class]': 'classes()',
157
+ role: 'separator',
158
+ tabindex: '0',
159
+ '[attr.data-active]': 'active() ? "true" : null',
160
+ '[attr.aria-controls]': 'controls()',
161
+ '[attr.aria-label]': 'label()',
162
+ '[attr.aria-orientation]': 'separatorOrientation()',
163
+ '[attr.aria-valuenow]': 'valueNow()',
164
+ '[attr.aria-valuemin]': 'valueMin()',
165
+ '[attr.aria-valuemax]': 'valueMax()',
166
+ '[attr.aria-valuetext]': 'valueText()',
167
+ '(keydown)': 'onKeydown($event)',
168
+ '(pointerdown)': 'onPointerDown($event)',
169
+ },
170
+ template: `
171
+ @if (withHandle()) {
172
+ <span
173
+ aria-hidden="true"
174
+ class="pointer-events-none inline-flex items-center justify-center rounded-sm border border-border bg-background px-1 py-0.5 shadow-sm">
175
+ <svg class="h-3 w-3 text-muted-foreground" viewBox="0 0 24 24" fill="currentColor">
176
+ <circle cx="9" cy="8" r="1.25" />
177
+ <circle cx="15" cy="8" r="1.25" />
178
+ <circle cx="9" cy="12" r="1.25" />
179
+ <circle cx="15" cy="12" r="1.25" />
180
+ <circle cx="9" cy="16" r="1.25" />
181
+ <circle cx="15" cy="16" r="1.25" />
182
+ </svg>
183
+ </span>
184
+ }
185
+ `,
186
+ }]
187
+ }], propDecorators: { withHandle: [{ type: i0.Input, args: [{ isSignal: true, alias: "withHandle", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
188
+ class ResizablePanelGroupComponent extends ResizableGroupContextBase {
189
+ host = inject((ElementRef));
190
+ document = inject(DOCUMENT);
191
+ orientation = input('horizontal', /* @ts-ignore */
192
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
193
+ class = input('', /* @ts-ignore */
194
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
195
+ panels = contentChildren(ResizablePanelComponent, /* @ts-ignore */
196
+ ...(ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []));
197
+ handles = contentChildren(ResizableHandleComponent, /* @ts-ignore */
198
+ ...(ngDevMode ? [{ debugName: "handles" }] : /* istanbul ignore next */ []));
199
+ pointerSession = null;
200
+ removePointerListeners = null;
201
+ classes = computed(() => cn('flex w-full min-h-0 min-w-0 items-stretch', this.orientation() === 'horizontal' ? 'flex-row' : 'flex-col', this.class()), /* @ts-ignore */
202
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
203
+ syncLayout = effect(() => {
204
+ const panels = this.panels();
205
+ void this.handles();
206
+ if (!panels.length) {
207
+ return;
208
+ }
209
+ untracked(() => this.initializeLayout(panels));
210
+ }, /* @ts-ignore */
211
+ ...(ngDevMode ? [{ debugName: "syncLayout" }] : /* istanbul ignore next */ []));
212
+ groupOrientation() {
213
+ return this.orientation();
214
+ }
215
+ panelDirection() {
216
+ const view = this.document.defaultView;
217
+ if (!view) {
218
+ return 'ltr';
219
+ }
220
+ return view.getComputedStyle(this.host.nativeElement).direction === 'rtl' ? 'rtl' : 'ltr';
221
+ }
222
+ pairState(handle) {
223
+ const pair = this.resolvePair(handle);
224
+ if (!pair) {
225
+ return null;
226
+ }
227
+ const bounds = this.boundsForPair(pair);
228
+ return {
229
+ panelId: pair.previous.panelId(),
230
+ valueNow: pair.previous.size(),
231
+ valueMin: bounds.min,
232
+ valueMax: bounds.max,
233
+ };
234
+ }
235
+ beginPointerResize(handle, event) {
236
+ const pair = this.resolvePair(handle);
237
+ if (!pair) {
238
+ return;
239
+ }
240
+ this.finishPointerResize();
241
+ handle.setActive(true);
242
+ this.pointerSession = {
243
+ handle,
244
+ pair,
245
+ startCoordinate: this.coordinateFromEvent(event),
246
+ previousSize: pair.previous.size(),
247
+ };
248
+ const move = (nextEvent) => {
249
+ const session = this.pointerSession;
250
+ if (!session) {
251
+ return;
252
+ }
253
+ const containerSize = this.containerSize();
254
+ if (containerSize <= 0) {
255
+ return;
256
+ }
257
+ const delta = this.coordinateFromEvent(nextEvent) - session.startCoordinate;
258
+ const directionFactor = this.orientation() === 'horizontal' && this.panelDirection() === 'rtl' ? -1 : 1;
259
+ const deltaPercent = (delta / containerSize) * 100 * directionFactor;
260
+ this.applyPrimarySize(session.pair, session.previousSize + deltaPercent);
261
+ };
262
+ const end = () => this.finishPointerResize();
263
+ this.document.addEventListener('pointermove', move);
264
+ this.document.addEventListener('pointerup', end);
265
+ this.document.addEventListener('pointercancel', end);
266
+ this.removePointerListeners = () => {
267
+ this.document.removeEventListener('pointermove', move);
268
+ this.document.removeEventListener('pointerup', end);
269
+ this.document.removeEventListener('pointercancel', end);
270
+ };
271
+ }
272
+ handleKeydown(handle, event) {
273
+ const pair = this.resolvePair(handle);
274
+ if (!pair) {
275
+ return;
276
+ }
277
+ const current = pair.previous.size();
278
+ const bounds = this.boundsForPair(pair);
279
+ const horizontalStep = this.panelDirection() === 'rtl' ? -10 : 10;
280
+ switch (event.key) {
281
+ case 'ArrowRight':
282
+ if (this.orientation() !== 'horizontal') {
283
+ return;
284
+ }
285
+ this.applyPrimarySize(pair, current + horizontalStep);
286
+ break;
287
+ case 'ArrowLeft':
288
+ if (this.orientation() !== 'horizontal') {
289
+ return;
290
+ }
291
+ this.applyPrimarySize(pair, current - horizontalStep);
292
+ break;
293
+ case 'ArrowDown':
294
+ if (this.orientation() !== 'vertical') {
295
+ return;
296
+ }
297
+ this.applyPrimarySize(pair, current + 10);
298
+ break;
299
+ case 'ArrowUp':
300
+ if (this.orientation() !== 'vertical') {
301
+ return;
302
+ }
303
+ this.applyPrimarySize(pair, current - 10);
304
+ break;
305
+ case 'Home':
306
+ this.applyPrimarySize(pair, bounds.min);
307
+ break;
308
+ case 'End':
309
+ this.applyPrimarySize(pair, bounds.max);
310
+ break;
311
+ case 'Enter': {
312
+ const remembered = handle.rememberedPrimarySize();
313
+ if (current > bounds.min + 0.5) {
314
+ handle.rememberPrimarySize(current);
315
+ this.applyPrimarySize(pair, bounds.min);
316
+ }
317
+ else if (remembered != null) {
318
+ this.applyPrimarySize(pair, remembered);
319
+ }
320
+ else {
321
+ this.applyPrimarySize(pair, (bounds.min + bounds.max) / 2);
322
+ }
323
+ break;
324
+ }
325
+ default:
326
+ return;
327
+ }
328
+ event.preventDefault();
329
+ }
330
+ ngOnDestroy() {
331
+ this.finishPointerResize();
332
+ }
333
+ finishPointerResize() {
334
+ this.pointerSession?.handle.setActive(false);
335
+ this.pointerSession = null;
336
+ this.removePointerListeners?.();
337
+ this.removePointerListeners = null;
338
+ }
339
+ initializeLayout(panels) {
340
+ const minimums = panels.map((panel) => panel.minSizePercent());
341
+ const maximums = panels.map((panel, index) => Math.max(minimums[index], panel.maxSizePercent()));
342
+ const preferred = panels.map((panel) => panel.preferredSizePercent());
343
+ const sizes = resolveInitialSizes(preferred, minimums, maximums);
344
+ panels.forEach((panel, index) => panel.setSize(sizes[index]));
345
+ }
346
+ resolvePair(handle) {
347
+ const panels = new Map(this.panels().map((panel) => [panel.nativeElement(), panel]));
348
+ const children = Array.from(this.host.nativeElement.children);
349
+ const handleIndex = children.indexOf(handle.nativeElement());
350
+ if (handleIndex === -1) {
351
+ return null;
352
+ }
353
+ let previous = null;
354
+ let next = null;
355
+ for (let index = handleIndex - 1; index >= 0; index -= 1) {
356
+ previous = panels.get(children[index]) ?? null;
357
+ if (previous) {
358
+ break;
359
+ }
360
+ }
361
+ for (let index = handleIndex + 1; index < children.length; index += 1) {
362
+ next = panels.get(children[index]) ?? null;
363
+ if (next) {
364
+ break;
365
+ }
366
+ }
367
+ if (!previous || !next) {
368
+ return null;
369
+ }
370
+ return { previous, next };
371
+ }
372
+ boundsForPair(pair) {
373
+ const pairTotal = pair.previous.size() + pair.next.size();
374
+ const min = Math.max(pair.previous.minSizePercent(), pairTotal - pair.next.maxSizePercent());
375
+ const max = Math.min(pair.previous.maxSizePercent(), pairTotal - pair.next.minSizePercent());
376
+ if (min > max) {
377
+ return { min: pairTotal / 2, max: pairTotal / 2 };
378
+ }
379
+ return { min: roundPercentage(min), max: roundPercentage(max) };
380
+ }
381
+ applyPrimarySize(pair, nextPrimarySize) {
382
+ const pairTotal = pair.previous.size() + pair.next.size();
383
+ const bounds = this.boundsForPair(pair);
384
+ const primarySize = roundPercentage(clamp(nextPrimarySize, bounds.min, bounds.max));
385
+ const secondarySize = roundPercentage(pairTotal - primarySize);
386
+ pair.previous.setSize(primarySize);
387
+ pair.next.setSize(secondarySize);
388
+ }
389
+ containerSize() {
390
+ const rect = this.host.nativeElement.getBoundingClientRect();
391
+ return this.orientation() === 'horizontal' ? rect.width : rect.height;
392
+ }
393
+ coordinateFromEvent(event) {
394
+ return this.orientation() === 'horizontal' ? event.clientX : event.clientY;
395
+ }
396
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizablePanelGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
397
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: ResizablePanelGroupComponent, isStandalone: true, selector: "ui-resizable-panel-group", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-orientation": "orientation()" } }, providers: [{ provide: ResizableGroupContextBase, useExisting: forwardRef(() => ResizablePanelGroupComponent) }], queries: [{ propertyName: "panels", predicate: ResizablePanelComponent, isSignal: true }, { propertyName: "handles", predicate: ResizableHandleComponent, isSignal: true }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
398
+ }
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizablePanelGroupComponent, decorators: [{
400
+ type: Component,
401
+ args: [{
402
+ selector: 'ui-resizable-panel-group',
403
+ changeDetection: ChangeDetectionStrategy.OnPush,
404
+ providers: [{ provide: ResizableGroupContextBase, useExisting: forwardRef(() => ResizablePanelGroupComponent) }],
405
+ host: {
406
+ '[class]': 'classes()',
407
+ '[attr.data-orientation]': 'orientation()',
408
+ },
409
+ template: `<ng-content />`,
410
+ }]
411
+ }], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], panels: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => ResizablePanelComponent), { isSignal: true }] }], handles: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => ResizableHandleComponent), { isSignal: true }] }] } });
412
+ let _id = 0;
413
+ function nextId() {
414
+ return ++_id;
415
+ }
416
+ function clamp(value, min, max) {
417
+ return Math.min(Math.max(value, min), max);
418
+ }
419
+ function parsePercent(value) {
420
+ if (value == null || value === '') {
421
+ return null;
422
+ }
423
+ if (typeof value === 'number') {
424
+ return Number.isFinite(value) ? value : null;
425
+ }
426
+ const parsed = Number.parseFloat(value);
427
+ return Number.isFinite(parsed) ? parsed : null;
428
+ }
429
+ function roundPercentage(value) {
430
+ return Math.round(value * 1000) / 1000;
431
+ }
432
+ function sum(values) {
433
+ return values.reduce((total, value) => total + value, 0);
434
+ }
435
+ function resolveInitialSizes(preferred, minimums, maximums) {
436
+ const unresolvedIndexes = preferred.flatMap((value, index) => (value == null ? [index] : []));
437
+ const specifiedTotal = sum(preferred.flatMap((value) => (value == null ? [] : [value])));
438
+ let sizes;
439
+ if (preferred.every((value) => value == null)) {
440
+ const equalSize = 100 / preferred.length;
441
+ sizes = preferred.map(() => equalSize);
442
+ }
443
+ else {
444
+ const share = unresolvedIndexes.length ? Math.max(100 - specifiedTotal, 0) / unresolvedIndexes.length : 0;
445
+ sizes = preferred.map((value) => value ?? share);
446
+ }
447
+ sizes = sizes.map((size, index) => clamp(size, minimums[index], maximums[index]));
448
+ sizes = rebalanceSizes(sizes, minimums, maximums);
449
+ return sizes.map((size) => roundPercentage(size));
450
+ }
451
+ function rebalanceSizes(sizes, minimums, maximums) {
452
+ const next = [...sizes];
453
+ for (let iteration = 0; iteration < next.length * 4; iteration += 1) {
454
+ const difference = roundPercentage(100 - sum(next));
455
+ if (Math.abs(difference) <= 0.001) {
456
+ return next;
457
+ }
458
+ const adjustableIndexes = next.flatMap((size, index) => {
459
+ const room = difference > 0 ? maximums[index] - size : size - minimums[index];
460
+ return room > 0.001 ? [index] : [];
461
+ });
462
+ if (!adjustableIndexes.length) {
463
+ return next;
464
+ }
465
+ const perPanelDelta = difference / adjustableIndexes.length;
466
+ adjustableIndexes.forEach((index) => {
467
+ next[index] = clamp(next[index] + perPanelDelta, minimums[index], maximums[index]);
468
+ });
469
+ }
470
+ return next;
471
+ }
472
+ function toAriaValue(value) {
473
+ return value == null ? null : String(Math.round(value));
474
+ }
475
+
476
+ /**
477
+ * Generated bundle index. Do not edit.
478
+ */
479
+
480
+ export { ResizableGroupContextBase, ResizableHandleComponent, ResizablePanelComponent, ResizablePanelGroupComponent };
481
+ //# sourceMappingURL=ojiepermana-angular-component-resizable.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ojiepermana-angular-component-resizable.mjs","sources":["../../../projects/angular/component/resizable/resizable.component.ts","../../../projects/angular/component/resizable/ojiepermana-angular-component-resizable.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n OnDestroy,\n booleanAttribute,\n computed,\n contentChildren,\n effect,\n forwardRef,\n inject,\n input,\n signal,\n untracked,\n} from '@angular/core';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\nexport type ResizableOrientation = 'horizontal' | 'vertical';\nexport type ResizableSize = string | number | null | undefined;\n\ninterface ResizablePair {\n readonly previous: ResizablePanelComponent;\n readonly next: ResizablePanelComponent;\n}\n\ninterface ResizableBounds {\n readonly min: number;\n readonly max: number;\n}\n\ninterface ResizableHandleState {\n readonly panelId: string;\n readonly valueNow: number;\n readonly valueMin: number;\n readonly valueMax: number;\n}\n\ninterface ResizablePointerSession {\n readonly handle: ResizableHandleComponent;\n readonly pair: ResizablePair;\n readonly startCoordinate: number;\n readonly previousSize: number;\n}\n\n@Directive()\nexport abstract class ResizableGroupContextBase {\n abstract groupOrientation(): ResizableOrientation;\n abstract panelDirection(): 'ltr' | 'rtl';\n abstract pairState(handle: ResizableHandleComponent): ResizableHandleState | null;\n abstract beginPointerResize(handle: ResizableHandleComponent, event: PointerEvent): void;\n abstract handleKeydown(handle: ResizableHandleComponent, event: KeyboardEvent): void;\n}\n\n@Component({\n selector: 'ui-resizable-panel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.id]': 'resolvedId()',\n '[style.flex]': 'flexStyle()',\n },\n template: `<ng-content />`,\n})\nexport class ResizablePanelComponent {\n private readonly ctx = inject(ResizableGroupContextBase);\n private readonly host = inject(ElementRef<HTMLElement>);\n\n readonly defaultSize = input<ResizableSize>(null);\n readonly minSize = input<ResizableSize>('10%');\n readonly maxSize = input<ResizableSize>('90%');\n readonly id = input<string | null>(null);\n readonly class = input<string>('');\n\n private readonly generatedId = `ui-resizable-panel-${nextId()}`;\n private readonly currentSize = signal<number | null>(null);\n\n protected readonly resolvedId = computed(() => this.id() ?? this.generatedId);\n protected readonly classes = computed(() =>\n cn(\n 'relative block min-h-0 min-w-0 overflow-hidden',\n this.ctx.groupOrientation() === 'horizontal' ? 'h-full' : 'w-full',\n this.class(),\n ),\n );\n protected readonly flexStyle = computed(() => {\n const size = this.currentSize();\n return size == null ? '1 1 0%' : `0 0 ${size}%`;\n });\n\n panelId(): string {\n return this.resolvedId();\n }\n\n preferredSizePercent(): number | null {\n return parsePercent(this.defaultSize());\n }\n\n minSizePercent(): number {\n return clamp(parsePercent(this.minSize()) ?? 10, 0, 100);\n }\n\n maxSizePercent(): number {\n return clamp(parsePercent(this.maxSize()) ?? 90, this.minSizePercent(), 100);\n }\n\n size(): number {\n return this.currentSize() ?? 0;\n }\n\n setSize(size: number): void {\n this.currentSize.set(roundPercentage(clamp(size, 0, 100)));\n }\n\n nativeElement(): HTMLElement {\n return this.host.nativeElement;\n }\n}\n\n@Component({\n selector: 'ui-resizable-handle',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n role: 'separator',\n tabindex: '0',\n '[attr.data-active]': 'active() ? \"true\" : null',\n '[attr.aria-controls]': 'controls()',\n '[attr.aria-label]': 'label()',\n '[attr.aria-orientation]': 'separatorOrientation()',\n '[attr.aria-valuenow]': 'valueNow()',\n '[attr.aria-valuemin]': 'valueMin()',\n '[attr.aria-valuemax]': 'valueMax()',\n '[attr.aria-valuetext]': 'valueText()',\n '(keydown)': 'onKeydown($event)',\n '(pointerdown)': 'onPointerDown($event)',\n },\n template: `\n @if (withHandle()) {\n <span\n aria-hidden=\"true\"\n class=\"pointer-events-none inline-flex items-center justify-center rounded-sm border border-border bg-background px-1 py-0.5 shadow-sm\">\n <svg class=\"h-3 w-3 text-muted-foreground\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <circle cx=\"9\" cy=\"8\" r=\"1.25\" />\n <circle cx=\"15\" cy=\"8\" r=\"1.25\" />\n <circle cx=\"9\" cy=\"12\" r=\"1.25\" />\n <circle cx=\"15\" cy=\"12\" r=\"1.25\" />\n <circle cx=\"9\" cy=\"16\" r=\"1.25\" />\n <circle cx=\"15\" cy=\"16\" r=\"1.25\" />\n </svg>\n </span>\n }\n `,\n})\nexport class ResizableHandleComponent {\n private readonly ctx = inject(ResizableGroupContextBase);\n private readonly host = inject(ElementRef<HTMLElement>);\n\n readonly withHandle = input(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\n readonly class = input<string>('');\n\n private readonly lastExpandedPrimarySize = signal<number | null>(null);\n protected readonly active = signal(false);\n private readonly state = computed(() => this.ctx.pairState(this));\n protected readonly classes = computed(() =>\n cn(\n 'group relative flex shrink-0 select-none items-center justify-center bg-transparent text-foreground transition-colors',\n 'touch-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background',\n this.ctx.groupOrientation() === 'horizontal'\n ? 'h-full w-2 cursor-col-resize before:absolute before:inset-y-0 before:left-1/2 before:w-px before:-translate-x-1/2 before:bg-border'\n : 'h-2 w-full cursor-row-resize before:absolute before:inset-x-0 before:top-1/2 before:h-px before:-translate-y-1/2 before:bg-border',\n this.active() ? 'before:bg-foreground/60' : 'hover:before:bg-foreground/40',\n this.class(),\n ),\n );\n\n protected readonly separatorOrientation = computed(() =>\n this.ctx.groupOrientation() === 'horizontal' ? 'vertical' : 'horizontal',\n );\n protected readonly controls = computed(() => this.state()?.panelId ?? null);\n protected readonly label = computed(() => this.ariaLabel() ?? 'Resize panel');\n protected readonly valueNow = computed(() => toAriaValue(this.state()?.valueNow));\n protected readonly valueMin = computed(() => toAriaValue(this.state()?.valueMin));\n protected readonly valueMax = computed(() => toAriaValue(this.state()?.valueMax));\n protected readonly valueText = computed(() => {\n const value = this.state()?.valueNow;\n return value == null ? null : `${Math.round(value)}%`;\n });\n\n onPointerDown(event: PointerEvent): void {\n if (event.button !== 0) {\n return;\n }\n\n event.preventDefault();\n this.host.nativeElement.focus();\n this.ctx.beginPointerResize(this, event);\n }\n\n onKeydown(event: KeyboardEvent): void {\n this.ctx.handleKeydown(this, event);\n }\n\n setActive(active: boolean): void {\n this.active.set(active);\n }\n\n rememberPrimarySize(size: number): void {\n this.lastExpandedPrimarySize.set(roundPercentage(size));\n }\n\n rememberedPrimarySize(): number | null {\n return this.lastExpandedPrimarySize();\n }\n\n nativeElement(): HTMLElement {\n return this.host.nativeElement;\n }\n}\n\n@Component({\n selector: 'ui-resizable-panel-group',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: ResizableGroupContextBase, useExisting: forwardRef(() => ResizablePanelGroupComponent) }],\n host: {\n '[class]': 'classes()',\n '[attr.data-orientation]': 'orientation()',\n },\n template: `<ng-content />`,\n})\nexport class ResizablePanelGroupComponent extends ResizableGroupContextBase implements OnDestroy {\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly document = inject(DOCUMENT);\n\n readonly orientation = input<ResizableOrientation>('horizontal');\n readonly class = input<string>('');\n\n private readonly panels = contentChildren(ResizablePanelComponent);\n private readonly handles = contentChildren(ResizableHandleComponent);\n private pointerSession: ResizablePointerSession | null = null;\n private removePointerListeners: (() => void) | null = null;\n\n protected readonly classes = computed(() =>\n cn(\n 'flex w-full min-h-0 min-w-0 items-stretch',\n this.orientation() === 'horizontal' ? 'flex-row' : 'flex-col',\n this.class(),\n ),\n );\n\n private readonly syncLayout = effect(() => {\n const panels = this.panels();\n void this.handles();\n\n if (!panels.length) {\n return;\n }\n\n untracked(() => this.initializeLayout(panels));\n });\n\n override groupOrientation(): ResizableOrientation {\n return this.orientation();\n }\n\n override panelDirection(): 'ltr' | 'rtl' {\n const view = this.document.defaultView;\n if (!view) {\n return 'ltr';\n }\n\n return view.getComputedStyle(this.host.nativeElement).direction === 'rtl' ? 'rtl' : 'ltr';\n }\n\n override pairState(handle: ResizableHandleComponent): ResizableHandleState | null {\n const pair = this.resolvePair(handle);\n if (!pair) {\n return null;\n }\n\n const bounds = this.boundsForPair(pair);\n return {\n panelId: pair.previous.panelId(),\n valueNow: pair.previous.size(),\n valueMin: bounds.min,\n valueMax: bounds.max,\n };\n }\n\n override beginPointerResize(handle: ResizableHandleComponent, event: PointerEvent): void {\n const pair = this.resolvePair(handle);\n if (!pair) {\n return;\n }\n\n this.finishPointerResize();\n handle.setActive(true);\n this.pointerSession = {\n handle,\n pair,\n startCoordinate: this.coordinateFromEvent(event),\n previousSize: pair.previous.size(),\n };\n\n const move = (nextEvent: PointerEvent) => {\n const session = this.pointerSession;\n if (!session) {\n return;\n }\n\n const containerSize = this.containerSize();\n if (containerSize <= 0) {\n return;\n }\n\n const delta = this.coordinateFromEvent(nextEvent) - session.startCoordinate;\n const directionFactor = this.orientation() === 'horizontal' && this.panelDirection() === 'rtl' ? -1 : 1;\n const deltaPercent = (delta / containerSize) * 100 * directionFactor;\n this.applyPrimarySize(session.pair, session.previousSize + deltaPercent);\n };\n\n const end = () => this.finishPointerResize();\n\n this.document.addEventListener('pointermove', move);\n this.document.addEventListener('pointerup', end);\n this.document.addEventListener('pointercancel', end);\n this.removePointerListeners = () => {\n this.document.removeEventListener('pointermove', move);\n this.document.removeEventListener('pointerup', end);\n this.document.removeEventListener('pointercancel', end);\n };\n }\n\n override handleKeydown(handle: ResizableHandleComponent, event: KeyboardEvent): void {\n const pair = this.resolvePair(handle);\n if (!pair) {\n return;\n }\n\n const current = pair.previous.size();\n const bounds = this.boundsForPair(pair);\n const horizontalStep = this.panelDirection() === 'rtl' ? -10 : 10;\n\n switch (event.key) {\n case 'ArrowRight':\n if (this.orientation() !== 'horizontal') {\n return;\n }\n this.applyPrimarySize(pair, current + horizontalStep);\n break;\n case 'ArrowLeft':\n if (this.orientation() !== 'horizontal') {\n return;\n }\n this.applyPrimarySize(pair, current - horizontalStep);\n break;\n case 'ArrowDown':\n if (this.orientation() !== 'vertical') {\n return;\n }\n this.applyPrimarySize(pair, current + 10);\n break;\n case 'ArrowUp':\n if (this.orientation() !== 'vertical') {\n return;\n }\n this.applyPrimarySize(pair, current - 10);\n break;\n case 'Home':\n this.applyPrimarySize(pair, bounds.min);\n break;\n case 'End':\n this.applyPrimarySize(pair, bounds.max);\n break;\n case 'Enter': {\n const remembered = handle.rememberedPrimarySize();\n if (current > bounds.min + 0.5) {\n handle.rememberPrimarySize(current);\n this.applyPrimarySize(pair, bounds.min);\n } else if (remembered != null) {\n this.applyPrimarySize(pair, remembered);\n } else {\n this.applyPrimarySize(pair, (bounds.min + bounds.max) / 2);\n }\n break;\n }\n default:\n return;\n }\n\n event.preventDefault();\n }\n\n ngOnDestroy(): void {\n this.finishPointerResize();\n }\n\n private finishPointerResize(): void {\n this.pointerSession?.handle.setActive(false);\n this.pointerSession = null;\n this.removePointerListeners?.();\n this.removePointerListeners = null;\n }\n\n private initializeLayout(panels: readonly ResizablePanelComponent[]): void {\n const minimums = panels.map((panel) => panel.minSizePercent());\n const maximums = panels.map((panel, index) => Math.max(minimums[index], panel.maxSizePercent()));\n const preferred = panels.map((panel) => panel.preferredSizePercent());\n const sizes = resolveInitialSizes(preferred, minimums, maximums);\n\n panels.forEach((panel, index) => panel.setSize(sizes[index]));\n }\n\n private resolvePair(handle: ResizableHandleComponent): ResizablePair | null {\n const panels = new Map(this.panels().map((panel) => [panel.nativeElement(), panel] as const));\n const children = Array.from(this.host.nativeElement.children);\n const handleIndex = children.indexOf(handle.nativeElement());\n\n if (handleIndex === -1) {\n return null;\n }\n\n let previous: ResizablePanelComponent | null = null;\n let next: ResizablePanelComponent | null = null;\n\n for (let index = handleIndex - 1; index >= 0; index -= 1) {\n previous = panels.get(children[index] as HTMLElement) ?? null;\n if (previous) {\n break;\n }\n }\n\n for (let index = handleIndex + 1; index < children.length; index += 1) {\n next = panels.get(children[index] as HTMLElement) ?? null;\n if (next) {\n break;\n }\n }\n\n if (!previous || !next) {\n return null;\n }\n\n return { previous, next };\n }\n\n private boundsForPair(pair: ResizablePair): ResizableBounds {\n const pairTotal = pair.previous.size() + pair.next.size();\n const min = Math.max(pair.previous.minSizePercent(), pairTotal - pair.next.maxSizePercent());\n const max = Math.min(pair.previous.maxSizePercent(), pairTotal - pair.next.minSizePercent());\n\n if (min > max) {\n return { min: pairTotal / 2, max: pairTotal / 2 };\n }\n\n return { min: roundPercentage(min), max: roundPercentage(max) };\n }\n\n private applyPrimarySize(pair: ResizablePair, nextPrimarySize: number): void {\n const pairTotal = pair.previous.size() + pair.next.size();\n const bounds = this.boundsForPair(pair);\n const primarySize = roundPercentage(clamp(nextPrimarySize, bounds.min, bounds.max));\n const secondarySize = roundPercentage(pairTotal - primarySize);\n\n pair.previous.setSize(primarySize);\n pair.next.setSize(secondarySize);\n }\n\n private containerSize(): number {\n const rect = this.host.nativeElement.getBoundingClientRect();\n return this.orientation() === 'horizontal' ? rect.width : rect.height;\n }\n\n private coordinateFromEvent(event: PointerEvent): number {\n return this.orientation() === 'horizontal' ? event.clientX : event.clientY;\n }\n}\n\nlet _id = 0;\n\nfunction nextId(): number {\n return ++_id;\n}\n\nfunction clamp(value: number, min: number, max: number): number {\n return Math.min(Math.max(value, min), max);\n}\n\nfunction parsePercent(value: ResizableSize): number | null {\n if (value == null || value === '') {\n return null;\n }\n\n if (typeof value === 'number') {\n return Number.isFinite(value) ? value : null;\n }\n\n const parsed = Number.parseFloat(value);\n return Number.isFinite(parsed) ? parsed : null;\n}\n\nfunction roundPercentage(value: number): number {\n return Math.round(value * 1000) / 1000;\n}\n\nfunction sum(values: readonly number[]): number {\n return values.reduce((total, value) => total + value, 0);\n}\n\nfunction resolveInitialSizes(\n preferred: readonly (number | null)[],\n minimums: readonly number[],\n maximums: readonly number[],\n): number[] {\n const unresolvedIndexes = preferred.flatMap((value, index) => (value == null ? [index] : []));\n const specifiedTotal = sum(preferred.flatMap((value) => (value == null ? [] : [value])));\n\n let sizes: number[];\n if (preferred.every((value) => value == null)) {\n const equalSize = 100 / preferred.length;\n sizes = preferred.map(() => equalSize);\n } else {\n const share = unresolvedIndexes.length ? Math.max(100 - specifiedTotal, 0) / unresolvedIndexes.length : 0;\n sizes = preferred.map((value) => value ?? share);\n }\n\n sizes = sizes.map((size, index) => clamp(size, minimums[index], maximums[index]));\n sizes = rebalanceSizes(sizes, minimums, maximums);\n\n return sizes.map((size) => roundPercentage(size));\n}\n\nfunction rebalanceSizes(sizes: readonly number[], minimums: readonly number[], maximums: readonly number[]): number[] {\n const next = [...sizes];\n\n for (let iteration = 0; iteration < next.length * 4; iteration += 1) {\n const difference = roundPercentage(100 - sum(next));\n if (Math.abs(difference) <= 0.001) {\n return next;\n }\n\n const adjustableIndexes = next.flatMap((size, index) => {\n const room = difference > 0 ? maximums[index] - size : size - minimums[index];\n return room > 0.001 ? [index] : [];\n });\n\n if (!adjustableIndexes.length) {\n return next;\n }\n\n const perPanelDelta = difference / adjustableIndexes.length;\n adjustableIndexes.forEach((index) => {\n next[index] = clamp(next[index] + perPanelDelta, minimums[index], maximums[index]);\n });\n }\n\n return next;\n}\n\nfunction toAriaValue(value: number | undefined): string | null {\n return value == null ? null : String(Math.round(value));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MA+CsB,yBAAyB,CAAA;uGAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAD9C;;MAmBY,uBAAuB,CAAA;AACjB,IAAA,GAAG,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACvC,IA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G,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACzD;;ACnjBA;;AAEG;;;;"}
@@ -7,15 +7,21 @@ import { cn } from '@ojiepermana/angular/component/utils';
7
7
  * Fully accessible — real scrolling, keyboard, wheel, momentum.
8
8
  */
9
9
  class ScrollAreaComponent {
10
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
11
- viewportClass = input('', ...(ngDevMode ? [{ debugName: "viewportClass" }] : /* istanbul ignore next */ []));
12
- viewportAriaLabel = input(null, ...(ngDevMode ? [{ debugName: "viewportAriaLabel" }] : /* istanbul ignore next */ []));
10
+ class = input('', /* @ts-ignore */
11
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
12
+ viewportClass = input('', /* @ts-ignore */
13
+ ...(ngDevMode ? [{ debugName: "viewportClass" }] : /* istanbul ignore next */ []));
14
+ viewportAriaLabel = input(null, /* @ts-ignore */
15
+ ...(ngDevMode ? [{ debugName: "viewportAriaLabel" }] : /* istanbul ignore next */ []));
13
16
  viewportTabIndex = input(0, { ...(ngDevMode ? { debugName: "viewportTabIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
14
- classes = computed(() => cn('relative overflow-hidden', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
15
- viewportRole = computed(() => (this.viewportAriaLabel() ? 'region' : null), ...(ngDevMode ? [{ debugName: "viewportRole" }] : /* istanbul ignore next */ []));
16
- viewportClasses = computed(() => cn('ui-scroll-area-viewport h-full w-full rounded-[inherit]', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring', this.viewportClass()), ...(ngDevMode ? [{ debugName: "viewportClasses" }] : /* istanbul ignore next */ []));
17
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ScrollAreaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
18
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: ScrollAreaComponent, isStandalone: true, selector: "ui-scroll-area", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, viewportClass: { classPropertyName: "viewportClass", publicName: "viewportClass", isSignal: true, isRequired: false, transformFunction: null }, viewportAriaLabel: { classPropertyName: "viewportAriaLabel", publicName: "viewportAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, viewportTabIndex: { classPropertyName: "viewportTabIndex", publicName: "viewportTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `
17
+ classes = computed(() => cn('relative overflow-hidden', this.class()), /* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
19
+ viewportRole = computed(() => (this.viewportAriaLabel() ? 'region' : null), /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "viewportRole" }] : /* istanbul ignore next */ []));
21
+ viewportClasses = computed(() => cn('ui-scroll-area-viewport h-full w-full rounded-[inherit]', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring', this.viewportClass()), /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "viewportClasses" }] : /* istanbul ignore next */ []));
23
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ScrollAreaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: ScrollAreaComponent, isStandalone: true, selector: "ui-scroll-area", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, viewportClass: { classPropertyName: "viewportClass", publicName: "viewportClass", isSignal: true, isRequired: false, transformFunction: null }, viewportAriaLabel: { classPropertyName: "viewportAriaLabel", publicName: "viewportAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, viewportTabIndex: { classPropertyName: "viewportTabIndex", publicName: "viewportTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `
19
25
  <div
20
26
  [class]="viewportClasses()"
21
27
  [attr.aria-label]="viewportAriaLabel()"
@@ -25,7 +31,7 @@ class ScrollAreaComponent {
25
31
  </div>
26
32
  `, isInline: true, styles: [":host{display:block;overflow:hidden;position:relative}.ui-scroll-area-viewport{overflow:auto;scrollbar-width:thin;scrollbar-color:var(--tw-scrollbar-thumb, hsl(var(--border))) var(--tw-scrollbar-track, transparent)}.ui-scroll-area-viewport::-webkit-scrollbar{width:10px;height:10px}.ui-scroll-area-viewport::-webkit-scrollbar-track{background:var(--tw-scrollbar-track, transparent)}.ui-scroll-area-viewport::-webkit-scrollbar-thumb{background:var(--tw-scrollbar-thumb, hsl(var(--border)));border:var(--border-width) solid transparent;background-clip:padding-box;border-radius:var(--radius-lg)}.ui-scroll-area-viewport::-webkit-scrollbar-thumb:hover{background:var(--ui-scrollbar-thumb-hover, var(--tw-scrollbar-thumb, hsl(var(--muted-foreground))));background-clip:padding-box}@media(forced-colors:active){.ui-scroll-area-viewport{scrollbar-width:auto;scrollbar-color:auto}.ui-scroll-area-viewport::-webkit-scrollbar-thumb{background:CanvasText;border-color:transparent}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
27
33
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: ScrollAreaComponent, decorators: [{
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ScrollAreaComponent, decorators: [{
29
35
  type: Component,
30
36
  args: [{ selector: 'ui-scroll-area', changeDetection: ChangeDetectionStrategy.OnPush, host: {
31
37
  '[class]': 'classes()',