@acorex/components 21.0.1-next.13 → 21.0.1-next.15
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/accordion/index.d.ts +1 -0
- package/action-sheet/index.d.ts +41 -19
- package/button-group/index.d.ts +4 -6
- package/chips/index.d.ts +8 -3
- package/collapse/index.d.ts +6 -4
- package/conversation2/README.md +71 -31
- package/conversation2/index.d.ts +36 -35
- package/data-table/index.d.ts +253 -4
- package/dialog/index.d.ts +19 -15
- package/dropdown/index.d.ts +3 -4
- package/fesm2022/acorex-components-accordion.mjs +13 -8
- package/fesm2022/acorex-components-accordion.mjs.map +1 -1
- package/fesm2022/acorex-components-action-sheet.mjs +141 -93
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +6 -6
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +4 -5
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +3 -3
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +3 -3
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +2 -2
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +2 -2
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +11 -15
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +5 -5
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +4 -4
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +3 -3
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +8 -6
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +4 -6
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +10 -13
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +2 -2
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +2 -2
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-command.mjs +2 -2
- package/fesm2022/acorex-components-command.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +8 -8
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation.mjs +2 -2
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation2.mjs +161 -155
- package/fesm2022/acorex-components-conversation2.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-data-list.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +2 -2
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +452 -16
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +2 -2
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +2 -2
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +12 -10
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +13 -20
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +67 -47
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer-legacy.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +7 -6
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +2 -2
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +12 -13
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-editor.mjs +4 -4
- package/fesm2022/acorex-components-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-file-explorer.mjs.map +1 -1
- package/fesm2022/acorex-components-flow-chart.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +9 -17
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +5 -4
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-image-editor.mjs +18 -18
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +2 -2
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-json-viewer.mjs +2 -2
- package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-kanban.mjs +4 -6
- package/fesm2022/acorex-components-kanban.mjs.map +1 -1
- package/fesm2022/acorex-components-kbd.mjs +7 -25
- package/fesm2022/acorex-components-kbd.mjs.map +1 -1
- package/fesm2022/acorex-components-label.mjs +2 -2
- package/fesm2022/acorex-components-label.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +2 -2
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading-dialog.mjs +73 -36
- package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +8 -8
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +2 -2
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +10 -10
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +27 -6
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/{acorex-components-modal-acorex-components-modal-BnUdtPke.mjs → acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs} +29 -5
- package/fesm2022/acorex-components-modal-acorex-components-modal-Bmoz9DL5.mjs.map +1 -0
- package/fesm2022/{acorex-components-modal-modal-content.component-Cgq-wx_m.mjs → acorex-components-modal-modal-content.component-CSJU1vRi.mjs} +5 -7
- package/fesm2022/acorex-components-modal-modal-content.component-CSJU1vRi.mjs.map +1 -0
- package/fesm2022/acorex-components-modal.mjs +1 -1
- package/fesm2022/acorex-components-navbar.mjs +3 -3
- package/fesm2022/acorex-components-navbar.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +378 -250
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box-legacy.mjs +2 -2
- package/fesm2022/acorex-components-number-box-legacy.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +2 -2
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +2 -2
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-page.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +19 -14
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +4 -4
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-pdf-reader.mjs +2 -2
- package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +2 -2
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-picker.mjs +6 -6
- package/fesm2022/acorex-components-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +136 -175
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +296 -106
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +3 -5
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-qrcode.mjs +2 -2
- package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +2 -2
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +2 -2
- package/fesm2022/acorex-components-radio.mjs.map +1 -1
- package/fesm2022/acorex-components-rail-navigation.mjs +25 -27
- package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +3 -3
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs +29 -14
- package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +2 -2
- package/fesm2022/acorex-components-result.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-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +2 -2
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +18 -18
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-scss.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +3 -9
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +2 -4
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list-2.mjs +4 -4
- package/fesm2022/acorex-components-selection-list-2.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +2 -2
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +14 -63
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +2 -2
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
- package/fesm2022/acorex-components-slider.mjs +5 -5
- package/fesm2022/acorex-components-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-sliding-item.mjs +2 -2
- package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +2 -2
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +4 -4
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +2 -2
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag-box.mjs +2 -2
- package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +3 -3
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +2 -2
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +2 -2
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
- package/fesm2022/acorex-components-time-line.mjs +4 -4
- package/fesm2022/acorex-components-time-line.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +233 -125
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-toolbar.mjs +2 -2
- package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +26 -21
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view-legacy.mjs +7 -3
- package/fesm2022/acorex-components-tree-view-legacy.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +6 -6
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-video-player.mjs +2 -2
- package/fesm2022/acorex-components-video-player.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +12 -12
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/fesm2022/acorex-components.mjs.map +1 -1
- package/grid-layout-builder/index.d.ts +2 -1
- package/kbd/index.d.ts +7 -13
- package/loading/index.d.ts +1 -1
- package/loading-dialog/index.d.ts +31 -15
- package/menu/index.d.ts +4 -0
- package/modal/index.d.ts +7 -0
- package/notification/index.d.ts +47 -30
- package/package.json +3 -3
- package/paint/index.d.ts +6 -1
- package/popover/index.d.ts +20 -27
- package/popup/index.d.ts +98 -27
- package/rate-picker/index.d.ts +15 -5
- package/side-menu/index.d.ts +2 -9
- package/slider/index.d.ts +2 -2
- package/toast/index.d.ts +24 -18
- package/tooltip/index.d.ts +4 -5
- package/tree-view-legacy/index.d.ts +1 -0
- package/fesm2022/acorex-components-modal-acorex-components-modal-BnUdtPke.mjs.map +0 -1
- package/fesm2022/acorex-components-modal-modal-content.component-Cgq-wx_m.mjs.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AXStyleColorType, AXStyleLookType, AXHotKeyAction, MXBaseComponent } from '@acorex/cdk/common';
|
|
2
|
+
import { AXOverlayRef } from '@acorex/cdk/overlay';
|
|
2
3
|
import { AXDialogButtonItem } from '@acorex/components/dialog';
|
|
3
4
|
import { AXProgressMode } from '@acorex/components/progress-bar';
|
|
4
5
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { WritableSignal } from '@angular/core';
|
|
6
|
+
import { OnInit, WritableSignal } from '@angular/core';
|
|
6
7
|
|
|
7
8
|
interface AXLoadingDialogConfig {
|
|
8
9
|
title: string;
|
|
@@ -28,22 +29,36 @@ interface AXLoadingDialogButtonItem {
|
|
|
28
29
|
handled?: boolean;
|
|
29
30
|
}) => void;
|
|
30
31
|
}
|
|
31
|
-
interface
|
|
32
|
+
interface AXLoadingDialogRef {
|
|
32
33
|
close(): void;
|
|
33
|
-
setProgressValue(value: number):
|
|
34
|
-
setProgressText(text: string):
|
|
35
|
-
setDialogTitle(text: string):
|
|
36
|
-
setProgressColor(color: AXStyleColorType):
|
|
37
|
-
setProgressStatus(status: string):
|
|
34
|
+
setProgressValue(value: number): void;
|
|
35
|
+
setProgressText(text: string): void;
|
|
36
|
+
setDialogTitle(text: string): void;
|
|
37
|
+
setProgressColor(color: AXStyleColorType): void;
|
|
38
|
+
setProgressStatus(status: string): void;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Use AXLoadingDialogRef instead
|
|
42
|
+
*/
|
|
43
|
+
type AXDialogRef = AXLoadingDialogRef;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* Internal reference used by loading dialog service to manage overlay instances
|
|
47
|
+
*/
|
|
48
|
+
interface AXLoadingDialogInternalRef {
|
|
49
|
+
overlayRef: AXOverlayRef<unknown>;
|
|
50
|
+
close: () => void;
|
|
38
51
|
}
|
|
39
52
|
|
|
40
53
|
/**
|
|
41
54
|
* Represents a loading dialog component with custom styles and encapsulation.
|
|
42
55
|
* @category components
|
|
43
56
|
*/
|
|
44
|
-
declare class AXLoadingDialogComponent extends MXBaseComponent {
|
|
45
|
-
data
|
|
46
|
-
|
|
57
|
+
declare class AXLoadingDialogComponent extends MXBaseComponent implements OnInit {
|
|
58
|
+
/** Loading dialog configuration data */
|
|
59
|
+
data: i0.InputSignal<AXLoadingDialogConfig>;
|
|
60
|
+
/** @internal Callback function to close the dialog */
|
|
61
|
+
onClose: i0.InputSignal<() => void>;
|
|
47
62
|
/** @ignore */
|
|
48
63
|
protected progressText: WritableSignal<string>;
|
|
49
64
|
/** @ignore */
|
|
@@ -54,6 +69,7 @@ declare class AXLoadingDialogComponent extends MXBaseComponent {
|
|
|
54
69
|
protected dialogTitle: WritableSignal<string>;
|
|
55
70
|
/** @ignore */
|
|
56
71
|
protected progressValue: WritableSignal<number>;
|
|
72
|
+
ngOnInit(): void;
|
|
57
73
|
/**
|
|
58
74
|
* Closes the loading dialog.
|
|
59
75
|
*
|
|
@@ -100,7 +116,7 @@ declare class AXLoadingDialogComponent extends MXBaseComponent {
|
|
|
100
116
|
/** @ignore */
|
|
101
117
|
protected _hasAutoFocus(button: AXLoadingDialogButtonItem): boolean;
|
|
102
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXLoadingDialogComponent, never>;
|
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXLoadingDialogComponent, "ax-loading-dialog", never, {}, {}, never, never, true, never>;
|
|
119
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXLoadingDialogComponent, "ax-loading-dialog", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "onClose": { "alias": "onClose"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
104
120
|
}
|
|
105
121
|
|
|
106
122
|
declare class AXLoadingDialogModule {
|
|
@@ -110,17 +126,17 @@ declare class AXLoadingDialogModule {
|
|
|
110
126
|
}
|
|
111
127
|
|
|
112
128
|
declare class AXLoadingDialogService {
|
|
113
|
-
private
|
|
129
|
+
private overlayService;
|
|
114
130
|
/**
|
|
115
131
|
* Opens a loading dialog with the specified configuration.
|
|
116
132
|
*
|
|
117
133
|
* @param options Configuration for the loading dialog, including title, progress mode, and optional initial values.
|
|
118
|
-
* @returns
|
|
134
|
+
* @returns AXLoadingDialogRef - A reference with helper methods to control the dialog lifecycle and UI (close, setProgressValue, setProgressText, setDialogTitle, setProgressColor, setProgressStatus).
|
|
119
135
|
*/
|
|
120
|
-
show(options: AXLoadingDialogConfig):
|
|
136
|
+
show(options: AXLoadingDialogConfig): AXLoadingDialogRef;
|
|
121
137
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXLoadingDialogService, never>;
|
|
122
138
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXLoadingDialogService>;
|
|
123
139
|
}
|
|
124
140
|
|
|
125
141
|
export { AXLoadingDialogComponent, AXLoadingDialogModule, AXLoadingDialogService };
|
|
126
|
-
export type { AXDialogRef, AXLoadingDialogButtonItem, AXLoadingDialogConfig };
|
|
142
|
+
export type { AXDialogRef, AXLoadingDialogButtonItem, AXLoadingDialogConfig, AXLoadingDialogInternalRef, AXLoadingDialogRef };
|
package/menu/index.d.ts
CHANGED
|
@@ -65,6 +65,8 @@ declare class AXContextMenuComponent extends NXComponent {
|
|
|
65
65
|
private renderer;
|
|
66
66
|
private document;
|
|
67
67
|
private platformID;
|
|
68
|
+
private zIndexService;
|
|
69
|
+
private zToken;
|
|
68
70
|
/** @ignore */
|
|
69
71
|
constructor();
|
|
70
72
|
ngOnDestroy(): void;
|
|
@@ -127,6 +129,8 @@ declare class AXMenuItemComponent extends NXComponent implements OnDestroy {
|
|
|
127
129
|
private scrollableParents;
|
|
128
130
|
private unsuscriber;
|
|
129
131
|
private renderer;
|
|
132
|
+
private zIndexService;
|
|
133
|
+
private zToken;
|
|
130
134
|
protected arrowIcon: _angular_core.Signal<string>;
|
|
131
135
|
onClick: _angular_core.OutputEmitterRef<AXMenuItemClickEvent>;
|
|
132
136
|
name: _angular_core.InputSignal<string>;
|
package/modal/index.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ interface AXModalRef<TResult = any> {
|
|
|
33
33
|
restore: () => void;
|
|
34
34
|
close: (data?: TResult) => void;
|
|
35
35
|
setInputs: (values: AXComponentInputs) => void;
|
|
36
|
+
/** Brings this modal to the front of all other overlays */
|
|
37
|
+
bringToFront: () => void;
|
|
36
38
|
onClose: Subject<TResult>;
|
|
37
39
|
}
|
|
38
40
|
declare abstract class AXModalComponentBase {
|
|
@@ -41,6 +43,7 @@ declare abstract class AXModalComponentBase {
|
|
|
41
43
|
minimize(): void;
|
|
42
44
|
restore(): void;
|
|
43
45
|
maximize(): void;
|
|
46
|
+
bringToFront(): void;
|
|
44
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXModalComponentBase, never>;
|
|
45
48
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AXModalComponentBase, never, never, { "__modal__": { "alias": "__modal__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
46
49
|
}
|
|
@@ -117,6 +120,10 @@ declare class AXModalService {
|
|
|
117
120
|
* Restores the modal from minimized or maximized state.
|
|
118
121
|
*/
|
|
119
122
|
restore(): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Brings the modal to the front of all other overlays.
|
|
125
|
+
*/
|
|
126
|
+
bringToFront(): void;
|
|
120
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXModalService, never>;
|
|
121
128
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXModalService>;
|
|
122
129
|
}
|
package/notification/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { AXStyleColorType, AXStyleLookType, AXLocation, MXBaseComponent
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { TemplateRef, OnInit, InjectionToken } from '@angular/core';
|
|
5
|
-
import { DialogRef } from '@angular/cdk/dialog';
|
|
1
|
+
import { AXStyleColorType, AXStyleLookType, AXLocation, MXBaseComponent } from '@acorex/cdk/common';
|
|
2
|
+
import { AXOverlayRef } from '@acorex/cdk/overlay';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { TemplateRef, Type, OnInit, InjectionToken } from '@angular/core';
|
|
6
5
|
|
|
7
|
-
type AXNotificationContentType = string | TemplateRef<unknown> |
|
|
6
|
+
type AXNotificationContentType = string | TemplateRef<unknown> | Type<unknown>;
|
|
8
7
|
interface AXNotificationButtonItem {
|
|
9
8
|
color?: AXStyleColorType;
|
|
10
9
|
look?: AXStyleLookType;
|
|
@@ -43,6 +42,16 @@ interface AXNotificationData {
|
|
|
43
42
|
interface AXNotificationRef {
|
|
44
43
|
close(): void;
|
|
45
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* Internal reference used by notification service to manage overlay instances
|
|
48
|
+
*/
|
|
49
|
+
interface AXNotificationInternalRef {
|
|
50
|
+
id: string;
|
|
51
|
+
overlayRef: AXOverlayRef<unknown>;
|
|
52
|
+
config: AXNotificationData;
|
|
53
|
+
close: () => void;
|
|
54
|
+
}
|
|
46
55
|
|
|
47
56
|
/**
|
|
48
57
|
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
@@ -50,33 +59,40 @@ interface AXNotificationRef {
|
|
|
50
59
|
* @category Components
|
|
51
60
|
*/
|
|
52
61
|
declare class AXNotificationComponent extends MXBaseComponent implements OnInit {
|
|
53
|
-
|
|
54
|
-
|
|
62
|
+
/** Notification configuration data */
|
|
63
|
+
config: _angular_core.InputSignal<AXNotificationData>;
|
|
64
|
+
/** @internal Callback function to close the notification */
|
|
65
|
+
onClose: _angular_core.InputSignal<() => void>;
|
|
66
|
+
private notificationService;
|
|
55
67
|
/** @ignore */
|
|
56
|
-
|
|
57
|
-
/** @ignore */
|
|
58
|
-
_icon: string;
|
|
68
|
+
protected _icon: string;
|
|
59
69
|
private intervalId;
|
|
60
70
|
private isPaused;
|
|
61
|
-
protected remainingTime:
|
|
62
|
-
protected transitionDuration:
|
|
71
|
+
protected remainingTime: _angular_core.WritableSignal<number>;
|
|
72
|
+
protected transitionDuration: _angular_core.WritableSignal<number>;
|
|
73
|
+
/** Template content if config.content is a TemplateRef */
|
|
74
|
+
protected templateContent: _angular_core.Signal<TemplateRef<unknown>>;
|
|
75
|
+
/** Component content if config.content is a component Type */
|
|
76
|
+
protected componentContent: _angular_core.Signal<Type<unknown>>;
|
|
77
|
+
/** String content if config.content is a string */
|
|
78
|
+
protected stringContent: _angular_core.Signal<string>;
|
|
63
79
|
ngOnInit(): void;
|
|
64
80
|
private pauseAnimation;
|
|
65
81
|
private _handleTimeOut;
|
|
66
82
|
/** @ignore */
|
|
67
|
-
private _initContent;
|
|
68
|
-
/** @ignore */
|
|
69
83
|
private _initIcon;
|
|
70
84
|
/** @ignore */
|
|
71
|
-
protected get _stringContent(): string;
|
|
72
|
-
/** @ignore */
|
|
73
85
|
protected _handleButtonClick(button: AXNotificationButtonItem): void;
|
|
74
86
|
/**
|
|
75
|
-
* Closes the
|
|
87
|
+
* Closes the notification.
|
|
76
88
|
*/
|
|
77
89
|
close(): void;
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
/**
|
|
91
|
+
* Closes all notifications.
|
|
92
|
+
*/
|
|
93
|
+
closeAll(): void;
|
|
94
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXNotificationComponent, never>;
|
|
95
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXNotificationComponent, "ax-notification", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "onClose": { "alias": "onClose"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
80
96
|
}
|
|
81
97
|
|
|
82
98
|
interface AXNotificationConfig {
|
|
@@ -94,18 +110,18 @@ type PartialNotificationConfig = Partial<AXNotificationConfig>;
|
|
|
94
110
|
declare function notificationConfig(config?: PartialNotificationConfig): AXNotificationConfig;
|
|
95
111
|
|
|
96
112
|
declare class AXNotificationModule {
|
|
97
|
-
static ɵfac:
|
|
98
|
-
static ɵmod:
|
|
99
|
-
static ɵinj:
|
|
113
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXNotificationModule, never>;
|
|
114
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXNotificationModule, never, [typeof AXNotificationComponent], [typeof AXNotificationComponent]>;
|
|
115
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXNotificationModule>;
|
|
100
116
|
}
|
|
101
117
|
|
|
102
118
|
declare class AXNotificationService {
|
|
103
|
-
private
|
|
119
|
+
private overlayService;
|
|
104
120
|
private translationService;
|
|
105
121
|
private defaultConfig;
|
|
106
122
|
private activeNotifications;
|
|
107
123
|
private reservedNotifications;
|
|
108
|
-
private
|
|
124
|
+
private notificationCounterRef;
|
|
109
125
|
private moreNotificationsColor;
|
|
110
126
|
private moreNotificationsLocation;
|
|
111
127
|
private reserveCounter;
|
|
@@ -114,14 +130,15 @@ declare class AXNotificationService {
|
|
|
114
130
|
hideAll(): void;
|
|
115
131
|
private handleShowReservedNotification;
|
|
116
132
|
private handleReservedNotificationCounter;
|
|
117
|
-
private
|
|
133
|
+
private createReservedCounterNotification;
|
|
134
|
+
private positionNotification;
|
|
118
135
|
private reposition;
|
|
119
136
|
private getRepositionPosition;
|
|
137
|
+
private applyRepositionPosition;
|
|
120
138
|
private getPosition;
|
|
121
|
-
|
|
122
|
-
static
|
|
123
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXNotificationService>;
|
|
139
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXNotificationService, never>;
|
|
140
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXNotificationService>;
|
|
124
141
|
}
|
|
125
142
|
|
|
126
143
|
export { AXNotificationComponent, AXNotificationDefaultConfig, AXNotificationModule, AXNotificationService, AX_NOTIFICATION_CONFIG, notificationConfig };
|
|
127
|
-
export type { AXNotificationButtonItem, AXNotificationConfig, AXNotificationContentType, AXNotificationData, AXNotificationOptions, AXNotificationRef, PartialNotificationConfig };
|
|
144
|
+
export type { AXNotificationButtonItem, AXNotificationConfig, AXNotificationContentType, AXNotificationData, AXNotificationInternalRef, AXNotificationOptions, AXNotificationRef, PartialNotificationConfig };
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/components",
|
|
3
|
-
"version": "21.0.1-next.
|
|
3
|
+
"version": "21.0.1-next.15",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@acorex/core": "21.0.1-next.
|
|
6
|
-
"@acorex/cdk": "21.0.1-next.
|
|
5
|
+
"@acorex/core": "21.0.1-next.15",
|
|
6
|
+
"@acorex/cdk": "21.0.1-next.15",
|
|
7
7
|
"@angular/common": "^20.0.0",
|
|
8
8
|
"@angular/core": "^20.0.0",
|
|
9
9
|
"@angular/cdk": "^20.0.0",
|
package/paint/index.d.ts
CHANGED
|
@@ -98,6 +98,11 @@ declare class AXPaintViewComponent implements OnDestroy {
|
|
|
98
98
|
protected hostElem: ElementRef<any>;
|
|
99
99
|
/** @ignore */
|
|
100
100
|
private resizeEvent;
|
|
101
|
+
/**
|
|
102
|
+
* Specifies the class that pass to component.
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
readonly customClass: _angular_core.InputSignal<string>;
|
|
101
106
|
readonly paintBackgroundColor: _angular_core.InputSignal<"black" | "white">;
|
|
102
107
|
/** @ignore */
|
|
103
108
|
protected canvasElem: _angular_core.Signal<ElementRef<HTMLCanvasElement>>;
|
|
@@ -129,7 +134,7 @@ declare class AXPaintViewComponent implements OnDestroy {
|
|
|
129
134
|
getOutPut(e: 'image/webp' | 'image/png' | 'image/jpeg'): void;
|
|
130
135
|
get __hostClass(): string[];
|
|
131
136
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPaintViewComponent, never>;
|
|
132
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPaintViewComponent, "ax-paint-view", never, { "paintBackgroundColor": { "alias": "paintBackgroundColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
137
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPaintViewComponent, "ax-paint-view", never, { "customClass": { "alias": "class"; "required": false; "isSignal": true; }; "paintBackgroundColor": { "alias": "paintBackgroundColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
133
138
|
}
|
|
134
139
|
|
|
135
140
|
declare class AXPaintToolsSelectorComponent {
|
package/popover/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnDestroy, ElementRef, ComponentRef, TemplateRef, EventEmitter } from '@angular/core';
|
|
3
3
|
import { MXBaseComponent, AXPlacementType, AXEvent } from '@acorex/cdk/common';
|
|
4
|
-
import {
|
|
4
|
+
import { AXComponentType } from '@acorex/core/components';
|
|
5
5
|
import * as i1 from '@angular/common';
|
|
6
6
|
|
|
7
7
|
type AXPopoverOpenTrigger = 'manual' | 'click' | 'hover' | 'toggle';
|
|
@@ -11,27 +11,19 @@ type AXPopoverCloseTrigger = 'manual' | 'clickOut' | 'leave';
|
|
|
11
11
|
* A popover component with custom encapsulation and change detection settings.
|
|
12
12
|
*/
|
|
13
13
|
declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
14
|
-
|
|
14
|
+
private platform;
|
|
15
15
|
private document;
|
|
16
16
|
private platformID;
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
/** @ignore */
|
|
20
|
-
private _platform;
|
|
21
|
-
/** @ignore */
|
|
22
|
-
private _overlay;
|
|
17
|
+
private overlayService;
|
|
18
|
+
private onKeyDownHandler;
|
|
23
19
|
/** @ignore */
|
|
24
20
|
private _overlayRef;
|
|
25
21
|
/** @ignore */
|
|
26
|
-
private _isMouseOverButton;
|
|
27
|
-
/** @ignore */
|
|
28
|
-
private _isMouseOverTooltip;
|
|
29
|
-
/** @ignore */
|
|
30
22
|
private _lastActiveElement;
|
|
31
23
|
/** @ignore */
|
|
32
24
|
private _targetEvents;
|
|
33
25
|
/** @ignore */
|
|
34
|
-
private
|
|
26
|
+
private _outsideClickHandler;
|
|
35
27
|
/** @ignore */
|
|
36
28
|
private resizeObserver;
|
|
37
29
|
/** @ignore */
|
|
@@ -76,7 +68,7 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
|
76
68
|
*/
|
|
77
69
|
set target(v: Element | ElementRef | MXBaseComponent);
|
|
78
70
|
/** @ignore */
|
|
79
|
-
private
|
|
71
|
+
private _defaultPlacements;
|
|
80
72
|
/** @ignore */
|
|
81
73
|
private _placements;
|
|
82
74
|
/** @ignore */
|
|
@@ -90,13 +82,11 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
|
90
82
|
*/
|
|
91
83
|
set placement(v: AXPlacementType);
|
|
92
84
|
/** @ignore */
|
|
93
|
-
private _portal;
|
|
94
|
-
/** @ignore */
|
|
95
85
|
private _componentRef;
|
|
96
86
|
/**
|
|
97
87
|
* Gets the reference to the component.
|
|
98
88
|
*/
|
|
99
|
-
get componentRef(): ComponentRef<unknown
|
|
89
|
+
get componentRef(): ComponentRef<unknown> | null;
|
|
100
90
|
/**
|
|
101
91
|
* Holds the context data for the component.
|
|
102
92
|
*/
|
|
@@ -106,7 +96,7 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
|
106
96
|
/**
|
|
107
97
|
* Defines the content to be displayed, which can be a template or a component.
|
|
108
98
|
*/
|
|
109
|
-
content: TemplateRef<unknown> |
|
|
99
|
+
content: TemplateRef<unknown> | AXComponentType<unknown>;
|
|
110
100
|
/** @ignore */
|
|
111
101
|
private _openOn;
|
|
112
102
|
/**
|
|
@@ -125,7 +115,6 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
|
125
115
|
get closeOn(): AXPopoverCloseTrigger;
|
|
126
116
|
/**
|
|
127
117
|
* Sets the trigger for closing the popover and rebinds target events.
|
|
128
|
-
* @param v
|
|
129
118
|
*/
|
|
130
119
|
set closeOn(v: AXPopoverCloseTrigger);
|
|
131
120
|
/**
|
|
@@ -145,7 +134,7 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
|
145
134
|
*/
|
|
146
135
|
backdropClass: string;
|
|
147
136
|
/**
|
|
148
|
-
* CSS class to apply to the
|
|
137
|
+
* CSS class to apply to the panel element.
|
|
149
138
|
*/
|
|
150
139
|
panelClass: string;
|
|
151
140
|
/**
|
|
@@ -167,10 +156,6 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
|
167
156
|
/** @ignore */
|
|
168
157
|
private _emitOnClosedEvent;
|
|
169
158
|
/** @ignore */
|
|
170
|
-
protected _handleMouseEnter(e: MouseEvent): void;
|
|
171
|
-
/** @ignore */
|
|
172
|
-
protected _handleMouseLeave(e: MouseEvent): void;
|
|
173
|
-
/** @ignore */
|
|
174
159
|
private removeTargetEvents;
|
|
175
160
|
/** @ignore */
|
|
176
161
|
private bindTargetEvents;
|
|
@@ -178,6 +163,8 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
|
178
163
|
private bindOverlayEvents;
|
|
179
164
|
/** @ignore */
|
|
180
165
|
private removeOverlayEvents;
|
|
166
|
+
/** @ignore */
|
|
167
|
+
private handleOverlayDisposed;
|
|
181
168
|
/**
|
|
182
169
|
* Toggles the component's open state.
|
|
183
170
|
*/
|
|
@@ -189,7 +176,11 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
|
189
176
|
/**
|
|
190
177
|
* Opens the component if it's not already open, saves focus, opens the overlay, and emits the opened event.
|
|
191
178
|
*/
|
|
192
|
-
open(): void
|
|
179
|
+
open(): Promise<void>;
|
|
180
|
+
/** @ignore */
|
|
181
|
+
private addKeyDownListener;
|
|
182
|
+
/** @ignore */
|
|
183
|
+
private removeKeyDownListener;
|
|
193
184
|
/** @ignore */
|
|
194
185
|
private saveFocus;
|
|
195
186
|
/** @ignore */
|
|
@@ -207,8 +198,6 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
|
207
198
|
*/
|
|
208
199
|
get isActionsheetStyle(): boolean;
|
|
209
200
|
/** @ignore */
|
|
210
|
-
private updatePositionStrategy;
|
|
211
|
-
/** @ignore */
|
|
212
201
|
private updateOffset;
|
|
213
202
|
/**
|
|
214
203
|
* Updates the position of the overlay and focuses on it.
|
|
@@ -218,6 +207,10 @@ declare class AXPopoverComponent extends MXBaseComponent implements OnDestroy {
|
|
|
218
207
|
* Focuses the overlay element.
|
|
219
208
|
*/
|
|
220
209
|
focus(): void;
|
|
210
|
+
/**
|
|
211
|
+
* Brings this popover to the front of all other overlays.
|
|
212
|
+
*/
|
|
213
|
+
bringToFront(): void;
|
|
221
214
|
/** @ignore */
|
|
222
215
|
private initializeResizeObserver;
|
|
223
216
|
/** @ignore */
|
package/popup/index.d.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import * as i5 from '@angular/cdk/portal';
|
|
2
|
-
import { ComponentType, Portal, CdkPortalOutletAttachedRef } from '@angular/cdk/portal';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { TemplateRef, ViewContainerRef, StaticProvider, OnInit } from '@angular/core';
|
|
2
|
+
import { TemplateRef, ViewContainerRef, StaticProvider, OnInit, OnDestroy } from '@angular/core';
|
|
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
|
-
import * as i3 from '@
|
|
9
|
-
import * as i4 from '@
|
|
10
|
-
import * as i6 from '@acorex/components/decorators';
|
|
11
|
-
import * as i7 from '@angular/cdk/dialog';
|
|
12
|
-
import * as i8 from '@acorex/core/translation';
|
|
8
|
+
import * as i3 from '@acorex/components/decorators';
|
|
9
|
+
import * as i4 from '@acorex/core/translation';
|
|
13
10
|
|
|
14
|
-
type AXPopupContentType = TemplateRef<unknown> |
|
|
11
|
+
type AXPopupContentType = TemplateRef<unknown> | AXComponentType<unknown>;
|
|
15
12
|
type AXPopupSizeType = 'sm' | 'md' | 'lg' | 'full' | 'fit';
|
|
16
13
|
interface AXPopupConfig {
|
|
17
14
|
title?: string;
|
|
@@ -19,7 +16,9 @@ interface AXPopupConfig {
|
|
|
19
16
|
header?: boolean;
|
|
20
17
|
maximizable?: boolean;
|
|
21
18
|
size?: AXPopupSizeType;
|
|
19
|
+
/** @deprecated Use `inputs` instead to pass data to the popup component. */
|
|
22
20
|
data?: unknown;
|
|
21
|
+
inputs?: unknown;
|
|
23
22
|
draggable?: boolean;
|
|
24
23
|
hasBackdrop?: boolean;
|
|
25
24
|
backdropClass?: string;
|
|
@@ -39,19 +38,39 @@ interface AXPopupData {
|
|
|
39
38
|
draggable: boolean;
|
|
40
39
|
content: AXPopupContentType;
|
|
41
40
|
}
|
|
41
|
+
interface AXPopupRef<TResult = any> {
|
|
42
|
+
close: (data?: TResult) => void;
|
|
43
|
+
setInputs: (values: AXComponentInputs) => void;
|
|
44
|
+
setTitle: (title: string) => void;
|
|
45
|
+
/** Brings this popup to the front of all other overlays */
|
|
46
|
+
bringToFront: () => void;
|
|
47
|
+
onClose: Subject<TResult>;
|
|
48
|
+
}
|
|
49
|
+
declare abstract class AXPopupComponentBase {
|
|
50
|
+
__popup__: i0.InputSignal<AXPopupRef<any>>;
|
|
51
|
+
close(data?: any): void;
|
|
52
|
+
setTitle(title: string): void;
|
|
53
|
+
bringToFront(): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupComponentBase, never>;
|
|
55
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPopupComponentBase, never, never, { "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
56
|
+
}
|
|
42
57
|
|
|
43
58
|
/**
|
|
44
|
-
* The
|
|
59
|
+
* The Popup is a component which displays content in a dialog overlay
|
|
45
60
|
*
|
|
46
61
|
* @category Components
|
|
47
62
|
*/
|
|
48
|
-
declare class AXPopupComponent extends MXBaseComponent implements OnInit {
|
|
63
|
+
declare class AXPopupComponent extends MXBaseComponent implements OnInit, OnDestroy {
|
|
49
64
|
private _zone;
|
|
50
|
-
private _viewContainerRef;
|
|
51
65
|
private loadingService;
|
|
52
66
|
private _platform;
|
|
53
|
-
|
|
54
|
-
private
|
|
67
|
+
private componentService;
|
|
68
|
+
private contentContainerRef;
|
|
69
|
+
private contentContainerEl;
|
|
70
|
+
readonly __content__: i0.InputSignal<AXPopupContentType>;
|
|
71
|
+
readonly __config__: i0.InputSignal<AXPopupConfig>;
|
|
72
|
+
readonly __popupRef__: i0.InputSignal<AXPopupRef<any>>;
|
|
73
|
+
readonly __id__: i0.InputSignal<number>;
|
|
55
74
|
/**
|
|
56
75
|
* Indicates whether the component is loading.
|
|
57
76
|
* @defaultValue true
|
|
@@ -60,19 +79,28 @@ declare class AXPopupComponent extends MXBaseComponent implements OnInit {
|
|
|
60
79
|
/** @ignore */
|
|
61
80
|
private _loadingId;
|
|
62
81
|
/** @ignore */
|
|
63
|
-
|
|
82
|
+
private _componentRef;
|
|
83
|
+
/** Current title */
|
|
84
|
+
protected title: i0.WritableSignal<string>;
|
|
64
85
|
/** @ignore */
|
|
65
|
-
protected
|
|
86
|
+
protected isDragging: i0.WritableSignal<boolean>;
|
|
66
87
|
/** @ignore */
|
|
67
|
-
protected
|
|
88
|
+
protected dragOffset: i0.WritableSignal<{
|
|
89
|
+
x: number;
|
|
90
|
+
y: number;
|
|
91
|
+
}>;
|
|
68
92
|
/** @ignore */
|
|
69
|
-
private
|
|
93
|
+
private dragStartPos;
|
|
94
|
+
/** @ignore */
|
|
95
|
+
private elementStartPos;
|
|
70
96
|
/** @ignore */
|
|
71
97
|
ngOnInit(): void;
|
|
72
98
|
/** @ignore */
|
|
73
|
-
|
|
99
|
+
private renderContent;
|
|
74
100
|
/** @ignore */
|
|
75
|
-
|
|
101
|
+
private handleContentRendered;
|
|
102
|
+
/** @ignore */
|
|
103
|
+
onKeydownHandler(): void;
|
|
76
104
|
/** @ignore */
|
|
77
105
|
protected _handleCloseClick(): void;
|
|
78
106
|
/** @ignore */
|
|
@@ -82,17 +110,30 @@ declare class AXPopupComponent extends MXBaseComponent implements OnInit {
|
|
|
82
110
|
*/
|
|
83
111
|
focus(): void;
|
|
84
112
|
/**
|
|
85
|
-
* Closes the
|
|
113
|
+
* Closes the popup, emitting component reference, host element, and optional data.
|
|
86
114
|
* @param {unknown} [data]
|
|
87
115
|
*/
|
|
88
116
|
close(data?: unknown): void;
|
|
117
|
+
/**
|
|
118
|
+
* Sets inputs on the content component.
|
|
119
|
+
* @param values - Object containing input values to set
|
|
120
|
+
*/
|
|
121
|
+
setContentInputs(values: AXComponentInputs): void;
|
|
122
|
+
/**
|
|
123
|
+
* Sets the popup title.
|
|
124
|
+
* @param title - The new title
|
|
125
|
+
*/
|
|
126
|
+
setTitle(title: string): void;
|
|
127
|
+
protected onDragStart(event: MouseEvent): void;
|
|
128
|
+
onDragMove(event: MouseEvent): void;
|
|
129
|
+
onDragEnd(): void;
|
|
89
130
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupComponent, never>;
|
|
90
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPopupComponent, "ax-popup", never, {}, {}, never, never, true, never>;
|
|
131
|
+
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>;
|
|
91
132
|
}
|
|
92
133
|
|
|
93
134
|
declare class AXPopupModule {
|
|
94
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupModule, never>;
|
|
95
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPopupModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.
|
|
136
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPopupModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.AXDecoratorModule, typeof i4.AXTranslationModule, typeof AXPopupComponent], [typeof AXPopupComponent]>;
|
|
96
137
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXPopupModule>;
|
|
97
138
|
}
|
|
98
139
|
|
|
@@ -102,8 +143,8 @@ declare class AXPopupModule {
|
|
|
102
143
|
* @category Components
|
|
103
144
|
*/
|
|
104
145
|
declare class AXPopupService {
|
|
105
|
-
|
|
106
|
-
private
|
|
146
|
+
private popupList;
|
|
147
|
+
private overlayService;
|
|
107
148
|
/**
|
|
108
149
|
* Open popup 1
|
|
109
150
|
*/
|
|
@@ -112,9 +153,39 @@ declare class AXPopupService {
|
|
|
112
153
|
* Open popup 2
|
|
113
154
|
*/
|
|
114
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;
|
|
115
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPopupService, never>;
|
|
116
187
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPopupService>;
|
|
117
188
|
}
|
|
118
189
|
|
|
119
|
-
export { AXPopupComponent, AXPopupModule, AXPopupService };
|
|
120
|
-
export type { AXPopupConfig, AXPopupContentType, AXPopupData, AXPopupSizeType };
|
|
190
|
+
export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService };
|
|
191
|
+
export type { AXPopupConfig, AXPopupContentType, AXPopupData, AXPopupRef, AXPopupSizeType };
|