recaptcha-2.component.d.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { ElementRef, Injector, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
  2. import { ReCaptchaType } from '../models/recaptcha-type.enum';
  3. import { ScriptService } from '../services/script.service';
  4. import { BaseReCaptchaComponentDirective } from './base-re-captcha-component.directive';
  5. import * as i0 from "@angular/core";
  6. export declare class ReCaptcha2Component extends BaseReCaptchaComponentDirective implements OnChanges, OnDestroy {
  7. protected renderer: Renderer2;
  8. protected zone: NgZone;
  9. protected injector: Injector;
  10. protected scriptService: ScriptService;
  11. /**
  12. * Name of the global expire callback
  13. */
  14. protected readonly windowOnErrorCallbackProperty = "ngx_captcha_error_callback";
  15. /**
  16. * Name of the global error callback
  17. */
  18. protected readonly windowOnExpireCallbackProperty = "ngx_captcha_expire_callback";
  19. /**
  20. * Theme
  21. */
  22. theme: 'dark' | 'light';
  23. /**
  24. * Size
  25. */
  26. size: 'compact' | 'normal';
  27. captchaWrapperElem?: ElementRef;
  28. protected recaptchaType: ReCaptchaType;
  29. constructor(renderer: Renderer2, zone: NgZone, injector: Injector, scriptService: ScriptService);
  30. ngOnChanges(changes: SimpleChanges): void;
  31. ngOnDestroy(): void;
  32. protected captchaSpecificSetup(): void;
  33. /**
  34. * Gets reCaptcha properties
  35. */
  36. protected getCaptchaProperties(): any;
  37. /**
  38. * Registers global callbacks
  39. */
  40. private registerCallbacks;
  41. static ɵfac: i0.ɵɵFactoryDeclaration<ReCaptcha2Component, never>;
  42. static ɵcmp: i0.ɵɵComponentDeclaration<ReCaptcha2Component, "ngx-recaptcha2", never, { "theme": "theme"; "size": "size"; }, {}, never, never, false, never>;
  43. }
  44. //# sourceMappingURL=recaptcha-2.component.d.ts.map