@acorex/components 19.10.9 → 19.10.11

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 (498) hide show
  1. package/action-sheet/lib/action-sheet.component.d.ts +1 -1
  2. package/action-sheet/lib/action-sheet.module.d.ts +11 -11
  3. package/alert/lib/alert.component.d.ts +1 -1
  4. package/alert/lib/alert.module.d.ts +4 -4
  5. package/audio-wave/lib/audio-wave.component.d.ts +1 -1
  6. package/audio-wave/lib/audio-wave.module.d.ts +7 -7
  7. package/autocomplete/README.md +3 -0
  8. package/autocomplete/index.d.ts +2 -0
  9. package/autocomplete/lib/autocomplete.component.d.ts +113 -0
  10. package/autocomplete/lib/autocomplete.module.d.ts +7 -0
  11. package/avatar/lib/avatar-group.component.d.ts +1 -1
  12. package/avatar/lib/avatar.component.d.ts +1 -1
  13. package/avatar/lib/avatar.module.d.ts +4 -4
  14. package/badge/lib/badge.component.d.ts +1 -1
  15. package/badge/lib/badge.module.d.ts +3 -3
  16. package/bottom-navigation/lib/bottom-navigation-item/bottom-navigation-item.component.d.ts +1 -1
  17. package/bottom-navigation/lib/bottom-navigation.component.d.ts +1 -1
  18. package/bottom-navigation/lib/bottom-navigation.module.d.ts +4 -4
  19. package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +1 -1
  20. package/breadcrumbs/lib/breadcrumbs.component.d.ts +1 -1
  21. package/breadcrumbs/lib/breadcrumbs.module.d.ts +5 -5
  22. package/button/lib/button-item-list.component.d.ts +1 -1
  23. package/button/lib/button-item.component.d.ts +1 -1
  24. package/button/lib/button.component.d.ts +1 -1
  25. package/button/lib/button.module.d.ts +8 -8
  26. package/button-group/lib/button-group-item.component.d.ts +1 -1
  27. package/button-group/lib/button-group.component.d.ts +1 -1
  28. package/button-group/lib/button-group.module.d.ts +6 -6
  29. package/calendar/lib/calendar-range.component.d.ts +1 -1
  30. package/calendar/lib/calendar.component.d.ts +1 -1
  31. package/calendar/lib/calendar.module.d.ts +8 -8
  32. package/check-box/lib/check-box.component.d.ts +1 -1
  33. package/check-box/lib/check-box.module.d.ts +5 -5
  34. package/chips/lib/chips.component.d.ts +1 -1
  35. package/chips/lib/chips.module.d.ts +3 -3
  36. package/circular-progress/lib/circular-progress.component.d.ts +1 -1
  37. package/circular-progress/lib/circular-progress.module.d.ts +1 -1
  38. package/collapse/lib/collapse-group.component.d.ts +1 -1
  39. package/collapse/lib/collapse.component.d.ts +1 -1
  40. package/collapse/lib/collapse.module.d.ts +5 -5
  41. package/color-box/lib/color-box.component.d.ts +1 -1
  42. package/color-box/lib/color-box.module.d.ts +6 -6
  43. package/color-palette/lib/color-palette-input.component.d.ts +1 -1
  44. package/color-palette/lib/color-palette-picker.component.d.ts +1 -1
  45. package/color-palette/lib/color-palette-preview.component.d.ts +3 -3
  46. package/color-palette/lib/color-palette-swatches.component.d.ts +1 -1
  47. package/color-palette/lib/color-palette.component.d.ts +3 -3
  48. package/color-palette/lib/color-palette.module.d.ts +17 -17
  49. package/comment/lib/comment-container/comment-container.component.d.ts +1 -1
  50. package/comment/lib/comment-item/comment-item.component.d.ts +1 -1
  51. package/comment/lib/comment-tools/comment-date/comment-date.component.d.ts +1 -1
  52. package/comment/lib/comment-tools/comment-like/comment-like.component.d.ts +1 -1
  53. package/comment/lib/comment-tools/comment-menu-options/comment-menu-options.component.d.ts +1 -1
  54. package/comment/lib/comment-tools/comment-reply-more/comment-reply-more.component.d.ts +1 -1
  55. package/comment/lib/comment-tools/comment-reply-text/comment-reply-text.component.d.ts +1 -1
  56. package/comment/lib/comment-view/comment-view.component.d.ts +1 -1
  57. package/comment/lib/comment.module.d.ts +16 -16
  58. package/common/lib/classes/components.class.d.ts +14 -1
  59. package/common/lib/classes/datasource.class.d.ts +2 -2
  60. package/common/lib/common.module.d.ts +1 -1
  61. package/common/lib/directives/auto-focus.directive.d.ts +1 -1
  62. package/common/lib/directives/hotkey.directive.d.ts +1 -1
  63. package/common/lib/directives/infinite-scroll.directive.d.ts +1 -1
  64. package/common/lib/directives/responsive.directive.d.ts +1 -1
  65. package/conversation/lib/conversation-container/conversation-container.component.d.ts +1 -1
  66. package/conversation/lib/conversation-input/conversation-input.component.d.ts +1 -1
  67. package/conversation/lib/conversation-message/conversation-message.component.d.ts +1 -1
  68. package/conversation/lib/conversation-messages/conversation-message-audio/conversation-message-audio.component.d.ts +1 -1
  69. package/conversation/lib/conversation-messages/conversation-message-file/conversation-message-file.component.d.ts +1 -1
  70. package/conversation/lib/conversation-messages/conversation-message-image/conversation-message-image.component.d.ts +1 -1
  71. package/conversation/lib/conversation-messages/conversation-message-text/conversation-message-text.component.d.ts +1 -1
  72. package/conversation/lib/conversation-messages/conversation-message-video/conversation-message-video.component.d.ts +1 -1
  73. package/conversation/lib/conversation-messages/conversation-message-voice/conversation-message-voice.component.d.ts +1 -1
  74. package/conversation/lib/conversation-view/conversation-view.component.d.ts +1 -1
  75. package/conversation/lib/conversation.module.d.ts +29 -29
  76. package/cron-job/lib/cron-job-container/cron-job-container.component.d.ts +1 -1
  77. package/cron-job/lib/cron-job.module.d.ts +20 -20
  78. package/cron-job/lib/day/day.component.d.ts +1 -1
  79. package/cron-job/lib/hours/hours.component.d.ts +1 -1
  80. package/cron-job/lib/minutes/minutes.component.d.ts +1 -1
  81. package/cron-job/lib/month/month.component.d.ts +1 -1
  82. package/cron-job/lib/seconds/seconds.component.d.ts +1 -1
  83. package/cron-job/lib/year/year.component.d.ts +1 -1
  84. package/data-pager/lib/data-pager-info.component.d.ts +1 -1
  85. package/data-pager/lib/data-pager-input-selector.component.d.ts +1 -1
  86. package/data-pager/lib/data-pager-next-buttons.component.d.ts +1 -1
  87. package/data-pager/lib/data-pager-numeric-selector.component.d.ts +1 -1
  88. package/data-pager/lib/data-pager-pagesize-dropdown.component.d.ts +1 -1
  89. package/data-pager/lib/data-pager-prev-buttons.component.d.ts +1 -1
  90. package/data-pager/lib/data-pager.component.d.ts +1 -1
  91. package/data-pager/lib/data-pager.module.d.ts +17 -17
  92. package/data-table/lib/columns/data-table-column-resizable.directive.d.ts +1 -1
  93. package/data-table/lib/columns/data-text-column.component.d.ts +1 -1
  94. package/data-table/lib/columns/row-command-column.component.d.ts +2 -2
  95. package/data-table/lib/columns/row-expand-column.component.d.ts +1 -1
  96. package/data-table/lib/columns/row-index-column.component.d.ts +10 -10
  97. package/data-table/lib/columns/row-select-column.component.d.ts +9 -8
  98. package/data-table/lib/data-table/data-table.component.d.ts +1 -1
  99. package/data-table/lib/data-table.module.d.ts +22 -22
  100. package/data-table/lib/infinite-scroll-data-table/infinite-scroll-data-table.component.d.ts +1 -1
  101. package/datetime-box/lib/datetime-box.component.d.ts +1 -1
  102. package/datetime-box/lib/datetime-box.module.d.ts +8 -8
  103. package/datetime-input/lib/datetime-input.component.d.ts +1 -1
  104. package/datetime-input/lib/datetime-input.module.d.ts +5 -5
  105. package/datetime-picker/lib/datetime-picker.component.d.ts +1 -1
  106. package/datetime-picker/lib/datetime-picker.module.d.ts +11 -11
  107. package/decorators/lib/components/clear-button/clear-button.component.d.ts +1 -1
  108. package/decorators/lib/components/close-button/close-button.component.d.ts +1 -1
  109. package/decorators/lib/components/color-indicator/color-indicator.component.d.ts +1 -1
  110. package/decorators/lib/components/full-screen/full-screen-button.component.d.ts +1 -1
  111. package/decorators/lib/components/generic-content.component.d.ts +1 -1
  112. package/decorators/lib/components/heading/heading.component.d.ts +1 -1
  113. package/decorators/lib/components/icon/icon.component.d.ts +1 -1
  114. package/decorators/lib/decorators.module.d.ts +9 -9
  115. package/dialog/lib/dialog.component.d.ts +1 -1
  116. package/dialog/lib/dialog.module.d.ts +11 -11
  117. package/drawer/lib/drawer/drawer-container/drawer-container.component.d.ts +1 -1
  118. package/drawer/lib/drawer/drawer-item/drawer.component.d.ts +1 -1
  119. package/drawer/lib/drawer.module.d.ts +4 -4
  120. package/dropdown/lib/dropdown-box.component.d.ts +2 -1
  121. package/dropdown/lib/dropdown-panel.component.d.ts +3 -1
  122. package/dropdown/lib/dropdown.module.d.ts +9 -9
  123. package/dropdown-button/lib/dropdown-button.component.d.ts +2 -1
  124. package/dropdown-button/lib/dropdown-button.module.d.ts +8 -8
  125. package/fesm2022/acorex-components-action-sheet.mjs +19 -52
  126. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  127. package/fesm2022/acorex-components-alert.mjs +10 -12
  128. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  129. package/fesm2022/acorex-components-audio-wave.mjs +11 -14
  130. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  131. package/fesm2022/acorex-components-autocomplete.mjs +317 -0
  132. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -0
  133. package/fesm2022/acorex-components-avatar.mjs +12 -14
  134. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  135. package/fesm2022/acorex-components-badge.mjs +9 -10
  136. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  137. package/fesm2022/acorex-components-bottom-navigation.mjs +13 -14
  138. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  139. package/fesm2022/acorex-components-breadcrumbs.mjs +14 -16
  140. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  141. package/fesm2022/acorex-components-button-group.mjs +15 -17
  142. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  143. package/fesm2022/acorex-components-button.mjs +27 -50
  144. package/fesm2022/acorex-components-button.mjs.map +1 -1
  145. package/fesm2022/acorex-components-calendar.mjs +26 -42
  146. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  147. package/fesm2022/acorex-components-check-box.mjs +11 -12
  148. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  149. package/fesm2022/acorex-components-chips.mjs +9 -10
  150. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  151. package/fesm2022/acorex-components-circular-progress.mjs +9 -10
  152. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  153. package/fesm2022/acorex-components-collapse.mjs +14 -18
  154. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  155. package/fesm2022/acorex-components-color-box.mjs +23 -40
  156. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  157. package/fesm2022/acorex-components-color-palette.mjs +49 -55
  158. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  159. package/fesm2022/acorex-components-comment.mjs +46 -62
  160. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  161. package/fesm2022/acorex-components-common.mjs +741 -714
  162. package/fesm2022/acorex-components-common.mjs.map +1 -1
  163. package/fesm2022/acorex-components-conversation.mjs +100 -98
  164. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  165. package/fesm2022/acorex-components-cron-job.mjs +311 -247
  166. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  167. package/fesm2022/acorex-components-data-pager.mjs +82 -73
  168. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  169. package/fesm2022/acorex-components-data-table.mjs +170 -170
  170. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  171. package/fesm2022/acorex-components-datetime-box.mjs +11 -15
  172. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  173. package/fesm2022/acorex-components-datetime-input.mjs +17 -33
  174. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  175. package/fesm2022/acorex-components-datetime-picker.mjs +35 -30
  176. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  177. package/fesm2022/acorex-components-decorators.mjs +41 -57
  178. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  179. package/fesm2022/acorex-components-dialog.mjs +31 -29
  180. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  181. package/fesm2022/acorex-components-drawer.mjs +16 -17
  182. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  183. package/fesm2022/acorex-components-dropdown-button.mjs +21 -20
  184. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  185. package/fesm2022/acorex-components-dropdown.mjs +27 -22
  186. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  187. package/fesm2022/acorex-components-file-explorer.mjs +52 -48
  188. package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
  189. package/fesm2022/acorex-components-form.mjs +55 -49
  190. package/fesm2022/acorex-components-form.mjs.map +1 -1
  191. package/fesm2022/acorex-components-grid-layout-builder.mjs +148 -602
  192. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  193. package/fesm2022/acorex-components-image-editor.mjs +314 -191
  194. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  195. package/fesm2022/acorex-components-image.mjs +10 -15
  196. package/fesm2022/acorex-components-image.mjs.map +1 -1
  197. package/fesm2022/acorex-components-json-viewer.mjs +11 -17
  198. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  199. package/fesm2022/acorex-components-kbd.mjs +13 -14
  200. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  201. package/fesm2022/acorex-components-label.mjs +9 -10
  202. package/fesm2022/acorex-components-label.mjs.map +1 -1
  203. package/fesm2022/acorex-components-list.mjs +22 -17
  204. package/fesm2022/acorex-components-list.mjs.map +1 -1
  205. package/fesm2022/acorex-components-loading-dialog.mjs +45 -44
  206. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  207. package/fesm2022/acorex-components-loading.mjs +21 -30
  208. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  209. package/fesm2022/acorex-components-map.mjs +13731 -45
  210. package/fesm2022/acorex-components-map.mjs.map +1 -1
  211. package/fesm2022/acorex-components-media-viewer.mjs +87 -78
  212. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  213. package/fesm2022/acorex-components-menu.mjs +27 -40
  214. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  215. package/fesm2022/acorex-components-navbar.mjs +9 -10
  216. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  217. package/fesm2022/acorex-components-notification.mjs +18 -25
  218. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  219. package/fesm2022/acorex-components-number-box.mjs +11 -13
  220. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  221. package/fesm2022/acorex-components-otp.mjs +13 -15
  222. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  223. package/fesm2022/acorex-components-page.mjs +10 -10
  224. package/fesm2022/acorex-components-paint.mjs +32 -66
  225. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  226. package/fesm2022/acorex-components-password-box.mjs +21 -51
  227. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  228. package/fesm2022/acorex-components-pdf-reader.mjs +9 -10
  229. package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
  230. package/fesm2022/acorex-components-phone-box.mjs +17 -39
  231. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  232. package/fesm2022/acorex-components-picker.mjs +20 -22
  233. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  234. package/fesm2022/acorex-components-popover.mjs +9 -10
  235. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  236. package/fesm2022/acorex-components-popup.mjs +27 -50
  237. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  238. package/fesm2022/acorex-components-progress-bar.mjs +9 -10
  239. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  240. package/fesm2022/acorex-components-qrcode.mjs +9 -10
  241. package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
  242. package/fesm2022/acorex-components-query-builder.mjs +47 -33
  243. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  244. package/fesm2022/acorex-components-radio.mjs +11 -12
  245. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  246. package/fesm2022/acorex-components-rail-navigation.mjs +18 -21
  247. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  248. package/fesm2022/acorex-components-range-slider.mjs +11 -13
  249. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  250. package/fesm2022/acorex-components-rate-picker.mjs +9 -10
  251. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  252. package/fesm2022/acorex-components-rest-api-generator.mjs +49 -44
  253. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  254. package/fesm2022/acorex-components-result.mjs +15 -16
  255. package/fesm2022/acorex-components-result.mjs.map +1 -1
  256. package/fesm2022/acorex-components-routing-progress.mjs +15 -16
  257. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  258. package/fesm2022/acorex-components-scheduler.mjs +29 -26
  259. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  260. package/fesm2022/acorex-components-scss.mjs +4 -4
  261. package/fesm2022/acorex-components-search-box.mjs +18 -41
  262. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  263. package/fesm2022/acorex-components-select-box.mjs +31 -24
  264. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  265. package/fesm2022/acorex-components-selection-list.mjs +13 -32
  266. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  267. package/fesm2022/acorex-components-side-menu.mjs +24 -54
  268. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  269. package/fesm2022/acorex-components-skeleton.mjs +9 -10
  270. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  271. package/fesm2022/acorex-components-slider.mjs +11 -12
  272. package/fesm2022/acorex-components-slider.mjs.map +1 -1
  273. package/fesm2022/acorex-components-sliding-item.mjs +18 -21
  274. package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
  275. package/fesm2022/acorex-components-step-wizard.mjs +19 -23
  276. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  277. package/fesm2022/acorex-components-switch.mjs +12 -14
  278. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  279. package/fesm2022/acorex-components-tabs.mjs +18 -21
  280. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  281. package/fesm2022/acorex-components-tag-box.mjs +121 -0
  282. package/fesm2022/acorex-components-tag-box.mjs.map +1 -0
  283. package/fesm2022/acorex-components-tag.mjs +9 -10
  284. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  285. package/fesm2022/acorex-components-text-area.mjs +12 -24
  286. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  287. package/fesm2022/acorex-components-text-box.mjs +17 -47
  288. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  289. package/fesm2022/acorex-components-time-line.mjs +14 -16
  290. package/fesm2022/acorex-components-time-line.mjs.map +1 -1
  291. package/fesm2022/acorex-components-toast.mjs +15 -19
  292. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  293. package/fesm2022/acorex-components-toolbar.mjs +9 -11
  294. package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
  295. package/fesm2022/acorex-components-tooltip.mjs +13 -17
  296. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  297. package/fesm2022/acorex-components-tree-view.mjs +45 -41
  298. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  299. package/fesm2022/acorex-components-uploader.mjs +47 -49
  300. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  301. package/fesm2022/acorex-components-video-player.mjs +9 -10
  302. package/fesm2022/acorex-components-video-player.mjs.map +1 -1
  303. package/fesm2022/acorex-components-wysiwyg.mjs +64 -70
  304. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  305. package/file-explorer/lib/file-explorer-container/file-explorer-container.component.d.ts +1 -1
  306. package/file-explorer/lib/file-explorer-header/file-explorer-header.component.d.ts +1 -1
  307. package/file-explorer/lib/file-explorer-item/file-explorer-item.component.d.ts +1 -1
  308. package/file-explorer/lib/file-explorer-tree/file-explorer-tree.component.d.ts +1 -1
  309. package/file-explorer/lib/file-explorer-view/file-explorer-view.component.d.ts +1 -1
  310. package/file-explorer/lib/file-explorer.module.d.ts +14 -14
  311. package/form/lib/form-field.component.d.ts +1 -1
  312. package/form/lib/form.component.d.ts +1 -1
  313. package/form/lib/form.module.d.ts +11 -11
  314. package/form/lib/validation-rule.directive.d.ts +1 -1
  315. package/form/lib/validation-summary.component.d.ts +1 -1
  316. package/grid-layout-builder/index.d.ts +0 -1
  317. package/grid-layout-builder/lib/grid-layout-builder.module.d.ts +4 -5
  318. package/grid-layout-builder/lib/grid-layout-container.component.d.ts +37 -235
  319. package/grid-layout-builder/lib/grid-layout-widget.component.d.ts +7 -87
  320. package/grid-layout-builder/lib/types.d.ts +8 -12
  321. package/image/lib/image.component.d.ts +1 -1
  322. package/image/lib/image.module.d.ts +3 -3
  323. package/image-editor/index.d.ts +7 -2
  324. package/image-editor/lib/image-editor-container/image-editor-container.component.d.ts +4 -1
  325. package/image-editor/lib/image-editor-tools/image-editor-crop/image-editor-crop.component.d.ts +3 -8
  326. package/image-editor/lib/image-editor-tools/image-editor-header/image-editor-header.component.d.ts +12 -0
  327. package/image-editor/lib/image-editor-tools/image-editor-highlight/image-editor-highlight.component.d.ts +18 -0
  328. package/image-editor/lib/image-editor-tools/image-editor-history/image-editor-history.component.d.ts +13 -0
  329. package/image-editor/lib/image-editor-tools/image-editor-pen/image-editor-pen.component.d.ts +18 -0
  330. package/image-editor/lib/image-editor-tools/image-editor-rotate/image-editor-rotate.component.d.ts +16 -0
  331. package/image-editor/lib/image-editor-tools/image-editor-tool-selector/image-editor-tool-selector.component.d.ts +12 -0
  332. package/image-editor/lib/image-editor-view/image-editor-view.component.d.ts +8 -2
  333. package/image-editor/lib/image-editor.module.d.ts +20 -16
  334. package/image-editor/lib/image-editor.service.d.ts +6 -10
  335. package/json-viewer/lib/json-viewer/json-viewer.component.d.ts +1 -1
  336. package/json-viewer/lib/json-viewer.module.d.ts +5 -5
  337. package/kbd/lib/kbd-item/kbd-item.component.d.ts +1 -1
  338. package/kbd/lib/kbd.component.d.ts +1 -1
  339. package/kbd/lib/kbd.module.d.ts +4 -4
  340. package/label/lib/label.component.d.ts +1 -1
  341. package/label/lib/label.module.d.ts +3 -3
  342. package/list/lib/list.component.d.ts +1 -1
  343. package/list/lib/list.module.d.ts +5 -5
  344. package/loading/lib/loading-spinner.component.d.ts +1 -1
  345. package/loading/lib/loading.component.d.ts +1 -1
  346. package/loading/lib/loading.directive.d.ts +1 -1
  347. package/loading/lib/loading.module.d.ts +8 -8
  348. package/loading-dialog/lib/loading-dialog.component.d.ts +18 -18
  349. package/loading-dialog/lib/loading-dialog.module.d.ts +9 -9
  350. package/map/index.d.ts +2 -0
  351. package/map/lib/map.component.d.ts +23 -4
  352. package/map/lib/map.module.d.ts +3 -3
  353. package/map/lib/map.service.d.ts +27 -1
  354. package/map/lib/map.utility.d.ts +2 -0
  355. package/map/lib/map.world-map.d.ts +28 -0
  356. package/media-viewer/lib/media-viewer-container/media-viewer-container.component.d.ts +1 -1
  357. package/media-viewer/lib/media-viewer-slider/media-viewer-slider.component.d.ts +1 -1
  358. package/media-viewer/lib/media-viewer-tools/audio-player/audio-player.component.d.ts +1 -1
  359. package/media-viewer/lib/media-viewer-tools/file-info/file-info.component.d.ts +1 -1
  360. package/media-viewer/lib/media-viewer-tools/image-viewer/image-viewer.component.d.ts +1 -1
  361. package/media-viewer/lib/media-viewer-tools/pdf-reader/pdf-reader.component.d.ts +1 -1
  362. package/media-viewer/lib/media-viewer-tools/video-player/video-player.component.d.ts +1 -1
  363. package/media-viewer/lib/media-viewer.module.d.ts +18 -18
  364. package/menu/lib/context-menu.component.d.ts +1 -1
  365. package/menu/lib/menu-item.component.d.ts +1 -1
  366. package/menu/lib/menu.component.d.ts +1 -1
  367. package/menu/lib/menu.module.d.ts +10 -10
  368. package/navbar/lib/navbar.component.d.ts +1 -1
  369. package/navbar/lib/navbar.module.d.ts +3 -3
  370. package/notification/lib/notification.component.d.ts +1 -1
  371. package/notification/lib/notification.module.d.ts +9 -9
  372. package/number-box/lib/number-box.component.d.ts +1 -1
  373. package/number-box/lib/number-box.module.d.ts +7 -7
  374. package/otp/lib/otp.component.d.ts +1 -1
  375. package/otp/lib/otp.module.d.ts +4 -4
  376. package/package.json +13 -5
  377. package/paint/lib/paint/paint-container/paint-container.component.d.ts +1 -1
  378. package/paint/lib/paint/paint-tools/paint-color-picker/paint-color-picker.component.d.ts +1 -1
  379. package/paint/lib/paint/paint-tools/paint-pen-mode-changer/paint-pen-mode-changer.component.d.ts +1 -1
  380. package/paint/lib/paint/paint-view/paint-view.component.d.ts +1 -1
  381. package/paint/lib/paint.module.d.ts +13 -13
  382. package/password-box/lib/password-box.component.d.ts +1 -1
  383. package/password-box/lib/password-box.module.d.ts +10 -10
  384. package/password-box/lib/password-strength-validation/password-strength-validation.component.d.ts +1 -1
  385. package/pdf-reader/lib/pdf-reader/pdf-reader.component.d.ts +1 -1
  386. package/pdf-reader/lib/pdf-reader.module.d.ts +1 -1
  387. package/phone-box/lib/phone-box.component.d.ts +1 -1
  388. package/phone-box/lib/phone-box.module.d.ts +10 -10
  389. package/picker/lib/picker-container/picker-container.component.d.ts +1 -1
  390. package/picker/lib/picker-items/picker-items.component.d.ts +1 -1
  391. package/picker/lib/picker-title/picker-title.component.d.ts +1 -1
  392. package/picker/lib/picker.module.d.ts +6 -6
  393. package/popover/lib/popover.component.d.ts +1 -1
  394. package/popover/lib/popover.module.d.ts +3 -3
  395. package/popup/lib/popup.component.d.ts +9 -9
  396. package/popup/lib/popup.module.d.ts +10 -10
  397. package/progress-bar/lib/progress-bar.component.d.ts +1 -1
  398. package/progress-bar/lib/progress-bar.module.d.ts +3 -3
  399. package/qrcode/lib/qrcode.component.d.ts +1 -1
  400. package/qrcode/lib/qrcode.module.d.ts +3 -3
  401. package/query-builder/lib/query-builder.component.d.ts +6 -3
  402. package/query-builder/lib/query-builder.module.d.ts +10 -10
  403. package/radio/lib/radio.component.d.ts +1 -1
  404. package/radio/lib/radio.module.d.ts +4 -4
  405. package/rail-navigation/lib/rail-navigation-item/rail-navigation-item.component.d.ts +1 -1
  406. package/rail-navigation/lib/rail-navigation.component.d.ts +1 -1
  407. package/rail-navigation/lib/rail-navigation.module.d.ts +5 -5
  408. package/range-slider/lib/range-slider.component.d.ts +1 -1
  409. package/range-slider/lib/range-slider.module.d.ts +3 -3
  410. package/rate-picker/lib/rate-picker.component.d.ts +1 -1
  411. package/rate-picker/lib/rate-picker.module.d.ts +3 -3
  412. package/rest-api-generator/lib/query-params/query-params.component.d.ts +1 -1
  413. package/rest-api-generator/lib/request-body/request-body.component.d.ts +1 -1
  414. package/rest-api-generator/lib/request-headers/request-headers.component.d.ts +1 -1
  415. package/rest-api-generator/lib/rest-api-auth/rest-api-auth.component.d.ts +1 -1
  416. package/rest-api-generator/lib/rest-api-generator.component.d.ts +1 -1
  417. package/rest-api-generator/lib/rest-api-generator.module.d.ts +14 -14
  418. package/result/lib/result.component.d.ts +7 -7
  419. package/result/lib/result.module.d.ts +3 -3
  420. package/routing-progress/lib/routing-progress.component.d.ts +7 -7
  421. package/routing-progress/lib/routing-progress.module.d.ts +3 -3
  422. package/scheduler/lib/scheduler-month-view.component.d.ts +1 -1
  423. package/scheduler/lib/scheduler-week-view.component.d.ts +1 -1
  424. package/scheduler/lib/scheduler.component.d.ts +1 -1
  425. package/scheduler/lib/scheduler.module.d.ts +9 -9
  426. package/search-box/lib/search-box.component.d.ts +1 -1
  427. package/search-box/lib/search-box.module.d.ts +9 -9
  428. package/select-box/lib/select-box.component.d.ts +1 -1
  429. package/select-box/lib/select-box.module.d.ts +15 -15
  430. package/selection-list/lib/selection-list.component.d.ts +1 -1
  431. package/selection-list/lib/selection-list.module.d.ts +8 -8
  432. package/side-menu/lib/side-menu-item/side-menu-item.component.d.ts +1 -1
  433. package/side-menu/lib/side-menu.component.d.ts +1 -1
  434. package/side-menu/lib/side-menu.directive.d.ts +1 -1
  435. package/side-menu/lib/side-menu.module.d.ts +10 -10
  436. package/skeleton/lib/skeleton.component.d.ts +1 -1
  437. package/skeleton/lib/skeleton.module.d.ts +3 -3
  438. package/slider/lib/slider.component.d.ts +1 -1
  439. package/slider/lib/slider.module.d.ts +5 -5
  440. package/sliding-item/lib/sliding-item/sliding-item.component.d.ts +1 -1
  441. package/sliding-item/lib/sliding-item-prefix/sliding-item-prefix.component.d.ts +1 -1
  442. package/sliding-item/lib/sliding-item-suffix/sliding-item-suffix.component.d.ts +1 -1
  443. package/sliding-item/lib/sliding-item.module.d.ts +6 -6
  444. package/step-wizard/lib/step-wizard-item/step-wizard-item.component.d.ts +1 -1
  445. package/step-wizard/lib/step-wizard.component.d.ts +1 -1
  446. package/step-wizard/lib/step-wizard.directive.d.ts +1 -1
  447. package/step-wizard/lib/step-wizard.module.d.ts +8 -8
  448. package/switch/lib/switch-content.component.d.ts +1 -1
  449. package/switch/lib/switch.component.d.ts +1 -1
  450. package/switch/lib/switch.module.d.ts +5 -5
  451. package/tabs/lib/tab-content.directive.d.ts +1 -1
  452. package/tabs/lib/tab-item.component.d.ts +1 -1
  453. package/tabs/lib/tabs.component.d.ts +1 -1
  454. package/tabs/lib/tabs.module.d.ts +7 -7
  455. package/tag/lib/tag.component.d.ts +1 -1
  456. package/tag/lib/tag.module.d.ts +3 -3
  457. package/tag-box/README.md +3 -0
  458. package/tag-box/index.d.ts +2 -0
  459. package/tag-box/lib/tag-box.component.d.ts +30 -0
  460. package/tag-box/lib/tag-box.module.d.ts +7 -0
  461. package/text-area/lib/text-area.component.d.ts +1 -1
  462. package/text-area/lib/text-area.module.d.ts +4 -4
  463. package/text-box/lib/mask-options.directive.d.ts +1 -1
  464. package/text-box/lib/text-box.component.d.ts +1 -1
  465. package/text-box/lib/text-box.module.d.ts +8 -8
  466. package/time-line/lib/time-line-item.component.d.ts +1 -1
  467. package/time-line/lib/time-line.component.d.ts +1 -1
  468. package/time-line/lib/time-line.module.d.ts +4 -4
  469. package/toast/lib/toast.component.d.ts +1 -1
  470. package/toast/lib/toast.module.d.ts +8 -8
  471. package/toolbar/lib/toolbar.component.d.ts +1 -1
  472. package/toolbar/lib/toolbar.module.d.ts +3 -3
  473. package/tooltip/lib/tooltip.component.d.ts +1 -1
  474. package/tooltip/lib/tooltip.directive.d.ts +1 -1
  475. package/tooltip/lib/tooltip.module.d.ts +5 -5
  476. package/tree-view/lib/tree-view-item.component.d.ts +3 -2
  477. package/tree-view/lib/tree-view.component.d.ts +6 -7
  478. package/tree-view/lib/tree-view.component.module.d.ts +11 -11
  479. package/uploader/lib/uploader-browse-handle.directive.d.ts +1 -1
  480. package/uploader/lib/uploader-dialog-container/uploader-dialog-container.component.d.ts +1 -1
  481. package/uploader/lib/uploader-drop-zone/uploader-drop-zone.component.d.ts +1 -1
  482. package/uploader/lib/uploader-list/uploader-list.component.d.ts +1 -1
  483. package/uploader/lib/uploader-zone.directive.d.ts +1 -1
  484. package/uploader/lib/uploader.module.d.ts +16 -16
  485. package/video-player/lib/video-player/video-player.component.d.ts +1 -1
  486. package/video-player/lib/video-player.module.d.ts +1 -1
  487. package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +1 -1
  488. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-alignment/wysiwyg-alignment.component.d.ts +1 -1
  489. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.d.ts +1 -1
  490. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-font-style/wysiwyg-font-style.component.d.ts +1 -1
  491. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-history/wysiwyg-history.component.d.ts +1 -1
  492. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-insert/wysiwyg-insert.component.d.ts +1 -1
  493. package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-list/wysiwyg-list.component.d.ts +1 -1
  494. package/wysiwyg/lib/wysiwyg/wysiwyg-view/wysiwyg-view.component.d.ts +1 -1
  495. package/wysiwyg/lib/wysiwyg.module.d.ts +16 -16
  496. package/grid-layout-builder/lib/grid-layout-widget.directive.d.ts +0 -106
  497. package/image-editor/lib/image-editor-tools/image-editor-color-picker/image-editor-color-picker.component.d.ts +0 -17
  498. package/image-editor/lib/image-editor-tools/image-editor-pen-mode-changer/image-editor-pen-mode-changer.component.d.ts +0 -34
