@ngbase/adk 0.1.11 → 0.1.12

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 (378) hide show
  1. package/a11y/index.d.ts +151 -5
  2. package/accordion/index.d.ts +44 -5
  3. package/autocomplete/index.d.ts +54 -5
  4. package/avatar/index.d.ts +25 -5
  5. package/bidi/index.d.ts +17 -5
  6. package/breadcrumb/index.d.ts +36 -5
  7. package/cache/index.d.ts +46 -5
  8. package/carousel/index.d.ts +79 -5
  9. package/checkbox/index.d.ts +33 -5
  10. package/chip/index.d.ts +28 -5
  11. package/clipboard/index.d.ts +11 -5
  12. package/collections/index.d.ts +23 -5
  13. package/color-picker/index.d.ts +119 -5
  14. package/cookies/index.d.ts +35 -5
  15. package/datepicker/index.d.ts +317 -5
  16. package/dialog/index.d.ts +63 -5
  17. package/drag/index.d.ts +107 -5
  18. package/fesm2022/ngbase-adk-a11y.mjs +100 -74
  19. package/fesm2022/ngbase-adk-a11y.mjs.map +1 -1
  20. package/fesm2022/ngbase-adk-accordion.mjs +31 -19
  21. package/fesm2022/ngbase-adk-accordion.mjs.map +1 -1
  22. package/fesm2022/ngbase-adk-autocomplete.mjs +17 -17
  23. package/fesm2022/ngbase-adk-autocomplete.mjs.map +1 -1
  24. package/fesm2022/ngbase-adk-avatar.mjs +16 -16
  25. package/fesm2022/ngbase-adk-avatar.mjs.map +1 -1
  26. package/fesm2022/ngbase-adk-bidi.mjs +6 -7
  27. package/fesm2022/ngbase-adk-bidi.mjs.map +1 -1
  28. package/fesm2022/ngbase-adk-breadcrumb.mjs +15 -15
  29. package/fesm2022/ngbase-adk-breadcrumb.mjs.map +1 -1
  30. package/fesm2022/ngbase-adk-cache.mjs +3 -3
  31. package/fesm2022/ngbase-adk-carousel.mjs +24 -24
  32. package/fesm2022/ngbase-adk-carousel.mjs.map +1 -1
  33. package/fesm2022/ngbase-adk-checkbox.mjs +10 -10
  34. package/fesm2022/ngbase-adk-checkbox.mjs.map +1 -1
  35. package/fesm2022/ngbase-adk-chip.mjs +13 -13
  36. package/fesm2022/ngbase-adk-chip.mjs.map +1 -1
  37. package/fesm2022/ngbase-adk-clipboard.mjs +27 -12
  38. package/fesm2022/ngbase-adk-clipboard.mjs.map +1 -1
  39. package/fesm2022/ngbase-adk-collections.mjs +5 -5
  40. package/fesm2022/ngbase-adk-collections.mjs.map +1 -1
  41. package/fesm2022/ngbase-adk-color-picker.mjs +39 -39
  42. package/fesm2022/ngbase-adk-color-picker.mjs.map +1 -1
  43. package/fesm2022/ngbase-adk-cookies.mjs +3 -3
  44. package/fesm2022/ngbase-adk-datepicker.mjs +107 -107
  45. package/fesm2022/ngbase-adk-datepicker.mjs.map +1 -1
  46. package/fesm2022/ngbase-adk-dialog.mjs +39 -109
  47. package/fesm2022/ngbase-adk-dialog.mjs.map +1 -1
  48. package/fesm2022/ngbase-adk-drag.mjs +21 -22
  49. package/fesm2022/ngbase-adk-drag.mjs.map +1 -1
  50. package/fesm2022/ngbase-adk-form-field.mjs +206 -31
  51. package/fesm2022/ngbase-adk-form-field.mjs.map +1 -1
  52. package/fesm2022/ngbase-adk-hover-card.mjs +6 -6
  53. package/fesm2022/ngbase-adk-hover-card.mjs.map +1 -1
  54. package/fesm2022/ngbase-adk-icon.mjs +10 -10
  55. package/fesm2022/ngbase-adk-icon.mjs.map +1 -1
  56. package/fesm2022/ngbase-adk-inline-edit.mjs +29 -27
  57. package/fesm2022/ngbase-adk-inline-edit.mjs.map +1 -1
  58. package/fesm2022/ngbase-adk-jwt.mjs +6 -6
  59. package/fesm2022/ngbase-adk-keys.mjs +7 -8
  60. package/fesm2022/ngbase-adk-keys.mjs.map +1 -1
  61. package/fesm2022/ngbase-adk-layout.mjs +1 -1
  62. package/fesm2022/ngbase-adk-layout.mjs.map +1 -1
  63. package/fesm2022/ngbase-adk-list.mjs +10 -10
  64. package/fesm2022/ngbase-adk-list.mjs.map +1 -1
  65. package/fesm2022/ngbase-adk-mask.mjs +8 -8
  66. package/fesm2022/ngbase-adk-mask.mjs.map +1 -1
  67. package/fesm2022/ngbase-adk-menu.mjs +41 -41
  68. package/fesm2022/ngbase-adk-menu.mjs.map +1 -1
  69. package/fesm2022/ngbase-adk-network.mjs +4 -4
  70. package/fesm2022/ngbase-adk-network.mjs.map +1 -1
  71. package/fesm2022/ngbase-adk-otp.mjs +19 -19
  72. package/fesm2022/ngbase-adk-otp.mjs.map +1 -1
  73. package/fesm2022/ngbase-adk-pagination.mjs +20 -20
  74. package/fesm2022/ngbase-adk-pagination.mjs.map +1 -1
  75. package/fesm2022/ngbase-adk-popover.mjs +28 -28
  76. package/fesm2022/ngbase-adk-popover.mjs.map +1 -1
  77. package/fesm2022/ngbase-adk-portal.mjs +14 -15
  78. package/fesm2022/ngbase-adk-portal.mjs.map +1 -1
  79. package/fesm2022/ngbase-adk-progress.mjs +8 -8
  80. package/fesm2022/ngbase-adk-progress.mjs.map +1 -1
  81. package/fesm2022/ngbase-adk-radio.mjs +15 -15
  82. package/fesm2022/ngbase-adk-radio.mjs.map +1 -1
  83. package/fesm2022/ngbase-adk-resizable.mjs +19 -20
  84. package/fesm2022/ngbase-adk-resizable.mjs.map +1 -1
  85. package/fesm2022/ngbase-adk-scroll-area.mjs +31 -31
  86. package/fesm2022/ngbase-adk-scroll-area.mjs.map +1 -1
  87. package/fesm2022/ngbase-adk-select.mjs +73 -75
  88. package/fesm2022/ngbase-adk-select.mjs.map +1 -1
  89. package/fesm2022/ngbase-adk-selectable.mjs +9 -9
  90. package/fesm2022/ngbase-adk-selectable.mjs.map +1 -1
  91. package/fesm2022/ngbase-adk-sheet.mjs +9 -7
  92. package/fesm2022/ngbase-adk-sheet.mjs.map +1 -1
  93. package/fesm2022/ngbase-adk-sidenav.mjs +37 -37
  94. package/fesm2022/ngbase-adk-sidenav.mjs.map +1 -1
  95. package/fesm2022/ngbase-adk-slider.mjs +26 -26
  96. package/fesm2022/ngbase-adk-slider.mjs.map +1 -1
  97. package/fesm2022/ngbase-adk-sonner.mjs +11 -11
  98. package/fesm2022/ngbase-adk-sonner.mjs.map +1 -1
  99. package/fesm2022/ngbase-adk-stepper.mjs +28 -28
  100. package/fesm2022/ngbase-adk-stepper.mjs.map +1 -1
  101. package/fesm2022/ngbase-adk-switch.mjs +16 -16
  102. package/fesm2022/ngbase-adk-switch.mjs.map +1 -1
  103. package/fesm2022/ngbase-adk-table.mjs +98 -78
  104. package/fesm2022/ngbase-adk-table.mjs.map +1 -1
  105. package/fesm2022/ngbase-adk-tabs.mjs +44 -44
  106. package/fesm2022/ngbase-adk-tabs.mjs.map +1 -1
  107. package/fesm2022/ngbase-adk-toggle-group.mjs +15 -15
  108. package/fesm2022/ngbase-adk-toggle-group.mjs.map +1 -1
  109. package/fesm2022/ngbase-adk-toggle.mjs +4 -4
  110. package/fesm2022/ngbase-adk-toggle.mjs.map +1 -1
  111. package/fesm2022/ngbase-adk-tooltip.mjs +15 -15
  112. package/fesm2022/ngbase-adk-tooltip.mjs.map +1 -1
  113. package/fesm2022/ngbase-adk-tour.mjs +28 -28
  114. package/fesm2022/ngbase-adk-tour.mjs.map +1 -1
  115. package/fesm2022/ngbase-adk-translate.mjs +13 -13
  116. package/fesm2022/ngbase-adk-translate.mjs.map +1 -1
  117. package/fesm2022/ngbase-adk-tree.mjs +27 -27
  118. package/fesm2022/ngbase-adk-tree.mjs.map +1 -1
  119. package/fesm2022/ngbase-adk-utils.mjs +43 -20
  120. package/fesm2022/ngbase-adk-utils.mjs.map +1 -1
  121. package/fesm2022/ngbase-adk-virtualizer.mjs +20 -20
  122. package/fesm2022/ngbase-adk-virtualizer.mjs.map +1 -1
  123. package/form-field/index.d.ts +95 -5
  124. package/hover-card/index.d.ts +21 -5
  125. package/icon/index.d.ts +28 -5
  126. package/index.d.ts +2 -5
  127. package/inline-edit/index.d.ts +53 -5
  128. package/jwt/index.d.ts +20 -5
  129. package/keys/index.d.ts +54 -5
  130. package/layout/index.d.ts +20 -5
  131. package/list/index.d.ts +34 -5
  132. package/mask/index.d.ts +33 -5
  133. package/menu/index.d.ts +145 -5
  134. package/network/index.d.ts +29 -5
  135. package/otp/index.d.ts +51 -5
  136. package/package.json +51 -51
  137. package/pagination/index.d.ts +35 -5
  138. package/popover/index.d.ts +212 -5
  139. package/portal/index.d.ts +113 -5
  140. package/progress/index.d.ts +17 -5
  141. package/radio/index.d.ts +45 -5
  142. package/resizable/index.d.ts +73 -5
  143. package/schematics/components/files/accordion/accordion.ts.template +2 -2
  144. package/schematics/components/files/autocomplete/autocomplete.ts.template +1 -0
  145. package/schematics/components/files/avatar/avatar.ts.template +12 -4
  146. package/schematics/components/files/button/button.ts.template +32 -13
  147. package/schematics/components/files/command/command.ts.template +10 -9
  148. package/schematics/components/files/datepicker/datepicker-llm.md.template +15 -2
  149. package/schematics/components/files/dialog/dialog.ts.template +9 -2
  150. package/schematics/components/files/drawer/drawer.ts.template +1 -1
  151. package/schematics/components/files/form-field/form-field.ts.template +10 -1
  152. package/schematics/components/files/form-field/input-style.directive.ts.template +1 -1
  153. package/schematics/components/files/icon/icon-llm.md.template +0 -1
  154. package/schematics/components/files/inline-edit/inline-edit.ts.template +2 -2
  155. package/schematics/components/files/otp/otp.ts.template +1 -1
  156. package/schematics/components/files/picasa/picasa-base.component.ts.template +1 -2
  157. package/schematics/components/files/picasa/picasa.component.ts.template +4 -4
  158. package/schematics/components/files/select/select.ts.template +5 -18
  159. package/schematics/components/files/sheet/sheet.ts.template +1 -1
  160. package/schematics/components/files/sidenav/sidenav-llm.md.template +0 -1
  161. package/schematics/components/files/spinner/spinner.ts.template +1 -29
  162. package/scroll-area/index.d.ts +60 -5
  163. package/select/index.d.ts +177 -5
  164. package/selectable/index.d.ts +32 -5
  165. package/sheet/index.d.ts +44 -5
  166. package/sidenav/index.d.ts +74 -5
  167. package/slider/index.d.ts +79 -5
  168. package/sonner/index.d.ts +50 -5
  169. package/stepper/index.d.ts +54 -5
  170. package/switch/index.d.ts +47 -5
  171. package/table/index.d.ts +143 -5
  172. package/tabs/index.d.ts +85 -5
  173. package/test/index.d.ts +81 -5
  174. package/toggle/index.d.ts +16 -5
  175. package/toggle-group/index.d.ts +39 -5
  176. package/tooltip/index.d.ts +60 -5
  177. package/tour/index.d.ts +70 -5
  178. package/translate/index.d.ts +58 -5
  179. package/tree/index.d.ts +95 -5
  180. package/utils/index.d.ts +82 -5
  181. package/virtualizer/index.d.ts +45 -5
  182. package/a11y/accessibility-group.d.ts +0 -46
  183. package/a11y/accessibility-item.d.ts +0 -49
  184. package/a11y/accessibility.service.d.ts +0 -17
  185. package/a11y/autofocus.d.ts +0 -18
  186. package/a11y/focus-trap.d.ts +0 -15
  187. package/a11y/public-api.d.ts +0 -4
  188. package/accordion/accordion-content.d.ts +0 -8
  189. package/accordion/accordion-group.d.ts +0 -10
  190. package/accordion/accordion-header.d.ts +0 -7
  191. package/accordion/accordion-item.d.ts +0 -16
  192. package/accordion/public-api.d.ts +0 -4
  193. package/autocomplete/autocomplete-input.d.ts +0 -19
  194. package/autocomplete/autocomplete.d.ts +0 -34
  195. package/autocomplete/public-api.d.ts +0 -2
  196. package/avatar/avatar.d.ts +0 -22
  197. package/avatar/public-api.d.ts +0 -1
  198. package/bidi/direction.service.d.ts +0 -14
  199. package/bidi/public-api.d.ts +0 -1
  200. package/breadcrumb/breadcrumb-link.d.ts +0 -7
  201. package/breadcrumb/breadcrumb-separator.d.ts +0 -6
  202. package/breadcrumb/breadcrumb.d.ts +0 -12
  203. package/breadcrumb/breadcrumbs.d.ts +0 -9
  204. package/breadcrumb/public-api.d.ts +0 -4
  205. package/cache/cache-config.d.ts +0 -22
  206. package/cache/cache.d.ts +0 -17
  207. package/cache/cache.interecptor.d.ts +0 -2
  208. package/cache/public-api.d.ts +0 -3
  209. package/carousel/carousel-item.d.ts +0 -7
  210. package/carousel/carousel-next.d.ts +0 -8
  211. package/carousel/carousel.d.ts +0 -61
  212. package/carousel/public-api.d.ts +0 -3
  213. package/checkbox/checkbox.d.ts +0 -30
  214. package/checkbox/public-api.d.ts +0 -1
  215. package/chip/chip-group.d.ts +0 -7
  216. package/chip/chip.d.ts +0 -19
  217. package/chip/public-api.d.ts +0 -2
  218. package/clipboard/clipboard.d.ts +0 -7
  219. package/clipboard/public-api.d.ts +0 -1
  220. package/collections/SelectionModel.d.ts +0 -19
  221. package/collections/public-api.d.ts +0 -1
  222. package/color-picker/color-input.d.ts +0 -16
  223. package/color-picker/color-picker-trigger.d.ts +0 -30
  224. package/color-picker/color-picker.d.ts +0 -72
  225. package/color-picker/public-api.d.ts +0 -3
  226. package/color-picker/utils.d.ts +0 -21
  227. package/cookies/cookie.service.d.ts +0 -32
  228. package/cookies/public-api.d.ts +0 -1
  229. package/datepicker/calendar.d.ts +0 -121
  230. package/datepicker/datepicker-trigger.d.ts +0 -66
  231. package/datepicker/datepicker.d.ts +0 -55
  232. package/datepicker/native-date-adapter.d.ts +0 -33
  233. package/datepicker/public-api.d.ts +0 -5
  234. package/datepicker/time.d.ts +0 -42
  235. package/dialog/dialog.animation.d.ts +0 -3
  236. package/dialog/dialog.d.ts +0 -49
  237. package/dialog/dialog.service.d.ts +0 -7
  238. package/dialog/public-api.d.ts +0 -3
  239. package/drag/drag-drop.d.ts +0 -37
  240. package/drag/drag-move.d.ts +0 -17
  241. package/drag/drag.d.ts +0 -52
  242. package/drag/public-api.d.ts +0 -3
  243. package/form-field/auto-height.d.ts +0 -9
  244. package/form-field/error.d.ts +0 -18
  245. package/form-field/form-field.d.ts +0 -14
  246. package/form-field/input.d.ts +0 -16
  247. package/form-field/label.d.ts +0 -7
  248. package/form-field/public-api.d.ts +0 -5
  249. package/hover-card/hover-card.d.ts +0 -18
  250. package/hover-card/public-api.d.ts +0 -1
  251. package/icon/icon.d.ts +0 -12
  252. package/icon/icon.service.d.ts +0 -12
  253. package/icon/public-api.d.ts +0 -2
  254. package/inline-edit/inline-edit.d.ts +0 -47
  255. package/inline-edit/public-api.d.ts +0 -1
  256. package/jwt/jwt.service.d.ts +0 -27
  257. package/jwt/public-api.d.ts +0 -1
  258. package/keys/keys.service.d.ts +0 -13
  259. package/keys/public-api.d.ts +0 -2
  260. package/keys/shortcuts.service.d.ts +0 -38
  261. package/layout/layout.d.ts +0 -16
  262. package/layout/public-api.d.ts +0 -1
  263. package/list/list.d.ts +0 -20
  264. package/list/list.directive.d.ts +0 -12
  265. package/list/public-api.d.ts +0 -2
  266. package/mask/mask-pipe.d.ts +0 -7
  267. package/mask/mask.d.ts +0 -24
  268. package/mask/public-api.d.ts +0 -2
  269. package/menu/context-menu.d.ts +0 -21
  270. package/menu/mention.d.ts +0 -18
  271. package/menu/menu-trigger.d.ts +0 -34
  272. package/menu/menu.d.ts +0 -58
  273. package/menu/navigation-menu.d.ts +0 -19
  274. package/menu/public-api.d.ts +0 -5
  275. package/network/network.interceptor.d.ts +0 -6
  276. package/network/network.service.d.ts +0 -18
  277. package/network/public-api.d.ts +0 -2
  278. package/otp/otp.d.ts +0 -48
  279. package/otp/public-api.d.ts +0 -1
  280. package/pagination/pagination.d.ts +0 -32
  281. package/pagination/public-api.d.ts +0 -1
  282. package/popover/base-popover.service.d.ts +0 -16
  283. package/popover/popover-arrow.ng.d.ts +0 -34
  284. package/popover/popover-trigger.d.ts +0 -21
  285. package/popover/popover.d.ts +0 -60
  286. package/popover/popover.service.d.ts +0 -43
  287. package/popover/public-api.d.ts +0 -6
  288. package/popover/utils.d.ts +0 -69
  289. package/portal/dialog-ref.d.ts +0 -70
  290. package/portal/portal-base.service.d.ts +0 -19
  291. package/portal/portal-close.directive.d.ts +0 -9
  292. package/portal/portal.component.d.ts +0 -7
  293. package/portal/portal.service.d.ts +0 -16
  294. package/portal/public-api.d.ts +0 -5
  295. package/progress/progress.d.ts +0 -13
  296. package/progress/public-api.d.ts +0 -1
  297. package/public-api.d.ts +0 -2
  298. package/radio/public-api.d.ts +0 -2
  299. package/radio/radio-group.d.ts +0 -19
  300. package/radio/radio.d.ts +0 -26
  301. package/resizable/public-api.d.ts +0 -2
  302. package/resizable/resizable-group.d.ts +0 -22
  303. package/resizable/resizable.d.ts +0 -50
  304. package/scroll-area/public-api.d.ts +0 -1
  305. package/scroll-area/scroll-area.d.ts +0 -56
  306. package/select/list-selection.d.ts +0 -7
  307. package/select/option-group.d.ts +0 -7
  308. package/select/option.d.ts +0 -25
  309. package/select/public-api.d.ts +0 -6
  310. package/select/select-base.d.ts +0 -66
  311. package/select/select-input.d.ts +0 -23
  312. package/select/select.d.ts +0 -53
  313. package/selectable/public-api.d.ts +0 -2
  314. package/selectable/selectable-item.d.ts +0 -12
  315. package/selectable/selectable.d.ts +0 -19
  316. package/sheet/public-api.d.ts +0 -2
  317. package/sheet/sheet.d.ts +0 -26
  318. package/sheet/sheet.service.d.ts +0 -13
  319. package/sidenav/public-api.d.ts +0 -3
  320. package/sidenav/sidenav-header.d.ts +0 -31
  321. package/sidenav/sidenav.d.ts +0 -23
  322. package/sidenav/sidenav.service.d.ts +0 -18
  323. package/slider/public-api.d.ts +0 -1
  324. package/slider/slider.d.ts +0 -76
  325. package/sonner/public-api.d.ts +0 -2
  326. package/sonner/sonner.d.ts +0 -25
  327. package/sonner/sonner.service.d.ts +0 -21
  328. package/stepper/animation.d.ts +0 -1
  329. package/stepper/public-api.d.ts +0 -3
  330. package/stepper/step.d.ts +0 -24
  331. package/stepper/stepper.d.ts +0 -26
  332. package/switch/public-api.d.ts +0 -1
  333. package/switch/switch.d.ts +0 -44
  334. package/table/body-cell.d.ts +0 -11
  335. package/table/body-row.d.ts +0 -25
  336. package/table/column.d.ts +0 -10
  337. package/table/head-cell.d.ts +0 -12
  338. package/table/head-row.d.ts +0 -24
  339. package/table/public-api.d.ts +0 -8
  340. package/table/sort.d.ts +0 -40
  341. package/table/table.d.ts +0 -38
  342. package/tabs/public-api.d.ts +0 -2
  343. package/tabs/tab-group.d.ts +0 -52
  344. package/tabs/tab.d.ts +0 -31
  345. package/test/public-api.d.ts +0 -1
  346. package/test/utils.d.ts +0 -78
  347. package/toggle/public-api.d.ts +0 -1
  348. package/toggle/toggle.d.ts +0 -13
  349. package/toggle-group/public-api.d.ts +0 -2
  350. package/toggle-group/toggle-group.d.ts +0 -25
  351. package/toggle-group/toggle-item.d.ts +0 -14
  352. package/tooltip/public-api.d.ts +0 -2
  353. package/tooltip/tooltip.d.ts +0 -24
  354. package/tooltip/tooltip.directive.d.ts +0 -34
  355. package/tooltip/tooltip.service.d.ts +0 -28
  356. package/tour/animation.d.ts +0 -2
  357. package/tour/public-api.d.ts +0 -5
  358. package/tour/tour-base.d.ts +0 -21
  359. package/tour/tour-step.d.ts +0 -11
  360. package/tour/tour.d.ts +0 -9
  361. package/tour/tour.service.d.ts +0 -29
  362. package/translate/config.d.ts +0 -16
  363. package/translate/public-api.d.ts +0 -3
  364. package/translate/translate.d.ts +0 -11
  365. package/translate/translate.service.d.ts +0 -31
  366. package/tree/public-api.d.ts +0 -3
  367. package/tree/tree-node.d.ts +0 -28
  368. package/tree/tree-toggle.d.ts +0 -16
  369. package/tree/tree.d.ts +0 -55
  370. package/utils/animation.d.ts +0 -3
  371. package/utils/disposals.d.ts +0 -7
  372. package/utils/number-only.d.ts +0 -22
  373. package/utils/public-api.d.ts +0 -6
  374. package/utils/range.pipe.d.ts +0 -7
  375. package/utils/ssr.d.ts +0 -2
  376. package/utils/utils.d.ts +0 -28
  377. package/virtualizer/public-api.d.ts +0 -1
  378. package/virtualizer/virtualizer.d.ts +0 -42
