ng-tailwind 5.2.3 → 5.2.4
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/components/ngt-context-menu/ngt-context-menu.component.d.ts +1 -0
- package/esm2020/components/ngt-context-menu/ngt-context-menu.component.mjs +3 -3
- package/fesm2015/ng-tailwind.mjs +2 -2
- package/fesm2015/ng-tailwind.mjs.map +1 -1
- package/fesm2020/ng-tailwind.mjs +2 -2
- package/fesm2020/ng-tailwind.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/ng-tailwind.mjs
CHANGED
|
@@ -8580,10 +8580,10 @@ class NgtContextMenuComponent {
|
|
|
8580
8580
|
}
|
|
8581
8581
|
}
|
|
8582
8582
|
NgtContextMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtContextMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8583
|
-
NgtContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: NgtContextMenuComponent, selector: "ngt-context-menu", outputs: { onMenuItemClick: "onMenuItemClick", onTemplateClick: "onTemplateClick" }, ngImport: i0, template: "<div class=\"absolute max-w-7xl -mr-10 -mb-10\" style=\"z-index: 999999 !important; width: max-content !important;\"\r\n [style.left.px]=\"positionX\" [style.top.px]=\"positionY\" (click)=\"$event.stopPropagation()\">\r\n\r\n <ng-container *ngIf=\"hasOptions(); else showTemplate\">\r\n <ul class=\"cursor-pointer rounded-xl bg-white border border-gray-200 shadow-2xl
|
|
8583
|
+
NgtContextMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: NgtContextMenuComponent, selector: "ngt-context-menu", outputs: { onMenuItemClick: "onMenuItemClick", onTemplateClick: "onTemplateClick" }, ngImport: i0, template: "<div class=\"absolute max-w-7xl -mr-10 -mb-10\" style=\"z-index: 999999 !important; width: max-content !important;\"\r\n [style.left.px]=\"positionX\" [style.top.px]=\"positionY\" (click)=\"$event.stopPropagation()\">\r\n\r\n <ng-container *ngIf=\"hasOptions(); else showTemplate\">\r\n <ul class=\"cursor-pointer rounded-xl bg-white border border-gray-200 shadow-2xl\">\r\n <li *ngFor=\"let item of menuItems; last as isLast; first as isFirst\"\r\n class=\"flex items-center w-full px-4 py-2 gap-3 text-sm\" [class.text-gray-700]=\"!item.disabled\"\r\n [class.text-gray-400]=\"item.disabled\" [class.cursor-not-allowed]=\"item.disabled\"\r\n [class.rounded-b-xl]=\"isLast\" [class.rounded-t-xl]=\"isFirst\"\r\n [ngClass]=\"item.disabled ? '' : (item.background_color || 'hover:bg-green-500')\"\r\n (click)=\"!item.disabled && onMenuItemClick.emit(item)\">\r\n\r\n <ngt-svg *ngIf=\"item.icon\" class=\"text-lg\" [src]=\"item.icon\"></ngt-svg>\r\n {{ item.caption }}\r\n </li>\r\n </ul>\r\n </ng-container>\r\n\r\n <ng-template #showTemplate>\r\n <div class=\"block rounded-lg bg-white border border-gray-200 w-full h-auto shadow-2xl\"\r\n (click)=\"onTemplateClick.emit()\">\r\n <ng-container [ngTemplateOutlet]=\"menuTemplate\"></ng-container>\r\n </div>\r\n </ng-template>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: NgtSvgComponent, selector: "ngt-svg", inputs: ["src", "class"] }] });
|
|
8584
8584
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: NgtContextMenuComponent, decorators: [{
|
|
8585
8585
|
type: Component,
|
|
8586
|
-
args: [{ selector: 'ngt-context-menu', template: "<div class=\"absolute max-w-7xl -mr-10 -mb-10\" style=\"z-index: 999999 !important; width: max-content !important;\"\r\n [style.left.px]=\"positionX\" [style.top.px]=\"positionY\" (click)=\"$event.stopPropagation()\">\r\n\r\n <ng-container *ngIf=\"hasOptions(); else showTemplate\">\r\n <ul class=\"cursor-pointer rounded-xl bg-white border border-gray-200 shadow-2xl
|
|
8586
|
+
args: [{ selector: 'ngt-context-menu', template: "<div class=\"absolute max-w-7xl -mr-10 -mb-10\" style=\"z-index: 999999 !important; width: max-content !important;\"\r\n [style.left.px]=\"positionX\" [style.top.px]=\"positionY\" (click)=\"$event.stopPropagation()\">\r\n\r\n <ng-container *ngIf=\"hasOptions(); else showTemplate\">\r\n <ul class=\"cursor-pointer rounded-xl bg-white border border-gray-200 shadow-2xl\">\r\n <li *ngFor=\"let item of menuItems; last as isLast; first as isFirst\"\r\n class=\"flex items-center w-full px-4 py-2 gap-3 text-sm\" [class.text-gray-700]=\"!item.disabled\"\r\n [class.text-gray-400]=\"item.disabled\" [class.cursor-not-allowed]=\"item.disabled\"\r\n [class.rounded-b-xl]=\"isLast\" [class.rounded-t-xl]=\"isFirst\"\r\n [ngClass]=\"item.disabled ? '' : (item.background_color || 'hover:bg-green-500')\"\r\n (click)=\"!item.disabled && onMenuItemClick.emit(item)\">\r\n\r\n <ngt-svg *ngIf=\"item.icon\" class=\"text-lg\" [src]=\"item.icon\"></ngt-svg>\r\n {{ item.caption }}\r\n </li>\r\n </ul>\r\n </ng-container>\r\n\r\n <ng-template #showTemplate>\r\n <div class=\"block rounded-lg bg-white border border-gray-200 w-full h-auto shadow-2xl\"\r\n (click)=\"onTemplateClick.emit()\">\r\n <ng-container [ngTemplateOutlet]=\"menuTemplate\"></ng-container>\r\n </div>\r\n </ng-template>\r\n</div>\r\n" }]
|
|
8587
8587
|
}], propDecorators: { onMenuItemClick: [{
|
|
8588
8588
|
type: Output
|
|
8589
8589
|
}], onTemplateClick: [{
|