@acorex/components 21.0.1-next.3 → 21.0.1-next.30

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 (255) hide show
  1. package/accordion/index.d.ts +0 -1
  2. package/action-sheet/index.d.ts +116 -34
  3. package/button-group/index.d.ts +6 -4
  4. package/chips/index.d.ts +3 -8
  5. package/collapse/index.d.ts +4 -6
  6. package/command/index.d.ts +8 -1
  7. package/conversation2/README.md +71 -31
  8. package/conversation2/index.d.ts +36 -35
  9. package/data-table/index.d.ts +4 -253
  10. package/datetime-picker/index.d.ts +1 -1
  11. package/dialog/index.d.ts +18 -14
  12. package/dropdown/index.d.ts +3 -8
  13. package/fesm2022/acorex-components-accordion.mjs +16 -21
  14. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  15. package/fesm2022/acorex-components-action-sheet.mjs +284 -118
  16. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  17. package/fesm2022/acorex-components-alert.mjs +13 -13
  18. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  19. package/fesm2022/acorex-components-aspect-ratio.mjs +3 -3
  20. package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
  21. package/fesm2022/acorex-components-audio-wave.mjs +11 -10
  22. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  23. package/fesm2022/acorex-components-autocomplete.mjs +7 -7
  24. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
  25. package/fesm2022/acorex-components-avatar.mjs +12 -12
  26. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  27. package/fesm2022/acorex-components-badge.mjs +9 -9
  28. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  29. package/fesm2022/acorex-components-bottom-navigation.mjs +11 -11
  30. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  31. package/fesm2022/acorex-components-breadcrumbs.mjs +11 -11
  32. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  33. package/fesm2022/acorex-components-button-group.mjs +23 -19
  34. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  35. package/fesm2022/acorex-components-button.mjs +18 -18
  36. package/fesm2022/acorex-components-button.mjs.map +1 -1
  37. package/fesm2022/acorex-components-calendar.mjs +17 -17
  38. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  39. package/fesm2022/acorex-components-check-box.mjs +10 -10
  40. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  41. package/fesm2022/acorex-components-chips.mjs +12 -14
  42. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  43. package/fesm2022/acorex-components-circular-progress.mjs +12 -10
  44. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  45. package/fesm2022/acorex-components-code-editor.mjs +10 -10
  46. package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
  47. package/fesm2022/acorex-components-collapse.mjs +22 -19
  48. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  49. package/fesm2022/acorex-components-color-box.mjs +9 -9
  50. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  51. package/fesm2022/acorex-components-color-palette.mjs +30 -30
  52. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  53. package/fesm2022/acorex-components-command.mjs +17 -11
  54. package/fesm2022/acorex-components-command.mjs.map +1 -1
  55. package/fesm2022/acorex-components-comment.mjs +32 -32
  56. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  57. package/fesm2022/acorex-components-conversation.mjs +51 -51
  58. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  59. package/fesm2022/acorex-components-conversation2.mjs +309 -303
  60. package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
  61. package/fesm2022/acorex-components-cron-job.mjs +46 -46
  62. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  63. package/fesm2022/acorex-components-data-list.mjs +3 -3
  64. package/fesm2022/acorex-components-data-list.mjs.map +1 -1
  65. package/fesm2022/acorex-components-data-pager.mjs +33 -33
  66. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  67. package/fesm2022/acorex-components-data-table.mjs +50 -486
  68. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  69. package/fesm2022/acorex-components-datetime-box.mjs +9 -9
  70. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  71. package/fesm2022/acorex-components-datetime-input.mjs +9 -9
  72. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  73. package/fesm2022/acorex-components-datetime-picker.mjs +40 -38
  74. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  75. package/fesm2022/acorex-components-decorators.mjs +43 -36
  76. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  77. package/fesm2022/acorex-components-dialog.mjs +75 -54
  78. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  79. package/fesm2022/acorex-components-drawer-legacy.mjs +13 -13
  80. package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -1
  81. package/fesm2022/acorex-components-drawer.mjs +15 -16
  82. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  83. package/fesm2022/acorex-components-dropdown-button.mjs +9 -9
  84. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  85. package/fesm2022/acorex-components-dropdown.mjs +25 -28
  86. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  87. package/fesm2022/acorex-components-editor.mjs +11 -11
  88. package/fesm2022/acorex-components-editor.mjs.map +1 -1
  89. package/fesm2022/acorex-components-file-explorer.mjs +25 -25
  90. package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
  91. package/fesm2022/acorex-components-flow-chart.mjs +16 -16
  92. package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
  93. package/fesm2022/acorex-components-form.mjs +48 -42
  94. package/fesm2022/acorex-components-form.mjs.map +1 -1
  95. package/fesm2022/acorex-components-grid-layout-builder.mjs +13 -14
  96. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  97. package/fesm2022/acorex-components-image-editor.mjs +44 -44
  98. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  99. package/fesm2022/acorex-components-image.mjs +9 -9
  100. package/fesm2022/acorex-components-image.mjs.map +1 -1
  101. package/fesm2022/acorex-components-json-viewer.mjs +8 -8
  102. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  103. package/fesm2022/acorex-components-kanban.mjs +140 -13
  104. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  105. package/fesm2022/acorex-components-kbd.mjs +29 -11
  106. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  107. package/fesm2022/acorex-components-label.mjs +9 -9
  108. package/fesm2022/acorex-components-label.mjs.map +1 -1
  109. package/fesm2022/acorex-components-list.mjs +9 -9
  110. package/fesm2022/acorex-components-list.mjs.map +1 -1
  111. package/fesm2022/acorex-components-loading-dialog.mjs +82 -45
  112. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  113. package/fesm2022/acorex-components-loading.mjs +23 -23
  114. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  115. package/fesm2022/acorex-components-map.mjs +14 -14
  116. package/fesm2022/acorex-components-map.mjs.map +1 -1
  117. package/fesm2022/acorex-components-media-viewer.mjs +72 -54
  118. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  119. package/fesm2022/acorex-components-menu.mjs +43 -22
  120. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  121. package/fesm2022/{acorex-components-modal-acorex-components-modal-CXXcFToK.mjs → acorex-components-modal-acorex-components-modal-BajlPo_n.mjs} +47 -23
  122. package/fesm2022/acorex-components-modal-acorex-components-modal-BajlPo_n.mjs.map +1 -0
  123. package/fesm2022/{acorex-components-modal-modal-content.component-B4rhHeEz.mjs → acorex-components-modal-modal-content.component-BVrBX4Qf.mjs} +9 -7
  124. package/fesm2022/acorex-components-modal-modal-content.component-BVrBX4Qf.mjs.map +1 -0
  125. package/fesm2022/acorex-components-modal.mjs +1 -1
  126. package/fesm2022/acorex-components-navbar.mjs +9 -9
  127. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  128. package/fesm2022/acorex-components-notification.mjs +381 -260
  129. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  130. package/fesm2022/acorex-components-number-box-legacy.mjs +9 -9
  131. package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -1
  132. package/fesm2022/acorex-components-number-box.mjs +9 -9
  133. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  134. package/fesm2022/acorex-components-otp.mjs +9 -9
  135. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  136. package/fesm2022/acorex-components-page.mjs +10 -10
  137. package/fesm2022/acorex-components-page.mjs.map +1 -1
  138. package/fesm2022/acorex-components-paint.mjs +34 -39
  139. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  140. package/fesm2022/acorex-components-password-box.mjs +13 -13
  141. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  142. package/fesm2022/acorex-components-pdf-reader.mjs +8 -8
  143. package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
  144. package/fesm2022/acorex-components-phone-box.mjs +88 -47
  145. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  146. package/fesm2022/acorex-components-picker.mjs +19 -18
  147. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  148. package/fesm2022/acorex-components-popover.mjs +213 -197
  149. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  150. package/fesm2022/acorex-components-popup.mjs +308 -113
  151. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  152. package/fesm2022/acorex-components-progress-bar.mjs +11 -9
  153. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  154. package/fesm2022/acorex-components-qrcode.mjs +9 -9
  155. package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
  156. package/fesm2022/acorex-components-query-builder.mjs +8 -8
  157. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  158. package/fesm2022/acorex-components-radio.mjs +9 -9
  159. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  160. package/fesm2022/acorex-components-rail-navigation.mjs +38 -36
  161. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  162. package/fesm2022/acorex-components-range-slider.mjs +10 -10
  163. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  164. package/fesm2022/acorex-components-rate-picker.mjs +20 -35
  165. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  166. package/fesm2022/acorex-components-rest-api-generator.mjs +22 -22
  167. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  168. package/fesm2022/acorex-components-result.mjs +8 -8
  169. package/fesm2022/acorex-components-result.mjs.map +1 -1
  170. package/fesm2022/acorex-components-routing-progress.mjs +8 -8
  171. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  172. package/fesm2022/acorex-components-rrule.mjs +9 -9
  173. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  174. package/fesm2022/acorex-components-scheduler-picker.mjs +56 -56
  175. package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
  176. package/fesm2022/acorex-components-scheduler.mjs +43 -43
  177. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  178. package/fesm2022/acorex-components-scss.mjs +4 -4
  179. package/fesm2022/acorex-components-scss.mjs.map +1 -1
  180. package/fesm2022/acorex-components-search-box.mjs +16 -10
  181. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  182. package/fesm2022/acorex-components-select-box.mjs +11 -9
  183. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  184. package/fesm2022/acorex-components-selection-list-2.mjs +11 -11
  185. package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
  186. package/fesm2022/acorex-components-selection-list.mjs +9 -9
  187. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  188. package/fesm2022/acorex-components-side-menu.mjs +74 -25
  189. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  190. package/fesm2022/acorex-components-skeleton.mjs +8 -8
  191. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  192. package/fesm2022/acorex-components-slider.mjs +12 -12
  193. package/fesm2022/acorex-components-slider.mjs.map +1 -1
  194. package/fesm2022/acorex-components-sliding-item.mjs +14 -14
  195. package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
  196. package/fesm2022/acorex-components-step-wizard.mjs +14 -14
  197. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  198. package/fesm2022/acorex-components-switch.mjs +14 -14
  199. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  200. package/fesm2022/acorex-components-tabs.mjs +15 -15
  201. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  202. package/fesm2022/acorex-components-tag-box.mjs +9 -9
  203. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  204. package/fesm2022/acorex-components-tag.mjs +9 -9
  205. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  206. package/fesm2022/acorex-components-text-area.mjs +9 -9
  207. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  208. package/fesm2022/acorex-components-text-box.mjs +14 -12
  209. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  210. package/fesm2022/acorex-components-time-duration.mjs +18 -20
  211. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  212. package/fesm2022/acorex-components-time-line.mjs +12 -12
  213. package/fesm2022/acorex-components-time-line.mjs.map +1 -1
  214. package/fesm2022/acorex-components-toast.mjs +239 -131
  215. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  216. package/fesm2022/acorex-components-toolbar.mjs +8 -8
  217. package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
  218. package/fesm2022/acorex-components-tooltip.mjs +67 -67
  219. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  220. package/fesm2022/acorex-components-tree-view-legacy.mjs +16 -12
  221. package/fesm2022/acorex-components-tree-view-legacy.mjs.map +1 -1
  222. package/fesm2022/acorex-components-tree-view.mjs +26 -11
  223. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  224. package/fesm2022/acorex-components-uploader.mjs +16 -16
  225. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  226. package/fesm2022/acorex-components-video-player.mjs +8 -8
  227. package/fesm2022/acorex-components-video-player.mjs.map +1 -1
  228. package/fesm2022/acorex-components-wysiwyg.mjs +42 -42
  229. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  230. package/fesm2022/acorex-components.mjs.map +1 -1
  231. package/form/index.d.ts +2 -1
  232. package/grid-layout-builder/index.d.ts +1 -2
  233. package/kanban/index.d.ts +62 -4
  234. package/kbd/index.d.ts +13 -7
  235. package/loading/index.d.ts +1 -1
  236. package/loading-dialog/index.d.ts +31 -15
  237. package/media-viewer/index.d.ts +2 -1
  238. package/menu/index.d.ts +4 -0
  239. package/modal/index.d.ts +7 -0
  240. package/notification/index.d.ts +47 -32
  241. package/package.json +3 -3
  242. package/paint/index.d.ts +1 -6
  243. package/phone-box/index.d.ts +12 -7
  244. package/popover/index.d.ts +32 -30
  245. package/popup/index.d.ts +100 -27
  246. package/rate-picker/index.d.ts +5 -15
  247. package/side-menu/index.d.ts +9 -2
  248. package/slider/index.d.ts +2 -2
  249. package/time-duration/index.d.ts +0 -1
  250. package/toast/index.d.ts +24 -18
  251. package/tooltip/index.d.ts +4 -9
  252. package/tree-view/index.d.ts +11 -0
  253. package/tree-view-legacy/index.d.ts +1 -0
  254. package/fesm2022/acorex-components-modal-acorex-components-modal-CXXcFToK.mjs.map +0 -1
  255. package/fesm2022/acorex-components-modal-modal-content.component-B4rhHeEz.mjs.map +0 -1
