@acorex/components 21.0.1-next.0 → 21.0.1-next.2

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 (230) hide show
  1. package/accordion/index.d.ts +1 -0
  2. package/action-sheet/index.d.ts +41 -19
  3. package/button-group/index.d.ts +4 -6
  4. package/chips/index.d.ts +8 -3
  5. package/collapse/index.d.ts +6 -4
  6. package/data-table/index.d.ts +253 -4
  7. package/dialog/index.d.ts +19 -15
  8. package/dropdown/index.d.ts +3 -4
  9. package/fesm2022/acorex-components-accordion.mjs +13 -8
  10. package/fesm2022/acorex-components-accordion.mjs.map +1 -1
  11. package/fesm2022/acorex-components-action-sheet.mjs +141 -93
  12. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  13. package/fesm2022/acorex-components-alert.mjs +6 -6
  14. package/fesm2022/acorex-components-alert.mjs.map +1 -1
  15. package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
  16. package/fesm2022/acorex-components-audio-wave.mjs +4 -5
  17. package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
  18. package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
  19. package/fesm2022/acorex-components-avatar.mjs +3 -3
  20. package/fesm2022/acorex-components-avatar.mjs.map +1 -1
  21. package/fesm2022/acorex-components-badge.mjs +3 -3
  22. package/fesm2022/acorex-components-badge.mjs.map +1 -1
  23. package/fesm2022/acorex-components-bottom-navigation.mjs +2 -2
  24. package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
  25. package/fesm2022/acorex-components-breadcrumbs.mjs +2 -2
  26. package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
  27. package/fesm2022/acorex-components-button-group.mjs +11 -15
  28. package/fesm2022/acorex-components-button-group.mjs.map +1 -1
  29. package/fesm2022/acorex-components-button.mjs +5 -5
  30. package/fesm2022/acorex-components-button.mjs.map +1 -1
  31. package/fesm2022/acorex-components-calendar.mjs +4 -4
  32. package/fesm2022/acorex-components-calendar.mjs.map +1 -1
  33. package/fesm2022/acorex-components-check-box.mjs +3 -3
  34. package/fesm2022/acorex-components-check-box.mjs.map +1 -1
  35. package/fesm2022/acorex-components-chips.mjs +8 -6
  36. package/fesm2022/acorex-components-chips.mjs.map +1 -1
  37. package/fesm2022/acorex-components-circular-progress.mjs +4 -6
  38. package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
  39. package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
  40. package/fesm2022/acorex-components-collapse.mjs +10 -13
  41. package/fesm2022/acorex-components-collapse.mjs.map +1 -1
  42. package/fesm2022/acorex-components-color-box.mjs +2 -2
  43. package/fesm2022/acorex-components-color-box.mjs.map +1 -1
  44. package/fesm2022/acorex-components-color-palette.mjs +2 -2
  45. package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
  46. package/fesm2022/acorex-components-command.mjs +2 -2
  47. package/fesm2022/acorex-components-command.mjs.map +1 -1
  48. package/fesm2022/acorex-components-comment.mjs +8 -8
  49. package/fesm2022/acorex-components-comment.mjs.map +1 -1
  50. package/fesm2022/acorex-components-conversation.mjs +2 -2
  51. package/fesm2022/acorex-components-conversation.mjs.map +1 -1
  52. package/fesm2022/acorex-components-conversation2.mjs +2 -2
  53. package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
  54. package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
  55. package/fesm2022/acorex-components-data-list.mjs.map +1 -1
  56. package/fesm2022/acorex-components-data-pager.mjs +2 -2
  57. package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
  58. package/fesm2022/acorex-components-data-table.mjs +452 -16
  59. package/fesm2022/acorex-components-data-table.mjs.map +1 -1
  60. package/fesm2022/acorex-components-datetime-box.mjs +2 -2
  61. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  62. package/fesm2022/acorex-components-datetime-input.mjs +2 -2
  63. package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
  64. package/fesm2022/acorex-components-datetime-picker.mjs +8 -2
  65. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  66. package/fesm2022/acorex-components-decorators.mjs +13 -20
  67. package/fesm2022/acorex-components-decorators.mjs.map +1 -1
  68. package/fesm2022/acorex-components-dialog.mjs +67 -47
  69. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  70. package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -1
  71. package/fesm2022/acorex-components-drawer.mjs +7 -6
  72. package/fesm2022/acorex-components-drawer.mjs.map +1 -1
  73. package/fesm2022/acorex-components-dropdown-button.mjs +2 -2
  74. package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
  75. package/fesm2022/acorex-components-dropdown.mjs +3 -9
  76. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  77. package/fesm2022/acorex-components-editor.mjs +4 -4
  78. package/fesm2022/acorex-components-editor.mjs.map +1 -1
  79. package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
  80. package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
  81. package/fesm2022/acorex-components-form.mjs +9 -17
  82. package/fesm2022/acorex-components-form.mjs.map +1 -1
  83. package/fesm2022/acorex-components-grid-layout-builder.mjs +5 -4
  84. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  85. package/fesm2022/acorex-components-image-editor.mjs +18 -18
  86. package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
  87. package/fesm2022/acorex-components-image.mjs +2 -2
  88. package/fesm2022/acorex-components-image.mjs.map +1 -1
  89. package/fesm2022/acorex-components-json-viewer.mjs +2 -2
  90. package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
  91. package/fesm2022/acorex-components-kanban.mjs +4 -6
  92. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  93. package/fesm2022/acorex-components-kbd.mjs +7 -25
  94. package/fesm2022/acorex-components-kbd.mjs.map +1 -1
  95. package/fesm2022/acorex-components-label.mjs +2 -2
  96. package/fesm2022/acorex-components-label.mjs.map +1 -1
  97. package/fesm2022/acorex-components-list.mjs +2 -2
  98. package/fesm2022/acorex-components-list.mjs.map +1 -1
  99. package/fesm2022/acorex-components-loading-dialog.mjs +73 -36
  100. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  101. package/fesm2022/acorex-components-loading.mjs +8 -8
  102. package/fesm2022/acorex-components-loading.mjs.map +1 -1
  103. package/fesm2022/acorex-components-map.mjs +2 -2
  104. package/fesm2022/acorex-components-map.mjs.map +1 -1
  105. package/fesm2022/acorex-components-media-viewer.mjs +10 -10
  106. package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
  107. package/fesm2022/acorex-components-menu.mjs +27 -6
  108. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  109. package/fesm2022/{acorex-components-modal-acorex-components-modal-BnUdtPke.mjs → acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs} +29 -5
  110. package/fesm2022/acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs.map +1 -0
  111. package/fesm2022/{acorex-components-modal-modal-content.component-Cgq-wx_m.mjs → acorex-components-modal-modal-content.component-CSJU1vRi.mjs} +5 -7
  112. package/fesm2022/acorex-components-modal-modal-content.component-CSJU1vRi.mjs.map +1 -0
  113. package/fesm2022/acorex-components-modal.mjs +1 -1
  114. package/fesm2022/acorex-components-navbar.mjs +3 -3
  115. package/fesm2022/acorex-components-navbar.mjs.map +1 -1
  116. package/fesm2022/acorex-components-notification.mjs +374 -246
  117. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  118. package/fesm2022/acorex-components-number-box-legacy.mjs +2 -2
  119. package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -1
  120. package/fesm2022/acorex-components-number-box.mjs +6 -7
  121. package/fesm2022/acorex-components-number-box.mjs.map +1 -1
  122. package/fesm2022/acorex-components-otp.mjs +2 -2
  123. package/fesm2022/acorex-components-otp.mjs.map +1 -1
  124. package/fesm2022/acorex-components-page.mjs.map +1 -1
  125. package/fesm2022/acorex-components-paint.mjs +19 -14
  126. package/fesm2022/acorex-components-paint.mjs.map +1 -1
  127. package/fesm2022/acorex-components-password-box.mjs +4 -4
  128. package/fesm2022/acorex-components-password-box.mjs.map +1 -1
  129. package/fesm2022/acorex-components-pdf-reader.mjs +2 -2
  130. package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
  131. package/fesm2022/acorex-components-phone-box.mjs +2 -2
  132. package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
  133. package/fesm2022/acorex-components-picker.mjs +6 -6
  134. package/fesm2022/acorex-components-picker.mjs.map +1 -1
  135. package/fesm2022/acorex-components-popover.mjs +136 -175
  136. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  137. package/fesm2022/acorex-components-popup.mjs +308 -105
  138. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  139. package/fesm2022/acorex-components-progress-bar.mjs +3 -5
  140. package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
  141. package/fesm2022/acorex-components-qrcode.mjs +2 -2
  142. package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
  143. package/fesm2022/acorex-components-query-builder.mjs +2 -2
  144. package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
  145. package/fesm2022/acorex-components-radio.mjs +2 -2
  146. package/fesm2022/acorex-components-radio.mjs.map +1 -1
  147. package/fesm2022/acorex-components-rail-navigation.mjs +25 -27
  148. package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
  149. package/fesm2022/acorex-components-range-slider.mjs +3 -3
  150. package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
  151. package/fesm2022/acorex-components-rate-picker.mjs +29 -14
  152. package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
  153. package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
  154. package/fesm2022/acorex-components-result.mjs +2 -2
  155. package/fesm2022/acorex-components-result.mjs.map +1 -1
  156. package/fesm2022/acorex-components-routing-progress.mjs +2 -2
  157. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  158. package/fesm2022/acorex-components-rrule.mjs.map +1 -1
  159. package/fesm2022/acorex-components-scheduler-picker.mjs +2 -2
  160. package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
  161. package/fesm2022/acorex-components-scheduler.mjs +18 -18
  162. package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
  163. package/fesm2022/acorex-components-scss.mjs.map +1 -1
  164. package/fesm2022/acorex-components-search-box.mjs +3 -9
  165. package/fesm2022/acorex-components-search-box.mjs.map +1 -1
  166. package/fesm2022/acorex-components-select-box.mjs +2 -4
  167. package/fesm2022/acorex-components-select-box.mjs.map +1 -1
  168. package/fesm2022/acorex-components-selection-list-2.mjs +4 -4
  169. package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
  170. package/fesm2022/acorex-components-selection-list.mjs +2 -2
  171. package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
  172. package/fesm2022/acorex-components-side-menu.mjs +14 -63
  173. package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
  174. package/fesm2022/acorex-components-skeleton.mjs +2 -2
  175. package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
  176. package/fesm2022/acorex-components-slider.mjs +5 -5
  177. package/fesm2022/acorex-components-slider.mjs.map +1 -1
  178. package/fesm2022/acorex-components-sliding-item.mjs +2 -2
  179. package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
  180. package/fesm2022/acorex-components-step-wizard.mjs +2 -2
  181. package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
  182. package/fesm2022/acorex-components-switch.mjs +4 -4
  183. package/fesm2022/acorex-components-switch.mjs.map +1 -1
  184. package/fesm2022/acorex-components-tabs.mjs +2 -2
  185. package/fesm2022/acorex-components-tabs.mjs.map +1 -1
  186. package/fesm2022/acorex-components-tag-box.mjs +2 -2
  187. package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
  188. package/fesm2022/acorex-components-tag.mjs +3 -3
  189. package/fesm2022/acorex-components-tag.mjs.map +1 -1
  190. package/fesm2022/acorex-components-text-area.mjs +2 -2
  191. package/fesm2022/acorex-components-text-area.mjs.map +1 -1
  192. package/fesm2022/acorex-components-text-box.mjs +2 -2
  193. package/fesm2022/acorex-components-text-box.mjs.map +1 -1
  194. package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
  195. package/fesm2022/acorex-components-time-line.mjs +4 -4
  196. package/fesm2022/acorex-components-time-line.mjs.map +1 -1
  197. package/fesm2022/acorex-components-toast.mjs +233 -125
  198. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  199. package/fesm2022/acorex-components-toolbar.mjs +2 -2
  200. package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
  201. package/fesm2022/acorex-components-tooltip.mjs +12 -12
  202. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  203. package/fesm2022/acorex-components-tree-view-legacy.mjs.map +1 -1
  204. package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
  205. package/fesm2022/acorex-components-uploader.mjs +6 -6
  206. package/fesm2022/acorex-components-uploader.mjs.map +1 -1
  207. package/fesm2022/acorex-components-video-player.mjs +2 -2
  208. package/fesm2022/acorex-components-video-player.mjs.map +1 -1
  209. package/fesm2022/acorex-components-wysiwyg.mjs +12 -12
  210. package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
  211. package/fesm2022/acorex-components.mjs.map +1 -1
  212. package/grid-layout-builder/index.d.ts +2 -1
  213. package/kbd/index.d.ts +7 -13
  214. package/loading/index.d.ts +1 -1
  215. package/loading-dialog/index.d.ts +31 -15
  216. package/menu/index.d.ts +4 -0
  217. package/modal/index.d.ts +7 -0
  218. package/notification/index.d.ts +47 -28
  219. package/number-box/index.d.ts +1 -1
  220. package/package.json +7 -7
  221. package/paint/index.d.ts +6 -1
  222. package/popover/index.d.ts +20 -27
  223. package/popup/index.d.ts +103 -27
  224. package/rate-picker/index.d.ts +15 -5
  225. package/side-menu/index.d.ts +2 -9
  226. package/slider/index.d.ts +2 -2
  227. package/toast/index.d.ts +24 -18
  228. package/tooltip/index.d.ts +2 -2
  229. package/fesm2022/acorex-components-modal-acorex-components-modal-BnUdtPke.mjs.map +0 -1
  230. package/fesm2022/acorex-components-modal-modal-content.component-Cgq-wx_m.mjs.map +0 -1
