@ojiepermana/angular 22.0.1 → 22.0.27

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 (517) hide show
  1. package/README.md +16 -302
  2. package/fesm2022/ojiepermana-angular-chart.mjs +11 -0
  3. package/fesm2022/ojiepermana-angular-chart.mjs.map +1 -0
  4. package/fesm2022/ojiepermana-angular-component.mjs +11 -0
  5. package/fesm2022/ojiepermana-angular-component.mjs.map +1 -0
  6. package/fesm2022/ojiepermana-angular-navigation.mjs +11 -0
  7. package/fesm2022/ojiepermana-angular-navigation.mjs.map +1 -0
  8. package/fesm2022/ojiepermana-angular-sdk.mjs +11 -0
  9. package/fesm2022/ojiepermana-angular-sdk.mjs.map +1 -0
  10. package/fesm2022/ojiepermana-angular-theme.mjs +3 -382
  11. package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -1
  12. package/fesm2022/ojiepermana-angular.mjs +14 -14
  13. package/fesm2022/ojiepermana-angular.mjs.map +1 -1
  14. package/package.json +25 -425
  15. package/types/ojiepermana-angular-chart.d.ts +1 -0
  16. package/types/ojiepermana-angular-component.d.ts +1 -0
  17. package/types/ojiepermana-angular-navigation.d.ts +1 -0
  18. package/types/ojiepermana-angular-sdk.d.ts +1 -0
  19. package/types/ojiepermana-angular-theme.d.ts +1 -116
  20. package/types/ojiepermana-angular.d.ts +5 -3
  21. package/.npmignore +0 -2
  22. package/collection.json +0 -30
  23. package/component/accordion/README.md +0 -195
  24. package/component/accordion/package.json +0 -4
  25. package/component/alert/README.md +0 -182
  26. package/component/alert/package.json +0 -4
  27. package/component/alert-dialog/README.md +0 -239
  28. package/component/alert-dialog/package.json +0 -4
  29. package/component/aspect-ratio/README.md +0 -112
  30. package/component/aspect-ratio/package.json +0 -4
  31. package/component/avatar/README.md +0 -176
  32. package/component/avatar/package.json +0 -4
  33. package/component/badge/README.md +0 -133
  34. package/component/badge/package.json +0 -4
  35. package/component/breadcrumb/README.md +0 -216
  36. package/component/breadcrumb/package.json +0 -4
  37. package/component/button/README.md +0 -139
  38. package/component/button/package.json +0 -4
  39. package/component/button-group/README.md +0 -208
  40. package/component/button-group/package.json +0 -4
  41. package/component/calendar/README.md +0 -132
  42. package/component/calendar/package.json +0 -4
  43. package/component/card/README.md +0 -220
  44. package/component/card/package.json +0 -4
  45. package/component/carousel/README.md +0 -276
  46. package/component/carousel/package.json +0 -4
  47. package/component/chart/README.md +0 -249
  48. package/component/chart/area/package.json +0 -4
  49. package/component/chart/bar/package.json +0 -4
  50. package/component/chart/line/package.json +0 -4
  51. package/component/chart/package.json +0 -4
  52. package/component/chart/pie/package.json +0 -4
  53. package/component/chart/radar/package.json +0 -4
  54. package/component/chart/radial/package.json +0 -4
  55. package/component/chart/scatter/package.json +0 -4
  56. package/component/checkbox/README.md +0 -149
  57. package/component/checkbox/package.json +0 -4
  58. package/component/collapsible/README.md +0 -195
  59. package/component/collapsible/package.json +0 -4
  60. package/component/combobox/README.md +0 -198
  61. package/component/combobox/package.json +0 -4
  62. package/component/command/README.md +0 -275
  63. package/component/command/package.json +0 -4
  64. package/component/composer/README.md +0 -235
  65. package/component/composer/package.json +0 -4
  66. package/component/context-menu/README.md +0 -267
  67. package/component/context-menu/package.json +0 -4
  68. package/component/date-picker/README.md +0 -177
  69. package/component/date-picker/package.json +0 -4
  70. package/component/dialog/README.md +0 -237
  71. package/component/dialog/package.json +0 -4
  72. package/component/drawer/README.md +0 -145
  73. package/component/drawer/package.json +0 -4
  74. package/component/dropdown-menu/README.md +0 -311
  75. package/component/dropdown-menu/package.json +0 -4
  76. package/component/editor/README.md +0 -136
  77. package/component/editor/package.json +0 -4
  78. package/component/empty/README.md +0 -183
  79. package/component/empty/package.json +0 -4
  80. package/component/form/README.md +0 -210
  81. package/component/form/package.json +0 -4
  82. package/component/hover-card/README.md +0 -146
  83. package/component/hover-card/package.json +0 -4
  84. package/component/input/README.md +0 -159
  85. package/component/input/package.json +0 -4
  86. package/component/input-group/README.md +0 -239
  87. package/component/input-group/package.json +0 -4
  88. package/component/input-otp/README.md +0 -278
  89. package/component/input-otp/package.json +0 -4
  90. package/component/item/README.md +0 -247
  91. package/component/item/package.json +0 -4
  92. package/component/kanban/README.md +0 -81
  93. package/component/kanban/package.json +0 -4
  94. package/component/kbd/README.md +0 -139
  95. package/component/kbd/package.json +0 -4
  96. package/component/label/README.md +0 -136
  97. package/component/label/package.json +0 -4
  98. package/component/menubar/README.md +0 -269
  99. package/component/menubar/package.json +0 -4
  100. package/component/native-select/README.md +0 -176
  101. package/component/native-select/package.json +0 -4
  102. package/component/navigation-menu/README.md +0 -160
  103. package/component/navigation-menu/package.json +0 -4
  104. package/component/pagination/README.md +0 -144
  105. package/component/pagination/package.json +0 -4
  106. package/component/pillbox/README.md +0 -67
  107. package/component/pillbox/package.json +0 -4
  108. package/component/popover/README.md +0 -43
  109. package/component/popover/package.json +0 -4
  110. package/component/progress/README.md +0 -160
  111. package/component/progress/package.json +0 -4
  112. package/component/radio/README.md +0 -209
  113. package/component/radio/package.json +0 -4
  114. package/component/resizable/README.md +0 -168
  115. package/component/resizable/package.json +0 -4
  116. package/component/scroll-area/README.md +0 -143
  117. package/component/scroll-area/package.json +0 -4
  118. package/component/select/README.md +0 -174
  119. package/component/select/package.json +0 -4
  120. package/component/separator/README.md +0 -170
  121. package/component/separator/package.json +0 -4
  122. package/component/sheet/README.md +0 -183
  123. package/component/sheet/package.json +0 -4
  124. package/component/skeleton/README.md +0 -158
  125. package/component/skeleton/package.json +0 -4
  126. package/component/slider/README.md +0 -207
  127. package/component/slider/package.json +0 -4
  128. package/component/spinner/README.md +0 -160
  129. package/component/spinner/package.json +0 -4
  130. package/component/switch/README.md +0 -166
  131. package/component/switch/package.json +0 -4
  132. package/component/table/README.md +0 -291
  133. package/component/table/package.json +0 -4
  134. package/component/tabs/README.md +0 -219
  135. package/component/tabs/package.json +0 -4
  136. package/component/textarea/README.md +0 -154
  137. package/component/textarea/package.json +0 -4
  138. package/component/timeline/README.md +0 -94
  139. package/component/timeline/package.json +0 -4
  140. package/component/toast/README.md +0 -321
  141. package/component/toast/package.json +0 -4
  142. package/component/toggle/README.md +0 -131
  143. package/component/toggle/package.json +0 -4
  144. package/component/toggle-group/README.md +0 -206
  145. package/component/toggle-group/package.json +0 -4
  146. package/component/tooltip/README.md +0 -211
  147. package/component/tooltip/package.json +0 -4
  148. package/component/utils/package.json +0 -4
  149. package/fesm2022/ojiepermana-angular-component-accordion.mjs +0 -189
  150. package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +0 -1
  151. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +0 -276
  152. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +0 -1
  153. package/fesm2022/ojiepermana-angular-component-alert.mjs +0 -99
  154. package/fesm2022/ojiepermana-angular-component-alert.mjs.map +0 -1
  155. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +0 -37
  156. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +0 -1
  157. package/fesm2022/ojiepermana-angular-component-avatar.mjs +0 -139
  158. package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +0 -1
  159. package/fesm2022/ojiepermana-angular-component-badge.mjs +0 -50
  160. package/fesm2022/ojiepermana-angular-component-badge.mjs.map +0 -1
  161. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +0 -200
  162. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +0 -1
  163. package/fesm2022/ojiepermana-angular-component-button-group.mjs +0 -103
  164. package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +0 -1
  165. package/fesm2022/ojiepermana-angular-component-button.mjs +0 -68
  166. package/fesm2022/ojiepermana-angular-component-button.mjs.map +0 -1
  167. package/fesm2022/ojiepermana-angular-component-calendar.mjs +0 -88
  168. package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +0 -1
  169. package/fesm2022/ojiepermana-angular-component-card.mjs +0 -152
  170. package/fesm2022/ojiepermana-angular-component-card.mjs.map +0 -1
  171. package/fesm2022/ojiepermana-angular-component-carousel.mjs +0 -334
  172. package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +0 -1
  173. package/fesm2022/ojiepermana-angular-component-chart-area.mjs +0 -6
  174. package/fesm2022/ojiepermana-angular-component-chart-area.mjs.map +0 -1
  175. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs +0 -6
  176. package/fesm2022/ojiepermana-angular-component-chart-bar.mjs.map +0 -1
  177. package/fesm2022/ojiepermana-angular-component-chart-line.mjs +0 -6
  178. package/fesm2022/ojiepermana-angular-component-chart-line.mjs.map +0 -1
  179. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs +0 -6
  180. package/fesm2022/ojiepermana-angular-component-chart-pie.mjs.map +0 -1
  181. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs +0 -6
  182. package/fesm2022/ojiepermana-angular-component-chart-radar.mjs.map +0 -1
  183. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs +0 -6
  184. package/fesm2022/ojiepermana-angular-component-chart-radial.mjs.map +0 -1
  185. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs +0 -6
  186. package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs.map +0 -1
  187. package/fesm2022/ojiepermana-angular-component-chart.mjs +0 -3925
  188. package/fesm2022/ojiepermana-angular-component-chart.mjs.map +0 -1
  189. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +0 -114
  190. package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +0 -1
  191. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +0 -124
  192. package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +0 -1
  193. package/fesm2022/ojiepermana-angular-component-combobox.mjs +0 -272
  194. package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +0 -1
  195. package/fesm2022/ojiepermana-angular-component-command.mjs +0 -293
  196. package/fesm2022/ojiepermana-angular-component-command.mjs.map +0 -1
  197. package/fesm2022/ojiepermana-angular-component-composer.mjs +0 -352
  198. package/fesm2022/ojiepermana-angular-component-composer.mjs.map +0 -1
  199. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +0 -103
  200. package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +0 -1
  201. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +0 -170
  202. package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +0 -1
  203. package/fesm2022/ojiepermana-angular-component-dialog.mjs +0 -279
  204. package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +0 -1
  205. package/fesm2022/ojiepermana-angular-component-drawer.mjs +0 -6
  206. package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +0 -1
  207. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +0 -492
  208. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +0 -1
  209. package/fesm2022/ojiepermana-angular-component-editor.mjs +0 -717
  210. package/fesm2022/ojiepermana-angular-component-editor.mjs.map +0 -1
  211. package/fesm2022/ojiepermana-angular-component-empty.mjs +0 -145
  212. package/fesm2022/ojiepermana-angular-component-empty.mjs.map +0 -1
  213. package/fesm2022/ojiepermana-angular-component-form.mjs +0 -366
  214. package/fesm2022/ojiepermana-angular-component-form.mjs.map +0 -1
  215. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +0 -297
  216. package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +0 -1
  217. package/fesm2022/ojiepermana-angular-component-input-group.mjs +0 -179
  218. package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +0 -1
  219. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +0 -514
  220. package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +0 -1
  221. package/fesm2022/ojiepermana-angular-component-input.mjs +0 -45
  222. package/fesm2022/ojiepermana-angular-component-input.mjs.map +0 -1
  223. package/fesm2022/ojiepermana-angular-component-item.mjs +0 -264
  224. package/fesm2022/ojiepermana-angular-component-item.mjs.map +0 -1
  225. package/fesm2022/ojiepermana-angular-component-kanban.mjs +0 -314
  226. package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +0 -1
  227. package/fesm2022/ojiepermana-angular-component-kbd.mjs +0 -55
  228. package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +0 -1
  229. package/fesm2022/ojiepermana-angular-component-label.mjs +0 -33
  230. package/fesm2022/ojiepermana-angular-component-label.mjs.map +0 -1
  231. package/fesm2022/ojiepermana-angular-component-menubar.mjs +0 -308
  232. package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +0 -1
  233. package/fesm2022/ojiepermana-angular-component-native-select.mjs +0 -67
  234. package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +0 -1
  235. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +0 -413
  236. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +0 -1
  237. package/fesm2022/ojiepermana-angular-component-pagination.mjs +0 -226
  238. package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +0 -1
  239. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +0 -812
  240. package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +0 -1
  241. package/fesm2022/ojiepermana-angular-component-popover.mjs +0 -169
  242. package/fesm2022/ojiepermana-angular-component-popover.mjs.map +0 -1
  243. package/fesm2022/ojiepermana-angular-component-progress.mjs +0 -60
  244. package/fesm2022/ojiepermana-angular-component-progress.mjs.map +0 -1
  245. package/fesm2022/ojiepermana-angular-component-radio.mjs +0 -122
  246. package/fesm2022/ojiepermana-angular-component-radio.mjs.map +0 -1
  247. package/fesm2022/ojiepermana-angular-component-resizable.mjs +0 -481
  248. package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +0 -1
  249. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +0 -54
  250. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +0 -1
  251. package/fesm2022/ojiepermana-angular-component-select.mjs +0 -176
  252. package/fesm2022/ojiepermana-angular-component-select.mjs.map +0 -1
  253. package/fesm2022/ojiepermana-angular-component-separator.mjs +0 -37
  254. package/fesm2022/ojiepermana-angular-component-separator.mjs.map +0 -1
  255. package/fesm2022/ojiepermana-angular-component-sheet.mjs +0 -284
  256. package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +0 -1
  257. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +0 -31
  258. package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +0 -1
  259. package/fesm2022/ojiepermana-angular-component-slider.mjs +0 -423
  260. package/fesm2022/ojiepermana-angular-component-slider.mjs.map +0 -1
  261. package/fesm2022/ojiepermana-angular-component-spinner.mjs +0 -60
  262. package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +0 -1
  263. package/fesm2022/ojiepermana-angular-component-switch.mjs +0 -116
  264. package/fesm2022/ojiepermana-angular-component-switch.mjs.map +0 -1
  265. package/fesm2022/ojiepermana-angular-component-table.mjs +0 -155
  266. package/fesm2022/ojiepermana-angular-component-table.mjs.map +0 -1
  267. package/fesm2022/ojiepermana-angular-component-tabs.mjs +0 -272
  268. package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +0 -1
  269. package/fesm2022/ojiepermana-angular-component-textarea.mjs +0 -39
  270. package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +0 -1
  271. package/fesm2022/ojiepermana-angular-component-timeline.mjs +0 -237
  272. package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +0 -1
  273. package/fesm2022/ojiepermana-angular-component-toast.mjs +0 -71
  274. package/fesm2022/ojiepermana-angular-component-toast.mjs.map +0 -1
  275. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +0 -289
  276. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +0 -1
  277. package/fesm2022/ojiepermana-angular-component-toggle.mjs +0 -82
  278. package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +0 -1
  279. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +0 -354
  280. package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +0 -1
  281. package/fesm2022/ojiepermana-angular-component-utils.mjs +0 -13
  282. package/fesm2022/ojiepermana-angular-component-utils.mjs.map +0 -1
  283. package/fesm2022/ojiepermana-angular-generator-api.mjs +0 -68
  284. package/fesm2022/ojiepermana-angular-generator-api.mjs.map +0 -1
  285. package/fesm2022/ojiepermana-angular-layout-component.mjs +0 -602
  286. package/fesm2022/ojiepermana-angular-layout-component.mjs.map +0 -1
  287. package/fesm2022/ojiepermana-angular-layout-provider.mjs +0 -21
  288. package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +0 -1
  289. package/fesm2022/ojiepermana-angular-layout-services.mjs +0 -116
  290. package/fesm2022/ojiepermana-angular-layout-services.mjs.map +0 -1
  291. package/fesm2022/ojiepermana-angular-layout-shell.mjs +0 -48
  292. package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +0 -1
  293. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +0 -30
  294. package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +0 -1
  295. package/fesm2022/ojiepermana-angular-layout-token.mjs +0 -33
  296. package/fesm2022/ojiepermana-angular-layout-token.mjs.map +0 -1
  297. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs +0 -49
  298. package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +0 -1
  299. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs +0 -128
  300. package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +0 -1
  301. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs +0 -123
  302. package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +0 -1
  303. package/fesm2022/ojiepermana-angular-layout.mjs +0 -485
  304. package/fesm2022/ojiepermana-angular-layout.mjs.map +0 -1
  305. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs +0 -334
  306. package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +0 -1
  307. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +0 -63
  308. package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +0 -1
  309. package/fesm2022/ojiepermana-angular-navigation-item.mjs +0 -559
  310. package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +0 -1
  311. package/fesm2022/ojiepermana-angular-navigation-service.mjs +0 -213
  312. package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +0 -1
  313. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +0 -401
  314. package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +0 -1
  315. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +0 -670
  316. package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +0 -1
  317. package/fesm2022/ojiepermana-angular-navigation-types.mjs +0 -4
  318. package/fesm2022/ojiepermana-angular-navigation-types.mjs.map +0 -1
  319. package/fesm2022/ojiepermana-angular-theme-provider.mjs +0 -35
  320. package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +0 -1
  321. package/fesm2022/ojiepermana-angular-theme-services.mjs +0 -294
  322. package/fesm2022/ojiepermana-angular-theme-services.mjs.map +0 -1
  323. package/fesm2022/ojiepermana-angular-theme-token.mjs +0 -56
  324. package/fesm2022/ojiepermana-angular-theme-token.mjs.map +0 -1
  325. package/generator/api/README.md +0 -252
  326. package/generator/api/bin/package.json +0 -3
  327. package/generator/api/bin/schematics/init/index.js +0 -90
  328. package/generator/api/bin/schematics/ng-add/index.js +0 -131
  329. package/generator/api/bin/schematics/sdk/index.js +0 -76
  330. package/generator/api/bin/src/config/loader.js +0 -41
  331. package/generator/api/bin/src/config/schema.js +0 -57
  332. package/generator/api/bin/src/emit/client.js +0 -248
  333. package/generator/api/bin/src/emit/metadata.js +0 -295
  334. package/generator/api/bin/src/emit/models.js +0 -106
  335. package/generator/api/bin/src/emit/navigation.js +0 -56
  336. package/generator/api/bin/src/emit/operations.js +0 -122
  337. package/generator/api/bin/src/emit/public-api.js +0 -54
  338. package/generator/api/bin/src/emit/services.js +0 -87
  339. package/generator/api/bin/src/engine.js +0 -65
  340. package/generator/api/bin/src/layout/per-domain.js +0 -359
  341. package/generator/api/bin/src/parser/bundle.js +0 -25
  342. package/generator/api/bin/src/parser/ir.js +0 -320
  343. package/generator/api/bin/src/parser/types.js +0 -7
  344. package/generator/api/bin/src/render/template.js +0 -58
  345. package/generator/api/bin/src/writer/index.js +0 -278
  346. package/generator/api/package.json +0 -4
  347. package/generator/api/schematics/init/schema.json +0 -19
  348. package/generator/api/schematics/ng-add/schema.json +0 -14
  349. package/generator/api/schematics/sdk/schema.json +0 -19
  350. package/generator/api/sdk.config.example.json +0 -24
  351. package/generator/guide/README.md +0 -84
  352. package/generator/guide/bin/package.json +0 -3
  353. package/generator/guide/bin/schematics/build/index.js +0 -36
  354. package/generator/guide/bin/schematics/init/index.js +0 -70
  355. package/generator/guide/bin/src/config/loader.js +0 -50
  356. package/generator/guide/bin/src/config/schema.js +0 -12
  357. package/generator/guide/bin/src/engine/component.js +0 -74
  358. package/generator/guide/bin/src/engine/frontmatter.js +0 -42
  359. package/generator/guide/bin/src/engine/index.js +0 -42
  360. package/generator/guide/bin/src/engine/naming.js +0 -39
  361. package/generator/guide/bin/src/engine/render.js +0 -36
  362. package/generator/guide/bin/src/engine/routes.js +0 -106
  363. package/generator/guide/bin/src/engine/walk.js +0 -35
  364. package/generator/guide/guide.config.example.json +0 -9
  365. package/generator/guide/schematics/build/schema.json +0 -14
  366. package/generator/guide/schematics/init/schema.json +0 -19
  367. package/layout/component/package.json +0 -4
  368. package/layout/package.json +0 -4
  369. package/layout/provider/package.json +0 -4
  370. package/layout/services/package.json +0 -4
  371. package/layout/shell/package.json +0 -4
  372. package/layout/token/directive/package.json +0 -4
  373. package/layout/token/package.json +0 -4
  374. package/layout/type/empty/package.json +0 -4
  375. package/layout/type/horizontal/package.json +0 -4
  376. package/layout/type/vertical/package.json +0 -4
  377. package/navigation/demo-data/package.json +0 -4
  378. package/navigation/icon/package.json +0 -4
  379. package/navigation/item/package.json +0 -4
  380. package/navigation/service/package.json +0 -4
  381. package/navigation/sidebar/package.json +0 -4
  382. package/navigation/topbar/README.md +0 -196
  383. package/navigation/topbar/package.json +0 -4
  384. package/navigation/types/package.json +0 -4
  385. package/theme/README.md +0 -174
  386. package/theme/package.json +0 -4
  387. package/theme/provider/package.json +0 -4
  388. package/theme/services/package.json +0 -4
  389. package/theme/styles/foundation/components.css +0 -81
  390. package/theme/styles/foundation/layers.css +0 -15
  391. package/theme/styles/foundation/tokens.css +0 -55
  392. package/theme/styles/index.css +0 -37
  393. package/theme/styles/integrations/material/autocomplete.css +0 -178
  394. package/theme/styles/integrations/material/button.css +0 -468
  395. package/theme/styles/integrations/material/dialog.css +0 -152
  396. package/theme/styles/integrations/material/select.css +0 -175
  397. package/theme/styles/integrations/material/slide-toggle.css +0 -234
  398. package/theme/styles/integrations/material/slider.css +0 -194
  399. package/theme/styles/integrations/material/tabs.css +0 -229
  400. package/theme/styles/integrations/material.css +0 -264
  401. package/theme/styles/integrations/tailwind.css +0 -114
  402. package/theme/styles/variants/color/amber.css +0 -31
  403. package/theme/styles/variants/color/base.css +0 -36
  404. package/theme/styles/variants/color/blue.css +0 -31
  405. package/theme/styles/variants/color/cyan.css +0 -31
  406. package/theme/styles/variants/color/emerald.css +0 -31
  407. package/theme/styles/variants/color/fuchsia.css +0 -31
  408. package/theme/styles/variants/color/green.css +0 -31
  409. package/theme/styles/variants/color/index.css +0 -22
  410. package/theme/styles/variants/color/indigo.css +0 -31
  411. package/theme/styles/variants/color/lime.css +0 -31
  412. package/theme/styles/variants/color/orange.css +0 -31
  413. package/theme/styles/variants/color/pink.css +0 -31
  414. package/theme/styles/variants/color/purple.css +0 -31
  415. package/theme/styles/variants/color/red.css +0 -31
  416. package/theme/styles/variants/color/rose.css +0 -31
  417. package/theme/styles/variants/color/sky.css +0 -31
  418. package/theme/styles/variants/color/teal.css +0 -31
  419. package/theme/styles/variants/color/violet.css +0 -31
  420. package/theme/styles/variants/color/yellow.css +0 -31
  421. package/theme/styles/variants/mode/dark.css +0 -20
  422. package/theme/styles/variants/mode/index.css +0 -6
  423. package/theme/styles/variants/mode/light.css +0 -24
  424. package/theme/styles/variants/style/brutal.css +0 -50
  425. package/theme/styles/variants/style/default.css +0 -54
  426. package/theme/styles/variants/style/index.css +0 -8
  427. package/theme/styles/variants/style/sharp.css +0 -50
  428. package/theme/styles/variants/style/soft.css +0 -50
  429. package/theme/token/package.json +0 -4
  430. package/types/ojiepermana-angular-component-accordion.d.ts +0 -51
  431. package/types/ojiepermana-angular-component-alert-dialog.d.ts +0 -93
  432. package/types/ojiepermana-angular-component-alert.d.ts +0 -37
  433. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +0 -12
  434. package/types/ojiepermana-angular-component-avatar.d.ts +0 -51
  435. package/types/ojiepermana-angular-component-badge.d.ts +0 -19
  436. package/types/ojiepermana-angular-component-breadcrumb.d.ts +0 -46
  437. package/types/ojiepermana-angular-component-button-group.d.ts +0 -26
  438. package/types/ojiepermana-angular-component-button.d.ts +0 -22
  439. package/types/ojiepermana-angular-component-calendar.d.ts +0 -33
  440. package/types/ojiepermana-angular-component-card.d.ts +0 -60
  441. package/types/ojiepermana-angular-component-carousel.d.ts +0 -86
  442. package/types/ojiepermana-angular-component-chart-area.d.ts +0 -1
  443. package/types/ojiepermana-angular-component-chart-bar.d.ts +0 -1
  444. package/types/ojiepermana-angular-component-chart-line.d.ts +0 -1
  445. package/types/ojiepermana-angular-component-chart-pie.d.ts +0 -1
  446. package/types/ojiepermana-angular-component-chart-radar.d.ts +0 -1
  447. package/types/ojiepermana-angular-component-chart-radial.d.ts +0 -1
  448. package/types/ojiepermana-angular-component-chart-scatter.d.ts +0 -1
  449. package/types/ojiepermana-angular-component-chart.d.ts +0 -1094
  450. package/types/ojiepermana-angular-component-checkbox.d.ts +0 -35
  451. package/types/ojiepermana-angular-component-collapsible.d.ts +0 -42
  452. package/types/ojiepermana-angular-component-combobox.d.ts +0 -50
  453. package/types/ojiepermana-angular-component-command.d.ts +0 -99
  454. package/types/ojiepermana-angular-component-composer.d.ts +0 -90
  455. package/types/ojiepermana-angular-component-context-menu.d.ts +0 -35
  456. package/types/ojiepermana-angular-component-date-picker.d.ts +0 -41
  457. package/types/ojiepermana-angular-component-dialog.d.ts +0 -87
  458. package/types/ojiepermana-angular-component-drawer.d.ts +0 -1
  459. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +0 -137
  460. package/types/ojiepermana-angular-component-editor.d.ts +0 -123
  461. package/types/ojiepermana-angular-component-empty.d.ts +0 -50
  462. package/types/ojiepermana-angular-component-form.d.ts +0 -141
  463. package/types/ojiepermana-angular-component-hover-card.d.ts +0 -74
  464. package/types/ojiepermana-angular-component-input-group.d.ts +0 -51
  465. package/types/ojiepermana-angular-component-input-otp.d.ts +0 -136
  466. package/types/ojiepermana-angular-component-input.d.ts +0 -16
  467. package/types/ojiepermana-angular-component-item.d.ts +0 -88
  468. package/types/ojiepermana-angular-component-kanban.d.ts +0 -70
  469. package/types/ojiepermana-angular-component-kbd.d.ts +0 -16
  470. package/types/ojiepermana-angular-component-label.d.ts +0 -11
  471. package/types/ojiepermana-angular-component-menubar.d.ts +0 -67
  472. package/types/ojiepermana-angular-component-native-select.d.ts +0 -26
  473. package/types/ojiepermana-angular-component-navigation-menu.d.ts +0 -96
  474. package/types/ojiepermana-angular-component-pagination.d.ts +0 -33
  475. package/types/ojiepermana-angular-component-pillbox.d.ts +0 -157
  476. package/types/ojiepermana-angular-component-popover.d.ts +0 -43
  477. package/types/ojiepermana-angular-component-progress.d.ts +0 -17
  478. package/types/ojiepermana-angular-component-radio.d.ts +0 -40
  479. package/types/ojiepermana-angular-component-resizable.d.ts +0 -99
  480. package/types/ojiepermana-angular-component-scroll-area.d.ts +0 -19
  481. package/types/ojiepermana-angular-component-select.d.ts +0 -57
  482. package/types/ojiepermana-angular-component-separator.d.ts +0 -14
  483. package/types/ojiepermana-angular-component-sheet.d.ts +0 -76
  484. package/types/ojiepermana-angular-component-skeleton.d.ts +0 -10
  485. package/types/ojiepermana-angular-component-slider.d.ts +0 -74
  486. package/types/ojiepermana-angular-component-spinner.d.ts +0 -13
  487. package/types/ojiepermana-angular-component-switch.d.ts +0 -40
  488. package/types/ojiepermana-angular-component-table.d.ts +0 -52
  489. package/types/ojiepermana-angular-component-tabs.d.ts +0 -92
  490. package/types/ojiepermana-angular-component-textarea.d.ts +0 -12
  491. package/types/ojiepermana-angular-component-timeline.d.ts +0 -63
  492. package/types/ojiepermana-angular-component-toast.d.ts +0 -38
  493. package/types/ojiepermana-angular-component-toggle-group.d.ts +0 -89
  494. package/types/ojiepermana-angular-component-toggle.d.ts +0 -25
  495. package/types/ojiepermana-angular-component-tooltip.d.ts +0 -89
  496. package/types/ojiepermana-angular-component-utils.d.ts +0 -5
  497. package/types/ojiepermana-angular-generator-api.d.ts +0 -86
  498. package/types/ojiepermana-angular-layout-component.d.ts +0 -205
  499. package/types/ojiepermana-angular-layout-provider.d.ts +0 -6
  500. package/types/ojiepermana-angular-layout-services.d.ts +0 -25
  501. package/types/ojiepermana-angular-layout-shell.d.ts +0 -8
  502. package/types/ojiepermana-angular-layout-token-directive.d.ts +0 -13
  503. package/types/ojiepermana-angular-layout-token.d.ts +0 -36
  504. package/types/ojiepermana-angular-layout-type-empty.d.ts +0 -22
  505. package/types/ojiepermana-angular-layout-type-horizontal.d.ts +0 -36
  506. package/types/ojiepermana-angular-layout-type-vertical.d.ts +0 -38
  507. package/types/ojiepermana-angular-layout.d.ts +0 -164
  508. package/types/ojiepermana-angular-navigation-demo-data.d.ts +0 -5
  509. package/types/ojiepermana-angular-navigation-icon.d.ts +0 -17
  510. package/types/ojiepermana-angular-navigation-item.d.ts +0 -54
  511. package/types/ojiepermana-angular-navigation-service.d.ts +0 -77
  512. package/types/ojiepermana-angular-navigation-sidebar.d.ts +0 -75
  513. package/types/ojiepermana-angular-navigation-topbar.d.ts +0 -74
  514. package/types/ojiepermana-angular-navigation-types.d.ts +0 -135
  515. package/types/ojiepermana-angular-theme-provider.d.ts +0 -11
  516. package/types/ojiepermana-angular-theme-services.d.ts +0 -55
  517. package/types/ojiepermana-angular-theme-token.d.ts +0 -57
