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

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 (49) hide show
  1. package/action-sheet/index.d.ts +41 -19
  2. package/datetime-picker/index.d.ts +1 -1
  3. package/dialog/index.d.ts +18 -14
  4. package/dropdown/index.d.ts +3 -4
  5. package/fesm2022/acorex-components-action-sheet.mjs +141 -93
  6. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  7. package/fesm2022/acorex-components-conversation2.mjs +2 -2
  8. package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
  9. package/fesm2022/acorex-components-datetime-box.mjs +1 -0
  10. package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
  11. package/fesm2022/acorex-components-datetime-picker.mjs +25 -25
  12. package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
  13. package/fesm2022/acorex-components-dialog.mjs +66 -45
  14. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  15. package/fesm2022/acorex-components-dropdown.mjs +5 -10
  16. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  17. package/fesm2022/acorex-components-grid-layout-builder.mjs +2 -2
  18. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  19. package/fesm2022/acorex-components-loading-dialog.mjs +73 -36
  20. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  21. package/fesm2022/acorex-components-menu.mjs +26 -5
  22. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  23. package/fesm2022/{acorex-components-modal-acorex-components-modal-CXXcFToK.mjs → acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs} +27 -3
  24. package/fesm2022/acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs.map +1 -0
  25. package/fesm2022/{acorex-components-modal-modal-content.component-B4rhHeEz.mjs → acorex-components-modal-modal-content.component-CSJU1vRi.mjs} +2 -2
  26. package/fesm2022/{acorex-components-modal-modal-content.component-B4rhHeEz.mjs.map → acorex-components-modal-modal-content.component-CSJU1vRi.mjs.map} +1 -1
  27. package/fesm2022/acorex-components-modal.mjs +1 -1
  28. package/fesm2022/acorex-components-notification.mjs +374 -257
  29. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  30. package/fesm2022/acorex-components-popover.mjs +136 -175
  31. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  32. package/fesm2022/acorex-components-popup.mjs +308 -105
  33. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  34. package/fesm2022/acorex-components-routing-progress.mjs +2 -2
  35. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  36. package/fesm2022/acorex-components-toast.mjs +231 -123
  37. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  38. package/fesm2022/acorex-components-tooltip.mjs +2 -3
  39. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  40. package/loading-dialog/index.d.ts +31 -15
  41. package/menu/index.d.ts +4 -0
  42. package/modal/index.d.ts +7 -0
  43. package/notification/index.d.ts +47 -32
  44. package/package.json +3 -3
  45. package/popover/index.d.ts +20 -27
  46. package/popup/index.d.ts +103 -27
  47. package/toast/index.d.ts +24 -18
  48. package/tooltip/index.d.ts +1 -2
  49. package/fesm2022/acorex-components-modal-acorex-components-modal-CXXcFToK.mjs.map +0 -1
@@ -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 };
@@ -66,7 +66,7 @@ declare class AXDateTimePickerComponent extends AXDateTimePickerComponent_base i
66
66
  * @ignore
67
67
  */
68
68
  protected get _hasTimePart(): boolean;
69
- protected _editingDateObj: _angular_core.WritableSignal<AXDateTime>;
69
+ editingDateObj: _angular_core.WritableSignal<AXDateTime>;
70
70
  /**
71
71
  * @description The calendar type to use for the datetime input.
72
72
  */
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
  /**
@@ -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