@edsis/angular 22.1.6 → 22.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +87 -399
  3. package/SECURITY.md +18 -0
  4. package/SUPPORT.md +15 -0
  5. package/chart/README.md +272 -0
  6. package/component/README.md +89 -0
  7. package/component/accordion/README.md +195 -0
  8. package/component/alert/README.md +184 -0
  9. package/component/alert-dialog/README.md +255 -0
  10. package/component/aspect-ratio/README.md +116 -0
  11. package/component/avatar/README.md +182 -0
  12. package/component/badge/README.md +143 -0
  13. package/component/breadcrumb/README.md +223 -0
  14. package/component/button/README.md +141 -0
  15. package/component/button-group/README.md +214 -0
  16. package/component/calendar/README.md +125 -0
  17. package/component/card/README.md +232 -0
  18. package/component/carousel/README.md +276 -0
  19. package/component/checkbox/README.md +153 -0
  20. package/component/collapsible/README.md +216 -0
  21. package/component/combobox/README.md +202 -0
  22. package/component/command/README.md +287 -0
  23. package/component/composer/README.md +241 -0
  24. package/component/context-menu/README.md +268 -0
  25. package/component/date-picker/README.md +202 -0
  26. package/component/dialog/README.md +276 -0
  27. package/component/drawer/README.md +146 -0
  28. package/component/dropdown-menu/README.md +336 -0
  29. package/component/editor/README.md +152 -0
  30. package/component/empty/README.md +193 -0
  31. package/component/form/README.md +216 -0
  32. package/component/hover-card/README.md +150 -0
  33. package/component/icon/README.md +52 -0
  34. package/component/input/README.md +160 -0
  35. package/component/input-group/README.md +245 -0
  36. package/component/input-otp/README.md +331 -0
  37. package/component/item/README.md +254 -0
  38. package/component/kanban/README.md +81 -0
  39. package/component/kbd/README.md +141 -0
  40. package/component/label/README.md +137 -0
  41. package/component/menubar/README.md +270 -0
  42. package/component/native-select/README.md +176 -0
  43. package/component/navigation-menu/README.md +165 -0
  44. package/component/pagination/README.md +151 -0
  45. package/component/pillbox/README.md +68 -0
  46. package/component/popover/README.md +54 -0
  47. package/component/progress/README.md +160 -0
  48. package/component/radio/README.md +212 -0
  49. package/component/resizable/README.md +178 -0
  50. package/component/scroll-area/README.md +150 -0
  51. package/component/select/README.md +228 -0
  52. package/component/separator/README.md +175 -0
  53. package/component/sheet/README.md +190 -0
  54. package/component/skeleton/README.md +158 -0
  55. package/component/slider/README.md +207 -0
  56. package/component/spinner/README.md +160 -0
  57. package/component/switch/README.md +170 -0
  58. package/component/table/README.md +292 -0
  59. package/component/tabs/README.md +220 -0
  60. package/component/textarea/README.md +169 -0
  61. package/component/timeline/README.md +94 -0
  62. package/component/toast/README.md +173 -0
  63. package/component/toggle/README.md +133 -0
  64. package/component/toggle-group/README.md +234 -0
  65. package/component/tooltip/README.md +230 -0
  66. package/fesm2022/edsis-angular-chart-area.mjs +508 -0
  67. package/fesm2022/edsis-angular-chart-bar.mjs +946 -0
  68. package/fesm2022/edsis-angular-chart-core.mjs +1282 -0
  69. package/fesm2022/edsis-angular-chart-line.mjs +544 -0
  70. package/fesm2022/edsis-angular-chart-pie.mjs +524 -0
  71. package/fesm2022/edsis-angular-chart-primitives.mjs +1647 -0
  72. package/fesm2022/edsis-angular-chart-radar.mjs +693 -0
  73. package/fesm2022/edsis-angular-chart-radial.mjs +542 -0
  74. package/fesm2022/edsis-angular-chart-scatter.mjs +486 -0
  75. package/fesm2022/edsis-angular-chart.mjs +3 -0
  76. package/fesm2022/edsis-angular-component-accordion.mjs +513 -0
  77. package/fesm2022/edsis-angular-component-alert-dialog.mjs +1001 -0
  78. package/fesm2022/edsis-angular-component-alert.mjs +268 -0
  79. package/fesm2022/edsis-angular-component-aspect-ratio.mjs +80 -0
  80. package/fesm2022/edsis-angular-component-avatar.mjs +410 -0
  81. package/fesm2022/edsis-angular-component-badge.mjs +111 -0
  82. package/fesm2022/edsis-angular-component-breadcrumb.mjs +464 -0
  83. package/fesm2022/edsis-angular-component-button-group.mjs +252 -0
  84. package/fesm2022/edsis-angular-component-button.mjs +155 -0
  85. package/fesm2022/edsis-angular-component-calendar.mjs +835 -0
  86. package/fesm2022/edsis-angular-component-card.mjs +460 -0
  87. package/fesm2022/edsis-angular-component-carousel.mjs +700 -0
  88. package/fesm2022/edsis-angular-component-checkbox.mjs +398 -0
  89. package/fesm2022/edsis-angular-component-collapsible.mjs +305 -0
  90. package/fesm2022/edsis-angular-component-combobox.mjs +544 -0
  91. package/fesm2022/edsis-angular-component-command.mjs +815 -0
  92. package/fesm2022/edsis-angular-component-composer.mjs +840 -0
  93. package/fesm2022/edsis-angular-component-context-menu.mjs +197 -0
  94. package/fesm2022/edsis-angular-component-date-picker.mjs +798 -0
  95. package/fesm2022/edsis-angular-component-dialog.mjs +798 -0
  96. package/fesm2022/edsis-angular-component-drawer.mjs +2 -0
  97. package/fesm2022/edsis-angular-component-dropdown-menu.mjs +1259 -0
  98. package/fesm2022/edsis-angular-component-editor.mjs +1000 -0
  99. package/fesm2022/edsis-angular-component-empty.mjs +351 -0
  100. package/fesm2022/edsis-angular-component-form.mjs +821 -0
  101. package/fesm2022/edsis-angular-component-hover-card.mjs +486 -0
  102. package/fesm2022/edsis-angular-component-icon.mjs +253 -0
  103. package/fesm2022/edsis-angular-component-input-group.mjs +453 -0
  104. package/fesm2022/edsis-angular-component-input-otp.mjs +957 -0
  105. package/fesm2022/edsis-angular-component-input.mjs +87 -0
  106. package/fesm2022/edsis-angular-component-item.mjs +720 -0
  107. package/fesm2022/edsis-angular-component-kanban.mjs +812 -0
  108. package/fesm2022/edsis-angular-component-kbd.mjs +124 -0
  109. package/fesm2022/edsis-angular-component-label.mjs +82 -0
  110. package/fesm2022/edsis-angular-component-menubar.mjs +481 -0
  111. package/fesm2022/edsis-angular-component-native-select.mjs +168 -0
  112. package/fesm2022/edsis-angular-component-navigation-menu.mjs +685 -0
  113. package/fesm2022/edsis-angular-component-pagination.mjs +425 -0
  114. package/fesm2022/edsis-angular-component-pillbox.mjs +1679 -0
  115. package/fesm2022/edsis-angular-component-popover.mjs +292 -0
  116. package/fesm2022/edsis-angular-component-progress.mjs +184 -0
  117. package/fesm2022/edsis-angular-component-radio.mjs +491 -0
  118. package/fesm2022/edsis-angular-component-resizable.mjs +703 -0
  119. package/fesm2022/edsis-angular-component-scroll-area.mjs +133 -0
  120. package/fesm2022/edsis-angular-component-segmented-control.mjs +408 -0
  121. package/fesm2022/edsis-angular-component-select.mjs +743 -0
  122. package/fesm2022/edsis-angular-component-separator.mjs +102 -0
  123. package/fesm2022/edsis-angular-component-sheet.mjs +874 -0
  124. package/fesm2022/edsis-angular-component-skeleton.mjs +62 -0
  125. package/fesm2022/edsis-angular-component-slider.mjs +676 -0
  126. package/fesm2022/edsis-angular-component-spinner.mjs +157 -0
  127. package/fesm2022/edsis-angular-component-switch.mjs +361 -0
  128. package/fesm2022/edsis-angular-component-table.mjs +446 -0
  129. package/fesm2022/edsis-angular-component-tabs.mjs +592 -0
  130. package/fesm2022/edsis-angular-component-textarea.mjs +85 -0
  131. package/fesm2022/edsis-angular-component-timeline.mjs +619 -0
  132. package/fesm2022/edsis-angular-component-toast.mjs +231 -0
  133. package/fesm2022/edsis-angular-component-toggle-group.mjs +579 -0
  134. package/fesm2022/edsis-angular-component-toggle.mjs +189 -0
  135. package/fesm2022/edsis-angular-component-tooltip.mjs +804 -0
  136. package/fesm2022/edsis-angular-component-utils-core.mjs +181 -0
  137. package/fesm2022/edsis-angular-component-utils-overlay.mjs +54 -0
  138. package/fesm2022/edsis-angular-component-utils-scale.mjs +76 -0
  139. package/fesm2022/edsis-angular-component-utils.mjs +2 -0
  140. package/fesm2022/edsis-angular-component.mjs +0 -0
  141. package/fesm2022/edsis-angular-navigation-core.mjs +15 -0
  142. package/fesm2022/edsis-angular-navigation-icon.mjs +35 -0
  143. package/fesm2022/edsis-angular-navigation-navigation-badge-count.component-BWWWaUgy.mjs +234 -0
  144. package/fesm2022/edsis-angular-navigation-navigation-dockbar-menu.component-Bx2bxTID.mjs +834 -0
  145. package/fesm2022/edsis-angular-navigation-navigation-entry-grid.component-Duzt1ffz.mjs +823 -0
  146. package/fesm2022/edsis-angular-navigation-navigation-flyout-menu.component-cJ8Q1vM6.mjs +670 -0
  147. package/fesm2022/edsis-angular-navigation-navigation-horizontal.component-CDQ1wt2_.mjs +689 -0
  148. package/fesm2022/edsis-angular-navigation-navigation-item.component-C1VzerJp.mjs +1522 -0
  149. package/fesm2022/edsis-angular-navigation-navigation-list.component-BPYLfrID.mjs +346 -0
  150. package/fesm2022/edsis-angular-navigation-service.mjs +558 -0
  151. package/fesm2022/edsis-angular-navigation-types.mjs +151 -0
  152. package/fesm2022/edsis-angular-navigation.mjs +3338 -0
  153. package/fesm2022/edsis-angular-sdk.mjs +100 -0
  154. package/fesm2022/edsis-angular-theme-component-settings.mjs +1877 -0
  155. package/fesm2022/edsis-angular-theme-layout-services.mjs +252 -0
  156. package/fesm2022/edsis-angular-theme-layout-types.mjs +45 -0
  157. package/fesm2022/edsis-angular-theme-layout-wrapper.mjs +2568 -0
  158. package/fesm2022/edsis-angular-theme-layout.mjs +1089 -0
  159. package/fesm2022/edsis-angular-theme-page-core.mjs +315 -0
  160. package/fesm2022/edsis-angular-theme-page-filter.mjs +409 -0
  161. package/fesm2022/edsis-angular-theme-page-overview.mjs +88 -0
  162. package/fesm2022/edsis-angular-theme-page-root.mjs +693 -0
  163. package/fesm2022/edsis-angular-theme-page-side.mjs +342 -0
  164. package/fesm2022/edsis-angular-theme-page-slots.mjs +258 -0
  165. package/fesm2022/edsis-angular-theme-page.mjs +7 -0
  166. package/fesm2022/edsis-angular-theme-shell-services.mjs +231 -0
  167. package/fesm2022/edsis-angular-theme-shell-types.mjs +102 -0
  168. package/fesm2022/edsis-angular-theme-shell.mjs +1352 -0
  169. package/fesm2022/edsis-angular-theme-styles.mjs +572 -0
  170. package/fesm2022/edsis-angular-theme.mjs +0 -0
  171. package/fesm2022/edsis-angular.mjs +5 -8
  172. package/navigation/README.md +576 -0
  173. package/package.json +477 -52
  174. package/sdk/README.md +212 -0
  175. package/sdk/schematics/collection.json +20 -0
  176. package/sdk/schematics/init/index.js +83 -0
  177. package/sdk/schematics/init/schema.json +19 -0
  178. package/sdk/schematics/ng-add/index.js +147 -0
  179. package/sdk/schematics/ng-add/schema.json +14 -0
  180. package/sdk/schematics/package.json +3 -0
  181. package/sdk/schematics/sdk/index.js +175 -0
  182. package/sdk/schematics/sdk/schema.json +19 -0
  183. package/sdk/sdk.config.example.json +24 -0
  184. package/sdk/src/config/loader.js +43 -0
  185. package/sdk/src/config/schema.js +59 -0
  186. package/sdk/src/emit/client.js +251 -0
  187. package/sdk/src/emit/metadata.js +310 -0
  188. package/sdk/src/emit/models.js +104 -0
  189. package/sdk/src/emit/navigation.js +56 -0
  190. package/sdk/src/emit/operations.js +118 -0
  191. package/sdk/src/emit/public-api.js +54 -0
  192. package/sdk/src/emit/services.js +110 -0
  193. package/sdk/src/engine.js +67 -0
  194. package/sdk/src/layout/per-domain.js +360 -0
  195. package/sdk/src/package.json +3 -0
  196. package/sdk/src/parser/bundle.js +25 -0
  197. package/sdk/src/parser/ir.js +429 -0
  198. package/sdk/src/parser/types.js +7 -0
  199. package/sdk/src/render/template.js +152 -0
  200. package/sdk/src/writer/index.js +286 -0
  201. package/theme/README.md +120 -0
  202. package/theme/component/settings/README.md +154 -0
  203. package/theme/layout/README.md +604 -0
  204. package/theme/page/README.md +505 -0
  205. package/theme/shell/README.md +344 -0
  206. package/theme/styles/README.md +202 -0
  207. package/theme/styles/css/base/components.css +577 -0
  208. package/theme/styles/css/base/index.css +14 -0
  209. package/theme/styles/css/base/package.css +9 -0
  210. package/theme/styles/css/base/prefers-dark.css +86 -0
  211. package/theme/styles/css/base/print.css +62 -0
  212. package/theme/styles/css/base/status.css +38 -0
  213. package/theme/styles/css/base/tailwind.css +208 -0
  214. package/theme/styles/css/base/theme.css +353 -0
  215. package/theme/styles/css/base/tokens.css +388 -0
  216. package/theme/styles/css/color/amber.css +72 -0
  217. package/theme/styles/css/color/blue.css +72 -0
  218. package/theme/styles/css/color/brand.css +38 -0
  219. package/theme/styles/css/color/cyan.css +72 -0
  220. package/theme/styles/css/color/emerald.css +72 -0
  221. package/theme/styles/css/color/fuchsia.css +72 -0
  222. package/theme/styles/css/color/green.css +72 -0
  223. package/theme/styles/css/color/index.css +19 -0
  224. package/theme/styles/css/color/indigo.css +72 -0
  225. package/theme/styles/css/color/lime.css +72 -0
  226. package/theme/styles/css/color/orange.css +72 -0
  227. package/theme/styles/css/color/pink.css +72 -0
  228. package/theme/styles/css/color/purple.css +72 -0
  229. package/theme/styles/css/color/red.css +72 -0
  230. package/theme/styles/css/color/rose.css +72 -0
  231. package/theme/styles/css/color/sky.css +72 -0
  232. package/theme/styles/css/color/teal.css +72 -0
  233. package/theme/styles/css/color/violet.css +72 -0
  234. package/theme/styles/css/color/yellow.css +72 -0
  235. package/theme/styles/css/fonts.css +85 -0
  236. package/theme/styles/css/index.css +18 -0
  237. package/theme/styles/css/neutral/gray.css +63 -0
  238. package/theme/styles/css/neutral/index.css +11 -0
  239. package/theme/styles/css/neutral/mauve.css +63 -0
  240. package/theme/styles/css/neutral/mist.css +63 -0
  241. package/theme/styles/css/neutral/neutral.css +63 -0
  242. package/theme/styles/css/neutral/olive.css +63 -0
  243. package/theme/styles/css/neutral/slate.css +63 -0
  244. package/theme/styles/css/neutral/stone.css +63 -0
  245. package/theme/styles/css/neutral/taupe.css +63 -0
  246. package/theme/styles/css/neutral/zinc.css +63 -0
  247. package/theme/styles/css/radius/index.css +30 -0
  248. package/theme/styles/css/space/index.css +20 -0
  249. package/types/edsis-angular-chart-area.d.ts +139 -0
  250. package/types/edsis-angular-chart-bar.d.ts +291 -0
  251. package/types/edsis-angular-chart-core.d.ts +822 -0
  252. package/types/edsis-angular-chart-line.d.ts +148 -0
  253. package/types/edsis-angular-chart-pie.d.ts +202 -0
  254. package/types/edsis-angular-chart-primitives.d.ts +360 -0
  255. package/types/edsis-angular-chart-radar.d.ts +198 -0
  256. package/types/edsis-angular-chart-radial.d.ts +187 -0
  257. package/types/edsis-angular-chart-scatter.d.ts +181 -0
  258. package/types/edsis-angular-chart.d.ts +3 -0
  259. package/types/edsis-angular-component-accordion.d.ts +139 -0
  260. package/types/edsis-angular-component-alert-dialog.d.ts +288 -0
  261. package/types/edsis-angular-component-alert.d.ts +72 -0
  262. package/types/edsis-angular-component-aspect-ratio.d.ts +20 -0
  263. package/types/edsis-angular-component-avatar.d.ts +111 -0
  264. package/types/edsis-angular-component-badge.d.ts +36 -0
  265. package/types/edsis-angular-component-breadcrumb.d.ts +85 -0
  266. package/types/edsis-angular-component-button-group.d.ts +50 -0
  267. package/types/edsis-angular-component-button.d.ts +44 -0
  268. package/types/edsis-angular-component-calendar.d.ts +150 -0
  269. package/types/edsis-angular-component-card.d.ts +123 -0
  270. package/types/edsis-angular-component-carousel.d.ts +155 -0
  271. package/types/edsis-angular-component-checkbox.d.ts +100 -0
  272. package/types/edsis-angular-component-collapsible.d.ts +68 -0
  273. package/types/edsis-angular-component-combobox.d.ts +105 -0
  274. package/types/edsis-angular-component-command.d.ts +215 -0
  275. package/types/edsis-angular-component-composer.d.ts +190 -0
  276. package/types/edsis-angular-component-context-menu.d.ts +64 -0
  277. package/types/edsis-angular-component-date-picker.d.ts +199 -0
  278. package/types/edsis-angular-component-dialog.d.ts +231 -0
  279. package/types/edsis-angular-component-drawer.d.ts +2 -0
  280. package/types/edsis-angular-component-dropdown-menu.d.ts +370 -0
  281. package/types/edsis-angular-component-editor.d.ts +234 -0
  282. package/types/edsis-angular-component-empty.d.ts +85 -0
  283. package/types/edsis-angular-component-form.d.ts +223 -0
  284. package/types/edsis-angular-component-hover-card.d.ts +133 -0
  285. package/types/edsis-angular-component-icon.d.ts +90 -0
  286. package/types/edsis-angular-component-input-group.d.ts +98 -0
  287. package/types/edsis-angular-component-input-otp.d.ts +249 -0
  288. package/types/edsis-angular-component-input.d.ts +31 -0
  289. package/types/edsis-angular-component-item.d.ts +169 -0
  290. package/types/edsis-angular-component-kanban.d.ts +165 -0
  291. package/types/edsis-angular-component-kbd.d.ts +25 -0
  292. package/types/edsis-angular-component-label.d.ts +19 -0
  293. package/types/edsis-angular-component-menubar.d.ts +123 -0
  294. package/types/edsis-angular-component-native-select.d.ts +39 -0
  295. package/types/edsis-angular-component-navigation-menu.d.ts +163 -0
  296. package/types/edsis-angular-component-pagination.d.ts +83 -0
  297. package/types/edsis-angular-component-pillbox.d.ts +380 -0
  298. package/types/edsis-angular-component-popover.d.ts +96 -0
  299. package/types/edsis-angular-component-progress.d.ts +45 -0
  300. package/types/edsis-angular-component-radio.d.ts +137 -0
  301. package/types/edsis-angular-component-resizable.d.ts +166 -0
  302. package/types/edsis-angular-component-scroll-area.d.ts +37 -0
  303. package/types/edsis-angular-component-segmented-control.d.ts +102 -0
  304. package/types/edsis-angular-component-select.d.ts +138 -0
  305. package/types/edsis-angular-component-separator.d.ts +26 -0
  306. package/types/edsis-angular-component-sheet.d.ts +240 -0
  307. package/types/edsis-angular-component-skeleton.d.ts +13 -0
  308. package/types/edsis-angular-component-slider.d.ts +148 -0
  309. package/types/edsis-angular-component-spinner.d.ts +31 -0
  310. package/types/edsis-angular-component-switch.d.ts +101 -0
  311. package/types/edsis-angular-component-table.d.ts +109 -0
  312. package/types/edsis-angular-component-tabs.d.ts +183 -0
  313. package/types/edsis-angular-component-textarea.d.ts +27 -0
  314. package/types/edsis-angular-component-timeline.d.ts +146 -0
  315. package/types/edsis-angular-component-toast.d.ts +60 -0
  316. package/types/edsis-angular-component-toggle-group.d.ts +161 -0
  317. package/types/edsis-angular-component-toggle.d.ts +47 -0
  318. package/types/edsis-angular-component-tooltip.d.ts +233 -0
  319. package/types/edsis-angular-component-utils-core.d.ts +175 -0
  320. package/types/edsis-angular-component-utils-overlay.d.ts +17 -0
  321. package/types/edsis-angular-component-utils-scale.d.ts +27 -0
  322. package/types/edsis-angular-component-utils.d.ts +2 -0
  323. package/types/edsis-angular-component.d.ts +1 -0
  324. package/types/edsis-angular-navigation-core.d.ts +55 -0
  325. package/types/edsis-angular-navigation-icon.d.ts +9 -0
  326. package/types/edsis-angular-navigation-service.d.ts +121 -0
  327. package/types/edsis-angular-navigation-types.d.ts +185 -0
  328. package/types/edsis-angular-navigation.d.ts +862 -0
  329. package/types/edsis-angular-sdk.d.ts +87 -0
  330. package/types/edsis-angular-theme-component-settings.d.ts +205 -0
  331. package/types/edsis-angular-theme-layout-services.d.ts +143 -0
  332. package/types/edsis-angular-theme-layout-types.d.ts +36 -0
  333. package/types/edsis-angular-theme-layout-wrapper.d.ts +670 -0
  334. package/types/edsis-angular-theme-layout.d.ts +218 -0
  335. package/types/edsis-angular-theme-page-core.d.ts +151 -0
  336. package/types/edsis-angular-theme-page-filter.d.ts +127 -0
  337. package/types/edsis-angular-theme-page-overview.d.ts +28 -0
  338. package/types/edsis-angular-theme-page-root.d.ts +172 -0
  339. package/types/edsis-angular-theme-page-side.d.ts +90 -0
  340. package/types/edsis-angular-theme-page-slots.d.ts +61 -0
  341. package/types/edsis-angular-theme-page.d.ts +7 -0
  342. package/types/edsis-angular-theme-shell-services.d.ts +188 -0
  343. package/types/edsis-angular-theme-shell-types.d.ts +102 -0
  344. package/types/edsis-angular-theme-shell.d.ts +178 -0
  345. package/types/edsis-angular-theme-styles.d.ts +295 -0
  346. package/types/edsis-angular-theme.d.ts +1 -0
  347. package/types/edsis-angular.d.ts +5 -2
  348. package/fesm2022/edsis-angular-block-shell.mjs +0 -1329
  349. package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
  350. package/fesm2022/edsis-angular-block-themes.mjs +0 -1007
  351. package/fesm2022/edsis-angular-block-themes.mjs.map +0 -1
  352. package/fesm2022/edsis-angular-module-auth.mjs +0 -2582
  353. package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
  354. package/fesm2022/edsis-angular-platform-mfe.mjs +0 -329
  355. package/fesm2022/edsis-angular-platform-mfe.mjs.map +0 -1
  356. package/fesm2022/edsis-angular-services-runtime.mjs +0 -385
  357. package/fesm2022/edsis-angular-services-runtime.mjs.map +0 -1
  358. package/fesm2022/edsis-angular.mjs.map +0 -1
  359. package/types/edsis-angular-block-shell.d.ts +0 -190
  360. package/types/edsis-angular-block-themes.d.ts +0 -94
  361. package/types/edsis-angular-module-auth.d.ts +0 -533
  362. package/types/edsis-angular-platform-mfe.d.ts +0 -126
  363. package/types/edsis-angular-services-runtime.d.ts +0 -118
