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

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-loading-dialog.mjs +36 -73
  15. package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
  16. package/fesm2022/acorex-components-menu.mjs +5 -26
  17. package/fesm2022/acorex-components-menu.mjs.map +1 -1
  18. package/fesm2022/{acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs → acorex-components-modal-acorex-components-modal-CXXcFToK.mjs} +3 -27
  19. package/fesm2022/acorex-components-modal-acorex-components-modal-CXXcFToK.mjs.map +1 -0
  20. package/fesm2022/{acorex-components-modal-modal-content.component-CSJU1vRi.mjs → acorex-components-modal-modal-content.component-B4rhHeEz.mjs} +2 -2
  21. package/fesm2022/{acorex-components-modal-modal-content.component-CSJU1vRi.mjs.map → acorex-components-modal-modal-content.component-B4rhHeEz.mjs.map} +1 -1
  22. package/fesm2022/acorex-components-modal.mjs +1 -1
  23. package/fesm2022/acorex-components-notification.mjs +257 -374
  24. package/fesm2022/acorex-components-notification.mjs.map +1 -1
  25. package/fesm2022/acorex-components-popover.mjs +175 -136
  26. package/fesm2022/acorex-components-popover.mjs.map +1 -1
  27. package/fesm2022/acorex-components-popup.mjs +105 -308
  28. package/fesm2022/acorex-components-popup.mjs.map +1 -1
  29. package/fesm2022/acorex-components-routing-progress.mjs +2 -2
  30. package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
  31. package/fesm2022/acorex-components-scheduler.mjs +1195 -136
  32. package/fesm2022/acorex-components-scheduler.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/loading-dialog/index.d.ts +15 -31
  38. package/menu/index.d.ts +0 -4
  39. package/modal/index.d.ts +0 -7
  40. package/notification/index.d.ts +32 -47
  41. package/package.json +7 -7
  42. package/popover/index.d.ts +27 -20
  43. package/popup/index.d.ts +27 -103
  44. package/scheduler/index.d.ts +281 -27
  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
package/popup/index.d.ts CHANGED
@@ -1,14 +1,17 @@
1
- import { AXComponentType, AXComponentInputs } from '@acorex/core/components';
1
+ import * as i5 from '@angular/cdk/portal';
2
+ import { ComponentType, Portal, CdkPortalOutletAttachedRef } from '@angular/cdk/portal';
2
3
  import * as i0 from '@angular/core';
3
- import { TemplateRef, ViewContainerRef, StaticProvider, OnInit, OnDestroy } from '@angular/core';
4
- import { Subject } from 'rxjs';
4
+ import { TemplateRef, ViewContainerRef, StaticProvider, OnInit } from '@angular/core';
5
5
  import * as i2 from '@acorex/cdk/common';
6
6
  import { MXBaseComponent, AXComponentClosedPromise } from '@acorex/cdk/common';
7
7
  import * as i1 from '@angular/common';
8
- import * as i3 from '@acorex/components/decorators';
9
- import * as i4 from '@acorex/core/translation';
8
+ import * as i3 from '@angular/cdk/drag-drop';
9
+ import * as i4 from '@angular/cdk/a11y';
10
+ import * as i6 from '@acorex/components/decorators';
11
+ import * as i7 from '@angular/cdk/dialog';
12
+ import * as i8 from '@acorex/core/translation';
10
13
 
11
- type AXPopupContentType = TemplateRef<unknown> | AXComponentType<unknown>;
14
+ type AXPopupContentType = TemplateRef<unknown> | ComponentType<unknown>;
12
15
  type AXPopupSizeType = 'sm' | 'md' | 'lg' | 'full' | 'fit';
