@acorex/components 21.0.2-next.42 → 21.0.2-next.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-components-calendar.mjs +2 -2
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +109 -143
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +14 -7
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/package.json +3 -3
- package/types/acorex-components-menu.d.ts +29 -31
- package/types/acorex-components-wysiwyg.d.ts +6 -1
|
@@ -16,6 +16,7 @@ declare abstract class AXRootMenu {
|
|
|
16
16
|
hasArrow: WritableSignal<boolean>;
|
|
17
17
|
}
|
|
18
18
|
declare abstract class AXMenuItemComponentBase {
|
|
19
|
+
parent?: AXMenuItemComponentBase | null;
|
|
19
20
|
}
|
|
20
21
|
/** Shared tree item shape for `ax-menu`, `ax-context-menu`, and `ax-side-menu`. */
|
|
21
22
|
interface AXMenuItem {
|
|
@@ -152,14 +153,14 @@ type AXMenuItemClickEvent = AXMenuItemClickBaseEvent<AXMenuItemComponent>;
|
|
|
152
153
|
*/
|
|
153
154
|
declare class AXMenuItemComponent extends NXComponent implements OnDestroy {
|
|
154
155
|
protected isOpen: _angular_core.WritableSignal<boolean>;
|
|
155
|
-
protected
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
protected submenuRendered: _angular_core.WritableSignal<boolean>;
|
|
157
|
+
readonly parent: AXMenuItemComponent;
|
|
158
|
+
protected isRoot: _angular_core.Signal<boolean>;
|
|
159
|
+
protected isFirstLevel: _angular_core.Signal<boolean>;
|
|
160
|
+
private readonly childMenuItems;
|
|
161
|
+
protected hasSubItems: _angular_core.Signal<boolean>;
|
|
158
162
|
protected root: AXRootMenu;
|
|
159
|
-
protected parent?: AXMenuItemComponent | null;
|
|
160
|
-
protected isRoot: () => boolean;
|
|
161
163
|
private service;
|
|
162
|
-
private scrollableParents;
|
|
163
164
|
private unsuscriber;
|
|
164
165
|
private renderer;
|
|
165
166
|
private injector;
|
|
@@ -172,25 +173,13 @@ declare class AXMenuItemComponent extends NXComponent implements OnDestroy {
|
|
|
172
173
|
disabled: _angular_core.InputSignal<boolean>;
|
|
173
174
|
color: _angular_core.InputSignal<AXStyleColorType>;
|
|
174
175
|
constructor();
|
|
175
|
-
private closeExcept;
|
|
176
|
-
private observeMutations;
|
|
177
176
|
private getText;
|
|
178
|
-
/**
|
|
179
|
-
* Manually detect all `ax-menu-item` elements and check if this menu item has sub-items.
|
|
180
|
-
*/
|
|
181
|
-
private detectSubItems;
|
|
182
177
|
/**
|
|
183
178
|
* Opens the submenu of this menu item if it has sub-items and is not disabled.
|
|
184
|
-
*
|
|
185
|
-
* Inherited behavior: Uses the injected service to notify other items to close.
|
|
186
|
-
*
|
|
187
|
-
* @returns void - No return value. Triggers submenu opening side-effects.
|
|
188
179
|
*/
|
|
189
180
|
open(): void;
|
|
190
181
|
/**
|
|
191
182
|
* Closes the submenu of this menu item if open.
|
|
192
|
-
*
|
|
193
|
-
* @returns void - No return value. Triggers submenu closing side-effects.
|
|
194
183
|
*/
|
|
195
184
|
close(): void;
|
|
196
185
|
/**
|
|
@@ -209,29 +198,17 @@ declare class AXMenuItemComponent extends NXComponent implements OnDestroy {
|
|
|
209
198
|
handleMouseEnter(event: MouseEvent): void;
|
|
210
199
|
private mouseLeaveTimeout;
|
|
211
200
|
handleMouseLeave(event: MouseEvent): void;
|
|
212
|
-
onWindowEvent(): void;
|
|
213
|
-
/**
|
|
214
|
-
* Close all menus if clicking outside the root menu and all sub-items.
|
|
215
|
-
*/
|
|
216
|
-
onClickOutside(event: MouseEvent): void;
|
|
217
201
|
ngOnDestroy(): void;
|
|
218
|
-
private bindScrollEvents;
|
|
219
|
-
private removeScrollEvents;
|
|
220
|
-
/**
|
|
221
|
-
* Handler for scroll events (window or scrollable parent containers)
|
|
222
|
-
*/
|
|
223
|
-
private onContainerScroll;
|
|
224
202
|
/** @ignore */
|
|
225
203
|
get __hostClass(): string[];
|
|
226
204
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMenuItemComponent, never>;
|
|
227
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXMenuItemComponent, "ax-menu-item", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; },
|
|
205
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXMenuItemComponent, "ax-menu-item", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; }, ["childMenuItems"], ["ax-prefix", "ax-text", "ax-suffix", "ax-menu-item,ax-title,ax-divider,ng-container"], true, never>;
|
|
228
206
|
}
|
|
229
207
|
|
|
230
208
|
declare class AXMenuService {
|
|
231
209
|
closeAll$: Subject<void>;
|
|
232
210
|
open$: Subject<AXMenuItemComponentBase>;
|
|
233
211
|
close$: Subject<AXMenuItemComponentBase>;
|
|
234
|
-
closeExcept$: Subject<AXMenuItemComponentBase>;
|
|
235
212
|
openContextMenu$: Subject<{
|
|
236
213
|
sender: AXRootMenu;
|
|
237
214
|
point: AXPoint;
|
|
@@ -239,6 +216,26 @@ declare class AXMenuService {
|
|
|
239
216
|
closeAllContextMenu$: Subject<{
|
|
240
217
|
sender: AXRootMenu;
|
|
241
218
|
}>;
|
|
219
|
+
private readonly destroyRef;
|
|
220
|
+
private readonly document;
|
|
221
|
+
private readonly platformId;
|
|
222
|
+
private readonly openItems;
|
|
223
|
+
private globalListenersBound;
|
|
224
|
+
private rootElement?;
|
|
225
|
+
private scrollableParents;
|
|
226
|
+
private readonly onDocumentClick;
|
|
227
|
+
private readonly onWindowOrScrollEvent;
|
|
228
|
+
constructor();
|
|
229
|
+
/**
|
|
230
|
+
* Registers a single set of document/window/scroll listeners for the whole menu tree.
|
|
231
|
+
*/
|
|
232
|
+
initGlobalListeners(rootElement: HTMLElement): void;
|
|
233
|
+
/**
|
|
234
|
+
* Closes open submenus that are not on the ancestor path of the item being opened.
|
|
235
|
+
*/
|
|
236
|
+
closeExcept(opener: AXMenuItemComponentBase): void;
|
|
237
|
+
markOpen(item: AXMenuItemComponentBase): void;
|
|
238
|
+
markClosed(item: AXMenuItemComponentBase): void;
|
|
242
239
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXMenuService, never>;
|
|
243
240
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXMenuService>;
|
|
244
241
|
}
|
|
@@ -249,6 +246,7 @@ type AXMenuItemsClickEvent = AXMenuItemClickBaseEvent<AXMenuComponent>;
|
|
|
249
246
|
* @category Components
|
|
250
247
|
*/
|
|
251
248
|
declare class AXMenuComponent extends NXComponent {
|
|
249
|
+
constructor();
|
|
252
250
|
orientation: _angular_core.InputSignal<AXOrientation>;
|
|
253
251
|
openOn: _angular_core.InputSignal<AXMenuOpenTrigger>;
|
|
254
252
|
closeOn: _angular_core.InputSignal<AXMenuCloseTrigger>;
|
|
@@ -26,6 +26,11 @@ declare class AXWysiwygContainerComponent extends AXWysiwygContainerComponent_ba
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
placeHolder: i0.InputSignal<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the initial editor height in number of text lines.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
initialLine: i0.InputSignal<number>;
|
|
29
34
|
private wysiwygService;
|
|
30
35
|
protected isQuillLoaded: i0.WritableSignal<boolean>;
|
|
31
36
|
private isEditorClean;
|
|
@@ -65,7 +70,7 @@ declare class AXWysiwygContainerComponent extends AXWysiwygContainerComponent_ba
|
|
|
65
70
|
private get __hostName();
|
|
66
71
|
get __hostClass(): string;
|
|
67
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXWysiwygContainerComponent, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXWysiwygContainerComponent, "ax-wysiwyg-container", never, { "look": { "alias": "look"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; "isSignal": true; }; }, { "onValueChanged": "onValueChanged"; }, ["container", "toolbar"], ["*", "ax-validation-rule"], true, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXWysiwygContainerComponent, "ax-wysiwyg-container", never, { "look": { "alias": "look"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; "isSignal": true; }; "initialLine": { "alias": "initialLine"; "required": false; "isSignal": true; }; }, { "onValueChanged": "onValueChanged"; }, ["container", "toolbar"], ["*", "ax-validation-rule"], true, never>;
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
/**
|