@@ -4,10 +4,10 @@ import { AXDecoratorGenericComponent } from '@acorex/components/decorators';
4
4
  import { AXLoadingComponent } from '@acorex/components/loading';
5
5
  import { AXProgressBarComponent } from '@acorex/components/progress-bar';
6
6
  import { AXTranslatorPipe } from '@acorex/core/translation';
7
- import { DIALOG_DATA, DialogRef, Dialog } from '@angular/cdk/dialog';
8
7
  import { AsyncPipe } from '@angular/common';
9
8
  import * as i0 from '@angular/core';
10
- import { inject, signal, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule, Injectable } from '@angular/core';
9
+ import { input, signal, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule, inject, ComponentRef, Injectable } from '@angular/core';
10
+ import { AXOverlayService } from '@acorex/cdk/overlay';
11
11
 
12
12
  /**
13
13
  * Represents a loading dialog component with custom styles and encapsulation.
@@ -16,18 +16,30 @@ import { inject, signal, ViewEncapsulation, ChangeDetectionStrategy, Component,
16
16
  class AXLoadingDialogComponent extends MXBaseComponent {
17
17
  constructor() {
18
18
  super(...arguments);
19
- this.data = inject(DIALOG_DATA);
20
- this.dialogRef = inject(DialogRef);
19
+ /** Loading dialog configuration data */
20
+ this.data = input.required(...(ngDevMode ? [{ debugName: "data" }] : []));
21
+ /** @internal Callback function to close the dialog */
22
+ this.onClose = input(...(ngDevMode ? [undefined, { debugName: "onClose" }] : []));
21
23
  /** @ignore */