@@ -1,31 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { cn } from '@ojiepermana/angular/component/utils';
4
-
5
- class SkeletonComponent {
6
- class = input('', /* @ts-ignore */
7
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
8
- classes = computed(() => cn('block animate-pulse rounded-md bg-muted', this.class()), /* @ts-ignore */
9
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
10
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SkeletonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: SkeletonComponent, isStandalone: true, selector: "ui-skeleton", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()", "attr.aria-hidden": "\"true\"" } }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
12
- }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SkeletonComponent, decorators: [{
14
- type: Component,
15
- args: [{
16
- selector: 'ui-skeleton',
17
- changeDetection: ChangeDetectionStrategy.OnPush,
18
- host: {
19
- '[class]': 'classes()',
20
- '[attr.aria-hidden]': '"true"',
21
- },
22
- template: '',
23
- }]
24
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
25
-
26
- /**
27
- * Generated bundle index. Do not edit.
28
- */
29
-
30
- export { SkeletonComponent };
31
- //# sourceMappingURL=ojiepermana-angular-component-skeleton.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-skeleton.mjs","sources":["../../../projects/angular/component/skeleton/skeleton.component.ts","../../../projects/angular/component/skeleton/ojiepermana-angular-component-skeleton.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\n@Component({\n selector: 'ui-skeleton',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.aria-hidden]': '\"true\"',\n },\n template: '',\n})\nexport class SkeletonComponent {\n readonly class = input<string>('');\n\n protected readonly classes = computed(() => cn('block animate-pulse rounded-md bg-muted', this.class()));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAYa,iBAAiB,CAAA;IACnB,KAAK,GAAG,KAAK,CAAS,EAAE;8EAAC;AAEf,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,yCAAyC,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;gFAAC;uGAH7F,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,2RAFlB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAED,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAT7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;oBACvB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,WAAW;AACtB,wBAAA,oBAAoB,EAAE,QAAQ;AAC/B,qBAAA;AACD,oBAAA,QAAQ,EAAE,EAAE;AACb,iBAAA;;;ACXD;;AAEG;;;;"}
@@ -1,423 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ElementRef, input, computed, ChangeDetectionStrategy, Component, viewChild, numberAttribute, booleanAttribute, output, signal, effect, untracked } from '@angular/core';
3
- import { cn } from '@ojiepermana/angular/component/utils';
4
- import { DOCUMENT } from '@angular/common';
5
-
6
- /**
7
- * Styled native range input. Works with `ngModel` / `FormControl` via
8
- * Angular's built-in `RangeValueAccessor`. Keyboard + ARIA handled by the browser.
9
- */
10
- class SliderComponent {
11
- el = inject(ElementRef);
12
- class = input('', /* @ts-ignore */
13
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
14
- classes = computed(() => cn('ui-slider relative w-full appearance-none bg-transparent', 'focus-visible:outline-none', 'disabled:pointer-events-none disabled:opacity-50', this.class()), /* @ts-ignore */
15
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
16
- focus() {
17
- this.el.nativeElement.focus();
18
- }
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
20
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: SliderComponent, isStandalone: true, selector: "input[type=range][ui-slider]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true, styles: [":host.ui-slider{height:1.25rem;cursor:pointer}:host.ui-slider::-webkit-slider-runnable-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-moz-range-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-.25rem;width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider::-moz-range-thumb{width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:disabled::-webkit-slider-thumb{cursor:not-allowed}:host.ui-slider:disabled::-moz-range-thumb{cursor:not-allowed}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
21
- }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SliderComponent, decorators: [{
23
- type: Component,
24
- args: [{ selector: 'input[type=range][ui-slider]', changeDetection: ChangeDetectionStrategy.OnPush, host: { '[class]': 'classes()' }, template: '', styles: [":host.ui-slider{height:1.25rem;cursor:pointer}:host.ui-slider::-webkit-slider-runnable-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-moz-range-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-.25rem;width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider::-moz-range-thumb{width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:disabled::-webkit-slider-thumb{cursor:not-allowed}:host.ui-slider:disabled::-moz-range-thumb{cursor:not-allowed}\n"] }]
25
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
26
-
27
- class SliderRootComponent {
28
- host = inject(ElementRef);
29
- document = inject(DOCUMENT);
30
- track = viewChild.required('track');
31
- value = input([0], /* @ts-ignore */
32
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
33
- min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
34
- max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
35
- step = input(1, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
36
- minStepsBetweenThumbs = input(0, { ...(ngDevMode ? { debugName: "minStepsBetweenThumbs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
37
- orientation = input('horizontal', /* @ts-ignore */
38
- ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
39
- disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
40
- thumbLabels = input(null, /* @ts-ignore */
41
- ...(ngDevMode ? [{ debugName: "thumbLabels" }] : /* istanbul ignore next */ []));
42
- ariaLabel = input(null, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
43
- ariaDescribedby = input(null, { ...(ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
44
- ariaLabelledby = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
45
- class = input('', /* @ts-ignore */
46
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
47
- valueChange = output();
48
- disabledState = signal(false, /* @ts-ignore */
49
- ...(ngDevMode ? [{ debugName: "disabledState" }] : /* istanbul ignore next */ []));
50
- valueState = signal([0], /* @ts-ignore */
51
- ...(ngDevMode ? [{ debugName: "valueState" }] : /* istanbul ignore next */ []));
52
- activeThumbIndex = signal(0, /* @ts-ignore */
53
- ...(ngDevMode ? [{ debugName: "activeThumbIndex" }] : /* istanbul ignore next */ []));
54
- draggedThumbIndex = signal(null, /* @ts-ignore */
55
- ...(ngDevMode ? [{ debugName: "draggedThumbIndex" }] : /* istanbul ignore next */ []));
56
- pointerId = signal(null, /* @ts-ignore */
57
- ...(ngDevMode ? [{ debugName: "pointerId" }] : /* istanbul ignore next */ []));
58
- config = computed(() => ({
59
- min: Math.min(this.min(), this.max()),
60
- max: Math.max(this.min(), this.max()),
61
- step: this.step() > 0 ? this.step() : 1,
62
- minStepsBetweenThumbs: Math.max(0, Math.floor(this.minStepsBetweenThumbs())),
63
- }), /* @ts-ignore */
64
- ...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
65
- isDisabled = computed(() => this.disabled() || this.disabledState(), /* @ts-ignore */
66
- ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
67
- hostClasses = computed(() => cn('ui-slider-root relative flex touch-none select-none', this.orientation() === 'horizontal' ? 'h-5 w-full items-center' : 'h-32 w-5 justify-center', this.isDisabled() ? 'opacity-50' : '', this.class()), /* @ts-ignore */
68
- ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
69
- thumbs = computed(() => {
70
- const values = this.valueState();
71
- const config = this.config();
72
- return values.map((value, index) => {
73
- const bounds = thumbBounds(values, index, config);
74
- return {
75
- index,
76
- value,
77
- position: this.positionPercent(value),
78
- min: bounds.min,
79
- max: bounds.max,
80
- label: this.thumbLabel(index, values.length),
81
- };
82
- });
83
- }, /* @ts-ignore */
84
- ...(ngDevMode ? [{ debugName: "thumbs" }] : /* istanbul ignore next */ []));
85
- rangeOffset = computed(() => {
86
- const span = this.rangeSpan();
87
- return span.start;
88
- }, /* @ts-ignore */
89
- ...(ngDevMode ? [{ debugName: "rangeOffset" }] : /* istanbul ignore next */ []));
90
- rangeSize = computed(() => {
91
- const span = this.rangeSpan();
92
- return span.end - span.start;
93
- }, /* @ts-ignore */
94
- ...(ngDevMode ? [{ debugName: "rangeSize" }] : /* istanbul ignore next */ []));
95
- syncExternalValue = effect(() => {
96
- const normalized = normalizeSliderValues(this.value(), this.config());
97
- untracked(() => {
98
- if (!sameValues(normalized, this.valueState())) {
99
- this.valueState.set(normalized);
100
- }
101
- this.activeThumbIndex.set(clampIndex(this.activeThumbIndex(), normalized.length));
102
- });
103
- }, /* @ts-ignore */
104
- ...(ngDevMode ? [{ debugName: "syncExternalValue" }] : /* istanbul ignore next */ []));
105
- onTrackPointerDown(event) {
106
- if (this.isDisabled() || event.button !== 0) {
107
- return;
108
- }
109
- event.preventDefault();
110
- const nextValue = this.valueFromPointer(event);
111
- if (nextValue == null) {
112
- return;
113
- }
114
- const thumbIndex = this.closestThumbIndex(nextValue);
115
- this.activeThumbIndex.set(thumbIndex);
116
- this.updateThumbValue(thumbIndex, nextValue);
117
- this.beginDrag(event, thumbIndex);
118
- }
119
- onThumbPointerDown(event, index) {
120
- if (this.isDisabled() || event.button !== 0) {
121
- return;
122
- }
123
- event.preventDefault();
124
- event.stopPropagation();
125
- this.activeThumbIndex.set(index);
126
- this.beginDrag(event, index);
127
- }
128
- onWindowPointerMove(event) {
129
- if (this.pointerId() !== event.pointerId) {
130
- return;
131
- }
132
- const thumbIndex = this.draggedThumbIndex();
133
- if (thumbIndex == null) {
134
- return;
135
- }
136
- const nextValue = this.valueFromPointer(event);
137
- if (nextValue == null) {
138
- return;
139
- }
140
- event.preventDefault();
141
- this.updateThumbValue(thumbIndex, nextValue);
142
- }
143
- onWindowPointerUp(event) {
144
- if (this.pointerId() !== event.pointerId) {
145
- return;
146
- }
147
- this.draggedThumbIndex.set(null);
148
- this.pointerId.set(null);
149
- }
150
- onThumbFocus(index) {
151
- this.activeThumbIndex.set(index);
152
- }
153
- onThumbKeydown(event, index) {
154
- if (this.isDisabled()) {
155
- return;
156
- }
157
- const current = this.valueState()[index];
158
- const config = this.config();
159
- const pageStep = config.step * 10;
160
- const direction = this.resolvedDirection();
161
- let nextValue = null;
162
- switch (event.key) {
163
- case 'ArrowRight':
164
- nextValue = current + (direction === 'rtl' && this.orientation() === 'horizontal' ? -config.step : config.step);
165
- break;
166
- case 'ArrowLeft':
167
- nextValue = current + (direction === 'rtl' && this.orientation() === 'horizontal' ? config.step : -config.step);
168
- break;
169
- case 'ArrowUp':
170
- nextValue = current + config.step;
171
- break;
172
- case 'ArrowDown':
173
- nextValue = current - config.step;
174
- break;
175
- case 'PageUp':
176
- nextValue = current + pageStep;
177
- break;
178
- case 'PageDown':
179
- nextValue = current - pageStep;
180
- break;
181
- case 'Home':
182
- nextValue = thumbBounds(this.valueState(), index, config).min;
183
- break;
184
- case 'End':
185
- nextValue = thumbBounds(this.valueState(), index, config).max;
186
- break;
187
- default:
188
- return;
189
- }
190
- event.preventDefault();
191
- this.activeThumbIndex.set(index);
192
- this.updateThumbValue(index, nextValue);
193
- }
194
- beginDrag(event, index) {
195
- this.pointerId.set(event.pointerId);
196
- this.draggedThumbIndex.set(index);
197
- this.focusThumb(index);
198
- }
199
- updateThumbValue(index, rawValue) {
200
- const current = this.valueState();
201
- const bounds = thumbBounds(current, index, this.config());
202
- const nextValues = current.slice();
203
- nextValues[index] = snapWithinBounds(rawValue, bounds.min, bounds.max, this.config());
204
- if (sameValues(nextValues, current)) {
205
- return;
206
- }
207
- this.valueState.set(nextValues);
208
- this.valueChange.emit(nextValues);
209
- }
210
- valueFromPointer(event) {
211
- const track = this.track().nativeElement;
212
- const rect = track.getBoundingClientRect();
213
- const config = this.config();
214
- if (rect.width <= 0 || rect.height <= 0) {
215
- return null;
216
- }
217
- let ratio = 0;
218
- if (this.orientation() === 'horizontal') {
219
- const physicalRatio = clamp((event.clientX - rect.left) / rect.width, 0, 1);
220
- ratio = this.resolvedDirection() === 'rtl' ? 1 - physicalRatio : physicalRatio;
221
- }
222
- else {
223
- ratio = clamp((rect.bottom - event.clientY) / rect.height, 0, 1);
224
- }
225
- return config.min + ratio * (config.max - config.min);
226
- }
227
- closestThumbIndex(nextValue) {
228
- const values = this.valueState();
229
- let bestIndex = 0;
230
- let bestDistance = Number.POSITIVE_INFINITY;
231
- values.forEach((value, index) => {
232
- const distance = Math.abs(value - nextValue);
233
- if (distance < bestDistance) {
234
- bestDistance = distance;
235
- bestIndex = index;
236
- }
237
- });
238
- return bestIndex;
239
- }
240
- rangeSpan() {
241
- const positions = this.valueState().map((value) => this.positionPercent(value));
242
- if (!positions.length) {
243
- return { start: 0, end: 0 };
244
- }
245
- if (positions.length === 1) {
246
- const minBoundary = this.positionPercent(this.config().min);
247
- return {
248
- start: Math.min(minBoundary, positions[0]),
249
- end: Math.max(minBoundary, positions[0]),
250
- };
251
- }
252
- return {
253
- start: Math.min(...positions),
254
- end: Math.max(...positions),
255
- };
256
- }
257
- positionPercent(value) {
258
- const config = this.config();
259
- const range = config.max - config.min;
260
- if (range <= 0) {
261
- return this.orientation() === 'horizontal' && this.resolvedDirection() === 'rtl' ? 100 : 0;
262
- }
263
- const logicalRatio = (value - config.min) / range;
264
- const physicalRatio = this.orientation() === 'horizontal' && this.resolvedDirection() === 'rtl' ? 1 - logicalRatio : logicalRatio;
265
- return clamp(physicalRatio * 100, 0, 100);
266
- }
267
- thumbLabel(index, count) {
268
- const labels = this.thumbLabels();
269
- if (labels?.[index]) {
270
- return labels[index] ?? null;
271
- }
272
- if (count === 1) {
273
- return this.ariaLabel();
274
- }
275
- return this.ariaLabel() ? `${this.ariaLabel()} ${index + 1}` : `Slider thumb ${index + 1}`;
276
- }
277
- focusThumb(index) {
278
- const thumb = this.host.nativeElement.querySelector(`.ui-slider__thumb[data-index="${index}"]`);
279
- thumb?.focus();
280
- }
281
- resolvedDirection() {
282
- const host = this.host.nativeElement;
283
- if (host.dir === 'ltr' || host.dir === 'rtl') {
284
- return host.dir;
285
- }
286
- const view = this.document.defaultView;
287
- if (!view) {
288
- return 'ltr';
289
- }
290
- return view.getComputedStyle(host).direction === 'rtl' ? 'rtl' : 'ltr';
291
- }
292
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SliderRootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
293
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: SliderRootComponent, isStandalone: true, selector: "ui-slider", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, minStepsBetweenThumbs: { classPropertyName: "minStepsBetweenThumbs", publicName: "minStepsBetweenThumbs", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, thumbLabels: { classPropertyName: "thumbLabels", publicName: "thumbLabels", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "window:pointermove": "onWindowPointerMove($event)", "window:pointerup": "onWindowPointerUp($event)", "window:pointercancel": "onWindowPointerUp($event)" }, properties: { "class": "hostClasses()", "attr.data-disabled": "isDisabled() ? \"\" : null", "attr.data-orientation": "orientation()" } }, viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }], ngImport: i0, template: `
294
- <div #track class="ui-slider__track" (pointerdown)="onTrackPointerDown($event)">
295
- <div
296
- class="ui-slider__range"
297
- [style.left.%]="orientation() === 'horizontal' ? rangeOffset() : null"
298
- [style.width.%]="orientation() === 'horizontal' ? rangeSize() : null"
299
- [style.bottom.%]="orientation() === 'vertical' ? rangeOffset() : null"
300
- [style.height.%]="orientation() === 'vertical' ? rangeSize() : null"></div>
301
-
302
- @for (thumb of thumbs(); track thumb.index) {
303
- <button
304
- type="button"
305
- class="ui-slider__thumb"
306
- [style.left.%]="orientation() === 'horizontal' ? thumb.position : 50"
307
- [style.top.%]="orientation() === 'horizontal' ? 50 : null"
308
- [style.bottom.%]="orientation() === 'vertical' ? thumb.position : null"
309
- [attr.aria-describedby]="ariaDescribedby()"
310
- [attr.aria-disabled]="isDisabled() ? 'true' : null"
311
- [attr.aria-label]="thumb.label"
312
- [attr.aria-labelledby]="thumb.label ? null : ariaLabelledby()"
313
- [attr.aria-orientation]="orientation()"
314
- [attr.aria-valuemax]="thumb.max"
315
- [attr.aria-valuemin]="thumb.min"
316
- [attr.aria-valuenow]="thumb.value"
317
- [attr.data-index]="thumb.index"
318
- [attr.data-state]="isDisabled() ? 'disabled' : 'active'"
319
- [tabIndex]="isDisabled() ? -1 : activeThumbIndex() === thumb.index ? 0 : -1"
320
- role="slider"
321
- (focus)="onThumbFocus(thumb.index)"
322
- (keydown)="onThumbKeydown($event, thumb.index)"
323
- (pointerdown)="onThumbPointerDown($event, thumb.index)"></button>
324
- }
325
- </div>
326
- `, isInline: true, styles: [":host.ui-slider-root{--ui-slider-thumb-size: 1rem;--ui-slider-track-size: .5rem;display:block}.ui-slider__track{position:relative;flex:1 1 auto;border-radius:9999px;background:hsl(var(--secondary))}:host[data-orientation=horizontal] .ui-slider__track{height:var(--ui-slider-track-size);width:100%}:host[data-orientation=vertical] .ui-slider__track{height:100%;width:var(--ui-slider-track-size)}.ui-slider__range{position:absolute;border-radius:inherit;background:hsl(var(--primary))}:host[data-orientation=horizontal] .ui-slider__range{top:0;height:100%}:host[data-orientation=vertical] .ui-slider__range{left:0;width:100%}.ui-slider__thumb{position:absolute;height:var(--ui-slider-thumb-size);width:var(--ui-slider-thumb-size);border:var(--border-width) solid hsl(var(--primary));border-radius:9999px;background:hsl(var(--background));box-shadow:0 1px 2px hsl(var(--foreground) / .14);transition:box-shadow .15s cubic-bezier(.4,0,.2,1),border-color .15s cubic-bezier(.4,0,.2,1),background-color .15s cubic-bezier(.4,0,.2,1)}:host[data-orientation=horizontal] .ui-slider__thumb{transform:translate(-50%,-50%)}:host[data-orientation=vertical] .ui-slider__thumb{transform:translate(-50%,50%)}.ui-slider__thumb:focus-visible{outline:none;box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host[data-disabled] .ui-slider__track,:host[data-disabled] .ui-slider__thumb{cursor:not-allowed}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
327
- }
328
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SliderRootComponent, decorators: [{
329
- type: Component,
330
- args: [{ selector: 'ui-slider', changeDetection: ChangeDetectionStrategy.OnPush, host: {
331
- '[class]': 'hostClasses()',
332
- '[attr.data-disabled]': 'isDisabled() ? "" : null',
333
- '[attr.data-orientation]': 'orientation()',
334
- '(window:pointermove)': 'onWindowPointerMove($event)',
335
- '(window:pointerup)': 'onWindowPointerUp($event)',
336
- '(window:pointercancel)': 'onWindowPointerUp($event)',
337
- }, template: `
338
- <div #track class="ui-slider__track" (pointerdown)="onTrackPointerDown($event)">
339
- <div
340
- class="ui-slider__range"
341
- [style.left.%]="orientation() === 'horizontal' ? rangeOffset() : null"
342
- [style.width.%]="orientation() === 'horizontal' ? rangeSize() : null"
343
- [style.bottom.%]="orientation() === 'vertical' ? rangeOffset() : null"
344
- [style.height.%]="orientation() === 'vertical' ? rangeSize() : null"></div>
345
-
346
- @for (thumb of thumbs(); track thumb.index) {
347
- <button
348
- type="button"
349
- class="ui-slider__thumb"
350
- [style.left.%]="orientation() === 'horizontal' ? thumb.position : 50"
351
- [style.top.%]="orientation() === 'horizontal' ? 50 : null"
352
- [style.bottom.%]="orientation() === 'vertical' ? thumb.position : null"
353
- [attr.aria-describedby]="ariaDescribedby()"
354
- [attr.aria-disabled]="isDisabled() ? 'true' : null"
355
- [attr.aria-label]="thumb.label"
356
- [attr.aria-labelledby]="thumb.label ? null : ariaLabelledby()"
357
- [attr.aria-orientation]="orientation()"
358
- [attr.aria-valuemax]="thumb.max"
359
- [attr.aria-valuemin]="thumb.min"
360
- [attr.aria-valuenow]="thumb.value"
361
- [attr.data-index]="thumb.index"
362
- [attr.data-state]="isDisabled() ? 'disabled' : 'active'"
363
- [tabIndex]="isDisabled() ? -1 : activeThumbIndex() === thumb.index ? 0 : -1"
364
- role="slider"
365
- (focus)="onThumbFocus(thumb.index)"
366
- (keydown)="onThumbKeydown($event, thumb.index)"
367
- (pointerdown)="onThumbPointerDown($event, thumb.index)"></button>
368
- }
369
- </div>
370
- `, styles: [":host.ui-slider-root{--ui-slider-thumb-size: 1rem;--ui-slider-track-size: .5rem;display:block}.ui-slider__track{position:relative;flex:1 1 auto;border-radius:9999px;background:hsl(var(--secondary))}:host[data-orientation=horizontal] .ui-slider__track{height:var(--ui-slider-track-size);width:100%}:host[data-orientation=vertical] .ui-slider__track{height:100%;width:var(--ui-slider-track-size)}.ui-slider__range{position:absolute;border-radius:inherit;background:hsl(var(--primary))}:host[data-orientation=horizontal] .ui-slider__range{top:0;height:100%}:host[data-orientation=vertical] .ui-slider__range{left:0;width:100%}.ui-slider__thumb{position:absolute;height:var(--ui-slider-thumb-size);width:var(--ui-slider-thumb-size);border:var(--border-width) solid hsl(var(--primary));border-radius:9999px;background:hsl(var(--background));box-shadow:0 1px 2px hsl(var(--foreground) / .14);transition:box-shadow .15s cubic-bezier(.4,0,.2,1),border-color .15s cubic-bezier(.4,0,.2,1),background-color .15s cubic-bezier(.4,0,.2,1)}:host[data-orientation=horizontal] .ui-slider__thumb{transform:translate(-50%,-50%)}:host[data-orientation=vertical] .ui-slider__thumb{transform:translate(-50%,50%)}.ui-slider__thumb:focus-visible{outline:none;box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host[data-disabled] .ui-slider__track,:host[data-disabled] .ui-slider__thumb{cursor:not-allowed}\n"] }]
371
- }], propDecorators: { track: [{ type: i0.ViewChild, args: ['track', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], minStepsBetweenThumbs: [{ type: i0.Input, args: [{ isSignal: true, alias: "minStepsBetweenThumbs", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], thumbLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "thumbLabels", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
372
- function clamp(value, min, max) {
373
- return Math.min(Math.max(value, min), max);
374
- }
375
- function clampIndex(index, length) {
376
- return clamp(index, 0, Math.max(length - 1, 0));
377
- }
378
- function decimalPlaces(value) {
379
- const text = `${value}`;
380
- const fraction = text.split('.')[1];
381
- return fraction?.length ?? 0;
382
- }
383
- function normalizeSliderValues(values, config) {
384
- const incoming = values.length ? [...values] : [config.min];
385
- const sorted = incoming.map((value) => snapToStep(value, config)).sort((left, right) => left - right);
386
- const gap = config.step * config.minStepsBetweenThumbs;
387
- const normalized = [];
388
- sorted.forEach((value, index) => {
389
- const remaining = sorted.length - index - 1;
390
- const min = index === 0 ? config.min : normalized[index - 1] + gap;
391
- const max = Math.max(min, config.max - remaining * gap);
392
- normalized.push(snapWithinBounds(value, min, max, config));
393
- });
394
- return normalized;
395
- }
396
- function sameValues(left, right) {
397
- return left.length === right.length && left.every((value, index) => value === right[index]);
398
- }
399
- function snapToStep(value, config) {
400
- const ratio = (value - config.min) / config.step;
401
- const snapped = config.min + Math.round(ratio) * config.step;
402
- const precision = Math.max(decimalPlaces(config.step), decimalPlaces(config.min));
403
- return Number(snapped.toFixed(precision));
404
- }
405
- function snapWithinBounds(value, min, max, config) {
406
- const boundedMin = Math.min(min, max);
407
- const boundedMax = Math.max(min, max);
408
- const snapped = snapToStep(value, config);
409
- return clamp(snapped, boundedMin, boundedMax);
410
- }
411
- function thumbBounds(values, index, config) {
412
- const gap = config.step * config.minStepsBetweenThumbs;
413
- const min = index === 0 ? config.min : values[index - 1] + gap;
414
- const max = index === values.length - 1 ? config.max : values[index + 1] - gap;
415
- return { min: Math.min(min, max), max: Math.max(min, max) };
416
- }
417
-
418
- /**
419
- * Generated bundle index. Do not edit.
420
- */
421
-
422
- export { SliderComponent, SliderComponent as SliderInputDirective, SliderRootComponent };
423
- //# sourceMappingURL=ojiepermana-angular-component-slider.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-slider.mjs","sources":["../../../projects/angular/component/slider/slider.component.ts","../../../projects/angular/component/slider/slider-root.component.ts","../../../projects/angular/component/slider/ojiepermana-angular-component-slider.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\n/**\n * Styled native range input. Works with `ngModel` / `FormControl` via\n * Angular's built-in `RangeValueAccessor`. Keyboard + ARIA handled by the browser.\n */\n@Component({\n selector: 'input[type=range][ui-slider]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'classes()' },\n template: '',\n styleUrl: './slider.component.css',\n})\nexport class SliderComponent {\n private readonly el = inject<ElementRef<HTMLInputElement>>(ElementRef);\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(\n 'ui-slider relative w-full appearance-none bg-transparent',\n 'focus-visible:outline-none',\n 'disabled:pointer-events-none disabled:opacity-50',\n this.class(),\n ),\n );\n\n focus(): void {\n this.el.nativeElement.focus();\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\nexport type SliderOrientation = 'horizontal' | 'vertical';\n\ninterface SliderConfig {\n readonly min: number;\n readonly max: number;\n readonly step: number;\n readonly minStepsBetweenThumbs: number;\n}\n\ninterface SliderThumbState {\n readonly index: number;\n readonly value: number;\n readonly position: number;\n readonly min: number;\n readonly max: number;\n readonly label: string | null;\n}\n\n@Component({\n selector: 'ui-slider',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'hostClasses()',\n '[attr.data-disabled]': 'isDisabled() ? \"\" : null',\n '[attr.data-orientation]': 'orientation()',\n '(window:pointermove)': 'onWindowPointerMove($event)',\n '(window:pointerup)': 'onWindowPointerUp($event)',\n '(window:pointercancel)': 'onWindowPointerUp($event)',\n },\n template: `\n <div #track class=\"ui-slider__track\" (pointerdown)=\"onTrackPointerDown($event)\">\n <div\n class=\"ui-slider__range\"\n [style.left.%]=\"orientation() === 'horizontal' ? rangeOffset() : null\"\n [style.width.%]=\"orientation() === 'horizontal' ? rangeSize() : null\"\n [style.bottom.%]=\"orientation() === 'vertical' ? rangeOffset() : null\"\n [style.height.%]=\"orientation() === 'vertical' ? rangeSize() : null\"></div>\n\n @for (thumb of thumbs(); track thumb.index) {\n <button\n type=\"button\"\n class=\"ui-slider__thumb\"\n [style.left.%]=\"orientation() === 'horizontal' ? thumb.position : 50\"\n [style.top.%]=\"orientation() === 'horizontal' ? 50 : null\"\n [style.bottom.%]=\"orientation() === 'vertical' ? thumb.position : null\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-label]=\"thumb.label\"\n [attr.aria-labelledby]=\"thumb.label ? null : ariaLabelledby()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-valuemax]=\"thumb.max\"\n [attr.aria-valuemin]=\"thumb.min\"\n [attr.aria-valuenow]=\"thumb.value\"\n [attr.data-index]=\"thumb.index\"\n [attr.data-state]=\"isDisabled() ? 'disabled' : 'active'\"\n [tabIndex]=\"isDisabled() ? -1 : activeThumbIndex() === thumb.index ? 0 : -1\"\n role=\"slider\"\n (focus)=\"onThumbFocus(thumb.index)\"\n (keydown)=\"onThumbKeydown($event, thumb.index)\"\n (pointerdown)=\"onThumbPointerDown($event, thumb.index)\"></button>\n }\n </div>\n `,\n styleUrl: './slider-root.component.css',\n})\nexport class SliderRootComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly document = inject(DOCUMENT);\n private readonly track = viewChild.required<ElementRef<HTMLElement>>('track');\n\n readonly value = input<readonly number[]>([0]);\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly step = input(1, { transform: numberAttribute });\n readonly minStepsBetweenThumbs = input(0, { transform: numberAttribute });\n readonly orientation = input<SliderOrientation>('horizontal');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly thumbLabels = input<readonly string[] | null>(null);\n readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\n readonly ariaDescribedby = input<string | null>(null, { alias: 'aria-describedby' });\n readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });\n readonly class = input<string>('');\n\n readonly valueChange = output<readonly number[]>();\n\n private readonly disabledState = signal(false);\n private readonly valueState = signal<number[]>([0]);\n protected readonly activeThumbIndex = signal(0);\n private readonly draggedThumbIndex = signal<number | null>(null);\n private readonly pointerId = signal<number | null>(null);\n\n private readonly config = computed<SliderConfig>(() => ({\n min: Math.min(this.min(), this.max()),\n max: Math.max(this.min(), this.max()),\n step: this.step() > 0 ? this.step() : 1,\n minStepsBetweenThumbs: Math.max(0, Math.floor(this.minStepsBetweenThumbs())),\n }));\n\n protected readonly isDisabled = computed(() => this.disabled() || this.disabledState());\n protected readonly hostClasses = computed(() =>\n cn(\n 'ui-slider-root relative flex touch-none select-none',\n this.orientation() === 'horizontal' ? 'h-5 w-full items-center' : 'h-32 w-5 justify-center',\n this.isDisabled() ? 'opacity-50' : '',\n this.class(),\n ),\n );\n\n protected readonly thumbs = computed<readonly SliderThumbState[]>(() => {\n const values = this.valueState();\n const config = this.config();\n\n return values.map((value, index) => {\n const bounds = thumbBounds(values, index, config);\n\n return {\n index,\n value,\n position: this.positionPercent(value),\n min: bounds.min,\n max: bounds.max,\n label: this.thumbLabel(index, values.length),\n };\n });\n });\n\n protected readonly rangeOffset = computed(() => {\n const span = this.rangeSpan();\n return span.start;\n });\n\n protected readonly rangeSize = computed(() => {\n const span = this.rangeSpan();\n return span.end - span.start;\n });\n\n private readonly syncExternalValue = effect(() => {\n const normalized = normalizeSliderValues(this.value(), this.config());\n\n untracked(() => {\n if (!sameValues(normalized, this.valueState())) {\n this.valueState.set(normalized);\n }\n\n this.activeThumbIndex.set(clampIndex(this.activeThumbIndex(), normalized.length));\n });\n });\n\n onTrackPointerDown(event: PointerEvent): void {\n if (this.isDisabled() || event.button !== 0) {\n return;\n }\n\n event.preventDefault();\n\n const nextValue = this.valueFromPointer(event);\n if (nextValue == null) {\n return;\n }\n\n const thumbIndex = this.closestThumbIndex(nextValue);\n this.activeThumbIndex.set(thumbIndex);\n this.updateThumbValue(thumbIndex, nextValue);\n this.beginDrag(event, thumbIndex);\n }\n\n onThumbPointerDown(event: PointerEvent, index: number): void {\n if (this.isDisabled() || event.button !== 0) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n\n this.activeThumbIndex.set(index);\n this.beginDrag(event, index);\n }\n\n onWindowPointerMove(event: PointerEvent): void {\n if (this.pointerId() !== event.pointerId) {\n return;\n }\n\n const thumbIndex = this.draggedThumbIndex();\n if (thumbIndex == null) {\n return;\n }\n\n const nextValue = this.valueFromPointer(event);\n if (nextValue == null) {\n return;\n }\n\n event.preventDefault();\n this.updateThumbValue(thumbIndex, nextValue);\n }\n\n onWindowPointerUp(event: PointerEvent): void {\n if (this.pointerId() !== event.pointerId) {\n return;\n }\n\n this.draggedThumbIndex.set(null);\n this.pointerId.set(null);\n }\n\n onThumbFocus(index: number): void {\n this.activeThumbIndex.set(index);\n }\n\n onThumbKeydown(event: KeyboardEvent, index: number): void {\n if (this.isDisabled()) {\n return;\n }\n\n const current = this.valueState()[index];\n const config = this.config();\n const pageStep = config.step * 10;\n const direction = this.resolvedDirection();\n let nextValue: number | null = null;\n\n switch (event.key) {\n case 'ArrowRight':\n nextValue = current + (direction === 'rtl' && this.orientation() === 'horizontal' ? -config.step : config.step);\n break;\n case 'ArrowLeft':\n nextValue = current + (direction === 'rtl' && this.orientation() === 'horizontal' ? config.step : -config.step);\n break;\n case 'ArrowUp':\n nextValue = current + config.step;\n break;\n case 'ArrowDown':\n nextValue = current - config.step;\n break;\n case 'PageUp':\n nextValue = current + pageStep;\n break;\n case 'PageDown':\n nextValue = current - pageStep;\n break;\n case 'Home':\n nextValue = thumbBounds(this.valueState(), index, config).min;\n break;\n case 'End':\n nextValue = thumbBounds(this.valueState(), index, config).max;\n break;\n default:\n return;\n }\n\n event.preventDefault();\n this.activeThumbIndex.set(index);\n this.updateThumbValue(index, nextValue);\n }\n\n private beginDrag(event: PointerEvent, index: number): void {\n this.pointerId.set(event.pointerId);\n this.draggedThumbIndex.set(index);\n this.focusThumb(index);\n }\n\n private updateThumbValue(index: number, rawValue: number): void {\n const current = this.valueState();\n const bounds = thumbBounds(current, index, this.config());\n const nextValues = current.slice();\n\n nextValues[index] = snapWithinBounds(rawValue, bounds.min, bounds.max, this.config());\n\n if (sameValues(nextValues, current)) {\n return;\n }\n\n this.valueState.set(nextValues);\n this.valueChange.emit(nextValues);\n }\n\n private valueFromPointer(event: PointerEvent): number | null {\n const track = this.track().nativeElement;\n const rect = track.getBoundingClientRect();\n const config = this.config();\n\n if (rect.width <= 0 || rect.height <= 0) {\n return null;\n }\n\n let ratio = 0;\n\n if (this.orientation() === 'horizontal') {\n const physicalRatio = clamp((event.clientX - rect.left) / rect.width, 0, 1);\n ratio = this.resolvedDirection() === 'rtl' ? 1 - physicalRatio : physicalRatio;\n } else {\n ratio = clamp((rect.bottom - event.clientY) / rect.height, 0, 1);\n }\n\n return config.min + ratio * (config.max - config.min);\n }\n\n private closestThumbIndex(nextValue: number): number {\n const values = this.valueState();\n let bestIndex = 0;\n let bestDistance = Number.POSITIVE_INFINITY;\n\n values.forEach((value, index) => {\n const distance = Math.abs(value - nextValue);\n if (distance < bestDistance) {\n bestDistance = distance;\n bestIndex = index;\n }\n });\n\n return bestIndex;\n }\n\n private rangeSpan(): { start: number; end: number } {\n const positions = this.valueState().map((value) => this.positionPercent(value));\n\n if (!positions.length) {\n return { start: 0, end: 0 };\n }\n\n if (positions.length === 1) {\n const minBoundary = this.positionPercent(this.config().min);\n return {\n start: Math.min(minBoundary, positions[0]),\n end: Math.max(minBoundary, positions[0]),\n };\n }\n\n return {\n start: Math.min(...positions),\n end: Math.max(...positions),\n };\n }\n\n private positionPercent(value: number): number {\n const config = this.config();\n const range = config.max - config.min;\n\n if (range <= 0) {\n return this.orientation() === 'horizontal' && this.resolvedDirection() === 'rtl' ? 100 : 0;\n }\n\n const logicalRatio = (value - config.min) / range;\n const physicalRatio =\n this.orientation() === 'horizontal' && this.resolvedDirection() === 'rtl' ? 1 - logicalRatio : logicalRatio;\n\n return clamp(physicalRatio * 100, 0, 100);\n }\n\n private thumbLabel(index: number, count: number): string | null {\n const labels = this.thumbLabels();\n\n if (labels?.[index]) {\n return labels[index] ?? null;\n }\n\n if (count === 1) {\n return this.ariaLabel();\n }\n\n return this.ariaLabel() ? `${this.ariaLabel()} ${index + 1}` : `Slider thumb ${index + 1}`;\n }\n\n private focusThumb(index: number): void {\n const thumb = this.host.nativeElement.querySelector<HTMLButtonElement>(`.ui-slider__thumb[data-index=\"${index}\"]`);\n thumb?.focus();\n }\n\n private resolvedDirection(): 'ltr' | 'rtl' {\n const host = this.host.nativeElement;\n\n if (host.dir === 'ltr' || host.dir === 'rtl') {\n return host.dir;\n }\n\n const view = this.document.defaultView;\n if (!view) {\n return 'ltr';\n }\n\n return view.getComputedStyle(host).direction === 'rtl' ? 'rtl' : 'ltr';\n }\n}\n\nfunction clamp(value: number, min: number, max: number): number {\n return Math.min(Math.max(value, min), max);\n}\n\nfunction clampIndex(index: number, length: number): number {\n return clamp(index, 0, Math.max(length - 1, 0));\n}\n\nfunction decimalPlaces(value: number): number {\n const text = `${value}`;\n const fraction = text.split('.')[1];\n return fraction?.length ?? 0;\n}\n\nfunction normalizeSliderValues(values: readonly number[], config: SliderConfig): number[] {\n const incoming = values.length ? [...values] : [config.min];\n const sorted = incoming.map((value) => snapToStep(value, config)).sort((left, right) => left - right);\n const gap = config.step * config.minStepsBetweenThumbs;\n const normalized: number[] = [];\n\n sorted.forEach((value, index) => {\n const remaining = sorted.length - index - 1;\n const min = index === 0 ? config.min : normalized[index - 1] + gap;\n const max = Math.max(min, config.max - remaining * gap);\n normalized.push(snapWithinBounds(value, min, max, config));\n });\n\n return normalized;\n}\n\nfunction sameValues(left: readonly number[], right: readonly number[]): boolean {\n return left.length === right.length && left.every((value, index) => value === right[index]);\n}\n\nfunction snapToStep(value: number, config: SliderConfig): number {\n const ratio = (value - config.min) / config.step;\n const snapped = config.min + Math.round(ratio) * config.step;\n const precision = Math.max(decimalPlaces(config.step), decimalPlaces(config.min));\n return Number(snapped.toFixed(precision));\n}\n\nfunction snapWithinBounds(value: number, min: number, max: number, config: SliderConfig): number {\n const boundedMin = Math.min(min, max);\n const boundedMax = Math.max(min, max);\n const snapped = snapToStep(value, config);\n return clamp(snapped, boundedMin, boundedMax);\n}\n\nfunction thumbBounds(values: readonly number[], index: number, config: SliderConfig): { min: number; max: number } {\n const gap = config.step * config.minStepsBetweenThumbs;\n const min = index === 0 ? config.min : values[index - 1] + gap;\n const max = index === values.length - 1 ? config.max : values[index + 1] - gap;\n return { min: Math.min(min, max), max: Math.max(min, max) };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGA;;;AAGG;MAQU,eAAe,CAAA;AACT,IAAA,EAAE,GAAG,MAAM,CAA+B,UAAU,CAAC;IAC7D,KAAK,GAAG,KAAK,CAAS,EAAE;8EAAC;AAEf,IAAA,OAAO,GAAG,QAAQ,CAAC,MACpC,EAAE,CACA,0DAA0D,EAC1D,4BAA4B,EAC5B,kDAAkD,EAClD,IAAI,CAAC,KAAK,EAAE,CACb;gFACF;IAED,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE;IAC/B;uGAfW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,4QAHhB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,kpCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAA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UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC;IACrC,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC;IACzC,OAAO,KAAK,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,CAAC;AAC/C;AAEA,SAAS,WAAW,CAAC,MAAyB,EAAE,KAAa,EAAE,MAAoB,EAAA;IACjF,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,qBAAqB;IACtD,MAAM,GAAG,GAAG,KAAK,KAAK,CAAC,GAAG,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG;IAC9D,MAAM,GAAG,GAAG,KAAK,KAAK,MAAM,CAAC,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG;IAC9E,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;AAC7D;;ACvcA;;AAEG;;;;"}
@@ -1,60 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { cn } from '@ojiepermana/angular/component/utils';
4
-
5
- class SpinnerComponent {
6
- class = input('', /* @ts-ignore */
7
- ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
8
- decorative = input(false, { ...(ngDevMode ? { debugName: "decorative" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
9
- ariaLabel = input('Loading', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
10
- ariaLabelledby = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
11
- classes = computed(() => cn('inline-flex size-4 shrink-0 items-center justify-center align-middle text-current', this.class()), /* @ts-ignore */
12
- ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
13
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: SpinnerComponent, isStandalone: true, selector: "ui-spinner", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "spinner" }, properties: { "class": "classes()", "attr.role": "decorative() ? null : \"status\"", "attr.aria-hidden": "decorative() ? \"true\" : null", "attr.aria-label": "decorative() || ariaLabelledby() ? null : ariaLabel()", "attr.aria-labelledby": "decorative() ? null : ariaLabelledby()" } }, ngImport: i0, template: `
15
- <svg
16
- aria-hidden="true"
17
- class="size-full animate-spin motion-reduce:animate-none"
18
- viewBox="0 0 24 24"
19
- fill="none"
20
- stroke="currentColor"
21
- stroke-width="2">
22
- <circle cx="12" cy="12" r="9" class="opacity-20" />
23
- <path d="M21 12a9 9 0 0 0-9-9" stroke-linecap="round" />
24
- </svg>
25
- `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: SpinnerComponent, decorators: [{
28
- type: Component,
29
- args: [{
30
- selector: 'ui-spinner',
31
- changeDetection: ChangeDetectionStrategy.OnPush,
32
- host: {
33
- '[class]': 'classes()',
34
- '[attr.role]': 'decorative() ? null : "status"',
35
- '[attr.aria-hidden]': 'decorative() ? "true" : null',
36
- '[attr.aria-label]': 'decorative() || ariaLabelledby() ? null : ariaLabel()',
37
- '[attr.aria-labelledby]': 'decorative() ? null : ariaLabelledby()',
38
- 'data-slot': 'spinner',
39
- },
40
- template: `
41
- <svg
42
- aria-hidden="true"
43
- class="size-full animate-spin motion-reduce:animate-none"
44
- viewBox="0 0 24 24"
45
- fill="none"
46
- stroke="currentColor"
47
- stroke-width="2">
48
- <circle cx="12" cy="12" r="9" class="opacity-20" />
49
- <path d="M21 12a9 9 0 0 0-9-9" stroke-linecap="round" />
50
- </svg>
51
- `,
52
- }]
53
- }], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }] } });
54
-
55
- /**
56
- * Generated bundle index. Do not edit.
57
- */
58
-
59
- export { SpinnerComponent };
60
- //# sourceMappingURL=ojiepermana-angular-component-spinner.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ojiepermana-angular-component-spinner.mjs","sources":["../../../projects/angular/component/spinner/spinner.component.ts","../../../projects/angular/component/spinner/ojiepermana-angular-component-spinner.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@ojiepermana/angular/component/utils';\n\n@Component({\n selector: 'ui-spinner',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.role]': 'decorative() ? null : \"status\"',\n '[attr.aria-hidden]': 'decorative() ? \"true\" : null',\n '[attr.aria-label]': 'decorative() || ariaLabelledby() ? null : ariaLabel()',\n '[attr.aria-labelledby]': 'decorative() ? null : ariaLabelledby()',\n 'data-slot': 'spinner',\n },\n template: `\n <svg\n aria-hidden=\"true\"\n class=\"size-full animate-spin motion-reduce:animate-none\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\">\n <circle cx=\"12\" cy=\"12\" r=\"9\" class=\"opacity-20\" />\n <path d=\"M21 12a9 9 0 0 0-9-9\" stroke-linecap=\"round\" />\n </svg>\n `,\n})\nexport class SpinnerComponent {\n readonly class = input<string>('');\n readonly decorative = input(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string>('Loading', { alias: 'aria-label' });\n readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });\n\n protected readonly classes = computed(() =>\n cn('inline-flex size-4 shrink-0 items-center justify-center align-middle text-current', this.class()),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MA2Ba,gBAAgB,CAAA;IAClB,KAAK,GAAG,KAAK,CAAS,EAAE;8EAAC;IACzB,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAC1D,SAAS,GAAG,KAAK,CAAS,SAAS,iFAAI,KAAK,EAAE,YAAY,EAAA,CAAG;IAC7D,cAAc,GAAG,KAAK,CAAgB,IAAI,sFAAI,KAAK,EAAE,iBAAiB,EAAA,CAAG;AAE/D,IAAA,OAAO,GAAG,QAAQ,CAAC,MACpC,EAAE,CAAC,mFAAmF,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;gFACtG;uGARU,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAA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