@bnsights/bbsf-controls 1.0.63 → 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.
Files changed (45) hide show
  1. package/README.md +11 -0
  2. package/bnsights-bbsf-controls-1.0.65.tgz +0 -0
  3. package/bnsights-bbsf-controls.metadata.json +1 -1
  4. package/bundles/bnsights-bbsf-controls.umd.js +234 -24
  5. package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
  6. package/esm2015/lib/Shared/Models/CaptchaStyle.js +3 -0
  7. package/esm2015/lib/Shared/Models/ConfirmationModalOptions.js +5 -1
  8. package/esm2015/lib/Shared/Models/ControlOptionsBase.js +1 -1
  9. package/esm2015/lib/Shared/Models/MultilingualControlOptionsBase.js +1 -1
  10. package/esm2015/lib/Shared/Models/Recaptcha.js +6 -0
  11. package/esm2015/lib/Shared/Models/RecaptchaOptions.js +22 -0
  12. package/esm2015/lib/controls/AutocompleteTextBox/AutocompleteTextBox.component.js +4 -2
  13. package/esm2015/lib/controls/CheckBox/CheckBox.component.js +2 -2
  14. package/esm2015/lib/controls/ConfirmationModal/ConfirmationModal.component.js +3 -3
  15. package/esm2015/lib/controls/DateTimePicker/DateTimePicker.component.js +4 -2
  16. package/esm2015/lib/controls/DropdownList/DropdownList.component.js +2 -2
  17. package/esm2015/lib/controls/FileUplaod/FileUplaod.component.js +9 -3
  18. package/esm2015/lib/controls/HtmlEditor/HtmlEditor.component.js +4 -2
  19. package/esm2015/lib/controls/ImageUpload/ImageUpload.component.js +10 -4
  20. package/esm2015/lib/controls/MapAutoComplete/MapAutoComplete.component.js +7 -2
  21. package/esm2015/lib/controls/MultiLingualHtmlEditor/MultiLingualHtmlEditor.component.js +4 -2
  22. package/esm2015/lib/controls/MultiLingualTextArea/MultiLingualTextArea.component.js +4 -2
  23. package/esm2015/lib/controls/MultiLingualTextBox/MultiLingualTextBox.component.js +4 -2
  24. package/esm2015/lib/controls/Phone/Phone.component.js +2 -2
  25. package/esm2015/lib/controls/ProfileImageUploader/ProfileImageUploader.component.js +6 -2
  26. package/esm2015/lib/controls/RadioButton/RadioButton.component.js +4 -2
  27. package/esm2015/lib/controls/Recaptcha/Recaptcha.component.js +131 -0
  28. package/esm2015/lib/controls/TagsInput/TagsInput.component.js +3 -2
  29. package/esm2015/lib/controls/TextArea/TextArea.component.js +2 -2
  30. package/esm2015/lib/controls/TextBox/TextBox.component.js +2 -2
  31. package/esm2015/lib/controls/Toggleslide/toggleslide.component.js +2 -1
  32. package/esm2015/lib/controls/bbsf-controls.module.js +6 -3
  33. package/esm2015/public-api.js +4 -1
  34. package/fesm2015/bnsights-bbsf-controls.js +221 -25
  35. package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
  36. package/lib/Shared/Models/CaptchaStyle.d.ts +7 -0
  37. package/lib/Shared/Models/ConfirmationModalOptions.d.ts +2 -0
  38. package/lib/Shared/Models/ControlOptionsBase.d.ts +2 -0
  39. package/lib/Shared/Models/MultilingualControlOptionsBase.d.ts +2 -0
  40. package/lib/Shared/Models/Recaptcha.d.ts +6 -0
  41. package/lib/Shared/Models/RecaptchaOptions.d.ts +18 -0
  42. package/lib/controls/Recaptcha/Recaptcha.component.d.ts +37 -0
  43. package/package.json +1 -1
  44. package/public-api.d.ts +3 -0
  45. package/bnsights-bbsf-controls-1.0.63.tgz +0 -0
@@ -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
+ }
@@ -16,4 +16,6 @@ export declare class ConfirmationModalOptions {
16
16
  DisableSuccessNotification: boolean;
17
17
  DisableErrorNotification: boolean;
18
18
  DisableModalDismiss: boolean;
19
+ showCancelButton: boolean;
20
+ showCloseButton: boolean;
19
21
  }
@@ -6,6 +6,8 @@ export declare class ControlOptionsBase {
6
6
  Name: string;
7
7
  /** Represent classes to Control that allow us to select the Control by jquery or javascript */
8
8
  ExtraClasses: string;
9
+ /** Represent classes to label that allow us to select the Control by jquery or javascript */
10
+ LabelExtraClasses: string;
9
11
  /** Represent value of the label*/
10
12
  LabelValue: string;
11
13
  /** Represent Key of the label*/
@@ -27,6 +27,8 @@ export declare class MultilingualControlOptionsBase {
27
27
  ArabicPlaceholder: string;
28
28
  /**Represent EnglishPlaceholder Of Form Control*/
29
29
  EnglishPlaceholder: string;
30
+ /** Represent classes to label that allow us to select the Control by jquery or javascript */
31
+ LabelExtraClasses: string;
30
32
  /**Represent classes to Arabic textbox that allow us to select the MultipleLanguageText by jquery or javascript */
31
33
  ExtraClasses_AR: string;
32
34
  /**Represent classes to English textbox that allow us to select the MultipleLanguageText by jquery or javascript */
@@ -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.63",
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