@ojiepermana/angular 22.0.1 → 22.0.29

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 (513) hide show
  1. package/README.md +61 -311
  2. package/fesm2022/ojiepermana-angular-chart.mjs +10 -0
  3. package/fesm2022/ojiepermana-angular-component.mjs +10 -0
  4. package/fesm2022/ojiepermana-angular-navigation.mjs +10 -0
  5. package/fesm2022/ojiepermana-angular-sdk.mjs +10 -0
  6. package/fesm2022/ojiepermana-angular-theme.mjs +4 -384
  7. package/fesm2022/ojiepermana-angular.mjs +15 -16
  8. package/package.json +25 -425
  9. package/types/ojiepermana-angular-chart.d.ts +1 -0
  10. package/types/ojiepermana-angular-component.d.ts +1 -0
  11. package/types/ojiepermana-angular-navigation.d.ts +1 -0
  12. package/types/ojiepermana-angular-sdk.d.ts +1 -0
  13. package/types/ojiepermana-angular-theme.d.ts +1 -116
  14. package/types/ojiepermana-angular.d.ts +5 -3
  15. package/.npmignore +0 -2
  16. package/collection.json +0 -30
  17. package/component/accordion/README.md +0 -195
  18. package/component/accordion/package.json +0 -4
  19. package/component/alert/README.md +0 -182
  20. package/component/alert/package.json +0 -4
  21. package/component/alert-dialog/README.md +0 -239
  22. package/component/alert-dialog/package.json +0 -4
  23. package/component/aspect-ratio/README.md +0 -112
  24. package/component/aspect-ratio/package.json +0 -4
  25. package/component/avatar/README.md +0 -176
  26. package/component/avatar/package.json +0 -4
  27. package/component/badge/README.md +0 -133
  28. package/component/badge/package.json +0 -4
  29. package/component/breadcrumb/README.md +0 -216
  30. package/component/breadcrumb/package.json +0 -4
  31. package/component/button/README.md +0 -139
  32. package/component/button/package.json +0 -4
  33. package/component/button-group/README.md +0 -208
  34. package/component/button-group/package.json +0 -4
  35. package/component/calendar/README.md +0 -132
  36. package/component/calendar/package.json +0 -4
  37. package/component/card/README.md +0 -220
  38. package/component/card/package.json +0 -4
  39. package/component/carousel/README.md +0 -276
  40. package/component/carousel/package.json +0 -4
  41. package/component/chart/README.md +0 -249
  42. package/component/chart/area/package.json +0 -4
  43. package/component/chart/bar/package.json +0 -4
  44. package/component/chart/line/package.json +0 -4
  45. package/component/chart/package.json +0 -4
  46. package/component/chart/pie/package.json +0 -4
  47. package/component/chart/radar/package.json +0 -4
  48. package/component/chart/radial/package.json +0 -4
  49. package/component/chart/scatter/package.json +0 -4
  50. package/component/checkbox/README.md +0 -149
  51. package/component/checkbox/package.json +0 -4
  52. package/component/collapsible/README.md +0 -195
  53. package/component/collapsible/package.json +0 -4
  54. package/component/combobox/README.md +0 -198
  55. package/component/combobox/package.json +0 -4
  56. package/component/command/README.md +0 -275
  57. package/component/command/package.json +0 -4
  58. package/component/composer/README.md +0 -235
  59. package/component/composer/package.json +0 -4
  60. package/component/context-menu/README.md +0 -267
  61. package/component/context-menu/package.json +0 -4
  62. package/component/date-picker/README.md +0 -177
  63. package/component/date-picker/package.json +0 -4
  64. package/component/dialog/README.md +0 -237
  65. package/component/dialog/package.json +0 -4
  66. package/component/drawer/README.md +0 -145
  67. package/component/drawer/package.json +0 -4
  68. package/component/dropdown-menu/README.md +0 -311
  69. package/component/dropdown-menu/package.json +0 -4
  70. package/component/editor/README.md +0 -136
  71. package/component/editor/package.json +0 -4
  72. package/component/empty/README.md +0 -183
  73. package/component/empty/package.json +0 -4
  74. package/component/form/README.md +0 -210
  75. package/component/form/package.json +0 -4
  76. package/component/hover-card/README.md +0 -146
  77. package/component/hover-card/package.json +0 -4
  78. package/component/input/README.md +0 -159
  79. package/component/input/package.json +0 -4
  80. package/component/input-group/README.md +0 -239
  81. package/component/input-group/package.json +0 -4
  82. package/component/input-otp/README.md +0 -278
  83. package/component/input-otp/package.json +0 -4
  84. package/component/item/README.md +0 -247
  85. package/component/item/package.json +0 -4
  86. package/component/kanban/README.md +0 -81
  87. package/component/kanban/package.json +0 -4
  88. package/component/kbd/README.md +0 -139
  89. package/component/kbd/package.json +0 -4
  90. package/component/label/README.md +0 -136
  91. package/component/label/package.json +0 -4
  92. package/component/menubar/README.md +0 -269
  93. package/component/menubar/package.json +0 -4
  94. package/component/native-select/README.md +0 -176
  95. package/component/native-select/package.json +0 -4
  96. package/component/navigation-menu/README.md +0 -160
  97. package/component/navigation-menu/package.json +0 -4
  98. package/component/pagination/README.md +0 -144
  99. package/component/pagination/package.json +0 -4
  100. package/component/pillbox/README.md +0 -67
  101. package/component/pillbox/package.json +0 -4
  102. package/component/popover/README.md +0 -43
  103. package/component/popover/package.json +0 -4
  104. package/component/progress/README.md +0 -160
  105. package/component/progress/package.json +0 -4
  106. package/component/radio/README.md +0 -209
  107. package/component/radio/package.json +0 -4
  108. package/component/resizable/README.md +0 -168
  109. package/component/resizable/package.json +0 -4
  110. package/component/scroll-area/README.md +0 -143
  111. package/component/scroll-area/package.json +0 -4
  112. package/component/select/README.md +0 -174
  113. package/component/select/package.json +0 -4
  114. package/component/separator/README.md +0 -170
  115. package/component/separator/package.json +0 -4
  116. package/component/sheet/README.md +0 -183
  117. package/component/sheet/package.json +0 -4
  118. package/component/skeleton/README.md +0 -158
  119. package/component/skeleton/package.json +0 -4
  120. package/component/slider/README.md +0 -207
  121. package/component/slider/package.json +0 -4
  122. package/component/spinner/README.md +0 -160
  123. package/component/spinner/package.json +0 -4
  124. package/component/switch/README.md +0 -166
  125. package/component/switch/package.json +0 -4
  126. package/component/table/README.md +0 -291
  127. package/component/table/package.json +0 -4
  128. package/component/tabs/README.md +0 -219
  129. package/component/tabs/package.json +0 -4
  130. package/component/textarea/README.md +0 -154
  131. package/component/textarea/package.json +0 -4
  132. package/component/timeline/README.md +0 -94
  133. package/component/timeline/package.json +0 -4
  134. package/component/toast/README.md +0 -321
  135. package/component/toast/package.json +0 -4
  136. package/component/toggle/README.md +0 -131
  137. package/component/toggle/package.json +0 -4
  138. package/component/toggle-group/README.md +0 -206
  139. package/component/toggle-group/package.json +0 -4
  140. package/component/tooltip/README.md +0 -211
  141. package/component/tooltip/package.json +0 -4
  142. package/component/utils/package.json +0 -4
  143. package/fesm2022/ojiepermana-angular-component-accordion.mjs +0 -189
  144. package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +0 -1
  145. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +0 -276
  146. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +0 -1
  147. package/fesm2022/ojiepermana-angular-component-alert.mjs +0 -99
  148. package/fesm2022/ojiepermana-angular-component-alert.mjs.map +0 -1
  149. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +0 -37
  150. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +0 -1
  151. package/fesm2022/ojiepermana-angular-component-avatar.mjs +0 -139
  152. package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +0 -1
  153. package/fesm2022/ojiepermana-angular-component-badge.mjs +0 -50
  154. package/fesm2022/ojiepermana-angular-component-badge.mjs.map +0 -1
  155. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +0 -200
  156. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +0 -1
  157. package/fesm2022/ojiepermana-angular-component-button-group.mjs +0 -103
  158. package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +0 -1
  159. package/fesm2022/ojiepermana-angular-component-button.mjs +0 -68
  160. package/fesm2022/ojiepermana-angular-component-button.mjs.map +0 -1
  161. package/fesm2022/ojiepermana-angular-component-calendar.mjs +0 -88
  162. package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +0 -1
  163. package/fesm2022/ojiepermana-angular-component-card.mjs +0 -152
  164. package/fesm2022/ojiepermana-angular-component-card.mjs.map +0 -1
  165. package/fesm2022/ojiepermana-angular-component-carousel.mjs +0 -334
  166. package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +0 -1
  167. package/fesm2022/ojiepermana-angular-component-chart-area.mjs +0 -6
  168. package/fesm2022/ojiepermana-angular-component-chart-area.mjs.map +0 -1
  169. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs +0 -6
  170. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs.map +0 -1
  171. package/fesm2022/ojiepermana-angular-component-chart-line.mjs +0 -6
  172. package/fesm2022/ojiepermana-angular-component-chart-line.mjs.map +0 -1
  173. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs +0 -6
  174. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs.map +0 -1
  175. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs +0 -6
  176. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs.map +0 -1
  177. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs +0 -6
  178. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs.map +0 -1
  179. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs +0 -6
  180. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs.map +0 -1
  181. package/fesm2022/ojiepermana-angular-component-chart.mjs +0 -3925
  182. package/fesm2022/ojiepermana-angular-component-chart.mjs.map +0 -1
  183. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +0 -114
  184. package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +0 -1
  185. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +0 -124
  186. package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +0 -1
  187. package/fesm2022/ojiepermana-angular-component-combobox.mjs +0 -272
  188. package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +0 -1
  189. package/fesm2022/ojiepermana-angular-component-command.mjs +0 -293
  190. package/fesm2022/ojiepermana-angular-component-command.mjs.map +0 -1
  191. package/fesm2022/ojiepermana-angular-component-composer.mjs +0 -352
  192. package/fesm2022/ojiepermana-angular-component-composer.mjs.map +0 -1
  193. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +0 -103
  194. package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +0 -1
  195. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +0 -170
  196. package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +0 -1
  197. package/fesm2022/ojiepermana-angular-component-dialog.mjs +0 -279
  198. package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +0 -1
  199. package/fesm2022/ojiepermana-angular-component-drawer.mjs +0 -6
  200. package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +0 -1
  201. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +0 -492
  202. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +0 -1
  203. package/fesm2022/ojiepermana-angular-component-editor.mjs +0 -717
  204. package/fesm2022/ojiepermana-angular-component-editor.mjs.map +0 -1
  205. package/fesm2022/ojiepermana-angular-component-empty.mjs +0 -145
  206. package/fesm2022/ojiepermana-angular-component-empty.mjs.map +0 -1
  207. package/fesm2022/ojiepermana-angular-component-form.mjs +0 -366
  208. package/fesm2022/ojiepermana-angular-component-form.mjs.map +0 -1
  209. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +0 -297
  210. package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +0 -1
  211. package/fesm2022/ojiepermana-angular-component-input-group.mjs +0 -179
  212. package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +0 -1
  213. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +0 -514
  214. package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +0 -1
  215. package/fesm2022/ojiepermana-angular-component-input.mjs +0 -45
  216. package/fesm2022/ojiepermana-angular-component-input.mjs.map +0 -1
  217. package/fesm2022/ojiepermana-angular-component-item.mjs +0 -264
  218. package/fesm2022/ojiepermana-angular-component-item.mjs.map +0 -1
  219. package/fesm2022/ojiepermana-angular-component-kanban.mjs +0 -314
  220. package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +0 -1
  221. package/fesm2022/ojiepermana-angular-component-kbd.mjs +0 -55
  222. package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +0 -1
  223. package/fesm2022/ojiepermana-angular-component-label.mjs +0 -33
  224. package/fesm2022/ojiepermana-angular-component-label.mjs.map +0 -1
  225. package/fesm2022/ojiepermana-angular-component-menubar.mjs +0 -308
  226. package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +0 -1
  227. package/fesm2022/ojiepermana-angular-component-native-select.mjs +0 -67
  228. package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +0 -1
  229. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +0 -413
  230. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +0 -1
  231. package/fesm2022/ojiepermana-angular-component-pagination.mjs +0 -226
  232. package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +0 -1
  233. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +0 -812
  234. package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +0 -1
  235. package/fesm2022/ojiepermana-angular-component-popover.mjs +0 -169
  236. package/fesm2022/ojiepermana-angular-component-popover.mjs.map +0 -1
  237. package/fesm2022/ojiepermana-angular-component-progress.mjs +0 -60
  238. package/fesm2022/ojiepermana-angular-component-progress.mjs.map +0 -1
  239. package/fesm2022/ojiepermana-angular-component-radio.mjs +0 -122
  240. package/fesm2022/ojiepermana-angular-component-radio.mjs.map +0 -1
  241. package/fesm2022/ojiepermana-angular-component-resizable.mjs +0 -481
  242. package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +0 -1
  243. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +0 -54
  244. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +0 -1
  245. package/fesm2022/ojiepermana-angular-component-select.mjs +0 -176
  246. package/fesm2022/ojiepermana-angular-component-select.mjs.map +0 -1
  247. package/fesm2022/ojiepermana-angular-component-separator.mjs +0 -37
  248. package/fesm2022/ojiepermana-angular-component-separator.mjs.map +0 -1
  249. package/fesm2022/ojiepermana-angular-component-sheet.mjs +0 -284
  250. package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +0 -1
  251. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +0 -31
  252. package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +0 -1
  253. package/fesm2022/ojiepermana-angular-component-slider.mjs +0 -423
  254. package/fesm2022/ojiepermana-angular-component-slider.mjs.map +0 -1
  255. package/fesm2022/ojiepermana-angular-component-spinner.mjs +0 -60
  256. package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +0 -1
  257. package/fesm2022/ojiepermana-angular-component-switch.mjs +0 -116
  258. package/fesm2022/ojiepermana-angular-component-switch.mjs.map +0 -1
  259. package/fesm2022/ojiepermana-angular-component-table.mjs +0 -155
  260. package/fesm2022/ojiepermana-angular-component-table.mjs.map +0 -1
  261. package/fesm2022/ojiepermana-angular-component-tabs.mjs +0 -272
  262. package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +0 -1
  263. package/fesm2022/ojiepermana-angular-component-textarea.mjs +0 -39
  264. package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +0 -1
  265. package/fesm2022/ojiepermana-angular-component-timeline.mjs +0 -237
  266. package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +0 -1
  267. package/fesm2022/ojiepermana-angular-component-toast.mjs +0 -71
  268. package/fesm2022/ojiepermana-angular-component-toast.mjs.map +0 -1
  269. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +0 -289
  270. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +0 -1
  271. package/fesm2022/ojiepermana-angular-component-toggle.mjs +0 -82
  272. package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +0 -1
  273. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +0 -354
  274. package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +0 -1
  275. package/fesm2022/ojiepermana-angular-component-utils.mjs +0 -13
  276. package/fesm2022/ojiepermana-angular-component-utils.mjs.map +0 -1
  277. package/fesm2022/ojiepermana-angular-generator-api.mjs +0 -68
  278. package/fesm2022/ojiepermana-angular-generator-api.mjs.map +0 -1
  279. package/fesm2022/ojiepermana-angular-layout-component.mjs +0 -602
  280. package/fesm2022/ojiepermana-angular-layout-component.mjs.map +0 -1
  281. package/fesm2022/ojiepermana-angular-layout-provider.mjs +0 -21
  282. package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +0 -1
  283. package/fesm2022/ojiepermana-angular-layout-services.mjs +0 -116
  284. package/fesm2022/ojiepermana-angular-layout-services.mjs.map +0 -1
  285. package/fesm2022/ojiepermana-angular-layout-shell.mjs +0 -48
  286. package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +0 -1
  287. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +0 -30
  288. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +0 -1
  289. package/fesm2022/ojiepermana-angular-layout-token.mjs +0 -33
  290. package/fesm2022/ojiepermana-angular-layout-token.mjs.map +0 -1
  291. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs +0 -49
  292. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +0 -1
  293. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs +0 -128
  294. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +0 -1
  295. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs +0 -123
  296. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +0 -1
  297. package/fesm2022/ojiepermana-angular-layout.mjs +0 -485
  298. package/fesm2022/ojiepermana-angular-layout.mjs.map +0 -1
  299. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs +0 -334
  300. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +0 -1
  301. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +0 -63
  302. package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +0 -1
  303. package/fesm2022/ojiepermana-angular-navigation-item.mjs +0 -559
  304. package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +0 -1
  305. package/fesm2022/ojiepermana-angular-navigation-service.mjs +0 -213
  306. package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +0 -1
  307. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +0 -401
  308. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +0 -1
  309. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +0 -670
  310. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +0 -1
  311. package/fesm2022/ojiepermana-angular-navigation-types.mjs +0 -4
  312. package/fesm2022/ojiepermana-angular-navigation-types.mjs.map +0 -1
  313. package/fesm2022/ojiepermana-angular-theme-provider.mjs +0 -35
  314. package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +0 -1
  315. package/fesm2022/ojiepermana-angular-theme-services.mjs +0 -294
  316. package/fesm2022/ojiepermana-angular-theme-services.mjs.map +0 -1
  317. package/fesm2022/ojiepermana-angular-theme-token.mjs +0 -56
  318. package/fesm2022/ojiepermana-angular-theme-token.mjs.map +0 -1
  319. package/fesm2022/ojiepermana-angular-theme.mjs.map +0 -1
  320. package/fesm2022/ojiepermana-angular.mjs.map +0 -1
  321. package/generator/api/README.md +0 -252
  322. package/generator/api/bin/package.json +0 -3
  323. package/generator/api/bin/schematics/init/index.js +0 -90
  324. package/generator/api/bin/schematics/ng-add/index.js +0 -131
  325. package/generator/api/bin/schematics/sdk/index.js +0 -76
  326. package/generator/api/bin/src/config/loader.js +0 -41
  327. package/generator/api/bin/src/config/schema.js +0 -57
  328. package/generator/api/bin/src/emit/client.js +0 -248
  329. package/generator/api/bin/src/emit/metadata.js +0 -295
  330. package/generator/api/bin/src/emit/models.js +0 -106
  331. package/generator/api/bin/src/emit/navigation.js +0 -56
  332. package/generator/api/bin/src/emit/operations.js +0 -122
  333. package/generator/api/bin/src/emit/public-api.js +0 -54
  334. package/generator/api/bin/src/emit/services.js +0 -87
  335. package/generator/api/bin/src/engine.js +0 -65
  336. package/generator/api/bin/src/layout/per-domain.js +0 -359
  337. package/generator/api/bin/src/parser/bundle.js +0 -25
  338. package/generator/api/bin/src/parser/ir.js +0 -320
  339. package/generator/api/bin/src/parser/types.js +0 -7
  340. package/generator/api/bin/src/render/template.js +0 -58
  341. package/generator/api/bin/src/writer/index.js +0 -278
  342. package/generator/api/package.json +0 -4
  343. package/generator/api/schematics/init/schema.json +0 -19
  344. package/generator/api/schematics/ng-add/schema.json +0 -14
  345. package/generator/api/schematics/sdk/schema.json +0 -19
  346. package/generator/api/sdk.config.example.json +0 -24
  347. package/generator/guide/README.md +0 -84
  348. package/generator/guide/bin/package.json +0 -3
  349. package/generator/guide/bin/schematics/build/index.js +0 -36
  350. package/generator/guide/bin/schematics/init/index.js +0 -70
  351. package/generator/guide/bin/src/config/loader.js +0 -50
  352. package/generator/guide/bin/src/config/schema.js +0 -12
  353. package/generator/guide/bin/src/engine/component.js +0 -74
  354. package/generator/guide/bin/src/engine/frontmatter.js +0 -42
  355. package/generator/guide/bin/src/engine/index.js +0 -42
  356. package/generator/guide/bin/src/engine/naming.js +0 -39
  357. package/generator/guide/bin/src/engine/render.js +0 -36
  358. package/generator/guide/bin/src/engine/routes.js +0 -106
  359. package/generator/guide/bin/src/engine/walk.js +0 -35
  360. package/generator/guide/guide.config.example.json +0 -9
  361. package/generator/guide/schematics/build/schema.json +0 -14
  362. package/generator/guide/schematics/init/schema.json +0 -19
  363. package/layout/component/package.json +0 -4
  364. package/layout/package.json +0 -4
  365. package/layout/provider/package.json +0 -4
  366. package/layout/services/package.json +0 -4
  367. package/layout/shell/package.json +0 -4
  368. package/layout/token/directive/package.json +0 -4
  369. package/layout/token/package.json +0 -4
  370. package/layout/type/empty/package.json +0 -4
  371. package/layout/type/horizontal/package.json +0 -4
  372. package/layout/type/vertical/package.json +0 -4
  373. package/navigation/demo-data/package.json +0 -4
  374. package/navigation/icon/package.json +0 -4
  375. package/navigation/item/package.json +0 -4
  376. package/navigation/service/package.json +0 -4
  377. package/navigation/sidebar/package.json +0 -4
  378. package/navigation/topbar/README.md +0 -196
  379. package/navigation/topbar/package.json +0 -4
  380. package/navigation/types/package.json +0 -4
  381. package/theme/README.md +0 -174
  382. package/theme/package.json +0 -4
  383. package/theme/provider/package.json +0 -4
  384. package/theme/services/package.json +0 -4
  385. package/theme/styles/foundation/components.css +0 -81
  386. package/theme/styles/foundation/layers.css +0 -15
  387. package/theme/styles/foundation/tokens.css +0 -55
  388. package/theme/styles/index.css +0 -37
  389. package/theme/styles/integrations/material/autocomplete.css +0 -178
  390. package/theme/styles/integrations/material/button.css +0 -468
  391. package/theme/styles/integrations/material/dialog.css +0 -152
  392. package/theme/styles/integrations/material/select.css +0 -175
  393. package/theme/styles/integrations/material/slide-toggle.css +0 -234
  394. package/theme/styles/integrations/material/slider.css +0 -194
  395. package/theme/styles/integrations/material/tabs.css +0 -229
  396. package/theme/styles/integrations/material.css +0 -264
  397. package/theme/styles/integrations/tailwind.css +0 -114
  398. package/theme/styles/variants/color/amber.css +0 -31
  399. package/theme/styles/variants/color/base.css +0 -36
  400. package/theme/styles/variants/color/blue.css +0 -31
  401. package/theme/styles/variants/color/cyan.css +0 -31
  402. package/theme/styles/variants/color/emerald.css +0 -31
  403. package/theme/styles/variants/color/fuchsia.css +0 -31
  404. package/theme/styles/variants/color/green.css +0 -31
  405. package/theme/styles/variants/color/index.css +0 -22
  406. package/theme/styles/variants/color/indigo.css +0 -31
  407. package/theme/styles/variants/color/lime.css +0 -31
  408. package/theme/styles/variants/color/orange.css +0 -31
  409. package/theme/styles/variants/color/pink.css +0 -31
  410. package/theme/styles/variants/color/purple.css +0 -31
  411. package/theme/styles/variants/color/red.css +0 -31
  412. package/theme/styles/variants/color/rose.css +0 -31
  413. package/theme/styles/variants/color/sky.css +0 -31
  414. package/theme/styles/variants/color/teal.css +0 -31
  415. package/theme/styles/variants/color/violet.css +0 -31
  416. package/theme/styles/variants/color/yellow.css +0 -31
  417. package/theme/styles/variants/mode/dark.css +0 -20
  418. package/theme/styles/variants/mode/index.css +0 -6
  419. package/theme/styles/variants/mode/light.css +0 -24
  420. package/theme/styles/variants/style/brutal.css +0 -50
  421. package/theme/styles/variants/style/default.css +0 -54
  422. package/theme/styles/variants/style/index.css +0 -8
  423. package/theme/styles/variants/style/sharp.css +0 -50
  424. package/theme/styles/variants/style/soft.css +0 -50
  425. package/theme/token/package.json +0 -4
  426. package/types/ojiepermana-angular-component-accordion.d.ts +0 -51
  427. package/types/ojiepermana-angular-component-alert-dialog.d.ts +0 -93
  428. package/types/ojiepermana-angular-component-alert.d.ts +0 -37
  429. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +0 -12
  430. package/types/ojiepermana-angular-component-avatar.d.ts +0 -51
  431. package/types/ojiepermana-angular-component-badge.d.ts +0 -19
  432. package/types/ojiepermana-angular-component-breadcrumb.d.ts +0 -46
  433. package/types/ojiepermana-angular-component-button-group.d.ts +0 -26
  434. package/types/ojiepermana-angular-component-button.d.ts +0 -22
  435. package/types/ojiepermana-angular-component-calendar.d.ts +0 -33
  436. package/types/ojiepermana-angular-component-card.d.ts +0 -60
  437. package/types/ojiepermana-angular-component-carousel.d.ts +0 -86
  438. package/types/ojiepermana-angular-component-chart-area.d.ts +0 -1
  439. package/types/ojiepermana-angular-component-chart-bar.d.ts +0 -1
  440. package/types/ojiepermana-angular-component-chart-line.d.ts +0 -1
  441. package/types/ojiepermana-angular-component-chart-pie.d.ts +0 -1
  442. package/types/ojiepermana-angular-component-chart-radar.d.ts +0 -1
  443. package/types/ojiepermana-angular-component-chart-radial.d.ts +0 -1
  444. package/types/ojiepermana-angular-component-chart-scatter.d.ts +0 -1
  445. package/types/ojiepermana-angular-component-chart.d.ts +0 -1094
  446. package/types/ojiepermana-angular-component-checkbox.d.ts +0 -35
  447. package/types/ojiepermana-angular-component-collapsible.d.ts +0 -42
  448. package/types/ojiepermana-angular-component-combobox.d.ts +0 -50
  449. package/types/ojiepermana-angular-component-command.d.ts +0 -99
  450. package/types/ojiepermana-angular-component-composer.d.ts +0 -90
  451. package/types/ojiepermana-angular-component-context-menu.d.ts +0 -35
  452. package/types/ojiepermana-angular-component-date-picker.d.ts +0 -41
  453. package/types/ojiepermana-angular-component-dialog.d.ts +0 -87
  454. package/types/ojiepermana-angular-component-drawer.d.ts +0 -1
  455. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +0 -137
  456. package/types/ojiepermana-angular-component-editor.d.ts +0 -123
  457. package/types/ojiepermana-angular-component-empty.d.ts +0 -50
  458. package/types/ojiepermana-angular-component-form.d.ts +0 -141
  459. package/types/ojiepermana-angular-component-hover-card.d.ts +0 -74
  460. package/types/ojiepermana-angular-component-input-group.d.ts +0 -51
  461. package/types/ojiepermana-angular-component-input-otp.d.ts +0 -136
  462. package/types/ojiepermana-angular-component-input.d.ts +0 -16
  463. package/types/ojiepermana-angular-component-item.d.ts +0 -88
  464. package/types/ojiepermana-angular-component-kanban.d.ts +0 -70
  465. package/types/ojiepermana-angular-component-kbd.d.ts +0 -16
  466. package/types/ojiepermana-angular-component-label.d.ts +0 -11
  467. package/types/ojiepermana-angular-component-menubar.d.ts +0 -67
  468. package/types/ojiepermana-angular-component-native-select.d.ts +0 -26
  469. package/types/ojiepermana-angular-component-navigation-menu.d.ts +0 -96
  470. package/types/ojiepermana-angular-component-pagination.d.ts +0 -33
  471. package/types/ojiepermana-angular-component-pillbox.d.ts +0 -157
  472. package/types/ojiepermana-angular-component-popover.d.ts +0 -43
  473. package/types/ojiepermana-angular-component-progress.d.ts +0 -17
  474. package/types/ojiepermana-angular-component-radio.d.ts +0 -40
  475. package/types/ojiepermana-angular-component-resizable.d.ts +0 -99
  476. package/types/ojiepermana-angular-component-scroll-area.d.ts +0 -19
  477. package/types/ojiepermana-angular-component-select.d.ts +0 -57
  478. package/types/ojiepermana-angular-component-separator.d.ts +0 -14
  479. package/types/ojiepermana-angular-component-sheet.d.ts +0 -76
  480. package/types/ojiepermana-angular-component-skeleton.d.ts +0 -10
  481. package/types/ojiepermana-angular-component-slider.d.ts +0 -74
  482. package/types/ojiepermana-angular-component-spinner.d.ts +0 -13
  483. package/types/ojiepermana-angular-component-switch.d.ts +0 -40
  484. package/types/ojiepermana-angular-component-table.d.ts +0 -52
  485. package/types/ojiepermana-angular-component-tabs.d.ts +0 -92
  486. package/types/ojiepermana-angular-component-textarea.d.ts +0 -12
  487. package/types/ojiepermana-angular-component-timeline.d.ts +0 -63
  488. package/types/ojiepermana-angular-component-toast.d.ts +0 -38
  489. package/types/ojiepermana-angular-component-toggle-group.d.ts +0 -89
  490. package/types/ojiepermana-angular-component-toggle.d.ts +0 -25
  491. package/types/ojiepermana-angular-component-tooltip.d.ts +0 -89
  492. package/types/ojiepermana-angular-component-utils.d.ts +0 -5
  493. package/types/ojiepermana-angular-generator-api.d.ts +0 -86
  494. package/types/ojiepermana-angular-layout-component.d.ts +0 -205
  495. package/types/ojiepermana-angular-layout-provider.d.ts +0 -6
  496. package/types/ojiepermana-angular-layout-services.d.ts +0 -25
  497. package/types/ojiepermana-angular-layout-shell.d.ts +0 -8
  498. package/types/ojiepermana-angular-layout-token-directive.d.ts +0 -13
  499. package/types/ojiepermana-angular-layout-token.d.ts +0 -36
  500. package/types/ojiepermana-angular-layout-type-empty.d.ts +0 -22
  501. package/types/ojiepermana-angular-layout-type-horizontal.d.ts +0 -36
  502. package/types/ojiepermana-angular-layout-type-vertical.d.ts +0 -38
  503. package/types/ojiepermana-angular-layout.d.ts +0 -164
  504. package/types/ojiepermana-angular-navigation-demo-data.d.ts +0 -5
  505. package/types/ojiepermana-angular-navigation-icon.d.ts +0 -17
  506. package/types/ojiepermana-angular-navigation-item.d.ts +0 -54
  507. package/types/ojiepermana-angular-navigation-service.d.ts +0 -77
  508. package/types/ojiepermana-angular-navigation-sidebar.d.ts +0 -75
  509. package/types/ojiepermana-angular-navigation-topbar.d.ts +0 -74
  510. package/types/ojiepermana-angular-navigation-types.d.ts +0 -135
  511. package/types/ojiepermana-angular-theme-provider.d.ts +0 -11
  512. package/types/ojiepermana-angular-theme-services.d.ts +0 -55
  513. package/types/ojiepermana-angular-theme-token.d.ts +0 -57
