@acorex/components 22.0.0-next.2 → 22.0.0-next.21
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/combo-box/README.md +3 -0
- package/fesm2022/acorex-components-calendar.mjs +12 -14
- package/fesm2022/acorex-components-calendar.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-combo-box.mjs +669 -0
- package/fesm2022/acorex-components-combo-box.mjs.map +1 -0
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs +50 -0
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-DCcRJYfF.mjs.map +1 -0
- package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-Hh5Oyp3p.mjs → acorex-components-conversation-open-composer-picker-for-files-BuNEjswI.mjs} +2 -2
- package/fesm2022/{acorex-components-conversation-open-composer-picker-for-files-Hh5Oyp3p.mjs.map → acorex-components-conversation-open-composer-picker-for-files-BuNEjswI.mjs.map} +1 -1
- package/fesm2022/acorex-components-conversation.mjs +194 -5768
- package/fesm2022/acorex-components-conversation.mjs.map +1 -1
- package/fesm2022/acorex-components-cron-job.mjs +12 -12
- package/fesm2022/acorex-components-cron-job.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +44 -12
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +332 -312
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +11 -1
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +2 -2
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-file-viewer.mjs +346 -125
- package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +4 -3
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +265 -19
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +1170 -13712
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +211 -74
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +6 -6
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +388 -78
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-query-builder.mjs +6 -2
- package/fesm2022/acorex-components-query-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-rest-api-generator.mjs +2 -2
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-rrule.mjs +2 -2
- package/fesm2022/acorex-components-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +16 -16
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +2 -2
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +176 -451
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +0 -4
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/package.json +7 -7
- package/select-box/README.md +2 -0
- package/types/acorex-components-combo-box.d.ts +202 -0
- package/types/acorex-components-conversation.d.ts +11 -25
- package/types/acorex-components-datetime-box.d.ts +16 -4
- package/types/acorex-components-datetime-input.d.ts +62 -68
- package/types/acorex-components-file-viewer.d.ts +109 -17
- package/types/acorex-components-list.d.ts +65 -3
- package/types/acorex-components-map.d.ts +299 -45
- package/types/acorex-components-menu.d.ts +26 -4
- package/types/acorex-components-phone-box.d.ts +2 -2
- package/types/acorex-components-popup.d.ts +143 -35
- package/types/acorex-components-query-builder.d.ts +10 -9
- package/types/acorex-components-select-box.d.ts +36 -147
- package/types/acorex-components-selection-list.d.ts +1 -2
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-CNHiM1Sp.mjs +0 -106
- package/fesm2022/acorex-components-conversation-composer-action-choice-dialog.component-CNHiM1Sp.mjs.map +0 -1
- package/fesm2022/acorex-components-modal-acorex-components-modal-Djl-uo9b.mjs +0 -388
- package/fesm2022/acorex-components-modal-acorex-components-modal-Djl-uo9b.mjs.map +0 -1
- package/fesm2022/acorex-components-modal-modal-content.component-BpUsCI8D.mjs +0 -247
- package/fesm2022/acorex-components-modal-modal-content.component-BpUsCI8D.mjs.map +0 -1
- package/fesm2022/acorex-components-modal.mjs +0 -2
- package/fesm2022/acorex-components-modal.mjs.map +0 -1
- package/modal/README.md +0 -3
- package/types/acorex-components-modal.d.ts +0 -132
|
@@ -1,19 +1,36 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { TemplateRef, ViewContainerRef, StaticProvider, OnInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import * as i2 from '@acorex/cdk/common';
|
|
4
|
-
import { MXBaseComponent, AXComponentClosedPromise } from '@acorex/cdk/common';
|
|
4
|
+
import { NXComponent, MXBaseComponent, AXComponentClosedPromise } from '@acorex/cdk/common';
|
|
5
5
|
import { AXComponentType, AXComponentInputs } from '@acorex/core/components';
|
|
6
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';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
declare class AXPopupFooterComponent {
|
|
12
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPopupFooterComponent, never>;
|
|
13
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPopupFooterComponent, "ax-popup-footer", never, {}, {}, never, ["ax-prefix", "ax-suffix", "*"], true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type AXPopupContentType = TemplateRef<unknown> | AXComponentType<unknown> | HTMLElement;
|
|
12
17
|
type AXPopupSizeType = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full' | 'fit';
|
|
18
|
+
type AXPopupMinimizePosition = 'bottom-right' | 'bottom-left';
|
|
19
|
+
interface AXPopupButtonsConfig {
|
|
20
|
+
minimize?: {
|
|
21
|
+
enable: boolean;
|
|
22
|
+
position: AXPopupMinimizePosition;
|
|
23
|
+
};
|
|
24
|
+
maximize?: boolean;
|
|
25
|
+
close?: boolean;
|
|
26
|
+
}
|
|
13
27
|
interface AXPopupConfig {
|
|
14
28
|
title?: string;
|
|
29
|
+
/** Flat alias; overridden by `buttons.close` when set. */
|
|
15
30
|
closeButton?: boolean;
|
|
16
31
|
header?: boolean;
|
|
32
|
+
footer?: boolean;
|
|
33
|
+
/** Flat alias; overridden by `buttons.maximize` when set. */
|
|
17
34
|
maximizable?: boolean;
|
|
18
35
|
size?: AXPopupSizeType;
|
|
19
36
|
/** @deprecated Use `inputs` instead to pass data to the popup component. */
|
|
@@ -24,10 +41,20 @@ interface AXPopupConfig {
|
|
|
24
41
|
backdropClass?: string;
|
|
25
42
|
closeOnBackdropClick?: boolean;
|
|
26
43
|
closeOnNavigation?: boolean;
|
|
44
|
+
/** When unset, Escape closes only if the close button is enabled (legacy behavior). */
|
|
45
|
+
closeOnEscape?: boolean;
|
|
27
46
|
viewContainerRef?: ViewContainerRef;
|
|
28
47
|
providers?: StaticProvider[];
|
|
29
48
|
panelClass?: string[];
|
|
30
49
|
direction?: 'rtl' | 'ltr';
|
|
50
|
+
/** Window chrome buttons. Individual fields override flat `closeButton` / `maximizable` when set. */
|
|
51
|
+
buttons?: AXPopupButtonsConfig;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* Called with the popup ref before content is created so callers can inject
|
|
55
|
+
* extra content inputs that depend on the ref.
|
|
56
|
+
*/
|
|
57
|
+
_bindContentInputs?: (ref: AXPopupRef) => Record<string, unknown>;
|
|
31
58
|
}
|
|
32
59
|
interface AXPopupData {
|
|
33
60
|
title: string;
|
|
@@ -43,19 +70,79 @@ interface AXPopupRef<TResult = any> {
|
|
|
43
70
|
close: (data?: TResult) => void;
|
|
44
71
|
setInputs: (values: AXComponentInputs) => void;
|
|
45
72
|
setTitle: (title: string) => void;
|
|
73
|
+
minimize: () => void;
|
|
74
|
+
maximize: () => void;
|
|
75
|
+
restore: () => void;
|
|
46
76
|
/** Brings this popup to the front of all other overlays */
|
|
47
77
|
bringToFront: () => void;
|
|
48
78
|
onClose: Subject<TResult>;
|
|
49
79
|
/** The component instance rendered inside the popup (available after content is rendered) */
|
|
50
80
|
componentInstance?: unknown;
|
|
81
|
+
/** @internal Stack index among open popups (minimized bar positioning). */
|
|
82
|
+
_getStackIndex?: () => number;
|
|
51
83
|
}
|
|
52
84
|
declare abstract class AXPopupComponentBase {
|
|
53
|
-
__popup__:
|
|
85
|
+
__popup__: _angular_core.InputSignal<AXPopupRef<any>>;
|
|
54
86
|
close(data?: any): void;
|
|
55
87
|
setTitle(title: string): void;
|
|
88
|
+
minimize(): void;
|
|
89
|
+
maximize(): void;
|
|
90
|
+
restore(): void;
|
|
56
91
|
bringToFront(): void;
|
|
57
|
-
static ɵfac:
|
|
58
|
-
static ɵdir:
|
|
92
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPopupComponentBase, never>;
|
|
93
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AXPopupComponentBase, never, never, { "__popup__": { "alias": "__popup__"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
94
|
+
}
|
|
95
|
+
/** Resolves whether the close header button is shown. `buttons.close` wins over `closeButton`. */
|
|
96
|
+
declare function resolvePopupCloseButton(config?: AXPopupConfig | null): boolean;
|
|
97
|
+
/** Resolves whether maximize is enabled. `buttons.maximize` wins over `maximizable`. Default: false. */
|
|
98
|
+
declare function resolvePopupMaximizable(config?: AXPopupConfig | null): boolean;
|
|
99
|
+
/** Resolves minimize button config. Default: disabled at bottom-right. */
|
|
100
|
+
declare function resolvePopupMinimize(config?: AXPopupConfig | null): {
|
|
101
|
+
enable: boolean;
|
|
102
|
+
position: AXPopupMinimizePosition;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Declarative popup host. Project content and call `open()` / `close()` on the component instance.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```html
|
|
110
|
+
* <ax-popup-host #popup>
|
|
111
|
+
* <p>Content</p>
|
|
112
|
+
* </ax-popup-host>
|
|
113
|
+
* <ax-button (onClick)="popup.open({ title: 'Hello', header: true })"></ax-button>
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
declare class AXPopupHostComponent extends NXComponent {
|
|
117
|
+
private popupService;
|
|
118
|
+
protected template: _angular_core.Signal<TemplateRef<any>>;
|
|
119
|
+
private ref;
|
|
120
|
+
/**
|
|
121
|
+
* Opens the projected content in a popup overlay.
|
|
122
|
+
*/
|
|
123
|
+
open(options?: AXPopupConfig): Promise<AXPopupRef>;
|
|
124
|
+
/**
|
|
125
|
+
* Closes the currently open popup hosted by this component.
|
|
126
|
+
*/
|
|
127
|
+
close(data?: unknown): Promise<void>;
|
|
128
|
+
/**
|
|
129
|
+
* Sets input values for the popup content component.
|
|
130
|
+
*/
|
|
131
|
+
setInputs(values: AXComponentInputs): Promise<void>;
|
|
132
|
+
/**
|
|
133
|
+
* Minimizes the hosted popup.
|
|
134
|
+
*/
|
|
135
|
+
minimize(): Promise<void>;
|
|
136
|
+
/**
|
|
137
|
+
* Maximizes the hosted popup.
|
|
138
|
+
*/
|
|
139
|
+
maximize(): Promise<void>;
|
|
140
|
+
/**
|
|
141
|
+
* Restores the hosted popup.
|
|
142
|
+
*/
|
|
143
|
+
restore(): Promise<void>;
|
|
144
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPopupHostComponent, never>;
|
|
145
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPopupHostComponent, "ax-popup-host", never, {}, {}, never, ["*"], true, never>;
|
|
59
146
|
}
|
|
60
147
|
|
|
61
148
|
/**
|
|
@@ -72,10 +159,11 @@ declare class AXPopupComponent extends MXBaseComponent implements OnInit, OnDest
|
|
|
72
159
|
private _destroyRef;
|
|
73
160
|
private contentContainerRef;
|
|
74
161
|
private contentContainerEl;
|
|
75
|
-
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
162
|
+
private popupEl;
|
|
163
|
+
readonly __content__: _angular_core.InputSignal<AXPopupContentType>;
|
|
164
|
+
readonly __config__: _angular_core.InputSignal<AXPopupConfig>;
|
|
165
|
+
readonly __popupRef__: _angular_core.InputSignal<AXPopupRef<any>>;
|
|
166
|
+
readonly __id__: _angular_core.InputSignal<number>;
|
|
79
167
|
/**
|
|
80
168
|
* Indicates whether the component is loading.
|
|
81
169
|
* @defaultValue true
|
|
@@ -86,11 +174,11 @@ declare class AXPopupComponent extends MXBaseComponent implements OnInit, OnDest
|
|
|
86
174
|
/** @ignore */
|
|
87
175
|
private _componentRef;
|
|
88
176
|
/** Current title */
|
|
89
|
-
protected title:
|
|
177
|
+
protected title: _angular_core.WritableSignal<string>;
|
|
90
178
|
/** @ignore */
|
|
91
|
-
protected isDragging:
|
|
179
|
+
protected isDragging: _angular_core.WritableSignal<boolean>;
|
|
92
180
|
/** @ignore */
|
|
93
|
-
protected dragOffset:
|
|
181
|
+
protected dragOffset: _angular_core.WritableSignal<{
|
|
94
182
|
x: number;
|
|
95
183
|
y: number;
|
|
96
184
|
}>;
|
|
@@ -98,6 +186,14 @@ declare class AXPopupComponent extends MXBaseComponent implements OnInit, OnDest
|
|
|
98
186
|
private dragStartPos;
|
|
99
187
|
/** @ignore */
|
|
100
188
|
private elementStartPos;
|
|
189
|
+
protected popupSizeState: _angular_core.WritableSignal<"minimize" | "normal">;
|
|
190
|
+
protected fullScreenState: _angular_core.WritableSignal<boolean>;
|
|
191
|
+
protected minimizeLeft: _angular_core.WritableSignal<string>;
|
|
192
|
+
protected minimizeRight: _angular_core.WritableSignal<string>;
|
|
193
|
+
private fullscreenChangeHandler;
|
|
194
|
+
protected closeEnabled: () => boolean;
|
|
195
|
+
protected maximizeEnabled: () => boolean;
|
|
196
|
+
protected minimizeEnabled: () => boolean;
|
|
101
197
|
/** @ignore */
|
|
102
198
|
ngOnInit(): void;
|
|
103
199
|
/**
|
|
@@ -123,30 +219,39 @@ declare class AXPopupComponent extends MXBaseComponent implements OnInit, OnDest
|
|
|
123
219
|
focus(): void;
|
|
124
220
|
/**
|
|
125
221
|
* Closes the popup, emitting component reference, host element, and optional data.
|
|
126
|
-
* @param {unknown} [data]
|
|
127
222
|
*/
|
|
128
223
|
close(data?: unknown): void;
|
|
224
|
+
/**
|
|
225
|
+
* Minimizes the popup to the bottom bar.
|
|
226
|
+
*/
|
|
227
|
+
minimize(): void;
|
|
228
|
+
/**
|
|
229
|
+
* Maximizes the popup using the Fullscreen API.
|
|
230
|
+
*/
|
|
231
|
+
maximize(): void;
|
|
232
|
+
/**
|
|
233
|
+
* Restores the popup from minimized or fullscreen state.
|
|
234
|
+
*/
|
|
235
|
+
restore(): void;
|
|
129
236
|
/**
|
|
130
237
|
* Sets inputs on the content component.
|
|
131
|
-
* @param values - Object containing input values to set
|
|
132
238
|
*/
|
|
133
239
|
setContentInputs(values: AXComponentInputs): void;
|
|
134
240
|
/**
|
|
135
241
|
* Sets the popup title.
|
|
136
|
-
* @param title - The new title
|
|
137
242
|
*/
|
|
138
243
|
setTitle(title: string): void;
|
|
139
244
|
protected onDragStart(event: MouseEvent): void;
|
|
140
245
|
onDragMove(event: MouseEvent): void;
|
|
141
246
|
onDragEnd(): void;
|
|
142
|
-
static ɵfac:
|
|
143
|
-
static ɵcmp:
|
|
247
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPopupComponent, never>;
|
|
248
|
+
static ɵcmp: _angular_core.ɵɵ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>;
|
|
144
249
|
}
|
|
145
250
|
|
|
146
251
|
declare class AXPopupModule {
|
|
147
|
-
static ɵfac:
|
|
148
|
-
static ɵmod:
|
|
149
|
-
static ɵinj:
|
|
252
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPopupModule, never>;
|
|
253
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXPopupModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.AXDecoratorModule, typeof i4.AXTranslationModule, typeof AXPopupComponent, typeof AXPopupHostComponent, typeof AXPopupFooterComponent], [typeof AXPopupComponent, typeof AXPopupHostComponent, typeof AXPopupFooterComponent]>;
|
|
254
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXPopupModule>;
|
|
150
255
|
}
|
|
151
256
|
|
|
152
257
|
/**
|
|
@@ -165,39 +270,42 @@ declare class AXPopupService {
|
|
|
165
270
|
* Open popup 2
|
|
166
271
|
*/
|
|
167
272
|
open(content: AXPopupContentType, config?: AXPopupConfig): AXComponentClosedPromise;
|
|
273
|
+
/**
|
|
274
|
+
* Opens a popup and returns a mutable reference (for host components and advanced control).
|
|
275
|
+
*/
|
|
276
|
+
openRef<TResult = any>(content: AXPopupContentType, config?: AXPopupConfig): Promise<AXPopupRef<TResult>>;
|
|
277
|
+
private mergeConfig;
|
|
168
278
|
/**
|
|
169
279
|
* Opens a popup with the specified content and configuration.
|
|
170
|
-
* @param content - Component or template to display
|
|
171
|
-
* @param config - Configuration options for the popup
|
|
172
|
-
* @returns Promise<AXPopupRef> - Reference to the opened popup
|
|
173
280
|
*/
|
|
174
281
|
private openInternal;
|
|
175
282
|
/**
|
|
176
283
|
* Closes a popup by its ID.
|
|
177
|
-
* @param id - The popup ID to close
|
|
178
|
-
* @param data - Optional data to pass to the close event
|
|
179
284
|
*/
|
|
180
285
|
close<TResult = any>(id: number, data?: TResult): void;
|
|
181
286
|
/**
|
|
182
287
|
* Sets input values for a popup by its ID.
|
|
183
|
-
* @param id - The popup ID
|
|
184
|
-
* @param values - Object containing input values to set
|
|
185
288
|
*/
|
|
186
289
|
setInputs(id: number, values: AXComponentInputs): void;
|
|
187
290
|
/**
|
|
188
291
|
* Sets the title for a popup by its ID.
|
|
189
|
-
* @param id - The popup ID
|
|
190
|
-
* @param title - The new title
|
|
191
292
|
*/
|
|
192
293
|
setTitle(id: number, title: string): void;
|
|
294
|
+
minimize(id: number): void;
|
|
295
|
+
maximize(id: number): void;
|
|
296
|
+
restore(id: number): void;
|
|
297
|
+
/**
|
|
298
|
+
* Gets the index of a popup in the open stack (used for minimized bar positioning).
|
|
299
|
+
*/
|
|
300
|
+
getMapIndexOf(targetKey: number): number;
|
|
193
301
|
/**
|
|
194
302
|
* Brings a popup to the front of all other overlays.
|
|
195
|
-
* @param id - The popup ID to bring to front
|
|
196
303
|
*/
|
|
197
304
|
bringToFront(id: number): void;
|
|
198
|
-
|
|
199
|
-
static
|
|
305
|
+
private getPopupInstance;
|
|
306
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPopupService, never>;
|
|
307
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPopupService>;
|
|
200
308
|
}
|
|
201
309
|
|
|
202
|
-
export { AXPopupComponent, AXPopupComponentBase, AXPopupModule, AXPopupService };
|
|
203
|
-
export type { AXPopupConfig, AXPopupContentType, AXPopupData, AXPopupRef, AXPopupSizeType };
|
|
310
|
+
export { AXPopupComponent, AXPopupComponentBase, AXPopupFooterComponent, AXPopupHostComponent, AXPopupModule, AXPopupService, resolvePopupCloseButton, resolvePopupMaximizable, resolvePopupMinimize };
|
|
311
|
+
export type { AXPopupButtonsConfig, AXPopupConfig, AXPopupContentType, AXPopupData, AXPopupMinimizePosition, AXPopupRef, AXPopupSizeType };
|
|
@@ -2,21 +2,22 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import * as i1 from '@acorex/components/button-group';
|
|
3
3
|
import { AXButtonGroupItemComponent } from '@acorex/components/button-group';
|
|
4
4
|
import { AXDataSource, AXValueChangedEvent } from '@acorex/cdk/common';
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
5
|
+
import * as i4 from '@acorex/components/combo-box';
|
|
6
|
+
import { AXComboBoxComponent } from '@acorex/components/combo-box';
|
|
7
7
|
import * as i2 from '@acorex/components/decorators';
|
|
8
|
-
import * as
|
|
9
|
-
import * as i5 from '@acorex/components/
|
|
10
|
-
import * as i6 from '@acorex/components/
|
|
11
|
-
import * as i7 from '@acorex/components/
|
|
12
|
-
import * as i8 from '@
|
|
8
|
+
import * as i3 from '@acorex/components/select-box';
|
|
9
|
+
import * as i5 from '@acorex/components/button';
|
|
10
|
+
import * as i6 from '@acorex/components/text-box';
|
|
11
|
+
import * as i7 from '@acorex/components/number-box';
|
|
12
|
+
import * as i8 from '@acorex/components/datetime-box';
|
|
13
|
+
import * as i9 from '@angular/common';
|
|
13
14
|
|
|
14
15
|
declare class AXQueryBuilderComponent {
|
|
15
16
|
#private;
|
|
16
17
|
readonly columnData: _angular_core.InputSignal<any[]>;
|
|
17
18
|
queryData: _angular_core.ModelSignal<any[]>;
|
|
18
19
|
onValueChanged: _angular_core.OutputEmitterRef<any[]>;
|
|
19
|
-
protected selectBoxRef: _angular_core.Signal<
|
|
20
|
+
protected selectBoxRef: _angular_core.Signal<AXComboBoxComponent>;
|
|
20
21
|
protected selectedItem: _angular_core.WritableSignal<any>;
|
|
21
22
|
ds: AXDataSource<unknown>;
|
|
22
23
|
protected operators: {
|
|
@@ -45,7 +46,7 @@ declare class AXQueryBuilderComponent {
|
|
|
45
46
|
|
|
46
47
|
declare class AXQueryBuilderModule {
|
|
47
48
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXQueryBuilderModule, never>;
|
|
48
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXQueryBuilderModule, never, [typeof i1.AXButtonGroupModule, typeof i2.AXDecoratorModule, typeof i3.AXSelectBoxModule, typeof i4.
|
|
49
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXQueryBuilderModule, never, [typeof i1.AXButtonGroupModule, typeof i2.AXDecoratorModule, typeof i3.AXSelectBoxModule, typeof i4.AXComboBoxModule, typeof i5.AXButtonModule, typeof i6.AXTextBoxModule, typeof i7.AXNumberBoxModule, typeof i8.AXDateTimeBoxModule, typeof i9.CommonModule, typeof AXQueryBuilderComponent], [typeof AXQueryBuilderComponent]>;
|
|
49
50
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXQueryBuilderModule>;
|
|
50
51
|
}
|
|
51
52
|
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnDestroy, TemplateRef
|
|
2
|
+
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as polytype from 'polytype';
|
|
4
4
|
import * as i2 from '@acorex/cdk/common';
|
|
5
|
-
import { MXSelectionValueComponent, MXLookComponent,
|
|
5
|
+
import { MXSelectionValueComponent, MXLookComponent, MXSelectionBridgeService, AXEvent, AXValueChangedEvent } from '@acorex/cdk/common';
|
|
6
6
|
import * as i12 from '@acorex/components/dropdown';
|
|
7
7
|
import { MXDropdownBoxBaseComponent, AXDropdownBoxComponent } from '@acorex/components/dropdown';
|
|
8
|
-
import * as i13 from '@acorex/components/list';
|
|
9
|
-
import { AXListComponent } from '@acorex/components/list';
|
|
10
8
|
import { AXSearchBoxComponent } from '@acorex/components/search-box';
|
|
11
|
-
import { Observable } from 'rxjs';
|
|
12
9
|
import * as i1 from '@angular/common';
|
|
13
10
|
import * as i3 from '@angular/forms';
|
|
14
11
|
import * as i4 from '@acorex/components/check-box';
|
|
@@ -19,35 +16,26 @@ import * as i8 from '@acorex/components/popover';
|
|
|
19
16
|
import * as i9 from '@acorex/components/loading';
|
|
20
17
|
import * as i10 from '@angular/cdk/a11y';
|
|
21
18
|
import * as i11 from '@acorex/components/text-box';
|
|
19
|
+
import * as i13 from '@acorex/components/selection-list';
|
|
22
20
|
|
|
23
21
|
declare const AXSelectBoxComponent_base: polytype.Polytype.ClusteredConstructor<[typeof MXDropdownBoxBaseComponent, typeof MXSelectionValueComponent, typeof MXLookComponent]>;
|
|
24
22
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
23
|
+
* Simple dropdown select for a static items array.
|
|
24
|
+
* For AXDataSource / lazy-load support, use ComboBox.
|
|
27
25
|
*/
|
|
28
26
|
declare class AXSelectBoxComponent extends AXSelectBoxComponent_base implements OnDestroy {
|
|
29
27
|
#private;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
readonly
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly showItemTooltip: _angular_core.InputSignal<boolean>;
|
|
42
|
-
private host;
|
|
43
|
-
/** Height of each list item in pixels, or 'auto' to let list measure. */
|
|
44
|
-
itemHeight: _angular_core.InputSignal<number | "auto">;
|
|
45
|
-
/** Maximum number of visible items before scrolling. */
|
|
46
|
-
maxVisibleItems: _angular_core.InputSignal<number>;
|
|
47
|
-
/** @ignore */
|
|
48
|
-
private hotKeyService;
|
|
49
|
-
/** @ignore */
|
|
50
|
-
protected isLoading: _angular_core.WritableSignal<boolean>;
|
|
28
|
+
/** Static items shown in the dropdown. */
|
|
29
|
+
readonly items: _angular_core.InputSignal<any[]>;
|
|
30
|
+
readonly placeholder: _angular_core.InputSignal<string>;
|
|
31
|
+
readonly minRecordsForSearch: _angular_core.InputSignal<number>;
|
|
32
|
+
readonly caption: _angular_core.InputSignal<string>;
|
|
33
|
+
readonly itemTemplate: _angular_core.InputSignal<TemplateRef<any>>;
|
|
34
|
+
readonly selectedTemplate: _angular_core.InputSignal<TemplateRef<any>>;
|
|
35
|
+
readonly emptyTemplate: _angular_core.InputSignal<TemplateRef<any>>;
|
|
36
|
+
readonly maxVisibleItems: _angular_core.InputSignal<number>;
|
|
37
|
+
readonly dropdownWidth: _angular_core.InputSignal<string>;
|
|
38
|
+
readonly searchBoxAutoFocus: _angular_core.InputSignal<boolean>;
|
|
51
39
|
/** @ignore */
|
|
52
40
|
protected searchValue: _angular_core.WritableSignal<string>;
|
|
53
41
|
/** @ignore */
|
|
@@ -57,141 +45,42 @@ declare class AXSelectBoxComponent extends AXSelectBoxComponent_base implements
|
|
|
57
45
|
/** @ignore */
|
|
58
46
|
protected _dropdownHeight: _angular_core.WritableSignal<string>;
|
|
59
47
|
/** @ignore */
|
|
60
|
-
protected
|
|
61
|
-
|
|
62
|
-
private _originalDataSource;
|
|
63
|
-
/** @ignore */
|
|
64
|
-
private onChangedSubscription;
|
|
65
|
-
/** @ignore */
|
|
66
|
-
private onLoadingChangedSubscription;
|
|
67
|
-
/**
|
|
68
|
-
* Gets the data source for the component, which can be either an `AXDataSource` or an array of items.
|
|
69
|
-
* @returns {AXDataSource<any> | any[]}
|
|
70
|
-
*/
|
|
71
|
-
get dataSource(): AXDataSource<any> | any[];
|
|
72
|
-
/**
|
|
73
|
-
* Sets the data source, either as an `AXDataSource` or an array.
|
|
74
|
-
* @param {AXDataSource<any> | any[]} v
|
|
75
|
-
*/
|
|
76
|
-
set dataSource(v: AXDataSource<any> | any[]);
|
|
77
|
-
/**
|
|
78
|
-
* The placeholder text displayed when the component is empty.
|
|
79
|
-
* @param {string} placeholder
|
|
80
|
-
*/
|
|
81
|
-
placeholder: string;
|
|
82
|
-
/**
|
|
83
|
-
* The minRecordsForSearch defines the minimum number of records required to display the search box.
|
|
84
|
-
* @param {number} minRecordsForSearch
|
|
85
|
-
*/
|
|
86
|
-
minRecordsForSearch: number;
|
|
87
|
-
/**
|
|
88
|
-
* The caption text to be displayed in the component.
|
|
89
|
-
* @param {string} caption
|
|
90
|
-
*/
|
|
91
|
-
caption: string;
|
|
92
|
-
/**
|
|
93
|
-
* The template used to customize the rendering of items.
|
|
94
|
-
* @param {TemplateRef<any>} itemTemplate
|
|
95
|
-
*/
|
|
96
|
-
itemTemplate: TemplateRef<any>;
|
|
97
|
-
/**
|
|
98
|
-
* The template used to customize the rendering of selected items.
|
|
99
|
-
* @param {TemplateRef<any>} selectedTemplate
|
|
100
|
-
*/
|
|
101
|
-
selectedTemplate: TemplateRef<any>;
|
|
102
|
-
/**
|
|
103
|
-
* The template used to display when there are no items.
|
|
104
|
-
* @param {TemplateRef<any>} emptyTemplate
|
|
105
|
-
*/
|
|
106
|
-
emptyTemplate: TemplateRef<any>;
|
|
107
|
-
/**
|
|
108
|
-
* The template used to display while loading.
|
|
109
|
-
* @param {TemplateRef<any>} loadingTemplate
|
|
110
|
-
*/
|
|
111
|
-
loadingTemplate: TemplateRef<any>;
|
|
112
|
-
/**
|
|
113
|
-
* The width of the dropdown in pixels.
|
|
114
|
-
* @defaultValue null
|
|
115
|
-
*/
|
|
116
|
-
dropdownWidth: _angular_core.InputSignal<string>;
|
|
117
|
-
/** @ignore */
|
|
118
|
-
panel: ElementRef<HTMLDivElement>;
|
|
119
|
-
/** @ignore */
|
|
120
|
-
list: AXListComponent;
|
|
121
|
-
/** @ignore */
|
|
122
|
-
searchBox: AXSearchBoxComponent;
|
|
123
|
-
searchBoxAutoFocus: _angular_core.InputSignal<boolean>;
|
|
124
|
-
/** @ignore */
|
|
125
|
-
protected dropdown: AXDropdownBoxComponent;
|
|
126
|
-
/**
|
|
127
|
-
* Service for managing selection data, injected via `AX_SELECTION_DATA_TOKEN`.
|
|
128
|
-
*/
|
|
129
|
-
selectionService: MXSelectionBridgeService;
|
|
130
|
-
searchEvent: Observable<any>;
|
|
131
|
-
/** @ignore */
|
|
48
|
+
protected visibleItems: _angular_core.WritableSignal<any[]>;
|
|
49
|
+
private hotKeyService;
|
|
132
50
|
private _unsubscriber;
|
|
133
|
-
|
|
51
|
+
selectionService: MXSelectionBridgeService;
|
|
52
|
+
private readonly panel;
|
|
53
|
+
private readonly selectionList;
|
|
54
|
+
protected readonly searchBox: _angular_core.Signal<AXSearchBoxComponent>;
|
|
55
|
+
private readonly dropdownRef;
|
|
56
|
+
/** Required by MXDropdownBoxBaseComponent. */
|
|
57
|
+
protected get dropdown(): AXDropdownBoxComponent;
|
|
134
58
|
protected ngOnInit(): void;
|
|
135
|
-
/**
|
|
136
|
-
* Proactively fetches item data if the component has a value but no corresponding item data.
|
|
137
|
-
* This prevents showing "loading..." when the component has a value.
|
|
138
|
-
*/
|
|
139
|
-
private fetchItemDataIfNeeded;
|
|
140
|
-
/** @ignore */
|
|
141
59
|
ngOnDestroy(): void;
|
|
142
|
-
/**
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
60
|
+
/** Finds an item by value key in the full items array. */
|
|
61
|
+
getItemByKey(key: any): any;
|
|
62
|
+
/** Filters visible items by textField contains. */
|
|
63
|
+
search(term: string): void;
|
|
64
|
+
/** Resets selection and closes the dropdown. */
|
|
65
|
+
refresh(): void;
|
|
66
|
+
internalValueChanged(value: any): void;
|
|
147
67
|
/** @ignore */
|
|
148
68
|
protected _handleOnOpenedEvent(e: AXEvent): void;
|
|
149
69
|
/** @ignore */
|
|
150
70
|
protected _handleOnClosedEvent(e: AXEvent): void;
|
|
151
71
|
/** @ignore */
|
|
152
|
-
protected
|
|
153
|
-
/** @ignore */
|
|
154
|
-
protected _handleBadgeRemove(e: MouseEvent, item: any): void;
|
|
72
|
+
protected _handleBadgeRemove(e: MouseEvent, item: unknown): void;
|
|
155
73
|
/** @ignore */
|
|
156
74
|
protected _handleValueChanged(e: AXValueChangedEvent): void;
|
|
157
75
|
/** @ignore */
|
|
158
|
-
protected
|
|
159
|
-
/** @ignore */
|
|
160
|
-
protected _handleItemSelected(e: AXItemSelectedEvent): void;
|
|
161
|
-
private resetSearchAfterSelection;
|
|
162
|
-
/** @ignore */
|
|
163
|
-
private setDropdownSize;
|
|
164
|
-
/**
|
|
165
|
-
* Shrinks list height to the visible overlay area so virtual scroll ends on fully
|
|
166
|
-
* visible rows instead of inside an overflow:hidden clipped region.
|
|
167
|
-
* @ignore
|
|
168
|
-
*/
|
|
169
|
-
private _fitListHeightToAvailableSpace;
|
|
170
|
-
private updateDropdownPosition;
|
|
171
|
-
private updateDropdownSize;
|
|
172
|
-
private _fitDropdownToContent;
|
|
173
|
-
internalValueChanged(value: any): void;
|
|
174
|
-
/** @ignore */
|
|
175
|
-
_handleKeydown(e: KeyboardEvent): void;
|
|
176
|
-
/** @ignore */
|
|
177
|
-
private selectItemByNav;
|
|
178
|
-
/**
|
|
179
|
-
* Filters the data source based on the provided search term.
|
|
180
|
-
* @param {string} term
|
|
181
|
-
*/
|
|
182
|
-
search(term: string): void;
|
|
183
|
-
/**
|
|
184
|
-
* Refreshes the component by resetting state, clearing selection cache, refreshing the list, and closing the component.
|
|
185
|
-
*/
|
|
186
|
-
refresh(): void;
|
|
187
|
-
hostClickListener(): void;
|
|
76
|
+
protected _handleKeydown(e: KeyboardEvent): void;
|
|
188
77
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXSelectBoxComponent, never>;
|
|
189
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXSelectBoxComponent, "ax-select-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "
|
|
78
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXSelectBoxComponent, "ax-select-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "value": { "alias": "value"; "required": false; }; "state": { "alias": "state"; "required": false; }; "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "look": { "alias": "look"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "disabledField": { "alias": "disabledField"; "required": false; }; "textTemplate": { "alias": "textTemplate"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "minRecordsForSearch": { "alias": "minRecordsForSearch"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; "isSignal": true; }; "selectedTemplate": { "alias": "selectedTemplate"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "maxVisibleItems": { "alias": "maxVisibleItems"; "required": false; "isSignal": true; }; "dropdownWidth": { "alias": "dropdownWidth"; "required": false; "isSignal": true; }; "searchBoxAutoFocus": { "alias": "searchBoxAutoFocus"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "stateChange": "stateChange"; "onValueChanged": "onValueChanged"; "onBlur": "onBlur"; "onFocus": "onFocus"; "readonlyChange": "readonlyChange"; "disabledChange": "disabledChange"; "onOpened": "onOpened"; "onClosed": "onClosed"; "onItemSelected": "onItemSelected"; "onItemClick": "onItemClick"; }, ["searchBox"], ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-search-box", "ax-footer", "ax-validation-rule"], true, never>;
|
|
190
79
|
}
|
|
191
80
|
|
|
192
81
|
declare class AXSelectBoxModule {
|
|
193
82
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXSelectBoxModule, never>;
|
|
194
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXSelectBoxModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.FormsModule, typeof i4.AXCheckBoxModule, typeof i5.AXBadgeModule, typeof i6.AXDecoratorModule, typeof i7.AXTranslationModule, typeof i8.AXPopoverModule, typeof i9.AXLoadingModule, typeof i10.A11yModule, typeof i11.AXTextBoxModule, typeof i12.AXDropdownModule, typeof i13.
|
|
83
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXSelectBoxModule, never, [typeof i1.CommonModule, typeof i2.AXCommonModule, typeof i3.FormsModule, typeof i4.AXCheckBoxModule, typeof i5.AXBadgeModule, typeof i6.AXDecoratorModule, typeof i7.AXTranslationModule, typeof i8.AXPopoverModule, typeof i9.AXLoadingModule, typeof i10.A11yModule, typeof i11.AXTextBoxModule, typeof i12.AXDropdownModule, typeof i13.AXSelectionListModule, typeof AXSelectBoxComponent], [typeof AXSelectBoxComponent]>;
|
|
195
84
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXSelectBoxModule>;
|
|
196
85
|
}
|
|
197
86
|
|
|
@@ -6,7 +6,6 @@ import * as i2 from '@angular/forms';
|
|
|
6
6
|
import * as i3 from '@acorex/components/check-box';
|
|
7
7
|
import * as i4 from '@acorex/components/radio';
|
|
8
8
|
import * as i5 from '@acorex/components/label';
|
|
9
|
-
import * as i6 from '@acorex/components/form';
|
|
10
9
|
|
|
11
10
|
type AXSelectionListLook = 'solid' | 'divided' | 'card';
|
|
12
11
|
/**
|
|
@@ -85,7 +84,7 @@ declare class AXSelectionListComponent extends MXSelectionValueComponent {
|
|
|
85
84
|
|
|
86
85
|
declare class AXSelectionListModule {
|
|
87
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXSelectionListModule, never>;
|
|
88
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXSelectionListModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.AXCheckBoxModule, typeof i4.AXRadioModule, typeof i5.AXLabelModule, typeof
|
|
87
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXSelectionListModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.AXCheckBoxModule, typeof i4.AXRadioModule, typeof i5.AXLabelModule, typeof AXSelectionListComponent], [typeof AXSelectionListComponent]>;
|
|
89
88
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXSelectionListModule>;
|
|
90
89
|
}
|
|
91
90
|
|