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

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 (47) hide show
  1. package/action-sheet/index.d.ts +19 -41
  2. package/dialog/index.d.ts +14 -18
  3. package/dropdown/index.d.ts +4 -3
  4. package/fesm2022/acorex-components-action-sheet.mjs +93 -141
  5. package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
  6. package/fesm2022/acorex-components-conversation2.mjs +2 -2
  7. package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
  8. package/fesm2022/acorex-components-dialog.mjs +45 -66
  9. package/fesm2022/acorex-components-dialog.mjs.map +1 -1
  10. package/fesm2022/acorex-components-dropdown.mjs +4 -0
  11. package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
  12. package/fesm2022/acorex-components-grid-layout-builder.mjs +2 -2
  13. package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
  14. package/fesm2022/acorex-components-kanban.mjs +119 -6
  15. package/fesm2022/acorex-components-kanban.mjs.map +1 -1
  16. package/fesm2022/acorex-components-loading-dialog.mjs +36 -73
  17. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  18. package/fesm2022/acorex-components-menu.mjs +5 -26
  19. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  20. package/fesm2022/{acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs → acorex-components-modal-acorex-components-modal-CXXcFToK.mjs} +3 -27
  21. package/fesm2022/acorex-components-modal-acorex-components-modal-CXXcFToK.mjs.map +1 -0
  22. package/fesm2022/{acorex-components-modal-modal-content.component-CSJU1vRi.mjs → acorex-components-modal-modal-content.component-B4rhHeEz.mjs} +2 -2
  23. package/fesm2022/{acorex-components-modal-modal-content.component-CSJU1vRi.mjs.map → acorex-components-modal-modal-content.component-B4rhHeEz.mjs.map} +1 -1
  24. package/fesm2022/acorex-components-modal.mjs +1 -1
  25. package/fesm2022/acorex-components-notification.mjs +257 -374
  26. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  27. package/fesm2022/acorex-components-popover.mjs +175 -136
  28. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  29. package/fesm2022/acorex-components-popup.mjs +105 -308
  30. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  31. package/fesm2022/acorex-components-routing-progress.mjs +2 -2
  32. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  33. package/fesm2022/acorex-components-toast.mjs +123 -231
  34. package/fesm2022/acorex-components-toast.mjs.map +1 -1
  35. package/fesm2022/acorex-components-tooltip.mjs +3 -2
  36. package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
  37. package/kanban/index.d.ts +58 -2
  38. package/loading-dialog/index.d.ts +15 -31
  39. package/menu/index.d.ts +0 -4
  40. package/modal/index.d.ts +0 -7
  41. package/notification/index.d.ts +32 -47
  42. package/package.json +7 -7
  43. package/popover/index.d.ts +27 -20
  44. package/popup/index.d.ts +27 -103
  45. package/toast/index.d.ts +18 -24
  46. package/tooltip/index.d.ts +2 -1
  47. package/fesm2022/acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
- import { AXStyleColorType, AXComponentCloseEvent, MXBaseComponent } from '@acorex/cdk/common';
2
- import { AXOverlayRef } from '@acorex/cdk/overlay';
1
+ import { AXStyleColorType, MXBaseComponent } from '@acorex/cdk/common';
2
+ import { ComponentType, Portal, CdkPortalOutletAttachedRef } from '@angular/cdk/portal';
3
3
  import * as i0 from '@angular/core';
