@bnsights/bbsf-controls 1.0.64 → 1.0.65

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.
@@ -0,0 +1,7 @@
1
+ export declare class CaptchaStyle {
2
+ BackgroundColorPrimary: string;
3
+ BackgroundColorSecondary: string;
4
+ TextColorPrimary: string;
5
+ TextColorSecondary: string;
6
+ FontSize: number;
7
+ }
@@ -0,0 +1,6 @@
1
+ export declare class RecaptchaModel {
2
+ ID: string;
3
+ Text: string;
4
+ EncryptedText: string;
5
+ ImageJpeg: any[];
6
+ }
@@ -0,0 +1,18 @@
1
+ import { ForceDirection } from '../Enums/ForceDirection';
2
+ import { ControlOptionsBase } from './ControlOptionsBase';
3
+ import { RecaptchaModel } from './Recaptcha';
4
+ export declare class RecaptchaOptions extends ControlOptionsBase {
5
+ /**To set value to Control */
6
+ Value: RecaptchaModel;
7
+ ForceDirection: ForceDirection;
8
+ /**Prevent AutoComplete of control default value is "on" available values "on" and "off"*/
9
+ AutoComplete: string;
10
+ NoMargin: boolean;
11
+ /**the url of a remote server that supports jsonp calls */
12
+ ActionURL: string;
13
+ BackgroundColorPrimary: string;
14
+ BackgroundColorSecondary: string;
15
+ TextColorPrimary: string;
16
+ TextColorSecondary: string;
17
+ FontSize: number;
18
+ }
@@ -0,0 +1,37 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { FormGroup, AbstractControl, FormGroupDirective } from '@angular/forms';
3
+ import { ControlUtility } from '../../Shared/services/ControlUtility';
4
+ import { ControlValidationService, RequestHandlerService, UtilityService } from '@bnsights/bbsf-utilities';
5
+ import { GlobalSettings } from '../../Shared/services/GlobalSettings.service';
6
+ import { RecaptchaOptions } from '../../Shared/Models/RecaptchaOptions';
7
+ import { RecaptchaModel } from '../../Shared/Models/Recaptcha';
8
+ export declare class RecaptchaComponent implements OnInit {
9
+ private controlUtility;
10
+ private requestHandlerService;
11
+ recaptchaControlHost: FormGroupDirective;
12
+ UtilityService: UtilityService;
13
+ private controlValidationService;
14
+ private globalSettings;
15
+ markAllAsTouched: boolean;
16
+ constructor(controlUtility: ControlUtility, requestHandlerService: RequestHandlerService, recaptchaControlHost: FormGroupDirective, UtilityService: UtilityService, controlValidationService: ControlValidationService, globalSettings: GlobalSettings);
17
+ group: FormGroup;
18
+ options: RecaptchaOptions;
19
+ OnChange: EventEmitter<any>;
20
+ ReCaptchaFormControl: AbstractControl;
21
+ validationRules: any[];
22
+ validationRulesAsync: any[];
23
+ image: string;
24
+ recaptchaModel: RecaptchaModel;
25
+ ngOnInit(): void;
26
+ loadImage(): void;
27
+ ngAfterViewInit(): void;
28
+ resetError: () => void;
29
+ showGlobalError(): void;
30
+ getErrorValidation(ErrorList: any): string;
31
+ onTextChange(valueText: any): void;
32
+ RemoveRequiredValidation: () => void;
33
+ AddRequiredValidation: () => void;
34
+ RemoveCustomValidation: (CustomValidation: any) => void;
35
+ AddCustomValidation: (CustomValidation: any) => void;
36
+ IsValid: () => void;
37
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bnsights/bbsf-controls",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~12.2.12",
6
6
  "@angular/core": "~12.2.12"
package/public-api.d.ts CHANGED
@@ -26,6 +26,7 @@ export * from './lib/controls/Repeater/repeater/repeater.component';
26
26
  export * from './lib/controls/Repeater/repeater-table/repeater-table.component';
27
27
  export * from './lib/controls/Repeater/repeater-field-builder/repeater-field-builder.component';
28
28
  export * from './lib/controls/Repeater/repeater-item-field/repeater-item-field.component';
29
+ export * from './lib/controls/Recaptcha/Recaptcha.component';
29
30
  export * from './lib/Shared/services/validationErrorMassage.service';
30
31
  export * from './lib/Shared/services/ControlUtility';
31
32
  export * from './lib/Shared/services/OnPagingFiltersChange.service';
@@ -34,6 +35,8 @@ export * from './lib/Shared/services/GlobalSettings.service';
34
35
  export * from './lib/Shared/services/render-component-service.service';
35
36
  export * from './lib/Shared/default_intl';
36
37
  export * from './lib/Shared/Models/ControlOptionsBase';
38
+ export * from './lib/Shared/Models/ReCaptchaOptions';
39
+ export * from './lib/Shared/Models/Recaptcha';
37
40
  export * from './lib/Shared/Models/MultilingualControlOptionsBase';
38
41
  export * from './lib/Shared/Models/CustomValidation';
39
42
  export * from './lib/Shared/Models/datePickerOptions';
Binary file