@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,798 @@
1
+ import { Overlay } from "@angular/cdk/overlay";
2
+ import { TemplatePortal } from "@angular/cdk/portal";
3
+ import { FocusTrapFactory } from "@angular/cdk/a11y";
4
+ import * as i0 from "@angular/core";
5
+ import { Component, DestroyRef, Directive, ViewContainerRef, computed, effect, inject, input, model, output, signal, viewChild } from "@angular/core";
6
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
7
+ import { DOCUMENT } from "@angular/common";
8
+ import { filter } from "rxjs/operators";
9
+ import { ButtonComponent } from "@edsis/angular/component/button";
10
+ import { cn, injectUniqueId } from "@edsis/angular/component/utils/core";
11
+ import * as i1 from "@edsis/angular/component/utils/scale";
12
+ import { ComponentScaleDirective } from "@edsis/angular/component/utils/scale";
13
+ var DialogComponent = class DialogComponent {
14
+ componentScale = inject(ComponentScaleDirective);
15
+ radius = this.componentScale.radius;
16
+ density = this.componentScale.density;
17
+ overlay = inject(Overlay);
18
+ vcr = inject(ViewContainerRef);
19
+ trapFactory = inject(FocusTrapFactory);
20
+ doc = inject(DOCUMENT);
21
+ destroyRef = inject(DestroyRef);
22
+ open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
23
+ closeOnEscape = input(true, ...ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []);
24
+ closeOnBackdropClick = input(true, ...ngDevMode ? [{ debugName: "closeOnBackdropClick" }] : /* istanbul ignore next */ []);
25
+ backdrop = input("dim", ...ngDevMode ? [{ debugName: "backdrop" }] : /* istanbul ignore next */ []);
26
+ showCloseButton = input(true, ...ngDevMode ? [{ debugName: "showCloseButton" }] : /* istanbul ignore next */ []);
27
+ closeButtonLabel = input("Close", ...ngDevMode ? [{ debugName: "closeButtonLabel" }] : /* istanbul ignore next */ []);
28
+ labelledBy = input(null, {
29
+ ...ngDevMode ? { debugName: "labelledBy" } : /* istanbul ignore next */ {},
30
+ alias: "aria-labelledby"
31
+ });
32
+ describedBy = input(null, {
33
+ ...ngDevMode ? { debugName: "describedBy" } : /* istanbul ignore next */ {},
34
+ alias: "aria-describedby"
35
+ });
36
+ role = input("dialog", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
37
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
38
+ openedChange = output();
39
+ registeredTitleId = signal(null, ...ngDevMode ? [{ debugName: "registeredTitleId" }] : /* istanbul ignore next */ []);
40
+ registeredDescriptionId = signal(null, ...ngDevMode ? [{ debugName: "registeredDescriptionId" }] : /* istanbul ignore next */ []);
41
+ resolvedLabelledBy = computed(() => this.labelledBy() ?? this.registeredTitleId(), ...ngDevMode ? [{ debugName: "resolvedLabelledBy" }] : /* istanbul ignore next */ []);
42
+ resolvedDescribedBy = computed(() => this.describedBy() ?? this.registeredDescriptionId(), ...ngDevMode ? [{ debugName: "resolvedDescribedBy" }] : /* istanbul ignore next */ []);
43
+ registerTitleId(id) {
44
+ this.registeredTitleId.set(id);
45
+ }
46
+ unregisterTitleId(id) {
47
+ if (this.registeredTitleId() === id) this.registeredTitleId.set(null);
48
+ }
49
+ registerDescriptionId(id) {
50
+ this.registeredDescriptionId.set(id);
51
+ }
52
+ unregisterDescriptionId(id) {
53
+ if (this.registeredDescriptionId() === id) this.registeredDescriptionId.set(null);
54
+ }
55
+ tpl = viewChild.required("tpl", ...ngDevMode ? [{ debugName: "tpl" }] : /* istanbul ignore next */ []);
56
+ overlayRef = null;
57
+ focusTrap = null;
58
+ previousFocus = null;
59
+ surfaceClasses = computed(() => cn("relative grid w-full max-w-lg gap-4 rounded-[var(--radius-base)] border border-border bg-background p-6 shadow-lg duration-normal", this.class()), ...ngDevMode ? [{ debugName: "surfaceClasses" }] : /* istanbul ignore next */ []);
60
+ backdropClass = computed(() => {
61
+ const classes = ["dialog-backdrop"];
62
+ const kind = this.backdrop();
63
+ if (kind === "blur") classes.push("dialog-backdrop-blur");
64
+ else if (kind === "transparent") classes.push("dialog-backdrop-transparent");
65
+ return classes;
66
+ }, ...ngDevMode ? [{ debugName: "backdropClass" }] : /* istanbul ignore next */ []);
67
+ constructor() {
68
+ this.destroyRef.onDestroy(() => this.detach(false));
69
+ effect(() => {
70
+ if (this.open()) this.attach();
71
+ else this.detach();
72
+ });
73
+ }
74
+ attach() {
75
+ if (this.overlayRef) return;
76
+ this.previousFocus = this.doc.activeElement;
77
+ this.overlayRef = this.overlay.create({
78
+ hasBackdrop: true,
79
+ backdropClass: this.backdropClass(),
80
+ panelClass: "dialog-panel",
81
+ scrollStrategy: this.overlay.scrollStrategies.block(),
82
+ positionStrategy: this.overlay.position().global().centerHorizontally().centerVertically()
83
+ });
84
+ const portal = new TemplatePortal(this.tpl(), this.vcr);
85
+ this.overlayRef.attach(portal);
86
+ this.focusTrap = this.trapFactory.create(this.overlayRef.hostElement);
87
+ this.focusTrap.focusInitialElementWhenReady();
88
+ if (this.closeOnBackdropClick()) this.overlayRef.backdropClick().pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.requestClose());
89
+ this.overlayRef.keydownEvents().pipe(takeUntilDestroyed(this.destroyRef), filter((e) => e.key === "Escape" && this.closeOnEscape())).subscribe((e) => {
90
+ e.preventDefault();
91
+ this.requestClose();
92
+ });
93
+ this.openedChange.emit(true);
94
+ }
95
+ detach(emitOpenedChange = true) {
96
+ if (!this.overlayRef) return;
97
+ this.focusTrap?.destroy();
98
+ this.focusTrap = null;
99
+ this.overlayRef.dispose();
100
+ this.overlayRef = null;
101
+ this.previousFocus?.focus?.();
102
+ this.previousFocus = null;
103
+ if (emitOpenedChange) this.openedChange.emit(false);
104
+ }
105
+ requestClose() {
106
+ this.open.set(false);
107
+ }
108
+ close() {
109
+ this.requestClose();
110
+ }
111
+ static ɵfac = i0.ɵɵngDeclareFactory({
112
+ minVersion: "12.0.0",
113
+ version: "22.2.4",
114
+ ngImport: i0,
115
+ type: DialogComponent,
116
+ deps: [],
117
+ target: i0.ɵɵFactoryTarget.Component
118
+ });
119
+ static ɵcmp = i0.ɵɵngDeclareComponent({
120
+ minVersion: "17.0.0",
121
+ version: "22.2.4",
122
+ type: DialogComponent,
123
+ isStandalone: true,
124
+ selector: "Dialog",
125
+ inputs: {
126
+ open: {
127
+ classPropertyName: "open",
128
+ publicName: "open",
129
+ isSignal: true,
130
+ isRequired: false,
131
+ transformFunction: null
132
+ },
133
+ closeOnEscape: {
134
+ classPropertyName: "closeOnEscape",
135
+ publicName: "closeOnEscape",
136
+ isSignal: true,
137
+ isRequired: false,
138
+ transformFunction: null
139
+ },
140
+ closeOnBackdropClick: {
141
+ classPropertyName: "closeOnBackdropClick",
142
+ publicName: "closeOnBackdropClick",
143
+ isSignal: true,
144
+ isRequired: false,
145
+ transformFunction: null
146
+ },
147
+ backdrop: {
148
+ classPropertyName: "backdrop",
149
+ publicName: "backdrop",
150
+ isSignal: true,
151
+ isRequired: false,
152
+ transformFunction: null
153
+ },
154
+ showCloseButton: {
155
+ classPropertyName: "showCloseButton",
156
+ publicName: "showCloseButton",
157
+ isSignal: true,
158
+ isRequired: false,
159
+ transformFunction: null
160
+ },
161
+ closeButtonLabel: {
162
+ classPropertyName: "closeButtonLabel",
163
+ publicName: "closeButtonLabel",
164
+ isSignal: true,
165
+ isRequired: false,
166
+ transformFunction: null
167
+ },
168
+ labelledBy: {
169
+ classPropertyName: "labelledBy",
170
+ publicName: "aria-labelledby",
171
+ isSignal: true,
172
+ isRequired: false,
173
+ transformFunction: null
174
+ },
175
+ describedBy: {
176
+ classPropertyName: "describedBy",
177
+ publicName: "aria-describedby",
178
+ isSignal: true,
179
+ isRequired: false,
180
+ transformFunction: null
181
+ },
182
+ role: {
183
+ classPropertyName: "role",
184
+ publicName: "role",
185
+ isSignal: true,
186
+ isRequired: false,
187
+ transformFunction: null
188
+ },
189
+ class: {
190
+ classPropertyName: "class",
191
+ publicName: "class",
192
+ isSignal: true,
193
+ isRequired: false,
194
+ transformFunction: null
195
+ }
196
+ },
197
+ outputs: {
198
+ open: "openChange",
199
+ openedChange: "openedChange"
200
+ },
201
+ viewQueries: [{
202
+ propertyName: "tpl",
203
+ first: true,
204
+ predicate: ["tpl"],
205
+ descendants: true,
206
+ isSignal: true
207
+ }],
208
+ hostDirectives: [{
209
+ directive: i1.ComponentScaleDirective,
210
+ inputs: [
211
+ "radius",
212
+ "radius",
213
+ "density",
214
+ "density"
215
+ ]
216
+ }],
217
+ ngImport: i0,
218
+ template: `
219
+ <ng-template #tpl>
220
+ <div
221
+ class="dialog-surface"
222
+ [attr.role]="role()"
223
+ aria-modal="true"
224
+ [attr.aria-labelledby]="resolvedLabelledBy()"
225
+ [attr.aria-describedby]="resolvedDescribedBy()"
226
+ [class]="surfaceClasses()"
227
+ [style.--radius-base]="componentScale.radiusBase()"
228
+ [style.--spacing-base]="componentScale.densityBase()"
229
+ >
230
+ @if (showCloseButton()) {
231
+ <button
232
+ type="button"
233
+ Button
234
+ variant="ghost"
235
+ size="icon-xs"
236
+ class="dialog-close-button group absolute right-4 top-4 rounded-full p-0 text-muted-foreground hover:bg-transparent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"
237
+ [attr.aria-label]="closeButtonLabel()"
238
+ (click)="close()"
239
+ >
240
+ <span
241
+ data-slot="dialog-close-visual"
242
+ aria-hidden="true"
243
+ class="inline-flex size-5 items-center justify-center rounded-full border border-destructive bg-destructive text-destructive-foreground shadow-sm transition-[background-color,border-color,color,box-shadow,transform] group-hover:bg-destructive/90 group-hover:shadow-md group-active:scale-95"
244
+ >
245
+ <svg
246
+ class="!size-3"
247
+ viewBox="0 0 24 24"
248
+ fill="none"
249
+ stroke="currentColor"
250
+ stroke-width="1.75"
251
+ stroke-linecap="round"
252
+ stroke-linejoin="round"
253
+ focusable="false"
254
+ >
255
+ <path d="M7 7l10 10M17 7 7 17" />
256
+ </svg>
257
+ </span>
258
+ </button>
259
+ }
260
+ <ng-content />
261
+ </div>
262
+ </ng-template>
263
+ `,
264
+ isInline: true,
265
+ dependencies: [{
266
+ kind: "component",
267
+ type: ButtonComponent,
268
+ selector: "button[Button], a[Button]",
269
+ inputs: [
270
+ "variant",
271
+ "size",
272
+ "class"
273
+ ]
274
+ }]
275
+ });
276
+ };
277
+ i0.ɵɵngDeclareClassMetadata({
278
+ minVersion: "12.0.0",
279
+ version: "22.2.4",
280
+ ngImport: i0,
281
+ type: DialogComponent,
282
+ decorators: [{
283
+ type: Component,
284
+ args: [{
285
+ selector: "Dialog",
286
+ hostDirectives: [{
287
+ directive: ComponentScaleDirective,
288
+ inputs: ["radius", "density"]
289
+ }],
290
+ imports: [ButtonComponent],
291
+ template: `
292
+ <ng-template #tpl>
293
+ <div
294
+ class="dialog-surface"
295
+ [attr.role]="role()"
296
+ aria-modal="true"
297
+ [attr.aria-labelledby]="resolvedLabelledBy()"
298
+ [attr.aria-describedby]="resolvedDescribedBy()"
299
+ [class]="surfaceClasses()"
300
+ [style.--radius-base]="componentScale.radiusBase()"
301
+ [style.--spacing-base]="componentScale.densityBase()"
302
+ >
303
+ @if (showCloseButton()) {
304
+ <button
305
+ type="button"
306
+ Button
307
+ variant="ghost"
308
+ size="icon-xs"
309
+ class="dialog-close-button group absolute right-4 top-4 rounded-full p-0 text-muted-foreground hover:bg-transparent hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"
310
+ [attr.aria-label]="closeButtonLabel()"
311
+ (click)="close()"
312
+ >
313
+ <span
314
+ data-slot="dialog-close-visual"
315
+ aria-hidden="true"
316
+ class="inline-flex size-5 items-center justify-center rounded-full border border-destructive bg-destructive text-destructive-foreground shadow-sm transition-[background-color,border-color,color,box-shadow,transform] group-hover:bg-destructive/90 group-hover:shadow-md group-active:scale-95"
317
+ >
318
+ <svg
319
+ class="!size-3"
320
+ viewBox="0 0 24 24"
321
+ fill="none"
322
+ stroke="currentColor"
323
+ stroke-width="1.75"
324
+ stroke-linecap="round"
325
+ stroke-linejoin="round"
326
+ focusable="false"
327
+ >
328
+ <path d="M7 7l10 10M17 7 7 17" />
329
+ </svg>
330
+ </span>
331
+ </button>
332
+ }
333
+ <ng-content />
334
+ </div>
335
+ </ng-template>
336
+ `
337
+ }]
338
+ }],
339
+ ctorParameters: () => [],
340
+ propDecorators: {
341
+ open: [{
342
+ type: i0.Input,
343
+ args: [{
344
+ isSignal: true,
345
+ alias: "open",
346
+ required: false
347
+ }]
348
+ }, {
349
+ type: i0.Output,
350
+ args: ["openChange"]
351
+ }],
352
+ closeOnEscape: [{
353
+ type: i0.Input,
354
+ args: [{
355
+ isSignal: true,
356
+ alias: "closeOnEscape",
357
+ required: false
358
+ }]
359
+ }],
360
+ closeOnBackdropClick: [{
361
+ type: i0.Input,
362
+ args: [{
363
+ isSignal: true,
364
+ alias: "closeOnBackdropClick",
365
+ required: false
366
+ }]
367
+ }],
368
+ backdrop: [{
369
+ type: i0.Input,
370
+ args: [{
371
+ isSignal: true,
372
+ alias: "backdrop",
373
+ required: false
374
+ }]
375
+ }],
376
+ showCloseButton: [{
377
+ type: i0.Input,
378
+ args: [{
379
+ isSignal: true,
380
+ alias: "showCloseButton",
381
+ required: false
382
+ }]
383
+ }],
384
+ closeButtonLabel: [{
385
+ type: i0.Input,
386
+ args: [{
387
+ isSignal: true,
388
+ alias: "closeButtonLabel",
389
+ required: false
390
+ }]
391
+ }],
392
+ labelledBy: [{
393
+ type: i0.Input,
394
+ args: [{
395
+ isSignal: true,
396
+ alias: "aria-labelledby",
397
+ required: false
398
+ }]
399
+ }],
400
+ describedBy: [{
401
+ type: i0.Input,
402
+ args: [{
403
+ isSignal: true,
404
+ alias: "aria-describedby",
405
+ required: false
406
+ }]
407
+ }],
408
+ role: [{
409
+ type: i0.Input,
410
+ args: [{
411
+ isSignal: true,
412
+ alias: "role",
413
+ required: false
414
+ }]
415
+ }],
416
+ class: [{
417
+ type: i0.Input,
418
+ args: [{
419
+ isSignal: true,
420
+ alias: "class",
421
+ required: false
422
+ }]
423
+ }],
424
+ openedChange: [{
425
+ type: i0.Output,
426
+ args: ["openedChange"]
427
+ }],
428
+ tpl: [{
429
+ type: i0.ViewChild,
430
+ args: ["tpl", { isSignal: true }]
431
+ }]
432
+ }
433
+ });
434
+ var DialogCloseDirective = class DialogCloseDirective {
435
+ dialog = inject(DialogComponent);
436
+ closeDialog() {
437
+ this.dialog.close();
438
+ }
439
+ static ɵfac = i0.ɵɵngDeclareFactory({
440
+ minVersion: "12.0.0",
441
+ version: "22.2.4",
442
+ ngImport: i0,
443
+ type: DialogCloseDirective,
444
+ deps: [],
445
+ target: i0.ɵɵFactoryTarget.Directive
446
+ });
447
+ static ɵdir = i0.ɵɵngDeclareDirective({
448
+ minVersion: "14.0.0",
449
+ version: "22.2.4",
450
+ type: DialogCloseDirective,
451
+ isStandalone: true,
452
+ selector: "button[DialogClose], a[DialogClose]",
453
+ host: { listeners: { "click": "closeDialog()" } },
454
+ ngImport: i0
455
+ });
456
+ };
457
+ i0.ɵɵngDeclareClassMetadata({
458
+ minVersion: "12.0.0",
459
+ version: "22.2.4",
460
+ ngImport: i0,
461
+ type: DialogCloseDirective,
462
+ decorators: [{
463
+ type: Directive,
464
+ args: [{
465
+ selector: "button[DialogClose], a[DialogClose]",
466
+ host: { "(click)": "closeDialog()" }
467
+ }]
468
+ }]
469
+ });
470
+ var DialogHeaderComponent = class DialogHeaderComponent {
471
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
472
+ classes = computed(() => cn("flex flex-col gap-1.5 text-center sm:text-left", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
473
+ static ɵfac = i0.ɵɵngDeclareFactory({
474
+ minVersion: "12.0.0",
475
+ version: "22.2.4",
476
+ ngImport: i0,
477
+ type: DialogHeaderComponent,
478
+ deps: [],
479
+ target: i0.ɵɵFactoryTarget.Component
480
+ });
481
+ static ɵcmp = i0.ɵɵngDeclareComponent({
482
+ minVersion: "17.1.0",
483
+ version: "22.2.4",
484
+ type: DialogHeaderComponent,
485
+ isStandalone: true,
486
+ selector: "DialogHeader",
487
+ inputs: { class: {
488
+ classPropertyName: "class",
489
+ publicName: "class",
490
+ isSignal: true,
491
+ isRequired: false,
492
+ transformFunction: null
493
+ } },
494
+ host: { properties: { "class": "classes()" } },
495
+ ngImport: i0,
496
+ template: `<ng-content />`,
497
+ isInline: true
498
+ });
499
+ };
500
+ i0.ɵɵngDeclareClassMetadata({
501
+ minVersion: "12.0.0",
502
+ version: "22.2.4",
503
+ ngImport: i0,
504
+ type: DialogHeaderComponent,
505
+ decorators: [{
506
+ type: Component,
507
+ args: [{
508
+ selector: "DialogHeader",
509
+ host: { "[class]": "classes()" },
510
+ template: `<ng-content />`
511
+ }]
512
+ }],
513
+ propDecorators: { class: [{
514
+ type: i0.Input,
515
+ args: [{
516
+ isSignal: true,
517
+ alias: "class",
518
+ required: false
519
+ }]
520
+ }] }
521
+ });
522
+ var DialogTitleComponent = class DialogTitleComponent {
523
+ id = input(null, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
524
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
525
+ autoId = injectUniqueId("dialog-title");
526
+ dialog = inject(DialogComponent, { optional: true });
527
+ resolvedId = computed(() => this.id() ?? this.autoId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
528
+ classes = computed(() => cn("text-lg font-semibold leading-none tracking-tight", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
529
+ constructor() {
530
+ effect(() => this.dialog?.registerTitleId(this.resolvedId()));
531
+ inject(DestroyRef).onDestroy(() => this.dialog?.unregisterTitleId(this.resolvedId()));
532
+ }
533
+ static ɵfac = i0.ɵɵngDeclareFactory({
534
+ minVersion: "12.0.0",
535
+ version: "22.2.4",
536
+ ngImport: i0,
537
+ type: DialogTitleComponent,
538
+ deps: [],
539
+ target: i0.ɵɵFactoryTarget.Component
540
+ });
541
+ static ɵcmp = i0.ɵɵngDeclareComponent({
542
+ minVersion: "17.1.0",
543
+ version: "22.2.4",
544
+ type: DialogTitleComponent,
545
+ isStandalone: true,
546
+ selector: "DialogTitle, h2[DialogTitle]",
547
+ inputs: {
548
+ id: {
549
+ classPropertyName: "id",
550
+ publicName: "id",
551
+ isSignal: true,
552
+ isRequired: false,
553
+ transformFunction: null
554
+ },
555
+ class: {
556
+ classPropertyName: "class",
557
+ publicName: "class",
558
+ isSignal: true,
559
+ isRequired: false,
560
+ transformFunction: null
561
+ }
562
+ },
563
+ host: { properties: {
564
+ "class": "classes()",
565
+ "attr.id": "resolvedId()"
566
+ } },
567
+ ngImport: i0,
568
+ template: `<ng-content />`,
569
+ isInline: true
570
+ });
571
+ };
572
+ i0.ɵɵngDeclareClassMetadata({
573
+ minVersion: "12.0.0",
574
+ version: "22.2.4",
575
+ ngImport: i0,
576
+ type: DialogTitleComponent,
577
+ decorators: [{
578
+ type: Component,
579
+ args: [{
580
+ selector: "DialogTitle, h2[DialogTitle]",
581
+ host: {
582
+ "[class]": "classes()",
583
+ "[attr.id]": "resolvedId()"
584
+ },
585
+ template: `<ng-content />`
586
+ }]
587
+ }],
588
+ ctorParameters: () => [],
589
+ propDecorators: {
590
+ id: [{
591
+ type: i0.Input,
592
+ args: [{
593
+ isSignal: true,
594
+ alias: "id",
595
+ required: false
596
+ }]
597
+ }],
598
+ class: [{
599
+ type: i0.Input,
600
+ args: [{
601
+ isSignal: true,
602
+ alias: "class",
603
+ required: false
604
+ }]
605
+ }]
606
+ }
607
+ });
608
+ var DialogDescriptionComponent = class DialogDescriptionComponent {
609
+ id = input(null, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
610
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
611
+ autoId = injectUniqueId("dialog-description");
612
+ dialog = inject(DialogComponent, { optional: true });
613
+ resolvedId = computed(() => this.id() ?? this.autoId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
614
+ classes = computed(() => cn("text-sm text-muted-foreground", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
615
+ constructor() {
616
+ effect(() => this.dialog?.registerDescriptionId(this.resolvedId()));
617
+ inject(DestroyRef).onDestroy(() => this.dialog?.unregisterDescriptionId(this.resolvedId()));
618
+ }
619
+ static ɵfac = i0.ɵɵngDeclareFactory({
620
+ minVersion: "12.0.0",
621
+ version: "22.2.4",
622
+ ngImport: i0,
623
+ type: DialogDescriptionComponent,
624
+ deps: [],
625
+ target: i0.ɵɵFactoryTarget.Component
626
+ });
627
+ static ɵcmp = i0.ɵɵngDeclareComponent({
628
+ minVersion: "17.1.0",
629
+ version: "22.2.4",
630
+ type: DialogDescriptionComponent,
631
+ isStandalone: true,
632
+ selector: "DialogDescription, p[DialogDescription]",
633
+ inputs: {
634
+ id: {
635
+ classPropertyName: "id",
636
+ publicName: "id",
637
+ isSignal: true,
638
+ isRequired: false,
639
+ transformFunction: null
640
+ },
641
+ class: {
642
+ classPropertyName: "class",
643
+ publicName: "class",
644
+ isSignal: true,
645
+ isRequired: false,
646
+ transformFunction: null
647
+ }
648
+ },
649
+ host: { properties: {
650
+ "class": "classes()",
651
+ "attr.id": "resolvedId()"
652
+ } },
653
+ ngImport: i0,
654
+ template: `<ng-content />`,
655
+ isInline: true
656
+ });
657
+ };
658
+ i0.ɵɵngDeclareClassMetadata({
659
+ minVersion: "12.0.0",
660
+ version: "22.2.4",
661
+ ngImport: i0,
662
+ type: DialogDescriptionComponent,
663
+ decorators: [{
664
+ type: Component,
665
+ args: [{
666
+ selector: "DialogDescription, p[DialogDescription]",
667
+ host: {
668
+ "[class]": "classes()",
669
+ "[attr.id]": "resolvedId()"
670
+ },
671
+ template: `<ng-content />`
672
+ }]
673
+ }],
674
+ ctorParameters: () => [],
675
+ propDecorators: {
676
+ id: [{
677
+ type: i0.Input,
678
+ args: [{
679
+ isSignal: true,
680
+ alias: "id",
681
+ required: false
682
+ }]
683
+ }],
684
+ class: [{
685
+ type: i0.Input,
686
+ args: [{
687
+ isSignal: true,
688
+ alias: "class",
689
+ required: false
690
+ }]
691
+ }]
692
+ }
693
+ });
694
+ var DialogContentComponent = class DialogContentComponent {
695
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
696
+ classes = computed(() => cn("grid gap-4", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
697
+ static ɵfac = i0.ɵɵngDeclareFactory({
698
+ minVersion: "12.0.0",
699
+ version: "22.2.4",
700
+ ngImport: i0,
701
+ type: DialogContentComponent,
702
+ deps: [],
703
+ target: i0.ɵɵFactoryTarget.Component
704
+ });
705
+ static ɵcmp = i0.ɵɵngDeclareComponent({
706
+ minVersion: "17.1.0",
707
+ version: "22.2.4",
708
+ type: DialogContentComponent,
709
+ isStandalone: true,
710
+ selector: "DialogContent",
711
+ inputs: { class: {
712
+ classPropertyName: "class",
713
+ publicName: "class",
714
+ isSignal: true,
715
+ isRequired: false,
716
+ transformFunction: null
717
+ } },
718
+ host: { properties: { "class": "classes()" } },
719
+ ngImport: i0,
720
+ template: `<ng-content />`,
721
+ isInline: true
722
+ });
723
+ };
724
+ i0.ɵɵngDeclareClassMetadata({
725
+ minVersion: "12.0.0",
726
+ version: "22.2.4",
727
+ ngImport: i0,
728
+ type: DialogContentComponent,
729
+ decorators: [{
730
+ type: Component,
731
+ args: [{
732
+ selector: "DialogContent",
733
+ host: { "[class]": "classes()" },
734
+ template: `<ng-content />`
735
+ }]
736
+ }],
737
+ propDecorators: { class: [{
738
+ type: i0.Input,
739
+ args: [{
740
+ isSignal: true,
741
+ alias: "class",
742
+ required: false
743
+ }]
744
+ }] }
745
+ });
746
+ var DialogFooterComponent = class DialogFooterComponent {
747
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
748
+ classes = computed(() => cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:gap-2", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
749
+ static ɵfac = i0.ɵɵngDeclareFactory({
750
+ minVersion: "12.0.0",
751
+ version: "22.2.4",
752
+ ngImport: i0,
753
+ type: DialogFooterComponent,
754
+ deps: [],
755
+ target: i0.ɵɵFactoryTarget.Component
756
+ });
757
+ static ɵcmp = i0.ɵɵngDeclareComponent({
758
+ minVersion: "17.1.0",
759
+ version: "22.2.4",
760
+ type: DialogFooterComponent,
761
+ isStandalone: true,
762
+ selector: "DialogFooter",
763
+ inputs: { class: {
764
+ classPropertyName: "class",
765
+ publicName: "class",
766
+ isSignal: true,
767
+ isRequired: false,
768
+ transformFunction: null
769
+ } },
770
+ host: { properties: { "class": "classes()" } },
771
+ ngImport: i0,
772
+ template: `<ng-content />`,
773
+ isInline: true
774
+ });
775
+ };
776
+ i0.ɵɵngDeclareClassMetadata({
777
+ minVersion: "12.0.0",
778
+ version: "22.2.4",
779
+ ngImport: i0,
780
+ type: DialogFooterComponent,
781
+ decorators: [{
782
+ type: Component,
783
+ args: [{
784
+ selector: "DialogFooter",
785
+ host: { "[class]": "classes()" },
786
+ template: `<ng-content />`
787
+ }]
788
+ }],
789
+ propDecorators: { class: [{
790
+ type: i0.Input,
791
+ args: [{
792
+ isSignal: true,
793
+ alias: "class",
794
+ required: false
795
+ }]
796
+ }] }
797
+ });
798
+ export { DialogCloseDirective, DialogComponent, DialogContentComponent, DialogDescriptionComponent, DialogFooterComponent, DialogHeaderComponent, DialogTitleComponent };