UNPKG

ngx-cursor-hover

Version:

The CSS cursor property specifies the mouse cursor to be displayed when pointing over an element. It can be used to change the cursor to a variety of different shapes, such as a hand, a crosshair, or an arrow.

1 lines 1.74 kB
{"version":3,"file":"ngx-cursor-hover.mjs","sources":["../../../projects/ngx-cursor-hover/src/lib/ngx-cursor-hover.directive.ts","../../../projects/ngx-cursor-hover/src/public-api.ts","../../../projects/ngx-cursor-hover/src/ngx-cursor-hover.ts"],"sourcesContent":["import { AfterViewInit, Directive, ElementRef, Input } from \"@angular/core\";\n\n@Directive({\n selector: \"[ngxCursor]\",\n standalone: true\n})\nexport class NgxCursorHoverDirective implements AfterViewInit {\n @Input() cursor: string = \"pointer\";\n private element: HTMLElement;\n constructor(private el: ElementRef) {\n this.element = this.el.nativeElement;\n }\n\n ngAfterViewInit(): void {\n this.element.classList.add(\"ngx-cursor-hover-\" + this.cursor);\n }\n}\n","/*\n * Public API Surface of ngx-cursor-hover\n */\n\n\nexport * from './lib/ngx-cursor-hover.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAMa,uBAAuB,CAAA;AAGlC,IAAA,WAAA,CAAoB,EAAc,EAAA;QAAd,IAAE,CAAA,EAAA,GAAF,EAAE,CAAY;QAFzB,IAAM,CAAA,MAAA,GAAW,SAAS,CAAC;QAGlC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC;KACtC;IAED,eAAe,GAAA;AACb,QAAA,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;KAC/D;8GATU,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE,IAAI;AACnB,iBAAA,CAAA;+EAEU,MAAM,EAAA,CAAA;sBAAd,KAAK;;;ACPR;;AAEG;;ACFH;;AAEG;;;;"}