@@ -1,21 +1,14 @@
1
- import * as i2 from '@acorex/components/common';
2
- import { MXBaseComponent, AXCommonModule } from '@acorex/components/common';
1
+ import { AXButtonComponent, AXButtonModule } from '@acorex/components/button';
2
+ import { MXBaseComponent, AXHotkeyDirective, AXAutoFocusDirective, AXCommonModule } from '@acorex/components/common';
3
+ import { AXDecoratorGenericComponent, AXDecoratorModule } from '@acorex/components/decorators';
4
+ import { AXLoadingComponent, AXLoadingModule } from '@acorex/components/loading';
5
+ import { AXProgressBarComponent, AXProgressBarModule } from '@acorex/components/progress-bar';
6
+ import { AXTranslatorPipe, AXTranslationModule } from '@acorex/core/translation';
3
7
  import * as i1 from '@angular/cdk/dialog';
4
8
  import { DIALOG_DATA, Dialog } from '@angular/cdk/dialog';
9
+ import { AsyncPipe } from '@angular/common';
5
10
  import * as i0 from '@angular/core';
6
11
  import { signal, Inject, ViewEncapsulation, ChangeDetectionStrategy, Component, inject, Injectable, NgModule } from '@angular/core';
7
- import * as i3 from '@acorex/components/progress-bar';
8
- import { AXProgressBarModule } from '@acorex/components/progress-bar';
9
- import * as i4 from '@acorex/components/loading';
10
- import { AXLoadingModule } from '@acorex/components/loading';
11
- import * as i5 from '@acorex/components/decorators';
12
- import { AXDecoratorModule } from '@acorex/components/decorators';
13
- import * as i6 from '@acorex/components/button';
14
- import { AXButtonModule } from '@acorex/components/button';
15
- import * as i7 from '@acorex/core/translation';
16
- import { AXTranslationModule } from '@acorex/core/translation';
17
- import * as i8 from '@angular/common';
18
- import { AsyncPipe } from '@angular/common';
19
12
 
