@acorex/components 18.11.0 → 18.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.class.d.ts +8 -0
- package/button/lib/button-item-list.component.d.ts +13 -9
- package/button/lib/button-item.component.d.ts +12 -12
- package/button-group/index.d.ts +1 -0
- package/button-group/lib/button-group-item.component.d.ts +77 -0
- package/button-group/lib/button-group.component.d.ts +1 -1
- package/button-group/lib/button-group.module.d.ts +4 -2
- package/common/index.d.ts +1 -0
- package/common/lib/types/base/component.types.d.ts +8 -0
- package/common/lib/types/base/events.types.d.ts +21 -0
- package/common/lib/types/base/index.d.ts +2 -0
- package/esm2022/action-sheet/lib/action-sheet.class.mjs +1 -1
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +3 -3
- package/esm2022/button/lib/button-item-list.component.mjs +24 -15
- package/esm2022/button/lib/button-item.component.mjs +37 -26
- package/esm2022/button-group/index.mjs +2 -1
- package/esm2022/button-group/lib/button-group-item.component.mjs +141 -0
- package/esm2022/button-group/lib/button-group.component.mjs +6 -5
- package/esm2022/button-group/lib/button-group.module.mjs +6 -4
- package/esm2022/common/index.mjs +2 -1
- package/esm2022/common/lib/components/base-component.class.mjs +1 -1
- package/esm2022/common/lib/types/base/component.types.mjs +27 -0
- package/esm2022/common/lib/types/base/events.types.mjs +19 -0
- package/esm2022/common/lib/types/base/index.mjs +3 -0
- package/esm2022/menu/lib/context-menu.component.mjs +101 -50
- package/esm2022/menu/lib/menu-item.component.mjs +23 -24
- package/esm2022/menu/lib/menu.component.mjs +6 -6
- package/esm2022/menu/lib/menu.types.mjs +3 -11
- package/fesm2022/acorex-components-action-sheet.mjs +2 -2
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +148 -10
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +55 -36
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +47 -3
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +128 -86
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/menu/lib/context-menu.component.d.ts +27 -16
- package/menu/lib/menu-item.component.d.ts +6 -6
- package/menu/lib/menu.component.d.ts +5 -4
- package/menu/lib/menu.types.d.ts +9 -14
- package/package.json +18 -18
@@ -1,23 +1,29 @@
|
|
1
|
-
import {
|
1
|
+
import { NXComponent, NXEvent } from '@acorex/components/common';
|
2
2
|
import { afterNextRender, ChangeDetectionStrategy, Component, HostBinding, HostListener, inject, input, output, Renderer2, signal, ViewEncapsulation, } from '@angular/core';
|
3
3
|
import { AXRootMenu } from './menu.types';
|
4
4
|
import { AXMenuService } from './menu.service';
|
5
5
|
import { AXHtmlUtil } from '@acorex/core/utils';
|
6
6
|
import { cloneDeep } from 'lodash-es';
|
7
|
+
import { isBrowser } from '@acorex/core/platform';
|
7
8
|
import * as i0 from "@angular/core";
|
8
9
|
import * as i1 from "@angular/common";
|
9
10
|
import * as i2 from "@acorex/components/decorators";
|
10
11
|
import * as i3 from "./menu-item.component";
|
12
|
+
export class AXContextMenuOpeningEvent extends NXEvent {
|
13
|
+
constructor() {
|
14
|
+
super(...arguments);
|
15
|
+
this.canceled = false;
|
16
|
+
}
|
17
|
+
}
|
11
18
|
/**
|
12
19
|
* Represents a menu component that displays context menu.
|
13
20
|
* @category Components
|
14
21
|
*/
|
15
|
-
export class AXContextMenuComponent extends
|
22
|
+
export class AXContextMenuComponent extends NXComponent {
|
16
23
|
// Constructor (Dependency Injection)
|
17
24
|
/** @ignore */
|
18
|
-
constructor(
|
25
|
+
constructor() {
|
19
26
|
super();
|
20
|
-
this.renderer = renderer;
|
21
27
|
// Inputs and Outputs
|
22
28
|
this.orientation = input('vertical');
|
23
29
|
this.openOn = input('hover');
|
@@ -28,14 +34,11 @@ export class AXContextMenuComponent extends MXBaseComponent {
|
|
28
34
|
this.onOpening = output();
|
29
35
|
// Injected Services
|
30
36
|
this.service = inject(AXMenuService);
|
31
|
-
|
32
|
-
this.scrollableParents = [];
|
37
|
+
this.renderer = inject(Renderer2);
|
33
38
|
this.items = signal([]);
|
39
|
+
//
|
34
40
|
afterNextRender(() => {
|
35
|
-
|
36
|
-
this.target().addEventListener('contextmenu', this.handleContextMenu.bind(this));
|
37
|
-
}
|
38
|
-
this.bindScrollEvents();
|
41
|
+
this.bindContextEvent();
|
39
42
|
});
|
40
43
|
this.service.closeAllContextMenu$.subscribe(() => {
|
41
44
|
this.service.closeAll$.next();
|
@@ -49,7 +52,9 @@ export class AXContextMenuComponent extends MXBaseComponent {
|
|
49
52
|
}
|
50
53
|
// Lifecycle Hooks
|
51
54
|
ngOnDestroy() {
|
52
|
-
|
55
|
+
if (isBrowser()) {
|
56
|
+
this.removeContextEvent();
|
57
|
+
}
|
53
58
|
}
|
54
59
|
// Public Methods
|
55
60
|
showAt(point) {
|
@@ -58,20 +63,44 @@ export class AXContextMenuComponent extends MXBaseComponent {
|
|
58
63
|
this.service.openContextMenu$.next({ sender, point });
|
59
64
|
}
|
60
65
|
close() {
|
61
|
-
|
62
|
-
|
66
|
+
this.nativeElement.classList.remove('ax-state-open');
|
67
|
+
this.removeBackdrop();
|
63
68
|
}
|
64
69
|
// Private Methods (Internal Logic)
|
65
70
|
/** @ignore */
|
71
|
+
getTargetElements() {
|
72
|
+
const elements = typeof this.target() == 'string' ?
|
73
|
+
Array.from(document.querySelectorAll(this.target())) :
|
74
|
+
Array.isArray(this.target()) ?
|
75
|
+
this.target() :
|
76
|
+
[this.target()];
|
77
|
+
return elements;
|
78
|
+
}
|
79
|
+
/** @ignore */
|
80
|
+
bindContextEvent() {
|
81
|
+
this.getTargetElements().forEach((e) => {
|
82
|
+
e.addEventListener('contextmenu', this.handleContextMenu.bind(this));
|
83
|
+
});
|
84
|
+
}
|
85
|
+
/** @ignore */
|
86
|
+
removeContextEvent() {
|
87
|
+
this.getTargetElements().forEach((e) => {
|
88
|
+
e.removeEventListener('contextmenu', this.handleContextMenu.bind(this));
|
89
|
+
});
|
90
|
+
}
|
91
|
+
/** @ignore */
|
66
92
|
handleContextMenu(e) {
|
67
93
|
e.preventDefault();
|
68
94
|
e.stopPropagation();
|
69
95
|
//
|
96
|
+
const elementsUnderMouse = document.elementsFromPoint(e.x, e.y);
|
97
|
+
const targetElements = this.getTargetElements();
|
98
|
+
const targetElement = targetElements.find(target => elementsUnderMouse.includes(target));
|
99
|
+
//
|
70
100
|
const event = {
|
71
|
-
|
72
|
-
htmlElement: this.getHostElement(),
|
73
|
-
nativeEvent: e,
|
101
|
+
sender: this,
|
74
102
|
canceled: false,
|
103
|
+
targetElement: targetElement,
|
75
104
|
items: cloneDeep(this.orginalItems()),
|
76
105
|
};
|
77
106
|
this.onOpening.emit(event);
|
@@ -81,14 +110,15 @@ export class AXContextMenuComponent extends MXBaseComponent {
|
|
81
110
|
this.showAt({ x: e.clientX, y: e.clientY });
|
82
111
|
}
|
83
112
|
}
|
113
|
+
/** @ignore */
|
84
114
|
internalShowAt(point) {
|
85
|
-
const elementRef = this.
|
115
|
+
const elementRef = this.nativeElement;
|
86
116
|
elementRef.classList.add('ax-state-open');
|
87
117
|
const itemRect = elementRef.getBoundingClientRect();
|
88
118
|
const windowWidth = window.innerWidth;
|
89
119
|
const windowHeight = window.innerHeight;
|
90
120
|
// Detect RTL (Right-To-Left) mode
|
91
|
-
const isRtl = AXHtmlUtil.isRtl(
|
121
|
+
const isRtl = AXHtmlUtil.isRtl(elementRef);
|
92
122
|
let left;
|
93
123
|
if (isRtl) {
|
94
124
|
left = point.x - itemRect.width;
|
@@ -116,48 +146,69 @@ export class AXContextMenuComponent extends MXBaseComponent {
|
|
116
146
|
this.renderer.setStyle(elementRef, 'left', `${left}px`);
|
117
147
|
this.renderer.setStyle(elementRef, 'top', `${top}px`);
|
118
148
|
this.renderer.setStyle(elementRef, 'position', 'fixed');
|
149
|
+
this.createBackdrop();
|
119
150
|
}
|
120
|
-
|
121
|
-
|
122
|
-
this.
|
123
|
-
|
151
|
+
/** @ignore */
|
152
|
+
createBackdrop() {
|
153
|
+
this.backdropElement = this.renderer.createElement('div');
|
154
|
+
this.renderer.setStyle(this.backdropElement, 'position', 'fixed');
|
155
|
+
this.renderer.setStyle(this.backdropElement, 'top', '0');
|
156
|
+
this.renderer.setStyle(this.backdropElement, 'left', '0');
|
157
|
+
this.renderer.setStyle(this.backdropElement, 'width', '100%');
|
158
|
+
this.renderer.setStyle(this.backdropElement, 'height', '100%');
|
159
|
+
this.renderer.setStyle(this.backdropElement, 'z-index', '999'); // Ensure it's below the context menu
|
160
|
+
this.renderer.setStyle(this.backdropElement, 'background', 'transparent');
|
161
|
+
const l1 = this.renderer.listen(this.backdropElement, 'click', () => {
|
162
|
+
this.close();
|
163
|
+
l1();
|
124
164
|
});
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
parent.removeEventListener('scroll', this.onContainerScroll.bind(this));
|
165
|
+
const l2 = this.renderer.listen(this.backdropElement, 'wheel', () => {
|
166
|
+
this.close();
|
167
|
+
l2();
|
129
168
|
});
|
169
|
+
const l3 = this.renderer.listen(this.backdropElement, 'contextmenu', (e) => {
|
170
|
+
this.close();
|
171
|
+
// Get all elements under the mouse pointer
|
172
|
+
const elementsUnderMouse = document.elementsFromPoint(e.x, e.y);
|
173
|
+
const targetElements = this.getTargetElements();
|
174
|
+
if (targetElements.some(target => elementsUnderMouse.includes(target))) {
|
175
|
+
e.preventDefault();
|
176
|
+
setTimeout(() => {
|
177
|
+
//this.internalShowAt({ x: e.x, y: e.y });
|
178
|
+
this.handleContextMenu(e);
|
179
|
+
});
|
180
|
+
}
|
181
|
+
l3();
|
182
|
+
});
|
183
|
+
document.body.appendChild(this.backdropElement);
|
130
184
|
}
|
131
|
-
onContainerScroll() {
|
132
|
-
this.service.closeAllContextMenu$.next({ sender: this });
|
133
|
-
}
|
134
|
-
// Host Listeners (UI Interaction Handling)
|
135
185
|
/** @ignore */
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
186
|
+
removeBackdrop() {
|
187
|
+
if (this.backdropElement) {
|
188
|
+
if (this.backdropElement.parentNode) {
|
189
|
+
this.backdropElement.parentNode.removeChild(this.backdropElement);
|
190
|
+
}
|
191
|
+
this.backdropElement = null;
|
141
192
|
}
|
142
193
|
}
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
}
|
194
|
+
// Host Listeners (UI Interaction Handling)
|
195
|
+
/** @ignore */
|
196
|
+
onWindowEvent() {
|
197
|
+
const sender = this;
|
198
|
+
this.service.closeAllContextMenu$.next({ sender: sender }); // Close all menus on scroll or resize
|
148
199
|
}
|
149
200
|
/** @ignore */
|
150
201
|
get __hostClass() {
|
151
|
-
return ['ax-menu-container', `ax-orientation-${this.orientation()}
|
202
|
+
return ['ax-menu-container', `ax-orientation-${this.orientation()}`, 'ax-action-list', 'ax-action-list-vertical'];
|
152
203
|
}
|
153
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXContextMenuComponent, deps: [
|
154
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXContextMenuComponent, selector: "ax-context-menu", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, openOn: { classPropertyName: "openOn", publicName: "openOn", isSignal: true, isRequired: false, transformFunction: null }, closeOn: { classPropertyName: "closeOn", publicName: "closeOn", isSignal: true, isRequired: false, transformFunction: null }, orginalItems: { classPropertyName: "orginalItems", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onItemClick: "onItemClick", onOpening: "onOpening" }, host: { listeners: { "
|
204
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXContextMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
205
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXContextMenuComponent, selector: "ax-context-menu", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, openOn: { classPropertyName: "openOn", publicName: "openOn", isSignal: true, isRequired: false, transformFunction: null }, closeOn: { classPropertyName: "closeOn", publicName: "closeOn", isSignal: true, isRequired: false, transformFunction: null }, orginalItems: { classPropertyName: "orginalItems", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onItemClick: "onItemClick", onOpening: "onOpening" }, host: { listeners: { "window:scroll": "onWindowEvent($event)", "window:resize": "onWindowEvent($event)" }, properties: { "class": "this.__hostClass" } }, providers: [
|
155
206
|
AXMenuService,
|
156
207
|
{
|
157
208
|
provide: AXRootMenu,
|
158
209
|
useExisting: AXContextMenuComponent
|
159
210
|
}
|
160
|
-
], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-menu-item,ax-title,ng-container\"></ng-content>\n\n<ng-container *ngFor=\"let node of items()\" [ngTemplateOutlet]=\"Recursion\"\n [ngTemplateOutletContext]=\"{ $implicit: node }\">\n</ng-container>\n<ng-template #Recursion let-item>\n @if(item.group?.title)\n {\n <ax-title>{{item.group?.title}}</ax-title>\n }\n <ax-menu-item [name]=\"item.name\" [data]=\"item.data\" [disabled]=\"item.disabled\" [color]=\"item.color\">\n <ax-prefix>\n @if(item.icon)\n {\n <ax-icon [icon]=\"item.icon\">\n </ax-icon>\n }\n </ax-prefix>\n @if(item.text)\n {\n <ax-text>{{ item.text }}</ax-text>\n }\n @if(item.suffix)\n {\n <ax-suffix>\n <ax-text>{{ item.suffix.text }}</ax-text>\n </ax-suffix>\n }\n <ng-container *ngFor=\"let child of item.
|
211
|
+
], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-menu-item,ax-title,ng-container\"></ng-content>\n\n<ng-container *ngFor=\"let node of items()\" [ngTemplateOutlet]=\"Recursion\"\n [ngTemplateOutletContext]=\"{ $implicit: node }\">\n</ng-container>\n<ng-template #Recursion let-item>\n @if(item.group?.title)\n {\n <ax-title>{{item.group?.title}}</ax-title>\n }\n <ax-menu-item [name]=\"item.name\" [data]=\"item.data\" [disabled]=\"item.disabled\" [color]=\"item.color\">\n <ax-prefix>\n @if(item.icon)\n {\n <ax-icon [icon]=\"item.icon\">\n </ax-icon>\n }\n </ax-prefix>\n @if(item.text)\n {\n <ax-text>{{ item.text }}</ax-text>\n }\n @if(item.suffix)\n {\n <ax-suffix>\n <ax-text>{{ item.suffix.text }}</ax-text>\n </ax-suffix>\n }\n <ng-container *ngFor=\"let child of item.items\" [ngTemplateOutlet]=\"Recursion\"\n [ngTemplateOutletContext]=\"{ $implicit: child }\"></ng-container>\n </ax-menu-item>\n @if(item.break)\n {\n <ax-divider></ax-divider>\n }\n</ng-template>", styles: ["ax-context-menu,ax-menu{width:100%;color:inherit;display:flex;width:max-content}ax-context-menu.ax-menu-container,ax-context-menu .ax-menu-items,ax-menu.ax-menu-container,ax-menu .ax-menu-items{padding-block:.5rem;display:flex;opacity:0;visibility:hidden;transition:opacity .3s;width:max-content;min-width:12rem;height:max-content;position:fixed;flex-direction:column;border-radius:0;border-width:1px;border-color:rgba(var(--ax-color-border-default));background-color:rgba(var(--ax-color-surface));--ax-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--ax-shadow-colored: 0 4px 6px -1px var(--ax-shadow-color), 0 2px 4px -2px var(--ax-shadow-color);box-shadow:var(--ax-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-shadow);border-radius:var(--ax-rounded-border-default);z-index:9999}ax-context-menu.ax-menu-container.ax-state-open,ax-context-menu .ax-menu-items.ax-state-open,ax-menu.ax-menu-container.ax-state-open,ax-menu .ax-menu-items.ax-state-open{opacity:1;visibility:visible}ax-context-menu.ax-action-list-horizontal{padding-inline:1rem}ax-menu.ax-action-list-horizontal{min-width:12rem;gap:.875rem}ax-menu.ax-action-list-horizontal>ax-menu-item{font-weight:500}ax-menu.ax-action-list-horizontal>ax-menu-item>.ax-action-item-prefix{padding-inline-start:0!important}ax-menu.ax-action-list-horizontal>ax-menu-item>.ax-action-item-suffix:not(ax-menu.ax-action-list-horizontal>ax-menu-item>.ax-action-item-suffix:empty){padding-inline-end:0!important;margin-inline-start:0!important}ax-menu.ax-action-list-horizontal>ax-menu-item:hover{background-color:transparent!important}ax-menu.ax-action-list-horizontal>ax-menu-item:hover>.ax-action-item-prefix{color:rgba(var(--ax-color-primary-500))}ax-menu.ax-action-list-horizontal>ax-menu-item:hover>.ax-action-item-suffix{color:rgba(var(--ax-color-primary-500))}ax-menu.ax-action-list-vertical{width:max-content;min-width:12rem}ax-menu.ax-action-list-vertical>ax-menu-item{font-weight:500}ax-menu>ax-menu-item{padding-block:.5rem}ax-menu>ax-menu-item:hover:not(ax-menu>ax-menu-item:hover.ax-state-disabled)>ax-icon,ax-menu>ax-menu-item:hover:not(ax-menu>ax-menu-item:hover.ax-state-disabled)>ax-text{color:rgba(var(--ax-color-primary-500))}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "component", type: i3.AXMenuItemComponent, selector: "ax-menu-item", inputs: ["name", "data", "disabled", "color"], outputs: ["onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
161
212
|
}
|
162
213
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXContextMenuComponent, decorators: [{
|
163
214
|
type: Component,
|
@@ -167,15 +218,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
167
218
|
provide: AXRootMenu,
|
168
219
|
useExisting: AXContextMenuComponent
|
169
220
|
}
|
170
|
-
], template: "<ng-content select=\"ax-menu-item,ax-title,ng-container\"></ng-content>\n\n<ng-container *ngFor=\"let node of items()\" [ngTemplateOutlet]=\"Recursion\"\n [ngTemplateOutletContext]=\"{ $implicit: node }\">\n</ng-container>\n<ng-template #Recursion let-item>\n @if(item.group?.title)\n {\n <ax-title>{{item.group?.title}}</ax-title>\n }\n <ax-menu-item [name]=\"item.name\" [data]=\"item.data\" [disabled]=\"item.disabled\" [color]=\"item.color\">\n <ax-prefix>\n @if(item.icon)\n {\n <ax-icon [icon]=\"item.icon\">\n </ax-icon>\n }\n </ax-prefix>\n @if(item.text)\n {\n <ax-text>{{ item.text }}</ax-text>\n }\n @if(item.suffix)\n {\n <ax-suffix>\n <ax-text>{{ item.suffix.text }}</ax-text>\n </ax-suffix>\n }\n <ng-container *ngFor=\"let child of item.
|
171
|
-
}], ctorParameters: () => [
|
221
|
+
], template: "<ng-content select=\"ax-menu-item,ax-title,ng-container\"></ng-content>\n\n<ng-container *ngFor=\"let node of items()\" [ngTemplateOutlet]=\"Recursion\"\n [ngTemplateOutletContext]=\"{ $implicit: node }\">\n</ng-container>\n<ng-template #Recursion let-item>\n @if(item.group?.title)\n {\n <ax-title>{{item.group?.title}}</ax-title>\n }\n <ax-menu-item [name]=\"item.name\" [data]=\"item.data\" [disabled]=\"item.disabled\" [color]=\"item.color\">\n <ax-prefix>\n @if(item.icon)\n {\n <ax-icon [icon]=\"item.icon\">\n </ax-icon>\n }\n </ax-prefix>\n @if(item.text)\n {\n <ax-text>{{ item.text }}</ax-text>\n }\n @if(item.suffix)\n {\n <ax-suffix>\n <ax-text>{{ item.suffix.text }}</ax-text>\n </ax-suffix>\n }\n <ng-container *ngFor=\"let child of item.items\" [ngTemplateOutlet]=\"Recursion\"\n [ngTemplateOutletContext]=\"{ $implicit: child }\"></ng-container>\n </ax-menu-item>\n @if(item.break)\n {\n <ax-divider></ax-divider>\n }\n</ng-template>", styles: ["ax-context-menu,ax-menu{width:100%;color:inherit;display:flex;width:max-content}ax-context-menu.ax-menu-container,ax-context-menu .ax-menu-items,ax-menu.ax-menu-container,ax-menu .ax-menu-items{padding-block:.5rem;display:flex;opacity:0;visibility:hidden;transition:opacity .3s;width:max-content;min-width:12rem;height:max-content;position:fixed;flex-direction:column;border-radius:0;border-width:1px;border-color:rgba(var(--ax-color-border-default));background-color:rgba(var(--ax-color-surface));--ax-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--ax-shadow-colored: 0 4px 6px -1px var(--ax-shadow-color), 0 2px 4px -2px var(--ax-shadow-color);box-shadow:var(--ax-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--ax-shadow);border-radius:var(--ax-rounded-border-default);z-index:9999}ax-context-menu.ax-menu-container.ax-state-open,ax-context-menu .ax-menu-items.ax-state-open,ax-menu.ax-menu-container.ax-state-open,ax-menu .ax-menu-items.ax-state-open{opacity:1;visibility:visible}ax-context-menu.ax-action-list-horizontal{padding-inline:1rem}ax-menu.ax-action-list-horizontal{min-width:12rem;gap:.875rem}ax-menu.ax-action-list-horizontal>ax-menu-item{font-weight:500}ax-menu.ax-action-list-horizontal>ax-menu-item>.ax-action-item-prefix{padding-inline-start:0!important}ax-menu.ax-action-list-horizontal>ax-menu-item>.ax-action-item-suffix:not(ax-menu.ax-action-list-horizontal>ax-menu-item>.ax-action-item-suffix:empty){padding-inline-end:0!important;margin-inline-start:0!important}ax-menu.ax-action-list-horizontal>ax-menu-item:hover{background-color:transparent!important}ax-menu.ax-action-list-horizontal>ax-menu-item:hover>.ax-action-item-prefix{color:rgba(var(--ax-color-primary-500))}ax-menu.ax-action-list-horizontal>ax-menu-item:hover>.ax-action-item-suffix{color:rgba(var(--ax-color-primary-500))}ax-menu.ax-action-list-vertical{width:max-content;min-width:12rem}ax-menu.ax-action-list-vertical>ax-menu-item{font-weight:500}ax-menu>ax-menu-item{padding-block:.5rem}ax-menu>ax-menu-item:hover:not(ax-menu>ax-menu-item:hover.ax-state-disabled)>ax-icon,ax-menu>ax-menu-item:hover:not(ax-menu>ax-menu-item:hover.ax-state-disabled)>ax-text{color:rgba(var(--ax-color-primary-500))}\n"] }]
|
222
|
+
}], ctorParameters: () => [], propDecorators: { onWindowEvent: [{
|
172
223
|
type: HostListener,
|
173
|
-
args: ['
|
174
|
-
}
|
224
|
+
args: ['window:scroll', ['$event']]
|
225
|
+
}, {
|
175
226
|
type: HostListener,
|
176
|
-
args: ['
|
227
|
+
args: ['window:resize', ['$event']]
|
177
228
|
}], __hostClass: [{
|
178
229
|
type: HostBinding,
|
179
230
|
args: ['class']
|
180
231
|
}] } });
|
181
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC1tZW51LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9tZW51L3NyYy9saWIvY29udGV4dC1tZW51LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9tZW51L3NyYy9saWIvbWVudS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWlCLGVBQWUsRUF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AgIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVuZGVyZXI6IFJlbmRlcmVyMikge1xuICAgICAgICBzdXBlcigpO1xuICAgICAgICBhZnRlck5leHRSZW5kZXIoKCkgPT4ge1xuICAgICAgICAgICAgaWYgKHRoaXMudGFyZ2V0KCkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnRhcmdldCgpLmFkZEV2ZW50TGlzdGVuZXIoJ2NvbnRleHRtZW51JywgdGhpcy5oYW5kbGVDb250ZXh0TWVudS5iaW5kKHRoaXMpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuYmluZFNjcm9sbEV2ZW50cygpO1xuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLnNlcnZpY2UuY2xvc2VBbGxDb250ZXh0TWVudSQuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuc2VydmljZS5jbG9zZUFsbCQubmV4dCgpO1xuICAgICAgICAgICAgdGhpcy5jbG9zZSgpO1xuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLnNlcnZpY2Uub3BlbkNvbnRleHRNZW51JC5zdWJzY3JpYmUoKGUpID0+IHtcbiAgICAgICAgICAgIGlmIChlLnNlbmRlciBhcyBhbnkgPT0gdGhpcykge1xuICAgICAgICAgICAgICAgIHRoaXMuaW50ZXJuYWxTaG93QXQoZS5wb2ludCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIC8vIExpZmVjeWNsZSBIb29rc1xuXG4gICAgbmdPbkRlc3Ryb3koKSB7XG4gICAgICAgIHRoaXMucmVtb3ZlU2Nyb2xsRXZlbnRzKCk7XG4gICAgfVxuXG4gICAgLy8gUHVibGljIE1ldGhvZHNcblxuICAgIHB1YmxpYyBzaG93QXQocG9pbnQ6IEFYUG9pbnQpIHtcbiAgICAgICAgY29uc3Qgc2VuZGVyID0gdGhpcyBhcyBhbnkgYXMgQVhSb290TWVudTtcbiAgICAgICAgdGhp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10aXRsZT5cbiAgICB9XG4gICAgPGF4LW1lbnUtaXRlbSBbbmFtZV09XCJpdGVtLm5hbWVcIiBbZGF0YV09XCJpdGVtLmRhdGFcIiBbZGlzYWJsZWRdPVwiaXRlbS5kaXNhYmxlZFwiIFtjb2xvcl09XCJpdGVtLmNvbG9yXCI+XG4gICAgICAgIDxheC1wcmVmaXg+XG4gICAgICAgICAgICBAaWYoaXRlbS5pY29uKVxuICAgICAgICAgICAge1xuICAgICAgICAgICAgPGF4LWljb24gW2ljb25dPVwiaXRlbS5pY29uXCI+XG4gICAgICAgICAgICA8L2F4LWljb24+XG4gICAgICAgICAgICB9XG4gICAgICAgIDwvYXgtcHJlZml4PlxuICAgICAgICBAaWYoaXRlbS50ZXh0KVxuICAgICAgICB7XG4gICAgICAgIDxheC10ZXh0Pnt7IGl0ZW0udGV4dCB9fTwvYXgtdGV4dD5cbiAgICAgICAgfVxuICAgICAgICBAaWYoaXRlbS5zdWZmaXgpXG4gICAgICAgIHtcbiAgICAgICAgPGF4LXN1ZmZpeD5cbiAgICAgICAgICAgIDxheC10ZXh0Pnt7IGl0ZW0uc3VmZml4LnRleHQgfX08L2F4LXRleHQ+XG4gICAgICAgIDwvYXgtc3VmZml4PlxuICAgICAgICB9XG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nRm9yPVwibGV0IGNoaWxkIG9mIGl0ZW0uY2hpbGRyZW5cIiBbbmdUZW1wbGF0ZU91dGxldF09XCJSZWN1cnNpb25cIlxuICAgICAgICAgICAgW25nVGVtcGxhdGVPdXRsZXRDb250ZXh0XT1cInsgJGltcGxpY2l0OiBjaGlsZCB9XCI+PC9uZy1jb250YWluZXI+XG4gICAgPC9heC1tZW51LWl0ZW0+XG4gICAgQGlmKGl0ZW0uYnJlYWspXG4gICAge1xuICAgIDxheC1kaXZpZGVyPjwvYXgtZGl2aWRlcj5cbiAgICB9XG48L25nLXRlbXBsYXRlPiJdfQ==
|
232
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2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gIGNvbnN0IHdpbmRvd0hlaWdodCA9IHdpbmRvdy5pbm5lckhlaWdodDtcblxuICAgICAgICAvLyBEZXRlY3QgUlRMIChSaWdodC1Uby1MZWZ0KSBtb2RlXG4gICAgICAgIGNvbnN0IGlzUnRsID0gQVhIdG1sVXRpbC5pc1J0bChlbGVtZW50UmVmKTtcblxuICAgICAgICBsZXQgbGVmdDogbnVtYmVyO1xuICAgICAgICBpZiAoaXNSdGwpIHtcbiAgICAgICAgICAgIGxlZnQgPSBwb2ludC54IC0gaXRlbVJlY3Qud2lkdGg7XG4gICAgICAgICAgICBpZiAobGVmdCA8IDApIHtcbiAgICAgICAgICAgICAgICBsZWZ0ID0gcG9pbnQueDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGxlZnQgPSBwb2ludC54O1xuICAgICAgICAgICAgaWYgKGxlZnQgKyBpdGVtUmVjdC53aWR0aCA+IHdpbmRvd1dpZHRoKSB7XG4gICAgICAgICAgICAgICAgbGVmdCA9IHBvaW50LnggLSBpdGVtUmVjdC53aWR0aDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IGJvdHRvbSA9IHBvaW50LnkgKyBpdGVtUmVjdC5oZWlnaHQ7XG4gICAgICAgIGxldCB0b3A6IG51bWJlcjtcblxuICAgICAgICBpZiAoYm90dG9tID4gd2luZG93SGVpZ2h0KSB7XG4gICAgICAgICAgICB0b3AgPSBwb2ludC55IC0gaXRlbVJlY3QuaGVpZ2h0O1xuICAgICAgICAgICAgaWYgKHRvcCA8IDApIHtcbiAgICAgICAgICAgICAgICB0b3AgPSAwO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdG9wID0gcG9pbnQueTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMucmVuZGVyZXIuc2V0U3R5bGUoZWxlbWVudFJlZiwgJ2xlZnQnLCBgJHtsZWZ0fXB4Y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AnYmFja2dyb3VuZCcsICd0cmFuc3BhcmVudCcpO1xuXG4gICAgICAgIGNvbnN0IGwxID0gdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5iYWNrZHJvcEVsZW1lbnQsICdjbGljaycsICgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuY2xvc2UoKTtcbiAgICAgICAgICAgIGwxKCk7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNvbnN0IGwyID0gdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5iYWNrZHJvcEVsZW1lbnQsICd3aGVlbCcsICgpID0+IHtcbiAgICAgICAgICAgIHRoaXMuY2xvc2UoKTtcbiAgICAgICAgICAgIGwyKCk7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNvbnN0IGwzID0gdGhpcy5yZW5kZXJlci5saXN0ZW4odGhpcy5iYWNrZHJvcEVsZW1lbnQsICdjb250ZXh0bWVudScsIChlOiBNb3VzZUV2ZW50KSA9PiB7XG4gICAgICAgICAgICB0aGlzLmNsb3NlKCk7XG4gICAgICAgICAgICAvLyBHZXQgYWxsIGVsZW1lbnRzIHVuZGVyIHRoZSBtb3VzZSBwb2ludGVyXG4gICAgICAgICAgICBjb25zdCBlbGVtZW50c1VuZGVyTW91c2UgPSBkb2N1bWVudC5lbGVtZW50c0Zyb21Qb2ludChlLngsIGUueSkgYXMgSFRNTEVsZW1lbnRbXTtcbiAgICAgICAgICAgIGNvbnN0IHRhcmdldEVsZW1lbnRzID0gdGhpcy5nZXRUYXJnZXRFbGVtZW50cygpO1xuICAgICAgICAgICAgaWYgKHRhcmdldEVsZW1lbnRzLnNvbWUodGFyZ2V0ID0+IGVsZW1lbnRzVW5kZXJNb3VzZS5pbmNsdWRlcyh0YXJnZXQpKSkge1xuICAgICAgICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgLy90aGlzLmludGV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