@@ -0,0 +1,676 @@
1
+ import * as i0 from "@angular/core";
2
+ import { Component, DestroyRef, ElementRef, booleanAttribute, computed, effect, inject, input, numberAttribute, output, signal, untracked, viewChild } from "@angular/core";
3
+ import { cn } from "@edsis/angular/component/utils/core";
4
+ import { DOCUMENT } from "@angular/common";
5
+ var SliderComponent = class SliderComponent {
6
+ el = inject(ElementRef);
7
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
8
+ classes = computed(() => cn("Slider relative w-full appearance-none bg-transparent", "focus-visible:outline-none", "disabled:pointer-events-none disabled:opacity-50", this.class()), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
9
+ focus() {
10
+ this.el.nativeElement.focus();
11
+ }
12
+ static ɵfac = i0.ɵɵngDeclareFactory({
13
+ minVersion: "12.0.0",
14
+ version: "22.2.3",
15
+ ngImport: i0,
16
+ type: SliderComponent,
17
+ deps: [],
18
+ target: i0.ɵɵFactoryTarget.Component
19
+ });
20
+ static ɵcmp = i0.ɵɵngDeclareComponent({
21
+ minVersion: "17.1.0",
22
+ version: "22.2.3",
23
+ type: SliderComponent,
24
+ isStandalone: true,
25
+ selector: "input[type=range][Slider]",
26
+ inputs: { class: {
27
+ classPropertyName: "class",
28
+ publicName: "class",
29
+ isSignal: true,
30
+ isRequired: false,
31
+ transformFunction: null
32
+ } },
33
+ host: { properties: { "class": "classes()" } },
34
+ ngImport: i0,
35
+ template: "",
36
+ isInline: true,
37
+ styles: [":host.Slider{height:calc(var(--spacing-base) * 5);cursor:pointer}:host.Slider::-webkit-slider-runnable-track{height:calc(var(--spacing-base) * 2);border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.Slider::-moz-range-track{height:calc(var(--spacing-base) * 2);border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.Slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:calc(var(--spacing-base) * -1);width:calc(var(--spacing-base) * 4);height:calc(var(--spacing-base) * 4);border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow var(--duration-fast) var(--ease-standard)}:host.Slider::-moz-range-thumb{width:calc(var(--spacing-base) * 4);height:calc(var(--spacing-base) * 4);border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow var(--duration-fast) var(--ease-standard)}:host.Slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.Slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.Slider:disabled::-webkit-slider-thumb{cursor:not-allowed}:host.Slider:disabled::-moz-range-thumb{cursor:not-allowed}\n"]
38
+ });
39
+ };
40
+ i0.ɵɵngDeclareClassMetadata({
41
+ minVersion: "12.0.0",
42
+ version: "22.2.3",
43
+ ngImport: i0,
44
+ type: SliderComponent,
45
+ decorators: [{
46
+ type: Component,
47
+ args: [{
48
+ selector: "input[type=range][Slider]",
49
+ host: { "[class]": "classes()" },
50
+ template: "",
51
+ styles: [":host.Slider{height:calc(var(--spacing-base) * 5);cursor:pointer}:host.Slider::-webkit-slider-runnable-track{height:calc(var(--spacing-base) * 2);border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.Slider::-moz-range-track{height:calc(var(--spacing-base) * 2);border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.Slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:calc(var(--spacing-base) * -1);width:calc(var(--spacing-base) * 4);height:calc(var(--spacing-base) * 4);border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow var(--duration-fast) var(--ease-standard)}:host.Slider::-moz-range-thumb{width:calc(var(--spacing-base) * 4);height:calc(var(--spacing-base) * 4);border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow var(--duration-fast) var(--ease-standard)}:host.Slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.Slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.Slider:disabled::-webkit-slider-thumb{cursor:not-allowed}:host.Slider:disabled::-moz-range-thumb{cursor:not-allowed}\n"]
52
+ }]
53
+ }],
54
+ propDecorators: { class: [{
55
+ type: i0.Input,
56
+ args: [{
57
+ isSignal: true,
58
+ alias: "class",
59
+ required: false
60
+ }]
61
+ }] }
62
+ });
63
+ var SliderRootComponent = class SliderRootComponent {
64
+ host = inject(ElementRef);
65
+ document = inject(DOCUMENT);
66
+ destroyRef = inject(DestroyRef);
67
+ track = viewChild.required("track", ...ngDevMode ? [{ debugName: "track" }] : /* istanbul ignore next */ []);
68
+ value = input([0], ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
69
+ min = input(0, {
70
+ ...ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {},
71
+ transform: numberAttribute
72
+ });
73
+ max = input(100, {
74
+ ...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
75
+ transform: numberAttribute
76
+ });
77
+ step = input(1, {
78
+ ...ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {},
79
+ transform: numberAttribute
80
+ });
81
+ minStepsBetweenThumbs = input(0, {
82
+ ...ngDevMode ? { debugName: "minStepsBetweenThumbs" } : /* istanbul ignore next */ {},
83
+ transform: numberAttribute
84
+ });
85
+ orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
86
+ disabled = input(false, {
87
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
88
+ transform: booleanAttribute
89
+ });
90
+ thumbLabels = input(null, ...ngDevMode ? [{ debugName: "thumbLabels" }] : /* istanbul ignore next */ []);
91
+ ariaLabel = input(null, {
92
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
93
+ alias: "aria-label"
94
+ });
95
+ ariaDescribedby = input(null, {
96
+ ...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
97
+ alias: "aria-describedby"
98
+ });
99
+ ariaLabelledby = input(null, {
100
+ ...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
101
+ alias: "aria-labelledby"
102
+ });
103
+ class = input("", ...ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []);
104
+ valueChange = output();
105
+ valueState = signal([0], ...ngDevMode ? [{ debugName: "valueState" }] : /* istanbul ignore next */ []);
106
+ activeThumbIndex = signal(0, ...ngDevMode ? [{ debugName: "activeThumbIndex" }] : /* istanbul ignore next */ []);
107
+ draggedThumbIndex = signal(null, ...ngDevMode ? [{ debugName: "draggedThumbIndex" }] : /* istanbul ignore next */ []);
108
+ pointerId = signal(null, ...ngDevMode ? [{ debugName: "pointerId" }] : /* istanbul ignore next */ []);
109
+ detachDragListeners = null;
110
+ config = computed(() => ({
111
+ min: Math.min(this.min(), this.max()),
112
+ max: Math.max(this.min(), this.max()),
113
+ step: this.step() > 0 ? this.step() : 1,
114
+ minStepsBetweenThumbs: Math.max(0, Math.floor(this.minStepsBetweenThumbs()))
115
+ }), ...ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []);
116
+ hostClasses = computed(() => cn("slider-root relative flex touch-none select-none", this.orientation() === "horizontal" ? "h-5 w-full items-center" : "h-32 w-5 justify-center", this.disabled() ? "opacity-50" : "", this.class()), ...ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []);
117
+ thumbs = computed(() => {
118
+ const values = this.valueState();
119
+ const config = this.config();
120
+ return values.map((value, index) => {
121
+ const bounds = thumbBounds(values, index, config);
122
+ return {
123
+ index,
124
+ value,
125
+ position: this.positionPercent(value),
126
+ min: bounds.min,
127
+ max: bounds.max,
128
+ label: this.thumbLabel(index, values.length)
129
+ };
130
+ });
131
+ }, ...ngDevMode ? [{ debugName: "thumbs" }] : /* istanbul ignore next */ []);
132
+ rangeOffset = computed(() => {
133
+ return this.rangeSpan().start;
134
+ }, ...ngDevMode ? [{ debugName: "rangeOffset" }] : /* istanbul ignore next */ []);
135
+ rangeSize = computed(() => {
136
+ const span = this.rangeSpan();
137
+ return span.end - span.start;
138
+ }, ...ngDevMode ? [{ debugName: "rangeSize" }] : /* istanbul ignore next */ []);
139
+ syncExternalValue = effect(() => {
140
+ const normalized = normalizeSliderValues(this.value(), this.config());
141
+ untracked(() => {
142
+ if (!sameValues(normalized, this.valueState())) this.valueState.set(normalized);
143
+ this.activeThumbIndex.set(clampIndex(this.activeThumbIndex(), normalized.length));
144
+ });
145
+ }, ...ngDevMode ? [{ debugName: "syncExternalValue" }] : /* istanbul ignore next */ []);
146
+ constructor() {
147
+ this.destroyRef.onDestroy(() => this.endDrag());
148
+ }
149
+ onTrackPointerDown(event) {
150
+ if (this.disabled() || event.button !== 0) return;
151
+ event.preventDefault();
152
+ const nextValue = this.valueFromPointer(event);
153
+ if (nextValue == null) return;
154
+ const thumbIndex = this.closestThumbIndex(nextValue);
155
+ this.activeThumbIndex.set(thumbIndex);
156
+ this.updateThumbValue(thumbIndex, nextValue);
157
+ this.beginDrag(event, thumbIndex);
158
+ }
159
+ onThumbPointerDown(event, index) {
160
+ if (this.disabled() || event.button !== 0) return;
161
+ event.preventDefault();
162
+ event.stopPropagation();
163
+ this.activeThumbIndex.set(index);
164
+ this.beginDrag(event, index);
165
+ }
166
+ onThumbFocus(index) {
167
+ this.activeThumbIndex.set(index);
168
+ }
169
+ onThumbKeydown(event, index) {
170
+ if (this.disabled()) return;
171
+ const current = this.valueState()[index];
172
+ const config = this.config();
173
+ const pageStep = config.step * 10;
174
+ const direction = this.resolvedDirection();
175
+ let nextValue = null;
176
+ switch (event.key) {
177
+ case "ArrowRight":
178
+ nextValue = current + (direction === "rtl" && this.orientation() === "horizontal" ? -config.step : config.step);
179
+ break;
180
+ case "ArrowLeft":
181
+ nextValue = current + (direction === "rtl" && this.orientation() === "horizontal" ? config.step : -config.step);
182
+ break;
183
+ case "ArrowUp":
184
+ nextValue = current + config.step;
185
+ break;
186
+ case "ArrowDown":
187
+ nextValue = current - config.step;
188
+ break;
189
+ case "PageUp":
190
+ nextValue = current + pageStep;
191
+ break;
192
+ case "PageDown":
193
+ nextValue = current - pageStep;
194
+ break;
195
+ case "Home":
196
+ nextValue = thumbBounds(this.valueState(), index, config).min;
197
+ break;
198
+ case "End":
199
+ nextValue = thumbBounds(this.valueState(), index, config).max;
200
+ break;
201
+ default: return;
202
+ }
203
+ event.preventDefault();
204
+ this.activeThumbIndex.set(index);
205
+ this.updateThumbValue(index, nextValue);
206
+ }
207
+ beginDrag(event, index) {
208
+ this.endDrag();
209
+ this.pointerId.set(event.pointerId);
210
+ this.draggedThumbIndex.set(index);
211
+ this.host.nativeElement.setPointerCapture(event.pointerId);
212
+ const move = (next) => this.onDragMove(next);
213
+ const end = (next) => this.endDrag(next);
214
+ this.document.addEventListener("pointermove", move);
215
+ this.document.addEventListener("pointerup", end);
216
+ this.document.addEventListener("pointercancel", end);
217
+ this.detachDragListeners = () => {
218
+ this.document.removeEventListener("pointermove", move);
219
+ this.document.removeEventListener("pointerup", end);
220
+ this.document.removeEventListener("pointercancel", end);
221
+ this.detachDragListeners = null;
222
+ };
223
+ this.focusThumb(index);
224
+ }
225
+ onDragMove(event) {
226
+ if (this.pointerId() !== event.pointerId) return;
227
+ const thumbIndex = this.draggedThumbIndex();
228
+ if (thumbIndex == null) return;
229
+ const nextValue = this.valueFromPointer(event);
230
+ if (nextValue == null) return;
231
+ event.preventDefault();
232
+ this.updateThumbValue(thumbIndex, nextValue);
233
+ }
234
+ endDrag(event) {
235
+ const pointerId = event ? event.pointerId : this.pointerId();
236
+ if (pointerId == null || event && this.pointerId() !== pointerId) return;
237
+ const host = this.host.nativeElement;
238
+ if (host.hasPointerCapture(pointerId)) host.releasePointerCapture(pointerId);
239
+ this.detachDragListeners?.();
240
+ this.draggedThumbIndex.set(null);
241
+ this.pointerId.set(null);
242
+ }
243
+ updateThumbValue(index, rawValue) {
244
+ const current = this.valueState();
245
+ const bounds = thumbBounds(current, index, this.config());
246
+ const nextValues = current.slice();
247
+ nextValues[index] = snapWithinBounds(rawValue, bounds.min, bounds.max, this.config());
248
+ if (sameValues(nextValues, current)) return;
249
+ this.valueState.set(nextValues);
250
+ this.valueChange.emit(nextValues);
251
+ }
252
+ valueFromPointer(event) {
253
+ const rect = this.track().nativeElement.getBoundingClientRect();
254
+ const config = this.config();
255
+ if (rect.width <= 0 || rect.height <= 0) return null;
256
+ let ratio = 0;
257
+ if (this.orientation() === "horizontal") {
258
+ const physicalRatio = clamp((event.clientX - rect.left) / rect.width, 0, 1);
259
+ ratio = this.resolvedDirection() === "rtl" ? 1 - physicalRatio : physicalRatio;
260
+ } else ratio = clamp((rect.bottom - event.clientY) / rect.height, 0, 1);
261
+ return config.min + ratio * (config.max - config.min);
262
+ }
263
+ closestThumbIndex(nextValue) {
264
+ const values = this.valueState();
265
+ let bestIndex = 0;
266
+ let bestDistance = Number.POSITIVE_INFINITY;
267
+ values.forEach((value, index) => {
268
+ const distance = Math.abs(value - nextValue);
269
+ if (distance < bestDistance) {
270
+ bestDistance = distance;
271
+ bestIndex = index;
272
+ }
273
+ });
274
+ return bestIndex;
275
+ }
276
+ rangeSpan() {
277
+ const positions = this.valueState().map((value) => this.positionPercent(value));
278
+ if (!positions.length) return {
279
+ start: 0,
280
+ end: 0
281
+ };
282
+ if (positions.length === 1) {
283
+ const minBoundary = this.positionPercent(this.config().min);
284
+ return {
285
+ start: Math.min(minBoundary, positions[0]),
286
+ end: Math.max(minBoundary, positions[0])
287
+ };
288
+ }
289
+ return {
290
+ start: Math.min(...positions),
291
+ end: Math.max(...positions)
292
+ };
293
+ }
294
+ positionPercent(value) {
295
+ const config = this.config();
296
+ const range = config.max - config.min;
297
+ if (range <= 0) return this.orientation() === "horizontal" && this.resolvedDirection() === "rtl" ? 100 : 0;
298
+ const logicalRatio = (value - config.min) / range;
299
+ return clamp((this.orientation() === "horizontal" && this.resolvedDirection() === "rtl" ? 1 - logicalRatio : logicalRatio) * 100, 0, 100);
300
+ }
301
+ thumbLabel(index, count) {
302
+ const labels = this.thumbLabels();
303
+ if (labels?.[index]) return labels[index] ?? null;
304
+ if (count === 1) return this.ariaLabel();
305
+ return this.ariaLabel() ? `${this.ariaLabel()} ${index + 1}` : `Slider thumb ${index + 1}`;
306
+ }
307
+ focusThumb(index) {
308
+ this.host.nativeElement.querySelector(`.slider__thumb[data-index="${index}"]`)?.focus();
309
+ }
310
+ resolvedDirection() {
311
+ const host = this.host.nativeElement;
312
+ if (host.dir === "ltr" || host.dir === "rtl") return host.dir;
313
+ const view = this.document.defaultView;
314
+ if (!view) return "ltr";
315
+ return view.getComputedStyle(host).direction === "rtl" ? "rtl" : "ltr";
316
+ }
317
+ static ɵfac = i0.ɵɵngDeclareFactory({
318
+ minVersion: "12.0.0",
319
+ version: "22.2.3",
320
+ ngImport: i0,
321
+ type: SliderRootComponent,
322
+ deps: [],
323
+ target: i0.ɵɵFactoryTarget.Component
324
+ });
325
+ static ɵcmp = i0.ɵɵngDeclareComponent({
326
+ minVersion: "17.0.0",
327
+ version: "22.2.3",
328
+ type: SliderRootComponent,
329
+ isStandalone: true,
330
+ selector: "Slider",
331
+ inputs: {
332
+ value: {
333
+ classPropertyName: "value",
334
+ publicName: "value",
335
+ isSignal: true,
336
+ isRequired: false,
337
+ transformFunction: null
338
+ },
339
+ min: {
340
+ classPropertyName: "min",
341
+ publicName: "min",
342
+ isSignal: true,
343
+ isRequired: false,
344
+ transformFunction: null
345
+ },
346
+ max: {
347
+ classPropertyName: "max",
348
+ publicName: "max",
349
+ isSignal: true,
350
+ isRequired: false,
351
+ transformFunction: null
352
+ },
353
+ step: {
354
+ classPropertyName: "step",
355
+ publicName: "step",
356
+ isSignal: true,
357
+ isRequired: false,
358
+ transformFunction: null
359
+ },
360
+ minStepsBetweenThumbs: {
361
+ classPropertyName: "minStepsBetweenThumbs",
362
+ publicName: "minStepsBetweenThumbs",
363
+ isSignal: true,
364
+ isRequired: false,
365
+ transformFunction: null
366
+ },
367
+ orientation: {
368
+ classPropertyName: "orientation",
369
+ publicName: "orientation",
370
+ isSignal: true,
371
+ isRequired: false,
372
+ transformFunction: null
373
+ },
374
+ disabled: {
375
+ classPropertyName: "disabled",
376
+ publicName: "disabled",
377
+ isSignal: true,
378
+ isRequired: false,
379
+ transformFunction: null
380
+ },
381
+ thumbLabels: {
382
+ classPropertyName: "thumbLabels",
383
+ publicName: "thumbLabels",
384
+ isSignal: true,
385
+ isRequired: false,
386
+ transformFunction: null
387
+ },
388
+ ariaLabel: {
389
+ classPropertyName: "ariaLabel",
390
+ publicName: "aria-label",
391
+ isSignal: true,
392
+ isRequired: false,
393
+ transformFunction: null
394
+ },
395
+ ariaDescribedby: {
396
+ classPropertyName: "ariaDescribedby",
397
+ publicName: "aria-describedby",
398
+ isSignal: true,
399
+ isRequired: false,
400
+ transformFunction: null
401
+ },
402
+ ariaLabelledby: {
403
+ classPropertyName: "ariaLabelledby",
404
+ publicName: "aria-labelledby",
405
+ isSignal: true,
406
+ isRequired: false,
407
+ transformFunction: null
408
+ },
409
+ class: {
410
+ classPropertyName: "class",
411
+ publicName: "class",
412
+ isSignal: true,
413
+ isRequired: false,
414
+ transformFunction: null
415
+ }
416
+ },
417
+ outputs: { valueChange: "valueChange" },
418
+ host: { properties: {
419
+ "class": "hostClasses()",
420
+ "attr.data-disabled": "disabled() ? \"\" : null",
421
+ "attr.data-orientation": "orientation()"
422
+ } },
423
+ viewQueries: [{
424
+ propertyName: "track",
425
+ first: true,
426
+ predicate: ["track"],
427
+ descendants: true,
428
+ isSignal: true
429
+ }],
430
+ ngImport: i0,
431
+ template: `
432
+ <div #track class="slider__track" (pointerdown)="onTrackPointerDown($event)">
433
+ <div
434
+ class="slider__range"
435
+ [style.left.%]="orientation() === 'horizontal' ? rangeOffset() : null"
436
+ [style.width.%]="orientation() === 'horizontal' ? rangeSize() : null"
437
+ [style.bottom.%]="orientation() === 'vertical' ? rangeOffset() : null"
438
+ [style.height.%]="orientation() === 'vertical' ? rangeSize() : null"
439
+ ></div>
440
+
441
+ @for (thumb of thumbs(); track thumb.index) {
442
+ <button
443
+ type="button"
444
+ class="slider__thumb"
445
+ [style.left.%]="orientation() === 'horizontal' ? thumb.position : 50"
446
+ [style.top.%]="orientation() === 'horizontal' ? 50 : null"
447
+ [style.bottom.%]="orientation() === 'vertical' ? thumb.position : null"
448
+ [attr.aria-describedby]="ariaDescribedby()"
449
+ [attr.aria-disabled]="disabled() ? 'true' : null"
450
+ [attr.aria-label]="thumb.label"
451
+ [attr.aria-labelledby]="thumb.label ? null : ariaLabelledby()"
452
+ [attr.aria-orientation]="orientation()"
453
+ [attr.aria-valuemax]="thumb.max"
454
+ [attr.aria-valuemin]="thumb.min"
455
+ [attr.aria-valuenow]="thumb.value"
456
+ [attr.data-index]="thumb.index"
457
+ [attr.data-state]="disabled() ? 'disabled' : 'active'"
458
+ [tabIndex]="disabled() ? -1 : activeThumbIndex() === thumb.index ? 0 : -1"
459
+ role="slider"
460
+ (focus)="onThumbFocus(thumb.index)"
461
+ (keydown)="onThumbKeydown($event, thumb.index)"
462
+ (pointerdown)="onThumbPointerDown($event, thumb.index)"
463
+ ></button>
464
+ }
465
+ </div>
466
+ `,
467
+ isInline: true,
468
+ styles: [":host.slider-root{--slider-thumb-size: 1rem;--slider-track-size: .5rem;display:block}.slider__track{position:relative;flex:1 1 auto;border-radius:9999px;background:hsl(var(--secondary))}:host[data-orientation=horizontal] .slider__track{height:var(--slider-track-size);width:100%}:host[data-orientation=vertical] .slider__track{height:100%;width:var(--slider-track-size)}.slider__range{position:absolute;border-radius:inherit;background:hsl(var(--primary))}:host[data-orientation=horizontal] .slider__range{top:0;height:100%}:host[data-orientation=vertical] .slider__range{left:0;width:100%}.slider__thumb{position:absolute;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:var(--border-width) solid hsl(var(--primary));border-radius:9999px;background:hsl(var(--background));box-shadow:0 1px 2px hsl(var(--foreground) / .14);transition:box-shadow var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}:host[data-orientation=horizontal] .slider__thumb{transform:translate(-50%,-50%)}:host[data-orientation=vertical] .slider__thumb{transform:translate(-50%,50%)}.slider__thumb:focus-visible{outline:none;box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host[data-disabled] .slider__track,:host[data-disabled] .slider__thumb{cursor:not-allowed}\n"]
469
+ });
470
+ };
471
+ i0.ɵɵngDeclareClassMetadata({
472
+ minVersion: "12.0.0",
473
+ version: "22.2.3",
474
+ ngImport: i0,
475
+ type: SliderRootComponent,
476
+ decorators: [{
477
+ type: Component,
478
+ args: [{
479
+ selector: "Slider",
480
+ host: {
481
+ "[class]": "hostClasses()",
482
+ "[attr.data-disabled]": "disabled() ? \"\" : null",
483
+ "[attr.data-orientation]": "orientation()"
484
+ },
485
+ template: `
486
+ <div #track class="slider__track" (pointerdown)="onTrackPointerDown($event)">
487
+ <div
488
+ class="slider__range"
489
+ [style.left.%]="orientation() === 'horizontal' ? rangeOffset() : null"
490
+ [style.width.%]="orientation() === 'horizontal' ? rangeSize() : null"
491
+ [style.bottom.%]="orientation() === 'vertical' ? rangeOffset() : null"
492
+ [style.height.%]="orientation() === 'vertical' ? rangeSize() : null"
493
+ ></div>
494
+
495
+ @for (thumb of thumbs(); track thumb.index) {
496
+ <button
497
+ type="button"
498
+ class="slider__thumb"
499
+ [style.left.%]="orientation() === 'horizontal' ? thumb.position : 50"
500
+ [style.top.%]="orientation() === 'horizontal' ? 50 : null"
501
+ [style.bottom.%]="orientation() === 'vertical' ? thumb.position : null"
502
+ [attr.aria-describedby]="ariaDescribedby()"
503
+ [attr.aria-disabled]="disabled() ? 'true' : null"
504
+ [attr.aria-label]="thumb.label"
505
+ [attr.aria-labelledby]="thumb.label ? null : ariaLabelledby()"
506
+ [attr.aria-orientation]="orientation()"
507
+ [attr.aria-valuemax]="thumb.max"
508
+ [attr.aria-valuemin]="thumb.min"
509
+ [attr.aria-valuenow]="thumb.value"
510
+ [attr.data-index]="thumb.index"
511
+ [attr.data-state]="disabled() ? 'disabled' : 'active'"
512
+ [tabIndex]="disabled() ? -1 : activeThumbIndex() === thumb.index ? 0 : -1"
513
+ role="slider"
514
+ (focus)="onThumbFocus(thumb.index)"
515
+ (keydown)="onThumbKeydown($event, thumb.index)"
516
+ (pointerdown)="onThumbPointerDown($event, thumb.index)"
517
+ ></button>
518
+ }
519
+ </div>
520
+ `,
521
+ styles: [":host.slider-root{--slider-thumb-size: 1rem;--slider-track-size: .5rem;display:block}.slider__track{position:relative;flex:1 1 auto;border-radius:9999px;background:hsl(var(--secondary))}:host[data-orientation=horizontal] .slider__track{height:var(--slider-track-size);width:100%}:host[data-orientation=vertical] .slider__track{height:100%;width:var(--slider-track-size)}.slider__range{position:absolute;border-radius:inherit;background:hsl(var(--primary))}:host[data-orientation=horizontal] .slider__range{top:0;height:100%}:host[data-orientation=vertical] .slider__range{left:0;width:100%}.slider__thumb{position:absolute;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:var(--border-width) solid hsl(var(--primary));border-radius:9999px;background:hsl(var(--background));box-shadow:0 1px 2px hsl(var(--foreground) / .14);transition:box-shadow var(--duration-fast) var(--ease-standard),border-color var(--duration-fast) var(--ease-standard),background-color var(--duration-fast) var(--ease-standard)}:host[data-orientation=horizontal] .slider__thumb{transform:translate(-50%,-50%)}:host[data-orientation=vertical] .slider__thumb{transform:translate(-50%,50%)}.slider__thumb:focus-visible{outline:none;box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host[data-disabled] .slider__track,:host[data-disabled] .slider__thumb{cursor:not-allowed}\n"]
522
+ }]
523
+ }],
524
+ ctorParameters: () => [],
525
+ propDecorators: {
526
+ track: [{
527
+ type: i0.ViewChild,
528
+ args: ["track", { isSignal: true }]
529
+ }],
530
+ value: [{
531
+ type: i0.Input,
532
+ args: [{
533
+ isSignal: true,
534
+ alias: "value",
535
+ required: false
536
+ }]
537
+ }],
538
+ min: [{
539
+ type: i0.Input,
540
+ args: [{
541
+ isSignal: true,
542
+ alias: "min",
543
+ required: false
544
+ }]
545
+ }],
546
+ max: [{
547
+ type: i0.Input,
548
+ args: [{
549
+ isSignal: true,
550
+ alias: "max",
551
+ required: false
552
+ }]
553
+ }],
554
+ step: [{
555
+ type: i0.Input,
556
+ args: [{
557
+ isSignal: true,
558
+ alias: "step",
559
+ required: false
560
+ }]
561
+ }],
562
+ minStepsBetweenThumbs: [{
563
+ type: i0.Input,
564
+ args: [{
565
+ isSignal: true,
566
+ alias: "minStepsBetweenThumbs",
567
+ required: false
568
+ }]
569
+ }],
570
+ orientation: [{
571
+ type: i0.Input,
572
+ args: [{
573
+ isSignal: true,
574
+ alias: "orientation",
575
+ required: false
576
+ }]
577
+ }],
578
+ disabled: [{
579
+ type: i0.Input,
580
+ args: [{
581
+ isSignal: true,
582
+ alias: "disabled",
583
+ required: false
584
+ }]
585
+ }],
586
+ thumbLabels: [{
587
+ type: i0.Input,
588
+ args: [{
589
+ isSignal: true,
590
+ alias: "thumbLabels",
591
+ required: false
592
+ }]
593
+ }],
594
+ ariaLabel: [{
595
+ type: i0.Input,
596
+ args: [{
597
+ isSignal: true,
598
+ alias: "aria-label",
599
+ required: false
600
+ }]
601
+ }],
602
+ ariaDescribedby: [{
603
+ type: i0.Input,
604
+ args: [{
605
+ isSignal: true,
606
+ alias: "aria-describedby",
607
+ required: false
608
+ }]
609
+ }],
610
+ ariaLabelledby: [{
611
+ type: i0.Input,
612
+ args: [{
613
+ isSignal: true,
614
+ alias: "aria-labelledby",
615
+ required: false
616
+ }]
617
+ }],
618
+ class: [{
619
+ type: i0.Input,
620
+ args: [{
621
+ isSignal: true,
622
+ alias: "class",
623
+ required: false
624
+ }]
625
+ }],
626
+ valueChange: [{
627
+ type: i0.Output,
628
+ args: ["valueChange"]
629
+ }]
630
+ }
631
+ });
632
+ function clamp(value, min, max) {
633
+ return Math.min(Math.max(value, min), max);
634
+ }
635
+ function clampIndex(index, length) {
636
+ return clamp(index, 0, Math.max(length - 1, 0));
637
+ }
638
+ function decimalPlaces(value) {
639
+ return `${value}`.split(".")[1]?.length ?? 0;
640
+ }
641
+ function normalizeSliderValues(values, config) {
642
+ const sorted = (values.length ? [...values] : [config.min]).map((value) => snapToStep(value, config)).sort((left, right) => left - right);
643
+ const gap = config.step * config.minStepsBetweenThumbs;
644
+ const normalized = [];
645
+ sorted.forEach((value, index) => {
646
+ const remaining = sorted.length - index - 1;
647
+ const min = index === 0 ? config.min : normalized[index - 1] + gap;
648
+ const max = Math.max(min, config.max - remaining * gap);
649
+ normalized.push(snapWithinBounds(value, min, max, config));
650
+ });
651
+ return normalized;
652
+ }
653
+ function sameValues(left, right) {
654
+ return left.length === right.length && left.every((value, index) => value === right[index]);
655
+ }
656
+ function snapToStep(value, config) {
657
+ const ratio = (value - config.min) / config.step;
658
+ const snapped = config.min + Math.round(ratio) * config.step;
659
+ const precision = Math.max(decimalPlaces(config.step), decimalPlaces(config.min));
660
+ return Number(snapped.toFixed(precision));
661
+ }
662
+ function snapWithinBounds(value, min, max, config) {
663
+ const boundedMin = Math.min(min, max);
664
+ const boundedMax = Math.max(min, max);
665
+ return clamp(snapToStep(value, config), boundedMin, boundedMax);
666
+ }
667
+ function thumbBounds(values, index, config) {
668
+ const gap = config.step * config.minStepsBetweenThumbs;
669
+ const min = index === 0 ? config.min : values[index - 1] + gap;
670
+ const max = index === values.length - 1 ? config.max : values[index + 1] - gap;
671
+ return {
672
+ min: Math.min(min, max),
673
+ max: Math.max(min, max)
674
+ };
675
+ }
676
+ export { SliderComponent, SliderComponent as SliderInputDirective, SliderRootComponent };