@ojiepermana/angular 21.3.3 → 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 (291) 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/README.md +8 -5
  230. package/generator/api/bin/src/emit/client.js +4 -2
  231. package/generator/api/bin/src/writer/index.js +47 -5
  232. package/generator/guide/bin/schematics/build/index.js +3 -2
  233. package/generator/guide/bin/src/engine/component.js +2 -2
  234. package/generator/guide/bin/src/engine/index.js +3 -3
  235. package/generator/guide/bin/src/engine/render.js +10 -5
  236. package/layout/type/empty/package.json +4 -0
  237. package/layout/type/horizontal/package.json +4 -0
  238. package/layout/type/vertical/package.json +4 -0
  239. package/navigation/topbar/README.md +196 -0
  240. package/package.json +89 -25
  241. package/theme/README.md +110 -3
  242. package/theme/styles/integrations/material/autocomplete.css +178 -0
  243. package/theme/styles/integrations/material/button.css +468 -0
  244. package/theme/styles/integrations/material/dialog.css +152 -0
  245. package/theme/styles/integrations/material/select.css +175 -0
  246. package/theme/styles/integrations/material/slide-toggle.css +234 -0
  247. package/theme/styles/integrations/material/slider.css +194 -0
  248. package/theme/styles/integrations/material/tabs.css +229 -0
  249. package/theme/styles/integrations/material.css +70 -60
  250. package/types/ojiepermana-angular-component-combobox.d.ts +1 -2
  251. package/types/ojiepermana-angular-component-composer.d.ts +90 -0
  252. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +2 -0
  253. package/types/ojiepermana-angular-component-editor.d.ts +123 -0
  254. package/types/ojiepermana-angular-component-empty.d.ts +50 -0
  255. package/types/ojiepermana-angular-component-form.d.ts +52 -3
  256. package/types/ojiepermana-angular-component-hover-card.d.ts +74 -0
  257. package/types/ojiepermana-angular-component-input-otp.d.ts +136 -0
  258. package/types/ojiepermana-angular-component-kanban.d.ts +70 -0
  259. package/types/ojiepermana-angular-component-kbd.d.ts +16 -0
  260. package/types/ojiepermana-angular-component-menubar.d.ts +67 -0
  261. package/types/ojiepermana-angular-component-native-select.d.ts +26 -0
  262. package/types/ojiepermana-angular-component-navigation-menu.d.ts +96 -0
  263. package/types/ojiepermana-angular-component-pagination.d.ts +10 -4
  264. package/types/ojiepermana-angular-component-pillbox.d.ts +157 -0
  265. package/types/ojiepermana-angular-component-radio.d.ts +7 -1
  266. package/types/ojiepermana-angular-component-resizable.d.ts +99 -0
  267. package/types/ojiepermana-angular-component-select.d.ts +17 -5
  268. package/types/ojiepermana-angular-component-sheet.d.ts +3 -1
  269. package/types/ojiepermana-angular-component-slider.d.ts +59 -1
  270. package/types/ojiepermana-angular-component-spinner.d.ts +13 -0
  271. package/types/ojiepermana-angular-component-switch.d.ts +13 -3
  272. package/types/ojiepermana-angular-component-timeline.d.ts +63 -0
  273. package/types/ojiepermana-angular-component-toast.d.ts +12 -3
  274. package/types/ojiepermana-angular-component-toggle-group.d.ts +89 -0
  275. package/types/ojiepermana-angular-component-toggle.d.ts +25 -0
  276. package/types/ojiepermana-angular-component-tooltip.d.ts +72 -5
  277. package/types/{ojiepermana-angular-layout-horizontal.d.ts → ojiepermana-angular-layout-type-horizontal.d.ts} +3 -3
  278. package/types/{ojiepermana-angular-layout-vertical.d.ts → ojiepermana-angular-layout-type-vertical.d.ts} +3 -3
  279. package/types/ojiepermana-angular-layout.d.ts +5 -5
  280. package/types/ojiepermana-angular-navigation-item.d.ts +1 -1
  281. package/types/ojiepermana-angular-navigation-service.d.ts +7 -7
  282. package/types/ojiepermana-angular-navigation-sidebar.d.ts +8 -8
  283. package/types/ojiepermana-angular-navigation-topbar.d.ts +24 -4
  284. package/types/ojiepermana-angular-navigation-types.d.ts +14 -8
  285. package/fesm2022/ojiepermana-angular-layout-empty.mjs.map +0 -1
  286. package/fesm2022/ojiepermana-angular-layout-horizontal.mjs.map +0 -1
  287. package/fesm2022/ojiepermana-angular-layout-vertical.mjs.map +0 -1
  288. package/layout/empty/package.json +0 -4
  289. package/layout/horizontal/package.json +0 -4
  290. package/layout/vertical/package.json +0 -4
  291. /package/types/{ojiepermana-angular-layout-empty.d.ts → ojiepermana-angular-layout-type-empty.d.ts} +0 -0