@@ -10,6 +10,7 @@ declare class AXAccordionGroupComponent {
10
10
  activeIndex: _angular_core.ModelSignal<number | number[]>;
11
11
  look: _angular_core.InputSignal<string>;
12
12
  collapsedOnItemClick: _angular_core.InputSignal<boolean>;
13
+ private get __hostClass();
13
14
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXAccordionGroupComponent, never>;
14
15
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXAccordionGroupComponent, "ax-accordion-group", never, { "accordion": { "alias": "accordion"; "required": false; "isSignal": true; }; "activeIndex": { "alias": "activeIndex"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "collapsedOnItemClick": { "alias": "collapsedOnItemClick"; "required": false; "isSignal": true; }; }, { "activeIndex": "activeIndexChange"; }, ["content"], ["ax-accordion-item"], true, never>;
15
16
  }
@@ -1,7 +1,7 @@
1
- import { AXStyleColorType, MXBaseComponent } from '@acorex/cdk/common';
2
- import { ComponentType, Portal, CdkPortalOutletAttachedRef } from '@angular/cdk/portal';
1
+ import { AXStyleColorType, AXComponentCloseEvent, MXBaseComponent } from '@acorex/cdk/common';
2
+ import { AXOverlayRef } from '@acorex/cdk/overlay';
3
3
  import * as i0 from '@angular/core';
4
- import { TemplateRef, OnInit, OnDestroy } from '@angular/core';
4
+ import { TemplateRef, Type, OnInit, OnDestroy, ComponentRef } from '@angular/core';
5
5
  import * as rxjs from 'rxjs';
6
6
  import { Subject } from 'rxjs';
7
7
 
@@ -21,7 +21,7 @@ interface AXActionSheetItem {
21
21
  title?: string;
22
22
  };
23
23
  }