20
13
  /**
21
14
  * Represents a loading dialog component with custom styles and encapsulation.
@@ -41,43 +34,43 @@ class AXLoadingDialogComponent extends MXBaseComponent {
41
34
  this.progressValue = signal(this.data.progressValue);
42
35
  }
43
36
  /**
44
- * Closes the dialog.
45
- */
37
+ * Closes the dialog.
38
+ */
46
39
  close() {
47
40
  this.dialogRef.close();
48
41
  }
49
42
  /**
50
- * Sets the progress text.
51
- * @param text
52
- */
43
+ * Sets the progress text.
44
+ * @param text
45
+ */
53
46
  setProgressText(text) {
54
47
  this.progressText.set(text);
55
48
  }
56
49
  /**
57
- * Sets the progress status.
58
- * @param status
59
- */
50
+ * Sets the progress status.
51
+ * @param status
52
+ */
60
53
  setProgressStatus(status) {
61
54
  this.progressStatus.set(status);
62
55
  }
63
56
  /**
64
- * Sets the color for the progress.
65
- * @param color
66
- */
57
+ * Sets the color for the progress.
58
+ * @param color
59
+ */
67
60
  setProgressColor(color) {
68
61
  this.progressColor.set(color);
69
62
  }
70
63
  /**
71
- * Sets the title for the dialog.
72
- * @param text
73
- */
64
+ * Sets the title for the dialog.
65
+ * @param text
66
+ */
74
67
  setDialogTitle(text) {
75
68
  this.dialogTitle.set(text);
76
69
  }
77
70
  /**
78
- * Sets the progress value.
79
- * @param value
80
- */
71
+ * Sets the progress value.
72
+ * @param value
73
+ */
81
74
  setProgressValue(value) {
82
75
  this.progressValue.set(value);
83
76
  }
@@ -92,12 +85,21 @@ class AXLoadingDialogComponent extends MXBaseComponent {
92
85
  const result = button.autofocus || this.data.buttons.length == 1 || !this.data.buttons.some((c) => c.autofocus);
93
86
  return result;
94
87
  }
