@edsis/angular 22.1.6 → 22.2.8

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 (363) 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 +272 -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 +1282 -0
  69. package/fesm2022/edsis-angular-chart-line.mjs +544 -0
  70. package/fesm2022/edsis-angular-chart-pie.mjs +524 -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 +2 -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-BWWWaUgy.mjs +234 -0
  144. package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-Bx2bxTID.mjs +834 -0
  145. package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-Duzt1ffz.mjs +823 -0
  146. package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-cJ8Q1vM6.mjs +670 -0
  147. package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-CDQ1wt2_.mjs +689 -0
  148. package/fesm2022/edsis-angular-navigation-navigation-item.component-C1VzerJp.mjs +1522 -0
  149. package/fesm2022/edsis-angular-navigation-navigation-list.component-BPYLfrID.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 +1877 -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-page-core.mjs +315 -0
  160. package/fesm2022/edsis-angular-theme-page-filter.mjs +409 -0
  161. package/fesm2022/edsis-angular-theme-page-overview.mjs +88 -0
  162. package/fesm2022/edsis-angular-theme-page-root.mjs +693 -0
  163. package/fesm2022/edsis-angular-theme-page-side.mjs +342 -0
  164. package/fesm2022/edsis-angular-theme-page-slots.mjs +258 -0
  165. package/fesm2022/edsis-angular-theme-page.mjs +7 -0
  166. package/fesm2022/edsis-angular-theme-shell-services.mjs +231 -0
  167. package/fesm2022/edsis-angular-theme-shell-types.mjs +102 -0
  168. package/fesm2022/edsis-angular-theme-shell.mjs +1352 -0
  169. package/fesm2022/edsis-angular-theme-styles.mjs +572 -0
  170. package/fesm2022/edsis-angular-theme.mjs +0 -0
  171. package/fesm2022/edsis-angular.mjs +5 -8
  172. package/navigation/README.md +576 -0
  173. package/package.json +477 -52
  174. package/sdk/README.md +212 -0
  175. package/sdk/schematics/collection.json +20 -0
  176. package/sdk/schematics/init/index.js +83 -0
  177. package/sdk/schematics/init/schema.json +19 -0
  178. package/sdk/schematics/ng-add/index.js +147 -0
  179. package/sdk/schematics/ng-add/schema.json +14 -0
  180. package/sdk/schematics/package.json +3 -0
  181. package/sdk/schematics/sdk/index.js +175 -0
  182. package/sdk/schematics/sdk/schema.json +19 -0
  183. package/sdk/sdk.config.example.json +24 -0
  184. package/sdk/src/config/loader.js +43 -0
  185. package/sdk/src/config/schema.js +59 -0
  186. package/sdk/src/emit/client.js +251 -0
  187. package/sdk/src/emit/metadata.js +310 -0
  188. package/sdk/src/emit/models.js +104 -0
  189. package/sdk/src/emit/navigation.js +56 -0
  190. package/sdk/src/emit/operations.js +118 -0
  191. package/sdk/src/emit/public-api.js +54 -0
  192. package/sdk/src/emit/services.js +110 -0
  193. package/sdk/src/engine.js +67 -0
  194. package/sdk/src/layout/per-domain.js +360 -0
  195. package/sdk/src/package.json +3 -0
  196. package/sdk/src/parser/bundle.js +25 -0
  197. package/sdk/src/parser/ir.js +429 -0
  198. package/sdk/src/parser/types.js +7 -0
  199. package/sdk/src/render/template.js +152 -0
  200. package/sdk/src/writer/index.js +286 -0
  201. package/theme/README.md +120 -0
  202. package/theme/component/settings/README.md +154 -0
  203. package/theme/layout/README.md +604 -0
  204. package/theme/page/README.md +505 -0
  205. package/theme/shell/README.md +344 -0
  206. package/theme/styles/README.md +202 -0
  207. package/theme/styles/css/base/components.css +577 -0
  208. package/theme/styles/css/base/index.css +14 -0
  209. package/theme/styles/css/base/package.css +9 -0
  210. package/theme/styles/css/base/prefers-dark.css +86 -0
  211. package/theme/styles/css/base/print.css +62 -0
  212. package/theme/styles/css/base/status.css +38 -0
  213. package/theme/styles/css/base/tailwind.css +208 -0
  214. package/theme/styles/css/base/theme.css +353 -0
  215. package/theme/styles/css/base/tokens.css +388 -0
  216. package/theme/styles/css/color/amber.css +72 -0
  217. package/theme/styles/css/color/blue.css +72 -0
  218. package/theme/styles/css/color/brand.css +38 -0
  219. package/theme/styles/css/color/cyan.css +72 -0
  220. package/theme/styles/css/color/emerald.css +72 -0
  221. package/theme/styles/css/color/fuchsia.css +72 -0
  222. package/theme/styles/css/color/green.css +72 -0
  223. package/theme/styles/css/color/index.css +19 -0
  224. package/theme/styles/css/color/indigo.css +72 -0
  225. package/theme/styles/css/color/lime.css +72 -0
  226. package/theme/styles/css/color/orange.css +72 -0
  227. package/theme/styles/css/color/pink.css +72 -0
  228. package/theme/styles/css/color/purple.css +72 -0
  229. package/theme/styles/css/color/red.css +72 -0
  230. package/theme/styles/css/color/rose.css +72 -0
  231. package/theme/styles/css/color/sky.css +72 -0
  232. package/theme/styles/css/color/teal.css +72 -0
  233. package/theme/styles/css/color/violet.css +72 -0
  234. package/theme/styles/css/color/yellow.css +72 -0
  235. package/theme/styles/css/fonts.css +85 -0
  236. package/theme/styles/css/index.css +18 -0
  237. package/theme/styles/css/neutral/gray.css +63 -0
  238. package/theme/styles/css/neutral/index.css +11 -0
  239. package/theme/styles/css/neutral/mauve.css +63 -0
  240. package/theme/styles/css/neutral/mist.css +63 -0
  241. package/theme/styles/css/neutral/neutral.css +63 -0
  242. package/theme/styles/css/neutral/olive.css +63 -0
  243. package/theme/styles/css/neutral/slate.css +63 -0
  244. package/theme/styles/css/neutral/stone.css +63 -0
  245. package/theme/styles/css/neutral/taupe.css +63 -0
  246. package/theme/styles/css/neutral/zinc.css +63 -0
  247. package/theme/styles/css/radius/index.css +30 -0
  248. package/theme/styles/css/space/index.css +20 -0
  249. package/types/edsis-angular-chart-area.d.ts +139 -0
  250. package/types/edsis-angular-chart-bar.d.ts +291 -0
  251. package/types/edsis-angular-chart-core.d.ts +822 -0
  252. package/types/edsis-angular-chart-line.d.ts +148 -0
  253. package/types/edsis-angular-chart-pie.d.ts +202 -0
  254. package/types/edsis-angular-chart-primitives.d.ts +360 -0
  255. package/types/edsis-angular-chart-radar.d.ts +198 -0
  256. package/types/edsis-angular-chart-radial.d.ts +187 -0
  257. package/types/edsis-angular-chart-scatter.d.ts +181 -0
  258. package/types/edsis-angular-chart.d.ts +3 -0
  259. package/types/edsis-angular-component-accordion.d.ts +139 -0
  260. package/types/edsis-angular-component-alert-dialog.d.ts +288 -0
  261. package/types/edsis-angular-component-alert.d.ts +72 -0
  262. package/types/edsis-angular-component-aspect-ratio.d.ts +20 -0
  263. package/types/edsis-angular-component-avatar.d.ts +111 -0
  264. package/types/edsis-angular-component-badge.d.ts +36 -0
  265. package/types/edsis-angular-component-breadcrumb.d.ts +85 -0
  266. package/types/edsis-angular-component-button-group.d.ts +50 -0
  267. package/types/edsis-angular-component-button.d.ts +44 -0
  268. package/types/edsis-angular-component-calendar.d.ts +150 -0
  269. package/types/edsis-angular-component-card.d.ts +123 -0
  270. package/types/edsis-angular-component-carousel.d.ts +155 -0
  271. package/types/edsis-angular-component-checkbox.d.ts +100 -0
  272. package/types/edsis-angular-component-collapsible.d.ts +68 -0
  273. package/types/edsis-angular-component-combobox.d.ts +105 -0
  274. package/types/edsis-angular-component-command.d.ts +215 -0
  275. package/types/edsis-angular-component-composer.d.ts +190 -0
  276. package/types/edsis-angular-component-context-menu.d.ts +64 -0
  277. package/types/edsis-angular-component-date-picker.d.ts +199 -0
  278. package/types/edsis-angular-component-dialog.d.ts +231 -0
  279. package/types/edsis-angular-component-drawer.d.ts +2 -0
  280. package/types/edsis-angular-component-dropdown-menu.d.ts +370 -0
  281. package/types/edsis-angular-component-editor.d.ts +234 -0
  282. package/types/edsis-angular-component-empty.d.ts +85 -0
  283. package/types/edsis-angular-component-form.d.ts +223 -0
  284. package/types/edsis-angular-component-hover-card.d.ts +133 -0
  285. package/types/edsis-angular-component-icon.d.ts +90 -0
  286. package/types/edsis-angular-component-input-group.d.ts +98 -0
  287. package/types/edsis-angular-component-input-otp.d.ts +249 -0
  288. package/types/edsis-angular-component-input.d.ts +31 -0
  289. package/types/edsis-angular-component-item.d.ts +169 -0
  290. package/types/edsis-angular-component-kanban.d.ts +165 -0
  291. package/types/edsis-angular-component-kbd.d.ts +25 -0
  292. package/types/edsis-angular-component-label.d.ts +19 -0
  293. package/types/edsis-angular-component-menubar.d.ts +123 -0
  294. package/types/edsis-angular-component-native-select.d.ts +39 -0
  295. package/types/edsis-angular-component-navigation-menu.d.ts +163 -0
  296. package/types/edsis-angular-component-pagination.d.ts +83 -0
  297. package/types/edsis-angular-component-pillbox.d.ts +380 -0
  298. package/types/edsis-angular-component-popover.d.ts +96 -0
  299. package/types/edsis-angular-component-progress.d.ts +45 -0
  300. package/types/edsis-angular-component-radio.d.ts +137 -0
  301. package/types/edsis-angular-component-resizable.d.ts +166 -0
  302. package/types/edsis-angular-component-scroll-area.d.ts +37 -0
  303. package/types/edsis-angular-component-segmented-control.d.ts +102 -0
  304. package/types/edsis-angular-component-select.d.ts +138 -0
  305. package/types/edsis-angular-component-separator.d.ts +26 -0
  306. package/types/edsis-angular-component-sheet.d.ts +240 -0
  307. package/types/edsis-angular-component-skeleton.d.ts +13 -0
  308. package/types/edsis-angular-component-slider.d.ts +148 -0
  309. package/types/edsis-angular-component-spinner.d.ts +31 -0
  310. package/types/edsis-angular-component-switch.d.ts +101 -0
  311. package/types/edsis-angular-component-table.d.ts +109 -0
  312. package/types/edsis-angular-component-tabs.d.ts +183 -0
  313. package/types/edsis-angular-component-textarea.d.ts +27 -0
  314. package/types/edsis-angular-component-timeline.d.ts +146 -0
  315. package/types/edsis-angular-component-toast.d.ts +60 -0
  316. package/types/edsis-angular-component-toggle-group.d.ts +161 -0
  317. package/types/edsis-angular-component-toggle.d.ts +47 -0
  318. package/types/edsis-angular-component-tooltip.d.ts +233 -0
  319. package/types/edsis-angular-component-utils-core.d.ts +175 -0
  320. package/types/edsis-angular-component-utils-overlay.d.ts +17 -0
  321. package/types/edsis-angular-component-utils-scale.d.ts +27 -0
  322. package/types/edsis-angular-component-utils.d.ts +2 -0
  323. package/types/edsis-angular-component.d.ts +1 -0
  324. package/types/edsis-angular-navigation-core.d.ts +55 -0
  325. package/types/edsis-angular-navigation-icon.d.ts +9 -0
  326. package/types/edsis-angular-navigation-service.d.ts +121 -0
  327. package/types/edsis-angular-navigation-types.d.ts +185 -0
  328. package/types/edsis-angular-navigation.d.ts +862 -0
  329. package/types/edsis-angular-sdk.d.ts +87 -0
  330. package/types/edsis-angular-theme-component-settings.d.ts +205 -0
  331. package/types/edsis-angular-theme-layout-services.d.ts +143 -0
  332. package/types/edsis-angular-theme-layout-types.d.ts +36 -0
  333. package/types/edsis-angular-theme-layout-wrapper.d.ts +670 -0
  334. package/types/edsis-angular-theme-layout.d.ts +218 -0
  335. package/types/edsis-angular-theme-page-core.d.ts +151 -0
  336. package/types/edsis-angular-theme-page-filter.d.ts +127 -0
  337. package/types/edsis-angular-theme-page-overview.d.ts +28 -0
  338. package/types/edsis-angular-theme-page-root.d.ts +172 -0
  339. package/types/edsis-angular-theme-page-side.d.ts +90 -0
  340. package/types/edsis-angular-theme-page-slots.d.ts +61 -0
  341. package/types/edsis-angular-theme-page.d.ts +7 -0
  342. package/types/edsis-angular-theme-shell-services.d.ts +188 -0
  343. package/types/edsis-angular-theme-shell-types.d.ts +102 -0
  344. package/types/edsis-angular-theme-shell.d.ts +178 -0
  345. package/types/edsis-angular-theme-styles.d.ts +295 -0
  346. package/types/edsis-angular-theme.d.ts +1 -0
  347. package/types/edsis-angular.d.ts +5 -2
  348. package/fesm2022/edsis-angular-block-shell.mjs +0 -1329
  349. package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
  350. package/fesm2022/edsis-angular-block-themes.mjs +0 -1007
  351. package/fesm2022/edsis-angular-block-themes.mjs.map +0 -1
  352. package/fesm2022/edsis-angular-module-auth.mjs +0 -2582
  353. package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
  354. package/fesm2022/edsis-angular-platform-mfe.mjs +0 -329
  355. package/fesm2022/edsis-angular-platform-mfe.mjs.map +0 -1
  356. package/fesm2022/edsis-angular-services-runtime.mjs +0 -385
  357. package/fesm2022/edsis-angular-services-runtime.mjs.map +0 -1
  358. package/fesm2022/edsis-angular.mjs.map +0 -1
  359. package/types/edsis-angular-block-shell.d.ts +0 -190
  360. package/types/edsis-angular-block-themes.d.ts +0 -94
  361. package/types/edsis-angular-module-auth.d.ts +0 -533
  362. package/types/edsis-angular-platform-mfe.d.ts +0 -126
  363. package/types/edsis-angular-services-runtime.d.ts +0 -118