4
- import { TemplateRef, Type, OnInit, OnDestroy, ComponentRef } from '@angular/core';
4
+ import { TemplateRef, OnInit, OnDestroy } 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> | Type<unknown>;
24
+ type AXActionSheetContentType = TemplateRef<unknown> | ComponentType<unknown>;
25
25
  interface AXActionSheetConfig {
26
26
  title?: string;
27
27
  subTitle?: string;
@@ -35,21 +35,13 @@ interface AXActionSheetConfig {
35
35
  dragUp?: boolean;
36
36
  }
37
37
  interface AXActionSheetEvent {
38
- overlayRef?: AXOverlayRef<unknown>;
38
+ dialogRef: any;
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
- }
53
45
 
54
46
  /**
55
47
  * A component for displaying an action sheet, which is a menu that slides up from the bottom of the screen.
@@ -57,12 +49,8 @@ interface AXActionSheetInternalRef {
57
49
  * @category Components
58
50
  */
59
51
  declare class AXActionSheetComponent extends MXBaseComponent implements OnInit, OnDestroy {
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>>;
52
+ protected data: AXActionSheetConfig;
53
+ private dialogRef;
66
54
  private document;
67
55
  private platformID;
68
56
  private renderer;
@@ -77,19 +65,14 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
77
65
  private actionSheetHeight;
78
66
  private isActionSheetHeightSet;
79
67
  private transitionDuration;
68
+ /**
69
+ * @ignore
70
+ */
71
+ protected _selectedPortal: Portal<any>;
80
72
  /**
81
73
  * @ignore
82
74
  */
83
75
  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
- }>;
93
76
  /**
94
77
  * @ignore
95
78
  */
@@ -100,10 +83,7 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
100
83
  private handleDown;
101
84
  private snapToFinalPosition;
102
85
  private heightCalculator;
103
- /**
104
- * Handles component attachment from ngComponentOutlet
105
- */
106
- protected handleComponentCreated(componentRef: ComponentRef<unknown>): void;
86
+ protected handleAttched(ref: CdkPortalOutletAttachedRef): void;
107
87
  /**
108
88
  * Handles click events on action sheet items.
109
89
  * This method is called when a user clicks on an action sheet item. It closes the action sheet
@@ -124,13 +104,13 @@ declare class AXActionSheetComponent extends MXBaseComponent implements OnInit,
124
104
  * This affects how the action sheet handles accessibility and event tracking.
125
105
  * @returns void
126
106
  */
127
- close(e?: unknown, isUserInteraction?: boolean): void;
107
+ close(e?: any, isUserInteraction?: boolean): void;
128
108
  /**
129
109
  * @ignore
130
110
  */
131
111
  protected onKeydownHandler(): void;
132
112
  static ɵfac: i0.ɵɵFactoryDeclaration<AXActionSheetComponent, 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>;
113
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXActionSheetComponent, "ax-action-sheet", never, {}, {}, never, never, true, never>;
134
114
  }
135
115
 
