@edsis/angular 22.1.3 → 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,798 @@
1
+ import { Overlay } from "@angular/cdk/overlay";
2
+ import { TemplatePortal } from "@angular/cdk/portal";
3
+ import { DOCUMENT } from "@angular/common";
4
+ import * as i0 from "@angular/core";
5
+ import { Component, DestroyRef, Injector, ViewContainerRef, afterNextRender, booleanAttribute, computed, effect, forwardRef, inject, input, linkedSignal, model, signal, untracked, viewChild } from "@angular/core";
6
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
7
+ import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from "@angular/forms";
8
+ import { CalendarComponent, formatIsoDate, parseIsoDate, startOfDay } from "@edsis/angular/component/calendar";
9
+ import { cn, injectUniqueId } from "@edsis/angular/component/utils/core";
10
+ import { overlayDismissals } from "@edsis/angular/component/utils/overlay";
11
+ var DatePickerComponent = class DatePickerComponent {
12
+ overlay = inject(Overlay);
13
+ documentRef = inject(DOCUMENT);
14
+ destroyRef = inject(DestroyRef);
15
+ injector = inject(Injector);
16
+ viewContainerRef = inject(ViewContainerRef);
17
+ instanceId = injectUniqueId("DatePicker");
18
+ value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
19
+ id = input(null, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
20
+ placeholder = input("Pick a date", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
21
+ required = input(false, {
22
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
23
+ transform: booleanAttribute
24
+ });
25
+ min = input(null, {
26
+ ...ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {},
27
+ transform: (value) => value ?? null
28
+ });
29
+ max = input(null, {
30
+ ...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
31
+ transform: (value) => value ?? null
32
+ });
33
+ startAt = input(null, ...ngDevMode ? [{ debugName: "startAt" }] : /* istanbul ignore next */ []);
34
+ startView = input("month", ...ngDevMode ? [{ debugName: "startView" }] : /* istanbul ignore next */ []);
35
+ touchUi = input(false, {
36
+ ...ngDevMode ? { debugName: "touchUi" } : /* istanbul ignore next */ {},
37
+ transform: booleanAttribute
38
+ });
39
+ dateFilter = input(null, ...ngDevMode ? [{ debugName: "dateFilter" }] : /* istanbul ignore next */ []);
40
+ panelClass = input("datepicker-panel", ...ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []);
41
+ panelAriaLabel = input("Choose a date", ...ngDevMode ? [{ debugName: "panelAriaLabel" }] : /* istanbul ignore next */ []);
42
+ invalidFormatMessage = input("Enter a valid date in YYYY-MM-DD format.", ...ngDevMode ? [{ debugName: "invalidFormatMessage" }] : /* istanbul ignore next */ []);
43
+ ariaLabel = input(null, {
44
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
45
+ alias: "aria-label"
46
+ });
47
+ ariaLabelledby = input(null, {
48
+ ...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
49
+ alias: "aria-labelledby"
50
+ });
51
+ ariaDescribedby = input(null, {
52
+ ...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
53
+ alias: "aria-describedby"
54
+ });
55
+ disabled = input(false, {
56
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
57
+ transform: booleanAttribute
58
+ });
59
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
60
+ isEditing = signal(false, ...ngDevMode ? [{ debugName: "isEditing" }] : /* istanbul ignore next */ []);
61
+ isOpen = signal(false, ...ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []);
62
+ inputValue = linkedSignal({
63
+ ...ngDevMode ? { debugName: "inputValue" } : /* istanbul ignore next */ {},
64
+ source: () => this.value(),
65
+ computation: (value, previous) => previous && untracked(() => this.isEditing() || !!this.draftError()) ? previous.value : value ? formatIsoDate(value) : ""
66
+ });
67
+ panelId = `${this.instanceId}-panel`;
68
+ errorId = `${this.instanceId}-error`;
69
+ draftError = signal(null, ...ngDevMode ? [{ debugName: "draftError" }] : /* istanbul ignore next */ []);
70
+ cvaDisabled = signal(false, ...ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []);
71
+ overlayRef = null;
72
+ restoreFocusElement = null;
73
+ validatorNotified = false;
74
+ onChangeFn = () => {};
75
+ onTouchedFn = () => {};
76
+ onValidatorChangeFn = () => {};
77
+ origin = viewChild.required("origin", ...ngDevMode ? [{ debugName: "origin" }] : /* istanbul ignore next */ []);
78
+ input = viewChild.required("input", ...ngDevMode ? [{ debugName: "input" }] : /* istanbul ignore next */ []);
79
+ panel = viewChild.required("panel", ...ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []);
80
+ calendar = viewChild("calendar", ...ngDevMode ? [{ debugName: "calendar" }] : /* istanbul ignore next */ []);
81
+ classes = computed(() => cn("date-picker block w-full", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
82
+ inputClasses = computed(() => cn("date-picker-input w-full", this.isDisabled() ? "opacity-60" : ""), ...ngDevMode ? [{ debugName: "inputClasses" }] : /* istanbul ignore next */ []);
83
+ resolvedId = computed(() => this.id() ?? this.instanceId, ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
84
+ isDisabled = computed(() => this.disabled() || this.cvaDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
85
+ validationErrors = computed(() => {
86
+ const draft = this.draftError();
87
+ if (draft) return draft;
88
+ const value = this.value();
89
+ return value ? this.rangeError(value) : null;
90
+ }, ...ngDevMode ? [{ debugName: "validationErrors" }] : /* istanbul ignore next */ []);
91
+ validationError = computed(() => this.validationErrors() ? this.invalidFormatMessage() : null, ...ngDevMode ? [{ debugName: "validationError" }] : /* istanbul ignore next */ []);
92
+ resolvedAriaDescribedby = computed(() => [this.ariaDescribedby(), this.validationError() ? this.errorId : null].filter((value) => !!value).join(" ") || null, ...ngDevMode ? [{ debugName: "resolvedAriaDescribedby" }] : /* istanbul ignore next */ []);
93
+ constructor() {
94
+ this.destroyRef.onDestroy(() => {
95
+ this.restoreFocusElement = null;
96
+ this.close();
97
+ });
98
+ effect(() => {
99
+ this.validationErrors();
100
+ untracked(() => this.notifyValidatorChange());
101
+ });
102
+ effect(() => {
103
+ if (this.isDisabled() && this.isOpen()) this.close();
104
+ });
105
+ }
106
+ open(restoreFocusElement) {
107
+ if (this.isDisabled() || this.isOpen()) return;
108
+ const originEl = this.origin().nativeElement;
109
+ this.restoreFocusElement = restoreFocusElement ?? (this.documentRef.activeElement instanceof HTMLElement ? this.documentRef.activeElement : this.input().nativeElement);
110
+ this.overlayRef = this.overlay.create({
111
+ positionStrategy: this.overlay.position().flexibleConnectedTo(originEl).withPositions([{
112
+ originX: "start",
113
+ originY: "bottom",
114
+ overlayX: "start",
115
+ overlayY: "top",
116
+ offsetY: 8
117
+ }, {
118
+ originX: "start",
119
+ originY: "top",
120
+ overlayX: "start",
121
+ overlayY: "bottom",
122
+ offsetY: -8
123
+ }]).withPush(true).withViewportMargin(8),
124
+ scrollStrategy: this.overlay.scrollStrategies.reposition(),
125
+ hasBackdrop: true,
126
+ backdropClass: "cdk-overlay-transparent-backdrop",
127
+ panelClass: this.panelClass()
128
+ });
129
+ const portal = new TemplatePortal(this.panel(), this.viewContainerRef);
130
+ const overlayRef = this.overlayRef;
131
+ if (!overlayRef) return;
132
+ overlayRef.attach(portal);
133
+ overlayDismissals(overlayRef, originEl).pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.close());
134
+ this.isOpen.set(true);
135
+ afterNextRender({ read: () => this.calendar()?.focusActiveCell() }, { injector: this.injector });
136
+ }
137
+ close() {
138
+ if (!this.isOpen()) return;
139
+ this.overlayRef?.dispose();
140
+ this.overlayRef = null;
141
+ this.isOpen.set(false);
142
+ const restoreFocusElement = this.restoreFocusElement;
143
+ this.restoreFocusElement = null;
144
+ this.restoreFocusAfterOverlayTeardown(restoreFocusElement);
145
+ }
146
+ toggle(event) {
147
+ if (this.isOpen()) this.close();
148
+ else this.open(event?.currentTarget instanceof HTMLElement ? event.currentTarget : null);
149
+ }
150
+ onInput(event) {
151
+ const text = event.target.value;
152
+ this.isEditing.set(true);
153
+ this.inputValue.set(text);
154
+ const parsed = parseIsoDate(text);
155
+ if (parsed && this.isSelectable(parsed)) this.setValue(parsed, true);
156
+ else this.draftError.set(null);
157
+ }
158
+ onBlur() {
159
+ this.isEditing.set(false);
160
+ this.commitInput();
161
+ this.onTouchedFn();
162
+ }
163
+ onEnter(event) {
164
+ event.preventDefault();
165
+ this.commitInput();
166
+ }
167
+ onCalendarSelect(date) {
168
+ this.setValue(date, true);
169
+ this.close();
170
+ }
171
+ writeValue(value) {
172
+ this.setValue(value, false);
173
+ }
174
+ registerOnChange(fn) {
175
+ this.onChangeFn = fn;
176
+ }
177
+ registerOnTouched(fn) {
178
+ this.onTouchedFn = fn;
179
+ }
180
+ setDisabledState(state) {
181
+ this.cvaDisabled.set(state);
182
+ }
183
+ validate() {
184
+ return this.validationErrors();
185
+ }
186
+ registerOnValidatorChange(fn) {
187
+ this.onValidatorChangeFn = fn;
188
+ }
189
+ commitInput() {
190
+ const draft = this.inputValue().trim();
191
+ if (!draft && !this.required()) {
192
+ this.setValue(null, true);
193
+ return;
194
+ }
195
+ const parsed = parseIsoDate(draft);
196
+ if (!parsed) {
197
+ this.draftError.set({ dateParse: { text: draft } });
198
+ return;
199
+ }
200
+ const rangeError = this.rangeError(parsed);
201
+ if (rangeError) {
202
+ this.draftError.set(rangeError);
203
+ return;
204
+ }
205
+ this.setValue(parsed, true);
206
+ }
207
+ setValue(value, emit) {
208
+ const next = value ? new Date(value.getTime()) : null;
209
+ this.value.set(next);
210
+ this.inputValue.set(next ? formatIsoDate(next) : "");
211
+ this.draftError.set(null);
212
+ if (emit) this.onChangeFn(next);
213
+ }
214
+ notifyValidatorChange() {
215
+ if (!this.validatorNotified) {
216
+ this.validatorNotified = true;
217
+ return;
218
+ }
219
+ this.onValidatorChangeFn();
220
+ }
221
+ isSelectable(date) {
222
+ return !this.rangeError(date);
223
+ }
224
+ rangeError(date) {
225
+ const day = startOfDay(date).getTime();
226
+ const min = this.min();
227
+ if (min && day < startOfDay(min).getTime()) return { dateMin: {
228
+ min,
229
+ actual: date
230
+ } };
231
+ const max = this.max();
232
+ if (max && day > startOfDay(max).getTime()) return { dateMax: {
233
+ max,
234
+ actual: date
235
+ } };
236
+ const filter = this.dateFilter();
237
+ return filter && !filter(date) ? { dateFilter: { actual: date } } : null;
238
+ }
239
+ restoreFocusAfterOverlayTeardown(element) {
240
+ if (!element?.isConnected || this.isDisabled()) return;
241
+ const view = this.documentRef.defaultView;
242
+ if (!view) {
243
+ queueMicrotask(() => {
244
+ if (element.isConnected && !this.isDisabled()) element.focus();
245
+ });
246
+ return;
247
+ }
248
+ view.requestAnimationFrame(() => {
249
+ if (element.isConnected && !this.isDisabled()) element.focus();
250
+ });
251
+ }
252
+ static ɵfac = i0.ɵɵngDeclareFactory({
253
+ minVersion: "12.0.0",
254
+ version: "22.2.3",
255
+ ngImport: i0,
256
+ type: DatePickerComponent,
257
+ deps: [],
258
+ target: i0.ɵɵFactoryTarget.Component
259
+ });
260
+ static ɵcmp = i0.ɵɵngDeclareComponent({
261
+ minVersion: "17.0.0",
262
+ version: "22.2.3",
263
+ type: DatePickerComponent,
264
+ isStandalone: true,
265
+ selector: "DatePicker",
266
+ inputs: {
267
+ value: {
268
+ classPropertyName: "value",
269
+ publicName: "value",
270
+ isSignal: true,
271
+ isRequired: false,
272
+ transformFunction: null
273
+ },
274
+ id: {
275
+ classPropertyName: "id",
276
+ publicName: "id",
277
+ isSignal: true,
278
+ isRequired: false,
279
+ transformFunction: null
280
+ },
281
+ placeholder: {
282
+ classPropertyName: "placeholder",
283
+ publicName: "placeholder",
284
+ isSignal: true,
285
+ isRequired: false,
286
+ transformFunction: null
287
+ },
288
+ required: {
289
+ classPropertyName: "required",
290
+ publicName: "required",
291
+ isSignal: true,
292
+ isRequired: false,
293
+ transformFunction: null
294
+ },
295
+ min: {
296
+ classPropertyName: "min",
297
+ publicName: "min",
298
+ isSignal: true,
299
+ isRequired: false,
300
+ transformFunction: null
301
+ },
302
+ max: {
303
+ classPropertyName: "max",
304
+ publicName: "max",
305
+ isSignal: true,
306
+ isRequired: false,
307
+ transformFunction: null
308
+ },
309
+ startAt: {
310
+ classPropertyName: "startAt",
311
+ publicName: "startAt",
312
+ isSignal: true,
313
+ isRequired: false,
314
+ transformFunction: null
315
+ },
316
+ startView: {
317
+ classPropertyName: "startView",
318
+ publicName: "startView",
319
+ isSignal: true,
320
+ isRequired: false,
321
+ transformFunction: null
322
+ },
323
+ touchUi: {
324
+ classPropertyName: "touchUi",
325
+ publicName: "touchUi",
326
+ isSignal: true,
327
+ isRequired: false,
328
+ transformFunction: null
329
+ },
330
+ dateFilter: {
331
+ classPropertyName: "dateFilter",
332
+ publicName: "dateFilter",
333
+ isSignal: true,
334
+ isRequired: false,
335
+ transformFunction: null
336
+ },
337
+ panelClass: {
338
+ classPropertyName: "panelClass",
339
+ publicName: "panelClass",
340
+ isSignal: true,
341
+ isRequired: false,
342
+ transformFunction: null
343
+ },
344
+ panelAriaLabel: {
345
+ classPropertyName: "panelAriaLabel",
346
+ publicName: "panelAriaLabel",
347
+ isSignal: true,
348
+ isRequired: false,
349
+ transformFunction: null
350
+ },
351
+ invalidFormatMessage: {
352
+ classPropertyName: "invalidFormatMessage",
353
+ publicName: "invalidFormatMessage",
354
+ isSignal: true,
355
+ isRequired: false,
356
+ transformFunction: null
357
+ },
358
+ ariaLabel: {
359
+ classPropertyName: "ariaLabel",
360
+ publicName: "aria-label",
361
+ isSignal: true,
362
+ isRequired: false,
363
+ transformFunction: null
364
+ },
365
+ ariaLabelledby: {
366
+ classPropertyName: "ariaLabelledby",
367
+ publicName: "aria-labelledby",
368
+ isSignal: true,
369
+ isRequired: false,
370
+ transformFunction: null
371
+ },
372
+ ariaDescribedby: {
373
+ classPropertyName: "ariaDescribedby",
374
+ publicName: "aria-describedby",
375
+ isSignal: true,
376
+ isRequired: false,
377
+ transformFunction: null
378
+ },
379
+ disabled: {
380
+ classPropertyName: "disabled",
381
+ publicName: "disabled",
382
+ isSignal: true,
383
+ isRequired: false,
384
+ transformFunction: null
385
+ },
386
+ class: {
387
+ classPropertyName: "class",
388
+ publicName: "class",
389
+ isSignal: true,
390
+ isRequired: false,
391
+ transformFunction: null
392
+ }
393
+ },
394
+ outputs: { value: "valueChange" },
395
+ host: { properties: { "class": "classes()" } },
396
+ providers: [{
397
+ provide: NG_VALUE_ACCESSOR,
398
+ useExisting: forwardRef(() => DatePickerComponent),
399
+ multi: true
400
+ }, {
401
+ provide: NG_VALIDATORS,
402
+ useExisting: forwardRef(() => DatePickerComponent),
403
+ multi: true
404
+ }],
405
+ viewQueries: [
406
+ {
407
+ propertyName: "origin",
408
+ first: true,
409
+ predicate: ["origin"],
410
+ descendants: true,
411
+ isSignal: true
412
+ },
413
+ {
414
+ propertyName: "input",
415
+ first: true,
416
+ predicate: ["input"],
417
+ descendants: true,
418
+ isSignal: true
419
+ },
420
+ {
421
+ propertyName: "panel",
422
+ first: true,
423
+ predicate: ["panel"],
424
+ descendants: true,
425
+ isSignal: true
426
+ },
427
+ {
428
+ propertyName: "calendar",
429
+ first: true,
430
+ predicate: ["calendar"],
431
+ descendants: true,
432
+ isSignal: true
433
+ }
434
+ ],
435
+ ngImport: i0,
436
+ template: `
437
+ <div #origin class="date-picker-shell">
438
+ <input
439
+ #input
440
+ type="text"
441
+ [id]="resolvedId()"
442
+ [class]="inputClasses()"
443
+ [attr.aria-label]="ariaLabel()"
444
+ [attr.aria-labelledby]="ariaLabelledby()"
445
+ [attr.aria-describedby]="resolvedAriaDescribedby()"
446
+ [attr.aria-invalid]="validationError() ? 'true' : null"
447
+ [attr.placeholder]="placeholder()"
448
+ [required]="required()"
449
+ [disabled]="isDisabled()"
450
+ [value]="inputValue()"
451
+ (input)="onInput($any($event))"
452
+ (blur)="onBlur()"
453
+ (keydown.enter)="onEnter($any($event))"
454
+ />
455
+
456
+ <button
457
+ type="button"
458
+ class="date-picker-toggle"
459
+ [attr.aria-label]="isOpen() ? 'Close calendar' : 'Open calendar'"
460
+ [attr.aria-controls]="panelId"
461
+ [attr.aria-expanded]="isOpen()"
462
+ aria-haspopup="dialog"
463
+ [disabled]="isDisabled()"
464
+ (click)="toggle($event)"
465
+ >
466
+ <svg
467
+ aria-hidden="true"
468
+ viewBox="0 0 24 24"
469
+ width="18"
470
+ height="18"
471
+ fill="none"
472
+ stroke="currentColor"
473
+ stroke-width="2"
474
+ stroke-linecap="round"
475
+ stroke-linejoin="round"
476
+ >
477
+ <rect x="3" y="5" width="18" height="16" rx="2" />
478
+ <path d="M8 3v4" />
479
+ <path d="M16 3v4" />
480
+ <path d="M3 11h18" />
481
+ </svg>
482
+ </button>
483
+ </div>
484
+
485
+ @if (validationError(); as error) {
486
+ <p [id]="errorId" class="date-picker-error" role="status">{{ error }}</p>
487
+ }
488
+
489
+ <ng-template #panel>
490
+ <div
491
+ [id]="panelId"
492
+ class="date-picker-panel"
493
+ role="dialog"
494
+ aria-modal="false"
495
+ [attr.aria-label]="panelAriaLabel()"
496
+ [attr.data-touch-ui]="touchUi() ? 'true' : null"
497
+ >
498
+ <Calendar
499
+ #calendar
500
+ [value]="value()"
501
+ [min]="min()"
502
+ [max]="max()"
503
+ [startAt]="startAt()"
504
+ [startView]="startView()"
505
+ [dateFilter]="dateFilter()"
506
+ [disabled]="isDisabled()"
507
+ (valueChange)="onCalendarSelect($event)"
508
+ />
509
+ </div>
510
+ </ng-template>
511
+ `,
512
+ isInline: true,
513
+ styles: [":host{display:block;min-width:0}.date-picker-shell{position:relative;width:100%}.date-picker-input{display:block;width:100%;height:var(--control-height-md);min-width:0;border:1px solid hsl(var(--input));border-radius:var(--radius);background:transparent;padding:calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 11) calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3);color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height);transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard)}.date-picker-input::placeholder{color:hsl(var(--muted-foreground))}.date-picker-input:hover:not(:disabled){border-color:hsl(var(--foreground) / .45)}.date-picker-input:focus-visible{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 1px hsl(var(--ring))}.date-picker-input:disabled{cursor:not-allowed;background:hsl(var(--muted) / .45)}.date-picker-toggle{position:absolute;inset-block-start:50%;inset-inline-end:var(--spacing-base);display:inline-flex;width:calc(var(--spacing-base) * 7);height:calc(var(--spacing-base) * 7);transform:translateY(-50%);align-items:center;justify-content:center;border:0;border-radius:calc(var(--radius) - .125rem);background:transparent;color:hsl(var(--muted-foreground));cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.date-picker-toggle:hover:not(:disabled){background:hsl(var(--accent));color:hsl(var(--accent-foreground))}.date-picker-toggle:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}.date-picker-toggle:disabled{cursor:not-allowed;opacity:.5}.date-picker-panel{width:fit-content;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--popover));color:hsl(var(--popover-foreground));box-shadow:var(--shadow-md, 0 12px 24px -16px hsl(var(--foreground) / .35))}.date-picker-panel Calendar{border:0;border-radius:inherit;background:transparent}.date-picker-panel[data-touch-ui=true]{max-width:min(100vw - calc(var(--spacing-base) * 8),calc(var(--spacing-base) * 88))}.date-picker-error{margin:calc(var(--spacing-base) * 1.5) 0 0;color:hsl(var(--destructive));font-size:var(--text-sm);line-height:var(--text-sm--line-height)}\n"],
514
+ dependencies: [{
515
+ kind: "component",
516
+ type: CalendarComponent,
517
+ selector: "Calendar",
518
+ inputs: [
519
+ "value",
520
+ "min",
521
+ "max",
522
+ "startAt",
523
+ "startView",
524
+ "dateFilter",
525
+ "disabled",
526
+ "class"
527
+ ],
528
+ outputs: ["valueChange"]
529
+ }]
530
+ });
531
+ };
532
+ i0.ɵɵngDeclareClassMetadata({
533
+ minVersion: "12.0.0",
534
+ version: "22.2.3",
535
+ ngImport: i0,
536
+ type: DatePickerComponent,
537
+ decorators: [{
538
+ type: Component,
539
+ args: [{
540
+ selector: "DatePicker",
541
+ imports: [CalendarComponent],
542
+ providers: [{
543
+ provide: NG_VALUE_ACCESSOR,
544
+ useExisting: forwardRef(() => DatePickerComponent),
545
+ multi: true
546
+ }, {
547
+ provide: NG_VALIDATORS,
548
+ useExisting: forwardRef(() => DatePickerComponent),
549
+ multi: true
550
+ }],
551
+ host: { "[class]": "classes()" },
552
+ template: `
553
+ <div #origin class="date-picker-shell">
554
+ <input
555
+ #input
556
+ type="text"
557
+ [id]="resolvedId()"
558
+ [class]="inputClasses()"
559
+ [attr.aria-label]="ariaLabel()"
560
+ [attr.aria-labelledby]="ariaLabelledby()"
561
+ [attr.aria-describedby]="resolvedAriaDescribedby()"
562
+ [attr.aria-invalid]="validationError() ? 'true' : null"
563
+ [attr.placeholder]="placeholder()"
564
+ [required]="required()"
565
+ [disabled]="isDisabled()"
566
+ [value]="inputValue()"
567
+ (input)="onInput($any($event))"
568
+ (blur)="onBlur()"
569
+ (keydown.enter)="onEnter($any($event))"
570
+ />
571
+
572
+ <button
573
+ type="button"
574
+ class="date-picker-toggle"
575
+ [attr.aria-label]="isOpen() ? 'Close calendar' : 'Open calendar'"
576
+ [attr.aria-controls]="panelId"
577
+ [attr.aria-expanded]="isOpen()"
578
+ aria-haspopup="dialog"
579
+ [disabled]="isDisabled()"
580
+ (click)="toggle($event)"
581
+ >
582
+ <svg
583
+ aria-hidden="true"
584
+ viewBox="0 0 24 24"
585
+ width="18"
586
+ height="18"
587
+ fill="none"
588
+ stroke="currentColor"
589
+ stroke-width="2"
590
+ stroke-linecap="round"
591
+ stroke-linejoin="round"
592
+ >
593
+ <rect x="3" y="5" width="18" height="16" rx="2" />
594
+ <path d="M8 3v4" />
595
+ <path d="M16 3v4" />
596
+ <path d="M3 11h18" />
597
+ </svg>
598
+ </button>
599
+ </div>
600
+
601
+ @if (validationError(); as error) {
602
+ <p [id]="errorId" class="date-picker-error" role="status">{{ error }}</p>
603
+ }
604
+
605
+ <ng-template #panel>
606
+ <div
607
+ [id]="panelId"
608
+ class="date-picker-panel"
609
+ role="dialog"
610
+ aria-modal="false"
611
+ [attr.aria-label]="panelAriaLabel()"
612
+ [attr.data-touch-ui]="touchUi() ? 'true' : null"
613
+ >
614
+ <Calendar
615
+ #calendar
616
+ [value]="value()"
617
+ [min]="min()"
618
+ [max]="max()"
619
+ [startAt]="startAt()"
620
+ [startView]="startView()"
621
+ [dateFilter]="dateFilter()"
622
+ [disabled]="isDisabled()"
623
+ (valueChange)="onCalendarSelect($event)"
624
+ />
625
+ </div>
626
+ </ng-template>
627
+ `,
628
+ styles: [":host{display:block;min-width:0}.date-picker-shell{position:relative;width:100%}.date-picker-input{display:block;width:100%;height:var(--control-height-md);min-width:0;border:1px solid hsl(var(--input));border-radius:var(--radius);background:transparent;padding:calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 11) calc(var(--spacing-base) * 2) calc(var(--spacing-base) * 3);color:hsl(var(--foreground));font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--text-sm--line-height);transition:border-color var(--duration-fast) var(--ease-standard),box-shadow var(--duration-fast) var(--ease-standard)}.date-picker-input::placeholder{color:hsl(var(--muted-foreground))}.date-picker-input:hover:not(:disabled){border-color:hsl(var(--foreground) / .45)}.date-picker-input:focus-visible{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 1px hsl(var(--ring))}.date-picker-input:disabled{cursor:not-allowed;background:hsl(var(--muted) / .45)}.date-picker-toggle{position:absolute;inset-block-start:50%;inset-inline-end:var(--spacing-base);display:inline-flex;width:calc(var(--spacing-base) * 7);height:calc(var(--spacing-base) * 7);transform:translateY(-50%);align-items:center;justify-content:center;border:0;border-radius:calc(var(--radius) - .125rem);background:transparent;color:hsl(var(--muted-foreground));cursor:pointer;transition:background-color var(--duration-fast) var(--ease-standard),color var(--duration-fast) var(--ease-standard)}.date-picker-toggle:hover:not(:disabled){background:hsl(var(--accent));color:hsl(var(--accent-foreground))}.date-picker-toggle:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}.date-picker-toggle:disabled{cursor:not-allowed;opacity:.5}.date-picker-panel{width:fit-content;border:1px solid hsl(var(--border));border-radius:var(--radius);background:hsl(var(--popover));color:hsl(var(--popover-foreground));box-shadow:var(--shadow-md, 0 12px 24px -16px hsl(var(--foreground) / .35))}.date-picker-panel Calendar{border:0;border-radius:inherit;background:transparent}.date-picker-panel[data-touch-ui=true]{max-width:min(100vw - calc(var(--spacing-base) * 8),calc(var(--spacing-base) * 88))}.date-picker-error{margin:calc(var(--spacing-base) * 1.5) 0 0;color:hsl(var(--destructive));font-size:var(--text-sm);line-height:var(--text-sm--line-height)}\n"]
629
+ }]
630
+ }],
631
+ ctorParameters: () => [],
632
+ propDecorators: {
633
+ value: [{
634
+ type: i0.Input,
635
+ args: [{
636
+ isSignal: true,
637
+ alias: "value",
638
+ required: false
639
+ }]
640
+ }, {
641
+ type: i0.Output,
642
+ args: ["valueChange"]
643
+ }],
644
+ id: [{
645
+ type: i0.Input,
646
+ args: [{
647
+ isSignal: true,
648
+ alias: "id",
649
+ required: false
650
+ }]
651
+ }],
652
+ placeholder: [{
653
+ type: i0.Input,
654
+ args: [{
655
+ isSignal: true,
656
+ alias: "placeholder",
657
+ required: false
658
+ }]
659
+ }],
660
+ required: [{
661
+ type: i0.Input,
662
+ args: [{
663
+ isSignal: true,
664
+ alias: "required",
665
+ required: false
666
+ }]
667
+ }],
668
+ min: [{
669
+ type: i0.Input,
670
+ args: [{
671
+ isSignal: true,
672
+ alias: "min",
673
+ required: false
674
+ }]
675
+ }],
676
+ max: [{
677
+ type: i0.Input,
678
+ args: [{
679
+ isSignal: true,
680
+ alias: "max",
681
+ required: false
682
+ }]
683
+ }],
684
+ startAt: [{
685
+ type: i0.Input,
686
+ args: [{
687
+ isSignal: true,
688
+ alias: "startAt",
689
+ required: false
690
+ }]
691
+ }],
692
+ startView: [{
693
+ type: i0.Input,
694
+ args: [{
695
+ isSignal: true,
696
+ alias: "startView",
697
+ required: false
698
+ }]
699
+ }],
700
+ touchUi: [{
701
+ type: i0.Input,
702
+ args: [{
703
+ isSignal: true,
704
+ alias: "touchUi",
705
+ required: false
706
+ }]
707
+ }],
708
+ dateFilter: [{
709
+ type: i0.Input,
710
+ args: [{
711
+ isSignal: true,
712
+ alias: "dateFilter",
713
+ required: false
714
+ }]
715
+ }],
716
+ panelClass: [{
717
+ type: i0.Input,
718
+ args: [{
719
+ isSignal: true,
720
+ alias: "panelClass",
721
+ required: false
722
+ }]
723
+ }],
724
+ panelAriaLabel: [{
725
+ type: i0.Input,
726
+ args: [{
727
+ isSignal: true,
728
+ alias: "panelAriaLabel",
729
+ required: false
730
+ }]
731
+ }],
732
+ invalidFormatMessage: [{
733
+ type: i0.Input,
734
+ args: [{
735
+ isSignal: true,
736
+ alias: "invalidFormatMessage",
737
+ required: false
738
+ }]
739
+ }],
740
+ ariaLabel: [{
741
+ type: i0.Input,
742
+ args: [{
743
+ isSignal: true,
744
+ alias: "aria-label",
745
+ required: false
746
+ }]
747
+ }],
748
+ ariaLabelledby: [{
749
+ type: i0.Input,
750
+ args: [{
751
+ isSignal: true,
752
+ alias: "aria-labelledby",
753
+ required: false
754
+ }]
755
+ }],
756
+ ariaDescribedby: [{
757
+ type: i0.Input,
758
+ args: [{
759
+ isSignal: true,
760
+ alias: "aria-describedby",
761
+ required: false
762
+ }]
763
+ }],
764
+ disabled: [{
765
+ type: i0.Input,
766
+ args: [{
767
+ isSignal: true,
768
+ alias: "disabled",
769
+ required: false
770
+ }]
771
+ }],
772
+ class: [{
773
+ type: i0.Input,
774
+ args: [{
775
+ isSignal: true,
776
+ alias: "class",
777
+ required: false
778
+ }]
779
+ }],
780
+ origin: [{
781
+ type: i0.ViewChild,
782
+ args: ["origin", { isSignal: true }]
783
+ }],
784
+ input: [{
785
+ type: i0.ViewChild,
786
+ args: ["input", { isSignal: true }]
787
+ }],
788
+ panel: [{
789
+ type: i0.ViewChild,
790
+ args: ["panel", { isSignal: true }]
791
+ }],
792
+ calendar: [{
793
+ type: i0.ViewChild,
794
+ args: ["calendar", { isSignal: true }]
795
+ }]
796
+ }
797
+ });
798
+ export { DatePickerComponent };