13
16
  interface AXPopupConfig {
14
17
  title?: string;
@@ -36,77 +39,19 @@ interface AXPopupData {
36
39
  draggable: boolean;
37
40
  content: AXPopupContentType;
38
41
  }
39
- interface AXPopupRef<TResult = any> {
40
- close: (data?: TResult) => void;
41
- setInputs: (values: AXComponentInputs) => void;
42
- setTitle: (title: string) => void;
43
- /** Brings this popup to the front of all other overlays */
44
- bringToFront: () => void;
45
- onClose: Subject<TResult>;
46
- }
47
- declare abstract class AXPopupComponentBase {
48
- __popup__: i0.InputSignal<AXPopupRef<any>>;
49
- close(data?: any): void;
50
- setTitle(title: string): void;
51
- bringToFront(): void;
52
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupComponentBase, never>;
53
- static ɵdir: i0.ɵɵDirectiveDeclaration<AXPopupComponentBase, never, never, { "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
54
- }
55
-
56
- declare class AXPopupStateService {
57
- private popupList;
58
- private overlayService;
59
- /**
60
- * Opens a popup with the specified content and configuration.
61
- * @param content - Component or template to display
62
- * @param config - Configuration options for the popup
63
- * @returns Promise<AXPopupRef> - Reference to the opened popup
64
- */
65
- open<TResult = any>(content: AXPopupContentType, config: AXPopupConfig): Promise<AXPopupRef<TResult>>;
66
- /**
67
- * Closes a popup by its ID.
68
- * @param id - The popup ID to close
69
- * @param data - Optional data to pass to the close event
70
- */
71
- close<TResult = any>(id: number, data?: TResult): Promise<void>;
72
- /**
73
- * Sets input values for a popup by its ID.
74
- * @param id - The popup ID
75
- * @param values - Object containing input values to set
76
- */
77
- setInputs(id: number, values: AXComponentInputs): Promise<void>;
78
- /**
79
- * Sets the title for a popup by its ID.
80
- * @param id - The popup ID
81
- * @param title - The new title
82
- */
83
- setTitle(id: number, title: string): Promise<void>;
84
- /**
85
- * Brings a popup to the front of all other overlays.
86
- * @param id - The popup ID to bring to front
87
- */
88
- bringToFront(id: number): void;
89
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupStateService, never>;
90
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPopupStateService>;
91
- }
92
42
 
93
43
  /**
94
- * The Popup is a component which displays content in a dialog overlay
44
+ * The Button is a component which detects user interaction and triggers a corresponding event
95
45
  *
96
46
  * @category Components
97
47
  */
98
- declare class AXPopupComponent extends MXBaseComponent implements OnInit, OnDestroy {
48
+ declare class AXPopupComponent extends MXBaseComponent implements OnInit {
99
49
  private _zone;
100
- private _document;
50
+ private _viewContainerRef;
101
51
  private loadingService;
102
52
  private _platform;
103
- private componentService;
104
- private contentContainerRef;
105
- private contentContainerEl;
106
- readonly __content__: i0.InputSignal<AXPopupContentType>;
107
- readonly __config__: i0.InputSignal<AXPopupConfig>;
108
- readonly __popupRef__: i0.InputSignal<AXPopupRef<any>>;
109
- readonly __id__: i0.InputSignal<number>;
53
+ protected data: AXPopupData;
54
+ private dialogRef;
110
55
  /**
111
56
  * Indicates whether the component is loading.
112
57
  * @defaultValue true
@@ -115,28 +60,19 @@ declare class AXPopupComponent extends MXBaseComponent implements OnInit, OnDest
115
60
  /** @ignore */
116
61
  private _loadingId;
117
62
  /** @ignore */
118
- private _componentRef;
119
- /** Current title */
120
- protected title: i0.WritableSignal<string>;
121
- /** @ignore */
122
- protected isDragging: i0.WritableSignal<boolean>;
63
+ protected _selectedPortal: Portal<unknown>;
123
64
  /** @ignore */
124
- protected dragOffset: i0.WritableSignal<{
125
- x: number;
126
- y: number;
127
- }>;
65
+ protected _footerPortal: Portal<unknown>;
128
66
  /** @ignore */
129
- private dragStartPos;
67
+ protected _headerPortal: Portal<unknown>;
130
68
  /** @ignore */
131
- private elementStartPos;
69
+ private _componentRef;
132
70
  /** @ignore */
133
71
  ngOnInit(): void;
134
72
  /** @ignore */
135
- private renderContent;
73
+ protected _handleAttched(ref: CdkPortalOutletAttachedRef): void;
136
74
  /** @ignore */
137
- private handleContentRendered;
138
- /** @ignore */
139
- onKeydownHandler(): void;
75
+ onKeydownHandler(event: KeyboardEvent): void;
140
76
  /** @ignore */
141
77
  protected _handleCloseClick(): void;
142
78
  /** @ignore */
@@ -146,30 +82,17 @@ declare class AXPopupComponent extends MXBaseComponent implements OnInit, OnDest
146
82
  */
147
83
  focus(): void;
148
84
  /**
149
- * Closes the popup, emitting component reference, host element, and optional data.
85
+ * Closes the dialog, emitting component reference, host element, and optional data.
150
86
  * @param {unknown} [data]
151
87
  */
152
88
  close(data?: unknown): void;
153
- /**
154
- * Sets inputs on the content component.
155
- * @param values - Object containing input values to set
156
- */
157
- setContentInputs(values: AXComponentInputs): void;
158
- /**
159
- * Sets the popup title.
160
- * @param title - The new title
161
- */
162
- setTitle(title: string): void;
163
- protected onDragStart(event: MouseEvent): void;
164
- onDragMove(event: MouseEvent): void;
165
- onDragEnd(): void;
166
89
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupComponent, never>;
167
- static ɵcmp: i0.ɵɵComponentDeclaration<AXPopupComponent, "ax-popup", never, { "__content__": { "alias": "__content__"; "required": false; "isSignal": true; }; "__config__": { "alias": "__config__"; "required": false; "isSignal": true; }; "__popupRef__": { "alias": "__popupRef__"; "required": false; "isSignal": true; }; "__id__": { "alias": "__id__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
90
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXPopupComponent, "ax-popup", never, {}, {}, never, never, true, never>;
168
91
  }
169
92
 
170
93
  declare class AXPopupModule {
171
94
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupModule, never>;
172
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXPopupModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.AXDecoratorModule, typeof i4.AXTranslationModule, typeof AXPopupComponent], [typeof AXPopupComponent]>;
95
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXPopupModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.DragDropModule, typeof i4.A11yModule, typeof i5.PortalModule, typeof i6.AXDecoratorModule, typeof i7.DialogModule, typeof i8.AXTranslationModule, typeof AXPopupComponent], [typeof AXPopupComponent]>;
173
96
  static ɵinj: i0.ɵɵInjectorDeclaration<AXPopupModule>;
174
97
  }
175
98
 
@@ -179,7 +102,8 @@ declare class AXPopupModule {
179
102
  * @category Components
180
103
  */
181
104
  declare class AXPopupService {
182
- private stateService;
105
+ #private;
106
+ private dialog;
183
107
  /**
184
108
  * Open popup 1
185
109
  */
@@ -192,5 +116,5 @@ declare class AXPopupService {
192
116
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPopupService>;
193
117
  }
194
118
 
195
- export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService, AXPopupStateService };
196
- export type { AXPopupConfig, AXPopupContentType, AXPopupData, AXPopupRef, AXPopupSizeType };
119
+ export { AXPopupComponent, AXPopupModule, AXPopupService };
120
+ export type { AXPopupConfig, AXPopupContentType, AXPopupData, AXPopupSizeType };