22
- this.progressText = signal(this.data.text, ...(ngDevMode ? [{ debugName: "progressText" }] : []));
24
+ this.progressText = signal('', ...(ngDevMode ? [{ debugName: "progressText" }] : []));
23
25
  /** @ignore */
24
- this.progressStatus = signal(this.data.status, ...(ngDevMode ? [{ debugName: "progressStatus" }] : []));
26
+ this.progressStatus = signal('', ...(ngDevMode ? [{ debugName: "progressStatus" }] : []));
25
27
  /** @ignore */
26
- this.progressColor = signal(this.data.progressColor, ...(ngDevMode ? [{ debugName: "progressColor" }] : []));
28
+ this.progressColor = signal('primary', ...(ngDevMode ? [{ debugName: "progressColor" }] : []));
27
29
  /** @ignore */
28
- this.dialogTitle = signal(this.data.title, ...(ngDevMode ? [{ debugName: "dialogTitle" }] : []));
30
+ this.dialogTitle = signal('', ...(ngDevMode ? [{ debugName: "dialogTitle" }] : []));
29
31
  /** @ignore */
30
- this.progressValue = signal(this.data.progressValue, ...(ngDevMode ? [{ debugName: "progressValue" }] : []));
32
+ this.progressValue = signal(0, ...(ngDevMode ? [{ debugName: "progressValue" }] : []));
33
+ }
34
+ ngOnInit() {
35
+ super.ngOnInit();
36
+ // Initialize signals from input data
37
+ const config = this.data();
38
+ this.progressText.set(config.text ?? '');
39
+ this.progressStatus.set(config.status ?? '');
40
+ this.progressColor.set(config.progressColor ?? 'primary');
41
+ this.dialogTitle.set(config.title ?? '');
42
+ this.progressValue.set(config.progressValue ?? 0);
31
43
  }
32
44
  /**
33
45
  * Closes the loading dialog.
@@ -35,7 +47,10 @@ class AXLoadingDialogComponent extends MXBaseComponent {
35
47
  * @returns void - No return value. The dialog is closed and control returns to the caller.
36
48
  */
37
49
  close() {
38
- this.dialogRef.close();
50
+ const closeCallback = this.onClose();
51
+ if (closeCallback) {
52
+ closeCallback();
53
+ }
39
54
  }
40
55
  /**
41
56
  * Sets the displayed progress text inside the dialog.
@@ -90,22 +105,25 @@ class AXLoadingDialogComponent extends MXBaseComponent {
90
105
  }
91
106
  /** @ignore */
92
107
  _hasAutoFocus(button) {
93
- const autoFocusItem = this.data.buttons.find((item) => item.autofocus === true);
108
+ const buttons = this.data().buttons;
109
+ if (!buttons || buttons.length === 0)
110
+ return false;
111
+ const autoFocusItem = buttons.find((item) => item.autofocus === true);
94
112
  if (autoFocusItem && autoFocusItem.text === button.text) {
95
113
  return true;
96
114
  }
97
115
  if (!autoFocusItem) {
98
- if (this.data.buttons.length > 0) {
99
- this.data.buttons[0].autofocus = true;
100
- return this.data.buttons[0].text === button.text;
116
+ if (buttons.length > 0) {
117
+ buttons[0].autofocus = true;
118
+ return buttons[0].text === button.text;
101
119
  }
102
120
  }
103
121
  return false;
104
122
  }
105
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDialogComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
106
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: AXLoadingDialogComponent, isStandalone: true, selector: "ax-loading-dialog", providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }], usesInheritance: true, ngImport: i0, template: "<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar [mode]=\"data.mode\" [progress]=\"this.progressValue()\" [color]=\"progressColor()\"></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-comp-loading-dialog-bg-color, var(--ax-sys-color-lightest-surface)));padding:1rem;border-radius:var(--ax-comp-loading-dialog-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", "iconOnly", "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 }); }
123
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDialogComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
124
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: AXLoadingDialogComponent, isStandalone: true, selector: "ax-loading-dialog", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, onClose: { classPropertyName: "onClose", publicName: "onClose", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }], usesInheritance: true, ngImport: i0, template: "<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar [mode]=\"data().mode\" [progress]=\"progressValue()\" [color]=\"progressColor()\"></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: ["@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight:initial}}}@layer components{ax-loading-dialog{gap:calc(var(--spacing,.25rem)*2);border-radius:var(--radius-lg,.5rem);background-color:var(--color-lightest,rgba(var(--ax-sys-color-lightest-surface)));width:93vw;padding:calc(var(--spacing,.25rem)*4);flex-direction:column;display:flex}@media (min-width:40rem){ax-loading-dialog{width:80vw}}@media (min-width:48rem){ax-loading-dialog{width:55vw}}@media (min-width:64rem){ax-loading-dialog{width:30vw}}@media (min-width:80rem){ax-loading-dialog{width:25vw}}ax-loading-dialog ax-title{margin-bottom:calc(var(--spacing,.25rem)*2);font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height, 1.5 ));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}ax-loading-dialog .progress-decorators{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));justify-content:space-between;display:flex}ax-loading-dialog ax-footer{padding-top:calc(var(--spacing,.25rem)*3);justify-content:flex-end}}@property --tw-font-weight{syntax:\"*\";inherits:false}\n/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\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", "iconOnly", "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 }); }
107
125
  }
108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDialogComponent, decorators: [{
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDialogComponent, decorators: [{
109
127
  type: Component,
110
128
  args: [{ selector: 'ax-loading-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
111
129
  AXDecoratorGenericComponent,
@@ -116,15 +134,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
116
134
  AXLoadingComponent,
117
135
  AXTranslatorPipe,
118
136
  AsyncPipe,
119
- ], providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }], template: "<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar [mode]=\"data.mode\" [progress]=\"this.progressValue()\" [color]=\"progressColor()\"></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-comp-loading-dialog-bg-color, var(--ax-sys-color-lightest-surface)));padding:1rem;border-radius:var(--ax-comp-loading-dialog-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"] }]
120
- }] });
137
+ ], providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }], template: "<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar [mode]=\"data().mode\" [progress]=\"progressValue()\" [color]=\"progressColor()\"></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: ["@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight:initial}}}@layer components{ax-loading-dialog{gap:calc(var(--spacing,.25rem)*2);border-radius:var(--radius-lg,.5rem);background-color:var(--color-lightest,rgba(var(--ax-sys-color-lightest-surface)));width:93vw;padding:calc(var(--spacing,.25rem)*4);flex-direction:column;display:flex}@media (min-width:40rem){ax-loading-dialog{width:80vw}}@media (min-width:48rem){ax-loading-dialog{width:55vw}}@media (min-width:64rem){ax-loading-dialog{width:30vw}}@media (min-width:80rem){ax-loading-dialog{width:25vw}}ax-loading-dialog ax-title{margin-bottom:calc(var(--spacing,.25rem)*2);font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height, 1.5 ));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}ax-loading-dialog .progress-decorators{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));justify-content:space-between;display:flex}ax-loading-dialog ax-footer{padding-top:calc(var(--spacing,.25rem)*3);justify-content:flex-end}}@property --tw-font-weight{syntax:\"*\";inherits:false}\n/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n"] }]
138
+ }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], onClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "onClose", required: false }] }] } });
121
139
 