95
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDialogComponent, deps: [{ token: DIALOG_DATA }, { token: i1.DialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
96
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXLoadingDialogComponent, isStandalone: false, selector: "ax-loading-dialog", usesInheritance: true, ngImport: i0, template: "<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar\n [mode]=\"data.mode\"\n [progress]=\"this.progressValue()\"\n [color]=\"progressColor()\"\n></ax-progress-bar>\n<div class=\"progress-decorators\">\n <div>{{ progressText() }}</div>\n <div>{{ progressStatus() }}</div>\n</div>\n<ax-footer>\n @for (button of data.buttons; track $index) {\n <ax-button\n [text]=\"button.text | translate | async\"\n [tabindex]=\"$index\"\n [axHotkey]=\"button.hotkey\"\n [axAutoFocus]=\"_hasAutoFocus(button)\"\n (onClick)=\"_handleButtonClick(button)\"\n [look]=\"button.look\"\n [disabled]=\"button.disabled\"\n [color]=\"button.color\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n</ax-footer>\n", styles: ["ax-loading-dialog{display:flex;flex-direction:column;gap:.5rem;width:33vw;background-color:rgba(var(--ax-sys-color-lightest-surface));padding:1rem;border-radius:var(--ax-sys-border-radius)}ax-loading-dialog ax-title{font-weight:500;font-size:1rem;margin-bottom:.5rem}@media (min-width: 320px) and (max-width: 640px){ax-loading-dialog{width:93vw!important}}@media (min-width: 768px){ax-loading-dialog{width:55vw!important}}@media (min-width: 1280px){ax-loading-dialog{width:30vw!important}}@media (min-width: 1536px){ax-loading-dialog{width:25vw!important}}ax-loading-dialog .progress-decorators{display:flex;justify-content:space-between;font-size:.875rem}ax-loading-dialog ax-footer{justify-content:flex-end;padding-top:.75rem}\n"], dependencies: [{ kind: "directive", type: i2.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "axAutoFocusTime"] }, { kind: "directive", type: i2.AXHotkeyDirective, selector: "[axHotkey]", inputs: ["axHotkey"] }, { kind: "component", type: i3.AXProgressBarComponent, selector: "ax-progress-bar", inputs: ["color", "mode", "progress", "height"], outputs: ["ValueChange", "sizeChange"] }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "component", type: i5.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "component", type: i6.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "pipe", type: i7.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: i8.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
88
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDialogComponent, deps: [{ token: DIALOG_DATA }, { token: i1.DialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
89
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AXLoadingDialogComponent, isStandalone: true, selector: "ax-loading-dialog", usesInheritance: true, ngImport: i0, template: "<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar\n [mode]=\"data.mode\"\n [progress]=\"this.progressValue()\"\n [color]=\"progressColor()\"\n></ax-progress-bar>\n<div class=\"progress-decorators\">\n <div>{{ progressText() }}</div>\n <div>{{ progressStatus() }}</div>\n</div>\n<ax-footer>\n @for (button of data.buttons; track $index) {\n <ax-button\n [text]=\"button.text | translate | async\"\n [tabindex]=\"$index\"\n [axHotkey]=\"button.hotkey\"\n [axAutoFocus]=\"_hasAutoFocus(button)\"\n (onClick)=\"_handleButtonClick(button)\"\n [look]=\"button.look\"\n [disabled]=\"button.disabled\"\n [color]=\"button.color\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n</ax-footer>\n", styles: ["ax-loading-dialog{display:flex;flex-direction:column;gap:.5rem;width:33vw;background-color:rgba(var(--ax-sys-color-lightest-surface));padding:1rem;border-radius:var(--ax-sys-border-radius)}ax-loading-dialog ax-title{font-weight:500;font-size:1rem;margin-bottom:.5rem}@media (min-width: 320px) and (max-width: 640px){ax-loading-dialog{width:93vw!important}}@media (min-width: 768px){ax-loading-dialog{width:55vw!important}}@media (min-width: 1280px){ax-loading-dialog{width:30vw!important}}@media (min-width: 1536px){ax-loading-dialog{width:25vw!important}}ax-loading-dialog .progress-decorators{display:flex;justify-content:space-between;font-size:.875rem}ax-loading-dialog ax-footer{justify-content:flex-end;padding-top:.75rem}\n"], dependencies: [{ kind: "component", type: AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "component", type: AXProgressBarComponent, selector: "ax-progress-bar", inputs: ["color", "mode", "progress", "height"], outputs: ["ValueChange", "sizeChange"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "directive", type: AXHotkeyDirective, selector: "[axHotkey]", inputs: ["axHotkey"] }, { kind: "directive", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "axAutoFocusTime"] }, { kind: "component", type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
97
90
  }
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDialogComponent, decorators: [{
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDialogComponent, decorators: [{
99
92
  type: Component,
100
- args: [{ selector: 'ax-loading-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar\n [mode]=\"data.mode\"\n [progress]=\"this.progressValue()\"\n [color]=\"progressColor()\"\n></ax-progress-bar>\n<div class=\"progress-decorators\">\n <div>{{ progressText() }}</div>\n <div>{{ progressStatus() }}</div>\n</div>\n<ax-footer>\n @for (button of data.buttons; track $index) {\n <ax-button\n [text]=\"button.text | translate | async\"\n [tabindex]=\"$index\"\n [axHotkey]=\"button.hotkey\"\n [axAutoFocus]=\"_hasAutoFocus(button)\"\n (onClick)=\"_handleButtonClick(button)\"\n [look]=\"button.look\"\n [disabled]=\"button.disabled\"\n [color]=\"button.color\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n</ax-footer>\n", styles: ["ax-loading-dialog{display:flex;flex-direction:column;gap:.5rem;width:33vw;background-color:rgba(var(--ax-sys-color-lightest-surface));padding:1rem;border-radius:var(--ax-sys-border-radius)}ax-loading-dialog ax-title{font-weight:500;font-size:1rem;margin-bottom:.5rem}@media (min-width: 320px) and (max-width: 640px){ax-loading-dialog{width:93vw!important}}@media (min-width: 768px){ax-loading-dialog{width:55vw!important}}@media (min-width: 1280px){ax-loading-dialog{width:30vw!important}}@media (min-width: 1536px){ax-loading-dialog{width:25vw!important}}ax-loading-dialog .progress-decorators{display:flex;justify-content:space-between;font-size:.875rem}ax-loading-dialog ax-footer{justify-content:flex-end;padding-top:.75rem}\n"] }]
93
+ args: [{ selector: 'ax-loading-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
94
+ AXDecoratorGenericComponent,
95
+ AXProgressBarComponent,
96
+ AXButtonComponent,
97
+ AXHotkeyDirective,
98
+ AXAutoFocusDirective,
99
+ AXLoadingComponent,
100
+ AXTranslatorPipe,
101
+ AsyncPipe,
102
+ ], template: "<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar\n [mode]=\"data.mode\"\n [progress]=\"this.progressValue()\"\n [color]=\"progressColor()\"\n></ax-progress-bar>\n<div class=\"progress-decorators\">\n <div>{{ progressText() }}</div>\n <div>{{ progressStatus() }}</div>\n</div>\n<ax-footer>\n @for (button of data.buttons; track $index) {\n <ax-button\n [text]=\"button.text | translate | async\"\n [tabindex]=\"$index\"\n [axHotkey]=\"button.hotkey\"\n [axAutoFocus]=\"_hasAutoFocus(button)\"\n (onClick)=\"_handleButtonClick(button)\"\n [look]=\"button.look\"\n [disabled]=\"button.disabled\"\n [color]=\"button.color\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n</ax-footer>\n", styles: ["ax-loading-dialog{display:flex;flex-direction:column;gap:.5rem;width:33vw;background-color:rgba(var(--ax-sys-color-lightest-surface));padding:1rem;border-radius:var(--ax-sys-border-radius)}ax-loading-dialog ax-title{font-weight:500;font-size:1rem;margin-bottom:.5rem}@media (min-width: 320px) and (max-width: 640px){ax-loading-dialog{width:93vw!important}}@media (min-width: 768px){ax-loading-dialog{width:55vw!important}}@media (min-width: 1280px){ax-loading-dialog{width:30vw!important}}@media (min-width: 1536px){ax-loading-dialog{width:25vw!important}}ax-loading-dialog .progress-decorators{display:flex;justify-content:space-between;font-size:.875rem}ax-loading-dialog ax-footer{justify-content:flex-end;padding-top:.75rem}\n"] }]
101
103
  }], ctorParameters: () => [{ type: undefined, decorators: [{
102
104
  type: Inject,
103
105
  args: [DIALOG_DATA]
@@ -129,24 +131,23 @@ class AXLoadingDialogService {
129
131
  setProgressColor: (color) => dialogRef.componentInstance?.setProgressColor(color),
130
132
  };
131
133
  }
132
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
133
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDialogService }); }
134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
135
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDialogService }); }
134
136
  }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDialogService, decorators: [{
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDialogService, decorators: [{
136
138
  type: Injectable
137
139
  }] });
138
140
 
139
141
  const COMPONENT = [AXLoadingDialogComponent];
140
142
  class AXLoadingDialogModule {
141
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
142
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDialogModule, declarations: [AXLoadingDialogComponent], imports: [AXCommonModule, AXProgressBarModule, AXLoadingModule, AXDecoratorModule, AXButtonModule, AXTranslationModule, AsyncPipe], exports: [AXLoadingDialogComponent] }); }
143
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDialogModule, providers: [AXLoadingDialogService], imports: [AXCommonModule, AXProgressBarModule, AXLoadingModule, AXDecoratorModule, AXButtonModule, AXTranslationModule] }); }
143
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
144
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDialogModule, imports: [AXCommonModule, AXProgressBarModule, AXLoadingModule, AXDecoratorModule, AXButtonModule, AXTranslationModule, AsyncPipe, AXLoadingDialogComponent], exports: [AXLoadingDialogComponent] }); }
145
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDialogModule, providers: [AXLoadingDialogService], imports: [AXCommonModule, AXProgressBarModule, AXLoadingModule, AXDecoratorModule, AXButtonModule, AXTranslationModule, COMPONENT] }); }
144
146
  }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDialogModule, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDialogModule, decorators: [{
146
148
  type: NgModule,
147
149
  args: [{
148
- declarations: [...COMPONENT],
149
- imports: [AXCommonModule, AXProgressBarModule, AXLoadingModule, AXDecoratorModule, AXButtonModule, AXTranslationModule, AsyncPipe],
150
+ imports: [AXCommonModule, AXProgressBarModule, AXLoadingModule, AXDecoratorModule, AXButtonModule, AXTranslationModule, AsyncPipe, ...COMPONENT],
150
151
  exports: [...COMPONENT],
151
152
  providers: [AXLoadingDialogService],
152
153
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-loading-dialog.mjs","sources":["../../../../libs/components/loading-dialog/src/lib/loading-dialog.component.ts","../../../../libs/components/loading-dialog/src/lib/loading-dialog.component.html","../../../../libs/components/loading-dialog/src/lib/loading-dialog.service.ts","../../../../libs/components/loading-dialog/src/lib/loading-dialog.module.ts","../../../../libs/components/loading-dialog/src/acorex-components-loading-dialog.ts"],"sourcesContent":["import { AXComponentCloseEvent, AXStyleColorType, MXBaseComponent } from '@acorex/components/common';\nimport { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog';\nimport { ChangeDetectionStrategy, Component, Inject, ViewEncapsulation, WritableSignal, signal } from '@angular/core';\nimport { AXLoadingDialogButtonItem, AXLoadingDialogConfig } from './loading-dialog.class';\n\n/**\n * Represents a loading dialog component with custom styles and encapsulation.\n * @category components\n */\n@Component({\n selector: 'ax-loading-dialog',\n templateUrl: './loading-dialog.component.html',\n styleUrls: ['./loading-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false\n})\nexport class AXLoadingDialogComponent extends MXBaseComponent {\n\n /** @ignore */\n constructor(\n @Inject(DIALOG_DATA) public data: AXLoadingDialogConfig,\n\n /** @ignore */\n private dialogRef: DialogRef<AXComponentCloseEvent>,\n ) {\n super();\n }\n\n /** @ignore */\n protected progressText: WritableSignal<string> = signal(this.data.text);\n\n /** @ignore */\n protected progressStatus: WritableSignal<string> = signal(this.data.status);\n\n /** @ignore */\n protected progressColor: WritableSignal<AXStyleColorType> = signal(this.data.progressColor);\n\n /** @ignore */\n protected dialogTitle: WritableSignal<string> = signal(this.data.title);\n\n /** @ignore */\n protected progressValue: WritableSignal<number> = signal(this.data.progressValue);\n\n /**\n * Closes the dialog.\n */\n close() {\n this.dialogRef.close();\n }\n\n /**\n * Sets the progress text.\n * @param text \n */\n setProgressText(text: string) {\n this.progressText.set(text);\n }\n\n /**\n * Sets the progress status.\n * @param status \n */\n setProgressStatus(status: string) {\n this.progressStatus.set(status);\n }\n\n /**\n * Sets the color for the progress.\n * @param color \n */\n setProgressColor(color: AXStyleColorType) {\n this.progressColor.set(color);\n }\n\n /**\n * Sets the title for the dialog.\n * @param text \n */\n setDialogTitle(text: string) {\n this.dialogTitle.set(text);\n }\n\n /**\n * Sets the progress value.\n * @param value \n */\n setProgressValue(value: number) {\n this.progressValue.set(value);\n }\n\n /** @ignore */\n protected _handleButtonClick(button: AXLoadingDialogButtonItem) {\n if (button.onClick) {\n button.onClick({ source: button });\n }\n }\n\n /** @ignore */\n protected _hasAutoFocus(button: AXLoadingDialogButtonItem) {\n const result = button.autofocus || this.data.buttons.length == 1 || !this.data.buttons.some((c) => c.autofocus);\n return result;\n }\n}\n","<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar\n [mode]=\"data.mode\"\n [progress]=\"this.progressValue()\"\n [color]=\"progressColor()\"\n></ax-progress-bar>\n<div class=\"progress-decorators\">\n <div>{{ progressText() }}</div>\n <div>{{ progressStatus() }}</div>\n</div>\n<ax-footer>\n @for (button of data.buttons; track $index) {\n <ax-button\n [text]=\"button.text | translate | async\"\n [tabindex]=\"$index\"\n [axHotkey]=\"button.hotkey\"\n [axAutoFocus]=\"_hasAutoFocus(button)\"\n (onClick)=\"_handleButtonClick(button)\"\n [look]=\"button.look\"\n [disabled]=\"button.disabled\"\n [color]=\"button.color\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n</ax-footer>\n","import { AXStyleColorType } from '@acorex/components/common';\nimport { Dialog } from '@angular/cdk/dialog';\nimport { Injectable, inject } from '@angular/core';\nimport { AXDialogRef, AXLoadingDialogConfig } from './loading-dialog.class';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\n\n@Injectable()\nexport class AXLoadingDialogService {\n private dialog = inject(Dialog);\n\n // private data$: BehaviorSubject<AXLoadingDialogConfig> = new BehaviorSubject<AXLoadingDialogConfig>(null);\n\n show(options: AXLoadingDialogConfig): AXDialogRef {\n const dialogRef = this.dialog.open(AXLoadingDialogComponent, {\n hasBackdrop: true,\n disableClose: true,\n restoreFocus: true,\n closeOnDestroy: true,\n closeOnNavigation: true,\n ariaModal: true,\n role: 'alertdialog',\n panelClass: ['ax-animate-fadeIn'],\n data: options,\n });\n return {\n close: () => dialogRef.componentInstance?.close(),\n setProgressValue: (value: number) => dialogRef.componentInstance?.setProgressValue(value),\n setDialogTitle: (text: string) => dialogRef.componentInstance?.setDialogTitle(text),\n setProgressText: (text: string) => dialogRef.componentInstance?.setProgressText(text),\n setProgressStatus: (status: string) => dialogRef.componentInstance?.setProgressStatus(status),\n setProgressColor: (color: AXStyleColorType) => dialogRef.componentInstance?.setProgressColor(color),\n };\n }\n}\n","import { AXButtonModule } from '@acorex/components/button';\nimport { AXCommonModule } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXProgressBarModule } from '@acorex/components/progress-bar';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AsyncPipe } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\nimport { AXLoadingDialogService } from './loading-dialog.service';\n\nconst COMPONENT = [AXLoadingDialogComponent];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [AXCommonModule, AXProgressBarModule, AXLoadingModule, AXDecoratorModule, AXButtonModule, AXTranslationModule, AsyncPipe],\n exports: [...COMPONENT],\n providers: [AXLoadingDialogService],\n})\nexport class AXLoadingDialogModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAKA;;;AAGG;AASG,MAAO,wBAAyB,SAAQ,eAAe,CAAA;;AAG3D,IAAA,WAAA,CAC8B,IAA2B;;IAG/C,SAA2C,EAAA;AAEnD,QAAA,KAAK,EAAE;QALqB,IAAI,CAAA,IAAA,GAAJ,IAAI;QAGxB,IAAS,CAAA,SAAA,GAAT,SAAS;;QAMT,IAAY,CAAA,YAAA,GAA2B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;;QAG7D,IAAc,CAAA,cAAA,GAA2B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;;QAGjE,IAAa,CAAA,aAAA,GAAqC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;;QAGjF,IAAW,CAAA,WAAA,GAA2B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;;QAG7D,IAAa,CAAA,aAAA,GAA2B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC;;AAEjF;;AAEC;IACD,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE;;AAGxB;;;AAGC;AACD,IAAA,eAAe,CAAC,IAAY,EAAA;AAC1B,QAAA,IAAI,CAAC,YA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mBAAmB,EAAE,SAAS,aAJhH,wBAAwB,CAAA,EAAA,CAAA,CAAA;AAQ9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EAFrB,SAAA,EAAA,CAAC,sBAAsB,CAAC,YAFzB,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,CAAA,EAAA,CAAA,CAAA;;2FAI3G,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBANjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,CAAC;AAClI,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;oBACvB,SAAS,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA;;;AClBD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-loading-dialog.mjs","sources":["../../../../libs/components/loading-dialog/src/lib/loading-dialog.component.ts","../../../../libs/components/loading-dialog/src/lib/loading-dialog.component.html","../../../../libs/components/loading-dialog/src/lib/loading-dialog.service.ts","../../../../libs/components/loading-dialog/src/lib/loading-dialog.module.ts","../../../../libs/components/loading-dialog/src/acorex-components-loading-dialog.ts"],"sourcesContent":["import { AXButtonComponent } from '@acorex/components/button';\nimport { AXAutoFocusDirective, AXComponentCloseEvent, AXHotkeyDirective, AXStyleColorType, MXBaseComponent } from '@acorex/components/common';\nimport { AXDecoratorGenericComponent } from '@acorex/components/decorators';\nimport { AXLoadingComponent } from '@acorex/components/loading';\nimport { AXProgressBarComponent } from '@acorex/components/progress-bar';\nimport { AXTranslatorPipe } from '@acorex/core/translation';\nimport { DIALOG_DATA, DialogRef } from '@angular/cdk/dialog';\nimport { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Inject, ViewEncapsulation, WritableSignal, signal } from '@angular/core';\nimport { AXLoadingDialogButtonItem, AXLoadingDialogConfig } from './loading-dialog.class';\n\n/**\n * Represents a loading dialog component with custom styles and encapsulation.\n * @category components\n */\n@Component({\n selector: 'ax-loading-dialog',\n templateUrl: './loading-dialog.component.html',\n styleUrls: ['./loading-dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [\n AXDecoratorGenericComponent,\n AXProgressBarComponent,\n AXButtonComponent,\n AXHotkeyDirective,\n AXAutoFocusDirective,\n AXLoadingComponent,\n AXTranslatorPipe,\n AsyncPipe,\n ],\n})\nexport class AXLoadingDialogComponent extends MXBaseComponent {\n /** @ignore */\n constructor(\n @Inject(DIALOG_DATA) public data: AXLoadingDialogConfig,\n\n /** @ignore */\n private dialogRef: DialogRef<AXComponentCloseEvent>,\n ) {\n super();\n }\n\n /** @ignore */\n protected progressText: WritableSignal<string> = signal(this.data.text);\n\n /** @ignore */\n protected progressStatus: WritableSignal<string> = signal(this.data.status);\n\n /** @ignore */\n protected progressColor: WritableSignal<AXStyleColorType> = signal(this.data.progressColor);\n\n /** @ignore */\n protected dialogTitle: WritableSignal<string> = signal(this.data.title);\n\n /** @ignore */\n protected progressValue: WritableSignal<number> = signal(this.data.progressValue);\n\n /**\n * Closes the dialog.\n */\n close() {\n this.dialogRef.close();\n }\n\n /**\n * Sets the progress text.\n * @param text\n */\n setProgressText(text: string) {\n this.progressText.set(text);\n }\n\n /**\n * Sets the progress status.\n * @param status\n */\n setProgressStatus(status: string) {\n this.progressStatus.set(status);\n }\n\n /**\n * Sets the color for the progress.\n * @param color\n */\n setProgressColor(color: AXStyleColorType) {\n this.progressColor.set(color);\n }\n\n /**\n * Sets the title for the dialog.\n * @param text\n */\n setDialogTitle(text: string) {\n this.dialogTitle.set(text);\n }\n\n /**\n * Sets the progress value.\n * @param value\n */\n setProgressValue(value: number) {\n this.progressValue.set(value);\n }\n\n /** @ignore */\n protected _handleButtonClick(button: AXLoadingDialogButtonItem) {\n if (button.onClick) {\n button.onClick({ source: button });\n }\n }\n\n /** @ignore */\n protected _hasAutoFocus(button: AXLoadingDialogButtonItem) {\n const result = button.autofocus || this.data.buttons.length == 1 || !this.data.buttons.some((c) => c.autofocus);\n return result;\n }\n}\n","<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar\n [mode]=\"data.mode\"\n [progress]=\"this.progressValue()\"\n [color]=\"progressColor()\"\n></ax-progress-bar>\n<div class=\"progress-decorators\">\n <div>{{ progressText() }}</div>\n <div>{{ progressStatus() }}</div>\n</div>\n<ax-footer>\n @for (button of data.buttons; track $index) {\n <ax-button\n [text]=\"button.text | translate | async\"\n [tabindex]=\"$index\"\n [axHotkey]=\"button.hotkey\"\n [axAutoFocus]=\"_hasAutoFocus(button)\"\n (onClick)=\"_handleButtonClick(button)\"\n [look]=\"button.look\"\n [disabled]=\"button.disabled\"\n [color]=\"button.color\"\n >\n @if (button.loading) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n</ax-footer>\n","import { AXStyleColorType } from '@acorex/components/common';\nimport { Dialog } from '@angular/cdk/dialog';\nimport { Injectable, inject } from '@angular/core';\nimport { AXDialogRef, AXLoadingDialogConfig } from './loading-dialog.class';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\n\n@Injectable()\nexport class AXLoadingDialogService {\n private dialog = inject(Dialog);\n\n // private data$: BehaviorSubject<AXLoadingDialogConfig> = new BehaviorSubject<AXLoadingDialogConfig>(null);\n\n show(options: AXLoadingDialogConfig): AXDialogRef {\n const dialogRef = this.dialog.open(AXLoadingDialogComponent, {\n hasBackdrop: true,\n disableClose: true,\n restoreFocus: true,\n closeOnDestroy: true,\n closeOnNavigation: true,\n ariaModal: true,\n role: 'alertdialog',\n panelClass: ['ax-animate-fadeIn'],\n data: options,\n });\n return {\n close: () => dialogRef.componentInstance?.close(),\n setProgressValue: (value: number) => dialogRef.componentInstance?.setProgressValue(value),\n setDialogTitle: (text: string) => dialogRef.componentInstance?.setDialogTitle(text),\n setProgressText: (text: string) => dialogRef.componentInstance?.setProgressText(text),\n setProgressStatus: (status: string) => dialogRef.componentInstance?.setProgressStatus(status),\n setProgressColor: (color: AXStyleColorType) => dialogRef.componentInstance?.setProgressColor(color),\n };\n }\n}\n","import { AXButtonModule } from '@acorex/components/button';\nimport { AXCommonModule } from '@acorex/components/common';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXProgressBarModule } from '@acorex/components/progress-bar';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AsyncPipe } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\nimport { AXLoadingDialogService } from './loading-dialog.service';\n\nconst COMPONENT = [AXLoadingDialogComponent];\n\n@NgModule({\n imports: [AXCommonModule, AXProgressBarModule, AXLoadingModule, AXDecoratorModule, AXButtonModule, AXTranslationModule, AsyncPipe, ...COMPONENT],\n exports: [...COMPONENT],\n providers: [AXLoadingDialogService],\n})\nexport class AXLoadingDialogModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAWA;;;AAGG;AAkBG,MAAO,wBAAyB,SAAQ,eAAe,CAAA;;AAE3D,IAAA,WAAA,CAC8B,IAA2B;;IAG/C,SAA2C,EAAA;AAEnD,QAAA,KAAK,EAAE;QALqB,IAAI,CAAA,IAAA,GAAJ,IAAI;QAGxB,IAAS,CAAA,SAAA,GAAT,SAAS;;QAMT,IAAY,CAAA,YAAA,GAA2B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;;QAG7D,IAAc,CAAA,cAAA,GAA2B,MAAM,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eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YAJtB,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAHhH,wBAAwB,aAAxB,wBAAwB,CAAA,EAAA,CAAA,CAAA;AAO9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,aAFrB,CAAC,sBAAsB,CAAC,EAAA,OAAA,EAAA,CAFzB,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAgB,SAAS,CAAA,EAAA,CAAA,CAAA;;2FAIpI,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC;AAChJ,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;oBACvB,SAAS,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA;;;ACjBD;;AAEG;;;;"}
@@ -1,8 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { HostBinding, Input, ViewEncapsulation, Component, InjectionToken, inject, EventEmitter, Output, ChangeDetectionStrategy, Injectable, Directive, NgModule } from '@angular/core';
3
3
  import { MXBaseComponent } from '@acorex/components/common';
4
- import * as i1 from '@angular/cdk/portal';
5
- import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
4
+ import { ComponentPortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
6
5
  import { Dialog, DialogModule } from '@angular/cdk/dialog';
7
6
  import { asyncScheduler, BehaviorSubject } from 'rxjs';
8
7
  import { observeOn, finalize } from 'rxjs/operators';
@@ -37,22 +36,22 @@ class AXLoadingSpinnerComponent {
37
36
  get __hostClass() {
38
37
  return `ax-${this.color}`;
39
38
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
41
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: AXLoadingSpinnerComponent, isStandalone: false, selector: "ax-loading-spinner", inputs: { text: "text", color: "color", size: "size", stroke: "stroke" }, host: { properties: { "class": "this.__hostClass" } }, ngImport: i0, template: `
39
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
40
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: AXLoadingSpinnerComponent, isStandalone: true, selector: "ax-loading-spinner", inputs: { text: "text", color: "color", size: "size", stroke: "stroke" }, host: { properties: { "class": "this.__hostClass" } }, ngImport: i0, template: `
42
41
  <span class="ax-loader" [style.width.px]="size" [style.height.px]="size" [style.border-width.px]="stroke" [style.border-color]="color"></span>
43
42
  @if (text) {
44
43
  <span> {{ text }} </span>
45
44
  }
46
45
  `, isInline: true, styles: ["ax-loading-spinner{--ax-comp-loading-spinner-loader-height: 3rem;--ax-comp-loading-spinner-loader-width: 3rem;--ax-comp-loading-spinner-loader-border-width: 6px}ax-loading-spinner.ax-black{--ax-comp-loading-spinner-loader-border-color: 0, 0, 0}ax-loading-spinner.ax-white{--ax-comp-loading-spinner-loader-border-color: 255, 255, 255}ax-loading-spinner.ax-primary{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-primary-surface)}ax-loading-spinner.ax-secondary{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-secondary-surface)}ax-loading-spinner.ax-success{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-success-surface)}ax-loading-spinner.ax-warning{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-warning-surface)}ax-loading-spinner.ax-danger{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-danger-surface)}ax-loading-spinner .ax-loader{margin:auto;border-style:solid;display:inline-block;border-radius:9999px;box-sizing:border-box;animation:rotation .5s linear infinite;border-bottom-color:transparent!important;width:var(--ax-comp-loading-spinner-loader-width);height:var(--ax-comp-loading-spinner-loader-height);border-width:var(--ax-comp-loading-spinner-loader-border-width);border-color:rgba(var(--ax-comp-loading-spinner-loader-border-color))}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], encapsulation: i0.ViewEncapsulation.None }); }
47
46
  }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingSpinnerComponent, decorators: [{
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingSpinnerComponent, decorators: [{
49
48
  type: Component,
50
49
  args: [{ selector: 'ax-loading-spinner', template: `
51
50
  <span class="ax-loader" [style.width.px]="size" [style.height.px]="size" [style.border-width.px]="stroke" [style.border-color]="color"></span>
52
51
  @if (text) {
53
52
  <span> {{ text }} </span>
54
53
  }
55
- `, encapsulation: ViewEncapsulation.None, standalone: false, styles: ["ax-loading-spinner{--ax-comp-loading-spinner-loader-height: 3rem;--ax-comp-loading-spinner-loader-width: 3rem;--ax-comp-loading-spinner-loader-border-width: 6px}ax-loading-spinner.ax-black{--ax-comp-loading-spinner-loader-border-color: 0, 0, 0}ax-loading-spinner.ax-white{--ax-comp-loading-spinner-loader-border-color: 255, 255, 255}ax-loading-spinner.ax-primary{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-primary-surface)}ax-loading-spinner.ax-secondary{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-secondary-surface)}ax-loading-spinner.ax-success{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-success-surface)}ax-loading-spinner.ax-warning{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-warning-surface)}ax-loading-spinner.ax-danger{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-danger-surface)}ax-loading-spinner .ax-loader{margin:auto;border-style:solid;display:inline-block;border-radius:9999px;box-sizing:border-box;animation:rotation .5s linear infinite;border-bottom-color:transparent!important;width:var(--ax-comp-loading-spinner-loader-width);height:var(--ax-comp-loading-spinner-loader-height);border-width:var(--ax-comp-loading-spinner-loader-border-width);border-color:rgba(var(--ax-comp-loading-spinner-loader-border-color))}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
54
+ `, encapsulation: ViewEncapsulation.None, styles: ["ax-loading-spinner{--ax-comp-loading-spinner-loader-height: 3rem;--ax-comp-loading-spinner-loader-width: 3rem;--ax-comp-loading-spinner-loader-border-width: 6px}ax-loading-spinner.ax-black{--ax-comp-loading-spinner-loader-border-color: 0, 0, 0}ax-loading-spinner.ax-white{--ax-comp-loading-spinner-loader-border-color: 255, 255, 255}ax-loading-spinner.ax-primary{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-primary-surface)}ax-loading-spinner.ax-secondary{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-secondary-surface)}ax-loading-spinner.ax-success{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-success-surface)}ax-loading-spinner.ax-warning{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-warning-surface)}ax-loading-spinner.ax-danger{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-danger-surface)}ax-loading-spinner .ax-loader{margin:auto;border-style:solid;display:inline-block;border-radius:9999px;box-sizing:border-box;animation:rotation .5s linear infinite;border-bottom-color:transparent!important;width:var(--ax-comp-loading-spinner-loader-width);height:var(--ax-comp-loading-spinner-loader-height);border-width:var(--ax-comp-loading-spinner-loader-border-width);border-color:rgba(var(--ax-comp-loading-spinner-loader-border-color))}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
56
55
  }], propDecorators: { text: [{
57
56
  type: Input
58
57
  }], color: [{
@@ -135,16 +134,12 @@ class AXLoadingComponent extends MXBaseComponent {
135
134
  Object.assign(ref.instance, this.context);
136
135
  }
137
136
  }
138
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
139
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: AXLoadingComponent, isStandalone: false, selector: "ax-loading", inputs: { visible: "visible", type: "type", context: "context" }, outputs: { visibleChange: "visibleChange" }, usesInheritance: true, ngImport: i0, template: `
140
- <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
141
- `, isInline: true, styles: ["ax-loading{--ax-comp-loading-padding-x: .25rem;--ax-comp-loading-inner-scale: 0;--ax-comp-loading-pulse-scale: 1.05;--ax-comp-loading-animation-duration: 2s;--ax-comp-loading-spinner-gap: .75rem}.ax-loading-overlay-backdrop{--ax-comp-loading-overlay-opacity: .85}.ax-loading-pane{--ax-comp-loading-pane-outline-width: 2px;--ax-comp-loading-pane-outline-offset: 2px}ax-loading{position:relative;padding-left:var(--ax-comp-loading-padding-x);padding-right:var(--ax-comp-loading-padding-x)}ax-loading:before,ax-loading:after{content:\"\";top:50%;width:100%;height:100%;position:absolute;border-radius:9999px;inset-inline-start:50%;transform:translate(-50%,-50%) scale(var(--ax-comp-loading-inner-scale));background-color:transparent;animation:var(--ax-comp-loading-animation-duration) ease-in-out both ax-pulse;animation-iteration-count:infinite}@keyframes ax-pulse{50%{transform:scale3d(var(--ax-comp-loading-pulse-scale),var(--ax-comp-loading-pulse-scale),var(--ax-comp-loading-pulse-scale))}}ax-loading ax-loading-spinner{display:flex;gap:var(--ax-comp-loading-spinner-gap)}.ax-loading-overlay-backdrop{opacity:var(--ax-comp-loading-overlay-opacity)!important;background-color:rgba(var(--ax-comp-loading-overlay-bg-color, var(--ax-sys-color-surface)))}.ax-loading-pane{top:0;bottom:0;inset-inline-end:0px;inset-inline-start:0px;width:100%!important;height:100%!important}.ax-loading-pane .cdk-dialog-container{display:flex!important;align-items:center;justify-content:center}.ax-loading-pane .cdk-dialog-container:focus,.ax-loading-pane .cdk-dialog-container:focus-visible,.ax-loading-pane .cdk-dialog-container:focus-within{outline-style:solid;outline-color:transparent;outline-width:var(--ax-comp-loading-pane-outline-width);outline-offset:var(--ax-comp-loading-pane-outline-offset)}\n"], dependencies: [{ kind: "directive", type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
137
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
138
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: AXLoadingComponent, isStandalone: true, selector: "ax-loading", inputs: { visible: "visible", type: "type", context: "context" }, outputs: { visibleChange: "visibleChange" }, usesInheritance: true, ngImport: i0, template: ` <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template> `, isInline: true, styles: ["ax-loading{--ax-comp-loading-padding-x: .25rem;--ax-comp-loading-inner-scale: 0;--ax-comp-loading-pulse-scale: 1.05;--ax-comp-loading-animation-duration: 2s;--ax-comp-loading-spinner-gap: .75rem}.ax-loading-overlay-backdrop{--ax-comp-loading-overlay-opacity: .6}.ax-loading-pane{--ax-comp-loading-pane-outline-width: 2px;--ax-comp-loading-pane-outline-offset: 2px}ax-loading{position:relative;padding-left:var(--ax-comp-loading-padding-x);padding-right:var(--ax-comp-loading-padding-x)}ax-loading:before,ax-loading:after{content:\"\";top:50%;width:100%;height:100%;position:absolute;border-radius:9999px;inset-inline-start:50%;transform:translate(-50%,-50%) scale(var(--ax-comp-loading-inner-scale));background-color:transparent;animation:var(--ax-comp-loading-animation-duration) ease-in-out both ax-pulse;animation-iteration-count:infinite}@keyframes ax-pulse{50%{transform:scale3d(var(--ax-comp-loading-pulse-scale),var(--ax-comp-loading-pulse-scale),var(--ax-comp-loading-pulse-scale))}}ax-loading ax-loading-spinner{display:flex;gap:var(--ax-comp-loading-spinner-gap)}.ax-loading-overlay-backdrop{opacity:var(--ax-comp-loading-overlay-opacity);background-color:rgba(var(--ax-comp-loading-overlay-bg-color, var(--ax-sys-color-surface)))}.ax-loading-pane{top:0;bottom:0;inset-inline-end:0px;inset-inline-start:0px;width:100%!important;height:100%!important}.ax-loading-pane .cdk-dialog-container{display:flex!important;align-items:center;justify-content:center}.ax-loading-pane .cdk-dialog-container:focus,.ax-loading-pane .cdk-dialog-container:focus-visible,.ax-loading-pane .cdk-dialog-container:focus-within{outline-style:solid;outline-color:transparent;outline-width:var(--ax-comp-loading-pane-outline-width);outline-offset:var(--ax-comp-loading-pane-outline-offset)}\n"], dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
142
139
  }
143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingComponent, decorators: [{
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingComponent, decorators: [{
144
141
  type: Component,
145
- args: [{ selector: 'ax-loading', template: `
146
- <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
147
- `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, styles: ["ax-loading{--ax-comp-loading-padding-x: .25rem;--ax-comp-loading-inner-scale: 0;--ax-comp-loading-pulse-scale: 1.05;--ax-comp-loading-animation-duration: 2s;--ax-comp-loading-spinner-gap: .75rem}.ax-loading-overlay-backdrop{--ax-comp-loading-overlay-opacity: .85}.ax-loading-pane{--ax-comp-loading-pane-outline-width: 2px;--ax-comp-loading-pane-outline-offset: 2px}ax-loading{position:relative;padding-left:var(--ax-comp-loading-padding-x);padding-right:var(--ax-comp-loading-padding-x)}ax-loading:before,ax-loading:after{content:\"\";top:50%;width:100%;height:100%;position:absolute;border-radius:9999px;inset-inline-start:50%;transform:translate(-50%,-50%) scale(var(--ax-comp-loading-inner-scale));background-color:transparent;animation:var(--ax-comp-loading-animation-duration) ease-in-out both ax-pulse;animation-iteration-count:infinite}@keyframes ax-pulse{50%{transform:scale3d(var(--ax-comp-loading-pulse-scale),var(--ax-comp-loading-pulse-scale),var(--ax-comp-loading-pulse-scale))}}ax-loading ax-loading-spinner{display:flex;gap:var(--ax-comp-loading-spinner-gap)}.ax-loading-overlay-backdrop{opacity:var(--ax-comp-loading-overlay-opacity)!important;background-color:rgba(var(--ax-comp-loading-overlay-bg-color, var(--ax-sys-color-surface)))}.ax-loading-pane{top:0;bottom:0;inset-inline-end:0px;inset-inline-start:0px;width:100%!important;height:100%!important}.ax-loading-pane .cdk-dialog-container{display:flex!important;align-items:center;justify-content:center}.ax-loading-pane .cdk-dialog-container:focus,.ax-loading-pane .cdk-dialog-container:focus-visible,.ax-loading-pane .cdk-dialog-container:focus-within{outline-style:solid;outline-color:transparent;outline-width:var(--ax-comp-loading-pane-outline-width);outline-offset:var(--ax-comp-loading-pane-outline-offset)}\n"] }]
142
+ args: [{ selector: 'ax-loading', template: ` <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template> `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CdkPortalOutlet], styles: ["ax-loading{--ax-comp-loading-padding-x: .25rem;--ax-comp-loading-inner-scale: 0;--ax-comp-loading-pulse-scale: 1.05;--ax-comp-loading-animation-duration: 2s;--ax-comp-loading-spinner-gap: .75rem}.ax-loading-overlay-backdrop{--ax-comp-loading-overlay-opacity: .6}.ax-loading-pane{--ax-comp-loading-pane-outline-width: 2px;--ax-comp-loading-pane-outline-offset: 2px}ax-loading{position:relative;padding-left:var(--ax-comp-loading-padding-x);padding-right:var(--ax-comp-loading-padding-x)}ax-loading:before,ax-loading:after{content:\"\";top:50%;width:100%;height:100%;position:absolute;border-radius:9999px;inset-inline-start:50%;transform:translate(-50%,-50%) scale(var(--ax-comp-loading-inner-scale));background-color:transparent;animation:var(--ax-comp-loading-animation-duration) ease-in-out both ax-pulse;animation-iteration-count:infinite}@keyframes ax-pulse{50%{transform:scale3d(var(--ax-comp-loading-pulse-scale),var(--ax-comp-loading-pulse-scale),var(--ax-comp-loading-pulse-scale))}}ax-loading ax-loading-spinner{display:flex;gap:var(--ax-comp-loading-spinner-gap)}.ax-loading-overlay-backdrop{opacity:var(--ax-comp-loading-overlay-opacity);background-color:rgba(var(--ax-comp-loading-overlay-bg-color, var(--ax-sys-color-surface)))}.ax-loading-pane{top:0;bottom:0;inset-inline-end:0px;inset-inline-start:0px;width:100%!important;height:100%!important}.ax-loading-pane .cdk-dialog-container{display:flex!important;align-items:center;justify-content:center}.ax-loading-pane .cdk-dialog-container:focus,.ax-loading-pane .cdk-dialog-container:focus-visible,.ax-loading-pane .cdk-dialog-container:focus-within{outline-style:solid;outline-color:transparent;outline-width:var(--ax-comp-loading-pane-outline-width);outline-offset:var(--ax-comp-loading-pane-outline-offset)}\n"] }]
148
143
  }], propDecorators: { visibleChange: [{
149
144
  type: Output
150
145
  }], visible: [{
@@ -265,10 +260,10 @@ class AXLoadingService {
265
260
  getLoaderId(loaderId) {
266
261
  return loaderId ?? DEFAULT_LOADER_ID;
267
262
  }
268
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
269
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingService }); }
263
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
264
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingService }); }
270
265
  }
271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingService, decorators: [{
266
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingService, decorators: [{
272
267
  type: Injectable
273
268
  }] });
274
269
 
@@ -294,15 +289,12 @@ class AXLoadingDirective {
294
289
  this.loadingService = loadingService;
295
290
  this._hostElement = this.elementRef.nativeElement;
296
291
  }
297
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDirective, deps: [{ token: i0.ElementRef }, { token: AXLoadingService }], target: i0.ɵɵFactoryTarget.Directive }); }
298
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.3", type: AXLoadingDirective, isStandalone: false, selector: "[axIsLoading]", inputs: { isLoading: ["axIsLoading", "isLoading"] }, ngImport: i0 }); }
292
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDirective, deps: [{ token: i0.ElementRef }, { token: AXLoadingService }], target: i0.ɵɵFactoryTarget.Directive }); }
293
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.8", type: AXLoadingDirective, isStandalone: true, selector: "[axIsLoading]", inputs: { isLoading: ["axIsLoading", "isLoading"] }, ngImport: i0 }); }
299
294
  }