@@ -5,29 +5,41 @@ import EmblaCarousel from 'embla-carousel';
5
5
  import { cn } from '@ojiepermana/angular/component/utils';
6
6
 
7
7
  class CarouselContextBase {
8
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselContextBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.14", type: CarouselContextBase, isStandalone: true, ngImport: i0 });
8
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselContextBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: CarouselContextBase, isStandalone: true, ngImport: i0 });
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselContextBase, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselContextBase, decorators: [{
12
12
  type: Directive
13
13
  }] });
14
14
  class CarouselComponent extends CarouselContextBase {
15
- orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
16
- opts = input({}, ...(ngDevMode ? [{ debugName: "opts" }] : /* istanbul ignore next */ []));
17
- plugins = input([], ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
18
- keyboard = input(true, ...(ngDevMode ? [{ debugName: "keyboard" }] : /* istanbul ignore next */ []));
19
- label = input('Carousel', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
20
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
15
+ orientation = input('horizontal', /* @ts-ignore */
16
+ ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
17
+ opts = input({}, /* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "opts" }] : /* istanbul ignore next */ []));
19
+ plugins = input([], /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
21
+ keyboard = input(true, /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "keyboard" }] : /* istanbul ignore next */ []));
23
+ label = input('Carousel', /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
25
+ class = input('', /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
21
27
  apiReady = output();
22
28
  apiChange = output();
23
- selectedIndex = signal(0, ...(ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []));
24
- slideCount = signal(0, ...(ngDevMode ? [{ debugName: "slideCount" }] : /* istanbul ignore next */ []));
25
- canScrollPrev = signal(false, ...(ngDevMode ? [{ debugName: "canScrollPrev" }] : /* istanbul ignore next */ []));
26
- canScrollNext = signal(false, ...(ngDevMode ? [{ debugName: "canScrollNext" }] : /* istanbul ignore next */ []));
29
+ selectedIndex = signal(0, /* @ts-ignore */
30
+ ...(ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []));
31
+ slideCount = signal(0, /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "slideCount" }] : /* istanbul ignore next */ []));
33
+ canScrollPrev = signal(false, /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "canScrollPrev" }] : /* istanbul ignore next */ []));
35
+ canScrollNext = signal(false, /* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "canScrollNext" }] : /* istanbul ignore next */ []));
27
37
  isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
28
- viewport = signal(null, ...(ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []));
38
+ viewport = signal(null, /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []));
29
40
  api = null;