@@ -1,481 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { Directive, inject, ElementRef, input, signal, computed, ChangeDetectionStrategy, Component, booleanAttribute, contentChildren, effect, untracked, forwardRef } from '@angular/core';
4
- import { cn } from '@ojiepermana/angular/component/utils';
5
-
6
- class ResizableGroupContextBase {
7
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizableGroupContextBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
8
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: ResizableGroupContextBase, isStandalone: true, ngImport: i0 });
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizableGroupContextBase, decorators: [{
11
- type: Directive
12
- }] });
13
- class ResizablePanelComponent {
14
- ctx = inject(ResizableGroupContextBase);
15
- host = inject((ElementRef));
16
- defaultSize = input(null, /* @ts-ignore */
17
- ...(ngDevMode ? [{ debugName: "defaultSize" }] : /* istanbul ignore next */ []));
18
- minSize = input('10%', /* @ts-ignore */
19
- ...(ngDevMode ? [{ debugName: "minSize" }] : /* istanbul ignore next */ []));
20
- maxSize = input('90%', /* @ts-ignore */
21
- ...(ngDevMode ? [{ debugName: "maxSize" }] : /* istanbul ignore next */ []));
22
- id = input(null, /* @ts-ignore */
23
- ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
24
- class = input('', /* @ts-ignore */
25
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
26
- generatedId = `ui-resizable-panel-${nextId()}`;
27
- currentSize = signal(null, /* @ts-ignore */
28
- ...(ngDevMode ? [{ debugName: "currentSize" }] : /* istanbul ignore next */ []));
29
- resolvedId = computed(() => this.id() ?? this.generatedId, /* @ts-ignore */
30
- ...(ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []));
31
- classes = computed(() => cn('relative block min-h-0 min-w-0 overflow-hidden', this.ctx.groupOrientation() === 'horizontal' ? 'h-full' : 'w-full', this.class()), /* @ts-ignore */
32
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
33
- flexStyle = computed(() => {
34
- const size = this.currentSize();
35
- return size == null ? '1 1 0%' : `0 0 ${size}%`;
36
- }, /* @ts-ignore */
37
- ...(ngDevMode ? [{ debugName: "flexStyle" }] : /* istanbul ignore next */ []));
38
- panelId() {
39
- return this.resolvedId();
40
- }
41
- preferredSizePercent() {
42
- return parsePercent(this.defaultSize());
43
- }
44
- minSizePercent() {
45
- return clamp(parsePercent(this.minSize()) ?? 10, 0, 100);
46
- }
47
- maxSizePercent() {
48
- return clamp(parsePercent(this.maxSize()) ?? 90, this.minSizePercent(), 100);
49
- }
50
- size() {
51
- return this.currentSize() ?? 0;
52
- }
53
- setSize(size) {
54
- this.currentSize.set(roundPercentage(clamp(size, 0, 100)));
55
- }
56
- nativeElement() {
57
- return this.host.nativeElement;
58
- }
59
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizablePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
60
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: ResizablePanelComponent, isStandalone: true, selector: "ui-resizable-panel", inputs: { defaultSize: { classPropertyName: "defaultSize", publicName: "defaultSize", isSignal: true, isRequired: false, transformFunction: null }, minSize: { classPropertyName: "minSize", publicName: "minSize", isSignal: true, isRequired: false, transformFunction: null }, maxSize: { classPropertyName: "maxSize", publicName: "maxSize", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.id": "resolvedId()", "style.flex": "flexStyle()" } }, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
61
- }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizablePanelComponent, decorators: [{
63
- type: Component,
64
- args: [{
65
- selector: 'ui-resizable-panel',
66
- changeDetection: ChangeDetectionStrategy.OnPush,
67
- host: {
68
- '[class]': 'classes()',
69
- '[attr.id]': 'resolvedId()',
70
- '[style.flex]': 'flexStyle()',
71
- },
72
- template: `<ng-content />`,
73
- }]
74
- }], propDecorators: { defaultSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultSize", required: false }] }], minSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "minSize", required: false }] }], maxSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSize", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
75
- class ResizableHandleComponent {
76
- ctx = inject(ResizableGroupContextBase);
77
- host = inject((ElementRef));
78
- withHandle = input(false, { ...(ngDevMode ? { debugName: "withHandle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
79
- ariaLabel = input(null, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
80
- class = input('', /* @ts-ignore */
81
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
82
- lastExpandedPrimarySize = signal(null, /* @ts-ignore */
83
- ...(ngDevMode ? [{ debugName: "lastExpandedPrimarySize" }] : /* istanbul ignore next */ []));
84
- active = signal(false, /* @ts-ignore */
85
- ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
86
- state = computed(() => this.ctx.pairState(this), /* @ts-ignore */
87
- ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
88
- classes = computed(() => cn('group relative flex shrink-0 select-none items-center justify-center bg-transparent text-foreground transition-colors', 'touch-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background', this.ctx.groupOrientation() === 'horizontal'
89
- ? 'h-full w-2 cursor-col-resize before:absolute before:inset-y-0 before:left-1/2 before:w-px before:-translate-x-1/2 before:bg-border'
90
- : 'h-2 w-full cursor-row-resize before:absolute before:inset-x-0 before:top-1/2 before:h-px before:-translate-y-1/2 before:bg-border', this.active() ? 'before:bg-foreground/60' : 'hover:before:bg-foreground/40', this.class()), /* @ts-ignore */
91
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
92
- separatorOrientation = computed(() => this.ctx.groupOrientation() === 'horizontal' ? 'vertical' : 'horizontal', /* @ts-ignore */
93
- ...(ngDevMode ? [{ debugName: "separatorOrientation" }] : /* istanbul ignore next */ []));
94
- controls = computed(() => this.state()?.panelId ?? null, /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "controls" }] : /* istanbul ignore next */ []));
96
- label = computed(() => this.ariaLabel() ?? 'Resize panel', /* @ts-ignore */
97
- ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
98
- valueNow = computed(() => toAriaValue(this.state()?.valueNow), /* @ts-ignore */
99
- ...(ngDevMode ? [{ debugName: "valueNow" }] : /* istanbul ignore next */ []));
100
- valueMin = computed(() => toAriaValue(this.state()?.valueMin), /* @ts-ignore */
101
- ...(ngDevMode ? [{ debugName: "valueMin" }] : /* istanbul ignore next */ []));
102
- valueMax = computed(() => toAriaValue(this.state()?.valueMax), /* @ts-ignore */
103
- ...(ngDevMode ? [{ debugName: "valueMax" }] : /* istanbul ignore next */ []));
104
- valueText = computed(() => {
105
- const value = this.state()?.valueNow;
106
- return value == null ? null : `${Math.round(value)}%`;
107
- }, /* @ts-ignore */
108
- ...(ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []));
109
- onPointerDown(event) {
110
- if (event.button !== 0) {
111
- return;
112
- }
113
- event.preventDefault();
114
- this.host.nativeElement.focus();
115
- this.ctx.beginPointerResize(this, event);
116
- }
117
- onKeydown(event) {
118
- this.ctx.handleKeydown(this, event);
119
- }
120
- setActive(active) {
121
- this.active.set(active);
122
- }
123
- rememberPrimarySize(size) {
124
- this.lastExpandedPrimarySize.set(roundPercentage(size));
125
- }
126
- rememberedPrimarySize() {
127
- return this.lastExpandedPrimarySize();
128
- }
129
- nativeElement() {
130
- return this.host.nativeElement;
131
- }
132
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizableHandleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
133
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: ResizableHandleComponent, isStandalone: true, selector: "ui-resizable-handle", inputs: { withHandle: { classPropertyName: "withHandle", publicName: "withHandle", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "separator", "tabindex": "0" }, listeners: { "keydown": "onKeydown($event)", "pointerdown": "onPointerDown($event)" }, properties: { "class": "classes()", "attr.data-active": "active() ? \"true\" : null", "attr.aria-controls": "controls()", "attr.aria-label": "label()", "attr.aria-orientation": "separatorOrientation()", "attr.aria-valuenow": "valueNow()", "attr.aria-valuemin": "valueMin()", "attr.aria-valuemax": "valueMax()", "attr.aria-valuetext": "valueText()" } }, ngImport: i0, template: `
134
- @if (withHandle()) {
135
- <span
136
- aria-hidden="true"
137
- class="pointer-events-none inline-flex items-center justify-center rounded-sm border border-border bg-background px-1 py-0.5 shadow-sm">
138
- <svg class="h-3 w-3 text-muted-foreground" viewBox="0 0 24 24" fill="currentColor">
139
- <circle cx="9" cy="8" r="1.25" />
140
- <circle cx="15" cy="8" r="1.25" />
141
- <circle cx="9" cy="12" r="1.25" />
142
- <circle cx="15" cy="12" r="1.25" />
143
- <circle cx="9" cy="16" r="1.25" />
144
- <circle cx="15" cy="16" r="1.25" />
145
- </svg>
146
- </span>
147
- }
148
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
149
- }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizableHandleComponent, decorators: [{
151
- type: Component,
152
- args: [{
153
- selector: 'ui-resizable-handle',
154
- changeDetection: ChangeDetectionStrategy.OnPush,
155
- host: {
156
- '[class]': 'classes()',
157
- role: 'separator',
158
- tabindex: '0',
159
- '[attr.data-active]': 'active() ? "true" : null',
160
- '[attr.aria-controls]': 'controls()',
161
- '[attr.aria-label]': 'label()',
162
- '[attr.aria-orientation]': 'separatorOrientation()',
163
- '[attr.aria-valuenow]': 'valueNow()',
164
- '[attr.aria-valuemin]': 'valueMin()',
165
- '[attr.aria-valuemax]': 'valueMax()',
166
- '[attr.aria-valuetext]': 'valueText()',
167
- '(keydown)': 'onKeydown($event)',
168
- '(pointerdown)': 'onPointerDown($event)',
169
- },
170
- template: `
171
- @if (withHandle()) {
172
- <span
173
- aria-hidden="true"
174
- class="pointer-events-none inline-flex items-center justify-center rounded-sm border border-border bg-background px-1 py-0.5 shadow-sm">
175
- <svg class="h-3 w-3 text-muted-foreground" viewBox="0 0 24 24" fill="currentColor">
176
- <circle cx="9" cy="8" r="1.25" />
177
- <circle cx="15" cy="8" r="1.25" />
178
- <circle cx="9" cy="12" r="1.25" />
179
- <circle cx="15" cy="12" r="1.25" />
180
- <circle cx="9" cy="16" r="1.25" />
181
- <circle cx="15" cy="16" r="1.25" />
182
- </svg>
183
- </span>
184
- }
185
- `,
186
- }]
187
- }], propDecorators: { withHandle: [{ type: i0.Input, args: [{ isSignal: true, alias: "withHandle", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
188
- class ResizablePanelGroupComponent extends ResizableGroupContextBase {
189
- host = inject((ElementRef));
190
- document = inject(DOCUMENT);
191
- orientation = input('horizontal', /* @ts-ignore */
192
- ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
193
- class = input('', /* @ts-ignore */
194
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
195
- panels = contentChildren(ResizablePanelComponent, /* @ts-ignore */
196
- ...(ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []));
197
- handles = contentChildren(ResizableHandleComponent, /* @ts-ignore */
198
- ...(ngDevMode ? [{ debugName: "handles" }] : /* istanbul ignore next */ []));
199
- pointerSession = null;
200
- removePointerListeners = null;
201
- classes = computed(() => cn('flex w-full min-h-0 min-w-0 items-stretch', this.orientation() === 'horizontal' ? 'flex-row' : 'flex-col', this.class()), /* @ts-ignore */
202
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
203
- syncLayout = effect(() => {
204
- const panels = this.panels();
205
- void this.handles();
206
- if (!panels.length) {
207
- return;
208
- }
209
- untracked(() => this.initializeLayout(panels));
210
- }, /* @ts-ignore */
211
- ...(ngDevMode ? [{ debugName: "syncLayout" }] : /* istanbul ignore next */ []));
212
- groupOrientation() {
213
- return this.orientation();
214
- }
215
- panelDirection() {
216
- const view = this.document.defaultView;
217
- if (!view) {
218
- return 'ltr';
219
- }
220
- return view.getComputedStyle(this.host.nativeElement).direction === 'rtl' ? 'rtl' : 'ltr';
221
- }
222
- pairState(handle) {
223
- const pair = this.resolvePair(handle);
224
- if (!pair) {
225
- return null;
226
- }
227
- const bounds = this.boundsForPair(pair);
228
- return {
229
- panelId: pair.previous.panelId(),
230
- valueNow: pair.previous.size(),
231
- valueMin: bounds.min,
232
- valueMax: bounds.max,
233
- };
234
- }
235
- beginPointerResize(handle, event) {
236
- const pair = this.resolvePair(handle);
237
- if (!pair) {
238
- return;
239
- }
240
- this.finishPointerResize();
241
- handle.setActive(true);
242
- this.pointerSession = {
243
- handle,
244
- pair,
245
- startCoordinate: this.coordinateFromEvent(event),
246
- previousSize: pair.previous.size(),
247
- };
248
- const move = (nextEvent) => {
249
- const session = this.pointerSession;
250
- if (!session) {
251
- return;
252
- }
253
- const containerSize = this.containerSize();
254
- if (containerSize <= 0) {
255
- return;
256
- }
257
- const delta = this.coordinateFromEvent(nextEvent) - session.startCoordinate;
258
- const directionFactor = this.orientation() === 'horizontal' && this.panelDirection() === 'rtl' ? -1 : 1;
259
- const deltaPercent = (delta / containerSize) * 100 * directionFactor;
260
- this.applyPrimarySize(session.pair, session.previousSize + deltaPercent);
261
- };
262
- const end = () => this.finishPointerResize();
263
- this.document.addEventListener('pointermove', move);
264
- this.document.addEventListener('pointerup', end);
265
- this.document.addEventListener('pointercancel', end);
266
- this.removePointerListeners = () => {
267
- this.document.removeEventListener('pointermove', move);
268
- this.document.removeEventListener('pointerup', end);
269
- this.document.removeEventListener('pointercancel', end);
270
- };
271
- }
272
- handleKeydown(handle, event) {
273
- const pair = this.resolvePair(handle);
274
- if (!pair) {
275
- return;
276
- }
277
- const current = pair.previous.size();
278
- const bounds = this.boundsForPair(pair);
279
- const horizontalStep = this.panelDirection() === 'rtl' ? -10 : 10;
280
- switch (event.key) {
281
- case 'ArrowRight':
282
- if (this.orientation() !== 'horizontal') {
283
- return;
284
- }
285
- this.applyPrimarySize(pair, current + horizontalStep);
286
- break;
287
- case 'ArrowLeft':
288
- if (this.orientation() !== 'horizontal') {
289
- return;
290
- }
291
- this.applyPrimarySize(pair, current - horizontalStep);
292
- break;
293
- case 'ArrowDown':
294
- if (this.orientation() !== 'vertical') {
295
- return;
296
- }
297
- this.applyPrimarySize(pair, current + 10);
298
- break;
299
- case 'ArrowUp':
300
- if (this.orientation() !== 'vertical') {
301
- return;
302
- }
303
- this.applyPrimarySize(pair, current - 10);
304
- break;
305
- case 'Home':
306
- this.applyPrimarySize(pair, bounds.min);
307
- break;
308
- case 'End':
309
- this.applyPrimarySize(pair, bounds.max);
310
- break;
311
- case 'Enter': {
312
- const remembered = handle.rememberedPrimarySize();
313
- if (current > bounds.min + 0.5) {
314
- handle.rememberPrimarySize(current);
315
- this.applyPrimarySize(pair, bounds.min);
316
- }
317
- else if (remembered != null) {
318
- this.applyPrimarySize(pair, remembered);
319
- }
320
- else {
321
- this.applyPrimarySize(pair, (bounds.min + bounds.max) / 2);
322
- }
323
- break;
324
- }
325
- default:
326
- return;
327
- }
328
- event.preventDefault();
329
- }
330
- ngOnDestroy() {
331
- this.finishPointerResize();
332
- }
333
- finishPointerResize() {
334
- this.pointerSession?.handle.setActive(false);
335
- this.pointerSession = null;
336
- this.removePointerListeners?.();
337
- this.removePointerListeners = null;
338
- }
339
- initializeLayout(panels) {
340
- const minimums = panels.map((panel) => panel.minSizePercent());
341
- const maximums = panels.map((panel, index) => Math.max(minimums[index], panel.maxSizePercent()));
342
- const preferred = panels.map((panel) => panel.preferredSizePercent());
343
- const sizes = resolveInitialSizes(preferred, minimums, maximums);
344
- panels.forEach((panel, index) => panel.setSize(sizes[index]));
345
- }
346
- resolvePair(handle) {
347
- const panels = new Map(this.panels().map((panel) => [panel.nativeElement(), panel]));
348
- const children = Array.from(this.host.nativeElement.children);
349
- const handleIndex = children.indexOf(handle.nativeElement());
350
- if (handleIndex === -1) {
351
- return null;
352
- }
353
- let previous = null;
354
- let next = null;
355
- for (let index = handleIndex - 1; index >= 0; index -= 1) {
356
- previous = panels.get(children[index]) ?? null;
357
- if (previous) {
358
- break;
359
- }
360
- }
361
- for (let index = handleIndex + 1; index < children.length; index += 1) {
362
- next = panels.get(children[index]) ?? null;
363
- if (next) {
364
- break;
365
- }
366
- }
367
- if (!previous || !next) {
368
- return null;
369
- }
370
- return { previous, next };
371
- }
372
- boundsForPair(pair) {
373
- const pairTotal = pair.previous.size() + pair.next.size();
374
- const min = Math.max(pair.previous.minSizePercent(), pairTotal - pair.next.maxSizePercent());
375
- const max = Math.min(pair.previous.maxSizePercent(), pairTotal - pair.next.minSizePercent());
376
- if (min > max) {
377
- return { min: pairTotal / 2, max: pairTotal / 2 };
378
- }
379
- return { min: roundPercentage(min), max: roundPercentage(max) };
380
- }
381
- applyPrimarySize(pair, nextPrimarySize) {
382
- const pairTotal = pair.previous.size() + pair.next.size();
383
- const bounds = this.boundsForPair(pair);
384
- const primarySize = roundPercentage(clamp(nextPrimarySize, bounds.min, bounds.max));
385
- const secondarySize = roundPercentage(pairTotal - primarySize);
386
- pair.previous.setSize(primarySize);
387
- pair.next.setSize(secondarySize);
388
- }
389
- containerSize() {
390
- const rect = this.host.nativeElement.getBoundingClientRect();
391
- return this.orientation() === 'horizontal' ? rect.width : rect.height;
392
- }
393
- coordinateFromEvent(event) {
394
- return this.orientation() === 'horizontal' ? event.clientX : event.clientY;
395
- }
396
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizablePanelGroupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
397
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: ResizablePanelGroupComponent, isStandalone: true, selector: "ui-resizable-panel-group", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.data-orientation": "orientation()" } }, providers: [{ provide: ResizableGroupContextBase, useExisting: forwardRef(() => ResizablePanelGroupComponent) }], queries: [{ propertyName: "panels", predicate: ResizablePanelComponent, isSignal: true }, { propertyName: "handles", predicate: ResizableHandleComponent, isSignal: true }], usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
398
- }
399
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ResizablePanelGroupComponent, decorators: [{
400
- type: Component,
401
- args: [{
402
- selector: 'ui-resizable-panel-group',
403
- changeDetection: ChangeDetectionStrategy.OnPush,
404
- providers: [{ provide: ResizableGroupContextBase, useExisting: forwardRef(() => ResizablePanelGroupComponent) }],
405
- host: {
406
- '[class]': 'classes()',
407
- '[attr.data-orientation]': 'orientation()',
408
- },
409
- template: `<ng-content />`,
410
- }]
411
- }], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], panels: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => ResizablePanelComponent), { isSignal: true }] }], handles: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => ResizableHandleComponent), { isSignal: true }] }] } });
412
- let _id = 0;
413
- function nextId() {
414
- return ++_id;
415
- }
416
- function clamp(value, min, max) {
417
- return Math.min(Math.max(value, min), max);
418
- }
419
- function parsePercent(value) {
420
- if (value == null || value === '') {
421
- return null;
422
- }
423
- if (typeof value === 'number') {
424
- return Number.isFinite(value) ? value : null;
425
- }
426
- const parsed = Number.parseFloat(value);
427
- return Number.isFinite(parsed) ? parsed : null;
428
- }
429
- function roundPercentage(value) {
430
- return Math.round(value * 1000) / 1000;
431
- }
432
- function sum(values) {
433
- return values.reduce((total, value) => total + value, 0);
434
- }
435
- function resolveInitialSizes(preferred, minimums, maximums) {
436
- const unresolvedIndexes = preferred.flatMap((value, index) => (value == null ? [index] : []));
437
- const specifiedTotal = sum(preferred.flatMap((value) => (value == null ? [] : [value])));
438
- let sizes;
439
- if (preferred.every((value) => value == null)) {
440
- const equalSize = 100 / preferred.length;
441
- sizes = preferred.map(() => equalSize);
442
- }
443
- else {
444
- const share = unresolvedIndexes.length ? Math.max(100 - specifiedTotal, 0) / unresolvedIndexes.length : 0;
445
- sizes = preferred.map((value) => value ?? share);
446
- }
447
- sizes = sizes.map((size, index) => clamp(size, minimums[index], maximums[index]));
448
- sizes = rebalanceSizes(sizes, minimums, maximums);
449
- return sizes.map((size) => roundPercentage(size));
450
- }
451
- function rebalanceSizes(sizes, minimums, maximums) {
452
- const next = [...sizes];
453
- for (let iteration = 0; iteration < next.length * 4; iteration += 1) {
454
- const difference = roundPercentage(100 - sum(next));
455
- if (Math.abs(difference) <= 0.001) {
456
- return next;
457
- }
458
- const adjustableIndexes = next.flatMap((size, index) => {
459
- const room = difference > 0 ? maximums[index] - size : size - minimums[index];
460
- return room > 0.001 ? [index] : [];
461
- });
462
- if (!adjustableIndexes.length) {
463
- return next;
464
- }
465
- const perPanelDelta = difference / adjustableIndexes.length;
466
- adjustableIndexes.forEach((index) => {
467
- next[index] = clamp(next[index] + perPanelDelta, minimums[index], maximums[index]);
468
- });
469
- }
470
- return next;
471
- }
472
- function toAriaValue(value) {
473
- return value == null ? null : String(Math.round(value));
474
- }
475
-
476
- /**
477
- * Generated bundle index. Do not edit.
478
- */
479
-
480
- export { ResizableGroupContextBase, ResizableHandleComponent, ResizablePanelComponent, ResizablePanelGroupComponent };
481
- //# sourceMappingURL=ojiepermana-angular-component-resizable.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-resizable.mjs","sources":["../../../projects/angular/component/resizable/resizable.component.ts","../../../projects/angular/component/resizable/ojiepermana-angular-component-resizable.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ElementRef,\n OnDestroy,\n booleanAttribute,\n computed,\n contentChildren,\n effect,\n forwardRef,\n inject,\n input,\n signal,\n untracked,\n} from '@angular/core';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\nexport type ResizableOrientation = 'horizontal' | 'vertical';\nexport type ResizableSize = string | number | null | undefined;\n\ninterface ResizablePair {\n readonly previous: ResizablePanelComponent;\n readonly next: ResizablePanelComponent;\n}\n\ninterface ResizableBounds {\n readonly min: number;\n readonly max: number;\n}\n\ninterface ResizableHandleState {\n readonly panelId: string;\n readonly valueNow: number;\n readonly valueMin: number;\n readonly valueMax: number;\n}\n\ninterface ResizablePointerSession {\n readonly handle: ResizableHandleComponent;\n readonly pair: ResizablePair;\n readonly startCoordinate: number;\n readonly previousSize: number;\n}\n\n@Directive()\nexport abstract class ResizableGroupContextBase {\n abstract groupOrientation(): ResizableOrientation;\n abstract panelDirection(): 'ltr' | 'rtl';\n abstract pairState(handle: ResizableHandleComponent): ResizableHandleState | null;\n abstract beginPointerResize(handle: ResizableHandleComponent, event: PointerEvent): void;\n abstract handleKeydown(handle: ResizableHandleComponent, event: KeyboardEvent): void;\n}\n\n@Component({\n selector: 'ui-resizable-panel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.id]': 'resolvedId()',\n '[style.flex]': 'flexStyle()',\n },\n template: `<ng-content />`,\n})\nexport class ResizablePanelComponent {\n private readonly ctx = inject(ResizableGroupContextBase);\n private readonly host = inject(ElementRef<HTMLElement>);\n\n readonly defaultSize = input<ResizableSize>(null);\n readonly minSize = input<ResizableSize>('10%');\n readonly maxSize = input<ResizableSize>('90%');\n readonly id = input<string | null>(null);\n readonly class = input<string>('');\n\n private readonly generatedId = `ui-resizable-panel-${nextId()}`;\n private readonly currentSize = signal<number | null>(null);\n\n protected readonly resolvedId = computed(() => this.id() ?? this.generatedId);\n protected readonly classes = computed(() =>\n cn(\n 'relative block min-h-0 min-w-0 overflow-hidden',\n this.ctx.groupOrientation() === 'horizontal' ? 'h-full' : 'w-full',\n this.class(),\n ),\n );\n protected readonly flexStyle = computed(() => {\n const size = this.currentSize();\n return size == null ? '1 1 0%' : `0 0 ${size}%`;\n });\n\n panelId(): string {\n return this.resolvedId();\n }\n\n preferredSizePercent(): number | null {\n return parsePercent(this.defaultSize());\n }\n\n minSizePercent(): number {\n return clamp(parsePercent(this.minSize()) ?? 10, 0, 100);\n }\n\n maxSizePercent(): number {\n return clamp(parsePercent(this.maxSize()) ?? 90, this.minSizePercent(), 100);\n }\n\n size(): number {\n return this.currentSize() ?? 0;\n }\n\n setSize(size: number): void {\n this.currentSize.set(roundPercentage(clamp(size, 0, 100)));\n }\n\n nativeElement(): HTMLElement {\n return this.host.nativeElement;\n }\n}\n\n@Component({\n selector: 'ui-resizable-handle',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n role: 'separator',\n tabindex: '0',\n '[attr.data-active]': 'active() ? \"true\" : null',\n '[attr.aria-controls]': 'controls()',\n '[attr.aria-label]': 'label()',\n '[attr.aria-orientation]': 'separatorOrientation()',\n '[attr.aria-valuenow]': 'valueNow()',\n '[attr.aria-valuemin]': 'valueMin()',\n '[attr.aria-valuemax]': 'valueMax()',\n '[attr.aria-valuetext]': 'valueText()',\n '(keydown)': 'onKeydown($event)',\n '(pointerdown)': 'onPointerDown($event)',\n },\n template: `\n @if (withHandle()) {\n <span\n aria-hidden=\"true\"\n class=\"pointer-events-none inline-flex items-center justify-center rounded-sm border border-border bg-background px-1 py-0.5 shadow-sm\">\n <svg class=\"h-3 w-3 text-muted-foreground\" viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <circle cx=\"9\" cy=\"8\" r=\"1.25\" />\n <circle cx=\"15\" cy=\"8\" r=\"1.25\" />\n <circle cx=\"9\" cy=\"12\" r=\"1.25\" />\n <circle cx=\"15\" cy=\"12\" r=\"1.25\" />\n <circle cx=\"9\" cy=\"16\" r=\"1.25\" />\n <circle cx=\"15\" cy=\"16\" r=\"1.25\" />\n </svg>\n </span>\n }\n `,\n})\nexport class ResizableHandleComponent {\n private readonly ctx = inject(ResizableGroupContextBase);\n private readonly host = inject(ElementRef<HTMLElement>);\n\n readonly withHandle = input(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\n readonly class = input<string>('');\n\n private readonly lastExpandedPrimarySize = signal<number | null>(null);\n protected readonly active = signal(false);\n private readonly state = computed(() => this.ctx.pairState(this));\n protected readonly classes = computed(() =>\n cn(\n 'group relative flex shrink-0 select-none items-center justify-center bg-transparent text-foreground transition-colors',\n 'touch-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background',\n this.ctx.groupOrientation() === 'horizontal'\n ? 'h-full w-2 cursor-col-resize before:absolute before:inset-y-0 before:left-1/2 before:w-px before:-translate-x-1/2 before:bg-border'\n : 'h-2 w-full cursor-row-resize before:absolute before:inset-x-0 before:top-1/2 before:h-px before:-translate-y-1/2 before:bg-border',\n this.active() ? 'before:bg-foreground/60' : 'hover:before:bg-foreground/40',\n this.class(),\n ),\n );\n\n protected readonly separatorOrientation = computed(() =>\n this.ctx.groupOrientation() === 'horizontal' ? 'vertical' : 'horizontal',\n );\n protected readonly controls = computed(() => this.state()?.panelId ?? null);\n protected readonly label = computed(() => this.ariaLabel() ?? 'Resize panel');\n protected readonly valueNow = computed(() => toAriaValue(this.state()?.valueNow));\n protected readonly valueMin = computed(() => toAriaValue(this.state()?.valueMin));\n protected readonly valueMax = computed(() => toAriaValue(this.state()?.valueMax));\n protected readonly valueText = computed(() => {\n const value = this.state()?.valueNow;\n return value == null ? null : `${Math.round(value)}%`;\n });\n\n onPointerDown(event: PointerEvent): void {\n if (event.button !== 0) {\n return;\n }\n\n event.preventDefault();\n this.host.nativeElement.focus();\n this.ctx.beginPointerResize(this, event);\n }\n\n onKeydown(event: KeyboardEvent): void {\n this.ctx.handleKeydown(this, event);\n }\n\n setActive(active: boolean): void {\n this.active.set(active);\n }\n\n rememberPrimarySize(size: number): void {\n this.lastExpandedPrimarySize.set(roundPercentage(size));\n }\n\n rememberedPrimarySize(): number | null {\n return this.lastExpandedPrimarySize();\n }\n\n nativeElement(): HTMLElement {\n return this.host.nativeElement;\n }\n}\n\n@Component({\n selector: 'ui-resizable-panel-group',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: ResizableGroupContextBase, useExisting: forwardRef(() => ResizablePanelGroupComponent) }],\n host: {\n '[class]': 'classes()',\n '[attr.data-orientation]': 'orientation()',\n },\n template: `<ng-content />`,\n})\nexport class ResizablePanelGroupComponent extends ResizableGroupContextBase implements OnDestroy {\n private readonly host = inject(ElementRef<HTMLElement>);\n private readonly document = inject(DOCUMENT);\n\n readonly orientation = input<ResizableOrientation>('horizontal');\n readonly class = input<string>('');\n\n private readonly panels = contentChildren(ResizablePanelComponent);\n private readonly handles = contentChildren(ResizableHandleComponent);\n private pointerSession: ResizablePointerSession | null = null;\n private removePointerListeners: (() => void) | null = null;\n\n protected readonly classes = computed(() =>\n cn(\n 'flex w-full min-h-0 min-w-0 items-stretch',\n this.orientation() === 'horizontal' ? 'flex-row' : 'flex-col',\n this.class(),\n ),\n );\n\n private readonly syncLayout = effect(() => {\n const panels = this.panels();\n void this.handles();\n\n if (!panels.length) {\n return;\n }\n\n untracked(() => this.initializeLayout(panels));\n });\n\n override groupOrientation(): ResizableOrientation {\n return this.orientation();\n }\n\n override panelDirection(): 'ltr' | 'rtl' {\n const view = this.document.defaultView;\n if (!view) {\n return 'ltr';\n }\n\n return view.getComputedStyle(this.host.nativeElement).direction === 'rtl' ? 'rtl' : 'ltr';\n }\n\n override pairState(handle: ResizableHandleComponent): ResizableHandleState | null {\n const pair = this.resolvePair(handle);\n if (!pair) {\n return null;\n }\n\n const bounds = this.boundsForPair(pair);\n return {\n panelId: pair.previous.panelId(),\n valueNow: pair.previous.size(),\n valueMin: bounds.min,\n valueMax: bounds.max,\n };\n }\n\n override beginPointerResize(handle: ResizableHandleComponent, event: PointerEvent): void {\n const pair = this.resolvePair(handle);\n if (!pair) {\n return;\n }\n\n this.finishPointerResize();\n handle.setActive(true);\n this.pointerSession = {\n handle,\n pair,\n startCoordinate: this.coordinateFromEvent(event),\n previousSize: pair.previous.size(),\n };\n\n const move = (nextEvent: PointerEvent) => {\n const session = this.pointerSession;\n if (!session) {\n return;\n }\n\n const containerSize = this.containerSize();\n if (containerSize <= 0) {\n return;\n }\n\n const delta = this.coordinateFromEvent(nextEvent) - session.startCoordinate;\n const directionFactor = this.orientation() === 'horizontal' && this.panelDirection() === 'rtl' ? -1 : 1;\n const deltaPercent = (delta / containerSize) * 100 * directionFactor;\n this.applyPrimarySize(session.pair, session.previousSize + deltaPercent);\n };\n\n const end = () => this.finishPointerResize();\n\n this.document.addEventListener('pointermove', move);\n this.document.addEventListener('pointerup', end);\n this.document.addEventListener('pointercancel', end);\n this.removePointerListeners = () => {\n this.document.removeEventListener('pointermove', move);\n this.document.removeEventListener('pointerup', end);\n this.document.removeEventListener('pointercancel', end);\n };\n }\n\n override handleKeydown(handle: ResizableHandleComponent, event: KeyboardEvent): void {\n const pair = this.resolvePair(handle);\n if (!pair) {\n return;\n }\n\n const current = pair.previous.size();\n const bounds = this.boundsForPair(pair);\n const horizontalStep = this.panelDirection() === 'rtl' ? -10 : 10;\n\n switch (event.key) {\n case 'ArrowRight':\n if (this.orientation() !== 'horizontal') {\n return;\n }\n this.applyPrimarySize(pair, current + horizontalStep);\n break;\n case 'ArrowLeft':\n if (this.orientation() !== 'horizontal') {\n return;\n }\n this.applyPrimarySize(pair, current - horizontalStep);\n break;\n case 'ArrowDown':\n if (this.orientation() !== 'vertical') {\n return;\n }\n this.applyPrimarySize(pair, current + 10);\n break;\n case 'ArrowUp':\n if (this.orientation() !== 'vertical') {\n return;\n }\n this.applyPrimarySize(pair, current - 10);\n break;\n case 'Home':\n this.applyPrimarySize(pair, bounds.min);\n break;\n case 'End':\n this.applyPrimarySize(pair, bounds.max);\n break;\n case 'Enter': {\n const remembered = handle.rememberedPrimarySize();\n if (current > bounds.min + 0.5) {\n handle.rememberPrimarySize(current);\n this.applyPrimarySize(pair, bounds.min);\n } else if (remembered != null) {\n this.applyPrimarySize(pair, remembered);\n } else {\n this.applyPrimarySize(pair, (bounds.min + bounds.max) / 2);\n }\n break;\n }\n default:\n return;\n }\n\n event.preventDefault();\n }\n\n ngOnDestroy(): void {\n this.finishPointerResize();\n }\n\n private finishPointerResize(): void {\n this.pointerSession?.handle.setActive(false);\n this.pointerSession = null;\n this.removePointerListeners?.();\n this.removePointerListeners = null;\n }\n\n private initializeLayout(panels: readonly ResizablePanelComponent[]): void {\n const minimums = panels.map((panel) => panel.minSizePercent());\n const maximums = panels.map((panel, index) => Math.max(minimums[index], panel.maxSizePercent()));\n const preferred = panels.map((panel) => panel.preferredSizePercent());\n const sizes = resolveInitialSizes(preferred, minimums, maximums);\n\n panels.forEach((panel, index) => panel.setSize(sizes[index]));\n }\n\n private resolvePair(handle: ResizableHandleComponent): ResizablePair | null {\n const panels = new Map(this.panels().map((panel) => [panel.nativeElement(), panel] as const));\n const children = Array.from(this.host.nativeElement.children);\n const handleIndex = children.indexOf(handle.nativeElement());\n\n if (handleIndex === -1) {\n return null;\n }\n\n let previous: ResizablePanelComponent | null = null;\n let next: ResizablePanelComponent | null = null;\n\n for (let index = handleIndex - 1; index >= 0; index -= 1) {\n previous = panels.get(children[index] as HTMLElement) ?? null;\n if (previous) {\n break;\n }\n }\n\n for (let index = handleIndex + 1; index < children.length; index += 1) {\n next = panels.get(children[index] as HTMLElement) ?? null;\n if (next) {\n break;\n }\n }\n\n if (!previous || !next) {\n return null;\n }\n\n return { previous, next };\n }\n\n private boundsForPair(pair: ResizablePair): ResizableBounds {\n const pairTotal = pair.previous.size() + pair.next.size();\n const min = Math.max(pair.previous.minSizePercent(), pairTotal - pair.next.maxSizePercent());\n const max = Math.min(pair.previous.maxSizePercent(), pairTotal - pair.next.minSizePercent());\n\n if (min > max) {\n return { min: pairTotal / 2, max: pairTotal / 2 };\n }\n\n return { min: roundPercentage(min), max: roundPercentage(max) };\n }\n\n private applyPrimarySize(pair: ResizablePair, nextPrimarySize: number): void {\n const pairTotal = pair.previous.size() + pair.next.size();\n const bounds = this.boundsForPair(pair);\n const primarySize = roundPercentage(clamp(nextPrimarySize, bounds.min, bounds.max));\n const secondarySize = roundPercentage(pairTotal - primarySize);\n\n pair.previous.setSize(primarySize);\n pair.next.setSize(secondarySize);\n }\n\n private containerSize(): number {\n const rect = this.host.nativeElement.getBoundingClientRect();\n return this.orientation() === 'horizontal' ? rect.width : rect.height;\n }\n\n private coordinateFromEvent(event: PointerEvent): number {\n return this.orientation() === 'horizontal' ? event.clientX : event.clientY;\n }\n}\n\nlet _id = 0;\n\nfunction nextId(): number {\n return ++_id;\n}\n\nfunction clamp(value: number, min: number, max: number): number {\n return Math.min(Math.max(value, min), max);\n}\n\nfunction parsePercent(value: ResizableSize): number | null {\n if (value == null || value === '') {\n return null;\n }\n\n if (typeof value === 'number') {\n return Number.isFinite(value) ? value : null;\n }\n\n const parsed = Number.parseFloat(value);\n return Number.isFinite(parsed) ? parsed : null;\n}\n\nfunction roundPercentage(value: number): number {\n return Math.round(value * 1000) / 1000;\n}\n\nfunction sum(values: readonly number[]): number {\n return values.reduce((total, value) => total + value, 0);\n}\n\nfunction resolveInitialSizes(\n preferred: readonly (number | null)[],\n minimums: readonly number[],\n maximums: readonly number[],\n): number[] {\n const unresolvedIndexes = preferred.flatMap((value, index) => (value == null ? [index] : []));\n const specifiedTotal = sum(preferred.flatMap((value) => (value == null ? [] : [value])));\n\n let sizes: number[];\n if (preferred.every((value) => value == null)) {\n const equalSize = 100 / preferred.length;\n sizes = preferred.map(() => equalSize);\n } else {\n const share = unresolvedIndexes.length ? Math.max(100 - specifiedTotal, 0) / unresolvedIndexes.length : 0;\n sizes = preferred.map((value) => value ?? share);\n }\n\n sizes = sizes.map((size, index) => clamp(size, minimums[index], maximums[index]));\n sizes = rebalanceSizes(sizes, minimums, maximums);\n\n return sizes.map((size) => roundPercentage(size));\n}\n\nfunction rebalanceSizes(sizes: readonly number[], minimums: readonly number[], maximums: readonly number[]): number[] {\n const next = [...sizes];\n\n for (let iteration = 0; iteration < next.length * 4; iteration += 1) {\n const difference = roundPercentage(100 - sum(next));\n if (Math.abs(difference) <= 0.001) {\n return next;\n }\n\n const adjustableIndexes = next.flatMap((size, index) => {\n const room = difference > 0 ? maximums[index] - size : size - minimums[index];\n return room > 0.001 ? [index] : [];\n });\n\n if (!adjustableIndexes.length) {\n return next;\n }\n\n const perPanelDelta = difference / adjustableIndexes.length;\n adjustableIndexes.forEach((index) => {\n next[index] = clamp(next[index] + perPanelDelta, minimums[index], maximums[index]);\n });\n }\n\n return next;\n}\n\nfunction toAriaValue(value: number | undefined): string | null {\n return value == null ? null : String(Math.round(value));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MA+CsB,yBAAyB,CAAA;uGAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAD9C;;MAmBY,uBAAuB,CAAA;AACjB,IAAA,GAAG,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACvC,IAAA,IAAI,GAAG,MAAM,EAAC,UAAuB,EAAC;IAE9C,WAAW,GAAG,KAAK,CAAgB,IAAI;oFAAC;IACxC,OAAO,GAAG,KAAK,CAAgB,KAAK;gFAAC;IACrC,OAAO,GAAG,KAAK,CAAgB,KAAK;gFAAC;IACrC,EAAE,GAAG,KAAK,CAAgB,IAAI;2EAAC;IAC/B,KAAK,GAAG,KAAK,CAAS,EAAE;8EAAC;AAEjB,IAAA,WAAW,GAAG,CAAA,mBAAA,EAAsB,MAAM,EAAE,EAAE;IAC9C,WAAW,GAAG,MAAM,CAAgB,IAAI;oFAAC;AAEvC,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,EAAE,EAAE,IAAI,IAAI,CAAC,WAAW;mFAAC;AAC1D,IAAA,OAAO,GAAG,QAAQ,CAAC,MACpC,EAAE,CACA,gDAAgD,EAChD,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE,KAAK,YAAY,GAAG,QAAQ,GAAG,QAAQ,EAClE,IAAI,CAAC,KAAK,EAAE,CACb;gFACF;AACkB,IAAA,SAAS,GAAG,QAAQ,CAAC,MAAK;AAC3C,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE;AAC/B,QAAA,OAAO,IAAI,IAAI,IAAI,GAAG,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;QACb;AAEA,QAAA,MAAM,aAAa,GAAG,UAAU,GAAG,iBAAiB,CAAC,MAAM;AAC3D,QAAA,iBAAiB,CAAC,OAAO,CAAC,CAAC,KAAK,KAAI;YAClC,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,aAAa,EAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;AACpF,QAAA,CAAC,CAAC;IACJ;AAEA,IAAA,OAAO,IAAI;AACb;AAEA,SAAS,WAAW,CAAC,KAAyB,EAAA;AAC5C,IAAA,OAAO,KAAK,IAAI,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACzD;;ACnjBA;;AAEG;;;;"}
@@ -1,54 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, numberAttribute, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { cn } from '@ojiepermana/angular/component/utils';
4
-
5
- /**
6
- * Lightweight scroll area using native scrollbars styled via CSS.
7
- * Fully accessible — real scrolling, keyboard, wheel, momentum.
8
- */
9
- class ScrollAreaComponent {
10
- class = input('', /* @ts-ignore */
11
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
12
- viewportClass = input('', /* @ts-ignore */
13
- ...(ngDevMode ? [{ debugName: "viewportClass" }] : /* istanbul ignore next */ []));
14
- viewportAriaLabel = input(null, /* @ts-ignore */
15
- ...(ngDevMode ? [{ debugName: "viewportAriaLabel" }] : /* istanbul ignore next */ []));
16
- viewportTabIndex = input(0, { ...(ngDevMode ? { debugName: "viewportTabIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
17
- classes = computed(() => cn('relative overflow-hidden', this.class()), /* @ts-ignore */
18
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
19
- viewportRole = computed(() => (this.viewportAriaLabel() ? 'region' : null), /* @ts-ignore */
20
- ...(ngDevMode ? [{ debugName: "viewportRole" }] : /* istanbul ignore next */ []));
21
- viewportClasses = computed(() => cn('ui-scroll-area-viewport h-full w-full rounded-[inherit]', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring', this.viewportClass()), /* @ts-ignore */
22
- ...(ngDevMode ? [{ debugName: "viewportClasses" }] : /* istanbul ignore next */ []));
23
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ScrollAreaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
24
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: ScrollAreaComponent, isStandalone: true, selector: "ui-scroll-area", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, viewportClass: { classPropertyName: "viewportClass", publicName: "viewportClass", isSignal: true, isRequired: false, transformFunction: null }, viewportAriaLabel: { classPropertyName: "viewportAriaLabel", publicName: "viewportAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, viewportTabIndex: { classPropertyName: "viewportTabIndex", publicName: "viewportTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `
25
- <div
26
- [class]="viewportClasses()"
27
- [attr.aria-label]="viewportAriaLabel()"
28
- [attr.role]="viewportRole()"
29
- [attr.tabindex]="viewportTabIndex()">
30
- <ng-content />
31
- </div>
32
- `, isInline: true, styles: [":host{display:block;overflow:hidden;position:relative}.ui-scroll-area-viewport{overflow:auto;scrollbar-width:thin;scrollbar-color:var(--tw-scrollbar-thumb, hsl(var(--border))) var(--tw-scrollbar-track, transparent)}.ui-scroll-area-viewport::-webkit-scrollbar{width:10px;height:10px}.ui-scroll-area-viewport::-webkit-scrollbar-track{background:var(--tw-scrollbar-track, transparent)}.ui-scroll-area-viewport::-webkit-scrollbar-thumb{background:var(--tw-scrollbar-thumb, hsl(var(--border)));border:var(--border-width) solid transparent;background-clip:padding-box;border-radius:var(--radius-lg)}.ui-scroll-area-viewport::-webkit-scrollbar-thumb:hover{background:var(--ui-scrollbar-thumb-hover, var(--tw-scrollbar-thumb, hsl(var(--muted-foreground))));background-clip:padding-box}@media(forced-colors:active){.ui-scroll-area-viewport{scrollbar-width:auto;scrollbar-color:auto}.ui-scroll-area-viewport::-webkit-scrollbar-thumb{background:CanvasText;border-color:transparent}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
33
- }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ScrollAreaComponent, decorators: [{
35
- type: Component,
36
- args: [{ selector: 'ui-scroll-area', changeDetection: ChangeDetectionStrategy.OnPush, host: {
37
- '[class]': 'classes()',
38
- }, template: `
39
- <div
40
- [class]="viewportClasses()"
41
- [attr.aria-label]="viewportAriaLabel()"
42
- [attr.role]="viewportRole()"
43
- [attr.tabindex]="viewportTabIndex()">
44
- <ng-content />
45
- </div>
46
- `, styles: [":host{display:block;overflow:hidden;position:relative}.ui-scroll-area-viewport{overflow:auto;scrollbar-width:thin;scrollbar-color:var(--tw-scrollbar-thumb, hsl(var(--border))) var(--tw-scrollbar-track, transparent)}.ui-scroll-area-viewport::-webkit-scrollbar{width:10px;height:10px}.ui-scroll-area-viewport::-webkit-scrollbar-track{background:var(--tw-scrollbar-track, transparent)}.ui-scroll-area-viewport::-webkit-scrollbar-thumb{background:var(--tw-scrollbar-thumb, hsl(var(--border)));border:var(--border-width) solid transparent;background-clip:padding-box;border-radius:var(--radius-lg)}.ui-scroll-area-viewport::-webkit-scrollbar-thumb:hover{background:var(--ui-scrollbar-thumb-hover, var(--tw-scrollbar-thumb, hsl(var(--muted-foreground))));background-clip:padding-box}@media(forced-colors:active){.ui-scroll-area-viewport{scrollbar-width:auto;scrollbar-color:auto}.ui-scroll-area-viewport::-webkit-scrollbar-thumb{background:CanvasText;border-color:transparent}}\n"] }]
47
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], viewportClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewportClass", required: false }] }], viewportAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewportAriaLabel", required: false }] }], viewportTabIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewportTabIndex", required: false }] }] } });
48
-
49
- /**
50
- * Generated bundle index. Do not edit.
51
- */
52
-
53
- export { ScrollAreaComponent };
54
- //# sourceMappingURL=ojiepermana-angular-component-scroll-area.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-scroll-area.mjs","sources":["../../../projects/angular/component/scroll-area/scroll-area.component.ts","../../../projects/angular/component/scroll-area/ojiepermana-angular-component-scroll-area.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input, numberAttribute } from '@angular/core';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\n/**\n * Lightweight scroll area using native scrollbars styled via CSS.\n * Fully accessible — real scrolling, keyboard, wheel, momentum.\n */\n@Component({\n selector: 'ui-scroll-area',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n },\n template: `\n <div\n [class]=\"viewportClasses()\"\n [attr.aria-label]=\"viewportAriaLabel()\"\n [attr.role]=\"viewportRole()\"\n [attr.tabindex]=\"viewportTabIndex()\">\n <ng-content />\n </div>\n `,\n styles: [\n `\n :host {\n display: block;\n overflow: hidden;\n position: relative;\n }\n .ui-scroll-area-viewport {\n overflow: auto;\n scrollbar-width: thin;\n scrollbar-color: var(--tw-scrollbar-thumb, hsl(var(--border))) var(--tw-scrollbar-track, transparent);\n }\n .ui-scroll-area-viewport::-webkit-scrollbar {\n width: 10px;\n height: 10px;\n }\n .ui-scroll-area-viewport::-webkit-scrollbar-track {\n background: var(--tw-scrollbar-track, transparent);\n }\n .ui-scroll-area-viewport::-webkit-scrollbar-thumb {\n background: var(--tw-scrollbar-thumb, hsl(var(--border)));\n border: var(--border-width) solid transparent;\n background-clip: padding-box;\n border-radius: var(--radius-lg);\n }\n .ui-scroll-area-viewport::-webkit-scrollbar-thumb:hover {\n background: var(--ui-scrollbar-thumb-hover, var(--tw-scrollbar-thumb, hsl(var(--muted-foreground))));\n background-clip: padding-box;\n }\n @media (forced-colors: active) {\n .ui-scroll-area-viewport {\n scrollbar-width: auto;\n scrollbar-color: auto;\n }\n .ui-scroll-area-viewport::-webkit-scrollbar-thumb {\n background: CanvasText;\n border-color: transparent;\n }\n }\n `,\n ],\n})\nexport class ScrollAreaComponent {\n readonly class = input<string>('');\n readonly viewportClass = input<string>('');\n readonly viewportAriaLabel = input<string | null>(null);\n readonly viewportTabIndex = input(0, { transform: numberAttribute });\n protected readonly classes = computed(() => cn('relative overflow-hidden', this.class()));\n protected readonly viewportRole = computed(() => (this.viewportAriaLabel() ? 'region' : null));\n protected readonly viewportClasses = computed(() =>\n cn(\n 'ui-scroll-area-viewport h-full w-full rounded-[inherit]',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring',\n this.viewportClass(),\n ),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;AAGG;MA0DU,mBAAmB,CAAA;IACrB,KAAK,GAAG,KAAK,CAAS,EAAE;8EAAC;IACzB,aAAa,GAAG,KAAK,CAAS,EAAE;sFAAC;IACjC,iBAAiB,GAAG,KAAK,CAAgB,IAAI;0FAAC;IAC9C,gBAAgB,GAAG,KAAK,CAAC,CAAC,wFAAI,SAAS,EAAE,eAAe,EAAA,CAAG;AACjD,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,0BAA0B,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;gFAAC;AACtE,IAAA,YAAY,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,iBAAiB,EAAE,GAAG,QAAQ,GAAG,IAAI,CAAC;qFAAC;AAC3E,IAAA,e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