@@ -1,5 +1,73 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngbase/adk/resizable" />
5
- export * from './public-api';
1
+ import * as _angular_core from '@angular/core';
2
+ import { ElementRef, ViewContainerRef, TemplateRef } from '@angular/core';
3
+ import * as i1 from '@ngbase/adk/drag';
4
+ import { Drag, DragData } from '@ngbase/adk/drag';
5
+
6
+ declare class NgbResizableGroup {
7
+ readonly document: Document;
8
+ readonly el: ElementRef<HTMLElement>;
9
+ readonly panels: _angular_core.Signal<readonly any[]>;
10
+ readonly direction: _angular_core.InputSignal<"horizontal" | "vertical">;
11
+ readonly id: string;
12
+ private overlayDiv?;
13
+ constructor();
14
+ get w(): number;
15
+ get h(): number;
16
+ setAuto(): void;
17
+ start(): void;
18
+ end(): void;
19
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgbResizableGroup, never>;
20
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgbResizableGroup, "[ngbResizableGroup]", ["ngbResizableGroup"], { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; }, {}, ["panels"], never, true, never>;
21
+ }
22
+ declare function aliasResizableGroup(resizableGroup: typeof NgbResizableGroup): {
23
+ provide: typeof NgbResizableGroup;
24
+ useExisting: typeof NgbResizableGroup;
25
+ };
26
+
27
+ declare class NgbGutter {
28
+ readonly resizable: NgbResizable;
29
+ readonly drag: Drag;
30
+ constructor();
31
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgbGutter, never>;
32
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgbGutter, "[ngbGutter]", ["ngbGutter"], {}, {}, never, never, true, [{ directive: typeof i1.Drag; inputs: {}; outputs: {}; }]>;
33
+ }
34
+ declare class NgbResizable {
35
+ readonly el: ElementRef<HTMLElement>;
36
+ readonly resizable: NgbResizableGroup;
37
+ readonly containerRef: ViewContainerRef;
38
+ readonly dragElement: _angular_core.Signal<TemplateRef<any> | undefined>;
39
+ readonly drag: _angular_core.Signal<Drag | undefined>;
40
+ readonly id: string;
41
+ readonly lockAxis: _angular_core.Signal<"x" | "y">;
42
+ readonly size: _angular_core.InputSignal<string | number>;
43
+ readonly min: _angular_core.InputSignal<string | number>;
44
+ readonly max: _angular_core.InputSignal<string | number | undefined>;
45
+ readonly lSize: _angular_core.WritableSignal<string | number>;
46
+ readonly draggable: _angular_core.WritableSignal<boolean>;
47
+ private reducedSize;
48
+ private localMinSize;
49
+ private localMaxSize;
50
+ private lastReducedSize;
51
+ index: number;
52
+ str: string;
53
+ constructor();
54
+ cSize(): number;
55
+ onStart(): void;
56
+ onEnd(): void;
57
+ private getSize;
58
+ onDrag(data: DragData): void;
59
+ handleDrag(event?: DragData): void;
60
+ private getUpdatedSize;
61
+ updateSize(px: number, direct: 'both' | 'prev' | 'next'): void;
62
+ private calculateSize;
63
+ private updateFlex;
64
+ updateElementSize(str: string): void;
65
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgbResizable, never>;
66
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgbResizable, "[ngbResizable]", ["ngbResizable"], { "size": { "alias": "size"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
67
+ }
68
+ declare function aliasResizable(resizable: typeof NgbResizable): {
69
+ provide: typeof NgbResizable;
70
+ useExisting: typeof NgbResizable;
71
+ };
72
+
73
+ export { NgbGutter, NgbResizable, NgbResizableGroup, aliasResizable, aliasResizableGroup };
@@ -11,7 +11,7 @@ import {
11
11
  @Component({
12
12
  selector: '<%= name %>-accordion-group',
13
13
  changeDetection: ChangeDetectionStrategy.OnPush,
14
- hostDirectives: [{ directive: NgbAccordionGroup, inputs: ['multiple'] }],
14
+ hostDirectives: [{ directive: NgbAccordionGroup, inputs: ['multiple', 'expandAll'] }],
15
15
  template: `<ng-content />`,
16
16
  host: {
17
17
  class: 'block rounded-lg border bg-background',
@@ -29,7 +29,7 @@ export class AccordionGroup {}
29
29
  <ng-content select="[<%= name %>AccordionHeader]" />
30
30
  @if (expanded()) {
31
31
  <div ngbAccordionContent [@slide] class="overflow-hidden">
32
- <div class="text-muted-foreground px-3 pb-4">
32
+ <div class="px-3 pb-4">
33
33
  <ng-content />
34
34
  </div>
35
35
  </div>
@@ -4,6 +4,7 @@ import { NgbSelectOptionGroup } from '@ngbase/adk/select';
4
4
 
5
5
  @Component({
6
6
  selector: '<%= name %>-autocomplete',
7
+ exportAs: '<%= name %>Autocomplete',
7
8
  changeDetection: ChangeDetectionStrategy.OnPush,
8
9
  providers: [aliasAutocomplete(Autocomplete)],
9
10
  imports: [NgbSelectOptionGroup],
@@ -1,6 +1,8 @@
1
- import { ChangeDetectionStrategy, Component, input } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';
2
2
  import { NgbAvatar, NgbAvatarGroup, aliasAvatar } from '@ngbase/adk/avatar';
3
3
 
4
+ type AvatarSize = 'xs' | 'sm' | 'md' | 'lg';
5
+
4
6
  @Component({
5
7
  selector: '<%= name %>-avatar-group',
6
8
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -10,7 +12,9 @@ import { NgbAvatar, NgbAvatarGroup, aliasAvatar } from '@ngbase/adk/avatar';
10
12
  class: 'flex flex-row',
11
13
  },
12
14
  })
13
- export class AvatarGroup {}
15
+ export class AvatarGroup {
16
+ readonly size = input<AvatarSize>();
17
+ }
14
18
 
15
19
  @Component({
16
20
  selector: '<%= name %>-avatar, [<%= name %>Avatar]',
@@ -26,9 +30,13 @@ export class AvatarGroup {}
26
30
  host: {
27
31
  class:
28
32
  'inline-flex aspect-square rounded-full overflow-hidden border-2 border-muted relative bg-background text-muted-foreground items-center justify-center',
29
- '[class]': `size() === 'sm' ? 'h-6 w-6' : size() === 'md' ? 'h-8 w-8' : size() === 'lg' ? 'h-10 w-10' : ''`,
33
+ '[class]': `aSize() === 'xs' ? 'h-5 w-5 text-[10px] !border' : aSize() === 'sm' ? 'h-6 w-6' : aSize() === 'md' ? 'h-8 w-8' : aSize() === 'lg' ? 'h-10 w-10' : ''`,
30
34
  },
31
35
  })
32
36
  export class Avatar extends NgbAvatar {
33
- readonly size = input<'sm' | 'md' | 'lg'>('md');
37
+ readonly group = inject(AvatarGroup, { optional: true });
38
+
39
+ readonly size = input<AvatarSize>();
40
+
41
+ readonly aSize = computed(() => this.size() ?? this.group?.size() ?? 'md');
34
42
  }
@@ -1,7 +1,25 @@
1
- import { ChangeDetectionStrategy, Component, input } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
2
  import { ɵFocusStyle as FocusStyle } from '<%= basepath %>/checkbox';
3
3
 
4
- export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'outline' | 'icon';
4
+ export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'outline' | 'icon' | 'link';
5
+ export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'icon';
6
+
7
+ const buttonStyles = {
8
+ primary: 'bg-primary text-primary-foreground border-primary',
9
+ secondary: 'bg-secondary text-secondary-foreground border-secondary hover:bg-secondary/80',
10
+ ghost: 'hover:bg-accent hover:text-accent-foreground border-transparent',
11
+ icon: 'hover:bg-accent hover:text-accent-foreground border-transparent',
12
+ outline: 'bg-background hover:bg-accent hover:text-accent-foreground',
13
+ link: 'hover:text-primary/80 border-transparent',
14
+ };
15
+
16
+ const buttonSizeStyles = {
17
+ xs: 'w-4 h-4',
18
+ md: '',
19
+ sm: 'py-1 px-2',
20
+ lg: 'h-9 px-4',
21
+ icon: 'w-8 h-8',
22
+ };
5
23
 
6
24
  @Component({
7
25
  selector: '[<%= name %>Button]',
@@ -11,21 +29,22 @@ export type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'outline' | 'ico
11
29
  host: {
12
30
  type: 'button',
13
31
  class:
14
- 'inline-flex items-center justify-center rounded-lg py-2 border disabled:opacity-50 disabled:pointer-events-none',
15
- '[class]': `variant() === 'primary'
16
- ? 'bg-primary text-primary-foreground border-primary'
17
- : variant() === 'secondary'
18
- ? 'bg-secondary text-secondary-foreground border-secondary hover:bg-secondary/80'
19
- : variant() === 'ghost' || variant() === 'icon'
20
- ? 'hover:bg-accent hover:text-accent-foreground border-transparent'
21
- : 'bg-background hover:bg-accent hover:text-accent-foreground'`,
22
- '[class.px-4]': 'variant() !== "icon"',
23
- '[class.px-2]': 'variant() === "icon"',
32
+ 'inline-flex items-center justify-center rounded-lg border cursor-pointer disabled:opacity-50 disabled:pointer-events-none gap-2',
33
+ '[class]': 'styles()',
24
34
  },
25
35
  })
26
36
  export class Button {
27
- variant = input('primary', {
37
+ readonly variant = input('primary', {
28
38
  alias: '<%= name %>Button',
29
39
  transform: (value: ButtonVariant | '') => value || 'primary',
30
40
  });
41
+
42
+ readonly size = input<ButtonSize>('lg');
43
+
44
+ readonly styles = computed(() => {
45
+ return [
46
+ buttonStyles[this.variant()],
47
+ buttonSizeStyles[this.variant() === 'icon' ? 'icon' : this.size()],
48
+ ].join(' ');
49
+ });
31
50
  }
@@ -1,10 +1,10 @@
1
- import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
2
- import { FormsModule } from '@angular/forms';
1
+ import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';
3
2
  import { RouterLink } from '@angular/router';
4
3
  import { AccessibleGroup, AccessibleItem, Autofocus } from '@ngbase/adk/a11y';
5
4
  import { DialogRef } from '@ngbase/adk/portal';
6
5
  import { filterFunction, uniqueId } from '@ngbase/adk/utils';
7
6
  import { List } from '<%= basepath %>/list';
7
+ import { MeeInput } from '<%= basepath %>/form-field';
8
8
 
9
9
  export interface CommandGroup {
10
10
  name: string;
@@ -19,15 +19,16 @@ export interface CommandItem {
19
19
  @Component({
20
20
  selector: '<%= name %>-command',
21
21
  changeDetection: ChangeDetectionStrategy.OnPush,
22
- imports: [FormsModule, List, AccessibleGroup, AccessibleItem, Autofocus, RouterLink],
22
+ imports: [List, AccessibleGroup, AccessibleItem, Autofocus, RouterLink, MeeInput],
23
23
  template: `
24
24
  <div ngbAccessibleGroup [ayId]="ayId" [isPopup]="true" class="static w-full">
25
25
  <input
26
26
  ngbAutofocus
27
- [(ngModel)]="filter.search"
27
+ <%= name %>Input
28
+ [(value)]="filter.search"
28
29
  type="text"
29
30
  placeholder="Search for apps and commands"
30
- class="sticky -top-4 w-full border-b bg-background p-4 outline-none"
31
+ class="bg-background sticky -top-4 w-full border-b p-4 outline-none"
31
32
  />
32
33
  @for (group of filter.filteredList(); track group.name) {
33
34
  <h4 class="mx-4 my-2 text-sm text-gray-500">{{ group.name }}</h4>
@@ -70,10 +71,10 @@ export class Command {
70
71
 
71
72
  readonly ayId = uniqueId();
72
73
 
73
- readonly filter = filterFunction<CommandGroup, CommandItem>(this.dialogRef.data!, () => ({
74
- filter: item => item.name,
75
- key: 'items',
76
- }));
74
+ readonly filter = filterFunction<CommandGroup, CommandItem>(
75
+ this.dialogRef.data!,
76
+ signal({ filter: item => item.name, key: 'items' }),
77
+ );
77
78
 
78
79
  close() {
79
80
  this.dialogRef.close();
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```typescript
4
4
  import { FormField, Label } from '@/ui/form-field';
5
- import { DatepickerTrigger } from '@/ui/datepicker';
5
+ import { DatepickerTrigger, DatePicker } from '@/ui/datepicker';
6
6
  ```
7
7
 
8
8
  ## Components
@@ -20,12 +20,22 @@ import { DatepickerTrigger } from '@/ui/datepicker';
20
20
  - `pickerType`: 'date' | 'month' | 'year' - The type of picker to display
21
21
  - `pickerTemplate`: TemplateRef<any> - A template to display in the picker
22
22
 
23
+ ### `<%= name %>-date-picker`
24
+
25
+ - **Inputs:**
26
+
27
+ - `dateFilter`: (date: Date) => boolean - A function to filter dates
28
+ - `pickerType`: 'date' | 'month' | 'year' - The type of picker to display
29
+ - `noOfCalendar`: number - The number of calendars to display
30
+ - `range`: boolean - Whether to display a range of dates
31
+
23
32
  ## Usage
24
33
 
25
34
  ```html
26
35
  <<%= name %>-form-field>
27
36
  <label <%= name %>Label>Date</label>
28
- <<%= name %>-datepicker-trigger
37
+ <input
38
+ <%= name %>DatepickerTrigger
29
39
  [noOfCalendars]="noOfCalendars"
30
40
  [range]="range"
31
41
  [time]="time"
@@ -40,4 +50,7 @@ import { DatepickerTrigger } from '@/ui/datepicker';
40
50
  <button <%= name %>Button>Yesterday</button>
41
51
  </ng-template>
42
52
  </<%= name %>-form-field>
53
+
54
+ <!-- Calendar -->
55
+ <<%= name %>-date-picker />
43
56
  ```
@@ -11,8 +11,10 @@ import {
11
11
  NgbDialogContainer,
12
12
  NgbDialogMain,
13
13
  ngbDialogPortal,
14
+ viewAnimation,
14
15
  } from '@ngbase/adk/dialog';
15
16
  import { DragMove } from '@ngbase/adk/drag';
17
+ import { createHostAnimation, fadeAnimation } from '@ngbase/adk/utils';
16
18
 
17
19
  @Component({
18
20
  selector: '<%= name %>-dialog',
@@ -53,9 +55,9 @@ import { DragMove } from '@ngbase/adk/drag';
53
55
  </div>
54
56
  @if (showBackdrop()) {
55
57
  <div
56
- class="pointer-events-auto absolute top-0 -z-10 h-full w-full bg-black bg-opacity-30"
57
- ngbDialogBackdrop
58
+ class="pointer-events-auto absolute top-0 -z-10 h-full w-full bg-black/30"
58
59
  [@fadeAnimation]
60
+ ngbDialogBackdrop
59
61
  ></div>
60
62
  }
61
63
  </div>
@@ -63,6 +65,11 @@ import { DragMove } from '@ngbase/adk/drag';
63
65
  host: {
64
66
  class: 'fixed block top-0 bottom-0 left-0 right-0 overflow-auto pointer-events-none z-p',
65
67
  },
68
+ animations: [
69
+ createHostAnimation(['@viewAnimation', '@fadeAnimation']),
70
+ fadeAnimation('200ms'),
71
+ viewAnimation,
72
+ ],
66
73
  })
67
74
  export class DialogContainer extends NgbDialogContainer {}
68
75
 
@@ -32,7 +32,7 @@ import { createHostAnimation, fadeAnimation } from '@ngbase/adk/utils';
32
32
  </div>
33
33
  @if (backdropColor) {
34
34
  <div
35
- class="absolute top-0 -z-10 h-full w-full bg-black bg-opacity-30"
35
+ class="absolute top-0 -z-10 h-full w-full bg-black/30"
36
36
  [@fadeAnimation]
37
37
  (click)="close()"
38
38
  ></div>
@@ -5,6 +5,7 @@ import {
5
5
  effect,
6
6
  ElementRef,
7
7
  inject,
8
+ OnDestroy,
8
9
  viewChild,
9
10
  } from '@angular/core';
10
11
  import {
@@ -101,11 +102,19 @@ export class InputSuffix {}
101
102
  },
102
103
  animations: [toggleDiv],
103
104
  })
104
- export class InputError {
105
+ export class InputError implements OnDestroy {
105
106
  readonly error = inject(NgbInputError);
107
+ readonly el = inject<ElementRef<HTMLDivElement>>(ElementRef);
108
+
106
109
  readonly isInvalid = this.error.isInvalid;
107
110
 
108
111
  constructor() {
109
112
  this.error.animate.set(true);
110
113
  }
114
+
115
+ ngOnDestroy() {
116
+ if (!this.isInvalid()) {
117
+ this.el.nativeElement.classList.add('h-0', 'opacity-0');
118
+ }
119
+ }
111
120
  }
@@ -5,7 +5,7 @@ import { ɵFocusStyles as focusStyles } from '<%= basepath %>/checkbox';
5
5
  selector: '[<%= name %>InputStyle]',
6
6
  host: {
7
7
  '[class]':
8
- "'mis inline-block rounded-lg bg-transparent px-2.5 py-2 border font-normal min-h-10 ' + focusStyles.focus + ' ' + focusStyles.within",
8
+ "'mis inline-flex rounded-lg bg-transparent px-2.5 py-2 border font-normal min-h-10 ' + focusStyles.focus + ' ' + focusStyles.within",
9
9
  },
10
10
  })
11
11
  export class InputStyle {
@@ -18,7 +18,6 @@ import { lucideHouse } from '@ng-icons/lucide';
18
18
 
19
19
  ```typescript
20
20
  @Component({
21
- standalone: true,
22
21
  viewProviders: [provideIcons({ lucideHouse })],
23
22
  imports: [Icon],
24
23
  template: `<<%= name %>-icon name="lucideHouse" />`,
@@ -3,13 +3,13 @@ import {
3
3
  NgbInlineEdit,
4
4
  NgbInlineInput,
5
5
  NgbInlineValue,
6
- provideInlineEdit,
6
+ aliasInlineEdit,
7
7
  } from '@ngbase/adk/inline-edit';
8
8
 
9
9
  @Component({
10
10
  selector: '<%= name %>-inline-edit',
11
+ providers: [aliasInlineEdit(InlineEdit)],
11
12
  imports: [NgbInlineInput, NgbInlineValue],
12
- providers: [provideInlineEdit(), { provide: NgbInlineEdit, useExisting: InlineEdit }],
13
13
  template: `
14
14
  @if (isEditing()) {
15
15
  <input
@@ -16,7 +16,7 @@ import { InputStyle } from '<%= basepath %>/form-field';
16
16
  <%= name %>InputStyle
17
17
  ngbOtpValue
18
18
  class="{{
19
- 'mb-0 aspect-square w-10 rounded-none !px-0 text-center text-base font-semibold data-[disabled]:bg-muted/40 data-[disabled]:text-muted-foreground data-[focus]:relative' +
19
+ 'mb-0 aspect-square w-10 rounded-none !px-0 justify-center text-base font-semibold data-[disabled]:bg-muted/40 data-[disabled]:text-muted-foreground data-[focus]:relative data-[focus]:ring-2' +
20
20
  ((dir.isRtl() ? ll : i === 0) ? ' !rounded-l-lg' : '') +
21
21
  ((dir.isRtl() ? i === 0 : ll) ? ' !rounded-r-lg' : '')
22
22
  }}"
@@ -10,7 +10,7 @@ import { createHostAnimation, fadeAnimation } from '@ngbase/adk/utils';
10
10
  import { Subject } from 'rxjs';
11
11
 
12
12
  @Component({
13
- selector: '<%= name %>-dialog',
13
+ selector: '<%= name %>-picasa',
14
14
  changeDetection: ChangeDetectionStrategy.OnPush,
15
15
  template: `
16
16
  <div class="pointer-events-none flex h-full items-center justify-center">
@@ -25,7 +25,6 @@ import { Subject } from 'rxjs';
25
25
  </div>
26
26
  `,
27
27
  host: {
28
- '[ngStyle]': '{ "z-index": options.overrideLowerDialog ? "982" : "980" }',
29
28
  class: 'fixed block top-0 bottom-0 left-0 right-0 overflow-auto pointer-events-none z-p',
30
29
  '[@parentAnimation]': '',
31
30
  },
@@ -18,10 +18,10 @@ import { PicasaBase } from './picasa-base.component';
18
18
  },
19
19
  })
20
20
  export class PicasaContainer {
21
- data = inject(DialogRef);
22
- imgEl = viewChild<ElementRef<HTMLImageElement>>('imgEl');
23
- dialogRef = inject(DialogRef);
24
- picasa = inject(PicasaBase);
21
+ readonly data = inject(DialogRef);
22
+ readonly imgEl = viewChild<ElementRef<HTMLImageElement>>('imgEl');
23
+ readonly dialogRef = inject(DialogRef);
24
+ readonly picasa = inject(PicasaBase);
25
25
 
26
26
  constructor() {
27
27
  let transform = '';
@@ -6,7 +6,6 @@ import {
6
6
  Directive,
7
7
  input,
8
8
  } from '@angular/core';
9
- import { FormsModule } from '@angular/forms';
10
9
  import { Icon } from '<%= basepath %>/icon';
11
10
  import { provideIcons } from '@ng-icons/core';
12
11
  import { lucideChevronsUpDown } from '@ng-icons/lucide';
@@ -29,23 +28,16 @@ export class SelectOption<T> {}
29
28
 
30
29
  @Component({
31
30
  selector: '<%= name %>-select',
31
+ exportAs: '<%= name %>Select',
32
32
  changeDetection: ChangeDetectionStrategy.OnPush,
33
33
  viewProviders: [provideIcons({ lucideChevronsUpDown })],
34
34
  providers: [aliasSelect(Select)],
35
- imports: [
36
- Icon,
37
- FormsModule,
38
- SelectInput,
39
- Option,
40
- NgTemplateOutlet,
41
- SelectValue,
42
- NgbSelectOptionGroup,
43
- ],
35
+ imports: [Icon, SelectInput, Option, NgTemplateOutlet, SelectValue, NgbSelectOptionGroup],
44
36
  template: `
45
37
  <button
46
38
  ngbSelectValue
47
39
  [class.opacity-50]="disabled()"
48
- class="flex min-h-5 w-full items-center gap-1 whitespace-nowrap text-left outline-none"
40
+ class="flex min-h-5 w-full items-center gap-1 text-left whitespace-nowrap outline-none"
49
41
  >
50
42
  <!-- Prefix template -->
51
43
  <ng-content select=".select-prefix" />
@@ -56,7 +48,7 @@ export class SelectOption<T> {}
56
48
  </ng-content>
57
49
  </span>
58
50
  @if (!noIcon()) {
59
- <<%= name %>-icon name="lucideChevronsUpDown" class="ml-0.5 text-muted-foreground" />
51
+ <<%= name %>-icon name="lucideChevronsUpDown" class="text-muted-foreground ml-0.5" />
60
52
  }
61
53
  </button>
62
54
 
@@ -65,12 +57,7 @@ export class SelectOption<T> {}
65
57
  <div class="flex flex-col overflow-hidden">
66
58
  <ng-content select="[<%= name %>SelectInput]">
67
59
  @if (options().length) {
68
- <input
69
- <%= name %>SelectInput
70
- placeholder="Search options"
71
- [(ngModel)]="optionsFilter.search"
72
- [ngModelOptions]="{ standalone: true }"
73
- />
60
+ <input <%= name %>SelectInput placeholder="Search options" [(value)]="optionsFilter.search" />
74
61
  }
75
62
  </ng-content>
76
63
  <div #optionsGroup ngbSelectOptionGroup class="overflow-auto p-1">
@@ -44,7 +44,7 @@ import { createHostAnimation, fadeAnimation } from '@ngbase/adk/utils';
44
44
  </div>
45
45
  @if (backdropColor) {
46
46
  <div
47
- class="absolute top-0 -z-10 h-full w-full bg-black bg-opacity-30 will-change-transform"
47
+ class="absolute top-0 -z-10 h-full w-full bg-black/30"
48
48
  [@fadeAnimation]
49
49
  (click)="close()"
50
50
  ></div>
@@ -26,7 +26,6 @@ import { Sidenav, SidenavHeader } from '@/ui/sidenav';
26
26
 
27
27
  ```typescript
28
28
  @Component({
29
- standalone: true,
30
29
  imports: [Sidenav, SidenavHeader],
31
30
  template: ` <<%= name %>-sidenav [show]="show()" [mode]="mode()">
32
31
  <<%= name %>-sidenav-header width="100px" minWidth="50px">
@@ -1,28 +1,4 @@
1
1
  import { Component, input } from '@angular/core';
2
- import { animate, keyframes, style, transition, trigger } from '@angular/animations';
3
-
4
- const spinnerAnimation = trigger('enterLeave', [
5
- transition(':enter', [
6
- animate(
7
- '500ms cubic-bezier(0.68, -0.55, 0.265, 1.55)',
8
- keyframes([
9
- style({ opacity: 0, transform: 'scale(0)', offset: 0 }),
10
- style({ opacity: 1, transform: 'scale(1.5)', offset: 0.7 }),
11
- style({ opacity: 1, transform: 'scale(1)', offset: 1 }),
12
- ]),
13
- ),
14
- ]),
15
- transition(':leave', [
16
- animate(
17
- '500ms cubic-bezier(0.68, -0.55, 0.265, 1.55)',
18
- keyframes([
19
- style({ opacity: 1, transform: 'scale(1)', offset: 0 }),
20
- style({ opacity: 1, transform: 'scale(1.5)', offset: 0.3 }),
21
- style({ opacity: 0, transform: 'scale(0)', offset: 1 }),
22
- ]),
23
- ),
24
- ]),
25
- ]);
26
2
 
27
3
  @Component({
28
4
  selector: '<%= name %>-spinner',
@@ -64,12 +40,8 @@ const spinnerAnimation = trigger('enterLeave', [
64
40
  `,
65
41
  host: {
66
42
  class: 'inline-flex items-center justify-center transition-all duration-300 text-primary',
67
- '[class]': `root() ? 'fixed inset-0 z-p bg-background bg-opacity-60 backdrop-blur-sm' : 'relative'`,
43
+ '[class]': `root() ? 'fixed inset-0 z-p bg-background/60 backdrop-blur-sm' : 'relative'`,
68
44
  },
69
- animations: [
70
- // animation for entering and exiting, with a bouncy effect
71
- spinnerAnimation,
72
- ],
73
45
  })
74
46
  export class Spinner {
75
47
  readonly mode = input<'light' | 'dark' | ''>('light');
@@ -1,5 +1,60 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngbase/adk/scroll-area" />
5
- export * from './public-api';
1
+ import * as _angular_core from '@angular/core';
2
+ import { ElementRef } from '@angular/core';
3
+ import * as i1 from '@ngbase/adk/drag';
4
+ import { Drag, DragData } from '@ngbase/adk/drag';
5
+
6
+ type ScrollBarOrientation = 'vertical' | 'horizontal' | 'both';
7
+ declare class NgbScrollBar {
8
+ readonly el: ElementRef<HTMLDivElement>;
9
+ readonly scrollArea: NgbScrollArea;
10
+ readonly drag: Drag;
11
+ readonly ngbScrollBar: _angular_core.InputSignal<"vertical" | "horizontal">;
12
+ readonly visible: _angular_core.Signal<boolean>;
13
+ readonly show: _angular_core.Signal<boolean>;
14
+ readonly size: _angular_core.Signal<string>;
15
+ constructor();
16
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgbScrollBar, never>;
17
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgbScrollBar, "[ngbScrollBar]", never, { "ngbScrollBar": { "alias": "ngbScrollBar"; "required": true; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.Drag; inputs: {}; outputs: {}; }]>;
18
+ }
19
+ declare class NgbScrollArea {
20
+ readonly scrollAreaViewport: _angular_core.Signal<ElementRef<HTMLDivElement>>;
21
+ readonly scrollbars: _angular_core.Signal<readonly NgbScrollBar[]>;
22
+ readonly scrollbarVertical: _angular_core.Signal<NgbScrollBar | undefined>;
23
+ readonly scrollbarHorizontal: _angular_core.Signal<NgbScrollBar | undefined>;
24
+ readonly orientation: _angular_core.InputSignal<ScrollBarOrientation>;
25
+ readonly hideDelay: _angular_core.InputSignal<number>;
26
+ readonly alwaysShow: _angular_core.InputSignal<boolean>;
27
+ private viewportHeight;
28
+ private viewportWidth;
29
+ private contentHeight;
30
+ private contentWidth;
31
+ private isScrolling;
32
+ private hideTimeout;
33
+ readonly isDragging: _angular_core.WritableSignal<boolean>;
34
+ private startY;
35
+ private startX;
36
+ private startScrollTop;
37
+ private startScrollLeft;
38
+ private client;
39
+ protected readonly showScrollbar: _angular_core.Signal<boolean>;
40
+ protected readonly hasVertical: _angular_core.Signal<boolean>;
41
+ protected readonly hasHorizontal: _angular_core.Signal<boolean>;
42
+ readonly showVerticalBar: _angular_core.Signal<boolean>;
43
+ readonly showHorizontalBar: _angular_core.Signal<boolean>;
44
+ readonly showVerticalScroll: _angular_core.Signal<boolean>;
45
+ readonly showHorizontalScroll: _angular_core.Signal<boolean>;
46
+ readonly scrollbarHeight: _angular_core.Signal<number>;
47
+ readonly scrollbarWidth: _angular_core.Signal<number>;
48
+ constructor();
49
+ private updateDimensions;
50
+ private handleScroll;
51
+ private scrollbarVerticalTransform;
52
+ private scrollbarHorizontalTransform;
53
+ startDraggingVertical(data: DragData): void;
54
+ startDraggingHorizontal(data: DragData): void;
55
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgbScrollArea, never>;
56
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgbScrollArea, "[ngbScrollArea]", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "hideDelay"; "required": false; "isSignal": true; }; "alwaysShow": { "alias": "alwaysShow"; "required": false; "isSignal": true; }; }, {}, ["scrollbars"], ["*", "[ngbScrollBar]", ".scroll-area-corner"], true, never>;
57
+ }
58
+
59
+ export { NgbScrollArea, NgbScrollBar };
60
+ export type { ScrollBarOrientation };