122
140
  class AXLoadingDialogModule {
123
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
124
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDialogModule, imports: [AXLoadingDialogComponent], exports: [AXLoadingDialogComponent] }); }
125
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDialogModule, imports: [AXLoadingDialogComponent] }); }
141
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
142
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDialogModule, imports: [AXLoadingDialogComponent], exports: [AXLoadingDialogComponent] }); }
143
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDialogModule, imports: [AXLoadingDialogComponent] }); }
126
144
  }
127
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDialogModule, decorators: [{
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDialogModule, decorators: [{
128
146
  type: NgModule,
129
147
  args: [{
130
148
  imports: [AXLoadingDialogComponent],
@@ -134,40 +152,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
134
152
 
135
153
  class AXLoadingDialogService {
136
154
  constructor() {
137
- this.dialog = inject(Dialog);
155
+ this.overlayService = inject(AXOverlayService);
138
156
  }
139
- // private data$: BehaviorSubject<AXLoadingDialogConfig> = new BehaviorSubject<AXLoadingDialogConfig>(null);
140
157
  /**
141
158
  * Opens a loading dialog with the specified configuration.
142
159
  *
143
160
  * @param options Configuration for the loading dialog, including title, progress mode, and optional initial values.
144
- * @returns AXDialogRef - A reference with helper methods to control the dialog lifecycle and UI (close, setProgressValue, setProgressText, setDialogTitle, setProgressColor, setProgressStatus).
161
+ * @returns AXLoadingDialogRef - A reference with helper methods to control the dialog lifecycle and UI (close, setProgressValue, setProgressText, setDialogTitle, setProgressColor, setProgressStatus).
145
162
  */
146
163
  show(options) {
147
- const dialogRef = this.dialog.open(AXLoadingDialogComponent, {
148
- hasBackdrop: true,
149
- disableClose: true,
150
- restoreFocus: true,
151
- closeOnDestroy: true,
152
- closeOnNavigation: true,
153
- ariaModal: true,
154
- role: 'alertdialog',
155
- panelClass: ['ax-animate-fadeIn'],
156
- data: options,
164
+ let internalRef;
165
+ let componentInstance = null;
166
+ const closeDialog = () => {
167
+ if (internalRef) {
168
+ internalRef.overlayRef.dispose();
169
+ }
170
+ };
171
+ this.overlayService
172
+ .create(AXLoadingDialogComponent, {
173
+ inputs: {
174
+ data: options,
175
+ onClose: closeDialog,
176
+ },
177
+ backdrop: {
178
+ enabled: true,
179
+ background: true,
180
+ closeOnClick: false, // disableClose: true equivalent
181
+ },
182
+ panelClass: ['ax-loading-dialog-panel', 'ax-animate-fadeIn'],
183
+ })
184
+ .then((overlayRef) => {
185
+ internalRef = {
186
+ overlayRef,
187
+ close: closeDialog,
188
+ };
189
+ // Get the component instance for method calls
190
+ if (overlayRef.instance instanceof ComponentRef) {
191
+ componentInstance = overlayRef.instance.instance;
192
+ }
157
193
  });
194
+ // Return the dialog ref with methods that will work once the component is created
158
195
  return {
159
- close: () => dialogRef.componentInstance?.close(),
160
- setProgressValue: (value) => dialogRef.componentInstance?.setProgressValue(value),
161
- setDialogTitle: (text) => dialogRef.componentInstance?.setDialogTitle(text),
162
- setProgressText: (text) => dialogRef.componentInstance?.setProgressText(text),
163
- setProgressStatus: (status) => dialogRef.componentInstance?.setProgressStatus(status),
164
- setProgressColor: (color) => dialogRef.componentInstance?.setProgressColor(color),
196
+ close: () => closeDialog(),
197
+ setProgressValue: (value) => componentInstance?.setProgressValue(value),
198
+ setDialogTitle: (text) => componentInstance?.setDialogTitle(text),
199
+ setProgressText: (text) => componentInstance?.setProgressText(text),
200
+ setProgressStatus: (status) => componentInstance?.setProgressStatus(status),
201
+ setProgressColor: (color) => componentInstance?.setProgressColor(color),
165
202
  };
166
203
  }
167
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
168
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDialogService, providedIn: 'root' }); }
204
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
205
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDialogService, providedIn: 'root' }); }
169
206
  }
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDialogService, decorators: [{
207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDialogService, decorators: [{
171
208
  type: Injectable,
172
209
  args: [{
173
210
  providedIn: 'root',
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-components-loading-dialog.mjs","sources":["../tmp-esm2022/loading-dialog/lib/loading-dialog.component.js","../tmp-esm2022/loading-dialog/lib/loading-dialog.module.js","../tmp-esm2022/loading-dialog/lib/loading-dialog.service.js","../tmp-esm2022/loading-dialog/acorex-components-loading-dialog.js"],"sourcesContent":["import { AXAutoFocusDirective, AXComponent, AXHotkeyDirective, MXBaseComponent, } from '@acorex/cdk/common';\nimport { AXButtonComponent } from '@acorex/components/button';\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, ViewEncapsulation, inject, signal } from '@angular/core';\nimport * as i0 from \"@angular/core\";\n/**\n * Represents a loading dialog component with custom styles and encapsulation.\n * @category components\n */\nexport class AXLoadingDialogComponent extends MXBaseComponent {\n constructor() {\n super(...arguments);\n this.data = inject(DIALOG_DATA);\n this.dialogRef = inject(DialogRef);\n /** @ignore */\n this.progressText = signal(this.data.text, ...(ngDevMode ? [{ debugName: \"progressText\" }] : []));\n /** @ignore */\n this.progressStatus = signal(this.data.status, ...(ngDevMode ? [{ debugName: \"progressStatus\" }] : []));\n /** @ignore */\n this.progressColor = signal(this.data.progressColor, ...(ngDevMode ? [{ debugName: \"progressColor\" }] : []));\n /** @ignore */\n this.dialogTitle = signal(this.data.title, ...(ngDevMode ? [{ debugName: \"dialogTitle\" }] : []));\n /** @ignore */\n this.progressValue = signal(this.data.progressValue, ...(ngDevMode ? [{ debugName: \"progressValue\" }] : []));\n }\n /**\n * Closes the loading dialog.\n *\n * @returns void - No return value. The dialog is closed and control returns to the caller.\n */\n close() {\n this.dialogRef.close();\n }\n /**\n * Sets the displayed progress text inside the dialog.\n *\n * @param text The text to display under the progress bar.\n * @returns void\n */\n setProgressText(text) {\n this.progressText.set(text);\n }\n /**\n * Sets the status text, typically representing the current step out of total steps (e.g., \"5/10\").\n *\n * @param status The status text to display.\n * @returns void\n */\n setProgressStatus(status) {\n this.progressStatus.set(status);\n }\n /**\n * Sets the color used by the progress indicator.\n *\n * @param color The color token to apply to the progress UI.\n * @returns void\n */\n setProgressColor(color) {\n this.progressColor.set(color);\n }\n /**\n * Sets the dialog title text.\n *\n * @param text The title text to display at the top of the dialog.\n * @returns void\n */\n setDialogTitle(text) {\n this.dialogTitle.set(text);\n }\n /**\n * Sets the numeric progress value.\n *\n * @param value A number in the range 0–100 representing the current progress.\n * @returns void\n */\n setProgressValue(value) {\n this.progressValue.set(value);\n }\n /** @ignore */\n _handleButtonClick(button) {\n if (button.onClick) {\n button.onClick({ source: button });\n }\n }\n /** @ignore */\n _hasAutoFocus(button) {\n const autoFocusItem = this.data.buttons.find((item) => item.autofocus === true);\n if (autoFocusItem && autoFocusItem.text === button.text) {\n return true;\n }\n if (!autoFocusItem) {\n if (this.data.buttons.length > 0) {\n this.data.buttons[0].autofocus = true;\n return this.data.buttons[0].text === button.text;\n }\n }\n return false;\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.15\", ngImport: i0, type: AXLoadingDialogComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }\n static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: \"17.0.0\", version: \"20.3.15\", type: AXLoadingDialogComponent, isStandalone: true, selector: \"ax-loading-dialog\", providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }], usesInheritance: true, ngImport: i0, template: \"<ax-title>{{ dialogTitle() }}</ax-title>\\n\\n<ax-progress-bar [mode]=\\\"data.mode\\\" [progress]=\\\"this.progressValue()\\\" [color]=\\\"progressColor()\\\"></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-comp-loading-dialog-bg-color, var(--ax-sys-color-lightest-surface)));padding:1rem;border-radius:var(--ax-comp-loading-dialog-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\", \"iconOnly\", \"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 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.15\", ngImport: i0, type: AXLoadingDialogComponent, decorators: [{\n type: Component,\n args: [{ selector: 'ax-loading-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [\n AXDecoratorGenericComponent,\n AXProgressBarComponent,\n AXButtonComponent,\n AXHotkeyDirective,\n AXAutoFocusDirective,\n AXLoadingComponent,\n AXTranslatorPipe,\n AsyncPipe,\n ], providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }], template: \"<ax-title>{{ dialogTitle() }}</ax-title>\\n\\n<ax-progress-bar [mode]=\\\"data.mode\\\" [progress]=\\\"this.progressValue()\\\" [color]=\\\"progressColor()\\\"></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-comp-loading-dialog-bg-color, var(--ax-sys-color-lightest-surface)));padding:1rem;border-radius:var(--ax-comp-loading-dialog-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\"] }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YmxlZF09XCJidXR0b24uZGlzYWJsZWRcIlxuICAgICAgW2NvbG9yXT1cImJ1dHRvbi5jb2xvclwiXG4gICAgPlxuICAgICAgQGlmIChidXR0b24ubG9hZGluZykge1xuICAgICAgICA8YXgtbG9hZGluZz48L2F4LWxvYWRpbmc+XG4gICAgICB9XG4gICAgPC9heC1idXR0b24+XG4gIH1cbjwvYXgtZm9vdGVyPlxuIl19","import { NgModule } from '@angular/core';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\nimport * as i0 from \"@angular/core\";\nexport class AXLoadingDialogModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.15\", ngImport: i0, type: AXLoadingDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.3.15\", ngImport: i0, type: AXLoadingDialogModule, imports: [AXLoadingDialogComponent], exports: [AXLoadingDialogComponent] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.3.15\", ngImport: i0, type: AXLoadingDialogModule, imports: [AXLoadingDialogComponent] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.15\", ngImport: i0, type: AXLoadingDialogModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [AXLoadingDialogComponent],\n exports: [AXLoadingDialogComponent],\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1kaWFsb2cubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcG9uZW50cy9sb2FkaW5nLWRpYWxvZy9zcmMvbGliL2xvYWRpbmctZGlhbG9nLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLDRCQUE0QixDQUFDOztBQU10RSxNQUFNLE9BQU8scUJBQXFCOytHQUFyQixxQkFBcUI7Z0hBQXJCLHFCQUFxQixZQUh0Qix3QkFBd0IsYUFDeEIsd0JBQXdCO2dIQUV2QixxQkFBcUIsWUFIdEIsd0JBQXdCOzs0RkFHdkIscUJBQXFCO2tCQUpqQyxRQUFRO21CQUFDO29CQUNSLE9BQU8sRUFBRSxDQUFDLHdCQUF3QixDQUFDO29CQUNuQyxPQUFPLEVBQUUsQ0FBQyx3QkFBd0IsQ0FBQztpQkFDcEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQVhMb2FkaW5nRGlhbG9nQ29tcG9uZW50IH0gZnJvbSAnLi9sb2FkaW5nLWRpYWxvZy5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbQVhMb2FkaW5nRGlhbG9nQ29tcG9uZW50XSxcbiAgZXhwb3J0czogW0FYTG9hZGluZ0RpYWxvZ0NvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIEFYTG9hZGluZ0RpYWxvZ01vZHVsZSB7fVxuIl19","import { Dialog } from '@angular/cdk/dialog';\nimport { Injectable, inject } from '@angular/core';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\nimport * as i0 from \"@angular/core\";\nexport class AXLoadingDialogService {\n constructor() {\n this.dialog = inject(Dialog);\n }\n // private data$: BehaviorSubject<AXLoadingDialogConfig> = new BehaviorSubject<AXLoadingDialogConfig>(null);\n /**\n * Opens a loading dialog with the specified configuration.\n *\n * @param options Configuration for the loading dialog, including title, progress mode, and optional initial values.\n * @returns AXDialogRef - A reference with helper methods to control the dialog lifecycle and UI (close, setProgressValue, setProgressText, setDialogTitle, setProgressColor, setProgressStatus).\n */\n show(options) {\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) => dialogRef.componentInstance?.setProgressValue(value),\n setDialogTitle: (text) => dialogRef.componentInstance?.setDialogTitle(text),\n setProgressText: (text) => dialogRef.componentInstance?.setProgressText(text),\n setProgressStatus: (status) => dialogRef.componentInstance?.setProgressStatus(status),\n setProgressColor: (color) => dialogRef.componentInstance?.setProgressColor(color),\n };\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.3.15\", ngImport: i0, type: AXLoadingDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }\n static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: \"12.0.0\", version: \"20.3.15\", ngImport: i0, type: AXLoadingDialogService, providedIn: 'root' }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.3.15\", ngImport: i0, type: AXLoadingDialogService, decorators: [{\n type: Injectable,\n args: [{\n providedIn: 'root',\n }]\n }] });\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1kaWFsb2cuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBvbmVudHMvbG9hZGluZy1kaWFsb2cvc3JjL2xpYi9sb2FkaW5nLWRpYWxvZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztB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ZGlhbG9nJyxcbiAgICAgIHBhbmVsQ2xhc3M6IFsnYXgtYW5pbWF0ZS1mYWRlSW4nXSxcbiAgICAgIGRhdGE6IG9wdGlvbnMsXG4gICAgfSk7XG4gICAgcmV0dXJuIHtcbiAgICAgIGNsb3NlOiAoKSA9PiBkaWFsb2dSZWYuY29tcG9uZW50SW5zdGFuY2U/LmNsb3NlKCksXG4gICAgICBzZXRQcm9ncmVzc1ZhbHVlOiAodmFsdWU6IG51bWJlcikgPT4gZGlhbG9nUmVmLmNvbXBvbmVudEluc3RhbmNlPy5zZXRQcm9ncmVzc1ZhbHVlKHZhbHVlKSxcbiAgICAgIHNldERpYWxvZ1RpdGxlOiAodGV4dDogc3RyaW5nKSA9PiBkaWFsb2dSZWYuY29tcG9uZW50SW5zdGFuY2U/LnNldERpYWxvZ1RpdGxlKHRleHQpLFxuICAgICAgc2V0UHJvZ3Jlc3NUZXh0OiAodGV4dDogc3RyaW5nKSA9PiBkaWFsb2dSZWYuY29tcG9uZW50SW5zdGFuY2U/LnNldFByb2dyZXNzVGV4dCh0ZXh0KSxcbiAgICAgIHNldFByb2dyZXNzU3RhdHVzOiAoc3RhdHVzOiBzdHJpbmcpID0+IGRpYWxvZ1JlZi5jb21wb25lbnRJbnN0YW5jZT8uc2V0UHJvZ3Jlc3NTdGF0dXMoc3RhdHVzKSxcbiAgICAgIHNldFByb2dyZXNzQ29sb3I6IChjb2xvcjogQVhTdHlsZUNvbG9yVHlwZSkgPT4gZGlhbG9nUmVmLmNvbXBvbmVudEluc3RhbmNlPy5zZXRQcm9ncmVzc0NvbG9yKGNvbG9yKSxcbiAgICB9O1xuICB9XG59XG4iXX0=","/**\n * Generated bundle index. Do not edit.\n */\nexport * from './index';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNvcmV4LWNvbXBvbmVudHMtbG9hZGluZy1kaWFsb2cuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uL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,CAAC,CAAC;AAC1L,IAAI,SAAS,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,qBAAqB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;AACjK;AACA,EAAE,CAAC,wBAAwB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE,UAAU,EAAE,CAAC;AACjI,YAAY,IAAI,EAAE,UAAU;AAC5B,YAAY,IAAI,EAAE,CAAC;AACnB,oBAAoB,UAAU,EAAE,MAAM;AACtC,iBAAiB;AACjB,SAAS,CAAC,EAAE,CAAC;;AC5Cb;AACA;AACA;;;;"}
1
+ {"version":3,"file":"acorex-components-loading-dialog.mjs","sources":["../../../../packages/components/loading-dialog/src/lib/loading-dialog.component.ts","../../../../packages/components/loading-dialog/src/lib/loading-dialog.component.html","../../../../packages/components/loading-dialog/src/lib/loading-dialog.module.ts","../../../../packages/components/loading-dialog/src/lib/loading-dialog.service.ts","../../../../packages/components/loading-dialog/src/acorex-components-loading-dialog.ts"],"sourcesContent":["import {\n AXAutoFocusDirective,\n AXComponent,\n AXHotkeyDirective,\n AXStyleColorType,\n MXBaseComponent,\n} from '@acorex/cdk/common';\nimport { AXButtonComponent } from '@acorex/components/button';\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 { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation, WritableSignal, input, 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.compiled.css'],\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 providers: [{ provide: AXComponent, useExisting: AXLoadingDialogComponent }],\n})\nexport class AXLoadingDialogComponent extends MXBaseComponent implements OnInit {\n /** Loading dialog configuration data */\n data = input.required<AXLoadingDialogConfig>();\n\n /** @internal Callback function to close the dialog */\n onClose = input<() => void>();\n\n /** @ignore */\n protected progressText: WritableSignal<string> = signal('');\n\n /** @ignore */\n protected progressStatus: WritableSignal<string> = signal('');\n\n /** @ignore */\n protected progressColor: WritableSignal<AXStyleColorType> = signal('primary');\n\n /** @ignore */\n protected dialogTitle: WritableSignal<string> = signal('');\n\n /** @ignore */\n protected progressValue: WritableSignal<number> = signal(0);\n\n override ngOnInit(): void {\n super.ngOnInit();\n // Initialize signals from input data\n const config = this.data();\n this.progressText.set(config.text ?? '');\n this.progressStatus.set(config.status ?? '');\n this.progressColor.set(config.progressColor ?? 'primary');\n this.dialogTitle.set(config.title ?? '');\n this.progressValue.set(config.progressValue ?? 0);\n }\n\n /**\n * Closes the loading dialog.\n *\n * @returns void - No return value. The dialog is closed and control returns to the caller.\n */\n close() {\n const closeCallback = this.onClose();\n if (closeCallback) {\n closeCallback();\n }\n }\n\n /**\n * Sets the displayed progress text inside the dialog.\n *\n * @param text The text to display under the progress bar.\n * @returns void\n */\n setProgressText(text: string) {\n this.progressText.set(text);\n }\n\n /**\n * Sets the status text, typically representing the current step out of total steps (e.g., \"5/10\").\n *\n * @param status The status text to display.\n * @returns void\n */\n setProgressStatus(status: string) {\n this.progressStatus.set(status);\n }\n\n /**\n * Sets the color used by the progress indicator.\n *\n * @param color The color token to apply to the progress UI.\n * @returns void\n */\n setProgressColor(color: AXStyleColorType) {\n this.progressColor.set(color);\n }\n\n /**\n * Sets the dialog title text.\n *\n * @param text The title text to display at the top of the dialog.\n * @returns void\n */\n setDialogTitle(text: string) {\n this.dialogTitle.set(text);\n }\n\n /**\n * Sets the numeric progress value.\n *\n * @param value A number in the range 0–100 representing the current progress.\n * @returns void\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 buttons = this.data().buttons;\n if (!buttons || buttons.length === 0) return false;\n\n const autoFocusItem = buttons.find((item) => item.autofocus === true);\n if (autoFocusItem && autoFocusItem.text === button.text) {\n return true;\n }\n if (!autoFocusItem) {\n if (buttons.length > 0) {\n buttons[0].autofocus = true;\n return buttons[0].text === button.text;\n }\n }\n return false;\n }\n}\n","<ax-title>{{ dialogTitle() }}</ax-title>\n\n<ax-progress-bar [mode]=\"data().mode\" [progress]=\"progressValue()\" [color]=\"progressColor()\"></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 { NgModule } from '@angular/core';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\n\n@NgModule({\n imports: [AXLoadingDialogComponent],\n exports: [AXLoadingDialogComponent],\n})\nexport class AXLoadingDialogModule {}\n","import { AXStyleColorType } from '@acorex/cdk/common';\nimport { AXOverlayService } from '@acorex/cdk/overlay';\nimport { ComponentRef, Injectable, inject } from '@angular/core';\nimport { AXLoadingDialogConfig, AXLoadingDialogInternalRef, AXLoadingDialogRef } from './loading-dialog.class';\nimport { AXLoadingDialogComponent } from './loading-dialog.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AXLoadingDialogService {\n private overlayService = inject(AXOverlayService);\n\n /**\n * Opens a loading dialog with the specified configuration.\n *\n * @param options Configuration for the loading dialog, including title, progress mode, and optional initial values.\n * @returns AXLoadingDialogRef - A reference with helper methods to control the dialog lifecycle and UI (close, setProgressValue, setProgressText, setDialogTitle, setProgressColor, setProgressStatus).\n */\n show(options: AXLoadingDialogConfig): AXLoadingDialogRef {\n let internalRef: AXLoadingDialogInternalRef;\n let componentInstance: AXLoadingDialogComponent | null = null;\n\n const closeDialog = () => {\n if (internalRef) {\n internalRef.overlayRef.dispose();\n }\n };\n\n this.overlayService\n .create<AXLoadingDialogComponent>(AXLoadingDialogComponent, {\n inputs: {\n data: options,\n onClose: closeDialog,\n },\n backdrop: {\n enabled: true,\n background: true,\n closeOnClick: false, // disableClose: true equivalent\n },\n panelClass: ['ax-loading-dialog-panel', 'ax-animate-fadeIn'],\n })\n .then((overlayRef) => {\n internalRef = {\n overlayRef,\n close: closeDialog,\n };\n\n // Get the component instance for method calls\n if (overlayRef.instance instanceof ComponentRef) {\n componentInstance = overlayRef.instance.instance as AXLoadingDialogComponent;\n }\n });\n\n // Return the dialog ref with methods that will work once the component is created\n return {\n close: () => closeDialog(),\n setProgressValue: (value: number) => componentInstance?.setProgressValue(value),\n setDialogTitle: (text: string) => componentInstance?.setDialogTitle(text),\n setProgressText: (text: string) => componentInstance?.setProgressText(text),\n setProgressStatus: (status: string) => componentInstance?.setProgressStatus(status),\n setProgressColor: (color: AXStyleColorType) => componentInstance?.setProgressColor(color),\n };\n }\n}\n","/**\n * Generated bundle index.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,EAAE,gBAAgB,CAAC,KAAK,CAAC;SAC1F;IACH;+GArDW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,cAFrB,MAAM,EAAA,CAAA,CAAA;;4FAEP,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAHlC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -34,8 +34,8 @@ class AXLoadingSpinnerComponent {
34
34
  get __hostClass() {
35
35
  return `ax-${this.color}`;
36
36
  }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
38
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: AXLoadingSpinnerComponent, isStandalone: true, selector: "ax-loading-spinner", inputs: { text: "text", color: "color", size: "size", stroke: "stroke" }, host: { properties: { "class": "this.__hostClass" } }, providers: [{ provide: AXComponent, useExisting: AXLoadingSpinnerComponent }], ngImport: i0, template: `
37
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
38
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: AXLoadingSpinnerComponent, isStandalone: true, selector: "ax-loading-spinner", inputs: { text: "text", color: "color", size: "size", stroke: "stroke" }, host: { properties: { "class": "this.__hostClass" } }, providers: [{ provide: AXComponent, useExisting: AXLoadingSpinnerComponent }], ngImport: i0, template: `
39
39
  <span
40
40
  class="ax-loader"
41
41
  [style.width.px]="size"
@@ -46,9 +46,9 @@ class AXLoadingSpinnerComponent {
46
46
  @if (text) {
47
47
  <span> {{ text }} </span>
48
48
  }
49
- `, 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-accent1{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent1-surface)}ax-loading-spinner.ax-accent2{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent2-surface)}ax-loading-spinner.ax-accent3{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent3-surface)}ax-loading-spinner.ax-accent4{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent4-surface)}ax-loading-spinner.ax-accent5{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent5-surface)}ax-loading-spinner.ax-accent6{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent6-surface)}ax-loading-spinner.ax-accent7{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent7-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 }); }
49
+ `, isInline: true, styles: ["@layer components{ax-loading-spinner .ax-loader{box-sizing:border-box;animation:var(--animate-spin,spin 1s linear infinite);border-color:var(--ax-comp-bg);border-radius:3.40282e38px;margin:auto;display:inline-block;border-bottom-color:#0000!important}ax-loading-spinner.ax-white .ax-loader{border-color:var(--color-white,#fff)}ax-loading-spinner.ax-default .ax-loader{border-color:var(--color-black,#000)}ax-loading-spinner.ax-default .ax-loader:where(.dark,.dark *){border-color:var(--color-white,#fff)}ax-loading-spinner.ax-black .ax-loader{border-color:var(--color-black,#000)}}@keyframes spin{to{transform:rotate(360deg)}}\n/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n"], encapsulation: i0.ViewEncapsulation.None }); }
50
50
  }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingSpinnerComponent, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingSpinnerComponent, decorators: [{
52
52
  type: Component,
53
53
  args: [{ selector: 'ax-loading-spinner', template: `
54
54
  <span
@@ -61,7 +61,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
61
61
  @if (text) {
62
62
  <span> {{ text }} </span>
63
63
  }
64
- `, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXComponent, useExisting: AXLoadingSpinnerComponent }], 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-accent1{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent1-surface)}ax-loading-spinner.ax-accent2{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent2-surface)}ax-loading-spinner.ax-accent3{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent3-surface)}ax-loading-spinner.ax-accent4{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent4-surface)}ax-loading-spinner.ax-accent5{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent5-surface)}ax-loading-spinner.ax-accent6{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent6-surface)}ax-loading-spinner.ax-accent7{--ax-comp-loading-spinner-loader-border-color: var(--ax-sys-color-accent7-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"] }]
64
+ `, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXComponent, useExisting: AXLoadingSpinnerComponent }], styles: ["@layer components{ax-loading-spinner .ax-loader{box-sizing:border-box;animation:var(--animate-spin,spin 1s linear infinite);border-color:var(--ax-comp-bg);border-radius:3.40282e38px;margin:auto;display:inline-block;border-bottom-color:#0000!important}ax-loading-spinner.ax-white .ax-loader{border-color:var(--color-white,#fff)}ax-loading-spinner.ax-default .ax-loader{border-color:var(--color-black,#000)}ax-loading-spinner.ax-default .ax-loader:where(.dark,.dark *){border-color:var(--color-white,#fff)}ax-loading-spinner.ax-black .ax-loader{border-color:var(--color-black,#000)}}@keyframes spin{to{transform:rotate(360deg)}}\n/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n"] }]
65
65
  }], propDecorators: { text: [{
66
66
  type: Input
67
67
  }], color: [{
@@ -123,7 +123,7 @@ class AXLoadingComponent extends MXBaseComponent {
123
123
  set visible(v) {
124
124
  if (v != this._visible) {
125
125
  this._visible = v;
126
- v ? this.getHostElement().classList.remove('ax-hide') : this.getHostElement().classList.add('ax-hide');
126
+ v ? this.getHostElement().classList.remove('hidden') : this.getHostElement().classList.add('hidden');
127
127
  this.visibleChange.emit(v);
128
128
  }
129
129
  }
@@ -138,18 +138,18 @@ class AXLoadingComponent extends MXBaseComponent {
138
138
  /**
139
139
  * @ignore
140
140
  */
141
- _handleAttched(ref) {
141
+ _handleAttached(ref) {
142
142
  ref = ref;
143
143
  if (ref.instance && this.context) {
144
144
  Object.assign(ref.instance, this.context);
145
145
  }
146
146
  }
147
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
148
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AXLoadingComponent, isStandalone: true, selector: "ax-loading", inputs: { visible: "visible", type: "type", context: "context" }, outputs: { visibleChange: "visibleChange" }, providers: [{ provide: AXComponent, useExisting: AXLoadingComponent }], 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 }); }
147
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
148
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AXLoadingComponent, isStandalone: true, selector: "ax-loading", inputs: { visible: "visible", type: "type", context: "context" }, outputs: { visibleChange: "visibleChange" }, providers: [{ provide: AXComponent, useExisting: AXLoadingComponent }], usesInheritance: true, ngImport: i0, template: ` <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttached($event)"></ng-template> `, isInline: true, styles: ["@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-content:\"\";--tw-outline-style:solid}}}@layer components{ax-loading{padding-inline:calc(var(--spacing,.25rem)*2);position:relative}ax-loading:before,ax-loading:after{--tw-translate-x:-50%;--tw-translate-y:-50%;width:100%;height:100%;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);animation:var(--animate-pulse,1s ease-in-out both pulse);--tw-content:\"\";content:var(--tw-content);inset-inline-start:50%;background-color:#0000;border-radius:3.40282e38px;animation-iteration-count:infinite;position:absolute;top:50%}ax-loading ax-loading-spinner{gap:calc(var(--spacing,.25rem)*3);display:flex}.ax-loading-overlay-backdrop{background-color:var(--color-surface,rgba(var(--ax-sys-color-surface)));opacity:.6!important}.ax-loading-pane{inset-inline-start:calc(var(--spacing,.25rem)*0);inset-inline-end:calc(var(--spacing,.25rem)*0);top:calc(var(--spacing,.25rem)*0);bottom:calc(var(--spacing,.25rem)*0);width:100%!important;height:100%!important}.ax-loading-pane .cdk-dialog-container{justify-content:center;align-items:center;display:flex!important}.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:var(--tw-outline-style);outline-offset:2px;--tw-outline-style:solid;outline:2px solid #0000}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-content{syntax:\"*\";inherits:false;initial-value:\"\"}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}\n/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
149
149
  }
150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingComponent, decorators: [{
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingComponent, decorators: [{
151
151
  type: Component,
152
- args: [{ selector: 'ax-loading', template: ` <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template> `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CdkPortalOutlet], providers: [{ provide: AXComponent, useExisting: AXLoadingComponent }], 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"] }]
152
+ args: [{ selector: 'ax-loading', template: ` <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttached($event)"></ng-template> `, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CdkPortalOutlet], providers: [{ provide: AXComponent, useExisting: AXLoadingComponent }], styles: ["@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-content:\"\";--tw-outline-style:solid}}}@layer components{ax-loading{padding-inline:calc(var(--spacing,.25rem)*2);position:relative}ax-loading:before,ax-loading:after{--tw-translate-x:-50%;--tw-translate-y:-50%;width:100%;height:100%;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);animation:var(--animate-pulse,1s ease-in-out both pulse);--tw-content:\"\";content:var(--tw-content);inset-inline-start:50%;background-color:#0000;border-radius:3.40282e38px;animation-iteration-count:infinite;position:absolute;top:50%}ax-loading ax-loading-spinner{gap:calc(var(--spacing,.25rem)*3);display:flex}.ax-loading-overlay-backdrop{background-color:var(--color-surface,rgba(var(--ax-sys-color-surface)));opacity:.6!important}.ax-loading-pane{inset-inline-start:calc(var(--spacing,.25rem)*0);inset-inline-end:calc(var(--spacing,.25rem)*0);top:calc(var(--spacing,.25rem)*0);bottom:calc(var(--spacing,.25rem)*0);width:100%!important;height:100%!important}.ax-loading-pane .cdk-dialog-container{justify-content:center;align-items:center;display:flex!important}.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:var(--tw-outline-style);outline-offset:2px;--tw-outline-style:solid;outline:2px solid #0000}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-content{syntax:\"*\";inherits:false;initial-value:\"\"}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}\n/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */\n"] }]
153
153
  }], propDecorators: { visibleChange: [{
154
154
  type: Output
155
155
  }], visible: [{
@@ -190,8 +190,8 @@ class AXLoadingService {
190
190
  closeOnNavigation: true,
191
191
  ariaModal: true,
192
192
  role: 'alertdialog',
193
- panelClass: ['ax-loading-pane', 'ax-animate-fadeIn'],
194
- backdropClass: ['ax-loading-overlay-backdrop', 'ax-animate-fadeIn'],
193
+ panelClass: ['ax-loading-pane', 'animate-fadeIn'],
194
+ backdropClass: ['ax-loading-overlay-backdrop', 'animate-fadeIn'],
195
195
  });
196
196
  const id = new Date().getTime();
197
197
  dialogRef.componentInstance.visible = true;
@@ -328,10 +328,10 @@ class AXLoadingService {
328
328
  getLoaderId(loaderId) {
329
329
  return loaderId ?? DEFAULT_LOADER_ID;
330
330
  }
331
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
332
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingService, providedIn: 'root' }); }
331
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
332
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingService, providedIn: 'root' }); }
333
333
  }
