@bnsights/bbsf-controls 1.0.93 → 1.0.95

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 (41) hide show
  1. package/README.md +8 -0
  2. package/bnsights-bbsf-controls-1.0.95.tgz +0 -0
  3. package/bnsights-bbsf-controls.metadata.json +1 -1
  4. package/bundles/bnsights-bbsf-controls.umd.js +211 -116
  5. package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
  6. package/esm2015/lib/Shared/Enums/InputType.js +2 -1
  7. package/esm2015/lib/Shared/Models/MultilingualControlOptionsBase.js +4 -2
  8. package/esm2015/lib/Shared/Models/RepeaterOptions.js +2 -1
  9. package/esm2015/lib/Shared/services/validationErrorMassage.service.js +123 -88
  10. package/esm2015/lib/controls/AutocompleteTextBox/AutocompleteTextBox.component.js +2 -2
  11. package/esm2015/lib/controls/CheckBox/CheckBox.component.js +2 -2
  12. package/esm2015/lib/controls/DateTimePicker/DateTimePicker.component.js +2 -2
  13. package/esm2015/lib/controls/DropdownList/DropdownList.component.js +10 -2
  14. package/esm2015/lib/controls/FileUplaod/FileUplaod.component.js +4 -2
  15. package/esm2015/lib/controls/HtmlEditor/HtmlEditor.component.js +2 -2
  16. package/esm2015/lib/controls/ImageUpload/ImageUpload.component.js +2 -2
  17. package/esm2015/lib/controls/MapAutoComplete/MapAutoComplete.component.js +2 -2
  18. package/esm2015/lib/controls/MultiLingualHtmlEditor/MultiLingualHtmlEditor.component.js +2 -2
  19. package/esm2015/lib/controls/MultiLingualTextArea/MultiLingualTextArea.component.js +2 -2
  20. package/esm2015/lib/controls/MultiLingualTextBox/MultiLingualTextBox.component.js +2 -2
  21. package/esm2015/lib/controls/Phone/Phone.component.js +2 -2
  22. package/esm2015/lib/controls/ProfileImageUploader/ProfileImageUploader.component.js +2 -2
  23. package/esm2015/lib/controls/RadioButton/RadioButton.component.js +5 -2
  24. package/esm2015/lib/controls/Repeater/repeater/repeater.component.js +2 -2
  25. package/esm2015/lib/controls/TagsInput/TagsInput.component.js +6 -2
  26. package/esm2015/lib/controls/TextArea/TextArea.component.js +2 -2
  27. package/esm2015/lib/controls/TextBox/TextBox.component.js +75 -40
  28. package/esm2015/lib/controls/Toggleslide/toggleslide.component.js +5 -2
  29. package/fesm2015/bnsights-bbsf-controls.js +210 -116
  30. package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
  31. package/lib/Shared/Enums/InputType.d.ts +2 -1
  32. package/lib/Shared/Models/MultilingualControlOptionsBase.d.ts +11 -9
  33. package/lib/Shared/Models/RepeaterOptions.d.ts +1 -0
  34. package/lib/controls/DropdownList/DropdownList.component.d.ts +1 -0
  35. package/lib/controls/RadioButton/RadioButton.component.d.ts +1 -0
  36. package/lib/controls/TagsInput/TagsInput.component.d.ts +1 -0
  37. package/lib/controls/TextBox/TextBox.component.d.ts +3 -0
  38. package/lib/controls/Toggleslide/toggleslide.component.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/src/lib/assets/sass/base.scss +7 -0
  41. package/bnsights-bbsf-controls-1.0.93.tgz +0 -0
@@ -3,5 +3,6 @@ export declare enum InputType {
3
3
  Password = 2,
4
4
  Email = 3,
5
5
  Number = 4,
6
- EID = 5
6
+ EID = 5,
7
+ URL = 6
7
8
  }