@@ -0,0 +1,821 @@
1
+ import * as i0 from "@angular/core";
2
+ import { Component, Directive, Service, booleanAttribute, computed, effect, inject, input, signal } from "@angular/core";
3
+ import { cn, injectUniqueId } from "@edsis/angular/component/utils/core";
4
+ import { NgControl } from "@angular/forms";
5
+ var FormFieldContext = class FormFieldContext {
6
+ controlId = injectUniqueId("FormField");
7
+ labelId = `${this.controlId}-label`;
8
+ descriptionId = `${this.controlId}-description`;
9
+ messageId = `${this.controlId}-message`;
10
+ control = signal(null, ...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
11
+ manualInvalid = signal(false, ...ngDevMode ? [{ debugName: "manualInvalid" }] : /* istanbul ignore next */ []);
12
+ hasLabel = signal(false, ...ngDevMode ? [{ debugName: "hasLabel" }] : /* istanbul ignore next */ []);
13
+ hasDescription = signal(false, ...ngDevMode ? [{ debugName: "hasDescription" }] : /* istanbul ignore next */ []);
14
+ hasMessage = signal(false, ...ngDevMode ? [{ debugName: "hasMessage" }] : /* istanbul ignore next */ []);
15
+ labelledBy = computed(() => this.hasLabel() ? this.labelId : null, ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
16
+ statusTick = signal(0, ...ngDevMode ? [{ debugName: "statusTick" }] : /* istanbul ignore next */ []);
17
+ invalid = computed(() => {
18
+ this.statusTick();
19
+ const c = this.control();
20
+ return this.manualInvalid() || !!c && c.invalid && (c.touched || c.dirty);
21
+ }, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
22
+ firstError = computed(() => {
23
+ this.statusTick();
24
+ const c = this.control();
25
+ if (!c?.errors) return null;
26
+ const keys = Object.keys(c.errors);
27
+ return keys.length > 0 ? keys[0] : null;
28
+ }, ...ngDevMode ? [{ debugName: "firstError" }] : /* istanbul ignore next */ []);
29
+ describedBy = computed(() => {
30
+ const parts = [];
31
+ if (this.hasDescription()) parts.push(this.descriptionId);
32
+ if (this.hasMessage() && this.invalid()) parts.push(this.messageId);
33
+ return parts.length > 0 ? parts.join(" ") : null;
34
+ }, ...ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []);
35
+ constructor() {
36
+ effect((onCleanup) => {
37
+ const c = this.control();
38
+ if (!c) return;
39
+ const events = c.events;
40
+ if (!events) return;
41
+ const sub = events.subscribe(() => this.statusTick.update((n) => n + 1));
42
+ onCleanup(() => sub.unsubscribe());
43
+ });
44
+ }
45
+ static ɵfac = i0.ɵɵngDeclareFactory({
46
+ minVersion: "12.0.0",
47
+ version: "22.2.3",
48
+ ngImport: i0,
49
+ type: FormFieldContext,
50
+ deps: [],
51
+ target: i0.ɵɵFactoryTarget.Service
52
+ });
53
+ static ɵprov = i0.ɵɵngDeclareService({
54
+ minVersion: "22.0.0",
55
+ version: "22.2.3",
56
+ ngImport: i0,
57
+ type: FormFieldContext,
58
+ autoProvided: false
59
+ });
60
+ };
61
+ i0.ɵɵngDeclareClassMetadata({
62
+ minVersion: "12.0.0",
63
+ version: "22.2.3",
64
+ ngImport: i0,
65
+ type: FormFieldContext,
66
+ decorators: [{
67
+ type: Service,
68
+ args: [{ autoProvided: false }]
69
+ }],
70
+ ctorParameters: () => []
71
+ });
72
+ var FormFieldComponent = class FormFieldComponent {
73
+ ctx = inject(FormFieldContext);
74
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
75
+ orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
76
+ invalid = input(false, {
77
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
78
+ transform: booleanAttribute
79
+ });
80
+ classes = computed(() => {
81
+ const orientation = this.orientation();
82
+ return cn("block min-w-0", orientation === "vertical" && "flex flex-col gap-2", orientation === "horizontal" && "flex items-start gap-3", orientation === "responsive" && "flex flex-col gap-3 sm:grid sm:grid-cols-[minmax(0,12rem)_minmax(0,1fr)] sm:items-start", this.class());
83
+ }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
84
+ constructor() {
85
+ effect(() => this.ctx.manualInvalid.set(this.invalid()));
86
+ }
87
+ static ɵfac = i0.ɵɵngDeclareFactory({
88
+ minVersion: "12.0.0",
89
+ version: "22.2.3",
90
+ ngImport: i0,
91
+ type: FormFieldComponent,
92
+ deps: [],
93
+ target: i0.ɵɵFactoryTarget.Component
94
+ });
95
+ static ɵcmp = i0.ɵɵngDeclareComponent({
96
+ minVersion: "17.1.0",
97
+ version: "22.2.3",
98
+ type: FormFieldComponent,
99
+ isStandalone: true,
100
+ selector: "FormField",
101
+ inputs: {
102
+ class: {
103
+ classPropertyName: "class",
104
+ publicName: "class",
105
+ isSignal: true,
106
+ isRequired: false,
107
+ transformFunction: null
108
+ },
109
+ orientation: {
110
+ classPropertyName: "orientation",
111
+ publicName: "orientation",
112
+ isSignal: true,
113
+ isRequired: false,
114
+ transformFunction: null
115
+ },
116
+ invalid: {
117
+ classPropertyName: "invalid",
118
+ publicName: "invalid",
119
+ isSignal: true,
120
+ isRequired: false,
121
+ transformFunction: null
122
+ }
123
+ },
124
+ host: { properties: {
125
+ "class": "classes()",
126
+ "attr.data-orientation": "orientation()",
127
+ "attr.data-invalid": "ctx.invalid() ? \"\" : null",
128
+ "attr.role": "\"group\""
129
+ } },
130
+ providers: [FormFieldContext],
131
+ ngImport: i0,
132
+ template: `<ng-content />`,
133
+ isInline: true
134
+ });
135
+ };
136
+ i0.ɵɵngDeclareClassMetadata({
137
+ minVersion: "12.0.0",
138
+ version: "22.2.3",
139
+ ngImport: i0,
140
+ type: FormFieldComponent,
141
+ decorators: [{
142
+ type: Component,
143
+ args: [{
144
+ selector: "FormField",
145
+ providers: [FormFieldContext],
146
+ host: {
147
+ "[class]": "classes()",
148
+ "[attr.data-orientation]": "orientation()",
149
+ "[attr.data-invalid]": "ctx.invalid() ? \"\" : null",
150
+ "[attr.role]": "\"group\""
151
+ },
152
+ template: `<ng-content />`
153
+ }]
154
+ }],
155
+ ctorParameters: () => [],
156
+ propDecorators: {
157
+ class: [{
158
+ type: i0.Input,
159
+ args: [{
160
+ isSignal: true,
161
+ alias: "class",
162
+ required: false
163
+ }]
164
+ }],
165
+ orientation: [{
166
+ type: i0.Input,
167
+ args: [{
168
+ isSignal: true,
169
+ alias: "orientation",
170
+ required: false
171
+ }]
172
+ }],
173
+ invalid: [{
174
+ type: i0.Input,
175
+ args: [{
176
+ isSignal: true,
177
+ alias: "invalid",
178
+ required: false
179
+ }]
180
+ }]
181
+ }
182
+ });
183
+ var FormFieldsetComponent = class FormFieldsetComponent {
184
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
185
+ classes = computed(() => cn("block min-w-0 border-0 p-0 m-0", "grid gap-4", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
186
+ static ɵfac = i0.ɵɵngDeclareFactory({
187
+ minVersion: "12.0.0",
188
+ version: "22.2.3",
189
+ ngImport: i0,
190
+ type: FormFieldsetComponent,
191
+ deps: [],
192
+ target: i0.ɵɵFactoryTarget.Component
193
+ });
194
+ static ɵcmp = i0.ɵɵngDeclareComponent({
195
+ minVersion: "17.1.0",
196
+ version: "22.2.3",
197
+ type: FormFieldsetComponent,
198
+ isStandalone: true,
199
+ selector: "FormFieldset, fieldset[FormFieldset]",
200
+ inputs: { class: {
201
+ classPropertyName: "class",
202
+ publicName: "class",
203
+ isSignal: true,
204
+ isRequired: false,
205
+ transformFunction: null
206
+ } },
207
+ host: { properties: { "class": "classes()" } },
208
+ ngImport: i0,
209
+ template: `<ng-content />`,
210
+ isInline: true
211
+ });
212
+ };
213
+ i0.ɵɵngDeclareClassMetadata({
214
+ minVersion: "12.0.0",
215
+ version: "22.2.3",
216
+ ngImport: i0,
217
+ type: FormFieldsetComponent,
218
+ decorators: [{
219
+ type: Component,
220
+ args: [{
221
+ selector: "FormFieldset, fieldset[FormFieldset]",
222
+ host: { "[class]": "classes()" },
223
+ template: `<ng-content />`
224
+ }]
225
+ }],
226
+ propDecorators: { class: [{
227
+ type: i0.Input,
228
+ args: [{
229
+ isSignal: true,
230
+ alias: "class",
231
+ required: false
232
+ }]
233
+ }] }
234
+ });
235
+ var FormLegendComponent = class FormLegendComponent {
236
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
237
+ variant = input("legend", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
238
+ classes = computed(() => cn("block min-w-0 text-foreground", this.variant() === "label" ? "text-sm font-medium leading-none" : "text-sm font-semibold leading-none", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
239
+ static ɵfac = i0.ɵɵngDeclareFactory({
240
+ minVersion: "12.0.0",
241
+ version: "22.2.3",
242
+ ngImport: i0,
243
+ type: FormLegendComponent,
244
+ deps: [],
245
+ target: i0.ɵɵFactoryTarget.Component
246
+ });
247
+ static ɵcmp = i0.ɵɵngDeclareComponent({
248
+ minVersion: "17.1.0",
249
+ version: "22.2.3",
250
+ type: FormLegendComponent,
251
+ isStandalone: true,
252
+ selector: "FormLegend, legend[FormLegend]",
253
+ inputs: {
254
+ class: {
255
+ classPropertyName: "class",
256
+ publicName: "class",
257
+ isSignal: true,
258
+ isRequired: false,
259
+ transformFunction: null
260
+ },
261
+ variant: {
262
+ classPropertyName: "variant",
263
+ publicName: "variant",
264
+ isSignal: true,
265
+ isRequired: false,
266
+ transformFunction: null
267
+ }
268
+ },
269
+ host: { properties: { "class": "classes()" } },
270
+ ngImport: i0,
271
+ template: `<ng-content />`,
272
+ isInline: true
273
+ });
274
+ };
275
+ i0.ɵɵngDeclareClassMetadata({
276
+ minVersion: "12.0.0",
277
+ version: "22.2.3",
278
+ ngImport: i0,
279
+ type: FormLegendComponent,
280
+ decorators: [{
281
+ type: Component,
282
+ args: [{
283
+ selector: "FormLegend, legend[FormLegend]",
284
+ host: { "[class]": "classes()" },
285
+ template: `<ng-content />`
286
+ }]
287
+ }],
288
+ propDecorators: {
289
+ class: [{
290
+ type: i0.Input,
291
+ args: [{
292
+ isSignal: true,
293
+ alias: "class",
294
+ required: false
295
+ }]
296
+ }],
297
+ variant: [{
298
+ type: i0.Input,
299
+ args: [{
300
+ isSignal: true,
301
+ alias: "variant",
302
+ required: false
303
+ }]
304
+ }]
305
+ }
306
+ });
307
+ var FormGroupComponent = class FormGroupComponent {
308
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
309
+ classes = computed(() => cn("block min-w-0", "grid gap-6", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
310
+ static ɵfac = i0.ɵɵngDeclareFactory({
311
+ minVersion: "12.0.0",
312
+ version: "22.2.3",
313
+ ngImport: i0,
314
+ type: FormGroupComponent,
315
+ deps: [],
316
+ target: i0.ɵɵFactoryTarget.Component
317
+ });
318
+ static ɵcmp = i0.ɵɵngDeclareComponent({
319
+ minVersion: "17.1.0",
320
+ version: "22.2.3",
321
+ type: FormGroupComponent,
322
+ isStandalone: true,
323
+ selector: "FormGroup",
324
+ inputs: { class: {
325
+ classPropertyName: "class",
326
+ publicName: "class",
327
+ isSignal: true,
328
+ isRequired: false,
329
+ transformFunction: null
330
+ } },
331
+ host: { properties: { "class": "classes()" } },
332
+ ngImport: i0,
333
+ template: `<ng-content />`,
334
+ isInline: true
335
+ });
336
+ };
337
+ i0.ɵɵngDeclareClassMetadata({
338
+ minVersion: "12.0.0",
339
+ version: "22.2.3",
340
+ ngImport: i0,
341
+ type: FormGroupComponent,
342
+ decorators: [{
343
+ type: Component,
344
+ args: [{
345
+ selector: "FormGroup",
346
+ host: { "[class]": "classes()" },
347
+ template: `<ng-content />`
348
+ }]
349
+ }],
350
+ propDecorators: { class: [{
351
+ type: i0.Input,
352
+ args: [{
353
+ isSignal: true,
354
+ alias: "class",
355
+ required: false
356
+ }]
357
+ }] }
358
+ });
359
+ var FormSeparatorComponent = class FormSeparatorComponent {
360
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
361
+ classes = computed(() => cn("block min-w-0", "flex items-center gap-3 text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground", "before:h-px before:flex-1 before:bg-border after:h-px after:flex-1 after:bg-border", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
362
+ static ɵfac = i0.ɵɵngDeclareFactory({
363
+ minVersion: "12.0.0",
364
+ version: "22.2.3",
365
+ ngImport: i0,
366
+ type: FormSeparatorComponent,
367
+ deps: [],
368
+ target: i0.ɵɵFactoryTarget.Component
369
+ });
370
+ static ɵcmp = i0.ɵɵngDeclareComponent({
371
+ minVersion: "17.1.0",
372
+ version: "22.2.3",
373
+ type: FormSeparatorComponent,
374
+ isStandalone: true,
375
+ selector: "FormSeparator",
376
+ inputs: { class: {
377
+ classPropertyName: "class",
378
+ publicName: "class",
379
+ isSignal: true,
380
+ isRequired: false,
381
+ transformFunction: null
382
+ } },
383
+ host: { properties: { "class": "classes()" } },
384
+ ngImport: i0,
385
+ template: `<span class="shrink-0"><ng-content /></span>`,
386
+ isInline: true
387
+ });
388
+ };
389
+ i0.ɵɵngDeclareClassMetadata({
390
+ minVersion: "12.0.0",
391
+ version: "22.2.3",
392
+ ngImport: i0,
393
+ type: FormSeparatorComponent,
394
+ decorators: [{
395
+ type: Component,
396
+ args: [{
397
+ selector: "FormSeparator",
398
+ host: { "[class]": "classes()" },
399
+ template: `<span class="shrink-0"><ng-content /></span>`
400
+ }]
401
+ }],
402
+ propDecorators: { class: [{
403
+ type: i0.Input,
404
+ args: [{
405
+ isSignal: true,
406
+ alias: "class",
407
+ required: false
408
+ }]
409
+ }] }
410
+ });
411
+ var FormContentComponent = class FormContentComponent {
412
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
413
+ classes = computed(() => cn("block min-w-0 flex-1", "grid gap-1.5", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
414
+ static ɵfac = i0.ɵɵngDeclareFactory({
415
+ minVersion: "12.0.0",
416
+ version: "22.2.3",
417
+ ngImport: i0,
418
+ type: FormContentComponent,
419
+ deps: [],
420
+ target: i0.ɵɵFactoryTarget.Component
421
+ });
422
+ static ɵcmp = i0.ɵɵngDeclareComponent({
423
+ minVersion: "17.1.0",
424
+ version: "22.2.3",
425
+ type: FormContentComponent,
426
+ isStandalone: true,
427
+ selector: "FormContent",
428
+ inputs: { class: {
429
+ classPropertyName: "class",
430
+ publicName: "class",
431
+ isSignal: true,
432
+ isRequired: false,
433
+ transformFunction: null
434
+ } },
435
+ host: { properties: { "class": "classes()" } },
436
+ ngImport: i0,
437
+ template: `<ng-content />`,
438
+ isInline: true
439
+ });
440
+ };
441
+ i0.ɵɵngDeclareClassMetadata({
442
+ minVersion: "12.0.0",
443
+ version: "22.2.3",
444
+ ngImport: i0,
445
+ type: FormContentComponent,
446
+ decorators: [{
447
+ type: Component,
448
+ args: [{
449
+ selector: "FormContent",
450
+ host: { "[class]": "classes()" },
451
+ template: `<ng-content />`
452
+ }]
453
+ }],
454
+ propDecorators: { class: [{
455
+ type: i0.Input,
456
+ args: [{
457
+ isSignal: true,
458
+ alias: "class",
459
+ required: false
460
+ }]
461
+ }] }
462
+ });
463
+ var FormTitleComponent = class FormTitleComponent {
464
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
465
+ classes = computed(() => cn("block text-sm font-medium leading-none text-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
466
+ static ɵfac = i0.ɵɵngDeclareFactory({
467
+ minVersion: "12.0.0",
468
+ version: "22.2.3",
469
+ ngImport: i0,
470
+ type: FormTitleComponent,
471
+ deps: [],
472
+ target: i0.ɵɵFactoryTarget.Component
473
+ });
474
+ static ɵcmp = i0.ɵɵngDeclareComponent({
475
+ minVersion: "17.1.0",
476
+ version: "22.2.3",
477
+ type: FormTitleComponent,
478
+ isStandalone: true,
479
+ selector: "FormTitle",
480
+ inputs: { class: {
481
+ classPropertyName: "class",
482
+ publicName: "class",
483
+ isSignal: true,
484
+ isRequired: false,
485
+ transformFunction: null
486
+ } },
487
+ host: { properties: { "class": "classes()" } },
488
+ ngImport: i0,
489
+ template: `<ng-content />`,
490
+ isInline: true
491
+ });
492
+ };
493
+ i0.ɵɵngDeclareClassMetadata({
494
+ minVersion: "12.0.0",
495
+ version: "22.2.3",
496
+ ngImport: i0,
497
+ type: FormTitleComponent,
498
+ decorators: [{
499
+ type: Component,
500
+ args: [{
501
+ selector: "FormTitle",
502
+ host: { "[class]": "classes()" },
503
+ template: `<ng-content />`
504
+ }]
505
+ }],
506
+ propDecorators: { class: [{
507
+ type: i0.Input,
508
+ args: [{
509
+ isSignal: true,
510
+ alias: "class",
511
+ required: false
512
+ }]
513
+ }] }
514
+ });
515
+ var FormLabelComponent = class FormLabelComponent {
516
+ ctx = inject(FormFieldContext);
517
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
518
+ classes = computed(() => cn("text-sm font-medium leading-none", this.ctx.invalid() ? "text-destructive" : "text-foreground", "peer-disabled:cursor-not-allowed peer-disabled:opacity-70", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
519
+ ngOnInit() {
520
+ this.ctx.hasLabel.set(true);
521
+ }
522
+ ngOnDestroy() {
523
+ this.ctx.hasLabel.set(false);
524
+ }
525
+ static ɵfac = i0.ɵɵngDeclareFactory({
526
+ minVersion: "12.0.0",
527
+ version: "22.2.3",
528
+ ngImport: i0,
529
+ type: FormLabelComponent,
530
+ deps: [],
531
+ target: i0.ɵɵFactoryTarget.Component
532
+ });
533
+ static ɵcmp = i0.ɵɵngDeclareComponent({
534
+ minVersion: "17.1.0",
535
+ version: "22.2.3",
536
+ type: FormLabelComponent,
537
+ isStandalone: true,
538
+ selector: "FormLabel, label[FormLabel]",
539
+ inputs: { class: {
540
+ classPropertyName: "class",
541
+ publicName: "class",
542
+ isSignal: true,
543
+ isRequired: false,
544
+ transformFunction: null
545
+ } },
546
+ host: { properties: {
547
+ "class": "classes()",
548
+ "attr.id": "ctx.labelId",
549
+ "attr.for": "ctx.controlId"
550
+ } },
551
+ ngImport: i0,
552
+ template: `<ng-content />`,
553
+ isInline: true
554
+ });
555
+ };
556
+ i0.ɵɵngDeclareClassMetadata({
557
+ minVersion: "12.0.0",
558
+ version: "22.2.3",
559
+ ngImport: i0,
560
+ type: FormLabelComponent,
561
+ decorators: [{
562
+ type: Component,
563
+ args: [{
564
+ selector: "FormLabel, label[FormLabel]",
565
+ host: {
566
+ "[class]": "classes()",
567
+ "[attr.id]": "ctx.labelId",
568
+ "[attr.for]": "ctx.controlId"
569
+ },
570
+ template: `<ng-content />`
571
+ }]
572
+ }],
573
+ propDecorators: { class: [{
574
+ type: i0.Input,
575
+ args: [{
576
+ isSignal: true,
577
+ alias: "class",
578
+ required: false
579
+ }]
580
+ }] }
581
+ });
582
+ var FormDescriptionComponent = class FormDescriptionComponent {
583
+ ctx = inject(FormFieldContext, { optional: true });
584
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
585
+ classes = computed(() => cn("text-sm text-muted-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
586
+ descriptionId = computed(() => this.ctx?.descriptionId ?? null, ...ngDevMode ? [{ debugName: "descriptionId" }] : /* istanbul ignore next */ []);
587
+ ngOnInit() {
588
+ this.ctx?.hasDescription.set(true);
589
+ }
590
+ ngOnDestroy() {
591
+ this.ctx?.hasDescription.set(false);
592
+ }
593
+ static ɵfac = i0.ɵɵngDeclareFactory({
594
+ minVersion: "12.0.0",
595
+ version: "22.2.3",
596
+ ngImport: i0,
597
+ type: FormDescriptionComponent,
598
+ deps: [],
599
+ target: i0.ɵɵFactoryTarget.Component
600
+ });
601
+ static ɵcmp = i0.ɵɵngDeclareComponent({
602
+ minVersion: "17.1.0",
603
+ version: "22.2.3",
604
+ type: FormDescriptionComponent,
605
+ isStandalone: true,
606
+ selector: "FormDescription, p[FormDescription]",
607
+ inputs: { class: {
608
+ classPropertyName: "class",
609
+ publicName: "class",
610
+ isSignal: true,
611
+ isRequired: false,
612
+ transformFunction: null
613
+ } },
614
+ host: { properties: {
615
+ "class": "classes()",
616
+ "attr.id": "descriptionId()"
617
+ } },
618
+ ngImport: i0,
619
+ template: `<ng-content />`,
620
+ isInline: true
621
+ });
622
+ };
623
+ i0.ɵɵngDeclareClassMetadata({
624
+ minVersion: "12.0.0",
625
+ version: "22.2.3",
626
+ ngImport: i0,
627
+ type: FormDescriptionComponent,
628
+ decorators: [{
629
+ type: Component,
630
+ args: [{
631
+ selector: "FormDescription, p[FormDescription]",
632
+ host: {
633
+ "[class]": "classes()",
634
+ "[attr.id]": "descriptionId()"
635
+ },
636
+ template: `<ng-content />`
637
+ }]
638
+ }],
639
+ propDecorators: { class: [{
640
+ type: i0.Input,
641
+ args: [{
642
+ isSignal: true,
643
+ alias: "class",
644
+ required: false
645
+ }]
646
+ }] }
647
+ });
648
+ const numericConstraint = (value, key) => value && typeof value === "object" && key in value ? value[key] : void 0;
649
+ const defaultFormErrorMessageResolver = (errorKey, errorValue) => {
650
+ switch (errorKey) {
651
+ case "required": return "This field is required.";
652
+ case "requiredTrue": return "This option must be selected.";
653
+ case "email": return "Enter a valid email address.";
654
+ case "minlength": return `Enter at least ${numericConstraint(errorValue, "requiredLength")} characters.`;
655
+ case "maxlength": return `Enter no more than ${numericConstraint(errorValue, "requiredLength")} characters.`;
656
+ case "min": return `Enter a value greater than or equal to ${numericConstraint(errorValue, "min")}.`;
657
+ case "max": return `Enter a value less than or equal to ${numericConstraint(errorValue, "max")}.`;
658
+ case "pattern": return "Enter a value in the required format.";
659
+ default: return "Enter a valid value.";
660
+ }
661
+ };
662
+ var FormMessageComponent = class FormMessageComponent {
663
+ ctx = inject(FormFieldContext);
664
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
665
+ errorMessageResolver = input(defaultFormErrorMessageResolver, ...ngDevMode ? [{ debugName: "errorMessageResolver" }] : /* istanbul ignore next */ []);
666
+ show = computed(() => this.ctx.invalid(), ...ngDevMode ? [{ debugName: "show" }] : /* istanbul ignore next */ []);
667
+ message = computed(() => {
668
+ const errorKey = this.ctx.firstError();
669
+ const control = this.ctx.control();
670
+ if (!errorKey) return "";
671
+ return this.errorMessageResolver()(errorKey, control?.errors?.[errorKey], control);
672
+ }, ...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
673
+ classes = computed(() => cn("text-sm font-medium text-destructive", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
674
+ ngOnInit() {
675
+ this.ctx.hasMessage.set(true);
676
+ }
677
+ ngOnDestroy() {
678
+ this.ctx.hasMessage.set(false);
679
+ }
680
+ static ɵfac = i0.ɵɵngDeclareFactory({
681
+ minVersion: "12.0.0",
682
+ version: "22.2.3",
683
+ ngImport: i0,
684
+ type: FormMessageComponent,
685
+ deps: [],
686
+ target: i0.ɵɵFactoryTarget.Component
687
+ });
688
+ static ɵcmp = i0.ɵɵngDeclareComponent({
689
+ minVersion: "17.0.0",
690
+ version: "22.2.3",
691
+ type: FormMessageComponent,
692
+ isStandalone: true,
693
+ selector: "FormMessage, p[FormMessage]",
694
+ inputs: {
695
+ class: {
696
+ classPropertyName: "class",
697
+ publicName: "class",
698
+ isSignal: true,
699
+ isRequired: false,
700
+ transformFunction: null
701
+ },
702
+ errorMessageResolver: {
703
+ classPropertyName: "errorMessageResolver",
704
+ publicName: "errorMessageResolver",
705
+ isSignal: true,
706
+ isRequired: false,
707
+ transformFunction: null
708
+ }
709
+ },
710
+ host: { properties: {
711
+ "class": "classes()",
712
+ "attr.id": "ctx.messageId",
713
+ "attr.role": "\"status\""
714
+ } },
715
+ ngImport: i0,
716
+ template: `
717
+ @if (show()) {
718
+ <ng-content>{{ message() }}</ng-content>
719
+ }
720
+ `,
721
+ isInline: true
722
+ });
723
+ };
724
+ i0.ɵɵngDeclareClassMetadata({
725
+ minVersion: "12.0.0",
726
+ version: "22.2.3",
727
+ ngImport: i0,
728
+ type: FormMessageComponent,
729
+ decorators: [{
730
+ type: Component,
731
+ args: [{
732
+ selector: "FormMessage, p[FormMessage]",
733
+ host: {
734
+ "[class]": "classes()",
735
+ "[attr.id]": "ctx.messageId",
736
+ "[attr.role]": "\"status\""
737
+ },
738
+ template: `
739
+ @if (show()) {
740
+ <ng-content>{{ message() }}</ng-content>
741
+ }
742
+ `
743
+ }]
744
+ }],
745
+ propDecorators: {
746
+ class: [{
747
+ type: i0.Input,
748
+ args: [{
749
+ isSignal: true,
750
+ alias: "class",
751
+ required: false
752
+ }]
753
+ }],
754
+ errorMessageResolver: [{
755
+ type: i0.Input,
756
+ args: [{
757
+ isSignal: true,
758
+ alias: "errorMessageResolver",
759
+ required: false
760
+ }]
761
+ }]
762
+ }
763
+ });
764
+ var FormControlDirective = class FormControlDirective {
765
+ ctx = inject(FormFieldContext);
766
+ ngControl = inject(NgControl, {
767
+ optional: true,
768
+ self: true
769
+ });
770
+ ngOnInit() {
771
+ this.publishControl();
772
+ }
773
+ ngAfterViewInit() {
774
+ this.publishControl();
775
+ }
776
+ publishControl() {
777
+ const control = this.ngControl?.control ?? null;
778
+ if (control !== this.ctx.control()) this.ctx.control.set(control);
779
+ }
780
+ static ɵfac = i0.ɵɵngDeclareFactory({
781
+ minVersion: "12.0.0",
782
+ version: "22.2.3",
783
+ ngImport: i0,
784
+ type: FormControlDirective,
785
+ deps: [],
786
+ target: i0.ɵɵFactoryTarget.Directive
787
+ });
788
+ static ɵdir = i0.ɵɵngDeclareDirective({
789
+ minVersion: "14.0.0",
790
+ version: "22.2.3",
791
+ type: FormControlDirective,
792
+ isStandalone: true,
793
+ selector: "[FormControl]",
794
+ host: { properties: {
795
+ "attr.id": "ctx.controlId",
796
+ "attr.aria-labelledby": "ctx.labelledBy()",
797
+ "attr.aria-describedby": "ctx.describedBy()",
798
+ "attr.aria-invalid": "ctx.invalid() ? \"true\" : null"
799
+ } },
800
+ ngImport: i0
801
+ });
802
+ };
803
+ i0.ɵɵngDeclareClassMetadata({
804
+ minVersion: "12.0.0",
805
+ version: "22.2.3",
806
+ ngImport: i0,
807
+ type: FormControlDirective,
808
+ decorators: [{
809
+ type: Directive,
810
+ args: [{
811
+ selector: "[FormControl]",
812
+ host: {
813
+ "[attr.id]": "ctx.controlId",
814
+ "[attr.aria-labelledby]": "ctx.labelledBy()",
815
+ "[attr.aria-describedby]": "ctx.describedBy()",
816
+ "[attr.aria-invalid]": "ctx.invalid() ? \"true\" : null"
817
+ }
818
+ }]
819
+ }]
820
+ });
821
+ export { FormContentComponent, FormControlDirective, FormDescriptionComponent, FormFieldComponent, FormFieldContext, FormFieldsetComponent, FormGroupComponent, FormLabelComponent, FormLegendComponent, FormMessageComponent, FormSeparatorComponent, FormTitleComponent, defaultFormErrorMessageResolver };