ngx-smz-ui 3.6.5 → 3.6.6
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/bundles/ngx-smz-ui.umd.js +143 -51
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/modules/smz-menu/components/menu.js +143 -154
- package/fesm2015/ngx-smz-ui.js +132 -147
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/modules/smz-menu/components/menu.d.ts +15 -7
- package/package.json +1 -1
|
@@ -7436,17 +7436,67 @@
|
|
|
7436
7436
|
function MenuItemContent(menu) {
|
|
7437
7437
|
this.menu = menu;
|
|
7438
7438
|
}
|
|
7439
|
+
MenuItemContent.prototype.onItemKeyDown = function (event) {
|
|
7440
|
+
var listItem = event.currentTarget.parentElement;
|
|
7441
|
+
switch (event.code) {
|
|
7442
|
+
case "ArrowDown":
|
|
7443
|
+
var nextItem = this.findNextItem(listItem);
|
|
7444
|
+
if (nextItem) {
|
|
7445
|
+
nextItem.children[0].focus();
|
|
7446
|
+
}
|
|
7447
|
+
event.preventDefault();
|
|
7448
|
+
break;
|
|
7449
|
+
case "ArrowUp":
|
|
7450
|
+
var prevItem = this.findPrevItem(listItem);
|
|
7451
|
+
if (prevItem) {
|
|
7452
|
+
prevItem.children[0].focus();
|
|
7453
|
+
}
|
|
7454
|
+
event.preventDefault();
|
|
7455
|
+
break;
|
|
7456
|
+
case "Space":
|
|
7457
|
+
case "Enter":
|
|
7458
|
+
if (listItem && !dom.DomHandler.hasClass(listItem, "p-disabled")) {
|
|
7459
|
+
listItem.children[0].click();
|
|
7460
|
+
}
|
|
7461
|
+
event.preventDefault();
|
|
7462
|
+
break;
|
|
7463
|
+
default:
|
|
7464
|
+
break;
|
|
7465
|
+
}
|
|
7466
|
+
};
|
|
7467
|
+
MenuItemContent.prototype.findNextItem = function (item) {
|
|
7468
|
+
var nextItem = item.nextElementSibling;
|
|
7469
|
+
if (nextItem)
|
|
7470
|
+
return dom.DomHandler.hasClass(nextItem, "p-disabled") ||
|
|
7471
|
+
!dom.DomHandler.hasClass(nextItem, "p-menuitem")
|
|
7472
|
+
? this.findNextItem(nextItem)
|
|
7473
|
+
: nextItem;
|
|
7474
|
+
else
|
|
7475
|
+
return null;
|
|
7476
|
+
};
|
|
7477
|
+
MenuItemContent.prototype.findPrevItem = function (item) {
|
|
7478
|
+
var prevItem = item.previousElementSibling;
|
|
7479
|
+
if (prevItem)
|
|
7480
|
+
return dom.DomHandler.hasClass(prevItem, "p-disabled") ||
|
|
7481
|
+
!dom.DomHandler.hasClass(prevItem, "p-menuitem")
|
|
7482
|
+
? this.findPrevItem(prevItem)
|
|
7483
|
+
: prevItem;
|
|
7484
|
+
else
|
|
7485
|
+
return null;
|
|
7486
|
+
};
|
|
7439
7487
|
return MenuItemContent;
|
|
7440
7488
|
}());
|
|
7441
7489
|
MenuItemContent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: MenuItemContent, deps: [{ token: i0.forwardRef(function () { return Menu; }) }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7442
|
-
MenuItemContent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: MenuItemContent, selector: "[pMenuItemContent]", inputs: { item: ["pMenuItemContent", "item"] }, ngImport: i0__namespace, template: "\n
|
|
7490
|
+
MenuItemContent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: MenuItemContent, selector: "[pMenuItemContent]", inputs: { item: ["pMenuItemContent", "item"] }, host: { classAttribute: "p-element" }, ngImport: i0__namespace, template: "<a\n *ngIf=\"!item.routerLink\"\n (keydown)=\"onItemKeyDown($event)\"\n [attr.href]=\"item.url || null\"\n class=\"p-menuitem-link\"\n [attr.tabindex]=\"item.disabled ? null : '0'\"\n [attr.data-automationid]=\"item.automationId\"\n [attr.target]=\"item.target\"\n [attr.title]=\"item.title\"\n [attr.id]=\"item.id\"\n [ngClass]=\"{ 'p-disabled': item.disabled }\"\n (click)=\"menu.itemClick($event, item)\"\n role=\"menuitem\"\n>\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span class=\"p-menuitem-text\" *ngIf=\"item.escape !== false; else htmlLabel\"\n >{{ item.label }}</span\n >\n <ng-template #htmlLabel\n ><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span\n ></ng-template>\n</a>\n<a\n *ngIf=\"item.routerLink\"\n (keydown)=\"onItemKeyDown($event)\"\n [routerLink]=\"item.routerLink\"\n [attr.data-automationid]=\"item.automationId\"\n [queryParams]=\"item.queryParams\"\n [routerLinkActive]=\"'p-menuitem-link-active'\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n class=\"p-menuitem-link\"\n [attr.target]=\"item.target\"\n [attr.id]=\"item.id\"\n [attr.tabindex]=\"item.disabled ? null : '0'\"\n [attr.title]=\"item.title\"\n [ngClass]=\"{ 'p-disabled': item.disabled }\"\n (click)=\"menu.itemClick($event, item)\"\n role=\"menuitem\"\n pRipple\n [fragment]=\"item.fragment\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [preserveFragment]=\"item.preserveFragment\"\n [skipLocationChange]=\"item.skipLocationChange\"\n [replaceUrl]=\"item.replaceUrl\"\n [state]=\"item.state\"\n>\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span\n class=\"p-menuitem-text\"\n *ngIf=\"item.escape !== false; else htmlRouteLabel\"\n >{{ item.label }}</span\n >\n <ng-template #htmlRouteLabel\n ><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span\n ></ng-template>\n</a>\n", directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$f.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i3__namespace$4.Ripple, selector: "[pRipple]" }, { type: i1__namespace$f.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
7443
7491
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: MenuItemContent, decorators: [{
|
|
7444
7492
|
type: i0.Component,
|
|
7445
7493
|
args: [{
|
|
7446
|
-
selector:
|
|
7447
|
-
template: "\n <a *ngIf=\"!item.routerLink\" [attr.href]=\"item.url||null\" class=\"p-menuitem-link\" [attr.tabindex]=\"item.disabled ? null : '0'\" [attr.data-automationid]=\"item.automationId\" [attr.target]=\"item.target\" [attr.title]=\"item.title\" [attr.id]=\"item.id\"\n [ngClass]=\"{'p-disabled':item.disabled}\" (click)=\"menu.itemClick($event, item)\" role=\"menuitem\">\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span class=\"p-menuitem-text\" *ngIf=\"item.escape !== false; else htmlLabel\">{{item.label}}</span>\n <ng-template #htmlLabel><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span></ng-template>\n </a>\n <a *ngIf=\"item.routerLink\" [routerLink]=\"item.routerLink\" [attr.data-automationid]=\"item.automationId\" [queryParams]=\"item.queryParams\" [routerLinkActive]=\"'p-menuitem-link-active'\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions||{exact:false}\" class=\"p-menuitem-link\" [attr.target]=\"item.target\" [attr.id]=\"item.id\" [attr.tabindex]=\"item.disabled ? null : '0'\"\n [attr.title]=\"item.title\" [ngClass]=\"{'p-disabled':item.disabled}\" (click)=\"menu.itemClick($event, item)\" role=\"menuitem\" pRipple\n [fragment]=\"item.fragment\" [queryParamsHandling]=\"item.queryParamsHandling\" [preserveFragment]=\"item.preserveFragment\" [skipLocationChange]=\"item.skipLocationChange\" [replaceUrl]=\"item.replaceUrl\" [state]=\"item.state\">\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span class=\"p-menuitem-text\" *ngIf=\"item.escape !== false; else htmlRouteLabel\">{{item.label}}</span>\n <ng-template #htmlRouteLabel><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span></ng-template>\n </a>\n ",
|
|
7494
|
+
selector: "[pMenuItemContent]",
|
|
7448
7495
|
encapsulation: i0.ViewEncapsulation.None,
|
|
7449
|
-
|
|
7496
|
+
templateUrl: "./menu-item-content.html",
|
|
7497
|
+
host: {
|
|
7498
|
+
class: "p-element",
|
|
7499
|
+
},
|
|
7450
7500
|
}]
|
|
7451
7501
|
}], ctorParameters: function () {
|
|
7452
7502
|
return [{ type: undefined, decorators: [{
|
|
@@ -7458,14 +7508,16 @@
|
|
|
7458
7508
|
args: ["pMenuItemContent"]
|
|
7459
7509
|
}] } });
|
|
7460
7510
|
var Menu = /** @class */ (function () {
|
|
7461
|
-
function Menu(el, renderer, cd) {
|
|
7511
|
+
function Menu(el, renderer, cd, config, overlayService) {
|
|
7462
7512
|
this.el = el;
|
|
7463
7513
|
this.renderer = renderer;
|
|
7464
7514
|
this.cd = cd;
|
|
7515
|
+
this.config = config;
|
|
7516
|
+
this.overlayService = overlayService;
|
|
7465
7517
|
this.autoZIndex = true;
|
|
7466
7518
|
this.baseZIndex = 0;
|
|
7467
|
-
this.showTransitionOptions =
|
|
7468
|
-
this.hideTransitionOptions =
|
|
7519
|
+
this.showTransitionOptions = ".12s cubic-bezier(0, 0, 0.2, 1)";
|
|
7520
|
+
this.hideTransitionOptions = ".1s linear";
|
|
7469
7521
|
this.onShow = new i0.EventEmitter();
|
|
7470
7522
|
this.onHide = new i0.EventEmitter();
|
|
7471
7523
|
}
|
|
@@ -7486,7 +7538,7 @@
|
|
|
7486
7538
|
};
|
|
7487
7539
|
Menu.prototype.onOverlayAnimationStart = function (event) {
|
|
7488
7540
|
switch (event.toState) {
|
|
7489
|
-
case
|
|
7541
|
+
case "visible":
|
|
7490
7542
|
if (this.popup) {
|
|
7491
7543
|
this.container = event.element;
|
|
7492
7544
|
this.moveOnTop();
|
|
@@ -7498,12 +7550,21 @@
|
|
|
7498
7550
|
this.bindScrollListener();
|
|
7499
7551
|
}
|
|
7500
7552
|
break;
|
|
7501
|
-
case
|
|
7553
|
+
case "void":
|
|
7502
7554
|
this.onOverlayHide();
|
|
7503
7555
|
this.onHide.emit({});
|
|
7504
7556
|
break;
|
|
7505
7557
|
}
|
|
7506
7558
|
};
|
|
7559
|
+
Menu.prototype.onOverlayAnimationEnd = function (event) {
|
|
7560
|
+
switch (event.toState) {
|
|
7561
|
+
case "void":
|
|
7562
|
+
if (this.autoZIndex) {
|
|
7563
|
+
utils.ZIndexUtils.clear(event.element);
|
|
7564
|
+
}
|
|
7565
|
+
break;
|
|
7566
|
+
}
|
|
7567
|
+
};
|
|
7507
7568
|
Menu.prototype.alignOverlay = function () {
|
|
7508
7569
|
if (this.relativeAlign)
|
|
7509
7570
|
dom.DomHandler.relativePosition(this.container, this.target);
|
|
@@ -7512,7 +7573,7 @@
|
|
|
7512
7573
|
};
|
|
7513
7574
|
Menu.prototype.appendOverlay = function () {
|
|
7514
7575
|
if (this.appendTo) {
|
|
7515
|
-
if (this.appendTo ===
|
|
7576
|
+
if (this.appendTo === "body")
|
|
7516
7577
|
document.body.appendChild(this.container);
|
|
7517
7578
|
else
|
|
7518
7579
|
dom.DomHandler.appendChild(this.container, this.appendTo);
|
|
@@ -7525,7 +7586,7 @@
|
|
|
7525
7586
|
};
|
|
7526
7587
|
Menu.prototype.moveOnTop = function () {
|
|
7527
7588
|
if (this.autoZIndex) {
|
|
7528
|
-
this.container
|
|
7589
|
+
utils.ZIndexUtils.set("menu", this.container, this.baseZIndex + this.config.zIndex.menu);
|
|
7529
7590
|
}
|
|
7530
7591
|
};
|
|
7531
7592
|
Menu.prototype.hide = function () {
|
|
@@ -7541,7 +7602,7 @@
|
|
|
7541
7602
|
event.preventDefault();
|
|
7542
7603
|
return;
|
|
7543
7604
|
}
|
|
7544
|
-
if (!item.url) {
|
|
7605
|
+
if (!item.url && !item.routerLink) {
|
|
7545
7606
|
event.preventDefault();
|
|
7546
7607
|
}
|
|
7547
7608
|
if (item.command) {
|
|
@@ -7551,11 +7612,22 @@
|
|
|
7551
7612
|
this.hide();
|
|
7552
7613
|
}
|
|
7553
7614
|
};
|
|
7615
|
+
Menu.prototype.onOverlayClick = function (event) {
|
|
7616
|
+
if (this.popup) {
|
|
7617
|
+
this.overlayService.add({
|
|
7618
|
+
originalEvent: event,
|
|
7619
|
+
target: this.el.nativeElement,
|
|
7620
|
+
});
|
|
7621
|
+
}
|
|
7622
|
+
this.preventDocumentDefault = true;
|
|
7623
|
+
};
|
|
7554
7624
|
Menu.prototype.bindDocumentClickListener = function () {
|
|
7555
7625
|
var _this = this;
|
|
7556
7626
|
if (!this.documentClickListener) {
|
|
7557
|
-
var documentTarget = this.el
|
|
7558
|
-
|
|
7627
|
+
var documentTarget = this.el
|
|
7628
|
+
? this.el.nativeElement.ownerDocument
|
|
7629
|
+
: "document";
|
|
7630
|
+
this.documentClickListener = this.renderer.listen(documentTarget, "click", function () {
|
|
7559
7631
|
if (!_this.preventDocumentDefault) {
|
|
7560
7632
|
_this.hide();
|
|
7561
7633
|
}
|
|
@@ -7571,11 +7643,11 @@
|
|
|
7571
7643
|
};
|
|
7572
7644
|
Menu.prototype.bindDocumentResizeListener = function () {
|
|
7573
7645
|
this.documentResizeListener = this.onWindowResize.bind(this);
|
|
7574
|
-
window.addEventListener(
|
|
7646
|
+
window.addEventListener("resize", this.documentResizeListener);
|
|
7575
7647
|
};
|
|
7576
7648
|
Menu.prototype.unbindDocumentResizeListener = function () {
|
|
7577
7649
|
if (this.documentResizeListener) {
|
|
7578
|
-
window.removeEventListener(
|
|
7650
|
+
window.removeEventListener("resize", this.documentResizeListener);
|
|
7579
7651
|
this.documentResizeListener = null;
|
|
7580
7652
|
}
|
|
7581
7653
|
};
|
|
@@ -7600,7 +7672,9 @@
|
|
|
7600
7672
|
this.unbindDocumentResizeListener();
|
|
7601
7673
|
this.unbindScrollListener();
|
|
7602
7674
|
this.preventDocumentDefault = false;
|
|
7603
|
-
this.
|
|
7675
|
+
if (!this.cd.destroyed) {
|
|
7676
|
+
this.target = null;
|
|
7677
|
+
}
|
|
7604
7678
|
};
|
|
7605
7679
|
Menu.prototype.ngOnDestroy = function () {
|
|
7606
7680
|
if (this.popup) {
|
|
@@ -7608,54 +7682,72 @@
|
|
|
7608
7682
|
this.scrollHandler.destroy();
|
|
7609
7683
|
this.scrollHandler = null;
|
|
7610
7684
|
}
|
|
7685
|
+
if (this.container && this.autoZIndex) {
|
|
7686
|
+
utils.ZIndexUtils.clear(this.container);
|
|
7687
|
+
}
|
|
7611
7688
|
this.restoreOverlayAppend();
|
|
7612
7689
|
this.onOverlayHide();
|
|
7613
7690
|
}
|
|
7614
7691
|
};
|
|
7615
|
-
Menu.prototype.hasSubMenu = function (
|
|
7616
|
-
var _a;
|
|
7617
|
-
if (
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7692
|
+
Menu.prototype.hasSubMenu = function () {
|
|
7693
|
+
var e_1, _a;
|
|
7694
|
+
if (this.model) {
|
|
7695
|
+
try {
|
|
7696
|
+
for (var _b = __values(this.model), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
7697
|
+
var item = _c.value;
|
|
7698
|
+
if (item.items) {
|
|
7699
|
+
return true;
|
|
7700
|
+
}
|
|
7701
|
+
}
|
|
7702
|
+
}
|
|
7703
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
7704
|
+
finally {
|
|
7705
|
+
try {
|
|
7706
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
7707
|
+
}
|
|
7708
|
+
finally { if (e_1) throw e_1.error; }
|
|
7709
|
+
}
|
|
7622
7710
|
}
|
|
7711
|
+
return false;
|
|
7623
7712
|
};
|
|
7624
7713
|
return Menu;
|
|
7625
7714
|
}());
|
|
7626
|
-
Menu.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: Menu, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7627
|
-
Menu.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: Menu, selector: "smz-menu-items", inputs: { model: "model", popup: "popup", style: "style", styleClass: "styleClass", appendTo: "appendTo", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions" }, outputs: { onShow: "onShow", onHide: "onHide" }, viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], ngImport: i0__namespace, template: "\n
|
|
7628
|
-
animations.trigger(
|
|
7629
|
-
animations.transition(
|
|
7630
|
-
animations.style({ opacity: 0, transform:
|
|
7631
|
-
animations.animate(
|
|
7715
|
+
Menu.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: Menu, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$6.PrimeNGConfig }, { token: i1__namespace$6.OverlayService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7716
|
+
Menu.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: Menu, selector: "smz-menu-items", inputs: { model: "model", popup: "popup", style: "style", styleClass: "styleClass", appendTo: "appendTo", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions" }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { classAttribute: "p-element" }, viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], ngImport: i0__namespace, template: "<div\n #container\n [ngClass]=\"{'p-menu p-component': true, 'p-menu-overlay': popup}\"\n [class]=\"styleClass\"\n [ngStyle]=\"style\"\n *ngIf=\"!popup || visible\"\n (click)=\"onOverlayClick($event)\"\n [@overlayAnimation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\"\n [@.disabled]=\"popup !== true\"\n (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\"\n (@overlayAnimation.done)=\"onOverlayAnimationEnd($event)\"\n>\n <ul class=\"p-menu-list p-reset\" role=\"menu\">\n <ng-template ngFor let-submenu [ngForOf]=\"model\" *ngIf=\"hasSubMenu()\">\n <li\n class=\"p-menu-separator\"\n *ngIf=\"submenu.separator\"\n [ngClass]=\"{'p-hidden': submenu.visible === false}\"\n role=\"separator\"\n ></li>\n <li\n class=\"p-submenu-header\"\n [attr.data-automationid]=\"submenu.automationId\"\n *ngIf=\"!submenu.separator\"\n [ngClass]=\"{'p-hidden': submenu.visible === false}\"\n pTooltip\n [tooltipOptions]=\"submenu.tooltipOptions\"\n role=\"none\"\n >\n <span *ngIf=\"submenu.escape !== false; else htmlSubmenuLabel\"\n >{{submenu.label}}</span\n >\n <ng-template #htmlSubmenuLabel\n ><span [innerHTML]=\"submenu.label\"></span\n ></ng-template>\n </li>\n <ng-template ngFor let-item [ngForOf]=\"submenu.items\">\n <li\n class=\"p-menu-separator\"\n *ngIf=\"item.separator\"\n [ngClass]=\"{'p-hidden': (item.visible === false || submenu.visible === false)}\"\n role=\"separator\"\n ></li>\n <li\n class=\"p-menuitem\"\n *ngIf=\"!item.separator\"\n [pMenuItemContent]=\"item\"\n [ngClass]=\"{'p-hidden': (item.visible === false || submenu.visible === false)}\"\n [ngStyle]=\"item.style\"\n [class]=\"item.styleClass\"\n pTooltip\n [tooltipOptions]=\"item.tooltipOptions\"\n role=\"none\"\n ></li>\n </ng-template>\n </ng-template>\n <ng-template ngFor let-item [ngForOf]=\"model\" *ngIf=\"!hasSubMenu()\">\n <li\n class=\"p-menu-separator\"\n *ngIf=\"item.separator\"\n [ngClass]=\"{'p-hidden': item.visible === false}\"\n role=\"separator\"\n ></li>\n <li\n class=\"p-menuitem\"\n *ngIf=\"!item.separator\"\n [pMenuItemContent]=\"item\"\n [ngClass]=\"{'p-hidden': item.visible === false}\"\n [ngStyle]=\"item.style\"\n [class]=\"item.styleClass\"\n pTooltip\n [tooltipOptions]=\"item.tooltipOptions\"\n role=\"none\"\n ></li>\n </ng-template>\n </ul>\n</div>\n", styles: [".p-menu-overlay{position:absolute;top:0;left:0}.p-menu ul{margin:0;padding:0;list-style:none}.p-menu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menuitem-child .p-menuitem-link{padding-left:24px}.p-menu .p-menuitem-text{line-height:1}\n"], components: [{ type: MenuItemContent, selector: "[pMenuItemContent]", inputs: ["pMenuItemContent"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }], animations: [
|
|
7717
|
+
animations.trigger("overlayAnimation", [
|
|
7718
|
+
animations.transition(":enter", [
|
|
7719
|
+
animations.style({ opacity: 0, transform: "scaleY(0.8)" }),
|
|
7720
|
+
animations.animate("{{showTransitionParams}}"),
|
|
7632
7721
|
]),
|
|
7633
|
-
animations.transition(
|
|
7634
|
-
animations.animate(
|
|
7635
|
-
])
|
|
7636
|
-
])
|
|
7722
|
+
animations.transition(":leave", [
|
|
7723
|
+
animations.animate("{{hideTransitionParams}}", animations.style({ opacity: 0 })),
|
|
7724
|
+
]),
|
|
7725
|
+
]),
|
|
7637
7726
|
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
7638
7727
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: Menu, decorators: [{
|
|
7639
7728
|
type: i0.Component,
|
|
7640
7729
|
args: [{
|
|
7641
|
-
selector:
|
|
7642
|
-
|
|
7730
|
+
selector: "smz-menu-items",
|
|
7731
|
+
templateUrl: "./menu.html",
|
|
7643
7732
|
animations: [
|
|
7644
|
-
animations.trigger(
|
|
7645
|
-
animations.transition(
|
|
7646
|
-
animations.style({ opacity: 0, transform:
|
|
7647
|
-
animations.animate(
|
|
7733
|
+
animations.trigger("overlayAnimation", [
|
|
7734
|
+
animations.transition(":enter", [
|
|
7735
|
+
animations.style({ opacity: 0, transform: "scaleY(0.8)" }),
|
|
7736
|
+
animations.animate("{{showTransitionParams}}"),
|
|
7648
7737
|
]),
|
|
7649
|
-
animations.transition(
|
|
7650
|
-
animations.animate(
|
|
7651
|
-
])
|
|
7652
|
-
])
|
|
7738
|
+
animations.transition(":leave", [
|
|
7739
|
+
animations.animate("{{hideTransitionParams}}", animations.style({ opacity: 0 })),
|
|
7740
|
+
]),
|
|
7741
|
+
]),
|
|
7653
7742
|
],
|
|
7654
7743
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7655
7744
|
encapsulation: i0.ViewEncapsulation.None,
|
|
7656
|
-
styleUrls: [
|
|
7745
|
+
styleUrls: ["./menu.css"],
|
|
7746
|
+
host: {
|
|
7747
|
+
class: "p-element",
|
|
7748
|
+
},
|
|
7657
7749
|
}]
|
|
7658
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { model: [{
|
|
7750
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$6.PrimeNGConfig }, { type: i1__namespace$6.OverlayService }]; }, propDecorators: { model: [{
|
|
7659
7751
|
type: i0.Input
|
|
7660
7752
|
}], popup: [{
|
|
7661
7753
|
type: i0.Input
|
|
@@ -7675,7 +7767,7 @@
|
|
|
7675
7767
|
type: i0.Input
|
|
7676
7768
|
}], containerViewChild: [{
|
|
7677
7769
|
type: i0.ViewChild,
|
|
7678
|
-
args: [
|
|
7770
|
+
args: ["container"]
|
|
7679
7771
|
}], onShow: [{
|
|
7680
7772
|
type: i0.Output
|
|
7681
7773
|
}], onHide: [{
|
|
@@ -7687,14 +7779,14 @@
|
|
|
7687
7779
|
return SmzMenuModule;
|
|
7688
7780
|
}());
|
|
7689
7781
|
SmzMenuModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
7690
|
-
SmzMenuModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, declarations: [Menu, MenuItemContent], imports: [i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule], exports: [Menu, i1$f.RouterModule] });
|
|
7691
|
-
SmzMenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, imports: [[i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule], i1$f.RouterModule] });
|
|
7782
|
+
SmzMenuModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, declarations: [Menu, MenuItemContent], imports: [i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule, i1$2.TooltipModule], exports: [Menu, i1$f.RouterModule] });
|
|
7783
|
+
SmzMenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, imports: [[i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule, i1$2.TooltipModule], i1$f.RouterModule] });
|
|
7692
7784
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, decorators: [{
|
|
7693
7785
|
type: i0.NgModule,
|
|
7694
7786
|
args: [{
|
|
7695
|
-
imports: [i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule],
|
|
7787
|
+
imports: [i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule, i1$2.TooltipModule],
|
|
7696
7788
|
exports: [Menu, i1$f.RouterModule],
|
|
7697
|
-
declarations: [Menu, MenuItemContent]
|
|
7789
|
+
declarations: [Menu, MenuItemContent],
|
|
7698
7790
|
}]
|
|
7699
7791
|
}] });
|
|
7700
7792
|
|