@@ -1,7 +1,7 @@
1
- import { ControlLayout } from "../Enums/ControlLayout";
2
- import { LanguageMode } from "../Enums/LanguageMode";
3
- import { CustomValidation } from "./CustomValidation";
4
- import { EnglishArabicDTO } from "./EnglishArabicDTO";
1
+ import { ControlLayout } from '../Enums/ControlLayout';
2
+ import { LanguageMode } from '../Enums/LanguageMode';
3
+ import { CustomValidation } from './CustomValidation';
4
+ import { EnglishArabicDTO } from './EnglishArabicDTO';
5
5
  export declare class MultilingualControlOptionsBase {
6
6
  /** Represent Name Of Form Control*/
7
7
  Name: string;
@@ -44,11 +44,11 @@ export declare class MultilingualControlOptionsBase {
44
44
  MaxLength: number;
45
45
  MaxWordCount: number;
46
46
  /**
47
- * Display "*" beside the label
48
- * if ForceAsterisk=true and IsRequired=True his display "*" ,
49
- * if if ForceAsterisk=false and IsRequired=false this remove "*",
50
- *if ForceAsterisk=false and IsRequired=True this display "*" ,
51
- */
47
+ * Display "*" beside the label
48
+ * if ForceAsterisk=true and IsRequired=True his display "*" ,
49
+ * if if ForceAsterisk=false and IsRequired=false this remove "*",
50
+ *if ForceAsterisk=false and IsRequired=True this display "*" ,
51
+ */
52
52
  ShowAsterisk: boolean;
53
53
  /** Ability to set MultipleLanguageText required */
54
54
  IsRequired: boolean;
@@ -72,4 +72,6 @@ export declare class MultilingualControlOptionsBase {
72
72
  PatchPath: string;
73
73
  /** Function which call to patch value */
74
74
  PatchFunction: Function;
75
+ /** Sets an attribute readonly */
76
+ IsReadonly: boolean;
75
77
  }
@@ -15,4 +15,5 @@ export declare class RepeaterOptions {
15
15
  RepeaterStructure: RepeaterField[];
16
16
  DisableAddButton: boolean;
17
17
  DisableDeleteButton: boolean;
18
+ IsReadonly: boolean;
18
19
  }
@@ -34,6 +34,7 @@ export declare class DropdownListComponent implements OnInit {
34
34
  resetError: () => void;
35
35
  showGlobalError(): void;
36
36
  getErrorValidation(ErrorList: any): string;
37
+ getSelectedItemValue(): any;
37
38
  onItemSelect(): void;
38
39
  Clear(): void;
39
40
  onSelectAll(items: any): void;
@@ -25,6 +25,7 @@ export declare class RadioButtonComponent implements OnInit {
25
25
  showGlobalError(): void;
26
26
  getErrorValidation(ErrorList: any): string;
27
27
  onValueChanged(): void;
28
+ getSelectedItemValue(value: any): string;
28
29
  RemoveRequiredValidation: () => void;
29
30
  AddRequiredValidation: () => void;
30
31
  RemoveCustomValidation: (CustomValidation: any) => void;
@@ -51,4 +51,5 @@ export declare class TagsInputComponent implements OnInit, OnDestroy {
51
51
  AddCustomValidation: (CustomValidation: any) => void;
52
52
  IsValid: () => void;
53
53
  onTagsInputBlur(SearchKey: any): void;
54
+ getTagsValue(): any[];
54
55
  }
@@ -1,6 +1,7 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { FormGroup, AbstractControl, ControlContainer, FormGroupDirective } from '@angular/forms';
3
3
  import { TextBoxOptions } from '../../Shared/Models/TextBoxOptions';
4
+ import { InputType } from '../../Shared/Enums/InputType';
4
5
  import { ControlUtility } from '../../Shared/services/ControlUtility';
5
6
  import { ControlValidationService, UtilityService } from '@bnsights/bbsf-utilities';
6
7
  import { GlobalSettings } from '../../Shared/services/GlobalSettings.service';
@@ -16,11 +17,13 @@ export declare class TextboxComponent implements OnInit {
16
17
  group: FormGroup;
17
18
  options: TextBoxOptions;
18
19
  OnChange: EventEmitter<any>;
20
+ inputType: typeof InputType;
19
21
  TextBoxFormControl: AbstractControl;
20
22
  MaskPattern: string;
21
23
  WordCount: number;
22
24
  WordCountArray: number;
23
25
  EmailValidationKey: string;
26
+ URLValidationKey: string;
24
27
  PasswordComplexityHasNumber: string;
25
28
  ArabicLetterOnly: string;
26
29
  EnglishLetterOnly: string;
@@ -9,7 +9,7 @@ export declare class ToggleslideComponent implements OnInit {
9
9
  private controlContainer;
10
10
  ToggleslideControlHost: FormGroupDirective;
11
11
  TextControlHost: FormGroupDirective;
12
- private UtilityService;
12
+ UtilityService: UtilityService;
13
13
  private controlValidationService;
14
14
  private globalSettings;
15
15
  static controlContainerstatic: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bnsights/bbsf-controls",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~12.2.12",
6
6
  "@angular/core": "~12.2.12"
@@ -201,3 +201,10 @@ input::-webkit-inner-spin-button {
201
201
  margin-right: 30px;
202
202
  }
203
203
 
204
+ //readonly view
205
+ .readonly-view {
206
+ display: inline-block;
207
+ padding: 0.2rem 0;
208
+ color: #5E6278;
209
+ font-size: 1rem;
210
+ }
Binary file