136
116
  declare class AXActionSheetModule {
@@ -140,13 +120,11 @@ declare class AXActionSheetModule {
140
120
  }
141
121
 
142
122
  interface AXActionSheetDialogRef {
143
- close: (e?: unknown) => void;
144
- closed: Subject<{
145
- data?: unknown;
146
- }>;
123
+ close: (e?: any) => void;
124
+ closed: Subject<any>;
147
125
  }
148
126
  declare class AXActionSheetService {
149
- private overlayService;
127
+ private dialog;
150
128
  private readonly actionSheetEvent;
151
129
  actionSheetEvent$: rxjs.Observable<AXActionSheetEvent>;
152
130
  /**
@@ -184,7 +162,7 @@ declare class AXActionSheetService {
184
162
  * observable for external subscribers to monitor action sheet state changes.
185
163
  *
186
164
  * @param event - The action sheet event to emit. Contains information about the event type,
187
- * associated data, user interaction status, and overlay reference.
165
+ * associated data, user interaction status, and dialog reference.
188
166
  * @returns void
189
167
  */
190
168
  setActionSheetEventState(event: AXActionSheetEvent): void;
@@ -193,4 +171,4 @@ declare class AXActionSheetService {
193
171
  }
194
172
 
195
173
  export { AXActionSheetComponent, AXActionSheetModule, AXActionSheetService };
196
- export type { AXActionSheetConfig, AXActionSheetContentType, AXActionSheetDialogRef, AXActionSheetEvent, AXActionSheetInternalRef, AXActionSheetItem };
174
+ export type { AXActionSheetConfig, AXActionSheetContentType, AXActionSheetDialogRef, AXActionSheetEvent, AXActionSheetItem };
package/dialog/index.d.ts CHANGED
@@ -1,6 +1,5 @@
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';
4
3
  import * as i0 from '@angular/core';
5
4
  import * as i1 from '@angular/common';
6
5
  import * as i3 from '@angular/cdk/drag-drop';
@@ -8,7 +7,8 @@ import * as i4 from '@angular/cdk/a11y';
8
7
  import * as i5 from '@acorex/components/button';
9
8
  import * as i6 from '@acorex/components/decorators';
10
9
  import * as i7 from '@acorex/components/loading';
11
- import * as i8 from '@acorex/core/translation';
10
+ import * as i8 from '@angular/cdk/dialog';
11
+ import * as i9 from '@acorex/core/translation';
12
12
 
13
13
  interface AXDialogButtonItem {
14
14
  text: string;
@@ -48,24 +48,14 @@ 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
- }
59
51
 
60
52
  /**
61
53
  * A dialog component that provides a modal interface for user interactions.
62
54
  * @category Components
63
55
  */
64
56
  declare class AXDialogComponent extends MXBaseComponent {
65
- /** Dialog configuration data */
66
- data: i0.InputSignal<AXDialogData>;
67
- /** @internal Callback function to close the dialog */
68
- onClose: i0.InputSignal<() => void>;
57
+ protected data: AXDialogData;
58
+ private dialogRef;
69
59
  /**
70
60
  * @ignore
71
61
  */
@@ -84,13 +74,19 @@ declare class AXDialogComponent extends MXBaseComponent {
84
74
  * @returns void - No return value. The dialog is closed and removed from the DOM.
85
75
  */
86
76
  close(): void;
77
+ /**
78
+ * @ignore
79
+ */
80
+ get tabIndex(): string;
81
+ /** @ignore */
82
+ private get __hostClass();
87
83
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDialogComponent, 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>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDialogComponent, "ax-dialog", never, {}, {}, never, never, true, never>;
89
85
  }
90
86
 
91
87
  declare class AXDialogModule {
92
88
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDialogModule, never>;
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]>;
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]>;
94
90
  static ɵinj: i0.ɵɵInjectorDeclaration<AXDialogModule>;
95
91
  }
96
92
 
@@ -100,7 +96,7 @@ declare class AXDialogModule {
100
96
  * @category Components
101
97
  */
102
98
  declare class AXDialogService {
103
- private overlayService;
99
+ private dialog;
104
100
  private defaultConfig;
105
101
  private detectIcon;
106
102
  /**
@@ -149,4 +145,4 @@ declare class AXDialogService {
149
145
  }
150
146
 
151
147
  export { AXDialogComponent, AXDialogModule, AXDialogService };
152
- export type { AXDialogButtonItem, AXDialogConfig, AXDialogData, AXDialogInternalRef, AXDialogRef };
148
+ export type { AXDialogButtonItem, AXDialogConfig, AXDialogData, AXDialogRef };
@@ -3,12 +3,13 @@ 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 i5 from '@acorex/components/popover';
6
+ import * as i6 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 '@acorex/components/decorators';
11
+ import * as i4 from '@angular/cdk/overlay';
12
+ import * as i5 from '@acorex/components/decorators';
12
13
 
13
14
  declare const AXDropdownBoxComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXInteractiveComponent, typeof MXLookComponent]>;
14
15
  declare class AXDropdownBoxComponent extends AXDropdownBoxComponent_base implements OnInit {
@@ -277,7 +278,7 @@ declare class AXDropdownPanelComponent extends MXInteractiveComponent implements
277
278
 
278
279
  declare class AXDropdownModule {
279
280
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDropdownModule, never>;
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]>;
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]>;
281
282
  static ɵinj: i0.ɵɵInjectorDeclaration<AXDropdownModule>;
282
283
  }
283
284