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.68 kB
Source Map (JSON)
{"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,IAAA,CAAA,EAAE,GAAF,EAAE;QAFb,IAAA,CAAA,MAAM,GAAW,SAAS;QAGjC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa;IACtC;IAEA,eAAe,GAAA;AACb,QAAA,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,mBAAmB,GAAG,IAAI,CAAC,MAAM,CAAC;IAC/D;+GATW,uBAAuB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE;AACf,iBAAA;;sBAEE;;;ACPH;;AAEG;;ACFH;;AAEG;;;;"}