@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.
- package/action-sheet/index.d.ts +19 -41
- package/dialog/index.d.ts +14 -18
- package/dropdown/index.d.ts +4 -3
- package/fesm2022/acorex-components-action-sheet.mjs +93 -141
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation2.mjs +2 -2
- package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +45 -66
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +4 -0
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +2 -2
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-loading-dialog.mjs +36 -73
- package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +5 -26
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/{acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs → acorex-components-modal-acorex-components-modal-CXXcFToK.mjs} +3 -27
- package/fesm2022/acorex-components-modal-acorex-components-modal-CXXcFToK.mjs.map +1 -0
- package/fesm2022/{acorex-components-modal-modal-content.component-CSJU1vRi.mjs → acorex-components-modal-modal-content.component-B4rhHeEz.mjs} +2 -2
- package/fesm2022/{acorex-components-modal-modal-content.component-CSJU1vRi.mjs.map → acorex-components-modal-modal-content.component-B4rhHeEz.mjs.map} +1 -1
- package/fesm2022/acorex-components-modal.mjs +1 -1
- package/fesm2022/acorex-components-notification.mjs +257 -374
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +175 -136
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +105 -308
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-routing-progress.mjs +2 -2
- package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +1195 -136
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +123 -231
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +3 -2
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/loading-dialog/index.d.ts +15 -31
- package/menu/index.d.ts +0 -4
- package/modal/index.d.ts +0 -7
- package/notification/index.d.ts +32 -47
- package/package.json +7 -7
- package/popover/index.d.ts +27 -20
- package/popup/index.d.ts +27 -103
- package/scheduler/index.d.ts +281 -27
- package/toast/index.d.ts +18 -24
- package/tooltip/index.d.ts +2 -1
- 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
|
|
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
|
|
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 '@
|
|
9
|
-
import * as i4 from '@
|
|
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> |
|
|
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
|
|
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
|
|
48
|
+
declare class AXPopupComponent extends MXBaseComponent implements OnInit {
|
|
99
49
|
private _zone;
|
|
100
|
-
private
|
|
50
|
+
private _viewContainerRef;
|
|
101
51
|
private loadingService;
|
|
102
52
|
private _platform;
|
|
103
|
-
|
|
104
|
-
private
|
|
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
|
-
|
|
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
|
|
125
|
-
x: number;
|
|
126
|
-
y: number;
|
|
127
|
-
}>;
|
|
65
|
+
protected _footerPortal: Portal<unknown>;
|
|
128
66
|
/** @ignore */
|
|
129
|
-
|
|
67
|
+
protected _headerPortal: Portal<unknown>;
|
|
130
68
|
/** @ignore */
|
|
131
|
-
private
|
|
69
|
+
private _componentRef;
|
|
132
70
|
/** @ignore */
|
|
133
71
|
ngOnInit(): void;
|
|
134
72
|
/** @ignore */
|
|
135
|
-
|
|
73
|
+
protected _handleAttched(ref: CdkPortalOutletAttachedRef): void;
|
|
136
74
|
/** @ignore */
|
|
137
|
-
|
|
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
|
|
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, {
|
|
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.
|
|
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
|
|
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,
|
|
196
|
-
export type { AXPopupConfig, AXPopupContentType, AXPopupData,
|
|
119
|
+
export { AXPopupComponent, AXPopupModule, AXPopupService };
|
|
120
|
+
export type { AXPopupConfig, AXPopupContentType, AXPopupData, AXPopupSizeType };
|