@acorex/components 21.0.1-next.10 → 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 +78 -91
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/package.json +15 -15
- package/popup/index.d.ts +37 -42
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';
|
|
@@ -16,7 +16,9 @@ interface AXPopupConfig {
|
|
|
16
16
|
header?: boolean;
|
|
17
17
|
maximizable?: boolean;
|
|
18
18
|
size?: AXPopupSizeType;
|
|
19
|
+
/** @deprecated Use `inputs` instead to pass data to the popup component. */
|
|
19
20
|
data?: unknown;
|
|
21
|
+
inputs?: unknown;
|
|
20
22
|
draggable?: boolean;
|
|
21
23
|
hasBackdrop?: boolean;
|
|
22
24
|
backdropClass?: string;
|
|
@@ -53,43 +55,6 @@ declare abstract class AXPopupComponentBase {
|
|
|
53
55
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPopupComponentBase, never, never, { "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
54
56
|
}
|
|
55
57
|
|
|
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
|
-
|
|
93
58
|
/**
|
|
94
59
|
* The Popup is a component which displays content in a dialog overlay
|
|
95
60
|
*
|
|
@@ -97,7 +62,6 @@ declare class AXPopupStateService {
|
|
|
97
62
|
*/
|
|
98
63
|
declare class AXPopupComponent extends MXBaseComponent implements OnInit, OnDestroy {
|
|
99
64
|
private _zone;
|
|
100
|
-
private _document;
|
|
101
65
|
private loadingService;
|
|
102
66
|
private _platform;
|
|
103
67
|
private componentService;
|
|
@@ -179,7 +143,8 @@ declare class AXPopupModule {
|
|
|
179
143
|
* @category Components
|
|
180
144
|
*/
|
|
181
145
|
declare class AXPopupService {
|
|
182
|
-
private
|
|
146
|
+
private popupList;
|
|
147
|
+
private overlayService;
|
|
183
148
|
/**
|
|
184
149
|
* Open popup 1
|
|
185
150
|
*/
|
|
@@ -188,9 +153,39 @@ declare class AXPopupService {
|
|
|
188
153
|
* Open popup 2
|
|
189
154
|
*/
|
|
190
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;
|
|
191
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupService, never>;
|
|
192
187
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPopupService>;
|
|
193
188
|
}
|
|
194
189
|
|
|
195
|
-
export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService
|
|
190
|
+
export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService };
|
|
196
191
|
export type { AXPopupConfig, AXPopupContentType, AXPopupData, AXPopupRef, AXPopupSizeType };
|