@ojiepermana/angular 22.1.10 → 22.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/README.md +32 -26
  2. package/chart/README.md +272 -0
  3. package/component/README.md +89 -0
  4. package/component/accordion/README.md +195 -0
  5. package/component/alert/README.md +184 -0
  6. package/component/alert-dialog/README.md +255 -0
  7. package/component/aspect-ratio/README.md +116 -0
  8. package/component/avatar/README.md +182 -0
  9. package/component/badge/README.md +143 -0
  10. package/component/breadcrumb/README.md +223 -0
  11. package/component/button/README.md +141 -0
  12. package/component/button-group/README.md +214 -0
  13. package/component/calendar/README.md +137 -0
  14. package/component/card/README.md +232 -0
  15. package/component/carousel/README.md +276 -0
  16. package/component/checkbox/README.md +153 -0
  17. package/component/collapsible/README.md +216 -0
  18. package/component/combobox/README.md +202 -0
  19. package/component/command/README.md +287 -0
  20. package/component/composer/README.md +241 -0
  21. package/component/context-menu/README.md +268 -0
  22. package/component/date-picker/README.md +202 -0
  23. package/component/dialog/README.md +276 -0
  24. package/component/drawer/README.md +147 -0
  25. package/component/dropdown-menu/README.md +336 -0
  26. package/component/editor/README.md +152 -0
  27. package/component/empty/README.md +193 -0
  28. package/component/form/README.md +216 -0
  29. package/component/hover-card/README.md +150 -0
  30. package/component/icon/README.md +25 -0
  31. package/component/input/README.md +160 -0
  32. package/component/input-group/README.md +245 -0
  33. package/component/input-otp/README.md +331 -0
  34. package/component/item/README.md +254 -0
  35. package/component/kanban/README.md +81 -0
  36. package/component/kbd/README.md +141 -0
  37. package/component/label/README.md +137 -0
  38. package/component/menubar/README.md +270 -0
  39. package/component/native-select/README.md +176 -0
  40. package/component/navigation-menu/README.md +165 -0
  41. package/component/pagination/README.md +151 -0
  42. package/component/pillbox/README.md +68 -0
  43. package/component/popover/README.md +54 -0
  44. package/component/progress/README.md +160 -0
  45. package/component/radio/README.md +212 -0
  46. package/component/resizable/README.md +178 -0
  47. package/component/scroll-area/README.md +150 -0
  48. package/component/select/README.md +228 -0
  49. package/component/separator/README.md +175 -0
  50. package/component/sheet/README.md +190 -0
  51. package/component/skeleton/README.md +158 -0
  52. package/component/slider/README.md +207 -0
  53. package/component/spinner/README.md +160 -0
  54. package/component/switch/README.md +170 -0
  55. package/component/table/README.md +292 -0
  56. package/component/tabs/README.md +220 -0
  57. package/component/textarea/README.md +169 -0
  58. package/component/timeline/README.md +94 -0
  59. package/component/toast/README.md +173 -0
  60. package/component/toggle/README.md +133 -0
  61. package/component/toggle-group/README.md +234 -0
  62. package/component/tooltip/README.md +230 -0
  63. package/fesm2022/ojiepermana-angular-chart-area.mjs +289 -3
  64. package/fesm2022/ojiepermana-angular-chart-bar.mjs +722 -3
  65. package/fesm2022/ojiepermana-angular-chart-core.mjs +1482 -3
  66. package/fesm2022/ojiepermana-angular-chart-line.mjs +294 -3
  67. package/fesm2022/ojiepermana-angular-chart-pie.mjs +291 -3
  68. package/fesm2022/ojiepermana-angular-chart-primitives.mjs +1301 -3
  69. package/fesm2022/ojiepermana-angular-chart-radar.mjs +421 -3
  70. package/fesm2022/ojiepermana-angular-chart-radial.mjs +295 -3
  71. package/fesm2022/ojiepermana-angular-chart-scatter.mjs +306 -3
  72. package/fesm2022/ojiepermana-angular-chart.mjs +12 -3
  73. package/fesm2022/ojiepermana-angular-component-accordion.mjs +267 -3
  74. package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +359 -3
  75. package/fesm2022/ojiepermana-angular-component-alert.mjs +101 -3
  76. package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +31 -3
  77. package/fesm2022/ojiepermana-angular-component-avatar.mjs +139 -3
  78. package/fesm2022/ojiepermana-angular-component-badge.mjs +57 -3
  79. package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +192 -3
  80. package/fesm2022/ojiepermana-angular-component-button-group.mjs +95 -3
  81. package/fesm2022/ojiepermana-angular-component-button.mjs +73 -3
  82. package/fesm2022/ojiepermana-angular-component-calendar.mjs +718 -3
  83. package/fesm2022/ojiepermana-angular-component-card.mjs +167 -3
  84. package/fesm2022/ojiepermana-angular-component-carousel.mjs +326 -3
  85. package/fesm2022/ojiepermana-angular-component-checkbox.mjs +190 -3
  86. package/fesm2022/ojiepermana-angular-component-collapsible.mjs +117 -3
  87. package/fesm2022/ojiepermana-angular-component-combobox.mjs +327 -3
  88. package/fesm2022/ojiepermana-angular-component-command.mjs +351 -3
  89. package/fesm2022/ojiepermana-angular-component-composer.mjs +359 -3
  90. package/fesm2022/ojiepermana-angular-component-context-menu.mjs +158 -3
  91. package/fesm2022/ojiepermana-angular-component-date-picker.mjs +482 -3
  92. package/fesm2022/ojiepermana-angular-component-dialog.mjs +400 -3
  93. package/fesm2022/ojiepermana-angular-component-drawer.mjs +1 -3
  94. package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +689 -3
  95. package/fesm2022/ojiepermana-angular-component-editor.mjs +511 -3
  96. package/fesm2022/ojiepermana-angular-component-empty.mjs +134 -3
  97. package/fesm2022/ojiepermana-angular-component-form.mjs +438 -3
  98. package/fesm2022/ojiepermana-angular-component-hover-card.mjs +273 -3
  99. package/fesm2022/ojiepermana-angular-component-icon.mjs +139 -3
  100. package/fesm2022/ojiepermana-angular-component-input-group.mjs +176 -3
  101. package/fesm2022/ojiepermana-angular-component-input-otp.mjs +550 -3
  102. package/fesm2022/ojiepermana-angular-component-input.mjs +52 -3
  103. package/fesm2022/ojiepermana-angular-component-item.mjs +264 -3
  104. package/fesm2022/ojiepermana-angular-component-kanban.mjs +310 -3
  105. package/fesm2022/ojiepermana-angular-component-kbd.mjs +48 -3
  106. package/fesm2022/ojiepermana-angular-component-label.mjs +27 -3
  107. package/fesm2022/ojiepermana-angular-component-menubar.mjs +327 -3
  108. package/fesm2022/ojiepermana-angular-component-native-select.mjs +62 -3
  109. package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +378 -3
  110. package/fesm2022/ojiepermana-angular-component-pagination.mjs +238 -3
  111. package/fesm2022/ojiepermana-angular-component-pillbox.mjs +999 -3
  112. package/fesm2022/ojiepermana-angular-component-popover.mjs +201 -3
  113. package/fesm2022/ojiepermana-angular-component-progress.mjs +57 -3
  114. package/fesm2022/ojiepermana-angular-component-radio.mjs +180 -3
  115. package/fesm2022/ojiepermana-angular-component-resizable.mjs +493 -3
  116. package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +51 -3
  117. package/fesm2022/ojiepermana-angular-component-segmented-control.mjs +227 -3
  118. package/fesm2022/ojiepermana-angular-component-select.mjs +609 -3
  119. package/fesm2022/ojiepermana-angular-component-separator.mjs +31 -3
  120. package/fesm2022/ojiepermana-angular-component-sheet.mjs +407 -3
  121. package/fesm2022/ojiepermana-angular-component-skeleton.mjs +25 -3
  122. package/fesm2022/ojiepermana-angular-component-slider.mjs +456 -3
  123. package/fesm2022/ojiepermana-angular-component-spinner.mjs +56 -3
  124. package/fesm2022/ojiepermana-angular-component-switch.mjs +145 -3
  125. package/fesm2022/ojiepermana-angular-component-table.mjs +155 -3
  126. package/fesm2022/ojiepermana-angular-component-tabs.mjs +315 -3
  127. package/fesm2022/ojiepermana-angular-component-textarea.mjs +46 -3
  128. package/fesm2022/ojiepermana-angular-component-timeline.mjs +237 -3
  129. package/fesm2022/ojiepermana-angular-component-toast.mjs +241 -3
  130. package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +290 -3
  131. package/fesm2022/ojiepermana-angular-component-toggle.mjs +76 -3
  132. package/fesm2022/ojiepermana-angular-component-tooltip.mjs +519 -3
  133. package/fesm2022/ojiepermana-angular-component-utils-core.mjs +310 -3
  134. package/fesm2022/ojiepermana-angular-component-utils-overlay.mjs +62 -3
  135. package/fesm2022/ojiepermana-angular-component-utils-scale.mjs +34 -3
  136. package/fesm2022/ojiepermana-angular-component-utils.mjs +3 -2
  137. package/fesm2022/ojiepermana-angular-component.mjs +4 -4
  138. package/fesm2022/ojiepermana-angular-navigation-core.mjs +21 -3
  139. package/fesm2022/ojiepermana-angular-navigation-icon.mjs +20 -3
  140. package/fesm2022/ojiepermana-angular-navigation-navigation-badge-count.component-CDBxQ8rk.mjs +91 -0
  141. package/fesm2022/ojiepermana-angular-navigation-navigation-dockbar-menu.component-DBQHdvGa.mjs +512 -0
  142. package/fesm2022/ojiepermana-angular-navigation-navigation-entry-grid.component-Cd-jh6tg.mjs +623 -0
  143. package/fesm2022/ojiepermana-angular-navigation-navigation-flyout-menu.component-BCGvhoYj.mjs +404 -0
  144. package/fesm2022/ojiepermana-angular-navigation-navigation-horizontal.component-Dk_03e-6.mjs +466 -0
  145. package/fesm2022/ojiepermana-angular-navigation-ojiepermana-angular-navigation-DNKU6viC.mjs +2642 -0
  146. package/fesm2022/ojiepermana-angular-navigation-service.mjs +725 -3
  147. package/fesm2022/ojiepermana-angular-navigation-types.mjs +65 -4
  148. package/fesm2022/ojiepermana-angular-navigation.mjs +4 -10
  149. package/fesm2022/ojiepermana-angular-sdk.mjs +204 -4
  150. package/fesm2022/ojiepermana-angular-theme-component-settings.mjs +1387 -3
  151. package/fesm2022/ojiepermana-angular-theme-layout-services.mjs +331 -3
  152. package/fesm2022/ojiepermana-angular-theme-layout-types.mjs +45 -4
  153. package/fesm2022/ojiepermana-angular-theme-layout-wrapper.mjs +1044 -3
  154. package/fesm2022/ojiepermana-angular-theme-layout.mjs +729 -3
  155. package/fesm2022/ojiepermana-angular-theme-page-core.mjs +381 -3
  156. package/fesm2022/ojiepermana-angular-theme-page-filter.mjs +267 -3
  157. package/fesm2022/ojiepermana-angular-theme-page-root.mjs +361 -3
  158. package/fesm2022/ojiepermana-angular-theme-page-side.mjs +198 -3
  159. package/fesm2022/ojiepermana-angular-theme-page-slots.mjs +110 -3
  160. package/fesm2022/ojiepermana-angular-theme-page.mjs +7 -2
  161. package/fesm2022/ojiepermana-angular-theme-shell-services.mjs +338 -3
  162. package/fesm2022/ojiepermana-angular-theme-shell-types.mjs +160 -4
  163. package/fesm2022/ojiepermana-angular-theme-shell.mjs +811 -3
  164. package/fesm2022/ojiepermana-angular-theme-styles.mjs +783 -3
  165. package/fesm2022/ojiepermana-angular-theme.mjs +4 -4
  166. package/fesm2022/ojiepermana-angular.mjs +6 -11
  167. package/navigation/README.md +374 -0
  168. package/package.json +81 -20
  169. package/sdk/README.md +212 -0
  170. package/sdk/schematics/collection.json +20 -0
  171. package/sdk/schematics/init/index.js +83 -0
  172. package/sdk/schematics/init/schema.json +19 -0
  173. package/sdk/schematics/ng-add/index.js +147 -0
  174. package/sdk/schematics/ng-add/schema.json +14 -0
  175. package/sdk/schematics/package.json +3 -0
  176. package/sdk/schematics/sdk/index.js +175 -0
  177. package/sdk/schematics/sdk/schema.json +19 -0
  178. package/sdk/sdk.config.example.json +24 -0
  179. package/sdk/src/config/loader.js +43 -0
  180. package/sdk/src/config/schema.js +59 -0
  181. package/sdk/src/emit/client.js +251 -0
  182. package/sdk/src/emit/metadata.js +310 -0
  183. package/sdk/src/emit/models.js +104 -0
  184. package/sdk/src/emit/navigation.js +56 -0
  185. package/sdk/src/emit/operations.js +118 -0
  186. package/sdk/src/emit/public-api.js +54 -0
  187. package/sdk/src/emit/services.js +110 -0
  188. package/sdk/src/engine.js +67 -0
  189. package/sdk/src/layout/per-domain.js +360 -0
  190. package/sdk/src/package.json +3 -0
  191. package/sdk/src/parser/bundle.js +25 -0
  192. package/sdk/src/parser/ir.js +429 -0
  193. package/sdk/src/parser/types.js +7 -0
  194. package/sdk/src/render/template.js +152 -0
  195. package/sdk/src/writer/index.js +286 -0
  196. package/theme/README.md +126 -0
  197. package/theme/component/settings/README.md +135 -0
  198. package/theme/layout/README.md +539 -0
  199. package/theme/page/README.md +453 -0
  200. package/theme/shell/README.md +340 -0
  201. package/theme/styles/README.md +178 -0
  202. package/theme/styles/css/base/components.css +553 -0
  203. package/theme/styles/css/base/index.css +14 -0
  204. package/theme/styles/css/base/package.css +9 -0
  205. package/theme/styles/css/base/prefers-dark.css +86 -0
  206. package/theme/styles/css/base/print.css +62 -0
  207. package/theme/styles/css/base/status.css +38 -0
  208. package/theme/styles/css/base/tailwind.css +165 -0
  209. package/theme/styles/css/base/theme.css +373 -0
  210. package/theme/styles/css/base/tokens.css +361 -0
  211. package/theme/styles/css/color/amber.css +72 -0
  212. package/theme/styles/css/color/blue.css +72 -0
  213. package/theme/styles/css/color/brand.css +38 -0
  214. package/theme/styles/css/color/cyan.css +72 -0
  215. package/theme/styles/css/color/emerald.css +72 -0
  216. package/theme/styles/css/color/fuchsia.css +72 -0
  217. package/theme/styles/css/color/green.css +72 -0
  218. package/theme/styles/css/color/index.css +19 -0
  219. package/theme/styles/css/color/indigo.css +72 -0
  220. package/theme/styles/css/color/lime.css +72 -0
  221. package/theme/styles/css/color/orange.css +72 -0
  222. package/theme/styles/css/color/pink.css +72 -0
  223. package/theme/styles/css/color/purple.css +72 -0
  224. package/theme/styles/css/color/red.css +72 -0
  225. package/theme/styles/css/color/rose.css +72 -0
  226. package/theme/styles/css/color/sky.css +72 -0
  227. package/theme/styles/css/color/teal.css +72 -0
  228. package/theme/styles/css/color/violet.css +72 -0
  229. package/theme/styles/css/color/yellow.css +72 -0
  230. package/theme/styles/css/index.css +18 -0
  231. package/theme/styles/css/neutral/gray.css +63 -0
  232. package/theme/styles/css/neutral/index.css +11 -0
  233. package/theme/styles/css/neutral/mauve.css +63 -0
  234. package/theme/styles/css/neutral/mist.css +63 -0
  235. package/theme/styles/css/neutral/neutral.css +63 -0
  236. package/theme/styles/css/neutral/olive.css +63 -0
  237. package/theme/styles/css/neutral/slate.css +63 -0
  238. package/theme/styles/css/neutral/stone.css +63 -0
  239. package/theme/styles/css/neutral/taupe.css +63 -0
  240. package/theme/styles/css/neutral/zinc.css +63 -0
  241. package/theme/styles/css/radius/index.css +30 -0
  242. package/theme/styles/css/space/index.css +20 -0
  243. package/types/ojiepermana-angular-chart-area.d.ts +76 -1
  244. package/types/ojiepermana-angular-chart-bar.d.ts +201 -1
  245. package/types/ojiepermana-angular-chart-core.d.ts +811 -1
  246. package/types/ojiepermana-angular-chart-line.d.ts +75 -1
  247. package/types/ojiepermana-angular-chart-pie.d.ts +131 -1
  248. package/types/ojiepermana-angular-chart-primitives.d.ts +291 -1
  249. package/types/ojiepermana-angular-chart-radar.d.ts +116 -1
  250. package/types/ojiepermana-angular-chart-radial.d.ts +116 -1
  251. package/types/ojiepermana-angular-chart-scatter.d.ts +125 -1
  252. package/types/ojiepermana-angular-chart.d.ts +2 -1
  253. package/types/ojiepermana-angular-component-accordion.d.ts +85 -1
  254. package/types/ojiepermana-angular-component-alert-dialog.d.ts +140 -1
  255. package/types/ojiepermana-angular-component-alert.d.ts +42 -1
  256. package/types/ojiepermana-angular-component-aspect-ratio.d.ts +12 -1
  257. package/types/ojiepermana-angular-component-avatar.d.ts +56 -1
  258. package/types/ojiepermana-angular-component-badge.d.ts +24 -1
  259. package/types/ojiepermana-angular-component-breadcrumb.d.ts +46 -1
  260. package/types/ojiepermana-angular-component-button-group.d.ts +26 -1
  261. package/types/ojiepermana-angular-component-button.d.ts +27 -1
  262. package/types/ojiepermana-angular-component-calendar.d.ts +111 -1
  263. package/types/ojiepermana-angular-component-card.d.ts +69 -1
  264. package/types/ojiepermana-angular-component-carousel.d.ts +86 -1
  265. package/types/ojiepermana-angular-component-checkbox.d.ts +42 -1
  266. package/types/ojiepermana-angular-component-collapsible.d.ts +42 -1
  267. package/types/ojiepermana-angular-component-combobox.d.ts +60 -1
  268. package/types/ojiepermana-angular-component-command.d.ts +130 -1
  269. package/types/ojiepermana-angular-component-composer.d.ts +90 -1
  270. package/types/ojiepermana-angular-component-context-menu.d.ts +54 -1
  271. package/types/ojiepermana-angular-component-date-picker.d.ts +109 -1
  272. package/types/ojiepermana-angular-component-dialog.d.ts +136 -1
  273. package/types/ojiepermana-angular-component-drawer.d.ts +1 -1
  274. package/types/ojiepermana-angular-component-dropdown-menu.d.ts +248 -1
  275. package/types/ojiepermana-angular-component-editor.d.ts +135 -1
  276. package/types/ojiepermana-angular-component-empty.d.ts +50 -1
  277. package/types/ojiepermana-angular-component-form.d.ts +159 -1
  278. package/types/ojiepermana-angular-component-hover-card.d.ts +75 -1
  279. package/types/ojiepermana-angular-component-icon.d.ts +89 -1
  280. package/types/ojiepermana-angular-component-input-group.d.ts +51 -1
  281. package/types/ojiepermana-angular-component-input-otp.d.ts +155 -1
  282. package/types/ojiepermana-angular-component-input.d.ts +21 -1
  283. package/types/ojiepermana-angular-component-item.d.ts +93 -1
  284. package/types/ojiepermana-angular-component-kanban.d.ts +70 -1
  285. package/types/ojiepermana-angular-component-kbd.d.ts +16 -1
  286. package/types/ojiepermana-angular-component-label.d.ts +11 -1
  287. package/types/ojiepermana-angular-component-menubar.d.ts +93 -1
  288. package/types/ojiepermana-angular-component-native-select.d.ts +26 -1
  289. package/types/ojiepermana-angular-component-navigation-menu.d.ts +104 -1
  290. package/types/ojiepermana-angular-component-pagination.d.ts +33 -1
  291. package/types/ojiepermana-angular-component-pillbox.d.ts +222 -1
  292. package/types/ojiepermana-angular-component-popover.d.ts +66 -1
  293. package/types/ojiepermana-angular-component-progress.d.ts +17 -1
  294. package/types/ojiepermana-angular-component-radio.d.ts +60 -1
  295. package/types/ojiepermana-angular-component-resizable.d.ts +117 -1
  296. package/types/ojiepermana-angular-component-scroll-area.d.ts +19 -1
  297. package/types/ojiepermana-angular-component-segmented-control.d.ts +58 -1
  298. package/types/ojiepermana-angular-component-select.d.ts +122 -1
  299. package/types/ojiepermana-angular-component-separator.d.ts +14 -1
  300. package/types/ojiepermana-angular-component-sheet.d.ts +130 -1
  301. package/types/ojiepermana-angular-component-skeleton.d.ts +10 -1
  302. package/types/ojiepermana-angular-component-slider.d.ts +83 -1
  303. package/types/ojiepermana-angular-component-spinner.d.ts +13 -1
  304. package/types/ojiepermana-angular-component-switch.d.ts +44 -1
  305. package/types/ojiepermana-angular-component-table.d.ts +57 -1
  306. package/types/ojiepermana-angular-component-tabs.d.ts +124 -1
  307. package/types/ojiepermana-angular-component-textarea.d.ts +17 -1
  308. package/types/ojiepermana-angular-component-timeline.d.ts +64 -1
  309. package/types/ojiepermana-angular-component-toast.d.ts +64 -1
  310. package/types/ojiepermana-angular-component-toggle-group.d.ts +90 -1
  311. package/types/ojiepermana-angular-component-toggle.d.ts +25 -1
  312. package/types/ojiepermana-angular-component-tooltip.d.ts +143 -1
  313. package/types/ojiepermana-angular-component-utils-core.d.ts +184 -1
  314. package/types/ojiepermana-angular-component-utils-overlay.d.ts +21 -1
  315. package/types/ojiepermana-angular-component-utils-scale.d.ts +19 -1
  316. package/types/ojiepermana-angular-component-utils.d.ts +2 -1
  317. package/types/ojiepermana-angular-component.d.ts +2 -1
  318. package/types/ojiepermana-angular-navigation-core.d.ts +59 -1
  319. package/types/ojiepermana-angular-navigation-icon.d.ts +12 -1
  320. package/types/ojiepermana-angular-navigation-service.d.ts +116 -1
  321. package/types/ojiepermana-angular-navigation-types.d.ts +144 -1
  322. package/types/ojiepermana-angular-navigation.d.ts +507 -1
  323. package/types/ojiepermana-angular-sdk.d.ts +89 -1
  324. package/types/ojiepermana-angular-theme-component-settings.d.ts +154 -1
  325. package/types/ojiepermana-angular-theme-layout-services.d.ts +147 -1
  326. package/types/ojiepermana-angular-theme-layout-types.d.ts +40 -1
  327. package/types/ojiepermana-angular-theme-layout-wrapper.d.ts +299 -1
  328. package/types/ojiepermana-angular-theme-layout.d.ts +129 -1
  329. package/types/ojiepermana-angular-theme-page-core.d.ts +157 -1
  330. package/types/ojiepermana-angular-theme-page-filter.d.ts +77 -1
  331. package/types/ojiepermana-angular-theme-page-root.d.ts +88 -1
  332. package/types/ojiepermana-angular-theme-page-side.d.ts +50 -1
  333. package/types/ojiepermana-angular-theme-page-slots.d.ts +40 -1
  334. package/types/ojiepermana-angular-theme-page.d.ts +5 -1
  335. package/types/ojiepermana-angular-theme-shell-services.d.ts +193 -1
  336. package/types/ojiepermana-angular-theme-shell-types.d.ts +105 -1
  337. package/types/ojiepermana-angular-theme-shell.d.ts +100 -1
  338. package/types/ojiepermana-angular-theme-styles.d.ts +319 -1
  339. package/types/ojiepermana-angular-theme.d.ts +2 -1
  340. package/types/ojiepermana-angular.d.ts +5 -5
@@ -0,0 +1,175 @@
1
+ # Separator
2
+
3
+ Visually or semantically separates content. Use Separator for subtle section
4
+ breaks, split navigation rows, compact menu metadata, and stacked definition
5
+ lists.
6
+
7
+ ## Import
8
+
9
+ ```ts
10
+ import { SeparatorComponent } from '@ojiepermana/angular/component/separator';
11
+ ```
12
+
13
+ ## Basic usage
14
+
15
+ Use the default separator for purely visual breaks. When the divider carries
16
+ structure that assistive technology should announce, set
17
+ `[decorative]="false"`.
18
+
19
+ ```html
20
+ <Separator class="my-4" /> <Separator [decorative]="false" class="my-4" />
21
+ ```
22
+
23
+ ## Common patterns
24
+
25
+ ### Preview card
26
+
27
+ This mirrors the upstream shadcn hero example: title block, separator, then the
28
+ supporting description.
29
+
30
+ ```html
31
+ <div
32
+ class="flex w-full max-w-sm flex-col gap-4 rounded-xl border border-border bg-card/40 p-5 text-sm"
33
+ >
34
+ <div class="flex flex-col gap-1.5">
35
+ <div class="leading-none font-medium">shadcn/ui</div>
36
+ <div class="text-muted-foreground">The Foundation for your Design System</div>
37
+ </div>
38
+ <Separator />
39
+ <div class="text-muted-foreground">
40
+ A set of beautifully designed components that you can customize, extend, and build on.
41
+ </div>
42
+ </div>
43
+ ```
44
+
45
+ ### Vertical row
46
+
47
+ Use `orientation="vertical"` when the separator sits inside a horizontal flex
48
+ row. Give the host an explicit height, or inherit it from a parent with defined
49
+ cross-axis size.
50
+
51
+ ```html
52
+ <div class="flex h-5 items-center gap-4 text-sm">
53
+ <div>Blog</div>
54
+ <Separator orientation="vertical" class="h-5" />
55
+ <div>Docs</div>
56
+ <Separator orientation="vertical" class="h-5" />
57
+ <div>Source</div>
58
+ </div>
59
+ ```
60
+
61
+ ### Menu metadata
62
+
63
+ Vertical separators work well between compact description groups.
64
+
65
+ ```html
66
+ <div class="flex w-full max-w-2xl items-center gap-2 text-sm md:gap-4">
67
+ <div class="flex flex-col gap-1">
68
+ <span class="font-medium">Settings</span>
69
+ <span class="text-xs text-muted-foreground">Manage preferences</span>
70
+ </div>
71
+ <Separator orientation="vertical" class="h-10" />
72
+ <div class="flex flex-col gap-1">
73
+ <span class="font-medium">Account</span>
74
+ <span class="text-xs text-muted-foreground">Profile &amp; security</span>
75
+ </div>
76
+ <Separator orientation="vertical" class="hidden h-10 md:block" />
77
+ <div class="hidden flex-col gap-1 md:flex">
78
+ <span class="font-medium">Help</span>
79
+ <span class="text-xs text-muted-foreground">Support &amp; docs</span>
80
+ </div>
81
+ </div>
82
+ ```
83
+
84
+ ### List rows
85
+
86
+ Horizontal separators are the lightest-weight way to split dense stacked rows.
87
+
88
+ ```html
89
+ <div class="flex w-full max-w-sm flex-col gap-2 text-sm">
90
+ <dl class="flex items-center justify-between gap-4">
91
+ <dt class="font-medium">Item 1</dt>
92
+ <dd class="text-muted-foreground">Value 1</dd>
93
+ </dl>
94
+ <Separator />
95
+ <dl class="flex items-center justify-between gap-4">
96
+ <dt class="font-medium">Item 2</dt>
97
+ <dd class="text-muted-foreground">Value 2</dd>
98
+ </dl>
99
+ <Separator />
100
+ <dl class="flex items-center justify-between gap-4">
101
+ <dt class="font-medium">Item 3</dt>
102
+ <dd class="text-muted-foreground">Value 3</dd>
103
+ </dl>
104
+ </div>
105
+ ```
106
+
107
+ ### RTL
108
+
109
+ The separator itself does not need an RTL-specific API. Set `dir="rtl"` on the
110
+ surrounding container and translate neighboring content.
111
+
112
+ ```html
113
+ <section
114
+ dir="rtl"
115
+ lang="ar"
116
+ class="flex w-full max-w-sm flex-col gap-4 rounded-xl border border-border bg-card/40 p-5 text-right text-sm"
117
+ >
118
+ <div class="flex flex-col gap-1.5">
119
+ <div class="leading-none font-medium">shadcn/ui</div>
120
+ <div class="text-muted-foreground">الأساس لنظام التصميم الخاص بك</div>
121
+ </div>
122
+ <Separator />
123
+ <div class="text-muted-foreground">
124
+ مجموعة من المكونات المصممة بشكل جميل يمكنك تخصيصها وتوسيعها والبناء عليها.
125
+ </div>
126
+ </section>
127
+ ```
128
+
129
+ ## API reference
130
+
131
+ | Input | Type | Default | Description |
132
+ | ------------- | ---------------------------- | -------------- | -------------------------------------------------------------- |
133
+ | `orientation` | `'horizontal' \| 'vertical'` | `'horizontal'` | Axis of the divider. |
134
+ | `decorative` | `boolean` | `true` | When `false`, sets `role="separator"` plus `aria-orientation`. |
135
+ | `class` | `string` | `''` | Width, height, spacing, and visibility utilities. |
136
+
137
+ Native host attributes such as `dir`, `data-*`, and `id` still pass through to
138
+ the custom element host.
139
+
140
+ ## Styling and theming
141
+
142
+ Tokens consumed:
143
+
144
+ - `bg-border` for the rule itself.
145
+
146
+ Horizontal mode applies `h-px w-full`. Vertical mode applies `h-full w-px`.
147
+ The host renders as a block-level custom element so width and height utilities
148
+ behave predictably on the separator itself.
149
+
150
+ ## Accessibility
151
+
152
+ - Separators are decorative by default and render with `role="none"`.
153
+ - When the divider carries structure, set `[decorative]="false"` so assistive
154
+ technology sees a real `separator` with the correct `aria-orientation`.
155
+ - Keep accessible names on the surrounding content; separators themselves do not
156
+ require labels.
157
+
158
+ ## Keyboard interactions
159
+
160
+ Separator is not interactive and has no keyboard behavior of its own.
161
+
162
+ ## Angular notes
163
+
164
+ - Because `Separator` is a custom element, vertical examples need a height
165
+ source from the parent or the host `class` input.
166
+ - The block-level host class is intentional. It ensures horizontal separators
167
+ honor `w-full` and other layout utilities that would otherwise be unreliable
168
+ on an inline custom element.
169
+
170
+ ## Source parity
171
+
172
+ This Angular implementation follows the shadcn separator preview plus the
173
+ vertical, menu, list, and RTL examples. It adds Angular-specific guidance for
174
+ semantic separators and for the custom-element host layout behavior needed to
175
+ match the upstream visuals.
@@ -0,0 +1,190 @@
1
+ # Sheet
2
+
3
+ Edge-anchored overlay surface that extends Dialog into a side panel. The Sheet slides in from the top, right, bottom, or left edge of the viewport and is backed by CDK Overlay plus FocusTrap.
4
+
5
+ ## Import
6
+
7
+ ```ts
8
+ import {
9
+ SheetCloseDirective,
10
+ SheetComponent,
11
+ SheetContentComponent,
12
+ SheetDescriptionComponent,
13
+ SheetFooterComponent,
14
+ SheetHeaderComponent,
15
+ SheetTitleComponent,
16
+ } from '@ojiepermana/angular/component/sheet';
17
+ ```
18
+
19
+ ## Composition
20
+
21
+ ```text
22
+ button[Button] (external trigger; sets the open signal)
23
+ Sheet
24
+ ├── built-in close button (optional)
25
+ ├── SheetHeader
26
+ │ ├── SheetTitle
27
+ │ └── SheetDescription
28
+ ├── SheetContent (optional body / scroll region)
29
+ └── SheetFooter
30
+ └── button[SheetClose] (optional custom close action)
31
+ ```
32
+
33
+ The Angular surface intentionally keeps the trigger outside the overlay component. Instead of a JSX-style `SheetTrigger`, you open the sheet by setting the bound `open` signal from a regular button or link.
34
+
35
+ ## Basic Usage
36
+
37
+ ```ts
38
+ import { signal } from '@angular/core';
39
+ ```
40
+
41
+ ```html
42
+ <button type="button" Button variant="outline" (click)="open.set(true)">Edit profile</button>
43
+
44
+ <Sheet
45
+ [(open)]="open"
46
+ aria-labelledby="sheet-title"
47
+ aria-describedby="sheet-description"
48
+ class="sm:max-w-md"
49
+ >
50
+ <SheetHeader>
51
+ <SheetTitle id="sheet-title">Edit profile</SheetTitle>
52
+ <SheetDescription id="sheet-description">
53
+ Make changes to your profile here. Click save when you are done.
54
+ </SheetDescription>
55
+ </SheetHeader>
56
+
57
+ <SheetContent class="grid gap-4 py-4">
58
+ <div class="grid gap-2">
59
+ <label Label for="sheet-name">Name</label>
60
+ <input Input id="sheet-name" value="Pedro Duarte" />
61
+ </div>
62
+ <div class="grid gap-2">
63
+ <label Label for="sheet-username">Username</label>
64
+ <input Input id="sheet-username" value="@peduarte" />
65
+ </div>
66
+ </SheetContent>
67
+
68
+ <SheetFooter>
69
+ <button type="button" Button variant="outline" SheetClose>Cancel</button>
70
+ <button type="button" Button (click)="open.set(false)">Save changes</button>
71
+ </SheetFooter>
72
+ </Sheet>
73
+ ```
74
+
75
+ ## Common Patterns
76
+
77
+ ### Side selection
78
+
79
+ Use `side` to choose where the surface enters from. Right is the default for `Sheet`, while the `Drawer` alias defaults to bottom.
80
+
81
+ ```html
82
+ <button type="button" Button variant="outline" (click)="rightOpen.set(true)">Right</button>
83
+ <button type="button" Button variant="outline" (click)="leftOpen.set(true)">Left</button>
84
+
85
+ <Sheet [(open)]="rightOpen" side="right" class="sm:max-w-md">...</Sheet>
86
+ <Sheet [(open)]="leftOpen" side="left" class="sm:max-w-md">...</Sheet>
87
+ ```
88
+
89
+ For `top` and `bottom`, add a height constraint such as `class="max-h-[55vh]"` when the body content can grow on shorter screens.
90
+
91
+ ### No close button
92
+
93
+ Hide the default corner close affordance with `[showCloseButton]="false"` and own dismissal explicitly through the footer or body.
94
+
95
+ ```html
96
+ <Sheet [(open)]="noCloseOpen" [showCloseButton]="false" class="sm:max-w-sm">
97
+ <SheetHeader>
98
+ <SheetTitle>No Close Button</SheetTitle>
99
+ <SheetDescription>
100
+ Hide the top-right control when dismissal should stay in the footer.
101
+ </SheetDescription>
102
+ </SheetHeader>
103
+
104
+ <SheetFooter class="sm:justify-start">
105
+ <button type="button" Button variant="outline" SheetClose>Close</button>
106
+ </SheetFooter>
107
+ </Sheet>
108
+ ```
109
+
110
+ ### RTL
111
+
112
+ Because the overlay surface renders through CDK Overlay, set `dir="rtl"` on projected content inside the sheet when the direction should be scoped to the open panel.
113
+
114
+ ```html
115
+ <Sheet [(open)]="rtlOpen" [showCloseButton]="false" side="left" class="sm:max-w-md">
116
+ <div dir="rtl" lang="ar" class="flex flex-1 flex-col gap-4 text-right">
117
+ <SheetHeader>
118
+ <SheetTitle>تعديل الملف الشخصي</SheetTitle>
119
+ <SheetDescription>قم بإجراء تغييرات على ملفك الشخصي هنا ثم احفظها.</SheetDescription>
120
+ </SheetHeader>
121
+
122
+ <SheetContent class="grid gap-4 py-4">
123
+ <div class="grid gap-2">
124
+ <label Label for="sheet-rtl-name">الاسم</label>
125
+ <input Input id="sheet-rtl-name" value="بيدرو دوارتي" />
126
+ </div>
127
+ </SheetContent>
128
+
129
+ <SheetFooter class="sm:justify-start">
130
+ <button type="button" Button variant="outline" SheetClose>إغلاق</button>
131
+ <button type="button" Button (click)="rtlOpen.set(false)">حفظ التغييرات</button>
132
+ </SheetFooter>
133
+ </div>
134
+ </Sheet>
135
+ ```
136
+
137
+ ## API Reference
138
+
139
+ | Input | Type | Default |
140
+ | ---------------------- | ---------------------------------------- | ---------------------------------------------- |
141
+ | `open` | `boolean` model | `false` |
142
+ | `side` | `'top' \| 'right' \| 'bottom' \| 'left'` | `'right'` for `Sheet`, `'bottom'` for `Drawer` |
143
+ | `closeOnEscape` | `boolean` | `true` |
144
+ | `closeOnBackdropClick` | `boolean` | `true` |
145
+ | `showCloseButton` | `boolean` | `true` |
146
+ | `closeButtonLabel` | `string` | `'Close'` |
147
+ | `aria-labelledby` | `string \| null` | `null` |
148
+ | `aria-describedby` | `string \| null` | `null` |
149
+ | `class` | `string` | `''` |
150
+
151
+ | Part | Purpose |
152
+ | -------------------- | -------------------------------------------------------------- |
153
+ | `SheetHeader` | Title and supporting description wrapper |
154
+ | `SheetTitle` | Visible, accessible sheet title |
155
+ | `SheetDescription` | Supporting copy that can be referenced from `aria-describedby` |
156
+ | `SheetContent` | Optional body wrapper for forms, spacing, and scroll regions |
157
+ | `SheetFooter` | Action row for primary and secondary controls |
158
+ | `button[SheetClose]` | Angular-friendly equivalent of shadcn `SheetClose` |
159
+
160
+ ## Styling And Theming
161
+
162
+ - The surface uses theme border tokens such as `border-border` on its edge divider so it stays aligned with the current theme.
163
+ - Left and right sheets default to `w-3/4 sm:max-w-sm`; add width utilities through the `class` input when a broader side panel is needed.
164
+ - Top and bottom sheets stretch across the viewport edge. Use `max-h-*` or spacing utilities on the root `class` input when the body can grow.
165
+ - `SheetContent` is the best place for internal scroll handling. Keep footer actions outside that overflow region when they must stay visible.
166
+ - Entry animation comes from `--sheet-from` and automatically collapses to zero duration under `prefers-reduced-motion`.
167
+
168
+ ## Accessibility
169
+
170
+ - The surface renders with `role="dialog"` and `aria-modal="true"`.
171
+ - Focus is trapped with `FocusTrap` and restored to the previously focused element on close.
172
+ - `Escape` and backdrop click close the sheet by default and can be disabled independently.
173
+ - Use stable IDs for the visible title and description when the sheet contains forms or longer instructional copy.
174
+
175
+ ## Keyboard Interactions
176
+
177
+ - `Tab` and `Shift+Tab` move focus within the trapped overlay.
178
+ - `Escape` closes the sheet unless `closeOnEscape` is disabled.
179
+ - `Enter` and `Space` activate the trigger, footer actions, and custom `SheetClose` controls through native button behavior.
180
+
181
+ ## Angular Notes
182
+
183
+ - `Sheet` combines the upstream `Sheet` root and `SheetContent` overlay surface into a single Angular component.
184
+ - `SheetContent` remains available as an internal body wrapper for layout, padding, and scroll regions.
185
+ - `Drawer` is exported as a bottom-first alias over the same primitive when the interaction reads more naturally as a drawer.
186
+ - `button[SheetClose]` and `a[SheetClose]` are the Angular-friendly equivalents of shadcn `SheetClose` for internal dismissal actions.
187
+
188
+ ## Source Parity
189
+
190
+ The local Sheet follows the shadcn component information architecture and behavior, but translates trigger ownership to an external signal instead of a `SheetTrigger` child component. Lower-level dialog semantics and API expectations still map closely to the Radix Dialog reference at https://www.radix-ui.com/primitives/docs/components/dialog#api-reference.
@@ -0,0 +1,158 @@
1
+ # Skeleton
2
+
3
+ Use Skeleton to show low-contrast placeholders while content is loading.
4
+
5
+ The component mirrors shadcn/ui's Skeleton primitive: it supplies the pulsing muted surface, while dimensions, shape, and layout are provided by utility classes at the call site.
6
+
7
+ ## Import
8
+
9
+ ```ts
10
+ import { SkeletonComponent } from '@ojiepermana/angular/component/skeleton';
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ Give each skeleton an explicit width, height, and optional radius. Without dimensions, the element exists in the DOM but will not create a visible placeholder.
16
+
17
+ ```html
18
+ <Skeleton class="h-5 w-25 rounded-full" />
19
+ ```
20
+
21
+ ```html
22
+ <div class="flex items-center gap-4">
23
+ <Skeleton class="h-12 w-12 rounded-full" />
24
+ <div class="space-y-2">
25
+ <Skeleton class="h-4 w-62.5" />
26
+ <Skeleton class="h-4 w-50" />
27
+ </div>
28
+ </div>
29
+ ```
30
+
31
+ ## Common patterns
32
+
33
+ ### Avatar
34
+
35
+ Use a round placeholder and two lines when loading profile identity, assignee, or author metadata.
36
+
37
+ ```html
38
+ <div class="flex w-fit items-center gap-4">
39
+ <Skeleton class="size-10 shrink-0 rounded-full" />
40
+ <div class="grid gap-2">
41
+ <Skeleton class="h-4 w-37.5" />
42
+ <Skeleton class="h-4 w-25" />
43
+ </div>
44
+ </div>
45
+ ```
46
+
47
+ ### Card
48
+
49
+ Skeleton composes inside `Card` parts. Match the final loaded geometry to avoid layout shift.
50
+
51
+ ```html
52
+ <Card class="w-full max-w-xs">
53
+ <CardHeader>
54
+ <div class="col-span-2 grid gap-2">
55
+ <Skeleton class="h-4 w-2/3" />
56
+ <Skeleton class="h-4 w-1/2" />
57
+ </div>
58
+ </CardHeader>
59
+ <CardContent>
60
+ <Skeleton class="aspect-video w-full" />
61
+ </CardContent>
62
+ </Card>
63
+ ```
64
+
65
+ ### Text
66
+
67
+ Use repeated bars and shorten the final line for paragraph rhythm.
68
+
69
+ ```html
70
+ <div class="flex w-full max-w-xs flex-col gap-2">
71
+ <Skeleton class="h-4 w-full" />
72
+ <Skeleton class="h-4 w-full" />
73
+ <Skeleton class="h-4 w-3/4" />
74
+ </div>
75
+ ```
76
+
77
+ ### Form
78
+
79
+ Pair short label placeholders with wider control placeholders when loading form metadata.
80
+
81
+ ```html
82
+ <div class="flex w-full max-w-xs flex-col gap-7">
83
+ <div class="flex flex-col gap-3">
84
+ <Skeleton class="h-4 w-20" />
85
+ <Skeleton class="h-8 w-full" />
86
+ </div>
87
+ <div class="flex flex-col gap-3">
88
+ <Skeleton class="h-4 w-24" />
89
+ <Skeleton class="h-8 w-full" />
90
+ </div>
91
+ <Skeleton class="h-8 w-24" />
92
+ </div>
93
+ ```
94
+
95
+ ### Table
96
+
97
+ Repeat rows with matching column proportions so tabular data keeps a stable footprint while loading.
98
+
99
+ ```html
100
+ <div class="flex w-full max-w-sm flex-col gap-2">
101
+ @for (row of tableRows; track row) {
102
+ <div class="flex gap-4">
103
+ <Skeleton class="h-4 flex-1" />
104
+ <Skeleton class="h-4 w-24" />
105
+ <Skeleton class="h-4 w-20" />
106
+ </div>
107
+ }
108
+ </div>
109
+ ```
110
+
111
+ ### RTL
112
+
113
+ Skeleton is direction-agnostic. Put `dir="rtl"` on the wrapper when the placeholder should reserve right-to-left layout space.
114
+
115
+ ```html
116
+ <div dir="rtl" lang="ar" class="flex items-center gap-4">
117
+ <Skeleton class="h-12 w-12 rounded-full" />
118
+ <div class="space-y-2">
119
+ <Skeleton class="h-4 w-62.5" />
120
+ <Skeleton class="h-4 w-50" />
121
+ </div>
122
+ </div>
123
+ ```
124
+
125
+ ## API reference
126
+
127
+ ### `SkeletonComponent`
128
+
129
+ | Input | Type | Default | Description |
130
+ | ------- | -------- | ------- | ----------------------------------------------------- |
131
+ | `class` | `string` | `''` | Supplies visible dimensions, shape, and extra layout. |
132
+
133
+ ## Styling and theming
134
+
135
+ Base classes: `block animate-pulse rounded-md bg-muted`.
136
+
137
+ The component consumes the shared muted theme token through `bg-muted`. Pass utility classes for width, height, radius, flex behavior, margins, and responsive variants. Because the host is block-level, width and height utilities behave like they do on the shadcn React `<div>` implementation.
138
+
139
+ ## Accessibility
140
+
141
+ `Skeleton` emits `aria-hidden="true"` because it is decorative loading chrome. Pair it with status text, a live region, or a busy state on the loaded region when the loading state needs to be announced.
142
+
143
+ Avoid replacing labels or meaningful headings with only skeletons for long periods. Keep the eventual content area stable and announce changes when data arrives.
144
+
145
+ ## Keyboard interactions
146
+
147
+ Skeleton has no keyboard interaction. It should not receive focus and should not contain interactive content.
148
+
149
+ ## Angular notes
150
+
151
+ - Import `SkeletonComponent` directly into the standalone component that renders the loading state.
152
+ - The `class` input is intentionally the main API so Angular examples stay close to shadcn utility-class composition.
153
+ - Use Angular control flow for repeated rows: `@for (row of tableRows; track row) { ... }`.
154
+ - Keep placeholder dimensions close to the loaded content to reduce layout shift.
155
+
156
+ ## Source parity
157
+
158
+ This Angular implementation follows the shadcn Skeleton docs and examples for preview, usage, Avatar, Card, Text, Form, Table, and RTL. React `className` becomes Angular `class`, and the primitive renders as a block-level custom element so sizing utilities match the upstream `<div>` behavior.