300
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingDirective, decorators: [{
295
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingDirective, decorators: [{
301
296
  type: Directive,
302
- args: [{
303
- selector: '[axIsLoading]',
304
- standalone: false
305
- }]
297
+ args: [{ selector: '[axIsLoading]' }]
306
298
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: AXLoadingService }], propDecorators: { isLoading: [{
307
299
  type: Input,
308
300
  args: ['axIsLoading']
@@ -311,15 +303,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
311
303
  const COMPONENT = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
312
304
  const MODULES = [CommonModule, OverlayModule, DialogModule, PortalModule];
313
305
  class AXLoadingModule {
314
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
315
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, DialogModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] }); }
316
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingModule, providers: [AXLoadingService], imports: [MODULES] }); }
306
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
307
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingModule, imports: [CommonModule, OverlayModule, DialogModule, PortalModule, AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] }); }
308
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingModule, providers: [AXLoadingService], imports: [MODULES] }); }
317
309
  }
318
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXLoadingModule, decorators: [{
310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AXLoadingModule, decorators: [{
319
311
  type: NgModule,
320
312
  args: [{
321
- declarations: [...COMPONENT],
322
- imports: [...MODULES],
313
+ imports: [...MODULES, ...COMPONENT],
323
314
  exports: [...COMPONENT],
324
315
  providers: [AXLoadingService],
325
316
  }]
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-loading.mjs","sources":["../../../../libs/components/loading/src/lib/loading-spinner.component.ts","../../../../libs/components/loading/src/lib/loading.config.ts","../../../../libs/components/loading/src/lib/loading.component.ts","../../../../libs/components/loading/src/lib/loading.service.ts","../../../../libs/components/loading/src/lib/loading.directive.ts","../../../../libs/components/loading/src/lib/loading.module.ts","../../../../libs/components/loading/src/acorex-components-loading.ts"],"sourcesContent":["import { AXStyleColorType } from '@acorex/components/common';\nimport { Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\n\n/**\n * A loading spinner component that displays a rotating spinner icon.\n * @category Components\n */\n@Component({\n selector: 'ax-loading-spinner',\n template: `\n <span class=\"ax-loader\" [style.width.px]=\"size\" [style.height.px]=\"size\" [style.border-width.px]=\"stroke\" [style.border-color]=\"color\"></span>\n @if (text) {\n <span> {{ text }} </span>\n }\n `,\n styleUrls: ['./loading-spinner.component.scss'],\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n})\nexport class AXLoadingSpinnerComponent {\n /**\n * The text to display alongside the spinner.\n * @ignore\n */\n @Input()\n text: string;\n\n /**\n * Color of the spinner. Can be a predefined style color or a custom color.\n * @defaultValue 'default'\n */\n @Input()\n color: AXStyleColorType | 'white' | 'black' = 'default';\n\n /**\n * Size of the spinner, in pixels. This determines both the width and height of the spinner.\n * @defaultValue 16\n */\n @Input() size = 16;\n\n /**\n * Thickness of the spinner's border, in pixels. This affects the visual weight of the spinner's outline.\n * @defaultValue 3\n */\n @Input() stroke = 3;\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get __hostClass(): string {\n return `ax-${this.color}`;\n }\n}\n","import { InjectionToken } from '@angular/core';\nimport { AXLoadingSpinnerComponent } from './loading-spinner.component';\n\nexport interface AXLoadingConfig {\n spinner: unknown;\n}\n\nexport const AX_LOADING_CONFIG = new InjectionToken<AXLoadingConfig>('AX_LOADING_CONFIG', {\n providedIn: 'root',\n factory: () => AXLoadingDefaultConfig,\n});\n\nexport const AXLoadingDefaultConfig: AXLoadingConfig = {\n spinner: AXLoadingSpinnerComponent,\n};\n\nexport type PartialLoadingConfig = Partial<AXLoadingConfig>;\n\nexport function loadingConfig(config: PartialLoadingConfig = {}): AXLoadingConfig {\n const result = {\n ...AXLoadingDefaultConfig,\n ...config,\n };\n return result;\n}\n","import { MXBaseComponent } from '@acorex/components/common';\nimport { CdkPortalOutletAttachedRef, ComponentPortal, ComponentType, Portal } from '@angular/cdk/portal';\nimport {\n ChangeDetectionStrategy,\n Component,\n ComponentRef,\n EventEmitter,\n Input,\n OnInit,\n Output,\n ViewEncapsulation,\n inject,\n} from '@angular/core';\nimport { AXLoadingConfig, AX_LOADING_CONFIG } from './loading.config';\n\n/**\n * A component that displays a loading indicator.\n * @category Components\n */\n@Component({\n selector: 'ax-loading',\n template: `\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\n `,\n styleUrls: ['./loading.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false\n})\nexport class AXLoadingComponent extends MXBaseComponent implements OnInit {\n private config: AXLoadingConfig = inject(AX_LOADING_CONFIG);\n\n /**\n * @ignore\n */\n protected _selectedPortal: Portal<unknown>;\n\n /**\n * Emits an event when the visibility state of the component changes.\n * @event\n */\n @Output()\n visibleChange: EventEmitter<boolean> = new EventEmitter();\n\n /**\n * @ignore\n */\n private _visible: boolean;\n\n /**\n * Determines whether the component is visible or not.\n */\n @Input()\n public get visible(): boolean {\n return this._visible;\n }\n\n /**\n * Sets the visibility of the component and emits a visibility change event.\n *\n * @param v - A boolean value indicating whether the component should be visible.\n */\n public set visible(v: boolean) {\n if (v != this._visible) {\n this._visible = v;\n v ? this.getHostElement().classList.remove('ax-hide') : this.getHostElement().classList.add('ax-hide');\n this.visibleChange.emit(v);\n }\n }\n\n /**\n * Specifies the type of loading indicator to display.\n * @defaultValue 'spinner'\n */\n @Input()\n type = 'spinner';\n\n /**\n * Provides additional context or data that may be used by the component.\n */\n @Input()\n context?: unknown;\n\n /**\n * @ignore\n */\n override ngOnInit() {\n super.ngOnInit();\n this._selectedPortal = new ComponentPortal(this.config.spinner as ComponentType<unknown>);\n this.cdr.markForCheck();\n }\n\n /**\n * @ignore\n */\n protected _handleAttched(ref: CdkPortalOutletAttachedRef) {\n ref = ref as ComponentRef<unknown>;\n if (ref.instance && this.context) {\n Object.assign(ref.instance, this.context);\n }\n }\n}\n","import { Dialog } from '@angular/cdk/dialog';\nimport { Injectable, inject } from '@angular/core';\nimport { BehaviorSubject, Observable, asyncScheduler } from 'rxjs';\nimport { finalize, observeOn } from 'rxjs/operators';\nimport { AXLoadingComponent } from './loading.component';\n\ntype LoadingContext = object;\ntype LoaderId = string | number; // expected enum values\nconst DEFAULT_LOADER_ID: LoaderId = '_DEFAULT';\n\n@Injectable()\nexport class AXLoadingService {\n // WeakMap will remove components from itself upon\n // their garbage collection by JS runtime.\n protected loadingStates = new WeakMap<LoadingContext, Map<LoaderId, boolean>>();\n // Both loading state maps are kept in-sync such that\n // they can be used by both sync and async methods.\n protected loadingStates$ = new WeakMap<LoadingContext, Map<LoaderId, BehaviorSubject<boolean>>>();\n\n private dialog = inject(Dialog);\n\n show(config?: { location?: Element; type?: string; context?: unknown }): number {\n const ce = (config?.location ?? document.body) as HTMLDivElement;\n const dialogRef = this.dialog.open(AXLoadingComponent, {\n hasBackdrop: true,\n disableClose: true,\n restoreFocus: true,\n closeOnDestroy: true,\n closeOnNavigation: true,\n ariaModal: true,\n role: 'alertdialog',\n panelClass: ['ax-loading-pane', 'ax-animate-fadeIn'],\n backdropClass: ['ax-loading-overlay-backdrop', 'ax-animate-fadeIn'],\n });\n const id = new Date().getTime();\n dialogRef.componentInstance.visible = true;\n dialogRef.componentInstance.id = id.toString();\n if (ce != document.body) {\n const bg = dialogRef.overlayRef.backdropElement;\n const ov = dialogRef.overlayRef.overlayElement;\n ce.style.position = 'relative';\n ov.style.position = 'absolute';\n\n ce.appendChild(bg);\n ce.appendChild(ov);\n setTimeout(() => {\n ov.style.position = 'absolute';\n });\n }\n return id;\n // TODO: diabled focus and click, maybe we need a service and directive for it\n }\n\n hide(id: number): void {\n const f = this.dialog.openDialogs.find((c) => c.componentInstance.id === id.toString());\n if (f) {\n f.close();\n }\n }\n\n doLoading<V>(source$: Observable<V>, context: LoadingContext, loaderId?: LoaderId): Observable<V> {\n this.startLoading(context, loaderId);\n return source$.pipe(\n observeOn(asyncScheduler),\n finalize(() => this.endLoading(context, loaderId)),\n );\n }\n\n isLoading(context: LoadingContext, loaderId?: LoaderId): boolean {\n const loaderStates = this.loadingStates.get(context);\n\n if (!loaderStates) {\n return false;\n } else {\n if (loaderId !== undefined) {\n return loaderStates.get(this.getLoaderId(loaderId)) ?? false;\n } else {\n return [...loaderStates.values()].filter((state) => state).length > 0;\n }\n }\n }\n\n isLoading$(context: LoadingContext, loaderId?: LoaderId | any): Observable<boolean> {\n const coalescedLoaderId = this.getLoaderId(loaderId);\n\n if (!this.hasLoadingStates(context, coalescedLoaderId)) {\n this.setLoadingState(context, false, loaderId);\n }\n\n return this.loadingStates$.get(context).get(coalescedLoaderId);\n }\n\n startLoading(context: LoadingContext, loaderId?: LoaderId): void {\n this.setLoadingState(context, true, this.getLoaderId(loaderId));\n }\n\n endLoading(context: LoadingContext, loaderId?: LoaderId): void {\n this.setLoadingState(context, false, this.getLoaderId(loaderId));\n }\n\n clearLoadings(): void {\n this.loadingStates = new WeakMap<LoadingContext, Map<LoaderId, boolean>>();\n this.loadingStates$ = new WeakMap<LoadingContext, Map<LoaderId, BehaviorSubject<boolean>>>();\n }\n\n protected setLoadingState(context: LoadingContext, state: boolean, loaderId: LoaderId): void {\n if (!this.hasLoadingStates(context, loaderId)) {\n if (this.hasContextLoadingState(context)) {\n this.loadingStates.get(context).set(loaderId, state);\n this.loadingStates$.get(context).set(loaderId, new BehaviorSubject<boolean>(state));\n } else {\n this.loadingStates.set(context, new Map<LoaderId, boolean>([[loaderId, state]]));\n this.loadingStates$.set(\n context,\n new Map<LoaderId, BehaviorSubject<boolean>>([[loaderId, new BehaviorSubject<boolean>(state)]]),\n );\n }\n } else {\n this.loadingStates.get(context).set(loaderId, state);\n this.loadingStates$.get(context).get(loaderId).next(state);\n }\n }\n\n protected hasLoadingStates(context: LoadingContext, loaderId: LoaderId) {\n return this.hasContextLoadingState(context) && this.hasLoaderLoadingState(context, loaderId);\n }\n\n protected hasContextLoadingState(context: LoadingContext) {\n return this.loadingStates.has(context) && this.loadingStates$.has(context);\n }\n\n protected hasLoaderLoadingState(context: LoadingContext, loaderId: LoaderId) {\n return this.loadingStates.get(context).has(loaderId) && this.loadingStates$.get(context).has(loaderId);\n }\n\n protected getLoaderId(loaderId?: LoaderId): LoaderId {\n return loaderId ?? DEFAULT_LOADER_ID;\n }\n}\n","import { Directive, ElementRef, Input } from '@angular/core';\nimport { AXLoadingService } from './loading.service';\n\n// This directive places an overlay with a loading spinner over its host element\n// if isLoading equals to true and hides the overlay when isLoading becomes false.\n@Directive({\n selector: '[axIsLoading]',\n standalone: false\n})\nexport class AXLoadingDirective {\n private _hostElement!: HTMLDivElement;\n private _loadingRef!: number;\n\n private _isLoading: boolean;\n\n @Input('axIsLoading')\n public get isLoading(): boolean {\n return this._isLoading;\n }\n public set isLoading(v: boolean) {\n this._isLoading = v;\n if (v) {\n this._loadingRef = this.loadingService.show({\n location: this._hostElement,\n });\n } else {\n this.loadingService.hide(this._loadingRef);\n }\n }\n\n constructor(\n protected readonly elementRef: ElementRef,\n protected readonly loadingService: AXLoadingService,\n ) {\n this._hostElement = this.elementRef.nativeElement;\n }\n}\n","import { DialogModule } from '@angular/cdk/dialog';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXLoadingSpinnerComponent } from './loading-spinner.component';\nimport { AXLoadingComponent } from './loading.component';\nimport { AXLoadingDirective } from './loading.directive';\nimport { AXLoadingService } from './loading.service';\n\nconst COMPONENT = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];\nconst MODULES = [CommonModule, OverlayModule, DialogModule, PortalModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [AXLoadingService],\n})\nexport class AXLoadingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.AXLoad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CAAA,EAAA,OAAA,EAAA,CADrD,kBAAkB,EAAE,kBAAkB,EAAE,yBAAyB,CAAA,EAAA,CAAA,CAAA;AASvE,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAFf,SAAA,EAAA,CAAC,gBAAgB,CAAC,YAFhB,OAAO,CAAA,EAAA,CAAA,CAAA;;2FAIT,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;oBACvB,SAAS,EAAE,CAAC,gBAAgB,CAAC;AAC9B,iBAAA;;;AClBD;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-components-loading.mjs","sources":["../../../../libs/components/loading/src/lib/loading-spinner.component.ts","../../../../libs/components/loading/src/lib/loading.config.ts","../../../../libs/components/loading/src/lib/loading.component.ts","../../../../libs/components/loading/src/lib/loading.service.ts","../../../../libs/components/loading/src/lib/loading.directive.ts","../../../../libs/components/loading/src/lib/loading.module.ts","../../../../libs/components/loading/src/acorex-components-loading.ts"],"sourcesContent":["import { AXStyleColorType } from '@acorex/components/common';\nimport { Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\n\n/**\n * A loading spinner component that displays a rotating spinner icon.\n * @category Components\n */\n@Component({\n selector: 'ax-loading-spinner',\n template: `\n <span class=\"ax-loader\" [style.width.px]=\"size\" [style.height.px]=\"size\" [style.border-width.px]=\"stroke\" [style.border-color]=\"color\"></span>\n @if (text) {\n <span> {{ text }} </span>\n }\n `,\n styleUrls: ['./loading-spinner.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXLoadingSpinnerComponent {\n /**\n * The text to display alongside the spinner.\n * @ignore\n */\n @Input()\n text: string;\n\n /**\n * Color of the spinner. Can be a predefined style color or a custom color.\n * @defaultValue 'default'\n */\n @Input()\n color: AXStyleColorType | 'white' | 'black' = 'default';\n\n /**\n * Size of the spinner, in pixels. This determines both the width and height of the spinner.\n * @defaultValue 16\n */\n @Input() size = 16;\n\n /**\n * Thickness of the spinner's border, in pixels. This affects the visual weight of the spinner's outline.\n * @defaultValue 3\n */\n @Input() stroke = 3;\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get __hostClass(): string {\n return `ax-${this.color}`;\n }\n}\n","import { InjectionToken } from '@angular/core';\nimport { AXLoadingSpinnerComponent } from './loading-spinner.component';\n\nexport interface AXLoadingConfig {\n spinner: unknown;\n}\n\nexport const AX_LOADING_CONFIG = new InjectionToken<AXLoadingConfig>('AX_LOADING_CONFIG', {\n providedIn: 'root',\n factory: () => AXLoadingDefaultConfig,\n});\n\nexport const AXLoadingDefaultConfig: AXLoadingConfig = {\n spinner: AXLoadingSpinnerComponent,\n};\n\nexport type PartialLoadingConfig = Partial<AXLoadingConfig>;\n\nexport function loadingConfig(config: PartialLoadingConfig = {}): AXLoadingConfig {\n const result = {\n ...AXLoadingDefaultConfig,\n ...config,\n };\n return result;\n}\n","import { MXBaseComponent } from '@acorex/components/common';\nimport { CdkPortalOutlet, CdkPortalOutletAttachedRef, ComponentPortal, ComponentType, Portal } from '@angular/cdk/portal';\nimport { ChangeDetectionStrategy, Component, ComponentRef, EventEmitter, Input, OnInit, Output, ViewEncapsulation, inject } from '@angular/core';\nimport { AXLoadingConfig, AX_LOADING_CONFIG } from './loading.config';\n\n/**\n * A component that displays a loading indicator.\n * @category Components\n */\n@Component({\n selector: 'ax-loading',\n template: ` <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template> `,\n styleUrls: ['./loading.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CdkPortalOutlet],\n})\nexport class AXLoadingComponent extends MXBaseComponent implements OnInit {\n private config: AXLoadingConfig = inject(AX_LOADING_CONFIG);\n\n /**\n * @ignore\n */\n protected _selectedPortal: Portal<unknown>;\n\n /**\n * Emits an event when the visibility state of the component changes.\n * @event\n */\n @Output()\n visibleChange: EventEmitter<boolean> = new EventEmitter();\n\n /**\n * @ignore\n */\n private _visible: boolean;\n\n /**\n * Determines whether the component is visible or not.\n */\n @Input()\n public get visible(): boolean {\n return this._visible;\n }\n\n /**\n * Sets the visibility of the component and emits a visibility change event.\n *\n * @param v - A boolean value indicating whether the component should be visible.\n */\n public set visible(v: boolean) {\n if (v != this._visible) {\n this._visible = v;\n v ? this.getHostElement().classList.remove('ax-hide') : this.getHostElement().classList.add('ax-hide');\n this.visibleChange.emit(v);\n }\n }\n\n /**\n * Specifies the type of loading indicator to display.\n * @defaultValue 'spinner'\n */\n @Input()\n type = 'spinner';\n\n /**\n * Provides additional context or data that may be used by the component.\n */\n @Input()\n context?: unknown;\n\n /**\n * @ignore\n */\n override ngOnInit() {\n super.ngOnInit();\n this._selectedPortal = new ComponentPortal(this.config.spinner as ComponentType<unknown>);\n this.cdr.markForCheck();\n }\n\n /**\n * @ignore\n */\n protected _handleAttched(ref: CdkPortalOutletAttachedRef) {\n ref = ref as ComponentRef<unknown>;\n if (ref.instance && this.context) {\n Object.assign(ref.instance, this.context);\n }\n }\n}\n","import { Dialog } from '@angular/cdk/dialog';\nimport { Injectable, inject } from '@angular/core';\nimport { BehaviorSubject, Observable, asyncScheduler } from 'rxjs';\nimport { finalize, observeOn } from 'rxjs/operators';\nimport { AXLoadingComponent } from './loading.component';\n\ntype LoadingContext = object;\ntype LoaderId = string | number; // expected enum values\nconst DEFAULT_LOADER_ID: LoaderId = '_DEFAULT';\n\n@Injectable()\nexport class AXLoadingService {\n // WeakMap will remove components from itself upon\n // their garbage collection by JS runtime.\n protected loadingStates = new WeakMap<LoadingContext, Map<LoaderId, boolean>>();\n // Both loading state maps are kept in-sync such that\n // they can be used by both sync and async methods.\n protected loadingStates$ = new WeakMap<LoadingContext, Map<LoaderId, BehaviorSubject<boolean>>>();\n\n private dialog = inject(Dialog);\n\n show(config?: { location?: Element; type?: string; context?: unknown }): number {\n const ce = (config?.location ?? document.body) as HTMLDivElement;\n const dialogRef = this.dialog.open(AXLoadingComponent, {\n hasBackdrop: true,\n disableClose: true,\n restoreFocus: true,\n closeOnDestroy: true,\n closeOnNavigation: true,\n ariaModal: true,\n role: 'alertdialog',\n panelClass: ['ax-loading-pane', 'ax-animate-fadeIn'],\n backdropClass: ['ax-loading-overlay-backdrop', 'ax-animate-fadeIn'],\n });\n const id = new Date().getTime();\n dialogRef.componentInstance.visible = true;\n dialogRef.componentInstance.id = id.toString();\n if (ce != document.body) {\n const bg = dialogRef.overlayRef.backdropElement;\n const ov = dialogRef.overlayRef.overlayElement;\n ce.style.position = 'relative';\n ov.style.position = 'absolute';\n\n ce.appendChild(bg);\n ce.appendChild(ov);\n setTimeout(() => {\n ov.style.position = 'absolute';\n });\n }\n return id;\n // TODO: diabled focus and click, maybe we need a service and directive for it\n }\n\n hide(id: number): void {\n const f = this.dialog.openDialogs.find((c) => c.componentInstance.id === id.toString());\n if (f) {\n f.close();\n }\n }\n\n doLoading<V>(source$: Observable<V>, context: LoadingContext, loaderId?: LoaderId): Observable<V> {\n this.startLoading(context, loaderId);\n return source$.pipe(\n observeOn(asyncScheduler),\n finalize(() => this.endLoading(context, loaderId)),\n );\n }\n\n isLoading(context: LoadingContext, loaderId?: LoaderId): boolean {\n const loaderStates = this.loadingStates.get(context);\n\n if (!loaderStates) {\n return false;\n } else {\n if (loaderId !== undefined) {\n return loaderStates.get(this.getLoaderId(loaderId)) ?? false;\n } else {\n return [...loaderStates.values()].filter((state) => state).length > 0;\n }\n }\n }\n\n isLoading$(context: LoadingContext, loaderId?: LoaderId | any): Observable<boolean> {\n const coalescedLoaderId = this.getLoaderId(loaderId);\n\n if (!this.hasLoadingStates(context, coalescedLoaderId)) {\n this.setLoadingState(context, false, loaderId);\n }\n\n return this.loadingStates$.get(context).get(coalescedLoaderId);\n }\n\n startLoading(context: LoadingContext, loaderId?: LoaderId): void {\n this.setLoadingState(context, true, this.getLoaderId(loaderId));\n }\n\n endLoading(context: LoadingContext, loaderId?: LoaderId): void {\n this.setLoadingState(context, false, this.getLoaderId(loaderId));\n }\n\n clearLoadings(): void {\n this.loadingStates = new WeakMap<LoadingContext, Map<LoaderId, boolean>>();\n this.loadingStates$ = new WeakMap<LoadingContext, Map<LoaderId, BehaviorSubject<boolean>>>();\n }\n\n protected setLoadingState(context: LoadingContext, state: boolean, loaderId: LoaderId): void {\n if (!this.hasLoadingStates(context, loaderId)) {\n if (this.hasContextLoadingState(context)) {\n this.loadingStates.get(context).set(loaderId, state);\n this.loadingStates$.get(context).set(loaderId, new BehaviorSubject<boolean>(state));\n } else {\n this.loadingStates.set(context, new Map<LoaderId, boolean>([[loaderId, state]]));\n this.loadingStates$.set(\n context,\n new Map<LoaderId, BehaviorSubject<boolean>>([[loaderId, new BehaviorSubject<boolean>(state)]]),\n );\n }\n } else {\n this.loadingStates.get(context).set(loaderId, state);\n this.loadingStates$.get(context).get(loaderId).next(state);\n }\n }\n\n protected hasLoadingStates(context: LoadingContext, loaderId: LoaderId) {\n return this.hasContextLoadingState(context) && this.hasLoaderLoadingState(context, loaderId);\n }\n\n protected hasContextLoadingState(context: LoadingContext) {\n return this.loadingStates.has(context) && this.loadingStates$.has(context);\n }\n\n protected hasLoaderLoadingState(context: LoadingContext, loaderId: LoaderId) {\n return this.loadingStates.get(context).has(loaderId) && this.loadingStates$.get(context).has(loaderId);\n }\n\n protected getLoaderId(loaderId?: LoaderId): LoaderId {\n return loaderId ?? DEFAULT_LOADER_ID;\n }\n}\n","import { Directive, ElementRef, Input } from '@angular/core';\nimport { AXLoadingService } from './loading.service';\n\n// This directive places an overlay with a loading spinner over its host element\n// if isLoading equals to true and hides the overlay when isLoading becomes false.\n@Directive({ selector: '[axIsLoading]' })\nexport class AXLoadingDirective {\n private _hostElement!: HTMLDivElement;\n private _loadingRef!: number;\n\n private _isLoading: boolean;\n\n @Input('axIsLoading')\n public get isLoading(): boolean {\n return this._isLoading;\n }\n public set isLoading(v: boolean) {\n this._isLoading = v;\n if (v) {\n this._loadingRef = this.loadingService.show({\n location: this._hostElement,\n });\n } else {\n this.loadingService.hide(this._loadingRef);\n }\n }\n\n constructor(\n protected readonly elementRef: ElementRef,\n protected readonly loadingService: AXLoadingService,\n ) {\n this._hostElement = this.elementRef.nativeElement;\n }\n}\n","import { DialogModule } from '@angular/cdk/dialog';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXLoadingSpinnerComponent } from './loading-spinner.component';\nimport { AXLoadingComponent } from './loading.component';\nimport { AXLoadingDirective } from './loading.directive';\nimport { AXLoadingService } from './loading.service';\n\nconst COMPONENT = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];\nconst MODULES = [CommonModule, OverlayModule, DialogModule, PortalModule];\n\n@NgModule({\n imports: [...MODULES, ...COMPONENT],\n exports: [...COMPONENT],\n providers: [AXLoadingService],\n})\nexport class AXLoadingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.AXLoadingService"],"mappings":";;;;;;;;;;AAGA;;;AAGG;MAYU,yBAAyB,CAAA;AAXtC,IAAA,WAAA,GAAA;AAmBE;;;AAGG;QAEH,IAAK,CAAA,KAAA,GAAyC,SAAS;AAEvD;;;AAGG;QACM,IAAI,CAAA,IAAA,GAAG,EAAE;AAElB;;;AAGG;QACM,IAAM,CAAA,MAAA,GAAG,CAAC;AASpB;AAPC;;AAEG;AACH,IAAA,IACY,WAAW,GAAA;AACrB,QAAA,OAAO,CAAM,GAAA,EAAA,IAAI,CAAC,KAAK,EAAE;;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