334
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingService, decorators: [{
334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingService, decorators: [{
335
335
  type: Injectable,
336
336
  args: [{
337
337
  providedIn: 'root',
@@ -360,10 +360,10 @@ class AXLoadingDirective {
360
360
  this.loadingService = inject(AXLoadingService);
361
361
  this._hostElement = this.elementRef.nativeElement;
362
362
  }
363
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
364
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.15", type: AXLoadingDirective, isStandalone: true, selector: "[axIsLoading]", inputs: { isLoading: ["axIsLoading", "isLoading"] }, ngImport: i0 }); }
363
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
364
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: AXLoadingDirective, isStandalone: true, selector: "[axIsLoading]", inputs: { isLoading: ["axIsLoading", "isLoading"] }, ngImport: i0 }); }
365
365
  }
366
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingDirective, decorators: [{
366
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingDirective, decorators: [{
367
367
  type: Directive,
368
368
  args: [{ selector: '[axIsLoading]' }]
369
369
  }], ctorParameters: () => [], propDecorators: { isLoading: [{
@@ -372,11 +372,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
372
372
  }] } });
373
373
 
374
374
  class AXLoadingModule {
375
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
376
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingModule, imports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] }); }
377
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingModule }); }
375
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
376
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingModule, imports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] }); }
377
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingModule }); }
378
378
  }
379
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXLoadingModule, decorators: [{
379
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AXLoadingModule, decorators: [{
380
380
  type: NgModule,
381
381
  args: [{
382
382
  imports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent],