@acorex/components 21.0.1-next.11 → 21.0.1-next.12
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.
- package/fesm2022/acorex-components-notification.mjs +16 -12
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +1 -1
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +73 -86
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/package.json +19 -19
- package/popup/index.d.ts +35 -41
package/popup/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AXComponentType, AXComponentInputs } from '@acorex/core/components';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
2
|
import { TemplateRef, ViewContainerRef, StaticProvider, OnInit, OnDestroy } from '@angular/core';
|
|
4
|
-
import { Subject } from 'rxjs';
|
|
5
3
|
import * as i2 from '@acorex/cdk/common';
|
|
6
4
|
import { MXBaseComponent, AXComponentClosedPromise } from '@acorex/cdk/common';
|
|
5
|
+
import { AXComponentType, AXComponentInputs } from '@acorex/core/components';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
8
8
|
import * as i3 from '@acorex/components/decorators';
|
|
9
9
|
import * as i4 from '@acorex/core/translation';
|
|
@@ -55,43 +55,6 @@ declare abstract class AXPopupComponentBase {
|
|
|
55
55
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPopupComponentBase, never, never, { "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
declare class AXPopupStateService {
|
|
59
|
-
private popupList;
|
|
60
|
-
private overlayService;
|
|
61
|
-
/**
|
|
62
|
-
* Opens a popup with the specified content and configuration.
|
|
63
|
-
* @param content - Component or template to display
|
|
64
|
-
* @param config - Configuration options for the popup
|
|
65
|
-
* @returns Promise<AXPopupRef> - Reference to the opened popup
|
|
66
|
-
*/
|
|
67
|
-
open<TResult = any>(content: AXPopupContentType, config: AXPopupConfig): Promise<AXPopupRef<TResult>>;
|
|
68
|
-
/**
|
|
69
|
-
* Closes a popup by its ID.
|
|
70
|
-
* @param id - The popup ID to close
|
|
71
|
-
* @param data - Optional data to pass to the close event
|
|
72
|
-
*/
|
|
73
|
-
close<TResult = any>(id: number, data?: TResult): Promise<void>;
|
|
74
|
-
/**
|
|
75
|
-
* Sets input values for a popup by its ID.
|
|
76
|
-
* @param id - The popup ID
|
|
77
|
-
* @param values - Object containing input values to set
|
|
78
|
-
*/
|
|
79
|
-
setInputs(id: number, values: AXComponentInputs): Promise<void>;
|
|
80
|
-
/**
|
|
81
|
-
* Sets the title for a popup by its ID.
|
|
82
|
-
* @param id - The popup ID
|
|
83
|
-
* @param title - The new title
|
|
84
|
-
*/
|
|
85
|
-
setTitle(id: number, title: string): Promise<void>;
|
|
86
|
-
/**
|
|
87
|
-
* Brings a popup to the front of all other overlays.
|
|
88
|
-
* @param id - The popup ID to bring to front
|
|
89
|
-
*/
|
|
90
|
-
bringToFront(id: number): void;
|
|
91
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupStateService, never>;
|
|
92
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXPopupStateService>;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
58
|
/**
|
|
96
59
|
* The Popup is a component which displays content in a dialog overlay
|
|
97
60
|
*
|
|
@@ -180,7 +143,8 @@ declare class AXPopupModule {
|
|
|
180
143
|
* @category Components
|
|
181
144
|
*/
|
|
182
145
|
declare class AXPopupService {
|
|
183
|
-
private
|
|
146
|
+
private popupList;
|
|
147
|
+
private overlayService;
|
|
184
148
|
/**
|
|
185
149
|
* Open popup 1
|
|
186
150
|
*/
|
|
@@ -189,9 +153,39 @@ declare class AXPopupService {
|
|
|
189
153
|
* Open popup 2
|
|
190
154
|
*/
|
|
191
155
|
open(content: AXPopupContentType, config?: AXPopupConfig): AXComponentClosedPromise;
|
|
156
|
+
/**
|
|
157
|
+
* Opens a popup with the specified content and configuration.
|
|
158
|
+
* @param content - Component or template to display
|
|
159
|
+
* @param config - Configuration options for the popup
|
|
160
|
+
* @returns Promise<AXPopupRef> - Reference to the opened popup
|
|
161
|
+
*/
|
|
162
|
+
private openInternal;
|
|
163
|
+
/**
|
|
164
|
+
* Closes a popup by its ID.
|
|
165
|
+
* @param id - The popup ID to close
|
|
166
|
+
* @param data - Optional data to pass to the close event
|
|
167
|
+
*/
|
|
168
|
+
close<TResult = any>(id: number, data?: TResult): void;
|
|
169
|
+
/**
|
|
170
|
+
* Sets input values for a popup by its ID.
|
|
171
|
+
* @param id - The popup ID
|
|
172
|
+
* @param values - Object containing input values to set
|
|
173
|
+
*/
|
|
174
|
+
setInputs(id: number, values: AXComponentInputs): void;
|
|
175
|
+
/**
|
|
176
|
+
* Sets the title for a popup by its ID.
|
|
177
|
+
* @param id - The popup ID
|
|
178
|
+
* @param title - The new title
|
|
179
|
+
*/
|
|
180
|
+
setTitle(id: number, title: string): void;
|
|
181
|
+
/**
|
|
182
|
+
* Brings a popup to the front of all other overlays.
|
|
183
|
+
* @param id - The popup ID to bring to front
|
|
184
|
+
*/
|
|
185
|
+
bringToFront(id: number): void;
|
|
192
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupService, never>;
|
|
193
187
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPopupService>;
|
|
194
188
|
}
|
|
195
189
|
|
|
196
|
-
export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService
|
|
190
|
+
export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService };
|
|
197
191
|
export type { AXPopupConfig, AXPopupContentType, AXPopupData, AXPopupRef, AXPopupSizeType };
|