30
- classes = computed(() => cn('relative block', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
41
+ classes = computed(() => cn('relative block', this.class()), /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
31
43
  constructor() {
32
44
  super();
33
45
  effect((onCleanup) => {
@@ -116,10 +128,10 @@ class CarouselComponent extends CarouselContextBase {
116
128
  this.canScrollPrev.set(false);
117
129
  this.canScrollNext.set(false);
118
130
  }
119
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
120
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: CarouselComponent, isStandalone: true, selector: "ui-carousel", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, opts: { classPropertyName: "opts", publicName: "opts", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, keyboard: { classPropertyName: "keyboard", publicName: "keyboard", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { apiReady: "apiReady", apiChange: "apiChange" }, host: { listeners: { "keydown": "onKeydown($event)" }, properties: { "class": "classes()", "attr.role": "\"region\"", "attr.aria-roledescription": "\"carousel\"", "attr.aria-label": "label()", "attr.data-orientation": "orientation()", "attr.tabindex": "keyboard() ? 0 : null" } }, providers: [{ provide: CarouselContextBase, useExisting: forwardRef(() => CarouselComponent) }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
131
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
132
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: CarouselComponent, isStandalone: true, selector: "ui-carousel", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, opts: { classPropertyName: "opts", publicName: "opts", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, keyboard: { classPropertyName: "keyboard", publicName: "keyboard", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { apiReady: "apiReady", apiChange: "apiChange" }, host: { listeners: { "keydown": "onKeydown($event)" }, properties: { "class": "classes()", "attr.role": "\"region\"", "attr.aria-roledescription": "\"carousel\"", "attr.aria-label": "label()", "attr.data-orientation": "orientation()", "attr.tabindex": "keyboard() ? 0 : null" } }, providers: [{ provide: CarouselContextBase, useExisting: forwardRef(() => CarouselComponent) }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
121
133
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselComponent, decorators: [{
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselComponent, decorators: [{
123
135
  type: Component,
124
136
  args: [{
125
137
  selector: 'ui-carousel',
@@ -139,9 +151,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
139
151
  }], ctorParameters: () => [], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], opts: [{ type: i0.Input, args: [{ isSignal: true, alias: "opts", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }], keyboard: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyboard", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], apiReady: [{ type: i0.Output, args: ["apiReady"] }], apiChange: [{ type: i0.Output, args: ["apiChange"] }] } });
140
152
  class CarouselContentComponent {
141
153
  ctx = inject(CarouselContextBase);
142
- viewport = viewChild('viewport', ...(ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []));
143
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
144
- contentClasses = computed(() => cn('flex', this.ctx.orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', this.class()), ...(ngDevMode ? [{ debugName: "contentClasses" }] : /* istanbul ignore next */ []));
154
+ viewport = viewChild('viewport', /* @ts-ignore */
155
+ ...(ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []));
156
+ class = input('', /* @ts-ignore */
157
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
158
+ contentClasses = computed(() => cn('flex', this.ctx.orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', this.class()), /* @ts-ignore */
159
+ ...(ngDevMode ? [{ debugName: "contentClasses" }] : /* istanbul ignore next */ []));
145
160
  ngAfterViewInit() {
146
161
  const viewport = this.viewport()?.nativeElement;
147
162
  if (viewport)
@@ -152,14 +167,14 @@ class CarouselContentComponent {
152
167
  if (viewport)
153
168
  this.ctx.unregisterViewport(viewport);
154
169
  }
155
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
156
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.14", type: CarouselContentComponent, isStandalone: true, selector: "ui-carousel-content", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "\"block\"" } }, viewQueries: [{ propertyName: "viewport", first: true, predicate: ["viewport"], descendants: true, isSignal: true }], ngImport: i0, template: `
170
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
171
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: CarouselContentComponent, isStandalone: true, selector: "ui-carousel-content", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "\"block\"" } }, viewQueries: [{ propertyName: "viewport", first: true, predicate: ["viewport"], descendants: true, isSignal: true }], ngImport: i0, template: `
157
172
  <div #viewport class="overflow-hidden">
158
173
  <div [class]="contentClasses()"><ng-content /></div>
159
174
  </div>
160
175
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
161
176
  }
162
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselContentComponent, decorators: [{
177
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselContentComponent, decorators: [{
163
178
  type: Component,
164
179
  args: [{
165
180
  selector: 'ui-carousel-content',
@@ -176,13 +191,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
176
191
  }], propDecorators: { viewport: [{ type: i0.ViewChild, args: ['viewport', { isSignal: true }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
177
192
  class CarouselItemComponent {
178
193
  ctx = inject(CarouselContextBase);
179
- ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
180
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
181
- classes = computed(() => cn('min-w-0 shrink-0 grow-0 basis-full', this.ctx.orientation() === 'horizontal' ? 'pl-4' : 'pt-4', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
182
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
183
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: CarouselItemComponent, isStandalone: true, selector: "ui-carousel-item", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"group\"", "attr.aria-roledescription": "\"slide\"", "attr.aria-label": "ariaLabel()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
194
+ ariaLabel = input(null, /* @ts-ignore */
195
+ ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
196
+ class = input('', /* @ts-ignore */
197
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
198
+ classes = computed(() => cn('min-w-0 shrink-0 grow-0 basis-full', this.ctx.orientation() === 'horizontal' ? 'pl-4' : 'pt-4', this.class()), /* @ts-ignore */
199
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
200
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
201
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: CarouselItemComponent, isStandalone: true, selector: "ui-carousel-item", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.role": "\"group\"", "attr.aria-roledescription": "\"slide\"", "attr.aria-label": "ariaLabel()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
184
202
  }
185
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselItemComponent, decorators: [{
203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselItemComponent, decorators: [{
186
204
  type: Component,
187
205
  args: [{
188
206
  selector: 'ui-carousel-item',
@@ -198,11 +216,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
198
216
  }], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
199
217
  class CarouselPreviousComponent {
200
218
  ctx = inject(CarouselContextBase);
201
- label = input('Previous slide', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
202
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
203
- classes = computed(() => cn(carouselButtonClasses, carouselPreviousPlacement(this.ctx.orientation()), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
204
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselPreviousComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
205
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: CarouselPreviousComponent, isStandalone: true, selector: "button[ui-carousel-previous]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "click": "ctx.scrollPrev()" }, properties: { "class": "classes()", "attr.aria-label": "label()", "disabled": "!ctx.canScrollPrev() || null" } }, ngImport: i0, template: `
219
+ label = input('Previous slide', /* @ts-ignore */
220
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
221
+ class = input('', /* @ts-ignore */
222
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
223
+ classes = computed(() => cn(carouselButtonClasses, carouselPreviousPlacement(this.ctx.orientation()), this.class()), /* @ts-ignore */
224
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
225
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselPreviousComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
226
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: CarouselPreviousComponent, isStandalone: true, selector: "button[ui-carousel-previous]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "click": "ctx.scrollPrev()" }, properties: { "class": "classes()", "attr.aria-label": "label()", "disabled": "!ctx.canScrollPrev() || null" } }, ngImport: i0, template: `
206
227
  <svg
207
228
  aria-hidden="true"
208
229
  class="h-4 w-4"
@@ -216,7 +237,7 @@ class CarouselPreviousComponent {
216
237
  </svg>
217
238
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
218
239
  }
219
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselPreviousComponent, decorators: [{
240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselPreviousComponent, decorators: [{
220
241
  type: Component,
221
242
  args: [{
222
243
  selector: 'button[ui-carousel-previous]',
@@ -245,11 +266,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
245
266
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
246
267
  class CarouselNextComponent {
247
268
  ctx = inject(CarouselContextBase);
248
- label = input('Next slide', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
249
- class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
250
- classes = computed(() => cn(carouselButtonClasses, carouselNextPlacement(this.ctx.orientation()), this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
251
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselNextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
252
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: CarouselNextComponent, isStandalone: true, selector: "button[ui-carousel-next]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "click": "ctx.scrollNext()" }, properties: { "class": "classes()", "attr.aria-label": "label()", "disabled": "!ctx.canScrollNext() || null" } }, ngImport: i0, template: `
269
+ label = input('Next slide', /* @ts-ignore */
270
+ ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
271
+ class = input('', /* @ts-ignore */
272
+ ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
273
+ classes = computed(() => cn(carouselButtonClasses, carouselNextPlacement(this.ctx.orientation()), this.class()), /* @ts-ignore */
274
+ ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
275
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselNextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
276
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: CarouselNextComponent, isStandalone: true, selector: "button[ui-carousel-next]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button" }, listeners: { "click": "ctx.scrollNext()" }, properties: { "class": "classes()", "attr.aria-label": "label()", "disabled": "!ctx.canScrollNext() || null" } }, ngImport: i0, template: `
253
277
  <svg
254
278
  aria-hidden="true"
255
279
  class="h-4 w-4"
@@ -263,7 +287,7 @@ class CarouselNextComponent {
263
287
  </svg>
264
288
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
265
289
  }
266
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: CarouselNextComponent, decorators: [{
290
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: CarouselNextComponent, decorators: [{
267
291
  type: Component,
268
292
  args: [{
269
293
  selector: 'button[ui-carousel-next]',
@@ -1 +1 @@
1
- {"version":3,"file":"ojiepermana-angular-component-carousel.mjs","sources":["../../../projects/angular/component/carousel/src/lib/carousel.component.ts","../../../projects/angular/component/carousel/ojiepermana-angular-component-carousel.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n PLATFORM_ID,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n type InputSignal,\n type Signal,\n} from '@angular/core';\nimport EmblaCarousel, { type EmblaCarouselType, type EmblaOptionsType, type EmblaPluginType } from 'embla-carousel';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\nexport type CarouselApi = EmblaCarouselType;\nexport type CarouselOptions = EmblaOptionsType;\nexport type CarouselPlugin = EmblaPluginType;\nexport type CarouselOrientation = 'horizontal' | 'vertical';\n\n@Directive()\nexport abstract class CarouselContextBase {\n abstract readonly orientation: Signal<CarouselOrientation>;\n abstract readonly canScrollPrev: Signal<boolean>;\n abstract readonly canScrollNext: Signal<boolean>;\n\n abstract registerViewport(viewport: HTMLElement): void;\n abstract unregisterViewport(viewport: HTMLElement): void;\n abstract scrollPrev(): void;\n abstract scrollNext(): void;\n abstract scrollTo(index: number): void;\n}\n\n@Component({\n selector: 'ui-carousel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: CarouselContextBase, useExisting: forwardRef(() => CarouselComponent) }],\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"region\"',\n '[attr.aria-roledescription]': '\"carousel\"',\n '[attr.aria-label]': 'label()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.tabindex]': 'keyboard() ? 0 : null',\n '(keydown)': 'onKeydown($event)',\n },\n template: `<ng-content />`,\n})\nexport class CarouselComponent extends CarouselContextBase {\n override readonly orientation = input<CarouselOrientation>('horizontal');\n readonly opts: InputSignal<CarouselOptions> = input<CarouselOptions>({});\n readonly plugins: InputSignal<readonly CarouselPlugin[]> = input<readonly CarouselPlugin[]>([]);\n readonly keyboard = input<boolean>(true);\n readonly label = input<string>('Carousel');\n readonly class = input<string>('');\n\n readonly apiReady = output<CarouselApi>();\n readonly apiChange = output<CarouselApi | null>();\n\n readonly selectedIndex = signal(0);\n readonly slideCount = signal(0);\n override readonly canScrollPrev = signal(false);\n override readonly canScrollNext = signal(false);\n\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly viewport = signal<HTMLElement | null>(null);\n private api: CarouselApi | null = null;\n\n protected readonly classes = computed(() => cn('relative block', this.class()));\n\n constructor() {\n super();\n\n effect((onCleanup) => {\n const viewport = this.viewport();\n const orientation = this.orientation();\n const opts = this.opts();\n const plugins = this.plugins();\n\n if (!this.isBrowser || !viewport) {\n this.api = null;\n this.resetState();\n return;\n }\n\n const carousel = EmblaCarousel(viewport, { ...opts, axis: orientation === 'horizontal' ? 'x' : 'y' }, [\n ...plugins,\n ]);\n const updateState = (): void => this.updateState(carousel);\n\n this.api = carousel;\n this.apiChange.emit(carousel);\n this.apiReady.emit(carousel);\n\n updateState();\n carousel.on('select', updateState);\n carousel.on('reInit', updateState);\n carousel.on('resize', updateState);\n\n onCleanup(() => {\n carousel.destroy();\n if (this.api === carousel) {\n this.api = null;\n this.apiChange.emit(null);\n this.resetState();\n }\n });\n });\n }\n\n override registerViewport(viewport: HTMLElement): void {\n this.viewport.set(viewport);\n }\n\n override unregisterViewport(viewport: HTMLElement): void {\n if (this.viewport() === viewport) {\n this.viewport.set(null);\n }\n }\n\n override scrollPrev(): void {\n this.api?.scrollPrev();\n }\n\n override scrollNext(): void {\n this.api?.scrollNext();\n }\n\n override scrollTo(index: number): void {\n this.api?.scrollTo(index);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (!this.keyboard()) return;\n\n const horizontal = this.orientation() === 'horizontal';\n const previousKey = horizontal ? 'ArrowLeft' : 'ArrowUp';\n const nextKey = horizontal ? 'ArrowRight' : 'ArrowDown';\n\n if (event.key === previousKey) {\n event.preventDefault();\n this.scrollPrev();\n return;\n }\n\n if (event.key === nextKey) {\n event.preventDefault();\n this.scrollNext();\n return;\n }\n\n if (event.key === 'Home') {\n event.preventDefault();\n this.scrollTo(0);\n return;\n }\n\n if (event.key === 'End') {\n event.preventDefault();\n this.scrollTo(Math.max(0, this.slideCount() - 1));\n }\n }\n\n private updateState(carousel: CarouselApi): void {\n this.slideCount.set(carousel.scrollSnapList().length);\n this.selectedIndex.set(carousel.selectedScrollSnap());\n this.canScrollPrev.set(carousel.canScrollPrev());\n this.canScrollNext.set(carousel.canScrollNext());\n }\n\n private resetState(): void {\n this.selectedIndex.set(0);\n this.slideCount.set(0);\n this.canScrollPrev.set(false);\n this.canScrollNext.set(false);\n }\n}\n\n@Component({\n selector: 'ui-carousel-content',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': '\"block\"',\n },\n template: `\n <div #viewport class=\"overflow-hidden\">\n <div [class]=\"contentClasses()\"><ng-content /></div>\n </div>\n `,\n})\nexport class CarouselContentComponent {\n private readonly ctx = inject(CarouselContextBase);\n private readonly viewport = viewChild<ElementRef<HTMLElement>>('viewport');\n\n readonly class = input<string>('');\n\n protected readonly contentClasses = computed(() =>\n cn('flex', this.ctx.orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', this.class()),\n );\n\n ngAfterViewInit(): void {\n const viewport = this.viewport()?.nativeElement;\n if (viewport) this.ctx.registerViewport(viewport);\n }\n\n ngOnDestroy(): void {\n const viewport = this.viewport()?.nativeElement;\n if (viewport) this.ctx.unregisterViewport(viewport);\n }\n}\n\n@Component({\n selector: 'ui-carousel-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"group\"',\n '[attr.aria-roledescription]': '\"slide\"',\n '[attr.aria-label]': 'ariaLabel()',\n },\n template: `<ng-content />`,\n})\nexport class CarouselItemComponent {\n private readonly ctx = inject(CarouselContextBase);\n\n readonly ariaLabel = input<string | null>(null);\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn('min-w-0 shrink-0 grow-0 basis-full', this.ctx.orientation() === 'horizontal' ? 'pl-4' : 'pt-4', this.class()),\n );\n}\n\n@Component({\n selector: 'button[ui-carousel-previous]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n type: 'button',\n '[attr.aria-label]': 'label()',\n '[disabled]': '!ctx.canScrollPrev() || null',\n '(click)': 'ctx.scrollPrev()',\n },\n template: `\n <svg\n aria-hidden=\"true\"\n class=\"h-4 w-4\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n `,\n})\nexport class CarouselPreviousComponent {\n protected readonly ctx = inject(CarouselContextBase);\n\n readonly label = input<string>('Previous slide');\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(carouselButtonClasses, carouselPreviousPlacement(this.ctx.orientation()), this.class()),\n );\n}\n\n@Component({\n selector: 'button[ui-carousel-next]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n type: 'button',\n '[attr.aria-label]': 'label()',\n '[disabled]': '!ctx.canScrollNext() || null',\n '(click)': 'ctx.scrollNext()',\n },\n template: `\n <svg\n aria-hidden=\"true\"\n class=\"h-4 w-4\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n `,\n})\nexport class CarouselNextComponent {\n protected readonly ctx = inject(CarouselContextBase);\n\n readonly label = input<string>('Next slide');\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(carouselButtonClasses, carouselNextPlacement(this.ctx.orientation()), this.class()),\n );\n}\n\nconst carouselButtonClasses =\n 'absolute inline-flex h-8 w-8 items-center justify-center rounded-full border border-border bg-background p-0 text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50';\n\nfunction carouselPreviousPlacement(orientation: CarouselOrientation): string {\n return orientation === 'horizontal'\n ? '-left-12 top-1/2 -translate-y-1/2'\n : '-top-12 left-1/2 -translate-x-1/2 rotate-90';\n}\n\nfunction carouselNextPlacement(orientation: CarouselOrientation): string {\n return orientation === 'horizontal'\n ? '-right-12 top-1/2 -translate-y-1/2'\n : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MA2BsB,mBAAmB,CAAA;wGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBADxC;;AA4BK,MAAO,iBAAkB,SAAQ,mBAAmB,CAAA;AACtC,IAAA,WAAW,GAAG,KAAK,CAAsB,YAAY,kFAAC;AAC/D,IAAA,IAAI,GAAiC,KAAK,CAAkB,EAAE,2EAAC;AAC/D,IAAA,OAAO,GAA2C,KAAK,CAA4B,EAAE,8EAAC;AACtF,IAAA,QAAQ,GAAG,KAAK,CAAU,IAAI,+EAAC;AAC/B,IAAA,KAAK,GAAG,KAAK,CAAS,UAAU,4EAAC;AACjC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;IAEzB,QAAQ,GAAG,MAAM,EAAe;IAChC,SAAS,GAAG,MAAM,EAAsB;AAExC,IAAA,aAAa,GAAG,MAAM,CAAC,CAAC,oFAAC;AACzB,IAAA,UAAU,GAAG,MAAM,CAAC,CAAC,iFAAC;AACb,IAAA,aAAa,GAAG,MAAM,CAAC,KAAK,oFAAC;AAC7B,IAAA,aAAa,GAAG,MAAM,CAAC,KAAK,oFAAC;IAE9B,SAAS,GAAG,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAClD,IAAA,QAAQ,GA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A;;4FAEU,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAxBjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,0BAA0B;oBACpC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,mBAAmB,EAAE,SAAS;AAC9B,wBAAA,YAAY,EAAE,8BAA8B;AAC5C,wBAAA,SAAS,EAAE,kBAAkB;AAC9B,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;AAYT,EAAA,CAAA;AACF,iBAAA;;AAYD,MAAM,qBAAqB,GACzB,gUAAgU;AAElU,SAAS,yBAAyB,CAAC,WAAgC,EAAA;IACjE,OAAO,WAAW,KAAK;AACrB,UAAE;UACA,6CAA6C;AACnD;AAEA,SAAS,qBAAqB,CAAC,WAAgC,EAAA;IAC7D,OAAO,WAAW,KAAK;AACrB,UAAE;UACA,gDAAgD;AACtD;;AClUA;;AAEG;;;;"}
1
+ {"version":3,"file":"ojiepermana-angular-component-carousel.mjs","sources":["../../../projects/angular/component/carousel/carousel.component.ts","../../../projects/angular/component/carousel/ojiepermana-angular-component-carousel.ts"],"sourcesContent":["import { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n PLATFORM_ID,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n output,\n signal,\n viewChild,\n type InputSignal,\n type Signal,\n} from '@angular/core';\nimport EmblaCarousel, { type EmblaCarouselType, type EmblaOptionsType, type EmblaPluginType } from 'embla-carousel';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\nexport type CarouselApi = EmblaCarouselType;\nexport type CarouselOptions = EmblaOptionsType;\nexport type CarouselPlugin = EmblaPluginType;\nexport type CarouselOrientation = 'horizontal' | 'vertical';\n\n@Directive()\nexport abstract class CarouselContextBase {\n abstract readonly orientation: Signal<CarouselOrientation>;\n abstract readonly canScrollPrev: Signal<boolean>;\n abstract readonly canScrollNext: Signal<boolean>;\n\n abstract registerViewport(viewport: HTMLElement): void;\n abstract unregisterViewport(viewport: HTMLElement): void;\n abstract scrollPrev(): void;\n abstract scrollNext(): void;\n abstract scrollTo(index: number): void;\n}\n\n@Component({\n selector: 'ui-carousel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: CarouselContextBase, useExisting: forwardRef(() => CarouselComponent) }],\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"region\"',\n '[attr.aria-roledescription]': '\"carousel\"',\n '[attr.aria-label]': 'label()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.tabindex]': 'keyboard() ? 0 : null',\n '(keydown)': 'onKeydown($event)',\n },\n template: `<ng-content />`,\n})\nexport class CarouselComponent extends CarouselContextBase {\n override readonly orientation = input<CarouselOrientation>('horizontal');\n readonly opts: InputSignal<CarouselOptions> = input<CarouselOptions>({});\n readonly plugins: InputSignal<readonly CarouselPlugin[]> = input<readonly CarouselPlugin[]>([]);\n readonly keyboard = input<boolean>(true);\n readonly label = input<string>('Carousel');\n readonly class = input<string>('');\n\n readonly apiReady = output<CarouselApi>();\n readonly apiChange = output<CarouselApi | null>();\n\n readonly selectedIndex = signal(0);\n readonly slideCount = signal(0);\n override readonly canScrollPrev = signal(false);\n override readonly canScrollNext = signal(false);\n\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly viewport = signal<HTMLElement | null>(null);\n private api: CarouselApi | null = null;\n\n protected readonly classes = computed(() => cn('relative block', this.class()));\n\n constructor() {\n super();\n\n effect((onCleanup) => {\n const viewport = this.viewport();\n const orientation = this.orientation();\n const opts = this.opts();\n const plugins = this.plugins();\n\n if (!this.isBrowser || !viewport) {\n this.api = null;\n this.resetState();\n return;\n }\n\n const carousel = EmblaCarousel(viewport, { ...opts, axis: orientation === 'horizontal' ? 'x' : 'y' }, [\n ...plugins,\n ]);\n const updateState = (): void => this.updateState(carousel);\n\n this.api = carousel;\n this.apiChange.emit(carousel);\n this.apiReady.emit(carousel);\n\n updateState();\n carousel.on('select', updateState);\n carousel.on('reInit', updateState);\n carousel.on('resize', updateState);\n\n onCleanup(() => {\n carousel.destroy();\n if (this.api === carousel) {\n this.api = null;\n this.apiChange.emit(null);\n this.resetState();\n }\n });\n });\n }\n\n override registerViewport(viewport: HTMLElement): void {\n this.viewport.set(viewport);\n }\n\n override unregisterViewport(viewport: HTMLElement): void {\n if (this.viewport() === viewport) {\n this.viewport.set(null);\n }\n }\n\n override scrollPrev(): void {\n this.api?.scrollPrev();\n }\n\n override scrollNext(): void {\n this.api?.scrollNext();\n }\n\n override scrollTo(index: number): void {\n this.api?.scrollTo(index);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (!this.keyboard()) return;\n\n const horizontal = this.orientation() === 'horizontal';\n const previousKey = horizontal ? 'ArrowLeft' : 'ArrowUp';\n const nextKey = horizontal ? 'ArrowRight' : 'ArrowDown';\n\n if (event.key === previousKey) {\n event.preventDefault();\n this.scrollPrev();\n return;\n }\n\n if (event.key === nextKey) {\n event.preventDefault();\n this.scrollNext();\n return;\n }\n\n if (event.key === 'Home') {\n event.preventDefault();\n this.scrollTo(0);\n return;\n }\n\n if (event.key === 'End') {\n event.preventDefault();\n this.scrollTo(Math.max(0, this.slideCount() - 1));\n }\n }\n\n private updateState(carousel: CarouselApi): void {\n this.slideCount.set(carousel.scrollSnapList().length);\n this.selectedIndex.set(carousel.selectedScrollSnap());\n this.canScrollPrev.set(carousel.canScrollPrev());\n this.canScrollNext.set(carousel.canScrollNext());\n }\n\n private resetState(): void {\n this.selectedIndex.set(0);\n this.slideCount.set(0);\n this.canScrollPrev.set(false);\n this.canScrollNext.set(false);\n }\n}\n\n@Component({\n selector: 'ui-carousel-content',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': '\"block\"',\n },\n template: `\n <div #viewport class=\"overflow-hidden\">\n <div [class]=\"contentClasses()\"><ng-content /></div>\n </div>\n `,\n})\nexport class CarouselContentComponent {\n private readonly ctx = inject(CarouselContextBase);\n private readonly viewport = viewChild<ElementRef<HTMLElement>>('viewport');\n\n readonly class = input<string>('');\n\n protected readonly contentClasses = computed(() =>\n cn('flex', this.ctx.orientation() === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', this.class()),\n );\n\n ngAfterViewInit(): void {\n const viewport = this.viewport()?.nativeElement;\n if (viewport) this.ctx.registerViewport(viewport);\n }\n\n ngOnDestroy(): void {\n const viewport = this.viewport()?.nativeElement;\n if (viewport) this.ctx.unregisterViewport(viewport);\n }\n}\n\n@Component({\n selector: 'ui-carousel-item',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.role]': '\"group\"',\n '[attr.aria-roledescription]': '\"slide\"',\n '[attr.aria-label]': 'ariaLabel()',\n },\n template: `<ng-content />`,\n})\nexport class CarouselItemComponent {\n private readonly ctx = inject(CarouselContextBase);\n\n readonly ariaLabel = input<string | null>(null);\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn('min-w-0 shrink-0 grow-0 basis-full', this.ctx.orientation() === 'horizontal' ? 'pl-4' : 'pt-4', this.class()),\n );\n}\n\n@Component({\n selector: 'button[ui-carousel-previous]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n type: 'button',\n '[attr.aria-label]': 'label()',\n '[disabled]': '!ctx.canScrollPrev() || null',\n '(click)': 'ctx.scrollPrev()',\n },\n template: `\n <svg\n aria-hidden=\"true\"\n class=\"h-4 w-4\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path d=\"m15 18-6-6 6-6\" />\n </svg>\n `,\n})\nexport class CarouselPreviousComponent {\n protected readonly ctx = inject(CarouselContextBase);\n\n readonly label = input<string>('Previous slide');\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(carouselButtonClasses, carouselPreviousPlacement(this.ctx.orientation()), this.class()),\n );\n}\n\n@Component({\n selector: 'button[ui-carousel-next]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n type: 'button',\n '[attr.aria-label]': 'label()',\n '[disabled]': '!ctx.canScrollNext() || null',\n '(click)': 'ctx.scrollNext()',\n },\n template: `\n <svg\n aria-hidden=\"true\"\n class=\"h-4 w-4\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\">\n <path d=\"m9 18 6-6-6-6\" />\n </svg>\n `,\n})\nexport class CarouselNextComponent {\n protected readonly ctx = inject(CarouselContextBase);\n\n readonly label = input<string>('Next slide');\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(carouselButtonClasses, carouselNextPlacement(this.ctx.orientation()), this.class()),\n );\n}\n\nconst carouselButtonClasses =\n 'absolute inline-flex h-8 w-8 items-center justify-center rounded-full border border-border bg-background p-0 text-foreground shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50';\n\nfunction carouselPreviousPlacement(orientation: CarouselOrientation): string {\n return orientation === 'horizontal'\n ? '-left-12 top-1/2 -translate-y-1/2'\n : '-top-12 left-1/2 -translate-x-1/2 rotate-90';\n}\n\nfunction carouselNextPlacement(orientation: CarouselOrientation): string {\n return orientation === 'horizontal'\n ? '-right-12 top-1/2 -translate-y-1/2'\n : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MA2BsB,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,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