24
- type AXActionSheetContentType = TemplateRef<unknown> | ComponentType<unknown>;
24
+ type AXActionSheetContentType = TemplateRef<unknown> | Type<unknown>;
25
25
  interface AXActionSheetConfig {
26
26
  title?: string;
27
27
  subTitle?: string;
@@ -35,13 +35,21 @@ interface AXActionSheetConfig {
35
35
  dragUp?: boolean;
36
36
  }
37
37
  interface AXActionSheetEvent {
38
- dialogRef: any;
38
+ overlayRef?: AXOverlayRef<unknown>;
39
39
  nativeEvent?: Event;
40
40
  isUserInteraction: boolean;
41
41
  data: {
42
42
  state: 'open' | 'close' | 'dragStart' | 'dragEnd' | 'fullScreen' | 'normalSize';
43
43
  };
44
44
  }
45
+ /**
46
+ * @internal
47
+ * Internal reference used by action sheet service to manage overlay instances
48
+ */
49
+ interface AXActionSheetInternalRef {
50
+ overlayRef: AXOverlayRef<unknown>;
51
+ close: (result?: AXComponentCloseEvent) => void;
52
+ }
45
53
 
46
54
  /**
47
55
  * A component for displaying an action sheet, which is a menu that slides up from the bottom of the screen.
@@ -49,8 +57,12 @@ interface AXActionSheetEvent {
49
57
  * @category Components
50
58
  */
51
59
  declare class AXActionSheetComponent extends MXBaseComponent implements OnInit, OnDestroy {
52
- protected data: AXActionSheetConfig;
53
- private dialogRef;
60
+ /** Action sheet configuration data */
61
+ data: i0.InputSignal<AXActionSheetConfig>;
62
+ /** @internal Callback function to close the action sheet */
63
+ onClose: i0.InputSignal<(result?: AXComponentCloseEvent) => void>;
64
+ /** @internal Overlay reference for event tracking */
65
+ overlayRef: i0.InputSignal<AXOverlayRef<unknown>>;
54
66
  private document;
55
67
  private platformID;
56
68
  private renderer;
@@ -65,14 +77,19 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
65
77
  private actionSheetHeight;
66
78
  private isActionSheetHeightSet;
67
79
  private transitionDuration;
68
- /**
69
- * @ignore
70
- */
71
- protected _selectedPortal: Portal<any>;
72
80
  /**
73
81
  * @ignore
74
82
  */
75
83
  private _componentRef;
84
+ /** Template content if data.content is a TemplateRef */
85
+ protected templateContent: i0.Signal<TemplateRef<unknown>>;
86
+ /** Component content if data.content is a component Type */
87
+ protected componentContent: i0.Signal<Type<unknown>>;
88
+ /** Template context for ngTemplateOutlet */
89
+ protected templateContext: i0.Signal<{
90
+ $implicit: AXActionSheetConfig;
91
+ ref: AXActionSheetComponent;
92
+ }>;
76
93
  /**
77
94
  * @ignore
78
95
  */
@@ -83,7 +100,10 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
83
100
  private handleDown;
84
101
  private snapToFinalPosition;
85
102
  private heightCalculator;
86
- protected handleAttched(ref: CdkPortalOutletAttachedRef): void;
103
+ /**
104
+ * Handles component attachment from ngComponentOutlet
105
+ */
106
+ protected handleComponentCreated(componentRef: ComponentRef<unknown>): void;
87
107
  /**
88
108
  * Handles click events on action sheet items.
89
109
  * This method is called when a user clicks on an action sheet item. It closes the action sheet
@@ -104,13 +124,13 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
104
124
  * This affects how the action sheet handles accessibility and event tracking.
105
125
  * @returns void
106
126
  */
107
- close(e?: any, isUserInteraction?: boolean): void;
127
+ close(e?: unknown, isUserInteraction?: boolean): void;
108
128
  /**
109
129
  * @ignore
110
130
  */
111
131
  protected onKeydownHandler(): void;
112
132
  static ɵfac: i0.ɵɵFactoryDeclaration<AXActionSheetComponent, never>;
113
- static ɵcmp: i0.ɵɵComponentDeclaration<AXActionSheetComponent, "ax-action-sheet", never, {}, {}, never, never, true, never>;
133
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXActionSheetComponent, "ax-action-sheet", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "onClose": { "alias": "onClose"; "required": false; "isSignal": true; }; "overlayRef": { "alias": "overlayRef"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
114
134
  }
115
135
 
116
136
  declare class AXActionSheetModule {
@@ -120,11 +140,13 @@ declare class AXActionSheetModule {
120
140
  }
121
141
 
122
142
  interface AXActionSheetDialogRef {
123
- close: (e?: any) => void;
124
- closed: Subject<any>;
143
+ close: (e?: unknown) => void;
144
+ closed: Subject<{
145
+ data?: unknown;
146
+ }>;
125
147
  }
126
148
  declare class AXActionSheetService {
127
- private dialog;
149
+ private overlayService;
128
150
  private readonly actionSheetEvent;
129
151
  actionSheetEvent$: rxjs.Observable<AXActionSheetEvent>;
130
152
  /**
@@ -162,7 +184,7 @@ declare class AXActionSheetService {
162
184
  * observable for external subscribers to monitor action sheet state changes.
163
185
  *
164
186
  * @param event - The action sheet event to emit. Contains information about the event type,
165
- * associated data, user interaction status, and dialog reference.
187
+ * associated data, user interaction status, and overlay reference.
166
188
  * @returns void
167
189
  */
168
190
  setActionSheetEventState(event: AXActionSheetEvent): void;
@@ -171,4 +193,4 @@ declare class AXActionSheetService {
171
193
  }
172
194
 
173
195
  export { AXActionSheetComponent, AXActionSheetModule, AXActionSheetService };
174
- export type { AXActionSheetConfig, AXActionSheetContentType, AXActionSheetDialogRef, AXActionSheetEvent, AXActionSheetItem };
196
+ export type { AXActionSheetConfig, AXActionSheetContentType, AXActionSheetDialogRef, AXActionSheetEvent, AXActionSheetInternalRef, AXActionSheetItem };
@@ -1,7 +1,7 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter } from '@angular/core';
3
1
  import * as polytype from 'polytype';
4
2
  import { MXInteractiveComponent, MXColorLookComponent, AXClickEvent, AXSelectionMode, AXStyleColorType, MXColorComponent } from '@acorex/cdk/common';
3
+ import * as i0 from '@angular/core';
4
+ import { EventEmitter } from '@angular/core';
5
5
 
6
6
  declare const AXButtonGroupComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXInteractiveComponent, typeof MXColorLookComponent]>;
7
7
  /**
@@ -12,7 +12,6 @@ declare const AXButtonGroupComponent_base: polytype.Polytype.ClusteredConstructo
12
12
  declare class AXButtonGroupComponent extends AXButtonGroupComponent_base {
13
13
  #private;
14
14
  readonly fitParent: i0.InputSignal<boolean>;
15
- readonly customClass: i0.InputSignal<string>;
16
15
  /**
17
16
  * Fires when any button in the group is clicked.
18
17
  *
@@ -83,7 +82,7 @@ declare class AXButtonGroupComponent extends AXButtonGroupComponent_base {
83
82
  */
84
83
  private __hostClick;
85
84
  static ɵfac: i0.ɵɵFactoryDeclaration<AXButtonGroupComponent, never>;
86
- static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupComponent, "ax-button-group", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "fitParent": { "alias": "fitParent"; "required": false; "isSignal": true; }; "customClass": { "alias": "class"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "lookChange": "lookChange"; "colorChange": "colorChange"; "disabledChange": "disabledChange"; "onClick": "onClick"; "selectionChange": "selectionChange"; "selectedButtonChange": "selectedButtonChange"; }, ["_contentButtons"], ["ax-button-group-item"], true, never>;
85
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupComponent, "ax-button-group", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "fitParent": { "alias": "fitParent"; "required": false; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "lookChange": "lookChange"; "colorChange": "colorChange"; "disabledChange": "disabledChange"; "onClick": "onClick"; "selectionChange": "selectionChange"; "selectedButtonChange": "selectedButtonChange"; }, ["_contentButtons"], ["ax-button-group-item"], true, never>;
87
86
  }
88
87
 
89
88
  interface AXButtonItemListItem {
@@ -110,7 +109,6 @@ declare class AXButtonGroupItemComponent extends AXButtonGroupItemComponent_base
110
109
  * @ignore
111
110
  */
112
111
  private _selected;
113
- readonly customClass: i0.ModelSignal<string>;
114
112
  /**
115
113
  * Indicates whether the button item is selected.
116
114
  *
@@ -159,7 +157,7 @@ declare class AXButtonGroupItemComponent extends AXButtonGroupItemComponent_base
159
157
  */
160
158
  tabindex: string;
161
159
  static ɵfac: i0.ɵɵFactoryDeclaration<AXButtonGroupItemComponent, never>;
162
- static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupItemComponent, "ax-button-group-item", never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "customClass": { "alias": "class"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; }; "divided": { "alias": "divided"; "required": false; }; "data": { "alias": "data"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, { "onClick": "onClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "disabledChange": "disabledChange"; "customClass": "classChange"; }, never, ["*"], true, never>;
160
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupItemComponent, "ax-button-group-item", never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "divided": { "alias": "divided"; "required": false; }; "data": { "alias": "data"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, { "onClick": "onClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "disabledChange": "disabledChange"; }, never, ["*"], true, never>;
163
161
  }
164
162
 
165
163
  declare class AXButtonGroupModule {
package/chips/index.d.ts CHANGED
@@ -1,25 +1,29 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import * as i1 from '@acorex/cdk/common';
3
- import { MXColorLookComponent } from '@acorex/cdk/common';
3
+ import { AXStyleLookType, AXStyleSizeType, MXColorComponent } from '@acorex/cdk/common';
4
4
 
5
+ type AXChipsLookType = Extract<AXStyleLookType, 'solid' | 'outline' | 'twotone'>;
6
+ type AXChipsSizeType = Exclude<AXStyleSizeType, 'ax-xs' | 'ax-xl'>;
5
7
  /**
6
8
  * A component for displaying and managing a set of chips.
7
9
  *
8
10
  * @category Components
9
11
  */
10
- declare class AXChipsComponent extends MXColorLookComponent {
12
+ declare class AXChipsComponent extends MXColorComponent {
11
13
  /**
12
14
  * The text displayed on the chips.
13
15
  *
14
16
  * @defaultValue ''
15
17
  */
16
18
  text: i0.ModelSignal<string>;
19
+ look: i0.ModelSignal<AXChipsLookType>;
20
+ size: i0.ModelSignal<AXChipsSizeType>;
17
21
  /**
18
22
  * @ignore
19
23
  */
20
24
  private get __hostClass();
21
25
  static ɵfac: i0.ɵɵFactoryDeclaration<AXChipsComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<AXChipsComponent, "ax-chips", never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, { "text": "textChange"; }, never, ["ax-prefix", "ax-suffix"], true, [{ directive: typeof i1.AXRippleDirective; inputs: {}; outputs: {}; }]>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXChipsComponent, "ax-chips", never, { "tabIndex": { "alias": "tabIndex"; "required": false; }; "color": { "alias": "color"; "required": false; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "text": "textChange"; "look": "lookChange"; "size": "sizeChange"; }, never, ["ax-prefix", "ax-suffix"], true, [{ directive: typeof i1.AXRippleDirective; inputs: {}; outputs: {}; }]>;
23
27
  }
24
28
 
25
29
  declare class AXChipsModule {
@@ -29,3 +33,4 @@ declare class AXChipsModule {
29
33
  }
30
34
 
31
35
  export { AXChipsComponent, AXChipsModule };
36
+ export type { AXChipsLookType, AXChipsSizeType };
@@ -5,8 +5,9 @@ import { AfterViewInit, OnDestroy, EventEmitter, TemplateRef } from '@angular/co
5
5
 
6
6
  declare const AXCollapseGroupComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXBaseComponent, typeof MXLookComponent]>;
7
7
  /**
8
- * @deprecated Use `accordion` instead.
9
- * This component deprecated and no longer support.
8
+ * Container for collapsible items with configurable styling.
9
+ *
10
+ * @category Components
10
11
  */
11
12
  declare class AXCollapseGroupComponent extends AXCollapseGroupComponent_base implements AfterViewInit, OnDestroy {
12
13
  /**
@@ -72,8 +73,9 @@ declare class AXCollapseClickEvent extends AXClickEvent {
72
73
  }
73
74
  declare const AXCollapseComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXInteractiveComponent, typeof MXLookComponent]>;
74
75
  /**
75
- * @deprecated Use `accordion` instead.
76
- * This component deprecated and no longer support.
76
+ * A component that provides a collapsible section with animated transitions.
77
+ *
78
+ * @category Components
77
79
  */
78
80
  declare class AXCollapseComponent extends AXCollapseComponent_base {
79
81
  private parent;
@@ -1,7 +1,7 @@
1
1
  import * as i2 from '@acorex/cdk/common';
2
- import { AXEvent, MXBaseComponent, AXDataSource, AXSortOrder, AXStyleLookType, AXButtonClickEvent, AXItemClickEvent, AXClickEvent, AXValueChangedEvent } from '@acorex/cdk/common';
2
+ import { AXEvent, MXBaseComponent, AXDataSource, AXSortOrder, AXStyleLookType, AXButtonClickEvent, AXItemClickEvent, AXClickEvent, AXValueChangedEvent, AXListDataSource } from '@acorex/cdk/common';
3
3
  import * as i0 from '@angular/core';
4
- import { TemplateRef, EventEmitter, ChangeDetectorRef, OnInit, AfterViewInit, WritableSignal, Signal, QueryList } from '@angular/core';
4
+ import { TemplateRef, EventEmitter, ChangeDetectorRef, OnInit, DoCheck, QueryList, WritableSignal, ElementRef, AfterViewInit, Signal } from '@angular/core';
5
5
  import * as i11 from '@acorex/core/format';
6
6
  import { AXFormatOptions } from '@acorex/core/format';
7
7
  import * as i8 from '@acorex/components/button';
@@ -592,6 +592,255 @@ declare class AXRowSelectColumnComponent extends AXDataTableColumnComponent {
592
592
  static ɵcmp: i0.ɵɵComponentDeclaration<AXRowSelectColumnComponent, "ax-select-column", never, { "width": { "alias": "width"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "fixed": { "alias": "fixed"; "required": false; }; }, {}, never, never, true, never>;
593
593
  }
594
594
 
595
+ /**
596
+ * Component for a data table with infinite scrolling capabilities.
597
+ *
598
+ * @category Components
599
+ */
600
+ declare class AXInfiniteScrollDataTableComponent extends AXBaseDataTable implements OnInit, DoCheck {
601
+ private document;
602
+ private platformID;
603
+ private ngZone;
604
+ /**
605
+ * @ignore
606
+ */
607
+ protected columns: QueryList<AXDataTableColumnComponent>;
608
+ /**
609
+ * @ignore
610
+ */
611
+ protected startFixedColumn(): AXDataTableColumnComponent[];
612
+ /**
613
+ * @ignore
614
+ */
615
+ protected endFixedColumn(): AXDataTableColumnComponent[];
616
+ /**
617
+ * @ignore
618
+ */
619
+ protected notFixedColumn(): AXDataTableColumnComponent[];
620
+ /**
621
+ * @ignore
622
+ */
623
+ protected notFixedColumnCount(): number;
624
+ /**
625
+ * @ignore
626
+ */
627
+ protected fixedColumnCount(): number;
628
+ /**
629
+ * Emits an event when the page changes.
630
+ *
631
+ * @event
632
+ */
633
+ onPageChanged: EventEmitter<AXValueChangedEvent<number>>;
634
+ /**
635
+ * @ignore
636
+ */
637
+ private clickSubject;
638
+ /**
639
+ * Emits an event when a row is clicked.
640
+ *
641
+ * @event
642
+ */
643
+ onRowClick: EventEmitter<AXDataTableRowClick>;
644
+ /**
645
+ * Emits an event when a row is double-clicked.
646
+ *
647
+ * @event
648
+ */
649
+ onRowDbClick: EventEmitter<AXDataTableRowDbClick>;
650
+ /**
651
+ * Template for rendering rows in the data table.
652
+ */
653
+ rowTemplate?: TemplateRef<unknown>;
654
+ /**
655
+ * Template to display when the data table is empty.
656
+ */
657
+ emptyTemplate?: TemplateRef<unknown>;
658
+ /**
659
+ * Controls the visibility of the table header.
660
+ *
661
+ * @defaultValue true
662
+ */
663
+ showHeader: boolean;
664
+ /**
665
+ * Defines the mode for fetching data.
666
+ *
667
+ * @defaultValue 'auto'
668
+ */
669
+ fetchDataMode: 'auto' | 'manual';
670
+ /**
671
+ * Configuration for the loading state of the data table.
672
+ *
673
+ * @defaultValue { enabled: true, animation: true }
674
+ */
675
+ loading: {
676
+ enabled: boolean;
677
+ animation: boolean;
678
+ loadingTemplate?: TemplateRef<unknown>;
679
+ };
680
+ /**
681
+ * @ignore
682
+ */
683
+ protected listDataSource: AXListDataSource<unknown>;
684
+ /**
685
+ * @ignore
686
+ */
687
+ protected isLoading: WritableSignal<boolean>;
688
+ /**
689
+ * @ignore
690
+ */
691
+ protected hasItems: boolean;
692
+ /**
693
+ * @ignore
694
+ */
695
+ protected totalRows: number;
696
+ /**
697
+ * @ignore
698
+ */
699
+ protected currentPage: number;
700
+ /**
701
+ * @ignore
702
+ */
703
+ protected totalPages: number;
704
+ /**
705
+ * @ignore
706
+ */
707
+ protected startRowIndex: number;
708
+ /**
709
+ * @ignore
710
+ */
711
+ private lastIndex;
712
+ /**
713
+ * Event emitted when the focused row changes.
714
+ *
715
+ * @event
716
+ */
717
+ focusedRowChange: EventEmitter<unknown>;
718
+ /**
719
+ * @ignore
720
+ */
721
+ private _focusedRow;
722
+ /**
723
+ * Retrieves the currently focused row.
724
+ */
725
+ get focusedRow(): unknown;
726
+ /**
727
+ * Sets the currently focused row and emits a change event.
728
+ *
729
+ * @param v - The row data to be set as focused.
730
+ */
731
+ set focusedRow(v: unknown);
732
+ /**
733
+ * Defines the height of each item in the table.
734
+ *
735
+ * @default 40
736
+ */
737
+ itemHeight: number | 'auto';
738
+ /**
739
+ * @ignore
740
+ */
741
+ protected width: string;
742
+ /**
743
+ * @ignore
744
+ */
745
+ protected height: string;
746
+ /**
747
+ * @ignore
748
+ */
749
+ private viewport;
750
+ /**
751
+ * Emitted when the scroll index changes in the table.
752
+ *
753
+ * @event
754
+ */
755
+ onScrolledIndexChanged: EventEmitter<AXDataTableScrollIndexChanged>;
756
+ trackByIdx(i: any): any;
757
+ /**
758
+ * @ignore
759
+ */
760
+ ngOnInit(): void;
761
+ /**
762
+ * @ignore
763
+ */
764
+ headerContainer: ElementRef<HTMLDivElement>;
765
+ /**
766
+ * @ignore
767
+ */
768
+ footerContainer: ElementRef;
769
+ /**
770
+ * @ignore
771
+ */
772
+ scrollableContainer: ElementRef<HTMLDivElement>;
773
+ /**
774
+ * @ignore
775
+ */
776
+ protected _handleOnscrolledIndexChange(e: number): void;
777
+ /**
778
+ * @ignore
779
+ */
780
+ ngDoCheck(): void;
781
+ /**
782
+ * @ignore
783
+ */
784
+ private updateTotalCount;
785
+ /**
786
+ * @ignore
787
+ */
788
+ private updateHeight;
789
+ /**
790
+ * @ignore
791
+ */
792
+ private updateWidth;
793
+ /**
794
+ * @ignore
795
+ */
796
+ private updateHScroll;
797
+ /**
798
+ * @ignore
799
+ */
800
+ private copyFixedColumns;
801
+ /**
802
+ * Updates the viewport by checking its size and scrolling to the last index.
803
+ * Marks the component for change detection.
804
+ * @ignore
805
+ */
806
+ render(): void;
807
+ /**
808
+ * Resets the index to zero and refreshes the data source.
809
+ * @ignore
810
+ */
811
+ refresh(): void;
812
+ /**
813
+ * @ignore
814
+ */
815
+ protected handleRowClick(event: MouseEvent, item: unknown): void;
816
+ /**
817
+ * @ignore
818
+ */
819
+ private handleRowSingleClick;
820
+ /**
821
+ * @ignore
822
+ */
823
+ protected handleRowDoubleClick(e: MouseEvent, item: unknown): void;
824
+ /**
825
+ * Handles column header clicks to toggle sorting on the column.
826
+ *
827
+ * @param e - The mouse event triggered by the click.
828
+ * @param column - The column that was clicked.
829
+ * @ignore
830
+ */
831
+ handleColumnClick(e: MouseEvent, column: AXDataTableColumnComponent): void;
832
+ /**
833
+ * @ignore
834
+ */
835
+ protected getSort(column: AXDataTableColumnComponent): string | undefined;
836
+ /**
837
+ * @ignore
838
+ */
839
+ protected _handleOnScroll(): void;
840
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXInfiniteScrollDataTableComponent, never>;
841
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXInfiniteScrollDataTableComponent, "ax-infinite-scroll-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; }, { "selectedRowsChange": "selectedRowsChange"; "onPageChanged": "onPageChanged"; "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "focusedRowChange": "focusedRowChange"; "onScrolledIndexChanged": "onScrolledIndexChanged"; }, ["columns"], ["ax-header", "ax-footer"], true, never>;
842
+ }
843
+
595
844
  /**
596
845
  * Component for displaying and managing a data table with advanced features.
597
846
  *
@@ -958,9 +1207,9 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
958
1207
 
959
1208
  declare class AXDataTableModule {
960
1209
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableModule, never>;
961
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXDataTableModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.ScrollingModule, typeof i4.AXTranslationModule, typeof i5.AXResultModule, typeof i6.AXLoadingModule, typeof i7.AXSkeletonModule, typeof i8.AXButtonModule, typeof i9.AXDecoratorModule, typeof i10.AXDropdownModule, typeof i11.AXFormatModule, typeof i2.AXRippleDirective, typeof i12.AXDataPagerModule, typeof i13.CdkDropList, typeof i13.CdkDrag, typeof i13.CdkDragPlaceholder, typeof i13.CdkDragHandle, typeof AXDataTableComponent, typeof AXDataTableTextColumnComponent, typeof AXRowIndexColumnComponent, typeof AXRowSelectColumnComponent, typeof AXRowExpandColumnComponent, typeof AXRowCommandColumnComponent, typeof AXRowDropdownCommandColumnComponent, typeof AXDataTableColumnResizableDirective], [typeof AXDataTableComponent, typeof AXDataTableTextColumnComponent, typeof AXRowIndexColumnComponent, typeof AXRowSelectColumnComponent, typeof AXRowExpandColumnComponent, typeof AXRowCommandColumnComponent, typeof AXRowDropdownCommandColumnComponent, typeof AXDataTableColumnResizableDirective]>;
1210
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXDataTableModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.ScrollingModule, typeof i4.AXTranslationModule, typeof i5.AXResultModule, typeof i6.AXLoadingModule, typeof i7.AXSkeletonModule, typeof i8.AXButtonModule, typeof i9.AXDecoratorModule, typeof i10.AXDropdownModule, typeof i11.AXFormatModule, typeof i2.AXRippleDirective, typeof i12.AXDataPagerModule, typeof i13.CdkDropList, typeof i13.CdkDrag, typeof i13.CdkDragPlaceholder, typeof i13.CdkDragHandle, typeof AXInfiniteScrollDataTableComponent, typeof AXDataTableComponent, typeof AXDataTableTextColumnComponent, typeof AXRowIndexColumnComponent, typeof AXRowSelectColumnComponent, typeof AXRowExpandColumnComponent, typeof AXRowCommandColumnComponent, typeof AXRowDropdownCommandColumnComponent, typeof AXDataTableColumnResizableDirective], [typeof AXInfiniteScrollDataTableComponent, typeof AXDataTableComponent, typeof AXDataTableTextColumnComponent, typeof AXRowIndexColumnComponent, typeof AXRowSelectColumnComponent, typeof AXRowExpandColumnComponent, typeof AXRowCommandColumnComponent, typeof AXRowDropdownCommandColumnComponent, typeof AXDataTableColumnResizableDirective]>;
962
1211
  static ɵinj: i0.ɵɵInjectorDeclaration<AXDataTableModule>;
963
1212
  }
964
1213
 
965
- export { AXBaseDataTable, AXBaseRowCommandColumnComponent, AXDataTableColumnComponent, AXDataTableColumnResizableDirective, AXDataTableComponent, AXDataTableModule, AXDataTableTextColumnComponent, AXRowCommandColumnComponent, AXRowDropdownCommandColumnComponent, AXRowExpandColumnComponent, AXRowIndexColumnComponent, AXRowSelectColumnComponent };
1214
+ export { AXBaseDataTable, AXBaseRowCommandColumnComponent, AXDataTableColumnComponent, AXDataTableColumnResizableDirective, AXDataTableComponent, AXDataTableModule, AXDataTableTextColumnComponent, AXInfiniteScrollDataTableComponent, AXRowCommandColumnComponent, AXRowDropdownCommandColumnComponent, AXRowExpandColumnComponent, AXRowIndexColumnComponent, AXRowSelectColumnComponent };
966
1215
  export type { AXColumnsOrderChangedEvent, AXDataTableRowClick, AXDataTableRowDbClick, AXDataTableScrollIndexChanged, AXRowCommandItem, AXRowCommandItemClickEvent, onColumnSizeChangedEvent };
package/dialog/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as i2 from '@acorex/cdk/common';
2
2
  import { AXStyleColorType, AXStyleLookType, AXHotKeyAction, MXBaseComponent } from '@acorex/cdk/common';
3
+ import { AXOverlayRef } from '@acorex/cdk/overlay';
3
4
  import * as i0 from '@angular/core';
4
5
  import * as i1 from '@angular/common';
5
6
  import * as i3 from '@angular/cdk/drag-drop';
@@ -7,8 +8,7 @@ import * as i4 from '@angular/cdk/a11y';
7
8
  import * as i5 from '@acorex/components/button';
8
9
  import * as i6 from '@acorex/components/decorators';
9
10
  import * as i7 from '@acorex/components/loading';
10
- import * as i8 from '@angular/cdk/dialog';
11
- import * as i9 from '@acorex/core/translation';
11
+ import * as i8 from '@acorex/core/translation';
12
12
 
13
13
  interface AXDialogButtonItem {
14
14
  text: string;
@@ -48,14 +48,24 @@ interface AXDialogData {
48
48
  icon?: string | 'none';
49
49
  draggable?: boolean;
50
50
  }
51
+ /**
52
+ * @internal
53
+ * Internal reference used by dialog service to manage overlay instances
54
+ */
55
+ interface AXDialogInternalRef {
56
+ overlayRef: AXOverlayRef<unknown>;
57
+ close: () => void;
58
+ }
51
59
 
52
60
  /**
53
61
  * A dialog component that provides a modal interface for user interactions.
54
62
  * @category Components
55
63
  */
56
64
  declare class AXDialogComponent extends MXBaseComponent {
57
- protected data: AXDialogData;
58
- private dialogRef;
65
+ /** Dialog configuration data */
66
+ data: i0.InputSignal<AXDialogData>;
67
+ /** @internal Callback function to close the dialog */
68
+ onClose: i0.InputSignal<() => void>;
59
69
  /**
60
70
  * @ignore
61
71
  */
@@ -74,19 +84,13 @@ declare class AXDialogComponent extends MXBaseComponent {
74
84
  * @returns void - No return value. The dialog is closed and removed from the DOM.
75
85
  */
76
86
  close(): void;
77
- /**
78
- * @ignore
79
- */
80
- get tabIndex(): string;
81
- /** @ignore */
82
- private get __hostClass();
83
87
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDialogComponent, never>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<AXDialogComponent, "ax-dialog", never, {}, {}, never, never, true, never>;
88
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDialogComponent, "ax-dialog", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "onClose": { "alias": "onClose"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
85
89
  }
86
90
 
87
91
  declare class AXDialogModule {
88
92
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDialogModule, never>;
89
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXDialogModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.DragDropModule, typeof i4.A11yModule, typeof i5.AXButtonModule, typeof i6.AXDecoratorModule, typeof i7.AXLoadingModule, typeof i8.DialogModule, typeof i9.AXTranslationModule, typeof AXDialogComponent], [typeof AXDialogComponent]>;
93
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXDialogModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.DragDropModule, typeof i4.A11yModule, typeof i5.AXButtonModule, typeof i6.AXDecoratorModule, typeof i7.AXLoadingModule, typeof i8.AXTranslationModule, typeof AXDialogComponent], [typeof AXDialogComponent]>;
90
94
  static ɵinj: i0.ɵɵInjectorDeclaration<AXDialogModule>;
91
95
  }
92
96
 
@@ -96,7 +100,7 @@ declare class AXDialogModule {
96
100
  * @category Components
97
101
  */
98
102
  declare class AXDialogService {
99
- private dialog;
103
+ private overlayService;
100
104
  private defaultConfig;
101
105
  private detectIcon;
102
106
  /**
@@ -109,7 +113,7 @@ declare class AXDialogService {
109
113
  * @param draggable - Whether the dialog can be dragged.
110
114
  * @returns Promise<void> - Promise that resolves when the dialog is closed.
111
115
  */
112
- alert(title: string, content: string, type?: AXStyleColorType, orientation?: 'horizontal' | 'vertical', draggable?: boolean, buttonLook?: AXStyleLookType): Promise<void>;
116
+ alert(title: string, content: string, type?: AXStyleColorType, orientation?: 'horizontal' | 'vertical', draggable?: boolean): Promise<void>;
113
117
  /**
114
118
  * Show a confirm box with 'Okay' & 'Cancel' buttons.
115
119
  *
@@ -145,4 +149,4 @@ declare class AXDialogService {
145
149
  }
146
150
 
147
151
  export { AXDialogComponent, AXDialogModule, AXDialogService };
148
- export type { AXDialogButtonItem, AXDialogConfig, AXDialogData, AXDialogRef };
152
+ export type { AXDialogButtonItem, AXDialogConfig, AXDialogData, AXDialogInternalRef, AXDialogRef };
@@ -3,13 +3,12 @@ import { MXInteractiveComponent, MXLookComponent, AXEvent } from '@acorex/cdk/co
3
3
  import * as i0 from '@angular/core';
4
4
  import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
5
5
  import * as polytype from 'polytype';
6
- import * as i6 from '@acorex/components/popover';
6
+ import * as i5 from '@acorex/components/popover';
7
7
  import { AXPopoverComponent } from '@acorex/components/popover';
8
8
  import { Subscription } from 'rxjs';
9
9
  import * as i1 from '@angular/common';
10
10
  import * as i3 from '@angular/cdk/a11y';
11
- import * as i4 from '@angular/cdk/overlay';
12
- import * as i5 from '@acorex/components/decorators';
11
+ import * as i4 from '@acorex/components/decorators';
13
12
 
14
13
  declare const AXDropdownBoxComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXInteractiveComponent, typeof MXLookComponent]>;
15
14
  declare class AXDropdownBoxComponent extends AXDropdownBoxComponent_base implements OnInit {
@@ -278,7 +277,7 @@ declare class AXDropdownPanelComponent extends MXInteractiveComponent implements
278
277
 
279
278
  declare class AXDropdownModule {
280
279
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDropdownModule, never>;
281
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXDropdownModule, never, [typeof i1.CommonModule, typeof _acorex_cdk_common.AXCommonModule, typeof i3.A11yModule, typeof i4.OverlayModule, typeof i5.AXDecoratorModule, typeof i6.AXPopoverModule, typeof AXDropdownPanelComponent, typeof AXDropdownBoxComponent], [typeof AXDropdownPanelComponent, typeof AXDropdownBoxComponent]>;
280
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXDropdownModule, never, [typeof i1.CommonModule, typeof _acorex_cdk_common.AXCommonModule, typeof i3.A11yModule, typeof i4.AXDecoratorModule, typeof i5.AXPopoverModule, typeof AXDropdownPanelComponent, typeof AXDropdownBoxComponent], [typeof AXDropdownPanelComponent, typeof AXDropdownBoxComponent]>;
282
281
  static ɵinj: i0.ɵɵInjectorDeclaration<AXDropdownModule>;
283
282
  }
284
283