@edsis/angular 22.1.6 → 22.2.10

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 (366) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +87 -399
  3. package/SECURITY.md +18 -0
  4. package/SUPPORT.md +15 -0
  5. package/chart/README.md +275 -0
  6. package/component/README.md +89 -0
  7. package/component/accordion/README.md +195 -0
  8. package/component/alert/README.md +184 -0
  9. package/component/alert-dialog/README.md +255 -0
  10. package/component/aspect-ratio/README.md +116 -0
  11. package/component/avatar/README.md +182 -0
  12. package/component/badge/README.md +143 -0
  13. package/component/breadcrumb/README.md +223 -0
  14. package/component/button/README.md +141 -0
  15. package/component/button-group/README.md +214 -0
  16. package/component/calendar/README.md +125 -0
  17. package/component/card/README.md +232 -0
  18. package/component/carousel/README.md +276 -0
  19. package/component/checkbox/README.md +153 -0
  20. package/component/collapsible/README.md +216 -0
  21. package/component/combobox/README.md +202 -0
  22. package/component/command/README.md +287 -0
  23. package/component/composer/README.md +241 -0
  24. package/component/context-menu/README.md +268 -0
  25. package/component/date-picker/README.md +202 -0
  26. package/component/dialog/README.md +276 -0
  27. package/component/drawer/README.md +146 -0
  28. package/component/dropdown-menu/README.md +336 -0
  29. package/component/editor/README.md +152 -0
  30. package/component/empty/README.md +193 -0
  31. package/component/form/README.md +216 -0
  32. package/component/hover-card/README.md +150 -0
  33. package/component/icon/README.md +52 -0
  34. package/component/input/README.md +160 -0
  35. package/component/input-group/README.md +245 -0
  36. package/component/input-otp/README.md +331 -0
  37. package/component/item/README.md +254 -0
  38. package/component/kanban/README.md +81 -0
  39. package/component/kbd/README.md +141 -0
  40. package/component/label/README.md +137 -0
  41. package/component/menubar/README.md +270 -0
  42. package/component/native-select/README.md +176 -0
  43. package/component/navigation-menu/README.md +165 -0
  44. package/component/pagination/README.md +151 -0
  45. package/component/pillbox/README.md +68 -0
  46. package/component/popover/README.md +54 -0
  47. package/component/progress/README.md +160 -0
  48. package/component/radio/README.md +212 -0
  49. package/component/resizable/README.md +178 -0
  50. package/component/scroll-area/README.md +150 -0
  51. package/component/select/README.md +228 -0
  52. package/component/separator/README.md +175 -0
  53. package/component/sheet/README.md +190 -0
  54. package/component/skeleton/README.md +158 -0
  55. package/component/slider/README.md +207 -0
  56. package/component/spinner/README.md +160 -0
  57. package/component/switch/README.md +170 -0
  58. package/component/table/README.md +292 -0
  59. package/component/tabs/README.md +220 -0
  60. package/component/textarea/README.md +169 -0
  61. package/component/timeline/README.md +94 -0
  62. package/component/toast/README.md +173 -0
  63. package/component/toggle/README.md +133 -0
  64. package/component/toggle-group/README.md +234 -0
  65. package/component/tooltip/README.md +230 -0
  66. package/fesm2022/edsis-angular-chart-area.mjs +508 -0
  67. package/fesm2022/edsis-angular-chart-bar.mjs +946 -0
  68. package/fesm2022/edsis-angular-chart-core.mjs +1319 -0
  69. package/fesm2022/edsis-angular-chart-line.mjs +544 -0
  70. package/fesm2022/edsis-angular-chart-pie.mjs +531 -0
  71. package/fesm2022/edsis-angular-chart-primitives.mjs +1647 -0
  72. package/fesm2022/edsis-angular-chart-radar.mjs +693 -0
  73. package/fesm2022/edsis-angular-chart-radial.mjs +542 -0
  74. package/fesm2022/edsis-angular-chart-scatter.mjs +486 -0
  75. package/fesm2022/edsis-angular-chart.mjs +3 -0
  76. package/fesm2022/edsis-angular-component-accordion.mjs +513 -0
  77. package/fesm2022/edsis-angular-component-alert-dialog.mjs +1001 -0
  78. package/fesm2022/edsis-angular-component-alert.mjs +268 -0
  79. package/fesm2022/edsis-angular-component-aspect-ratio.mjs +80 -0
  80. package/fesm2022/edsis-angular-component-avatar.mjs +410 -0
  81. package/fesm2022/edsis-angular-component-badge.mjs +111 -0
  82. package/fesm2022/edsis-angular-component-breadcrumb.mjs +464 -0
  83. package/fesm2022/edsis-angular-component-button-group.mjs +252 -0
  84. package/fesm2022/edsis-angular-component-button.mjs +155 -0
  85. package/fesm2022/edsis-angular-component-calendar.mjs +835 -0
  86. package/fesm2022/edsis-angular-component-card.mjs +460 -0
  87. package/fesm2022/edsis-angular-component-carousel.mjs +700 -0
  88. package/fesm2022/edsis-angular-component-checkbox.mjs +398 -0
  89. package/fesm2022/edsis-angular-component-collapsible.mjs +305 -0
  90. package/fesm2022/edsis-angular-component-combobox.mjs +544 -0
  91. package/fesm2022/edsis-angular-component-command.mjs +815 -0
  92. package/fesm2022/edsis-angular-component-composer.mjs +840 -0
  93. package/fesm2022/edsis-angular-component-context-menu.mjs +197 -0
  94. package/fesm2022/edsis-angular-component-date-picker.mjs +798 -0
  95. package/fesm2022/edsis-angular-component-dialog.mjs +798 -0
  96. package/fesm2022/edsis-angular-component-drawer.mjs +1 -0
  97. package/fesm2022/edsis-angular-component-dropdown-menu.mjs +1259 -0
  98. package/fesm2022/edsis-angular-component-editor.mjs +1000 -0
  99. package/fesm2022/edsis-angular-component-empty.mjs +351 -0
  100. package/fesm2022/edsis-angular-component-form.mjs +821 -0
  101. package/fesm2022/edsis-angular-component-hover-card.mjs +486 -0
  102. package/fesm2022/edsis-angular-component-icon.mjs +253 -0
  103. package/fesm2022/edsis-angular-component-input-group.mjs +453 -0
  104. package/fesm2022/edsis-angular-component-input-otp.mjs +957 -0
  105. package/fesm2022/edsis-angular-component-input.mjs +87 -0
  106. package/fesm2022/edsis-angular-component-item.mjs +720 -0
  107. package/fesm2022/edsis-angular-component-kanban.mjs +812 -0
  108. package/fesm2022/edsis-angular-component-kbd.mjs +124 -0
  109. package/fesm2022/edsis-angular-component-label.mjs +82 -0
  110. package/fesm2022/edsis-angular-component-menubar.mjs +481 -0
  111. package/fesm2022/edsis-angular-component-native-select.mjs +168 -0
  112. package/fesm2022/edsis-angular-component-navigation-menu.mjs +685 -0
  113. package/fesm2022/edsis-angular-component-pagination.mjs +425 -0
  114. package/fesm2022/edsis-angular-component-pillbox.mjs +1679 -0
  115. package/fesm2022/edsis-angular-component-popover.mjs +292 -0
  116. package/fesm2022/edsis-angular-component-progress.mjs +184 -0
  117. package/fesm2022/edsis-angular-component-radio.mjs +491 -0
  118. package/fesm2022/edsis-angular-component-resizable.mjs +703 -0
  119. package/fesm2022/edsis-angular-component-scroll-area.mjs +133 -0
  120. package/fesm2022/edsis-angular-component-segmented-control.mjs +408 -0
  121. package/fesm2022/edsis-angular-component-select.mjs +743 -0
  122. package/fesm2022/edsis-angular-component-separator.mjs +102 -0
  123. package/fesm2022/edsis-angular-component-sheet.mjs +874 -0
  124. package/fesm2022/edsis-angular-component-skeleton.mjs +62 -0
  125. package/fesm2022/edsis-angular-component-slider.mjs +676 -0
  126. package/fesm2022/edsis-angular-component-spinner.mjs +157 -0
  127. package/fesm2022/edsis-angular-component-switch.mjs +361 -0
  128. package/fesm2022/edsis-angular-component-table.mjs +446 -0
  129. package/fesm2022/edsis-angular-component-tabs.mjs +592 -0
  130. package/fesm2022/edsis-angular-component-textarea.mjs +85 -0
  131. package/fesm2022/edsis-angular-component-timeline.mjs +619 -0
  132. package/fesm2022/edsis-angular-component-toast.mjs +231 -0
  133. package/fesm2022/edsis-angular-component-toggle-group.mjs +579 -0
  134. package/fesm2022/edsis-angular-component-toggle.mjs +189 -0
  135. package/fesm2022/edsis-angular-component-tooltip.mjs +804 -0
  136. package/fesm2022/edsis-angular-component-utils-core.mjs +181 -0
  137. package/fesm2022/edsis-angular-component-utils-overlay.mjs +54 -0
  138. package/fesm2022/edsis-angular-component-utils-scale.mjs +76 -0
  139. package/fesm2022/edsis-angular-component-utils.mjs +2 -0
  140. package/fesm2022/edsis-angular-component.mjs +0 -0
  141. package/fesm2022/edsis-angular-navigation-core.mjs +15 -0
  142. package/fesm2022/edsis-angular-navigation-icon.mjs +35 -0
  143. package/fesm2022/edsis-angular-navigation-navigation-badge-count.component-D70Ju6_f.mjs +234 -0
  144. package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-BaFnh48V.mjs +834 -0
  145. package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-D39W0FQZ.mjs +823 -0
  146. package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-CpmsY8hb.mjs +670 -0
  147. package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-D35IfX6r.mjs +689 -0
  148. package/fesm2022/edsis-angular-navigation-navigation-item.component-X6JFy-ya.mjs +1522 -0
  149. package/fesm2022/edsis-angular-navigation-navigation-list.component-D6Ms8H5g.mjs +346 -0
  150. package/fesm2022/edsis-angular-navigation-service.mjs +558 -0
  151. package/fesm2022/edsis-angular-navigation-types.mjs +151 -0
  152. package/fesm2022/edsis-angular-navigation.mjs +3338 -0
  153. package/fesm2022/edsis-angular-sdk.mjs +100 -0
  154. package/fesm2022/edsis-angular-theme-component-settings.mjs +1863 -0
  155. package/fesm2022/edsis-angular-theme-layout-services.mjs +252 -0
  156. package/fesm2022/edsis-angular-theme-layout-types.mjs +45 -0
  157. package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +2568 -0
  158. package/fesm2022/edsis-angular-theme-layout.mjs +1089 -0
  159. package/fesm2022/edsis-angular-theme-on-fill.mjs +89 -0
  160. package/fesm2022/edsis-angular-theme-page-core.mjs +315 -0
  161. package/fesm2022/edsis-angular-theme-page-filter.mjs +409 -0
  162. package/fesm2022/edsis-angular-theme-page-overview.mjs +88 -0
  163. package/fesm2022/edsis-angular-theme-page-root.mjs +693 -0
  164. package/fesm2022/edsis-angular-theme-page-side.mjs +342 -0
  165. package/fesm2022/edsis-angular-theme-page-slots.mjs +258 -0
  166. package/fesm2022/edsis-angular-theme-page.mjs +7 -0
  167. package/fesm2022/edsis-angular-theme-shell-services.mjs +231 -0
  168. package/fesm2022/edsis-angular-theme-shell-types.mjs +102 -0
  169. package/fesm2022/edsis-angular-theme-shell.mjs +1352 -0
  170. package/fesm2022/edsis-angular-theme-styles.mjs +605 -0
  171. package/fesm2022/edsis-angular-theme.mjs +0 -0
  172. package/fesm2022/edsis-angular.mjs +5 -8
  173. package/navigation/README.md +576 -0
  174. package/package.json +481 -52
  175. package/sdk/README.md +212 -0
  176. package/sdk/schematics/collection.json +20 -0
  177. package/sdk/schematics/init/index.js +83 -0
  178. package/sdk/schematics/init/schema.json +19 -0
  179. package/sdk/schematics/ng-add/index.js +147 -0
  180. package/sdk/schematics/ng-add/schema.json +14 -0
  181. package/sdk/schematics/package.json +3 -0
  182. package/sdk/schematics/sdk/index.js +175 -0
  183. package/sdk/schematics/sdk/schema.json +19 -0
  184. package/sdk/sdk.config.example.json +24 -0
  185. package/sdk/src/config/loader.js +43 -0
  186. package/sdk/src/config/schema.js +59 -0
  187. package/sdk/src/emit/client.js +251 -0
  188. package/sdk/src/emit/metadata.js +310 -0
  189. package/sdk/src/emit/models.js +104 -0
  190. package/sdk/src/emit/navigation.js +56 -0
  191. package/sdk/src/emit/operations.js +118 -0
  192. package/sdk/src/emit/public-api.js +54 -0
  193. package/sdk/src/emit/services.js +110 -0
  194. package/sdk/src/engine.js +67 -0
  195. package/sdk/src/layout/per-domain.js +360 -0
  196. package/sdk/src/package.json +3 -0
  197. package/sdk/src/parser/bundle.js +25 -0
  198. package/sdk/src/parser/ir.js +429 -0
  199. package/sdk/src/parser/types.js +7 -0
  200. package/sdk/src/render/template.js +152 -0
  201. package/sdk/src/writer/index.js +286 -0
  202. package/theme/README.md +120 -0
  203. package/theme/component/settings/README.md +154 -0
  204. package/theme/layout/README.md +604 -0
  205. package/theme/page/README.md +505 -0
  206. package/theme/shell/README.md +344 -0
  207. package/theme/styles/README.md +251 -0
  208. package/theme/styles/css/base/components.css +577 -0
  209. package/theme/styles/css/base/index.css +14 -0
  210. package/theme/styles/css/base/on-fill.css +153 -0
  211. package/theme/styles/css/base/package.css +10 -0
  212. package/theme/styles/css/base/prefers-dark.css +81 -0
  213. package/theme/styles/css/base/print.css +62 -0
  214. package/theme/styles/css/base/status.css +38 -0
  215. package/theme/styles/css/base/tailwind.css +208 -0
  216. package/theme/styles/css/base/theme.css +306 -0
  217. package/theme/styles/css/base/tokens.css +388 -0
  218. package/theme/styles/css/color/amber.css +72 -0
  219. package/theme/styles/css/color/blue.css +72 -0
  220. package/theme/styles/css/color/brand.css +38 -0
  221. package/theme/styles/css/color/cyan.css +72 -0
  222. package/theme/styles/css/color/emerald.css +72 -0
  223. package/theme/styles/css/color/fuchsia.css +72 -0
  224. package/theme/styles/css/color/green.css +72 -0
  225. package/theme/styles/css/color/index.css +19 -0
  226. package/theme/styles/css/color/indigo.css +72 -0
  227. package/theme/styles/css/color/lime.css +72 -0
  228. package/theme/styles/css/color/orange.css +72 -0
  229. package/theme/styles/css/color/pink.css +72 -0
  230. package/theme/styles/css/color/purple.css +72 -0
  231. package/theme/styles/css/color/red.css +72 -0
  232. package/theme/styles/css/color/rose.css +72 -0
  233. package/theme/styles/css/color/sky.css +72 -0
  234. package/theme/styles/css/color/teal.css +72 -0
  235. package/theme/styles/css/color/violet.css +72 -0
  236. package/theme/styles/css/color/yellow.css +72 -0
  237. package/theme/styles/css/fonts.css +85 -0
  238. package/theme/styles/css/index.css +18 -0
  239. package/theme/styles/css/neutral/gray.css +63 -0
  240. package/theme/styles/css/neutral/index.css +11 -0
  241. package/theme/styles/css/neutral/mauve.css +63 -0
  242. package/theme/styles/css/neutral/mist.css +63 -0
  243. package/theme/styles/css/neutral/neutral.css +63 -0
  244. package/theme/styles/css/neutral/olive.css +63 -0
  245. package/theme/styles/css/neutral/slate.css +63 -0
  246. package/theme/styles/css/neutral/stone.css +63 -0
  247. package/theme/styles/css/neutral/taupe.css +63 -0
  248. package/theme/styles/css/neutral/zinc.css +63 -0
  249. package/theme/styles/css/radius/index.css +30 -0
  250. package/theme/styles/css/space/index.css +20 -0
  251. package/types/edsis-angular-chart-area.d.ts +139 -0
  252. package/types/edsis-angular-chart-bar.d.ts +291 -0
  253. package/types/edsis-angular-chart-core.d.ts +824 -0
  254. package/types/edsis-angular-chart-line.d.ts +148 -0
  255. package/types/edsis-angular-chart-pie.d.ts +207 -0
  256. package/types/edsis-angular-chart-primitives.d.ts +360 -0
  257. package/types/edsis-angular-chart-radar.d.ts +198 -0
  258. package/types/edsis-angular-chart-radial.d.ts +187 -0
  259. package/types/edsis-angular-chart-scatter.d.ts +181 -0
  260. package/types/edsis-angular-chart.d.ts +3 -0
  261. package/types/edsis-angular-component-accordion.d.ts +139 -0
  262. package/types/edsis-angular-component-alert-dialog.d.ts +288 -0
  263. package/types/edsis-angular-component-alert.d.ts +72 -0
  264. package/types/edsis-angular-component-aspect-ratio.d.ts +20 -0
  265. package/types/edsis-angular-component-avatar.d.ts +111 -0
  266. package/types/edsis-angular-component-badge.d.ts +36 -0
  267. package/types/edsis-angular-component-breadcrumb.d.ts +85 -0
  268. package/types/edsis-angular-component-button-group.d.ts +50 -0
  269. package/types/edsis-angular-component-button.d.ts +44 -0
  270. package/types/edsis-angular-component-calendar.d.ts +150 -0
  271. package/types/edsis-angular-component-card.d.ts +123 -0
  272. package/types/edsis-angular-component-carousel.d.ts +155 -0
  273. package/types/edsis-angular-component-checkbox.d.ts +100 -0
  274. package/types/edsis-angular-component-collapsible.d.ts +68 -0
  275. package/types/edsis-angular-component-combobox.d.ts +105 -0
  276. package/types/edsis-angular-component-command.d.ts +215 -0
  277. package/types/edsis-angular-component-composer.d.ts +190 -0
  278. package/types/edsis-angular-component-context-menu.d.ts +64 -0
  279. package/types/edsis-angular-component-date-picker.d.ts +199 -0
  280. package/types/edsis-angular-component-dialog.d.ts +231 -0
  281. package/types/edsis-angular-component-drawer.d.ts +2 -0
  282. package/types/edsis-angular-component-dropdown-menu.d.ts +370 -0
  283. package/types/edsis-angular-component-editor.d.ts +234 -0
  284. package/types/edsis-angular-component-empty.d.ts +85 -0
  285. package/types/edsis-angular-component-form.d.ts +223 -0
  286. package/types/edsis-angular-component-hover-card.d.ts +133 -0
  287. package/types/edsis-angular-component-icon.d.ts +90 -0
  288. package/types/edsis-angular-component-input-group.d.ts +98 -0
  289. package/types/edsis-angular-component-input-otp.d.ts +249 -0
  290. package/types/edsis-angular-component-input.d.ts +31 -0
  291. package/types/edsis-angular-component-item.d.ts +169 -0
  292. package/types/edsis-angular-component-kanban.d.ts +165 -0
  293. package/types/edsis-angular-component-kbd.d.ts +25 -0
  294. package/types/edsis-angular-component-label.d.ts +19 -0
  295. package/types/edsis-angular-component-menubar.d.ts +123 -0
  296. package/types/edsis-angular-component-native-select.d.ts +39 -0
  297. package/types/edsis-angular-component-navigation-menu.d.ts +163 -0
  298. package/types/edsis-angular-component-pagination.d.ts +83 -0
  299. package/types/edsis-angular-component-pillbox.d.ts +380 -0
  300. package/types/edsis-angular-component-popover.d.ts +96 -0
  301. package/types/edsis-angular-component-progress.d.ts +45 -0
  302. package/types/edsis-angular-component-radio.d.ts +137 -0
  303. package/types/edsis-angular-component-resizable.d.ts +166 -0
  304. package/types/edsis-angular-component-scroll-area.d.ts +37 -0
  305. package/types/edsis-angular-component-segmented-control.d.ts +102 -0
  306. package/types/edsis-angular-component-select.d.ts +138 -0
  307. package/types/edsis-angular-component-separator.d.ts +26 -0
  308. package/types/edsis-angular-component-sheet.d.ts +240 -0
  309. package/types/edsis-angular-component-skeleton.d.ts +13 -0
  310. package/types/edsis-angular-component-slider.d.ts +148 -0
  311. package/types/edsis-angular-component-spinner.d.ts +31 -0
  312. package/types/edsis-angular-component-switch.d.ts +101 -0
  313. package/types/edsis-angular-component-table.d.ts +109 -0
  314. package/types/edsis-angular-component-tabs.d.ts +183 -0
  315. package/types/edsis-angular-component-textarea.d.ts +27 -0
  316. package/types/edsis-angular-component-timeline.d.ts +146 -0
  317. package/types/edsis-angular-component-toast.d.ts +60 -0
  318. package/types/edsis-angular-component-toggle-group.d.ts +161 -0
  319. package/types/edsis-angular-component-toggle.d.ts +47 -0
  320. package/types/edsis-angular-component-tooltip.d.ts +233 -0
  321. package/types/edsis-angular-component-utils-core.d.ts +175 -0
  322. package/types/edsis-angular-component-utils-overlay.d.ts +17 -0
  323. package/types/edsis-angular-component-utils-scale.d.ts +27 -0
  324. package/types/edsis-angular-component-utils.d.ts +2 -0
  325. package/types/edsis-angular-component.d.ts +1 -0
  326. package/types/edsis-angular-navigation-core.d.ts +55 -0
  327. package/types/edsis-angular-navigation-icon.d.ts +9 -0
  328. package/types/edsis-angular-navigation-service.d.ts +121 -0
  329. package/types/edsis-angular-navigation-types.d.ts +185 -0
  330. package/types/edsis-angular-navigation.d.ts +862 -0
  331. package/types/edsis-angular-sdk.d.ts +87 -0
  332. package/types/edsis-angular-theme-component-settings.d.ts +205 -0
  333. package/types/edsis-angular-theme-layout-services.d.ts +143 -0
  334. package/types/edsis-angular-theme-layout-types.d.ts +36 -0
  335. package/types/edsis-angular-theme-layout-wrapper.d.ts +670 -0
  336. package/types/edsis-angular-theme-layout.d.ts +218 -0
  337. package/types/edsis-angular-theme-on-fill.d.ts +45 -0
  338. package/types/edsis-angular-theme-page-core.d.ts +151 -0
  339. package/types/edsis-angular-theme-page-filter.d.ts +127 -0
  340. package/types/edsis-angular-theme-page-overview.d.ts +28 -0
  341. package/types/edsis-angular-theme-page-root.d.ts +172 -0
  342. package/types/edsis-angular-theme-page-side.d.ts +90 -0
  343. package/types/edsis-angular-theme-page-slots.d.ts +61 -0
  344. package/types/edsis-angular-theme-page.d.ts +7 -0
  345. package/types/edsis-angular-theme-shell-services.d.ts +188 -0
  346. package/types/edsis-angular-theme-shell-types.d.ts +102 -0
  347. package/types/edsis-angular-theme-shell.d.ts +178 -0
  348. package/types/edsis-angular-theme-styles.d.ts +328 -0
  349. package/types/edsis-angular-theme.d.ts +1 -0
  350. package/types/edsis-angular.d.ts +5 -2
  351. package/fesm2022/edsis-angular-block-shell.mjs +0 -1329
  352. package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
  353. package/fesm2022/edsis-angular-block-themes.mjs +0 -1007
  354. package/fesm2022/edsis-angular-block-themes.mjs.map +0 -1
  355. package/fesm2022/edsis-angular-module-auth.mjs +0 -2582
  356. package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
  357. package/fesm2022/edsis-angular-platform-mfe.mjs +0 -329
  358. package/fesm2022/edsis-angular-platform-mfe.mjs.map +0 -1
  359. package/fesm2022/edsis-angular-services-runtime.mjs +0 -385
  360. package/fesm2022/edsis-angular-services-runtime.mjs.map +0 -1
  361. package/fesm2022/edsis-angular.mjs.map +0 -1
  362. package/types/edsis-angular-block-shell.d.ts +0 -190
  363. package/types/edsis-angular-block-themes.d.ts +0 -94
  364. package/types/edsis-angular-module-auth.d.ts +0 -533
  365. package/types/edsis-angular-platform-mfe.d.ts +0 -126
  366. package/types/edsis-angular-services-runtime.d.ts +0 -118
@@ -0,0 +1,275 @@
1
+ # Chart
2
+
3
+ Angular chart primitives and chart families inspired by shadcn Chart.
4
+
5
+ In this repository, shadcn's single Chart page maps to the dedicated `/ui/chart/*` demo route group so each chart family can keep focused, production-like examples without forcing everything into one `/ui/shadcn/chart` page.
6
+
7
+ Use Chart for dashboards, KPI cards, trend comparisons, radial summaries, and interactive data views where one shared config should drive labels, colors, legends, and tooltip copy.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ bun add @edsis/angular
13
+ npm install @edsis/angular
14
+ ```
15
+
16
+ ## Import
17
+
18
+ Import shared primitives from the chart root entrypoint, then import the concrete chart family from its granular subpath.
19
+
20
+ ```ts
21
+ import {
22
+ ChartAxisX,
23
+ ChartAxisY,
24
+ ChartContainer,
25
+ ChartGrid,
26
+ ChartLegend,
27
+ ChartTooltip,
28
+ type ChartConfig,
29
+ } from '@edsis/angular/chart';
30
+ import { BarChart } from '@edsis/angular/chart/bar';
31
+ ```
32
+
33
+ ### Supported chart entrypoints
34
+
35
+ | Import path | Selector | Best for |
36
+ | ------------------------------------ | -------------- | ----------------------------------------------------------------- |
37
+ | `@edsis/angular/chart/bar` | `ChartBar` | grouped, stacked, horizontal, active, and mixed-color bar layouts |
38
+ | `@edsis/angular/chart/line` | `ChartLine` | trends, comparisons, and zoomable time-series lines |
39
+ | `@edsis/angular/chart/area` | `ChartArea` | filled trend bands, stacked areas, and expanded percent views |
40
+ | `@edsis/angular/chart/pie` | `ChartPie` | part-to-whole slices and donut charts |
41
+ | `@edsis/angular/chart/radar` | `ChartRadar` | multi-axis performance comparisons |
42
+ | `@edsis/angular/chart/radial` | `ChartRadial` | progress rings, radial comparisons, and center-metric summaries |
43
+ | `@edsis/angular/chart/scatter` | `ChartScatter` | XY correlation plots and point clouds |
44
+
45
+ ## Composition
46
+
47
+ The Angular structure keeps the same high-level idea as shadcn Chart: define a shared chart config once, then compose a specific chart type with optional grid, axis, tooltip, legend, and center content.
48
+
49
+ ```text
50
+ Chart
51
+ ├── ChartBar | ChartLine | ChartArea | ChartScatter
52
+ │ ├── svg:g[ChartGrid]
53
+ │ ├── svg:g[ChartAxisX]
54
+ │ ├── svg:g[ChartAxisY]
55
+ │ └── svg:g[ChartCrosshair] / svg:g[ChartBrush] (optional)
56
+ ├── ChartPie | ChartRadial | ChartRadar
57
+ │ └── ChartPieCenter | ChartRadialCenter (optional)
58
+ ├── ChartTooltip
59
+ ├── ChartLegend
60
+ └── ChartZoomControls (optional)
61
+ ```
62
+
63
+ All child primitives read dimensions, series metadata, and scoped color tokens from `Chart`.
64
+
65
+ ## Basic usage
66
+
67
+ Start with a readonly `ChartConfig`, keep the dataset in any shape that makes sense for your feature, and map the chart to the relevant keys.
68
+
69
+ ```ts
70
+ const trafficChartConfig = {
71
+ desktop: { label: 'Desktop', color: 'var(--chart-1)' },
72
+ mobile: { label: 'Mobile', color: 'var(--chart-2)' },
73
+ } satisfies ChartConfig;
74
+
75
+ const trafficData = [
76
+ { month: 'January', desktop: 186, mobile: 80 },
77
+ { month: 'February', desktop: 305, mobile: 200 },
78
+ { month: 'March', desktop: 237, mobile: 120 },
79
+ { month: 'April', desktop: 73, mobile: 190 },
80
+ { month: 'May', desktop: 209, mobile: 130 },
81
+ { month: 'June', desktop: 214, mobile: 140 },
82
+ ];
83
+ ```
84
+
85
+ ```html
86
+ <div class="w-full max-w-3xl">
87
+ <Chart [config]="trafficChartConfig" chartId="traffic-overview">
88
+ <ChartBar [data]="trafficData" xKey="month">
89
+ <svg:g ChartGrid></svg:g>
90
+ <svg:g ChartAxisX></svg:g>
91
+ <svg:g ChartAxisY></svg:g>
92
+ </ChartBar>
93
+ <ChartTooltip [data]="trafficData" xKey="month" />
94
+ <ChartLegend />
95
+ </Chart>
96
+ </div>
97
+ ```
98
+
99
+ ## Common patterns
100
+
101
+ ### First chart flow
102
+
103
+ The closest Angular equivalent to the upstream shadcn walkthrough is:
104
+
105
+ 1. Define your dataset.
106
+ 2. Define `ChartConfig` so labels and colors stay decoupled from the raw data.
107
+ 3. Wrap the chart in `Chart`.
108
+ 4. Add `svg:g[ChartGrid]`, axis directives, `ChartTooltip`, and `ChartLegend` only where they add value.
109
+
110
+ This keeps the chart family focused while still letting the shared primitives manage the common UI pieces.
111
+
112
+ ### Swapping chart families
113
+
114
+ The same `ChartConfig` can back multiple chart families. In most cases you only swap the concrete chart import and the family-specific inputs.
115
+
116
+ ```ts
117
+ import { AreaChart } from '@edsis/angular/chart/area';
118
+ import { LineChart } from '@edsis/angular/chart/line';
119
+ ```
120
+
121
+ - `ChartLine` adds inputs such as `curve`, `showDots`, and `showValueLabels`.
122
+ - `ChartArea` adds `stacked`, `expanded`, `gradient`, and `curve`.
123
+ - `ChartBar` adds `orientation`, `variant`, `colorKey`, `activeKey`, and `activeValue`.
124
+
125
+ ### Pie and radial summaries
126
+
127
+ For donut, pie, and radial progress layouts, use `nameKey` plus `valueKey` instead of `xKey`.
128
+
129
+ ```html
130
+ <Chart [config]="browserConfig" aspect="aspect-square">
131
+ <ChartPie
132
+ [data]="browserData"
133
+ nameKey="browser"
134
+ valueKey="visitors"
135
+ [seriesKeys]="browserSeriesKeys"
136
+ [innerRadius]="64"
137
+ >
138
+ </ChartPie>
139
+ <ChartTooltip [data]="browserData" xKey="browser" valueKey="visitors" indicator="dot" />
140
+ <ChartLegend />
141
+ </Chart>
142
+ ```
143
+
144
+ ### Tooltip formatting
145
+
146
+ `ChartTooltip` is where most presentational customization lives.
147
+
148
+ ```html
149
+ <ChartTooltip
150
+ [data]="activityData"
151
+ xKey="date"
152
+ indicator="line"
153
+ labelKey="views"
154
+ [labelFormatter]="longDateFormatter"
155
+ [formatter]="compactNumberFormatter"
156
+ />
157
+ ```
158
+
159
+ Use `valueKey` for single-value radial and pie datasets, `hideLabel` when the card already provides the label context, and `indicator="none"` when you want a copy-first tooltip layout.
160
+
161
+ ### Per-row colors and active emphasis
162
+
163
+ Use `colorKey` when the dataset itself carries a color token such as `fill`, and use `activeKey` plus `activeValue` when one category should be visually emphasized without rewriting the whole series config.
164
+
165
+ ## API reference
166
+
167
+ ### `ChartContainer`
168
+
169
+ | Input | Type | Default |
170
+ | --------- | ---------------- | ---------------- |
171
+ | `config` | `ChartConfig` | — |
172
+ | `aspect` | `string` | `'aspect-video'` |
173
+ | `chartId` | `string \| null` | auto-generated |
174
+
175
+ `ChartConfig` is a readonly record of series keys to labels, icons, colors, or theme-aware light/dark color maps.
176
+
177
+ ```ts
178
+ type ChartConfig = Readonly<
179
+ Record<
180
+ string,
181
+ {
182
+ label?: string;
183
+ icon?: Type<unknown>;
184
+ color?: string;
185
+ theme?: Readonly<Record<'light' | 'dark', string>>;
186
+ }
187
+ >
188
+ >;
189
+ ```
190
+
191
+ ### Shared primitives
192
+
193
+ | Part | Key inputs | Notes |
194
+ | ------------------- | -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
195
+ | `svg:g[ChartGrid]` | none | Adds cartesian grid lines behind bar, line, and area charts. |
196
+ | `svg:g[ChartAxisX]` | `tickCount`, `tickLine`, `tickFormat` | Categorical axis for cartesian layouts. |
197
+ | `svg:g[ChartAxisY]` | `tickCount`, `tickLine`, `tickFormat` | Numeric axis for cartesian layouts. |
198
+ | `ChartTooltip` | `data`, `xKey`, `valueKey`, `indicator`, `label`, `labelKey`, `labelFormatter`, `formatter`, `hideLabel` | Handles default tooltip layout plus custom template projection. |
199
+ | `ChartLegend` | none | Renders toggle buttons for visible series. |
200
+ | `ChartZoomControls` | none | Pair with zoomable line and scatter views. |
201
+ | `ChartPieCenter` | projected content | Centers labels or KPIs inside pie layouts. |
202
+ | `ChartRadialCenter` | projected content | Centers labels or KPIs inside radial layouts. |
203
+
204
+ ### Chart families
205
+
206
+ | Selector | Key inputs |
207
+ | -------------- | --------------------------------------------------------------------------------------------------- |
208
+ | `ChartBar` | `data`, `xKey`, `orientation`, `variant`, `colorKey`, `activeKey`, `activeValue`, `showValueLabels` |
209
+ | `ChartLine` | `data`, `xKey`, `curve`, `showDots`, `dotRadius`, `showValueLabels` |
210
+ | `ChartArea` | `data`, `xKey`, `stacked`, `expanded`, `gradient`, `curve` |
211
+ | `ChartPie` | `data`, `nameKey`, `valueKey`, `seriesKeys`, `innerRadius`, `activeIndex`, `activeOffset` |
212
+ | `ChartRadar` | `data`, `axisKey`, `curve`, `levels`, `grid`, `showLabels`, `showDots` |
213
+ | `ChartRadial` | `data`, `nameKey`, `valueKey`, `seriesKeys`, `maxValue`, `showTrack`, `showValueLabels` |
214
+ | `ChartScatter` | `data`, `xKey`, `yKey`, `sizeKey`, `seriesKey`, `xDomain`, `yDomain` |
215
+
216
+ ## Styling and theming
217
+
218
+ - Prefer CSS variables such as `var(--chart-1)` and `var(--chart-2)` in `ChartConfig`. This matches the current shadcn guidance and the theme tokens shipped by this library.
219
+ - `Chart` scopes generated `--color-<series>` variables to the chart instance, so tooltip rows, legends, and series shapes stay aligned.
220
+ - Use `theme: { light, dark }` on a series config entry when the chart needs different values per color scheme.
221
+ - Beside each `--color-<series>`, `Chart` writes `--color-<series>-foreground`, the text colour for that fill in each mode (spec 0011, the foreground-on-fill contract). A theme token with a partner (`hsl(var(--chart-3))`, `var(--primary)`, and the other `chart-1..5`, `secondary`, `accent`, `success`, `warning`, `info`, `destructive`, `brand` tokens) maps to `hsl(var(--<token>-foreground))`; an HSL triplet, `hsl(<triplet>)`, or a 6-digit hex is measured with `foregroundFor` from `@edsis/angular/theme/styles`. Forms with alpha, `rgb()`, `oklch()`, and unknown `var()` references get no foreground.
222
+ - Pie slice labels read `var(--color-<series>-foreground, hsl(var(--foreground)))` and always carry a halo in `--background`, so a label stays readable on series colours that get no computed foreground.
223
+ - The theme exposes `--theme-chart-N` and `--theme-chart-N-foreground` to override series N. Override them in pairs: a new fill without its foreground keeps the default foreground, which may not suit it, and the build cannot see consumer CSS.
224
+ - Keep the parent container responsible for width, and use the `aspect` input when the default `aspect-video` does not match the layout.
225
+ - Use `colorKey` only when the dataset should override per-series colors with a row-specific token such as `fill`.
226
+
227
+ ## Accessibility
228
+
229
+ - Chart hosts expose an `aria-label` summary describing the chart type, category count, and visible series.
230
+ - Every chart emits an equivalent screen-reader table for the displayed dataset.
231
+ - Interactive marks use one roving tab stop per chart; arrow keys reach the remaining marks without flooding the page's Tab order.
232
+ - `ChartTooltip` includes a polite live region so changing categories can be announced to assistive technology.
233
+ - `ChartLegend` uses native buttons with `aria-pressed` to reflect hidden and visible series state.
234
+ - Keep surrounding card copy descriptive so the chart has enough context when read outside its visual layout.
235
+
236
+ ## Keyboard interactions
237
+
238
+ - `Tab` reaches one interactive mark per chart plus legend toggle buttons.
239
+ - Arrow keys move between marks; Home and End jump to the first and last mark.
240
+ - `Enter` and `Space` trigger the same click behavior as pointer activation on interactive marks.
241
+ - Focusing a supported data mark updates the shared active point so tooltip content stays reachable without hover.
242
+
243
+ ## Angular notes
244
+
245
+ - Keep chart config objects readonly and signal-friendly. A top-level `const` or signal-backed computed config works well.
246
+ - Every chart family must live inside `Chart`; that container provides dimensions, series visibility state, and scoped color variables to descendants.
247
+ - Use an explicit `ChartId` when multiple charts of the same family appear on one page or when tests need a stable selector.
248
+ - The local shadcn mapping for Chart lives in the dedicated `/ui/chart` overview route with focused family demos under `/ui/chart/*`.
249
+
250
+ ## Source parity
251
+
252
+ This Angular package follows the shadcn Chart information architecture and theming concepts, but it does not mirror the React API one-to-one.
253
+
254
+ - shadcn uses Recharts components directly and layers `ChartTooltipContent` and `ChartLegendContent` around them.
255
+ - This Angular library ships standalone chart families plus shared primitives, so you compose `Chart`, the relevant `chart-*`, `ChartTooltip`, and `ChartLegend` instead of wiring Recharts JSX.
256
+ - The dedicated `/ui/chart/*` route group is the intentional local mapping for shadcn Chart in this repo; no duplicate `/ui/shadcn/chart` page is required.
257
+
258
+ ## Why the d3 types are runtime dependencies
259
+
260
+ `@types/d3-array`, `@types/d3-scale`, and `@types/d3-shape` sit in `dependencies`, not
261
+ `devDependencies`, and that is deliberate: d3's types appear in this package's PUBLISHED type
262
+ surface, so a consumer needs them installed to typecheck against it. In
263
+ `@edsis/angular/chart/core` alone, `CategoryScale` is `ScaleBand<string>`, `ValueScale` is
264
+ `ScaleLinear<number, number>`, the cartesian context exposes `xScale`/`yScale` as signals of
265
+ `ScaleLinear`, and `bandTicks`/`linearTicks` take those scales as parameters.
266
+
267
+ Check it before moving them: build the library and look for `d3-` imports in
268
+ `dist/chart/types/*.d.ts`. If they ever stop appearing there, the types can drop to
269
+ `devDependencies`.
270
+
271
+ ## Support and security
272
+
273
+ Angular 22.2–22.x CSR/browser usage is supported; SSR, prerendering, and hydration are not. See the
274
+ bundled `SUPPORT.md`. Report suspected vulnerabilities privately using the instructions in the
275
+ bundled `SECURITY.md`. This package is MIT licensed; see the bundled `LICENSE`.
@@ -0,0 +1,89 @@
1
+ # @edsis/angular/component
2
+
3
+ Library ini berada di `packages/angular/component` dan diterbitkan sebagai subpath `component` dari paket tunggal `@edsis/angular`.
4
+
5
+ Library ini menggunakan pola secondary entry point per folder. Import yang disarankan adalah langsung ke subpath yang dibutuhkan, misalnya `@edsis/angular/component/button` atau `@edsis/angular/chart/bar`.
6
+
7
+ ## Build
8
+
9
+ Paket dibangun sebagai satu kesatuan:
10
+
11
+ ```bash
12
+ bun run ng -- build @edsis/angular
13
+ ```
14
+
15
+ Nama project di `angular.json` adalah `angular-component`. Artefak build akan ditulis ke `dist/component`.
16
+
17
+ ## Penggunaan Lokal
18
+
19
+ Untuk import dari workspace ini, gunakan path berikut:
20
+
21
+ ```bash
22
+ @edsis/angular/component
23
+ ```
24
+
25
+ Untuk komponen atau utilitas spesifik, gunakan subpath secondary entry point:
26
+
27
+ ```bash
28
+ @edsis/angular/component/button
29
+ @edsis/angular/chart/bar
30
+ @edsis/angular/component/icon
31
+ @edsis/angular/theme/styles
32
+ ```
33
+
34
+ Untuk helper, gunakan entry point terfokus agar helper murni tidak menarik
35
+ runtime overlay:
36
+
37
+ ```ts
38
+ import { cn, injectUniqueId } from '@edsis/angular/component/utils/core';
39
+ import { connectedPositionFor } from '@edsis/angular/component/utils/overlay';
40
+ ```
41
+
42
+ `@edsis/angular/component/utils` tetap tersedia sebagai compatibility
43
+ barrel, tetapi kode baru sebaiknya memilih `utils/core` atau `utils/overlay`.
44
+
45
+ ## Unit Test
46
+
47
+ Jalankan unit test library dengan perintah berikut:
48
+
49
+ ```bash
50
+ bun run ng -- test angular-component
51
+ ```
52
+
53
+ Runner test di workspace ini menggunakan Vitest melalui Angular build tooling.
54
+
55
+ ## Konvensi Selector
56
+
57
+ Aturan baku agar semua tim memakai mental model yang sama:
58
+
59
+ | Jenis primitif | Selector | Contoh |
60
+ | ------------------------------------------------------------------------- | ---------------------------- | ---------------------------------- |
61
+ | Menempel ke elemen HTML semantik (button, input, label, textarea, select) | Attribute selector | `<button Button>`, `<input Input>` |
62
+ | Container/komposit tanpa padanan elemen native | Element selector | `<Card>`, `<Dialog>`, `<Tabs>` |
63
+ | Behavior tanpa render (trigger, content marker) | Directive `[Xxx]` PascalCase | `[PopoverTrigger]`, `[Tooltip]` |
64
+
65
+ Beberapa komponen menyediakan keduanya (`Label, label[Label]`) untuk
66
+ markup fleksibel — gunakan bentuk attribute bila elemen native tersedia karena
67
+ semantik & aksesibilitasnya gratis dari browser.
68
+
69
+ ## Dependensi runtime
70
+
71
+ - `@angular/cdk` adalah **dependency langsung** paket ini (overlay/portal/a11y
72
+ dipakai oleh banyak komponen), jadi ikut terinstal otomatis — tidak ada lagi
73
+ error `Cannot find module '@angular/cdk/overlay'`.
74
+ - `@angular/common`, `@angular/core`, `@angular/forms`,
75
+ `@angular/platform-browser`, dan `rxjs` tetap peer dependency (disediakan oleh
76
+ aplikasi Angular Anda).
77
+
78
+ ## Status Dependensi @angular/material
79
+
80
+ `@angular/material` masih menjadi peer dependency opsional untuk
81
+ `SelectField`, yang kembali menggunakan `MatSelect` dan `MatOption`. `Calendar`
82
+ dan `DatePicker` tetap memakai primitif native/CDK, sehingga consumer yang tidak
83
+ mengimpor `SelectField` tidak perlu memasang Material.
84
+
85
+ ## Support and security
86
+
87
+ Angular 22.2–22.x CSR/browser usage is supported; SSR, prerendering, and hydration are not. See the
88
+ bundled `SUPPORT.md`. Report suspected vulnerabilities privately using the instructions in the
89
+ bundled `SECURITY.md`. This package is MIT licensed; see the bundled `LICENSE`.
@@ -0,0 +1,195 @@
1
+ # Accordion
2
+
3
+ Displays a vertically stacked set of interactive headings that reveal one or more content panels.
4
+
5
+ Use Accordion for FAQ blocks, settings groups, and progressive disclosure where content should stay in the same page flow.
6
+
7
+ ## Import
8
+
9
+ ```ts
10
+ import {
11
+ AccordionComponent,
12
+ AccordionContentComponent,
13
+ AccordionItemComponent,
14
+ AccordionTriggerComponent,
15
+ } from '@edsis/angular/component/accordion';
16
+ ```
17
+
18
+ ## Composition
19
+
20
+ The Angular structure mirrors the shadcn and Radix composition while using Angular selectors and a native button trigger.
21
+
22
+ ```text
23
+ Accordion
24
+ ├── AccordionItem
25
+ │ ├── button[AccordionTrigger]
26
+ │ └── AccordionContent
27
+ └── AccordionItem
28
+ ├── button[AccordionTrigger]
29
+ └── AccordionContent
30
+ ```
31
+
32
+ ## Basic usage
33
+
34
+ Use `Accordion` as the root, wrap each section in `AccordionItem`, place the clickable heading on a native button with `AccordionTrigger`, and project body copy into `AccordionContent`.
35
+
36
+ Bind `[(value)]` when the parent should control the open state or seed a default open item.
37
+
38
+ ```html
39
+ <Accordion [(value)]="openItem" type="single" class="w-full max-w-xl">
40
+ <AccordionItem value="item-1">
41
+ <button AccordionTrigger>Is it accessible?</button>
42
+ <AccordionContent>
43
+ Yes. The trigger and content follow the expected accordion ARIA wiring.
44
+ </AccordionContent>
45
+ </AccordionItem>
46
+ </Accordion>
47
+ ```
48
+
49
+ ## Common patterns
50
+
51
+ ### Single-open FAQ
52
+
53
+ Use `type="single"` when only one item should stay open at a time.
54
+
55
+ ```ts
56
+ const basicOpen = signal<string | string[] | null>('item-1');
57
+
58
+ <Accordion [(value)]="basicOpen" type="single" class="max-w-lg">
59
+ <AccordionItem value="item-1">...</AccordionItem>
60
+ <AccordionItem value="item-2">...</AccordionItem>
61
+ <AccordionItem value="item-3">...</AccordionItem>
62
+ </Accordion>
63
+ ```
64
+
65
+ ### Multiple open sections
66
+
67
+ Use `type="multiple"` when more than one panel should stay open. The bound value becomes a `string[]`.
68
+
69
+ ```ts
70
+ const multipleOpen = signal<string[] | null>(['notifications']);
71
+
72
+ <Accordion [(value)]="multipleOpen" type="multiple" class="max-w-lg">
73
+ <AccordionItem value="notifications">...</AccordionItem>
74
+ <AccordionItem value="privacy">...</AccordionItem>
75
+ <AccordionItem value="billing">...</AccordionItem>
76
+ </Accordion>
77
+ ```
78
+
79
+ ### Disabled items
80
+
81
+ Disable an individual item with `[disabled]="true"` on `AccordionItem`.
82
+
83
+ ```ts
84
+ const disabledOpen = signal<string | string[] | null>('history');
85
+
86
+ <Accordion [(value)]="disabledOpen" type="single" class="w-full">
87
+ <AccordionItem value="history">...</AccordionItem>
88
+ <AccordionItem value="premium" [disabled]="true">...</AccordionItem>
89
+ <AccordionItem value="email">...</AccordionItem>
90
+ </Accordion>
91
+ ```
92
+
93
+ ### Bordered list
94
+
95
+ Add borders on the root and the items when the accordion should read like a boxed settings list.
96
+
97
+ ```ts
98
+ const borderOpen = signal<string | string[] | null>('billing');
99
+
100
+ <Accordion [(value)]="borderOpen" type="single" class="max-w-lg rounded-lg border">
101
+ <AccordionItem value="billing" class="border-b px-4 last:border-b-0">...</AccordionItem>
102
+ <AccordionItem value="security" class="border-b px-4 last:border-b-0">...</AccordionItem>
103
+ <AccordionItem value="integrations" class="border-b px-4 last:border-b-0">...</AccordionItem>
104
+ </Accordion>
105
+ ```
106
+
107
+ ### Inside a card
108
+
109
+ Accordion works well inside `Card` when the disclosure belongs to a larger billing or account surface.
110
+
111
+ ```ts
112
+ const cardOpen = signal<string | string[] | null>('plans');
113
+
114
+ <Card class="w-full max-w-sm">
115
+ <CardHeader>
116
+ <CardTitle>Subscription and billing</CardTitle>
117
+ <CardDescription>Common questions about plans, payments, and cancellations.</CardDescription>
118
+ </CardHeader>
119
+ <CardContent>
120
+ <Accordion [(value)]="cardOpen" type="single">
121
+ <AccordionItem value="plans">...</AccordionItem>
122
+ <AccordionItem value="billing">...</AccordionItem>
123
+ <AccordionItem value="cancel">...</AccordionItem>
124
+ </Accordion>
125
+ </CardContent>
126
+ </Card>
127
+ ```
128
+
129
+ ### RTL
130
+
131
+ For right-to-left interfaces, set `dir="rtl"` on a wrapping container or manage direction globally in the app shell. The Accordion structure itself does not change.
132
+
133
+ ```html
134
+ <section dir="rtl" lang="ar" class="max-w-md text-right">
135
+ <Accordion [(value)]="rtlOpen" type="single">
136
+ <AccordionItem value="item-1">...</AccordionItem>
137
+ <AccordionItem value="item-2">...</AccordionItem>
138
+ <AccordionItem value="item-3">...</AccordionItem>
139
+ </Accordion>
140
+ </section>
141
+ ```
142
+
143
+ ## API reference
144
+
145
+ ### `AccordionComponent`
146
+
147
+ | Input | Type | Default |
148
+ | --------------- | ---------------------------- | ---------- |
149
+ | `type` | `'single' \| 'multiple'` | `'single'` |
150
+ | `collapsible` | `boolean` | `true` |
151
+ | `value` (model) | `string \| string[] \| null` | `null` |
152
+ | `class` | `string` | `''` |
153
+
154
+ ### `AccordionItemComponent`
155
+
156
+ | Input | Type | Default |
157
+ | ---------- | --------- | ------- |
158
+ | `value` | `string` | — |
159
+ | `disabled` | `boolean` | `false` |
160
+ | `class` | `string` | `''` |
161
+
162
+ ### Parts
163
+
164
+ - `button[AccordionTrigger]` renders the interactive heading and manages `aria-controls` plus `aria-expanded`.
165
+ - `AccordionContent` renders the panel region and links back to the trigger with `aria-labelledby`.
166
+ - Lower-level primitive behavior is based on the Radix Accordion pattern: <https://www.radix-ui.com/primitives/docs/components/accordion#api-reference>.
167
+
168
+ ## Styling and theming
169
+
170
+ Pass `class` to the root or item parts to tune width, spacing, borders, and embedded-card layouts.
171
+
172
+ The component follows the shared library theme tokens, so standard utility classes such as `border`, `rounded-lg`, `bg-card`, `text-foreground`, and spacing utilities work as expected.
173
+
174
+ ## Accessibility
175
+
176
+ - Trigger has `aria-expanded` and `aria-controls` pointing at the content id.
177
+ - Content has `role="region"` and `aria-labelledby` pointing back at the trigger id.
178
+ - `disabled` items remain visible but non-interactive and are marked with `aria-disabled`.
179
+ - Keep trigger text descriptive and avoid placing nested interactive controls inside the trigger button.
180
+
181
+ ## Keyboard interactions
182
+
183
+ - Native button activation covers Enter and Space.
184
+ - Tab order follows the DOM order of the triggers and content.
185
+
186
+ ## Angular notes
187
+
188
+ - The component uses Angular signal-based `model()` binding for `value`.
189
+ - For `type="single"`, the value is a `string | null`.
190
+ - For `type="multiple"`, the value is a `string[] | null`.
191
+ - Seed the initial open state with a signal rather than a separate `defaultValue` prop.
192
+
193
+ ## Source parity
194
+
195
+ This Angular implementation follows the shadcn Accordion concepts while translating the examples to Angular selectors, standalone imports, and signal-friendly bindings.