ngx-smz-ui 3.6.6 → 3.6.7

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.
@@ -7487,11 +7487,11 @@
7487
7487
  return MenuItemContent;
7488
7488
  }());
7489
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 });
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 });
7490
+ MenuItemContent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: MenuItemContent, selector: "[smzMenuItemContent]", inputs: { item: ["smzMenuItemContent", "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 });
7491
7491
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: MenuItemContent, decorators: [{
7492
7492
  type: i0.Component,
7493
7493
  args: [{
7494
- selector: "[pMenuItemContent]",
7494
+ selector: "[smzMenuItemContent]",
7495
7495
  encapsulation: i0.ViewEncapsulation.None,
7496
7496
  templateUrl: "./menu-item-content.html",
7497
7497
  host: {
@@ -7505,7 +7505,7 @@
7505
7505
  }] }];
7506
7506
  }, propDecorators: { item: [{
7507
7507
  type: i0.Input,
7508
- args: ["pMenuItemContent"]
7508
+ args: ["smzMenuItemContent"]
7509
7509
  }] } });
7510
7510
  var Menu = /** @class */ (function () {
7511
7511
  function Menu(el, renderer, cd, config, overlayService) {
@@ -7690,12 +7690,13 @@
7690
7690
  }
7691
7691
  };
7692
7692
  Menu.prototype.hasSubMenu = function () {
7693
- var e_1, _a;
7693
+ var e_1, _b;
7694
+ var _a;
7694
7695
  if (this.model) {
7695
7696
  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) {
7697
+ for (var _c = __values(this.model), _d = _c.next(); !_d.done; _d = _c.next()) {
7698
+ var item = _d.value;
7699
+ if (((_a = item.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
7699
7700
  return true;
7700
7701
  }
7701
7702
  }
@@ -7703,7 +7704,7 @@
7703
7704
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
7704
7705
  finally {
7705
7706
  try {
7706
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7707
+ if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
7707
7708
  }
7708
7709
  finally { if (e_1) throw e_1.error; }
7709
7710
  }
@@ -7713,7 +7714,7 @@
7713
7714
  return Menu;
7714
7715
  }());
7715
7716
  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
+ 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 [smzMenuItemContent]=\"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 [smzMenuItemContent]=\"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: "[smzMenuItemContent]", inputs: ["smzMenuItemContent"] }], 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
7718
  animations.trigger("overlayAnimation", [
7718
7719
  animations.transition(":enter", [
7719
7720
  animations.style({ opacity: 0, transform: "scaleY(0.8)" }),