@bnsights/bbsf-controls 1.0.34 → 1.0.37

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 (82) hide show
  1. package/README.md +20 -0
  2. package/bnsights-bbsf-controls-1.0.37.tgz +0 -0
  3. package/bnsights-bbsf-controls.metadata.json +1 -1
  4. package/bundles/bnsights-bbsf-controls.umd.js +383 -245
  5. package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
  6. package/esm2015/lib/Shared/Models/AutocompleteOptions.js +5 -10
  7. package/esm2015/lib/Shared/Models/CalendarOptions.js +4 -2
  8. package/esm2015/lib/Shared/Models/CheckBoxOptions.js +4 -5
  9. package/esm2015/lib/Shared/Models/ControlOptionsBase.js +9 -0
  10. package/esm2015/lib/Shared/Models/DropdownOptions.js +4 -6
  11. package/esm2015/lib/Shared/Models/FileUploadOptions.js +4 -7
  12. package/esm2015/lib/Shared/Models/HtmlEditorOptions.js +4 -7
  13. package/esm2015/lib/Shared/Models/ImageUploadOptions.js +4 -7
  14. package/esm2015/lib/Shared/Models/MapAutoCompleteOptions.js +3 -9
  15. package/esm2015/lib/Shared/Models/MultiLingualHtmlEditorOptions.js +4 -12
  16. package/esm2015/lib/Shared/Models/MultiLingualTextAreaOptions.js +4 -12
  17. package/esm2015/lib/Shared/Models/MultilingualControlOptionsBase.js +14 -0
  18. package/esm2015/lib/Shared/Models/MultilingualTextBoxOptions.js +4 -12
  19. package/esm2015/lib/Shared/Models/PhoneOptions.js +4 -11
  20. package/esm2015/lib/Shared/Models/ProfileImageUploadOptions.js +4 -7
  21. package/esm2015/lib/Shared/Models/RadioButtonOptions.js +3 -8
  22. package/esm2015/lib/Shared/Models/TagsInputOptions.js +4 -9
  23. package/esm2015/lib/Shared/Models/TextAreaOptions.js +4 -7
  24. package/esm2015/lib/Shared/Models/TextBoxOptions.js +4 -7
  25. package/esm2015/lib/Shared/Models/ToggleslideOptions.js +4 -3
  26. package/esm2015/lib/Shared/Models/datePickerOptions.js +4 -8
  27. package/esm2015/lib/Shared/Pipes/bbsf-date-time.pipe.js +20 -0
  28. package/esm2015/lib/Shared/Pipes/bbsf-date.pipe.js +20 -0
  29. package/esm2015/lib/Shared/services/ControlUtility.js +17 -4
  30. package/esm2015/lib/controls/AutocompleteTextBox/AutocompleteTextBox.component.js +6 -2
  31. package/esm2015/lib/controls/CheckBox/CheckBox.component.js +5 -1
  32. package/esm2015/lib/controls/DateTimePicker/DateTimePicker.component.js +6 -2
  33. package/esm2015/lib/controls/DropdownList/DropdownList.component.js +6 -2
  34. package/esm2015/lib/controls/FileUplaod/FileUplaod.component.js +6 -2
  35. package/esm2015/lib/controls/HtmlEditor/HtmlEditor.component.js +6 -2
  36. package/esm2015/lib/controls/ImageUpload/ImageUpload.component.js +6 -2
  37. package/esm2015/lib/controls/MapAutoComplete/MapAutoComplete.component.js +5 -1
  38. package/esm2015/lib/controls/MultiLingualHtmlEditor/MultiLingualHtmlEditor.component.js +14 -4
  39. package/esm2015/lib/controls/MultiLingualTextArea/MultiLingualTextArea.component.js +12 -4
  40. package/esm2015/lib/controls/MultiLingualTextBox/MultiLingualTextBox.component.js +11 -3
  41. package/esm2015/lib/controls/Paging/JwPagination.component.js +3 -1
  42. package/esm2015/lib/controls/Paging/Paging.component.js +1 -1
  43. package/esm2015/lib/controls/Phone/Phone.component.js +6 -2
  44. package/esm2015/lib/controls/ProfileImageUploader/ProfileImageUploader.component.js +6 -2
  45. package/esm2015/lib/controls/RadioButton/RadioButton.component.js +6 -2
  46. package/esm2015/lib/controls/TagsInput/TagsInput.component.js +6 -2
  47. package/esm2015/lib/controls/TextArea/TextArea.component.js +6 -3
  48. package/esm2015/lib/controls/TextBox/TextBox.component.js +14 -6
  49. package/esm2015/lib/controls/Toggleslide/toggleslide.component.js +14 -3
  50. package/esm2015/lib/controls/bbsf-controls.module.js +14 -4
  51. package/esm2015/public-api.js +5 -1
  52. package/fesm2015/bnsights-bbsf-controls.js +247 -159
  53. package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
  54. package/lib/Shared/Models/AutocompleteOptions.d.ts +3 -40
  55. package/lib/Shared/Models/CalendarOptions.d.ts +2 -8
  56. package/lib/Shared/Models/CheckBoxOptions.d.ts +2 -33
  57. package/lib/Shared/Models/ControlOptionsBase.d.ts +40 -0
  58. package/lib/Shared/Models/DropdownOptions.d.ts +2 -39
  59. package/lib/Shared/Models/FileUploadOptions.d.ts +2 -39
  60. package/lib/Shared/Models/HtmlEditorOptions.d.ts +2 -37
  61. package/lib/Shared/Models/ImageUploadOptions.d.ts +2 -38
  62. package/lib/Shared/Models/MapAutoCompleteOptions.d.ts +2 -40
  63. package/lib/Shared/Models/MultiLingualHtmlEditorOptions.d.ts +2 -77
  64. package/lib/Shared/Models/MultiLingualTextAreaOptions.d.ts +2 -76
  65. package/lib/Shared/Models/MultilingualControlOptionsBase.d.ts +71 -0
  66. package/lib/Shared/Models/MultilingualTextBoxOptions.d.ts +2 -76
  67. package/lib/Shared/Models/PhoneOptions.d.ts +2 -38
  68. package/lib/Shared/Models/ProfileImageUploadOptions.d.ts +2 -38
  69. package/lib/Shared/Models/RadioButtonOptions.d.ts +3 -39
  70. package/lib/Shared/Models/TagsInputOptions.d.ts +4 -43
  71. package/lib/Shared/Models/TextAreaOptions.d.ts +4 -42
  72. package/lib/Shared/Models/TextBoxOptions.d.ts +3 -41
  73. package/lib/Shared/Models/ToggleslideOptions.d.ts +3 -30
  74. package/lib/Shared/Models/datePickerOptions.d.ts +2 -40
  75. package/lib/Shared/Pipes/bbsf-date-time.pipe.d.ts +7 -0
  76. package/lib/Shared/Pipes/bbsf-date.pipe.d.ts +7 -0
  77. package/lib/Shared/services/ControlUtility.d.ts +4 -2
  78. package/lib/controls/Toggleslide/toggleslide.component.d.ts +3 -1
  79. package/package.json +3 -2
  80. package/public-api.d.ts +4 -0
  81. package/src/lib/assets/Style.css +2 -2
  82. package/bnsights-bbsf-controls-1.0.34.tgz +0 -0
@@ -0,0 +1,71 @@
1
+ import { ControlLayout } from "../Enums/ControlLayout";
2
+ import { LanguageMode } from "../Enums/LanguageMode";
3
+ import { CustomValidation } from "./CustomValidation";
4
+ import { EnglishArabicDTO } from "./EnglishArabicDTO";
5
+ export declare class MultilingualControlOptionsBase {
6
+ /** Represent Name Of Form Control*/
7
+ Name: string;
8
+ /** Represent value of the Label*/
9
+ LabelValue: string;
10
+ /** Represent Key of the label*/
11
+ ArabicLabelKey: string;
12
+ /** Represent Key of the label*/
13
+ EnglishLabelKey: string;
14
+ /** Represent value of the ArabicLabel*/
15
+ ArabicLabelValue: string;
16
+ /** Represent value of the EnglishLabel*/
17
+ EnglishLabelValue: string;
18
+ /** Represent value of the LabelDescription show under textbox*/
19
+ LabelDescription: string;
20
+ /** Represent value of the ArabicLabelDescription show under MultipleLanguageText*/
21
+ ArabicLabelDescription: string;
22
+ /** Represent value of the EnglishLabelDescription show under MultipleLanguageText*/
23
+ EnglishLabelDescription: string;
24
+ /**Represent ArabicPlaceholder Of Form Control*/
25
+ ArabicPlaceholder: string;
26
+ /**Represent EnglishPlaceholder Of Form Control*/
27
+ EnglishPlaceholder: string;
28
+ /**Represent classes to Arabic textbox that allow us to select the MultipleLanguageText by jquery or javascript */
29
+ ExtraClasses_AR: string;
30
+ /**Represent classes to English textbox that allow us to select the MultipleLanguageText by jquery or javascript */
31
+ ExtraClasses_EN: string;
32
+ /** to set type of view if MultipleLanguageText is Vertical or Horizontal */
33
+ ViewType: ControlLayout;
34
+ /** add button to for coping to clipboard */
35
+ EnableCopyToClipboard: boolean;
36
+ /**To Set Value To MultipleLanguageText with Object From Type "EnglishArabicDTO" */
37
+ Value: EnglishArabicDTO;
38
+ /**Set the MinLength of characters In TextBox */
39
+ MinLength: number;
40
+ MaxLength: number;
41
+ MaxWordCount: number;
42
+ /**
43
+ * Display "*" beside the label
44
+ * if ForceAsterisk=true and IsRequired=True his display "*" ,
45
+ * if if ForceAsterisk=false and IsRequired=false this remove "*",
46
+ *if ForceAsterisk=false and IsRequired=True this display "*" ,
47
+ */
48
+ ShowAsterisk: boolean;
49
+ /** Ability to set MultipleLanguageText required */
50
+ IsRequired: boolean;
51
+ /** Sets an attribute disable="disabled" */
52
+ IsDisabled: boolean;
53
+ /** Ability to display or hide the EnglishField of MultipleLanguageText */
54
+ IsHideEnglishFields: boolean;
55
+ /** Ability to display or hide the ArabicField of MultipleLanguageText */
56
+ IsHideArabicFields: boolean;
57
+ /** Ability to display or hide the EnglishLabel of MultipleLanguageText */
58
+ IsHideEnglishLabel: boolean;
59
+ /** Ability to display or hide the ArabicLable of MultipleLanguageText */
60
+ IsHideArabicLabel: boolean;
61
+ /** trim input on change */
62
+ TrimTextOnChange: boolean;
63
+ /**To Set LanguageMode To MultipleLanguageText */
64
+ LanguageMode: LanguageMode;
65
+ /** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage */
66
+ CustomValidation: CustomValidation[];
67
+ /** Path of propriety which we need to patch value */
68
+ PatchPath: string;
69
+ /** Function which call to patch value */
70
+ PatchFunction: Function;
71
+ }
@@ -1,81 +1,7 @@
1
- import { CustomValidation } from './CustomValidation';
2
- import { EnglishArabicDTO } from './EnglishArabicDTO';
3
1
  import { ControlLayout } from '../Enums/ControlLayout';
4
- import { LanguageMode } from '../Enums/LanguageMode';
5
2
  import { IconPosition } from '../Enums/IconPosition';
6
- export declare class MultiLingualTextBoxOptions {
7
- /** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
8
- */
9
- CustomValidation: CustomValidation[];
10
- /**To Set Value To MultipleLanguageText with Object From Type "EnglishArabicDTO" */
11
- Value: EnglishArabicDTO;
12
- /** Represent value of the Label*/
13
- LabelValue: string;
14
- /** Represent Key of the label*/
15
- ArabicLabelKey: string;
16
- /** Represent Key of the label*/
17
- EnglishLabelKey: string;
18
- /** Represent value of the ArabicLabel*/
19
- ArabicLabelValue: string;
20
- /** Represent value of the EnglishLabel*/
21
- EnglishLabelValue: string;
22
- /** Represent value of the LabelDescription show under textbox*/
23
- LabelDescription: string;
24
- /** Represent value of the ArabicLabelDescription show under textbox*/
25
- ArabicLabelDescription: string;
26
- /** Represent value of the EnglishLabelDescription show under textbox*/
27
- EnglishLabelDescription: string;
28
- /**
29
- * Represent Name Of Form Control
30
- */
31
- Name: string;
32
- /**
33
- * Represent ArabicPlaceholder Of Form Control
34
- */
35
- ArabicPlaceholder: string;
36
- /**
37
- * Represent EnglishPlaceholder Of Form Control
38
- */
39
- EnglishPlaceholder: string;
40
- /**
41
- * Represent classes to Arabic textbox that allow us to select the TextBox by jquery or javascript
42
- */
43
- ExtraClasses_AR: string;
44
- /**
45
- * Represent classes to English textbox that allow us to select the TextBox by jquery or javascript
46
- */
47
- ExtraClasses_EN: string;
48
- /** to set type of view if textbox is Vertical or Horizontal */
49
- ViewType: ControlLayout;
50
- /**Set the MinLength of characters In TextBox */
51
- MinLength: number;
52
- MaxLength: number;
53
- MaxWordCount: number;
54
- /** text input on change */
55
- TrimTextOnChange: boolean;
56
- /** add button to for coping to clipboard */
57
- EnableCopyToClipboard: boolean;
58
- /**
59
- * Display "*" beside the label
60
- * if ForceAsterisk=true and IsRequired=True his display "*" ,
61
- * if if ForceAsterisk=false and IsRequired=false this remove "*",
62
- *if ForceAsterisk=false and IsRequired=True this display "*" ,
63
- */
64
- ShowAsterisk: boolean;
65
- /** Ability to set TextBox required */
66
- IsRequired: boolean;
67
- /** Sets an attribute disable="disabled" */
68
- IsDisabled: boolean;
69
- /** Ability to display or hide the EnglishField of TextBox */
70
- IsHideEnglishFields: boolean;
71
- /** Ability to display or hide the ArabicField of TextBox */
72
- IsHideArabicFields: boolean;
73
- /** Ability to display or hide the EnglishLabel of TextBox */
74
- IsHideEnglishLabel: boolean;
75
- /** Ability to display or hide the ArabicLable of TextBox */
76
- IsHideArabicLabel: boolean;
77
- /**To Set LanguageMode To MultipleLanguageText */
78
- LanguageMode: LanguageMode;
3
+ import { MultilingualControlOptionsBase } from './MultilingualControlOptionsBase';
4
+ export declare class MultiLingualTextBoxOptions extends MultilingualControlOptionsBase {
79
5
  Icon: string;
80
6
  IconPositionEN: IconPosition;
81
7
  IconPositionAR: IconPosition;
@@ -1,45 +1,11 @@
1
- import { CustomValidation } from './CustomValidation';
2
- import { ControlLayout } from '../Enums/ControlLayout';
3
- import { Attribute } from './Attribute';
4
1
  import { Country } from '../Enums/Countries';
5
2
  import { ForceDirection } from '../Enums/ForceDirection';
6
- export declare class PhoneOptions {
7
- /**
8
- * Represent Name Of Form Control
9
- */
10
- Name: string;
11
- /**
12
- * Represent Css classes to Phonebox
13
- */
14
- ExtraClasses: string;
15
- /** Represent value of the label*/
16
- LabelValue: string;
17
- /** Represent Key of the label*/
18
- LabelKey: string;
19
- /** Represent value of the labelDescription show under Phonebox*/
20
- LabelDescription: string;
3
+ import { ControlOptionsBase } from './ControlOptionsBase';
4
+ export declare class PhoneOptions extends ControlOptionsBase {
21
5
  /**To set value to Phonebox */
22
6
  Value: any;
23
- /**
24
- * Display "*" beside the label
25
- * if ForceAsterisk=true and IsRequired=True his display "*" ,
26
- * if if ForceAsterisk=false and IsRequired=false this remove "*",
27
- *if ForceAsterisk=false and IsRequired=True this display "*" ,
28
- */
29
- ShowAsterisk: boolean;
30
- /** Ability to set Phonebox required */
31
- IsRequired: boolean;
32
- /** Sets an attribute disable="disabled" */
33
- IsDisabled: boolean;
34
7
  /** To allow search in country list*/
35
8
  AllowSearch: boolean;
36
- /** Set List of Custom Attribute to Phonebox */
37
- AttributeList: Attribute[];
38
- /** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
39
- */
40
- CustomValidation: CustomValidation[];
41
- /** Ability to display or hide the label of Phonebox */
42
- HideLabel: boolean;
43
9
  /**Allow To Show Placeholder */
44
10
  EnablePlaceholder: boolean;
45
11
  /**Allow To Select First Country */
@@ -50,7 +16,5 @@ export declare class PhoneOptions {
50
16
  PhoneValidation: boolean;
51
17
  /**Set List Of Countries As Preferred Countries*/
52
18
  PreferredCountries: Country[];
53
- /** to set type of view if Phonebox is Vertical or Horizontal */
54
- ViewType: ControlLayout;
55
19
  ForceDirection: ForceDirection;
56
20
  }
@@ -1,52 +1,16 @@
1
- import { CustomValidation } from './CustomValidation';
2
- import { Attribute } from './Attribute';
3
- import { ControlLayout } from '../Enums/ControlLayout';
4
1
  import { ImageType } from '../Enums/ImageType';
5
2
  import { EditPersonalImage } from './EditPersonalImage';
6
3
  import { SaveDTO } from './SaveDTO';
7
4
  import { CancelDTO } from './CancelDTO';
8
5
  import { UploadPersonalImage } from './UploadPersonalImage';
9
6
  import { ProfilePictureDTO } from './ProfilePictureDTO';
10
- export declare class ProfileImageUploadOptions {
11
- /**
12
- * Represent Name Of Form Control
13
- */
14
- Name: string;
15
- /**
16
- * Represent classes to textbox that allow us to select the FileInput by jquery or javascript
17
- */
18
- ExtraClasses: string;
19
- /** Represent value of the label*/
20
- LabelValue: string;
21
- /** Represent Key of the label*/
22
- LabelKey: string;
23
- /** Represent value of the labelDescription show under FileInput*/
24
- LabelDescription: string;
7
+ import { ControlOptionsBase } from './ControlOptionsBase';
8
+ export declare class ProfileImageUploadOptions extends ControlOptionsBase {
25
9
  /**To set value to FileInput */
26
10
  Value: ProfilePictureDTO;
27
- /**
28
- * Display "*" beside the label
29
- * if ForceAsterisk=true and IsRequired=True his display "*" ,
30
- * if if ForceAsterisk=false and IsRequired=false this remove "*",
31
- *if ForceAsterisk=false and IsRequired=True this display "*" ,
32
- */
33
- ShowAsterisk: boolean;
34
- /** Ability to set FileInput required */
35
- IsRequired: boolean;
36
- /** Ability to display or hide the label of FileInput */
37
- HideLabel: boolean;
38
- /** Sets an attribute disable="disabled" */
39
- IsDisabled: boolean;
40
- /** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
41
- */
42
11
  AllowDropZone: boolean;
43
- CustomValidation: CustomValidation[];
44
- /** Set List of Custom Attribute to FileInput */
45
- AttributeList: Attribute[];
46
12
  /** Set File MaxSize In MB */
47
13
  FileMaxSizeInMB: number;
48
- /** to set type of view if FileInput is Vertical or Horizontal */
49
- ViewType: ControlLayout;
50
14
  /** Set List of Custom Attribute to FileInput */
51
15
  ImageUploadAcceptsTypes: ImageType[];
52
16
  /** Set Default Image */
@@ -1,44 +1,8 @@
1
- import { CustomValidation } from './CustomValidation';
2
- import { ControlLayout } from '../Enums/ControlLayout';
1
+ import { ControlOptionsBase } from './ControlOptionsBase';
3
2
  import { RadioButtonItem } from './RadioButtonItem';
4
- export declare class RadioButtonOptions {
5
- /**
6
- * Represent Name Of Form Control
7
- */
8
- Name: string;
9
- /**
10
- * Represent classes to RadioButton that allow us to select the TextBox by jquery or javascript
11
- */
12
- ExtraClasses: string;
13
- /**
14
- * Display validation message only on added repeater when add class "v-required"
15
- */
16
- ValidationClasses: string;
17
- /** Represent value of the label*/
18
- LabelValue: string;
19
- /** Represent Key of the label*/
20
- LabelKey: string;
21
- /** Represent value of the labelDescription show under RadioButton*/
22
- LabelDescription: string;
23
- /**To set value to textbox */
3
+ export declare class RadioButtonOptions extends ControlOptionsBase {
4
+ /**To set value to RadioButton */
24
5
  Value: RadioButtonItem;
25
- /**
26
- * Display "*" beside the label
27
- * if ForceAsterisk=true and IsRequired=True his display "*" ,
28
- * if if ForceAsterisk=false and IsRequired=false this remove "*",
29
- *if ForceAsterisk=false and IsRequired=True this display "*" ,
30
- */
31
- ShowAsterisk: boolean;
32
- /** Ability to display or hide the label of TextBox */
33
- HideLabel: boolean;
34
- ViewType: ControlLayout;
35
- /** Ability to set RadioButton required */
36
- IsRequired: boolean;
37
- /** Sets an attribute disable="disabled" */
38
- IsDisabled: boolean;
39
6
  /** Set List of Custom Attribute to RadioButton */
40
7
  Items: RadioButtonItem[];
41
- /** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
42
- */
43
- CustomValidation: CustomValidation[];
44
8
  }
@@ -1,61 +1,22 @@
1
- import { ControlLayout } from '../Enums/ControlLayout';
2
- import { CustomValidation } from './CustomValidation';
3
1
  import { ForceDirection } from '../Enums/ForceDirection';
4
- import { Attribute } from './Attribute';
5
- import { TagsInputDTO } from './TagsInputDTO';
6
- export declare class TagsInputOptions {
7
- /**
8
- * Represent Name Of Form Control
9
- */
10
- Name: string;
11
- /**
12
- * Represent classes to tagsinput that allow us to select the AutoComplete by jquery or javascript
13
- */
14
- ExtraClasses: string;
15
- /** Represent value of the label*/
16
- LabelValue: string;
17
- /** Represent Key of the label*/
18
- LabelKey: string;
19
- /** Represent value of the labelDescription show under tagsinput*/
20
- LabelDescription: string;
21
- /** Represent value of the Placeholder of tagsinput */
22
- Placeholder: string;
23
- /**To set value to tagsinput */
24
- Value: TagsInputDTO[];
2
+ import { ControlOptionsBase } from './ControlOptionsBase';
3
+ export declare class TagsInputOptions extends ControlOptionsBase {
4
+ /**To set value to Control */
5
+ Value: any;
25
6
  MaxLength?: number;
26
7
  /**Set the MinLength of characters In AutoComplete */
27
8
  MinLength?: number;
28
9
  MaxWordCount: number;
29
10
  /**Prevent AutoComplete of tagsinput*/
30
11
  AutoComplete: boolean;
31
- /**
32
- * Display "*" beside the label
33
- * if ForceAsterisk=true and IsRequired=True his display "*" ,
34
- * if if ForceAsterisk=false and IsRequired=false this remove "*",
35
- *if ForceAsterisk=false and IsRequired=True this display "*" ,
36
- */
37
- ShowAsterisk: boolean;
38
- /** Ability to set AutoComplete required */
39
- IsRequired: boolean;
40
- /** Ability to display or hide the label of AutoComplete */
41
- HideLabel: boolean;
42
- /** Sets an attribute disable="disabled" */
43
- IsDisabled: boolean;
44
12
  /** text input on change */
45
13
  TrimTextOnChange: boolean;
46
14
  /** add button to for coping to clipboard */
47
15
  EnableCopyToClipboard: boolean;
48
16
  /**Prevent Defulat Password Validation to set Custom Validation */
49
17
  RemoveDefulatPasswordValidation: boolean;
50
- /** to set type of view if tagsinput is Vertical or Horizontal */
51
- ViewType: ControlLayout;
52
- /** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
53
- */
54
- CustomValidation: CustomValidation[];
55
18
  /** to set Direction of tagsinput if tagsinput is Arabic or English */
56
19
  ForceDirection: ForceDirection;
57
- /** Set List of Custom Attribute to AutoComplete */
58
- AttributeList: Attribute[];
59
20
  /**the url of a remote server that supports jsonp calls */
60
21
  ActionURL: string;
61
22
  /**Remove Last When User Click On Backspace */
@@ -1,26 +1,8 @@
1
- import { CustomValidation } from './CustomValidation';
2
- import { ControlLayout } from '../Enums/ControlLayout';
3
1
  import { ForceDirection } from '../Enums/ForceDirection';
4
- import { Attribute } from './Attribute';
5
- export declare class TextAreaOptions {
6
- /**
7
- * Represent Name Of Form Control
8
- */
9
- Name: string;
10
- /**
11
- * Represent classes to textbox that allow us to select the TextArea by jquery or javascript
12
- */
13
- ExtraClasses: string;
14
- /** Represent value of the label*/
15
- LabelValue: string;
16
- /** Represent Key of the label*/
17
- LabelKey: string;
18
- /** Represent value of the labelDescription show under TextArea*/
19
- LabelDescription: string;
20
- /** Represent value of the Placeholder of TextArea */
21
- Placeholder: string;
22
- /**To set value to TextArea */
23
- Value: string;
2
+ import { ControlOptionsBase } from './ControlOptionsBase';
3
+ export declare class TextAreaOptions extends ControlOptionsBase {
4
+ /**To set value to Control */
5
+ Value: any;
24
6
  MaxLength?: number;
25
7
  /**Set the MinLength of characters In TextArea */
26
8
  MinLength?: number;
@@ -31,31 +13,11 @@ export declare class TextAreaOptions {
31
13
  MaxWordCount: number;
32
14
  /**Prevent AutoComplete of TextArea*/
33
15
  AutoComplete: boolean;
34
- /**
35
- * Display "*" beside the label
36
- * if ForceAsterisk=true and IsRequired=True his display "*" ,
37
- * if if ForceAsterisk=false and IsRequired=false this remove "*",
38
- *if ForceAsterisk=false and IsRequired=True this display "*" ,
39
- */
40
- ShowAsterisk: boolean;
41
- /** Ability to set TextArea required */
42
- IsRequired: boolean;
43
- /** Ability to display or hide the label of TextArea */
44
- HideLabel: boolean;
45
- /** Sets an attribute disable="disabled" */
46
- IsDisabled: boolean;
47
16
  /** text input on change */
48
17
  TrimTextOnChange: boolean;
49
18
  /** add button to for coping to clipboard */
50
19
  EnableCopyToClipboard: boolean;
51
- /** to set type of view if TextArea is Vertical or Horizontal */
52
- ViewType: ControlLayout;
53
- /** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
54
- */
55
- CustomValidation: CustomValidation[];
56
20
  /** to set Direction of TextArea if TextArea is Arabic or English */
57
21
  ForceDirection: ForceDirection;
58
- /** Set List of Custom Attribute to TextArea */
59
- AttributeList: Attribute[];
60
22
  MaxLengthWarningLimit: number;
61
23
  }
@@ -1,29 +1,11 @@
1
1
  import { InputType } from '../Enums/InputType';
2
- import { CustomValidation } from './CustomValidation';
3
- import { ControlLayout } from '../Enums/ControlLayout';
4
2
  import { RangeNumber } from './RangeNumber';
5
3
  import { ForceDirection } from '../Enums/ForceDirection';
6
- import { Attribute } from './Attribute';
7
4
  import { IconPosition } from '../Enums/IconPosition';
8
5
  import { LanguageValidation } from '../Enums/LanguageValidation';
9
- export declare class TextBoxOptions {
10
- /**
11
- * Represent Name Of Form Control
12
- */
13
- Name: string;
14
- /**
15
- * Represent classes to textbox that allow us to select the TextBox by jquery or javascript
16
- */
17
- ExtraClasses: string;
18
- /** Represent value of the label*/
19
- LabelValue: string;
20
- /** Represent Key of the label*/
21
- LabelKey: string;
22
- /** Represent value of the labelDescription show under textbox*/
23
- LabelDescription: string;
24
- /** Represent value of the Placeholder of textbox */
25
- Placeholder: string;
26
- /**To set value to textbox */
6
+ import { ControlOptionsBase } from './ControlOptionsBase';
7
+ export declare class TextBoxOptions extends ControlOptionsBase {
8
+ /**To set value to Control */
27
9
  Value: any;
28
10
  MaxLength?: number;
29
11
  /**Set the MinLength of characters In TextBox */
@@ -33,38 +15,18 @@ export declare class TextBoxOptions {
33
15
  NumberRange: RangeNumber;
34
16
  /**Prevent AutoComplete of textbox*/
35
17
  AutoComplete: string;
36
- /**
37
- * Display "*" beside the label
38
- * if ForceAsterisk=true and IsRequired=True his display "*" ,
39
- * if ForceAsterisk=false and IsRequired=false this remove "*",
40
- *if ForceAsterisk=false and IsRequired=True this display "*" ,
41
- */
42
- ShowAsterisk: boolean;
43
- /** Ability to set TextBox required */
44
- IsRequired: boolean;
45
- /** Ability to display or hide the label of TextBox */
46
- HideLabel: boolean;
47
- /** Sets an attribute disable="disabled" */
48
- IsDisabled: boolean;
49
18
  /** text input on change */
50
19
  TrimTextOnChange: boolean;
51
20
  /** add button to for coping to clipboard */
52
21
  EnableCopyToClipboard: boolean;
53
22
  /**Prevent Defulat Password Validation to set Custom Validation */
54
23
  RemoveDefaultPasswordValidation: boolean;
55
- /** to set type of view if textbox is Vertical or Horizontal */
56
- ViewType: ControlLayout;
57
- /** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
58
- */
59
- CustomValidation: CustomValidation[];
60
24
  /** to set Direction of textbox if textbox is Arabic or English */
61
25
  ForceDirection: ForceDirection;
62
26
  /** to set Language of textbox if textbox language is Arabic or English */
63
27
  LanguageValidation: LanguageValidation;
64
28
  /** Set Type of TextBox ("text","password","email","number") */
65
29
  Type: InputType;
66
- /** Set List of Custom Attribute to TextBox */
67
- AttributeList: Attribute[];
68
30
  /** Set Mask Pattern Attribute to TextBox */
69
31
  MaskPattern: string;
70
32
  Icon: string;
@@ -1,36 +1,9 @@
1
- import { CustomValidation } from './CustomValidation';
2
- import { ControlLayout } from '../Enums/ControlLayout';
3
1
  import { ForceDirection } from '../Enums/ForceDirection';
4
- import { Attribute } from './Attribute';
5
- export declare class ToggleSlideOptions {
6
- /**
7
- * Represent Name Of Form Control
8
- */
9
- Name: string;
10
- /**
11
- * Represent classes to ToggleSlide that allow us to select the ToggleSlide by jquery or javascript
12
- */
13
- ExtraClasses: string;
14
- /**
15
- * Display validation message only on added repeater when add class "v-required"
16
- */
2
+ import { ControlOptionsBase } from './ControlOptionsBase';
3
+ export declare class ToggleSlideOptions extends ControlOptionsBase {
4
+ /**Display validation message only on added repeater when add class "v-required"*/
17
5
  ValidationClasses: string;
18
- /** Represent value of the label*/
19
- LabelValue: string;
20
- /** Represent Key of the label*/
21
- LabelKey: string;
22
- /** Represent value of the labelDescription show under ToggleSlide*/
23
- LabelDescription: string;
24
6
  /**To set value to ToggleSlide */
25
7
  Value: boolean;
26
- /** Sets an attribute disable="disabled" */
27
- IsDisabled: boolean;
28
- /** Set List of Custom Attribute to ToggleSlide */
29
- AttributeList: Attribute[];
30
- /** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
31
- */
32
- CustomValidation: CustomValidation;
33
- ViewType: ControlLayout;
34
8
  ForceDirection: ForceDirection;
35
- HideLabel: boolean;
36
9
  }
@@ -1,53 +1,17 @@
1
- import { CustomValidation } from './CustomValidation';
2
- import { ControlLayout } from '../Enums/ControlLayout';
3
1
  import { ForceDirection } from '../Enums/ForceDirection';
4
- import { Attribute } from './Attribute';
5
2
  import { StartView } from '../Enums/StartView';
6
3
  import { PickerType } from '../Enums/PickerType';
7
4
  import { SelectMode } from '../Enums/SelectMode';
8
- export declare class DatePickerOptions {
9
- /**
10
- * Represent Name Of Form Control
11
- */
12
- Name: string;
13
- /**
14
- * Represent classes to DatePicer that allow us to select the DatePicker by jquery or javascript
15
- */
16
- ExtraClasses: string;
17
- /** Represent value of the label*/
18
- LabelValue: string;
19
- /** Represent Key of the label*/
20
- LabelKey: string;
21
- /** Represent value of the labelDescription show under DatePicker*/
22
- LabelDescription: string;
23
- /** Represent value of the Placeholder of DatePicker */
24
- Placeholder: string;
5
+ import { ControlOptionsBase } from './ControlOptionsBase';
6
+ export declare class DatePickerOptions extends ControlOptionsBase {
25
7
  /**To set value to DatePicker */
26
8
  Value: Date;
27
9
  /**To set StartDate to DatePicker */
28
10
  StartDate: Date;
29
11
  /**To set EndDate to DatePicker */
30
12
  EndDate: Date;
31
- /**
32
- * Display "*" beside the label
33
- * if ForceAsterisk=true and IsRequired=True his display "*" ,
34
- * if if ForceAsterisk=false and IsRequired=false this remove "*",
35
- *if ForceAsterisk=false and IsRequired=True this display "*" ,
36
- */
37
- ShowAsterisk: boolean;
38
- /** Ability to set DatePicker required */
39
- IsRequired: boolean;
40
- /** Ability to display or hide the label of DatePicker */
41
- HideLabel: boolean;
42
- /** Sets an attribute disable="disabled" */
43
- IsDisabled: boolean;
44
13
  /** add button to for coping to clipboard */
45
14
  EnableCopyToClipboard: boolean;
46
- /** to set type of view if DatePicker is Vertical or Horizontal */
47
- ViewType: ControlLayout;
48
- /** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
49
- */
50
- CustomValidation: CustomValidation[];
51
15
  IsGMT: boolean;
52
16
  /**To set First Day Of Week to DatePicker */
53
17
  FirstDayOfWeek: Number;
@@ -59,8 +23,6 @@ export declare class DatePickerOptions {
59
23
  StartView: StartView;
60
24
  /**To set SelectMode to DatePicker is Single or Range */
61
25
  SelectMode: SelectMode;
62
- /**To set AttributeList to DatePicker */
63
- AttributeList: Attribute[];
64
26
  ForceDirection: ForceDirection;
65
27
  /**Name of DatePicker control to compare value with it */
66
28
  StartControlToCompareWith: string;
@@ -0,0 +1,7 @@
1
+ import { DatePipe } from '@angular/common';
2
+ import { PipeTransform } from '@angular/core';
3
+ export declare class BBSFDateTimePipe implements PipeTransform {
4
+ datePipe: DatePipe;
5
+ constructor(datePipe: DatePipe);
6
+ transform(value: Date): string;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { DatePipe } from '@angular/common';
2
+ import { PipeTransform } from '@angular/core';
3
+ export declare class BBSFDatePipe implements PipeTransform {
4
+ datePipe: DatePipe;
5
+ constructor(datePipe: DatePipe);
6
+ transform(value: Date): string;
7
+ }
@@ -1,13 +1,15 @@
1
1
  import { CustomValidation } from '../Models/CustomValidation';
2
2
  import { ErrorMassageValidation } from './validationErrorMassage.service';
3
3
  import { ValidationErrors, ValidatorFn, AbstractControl } from '@angular/forms';
4
- import { ControlValidationService } from '@bnsights/bbsf-utilities';
4
+ import { ControlValidationService, UtilityService } from '@bnsights/bbsf-utilities';
5
5
  export declare class ControlUtility {
6
6
  private ErrorHandler;
7
7
  private controlValidationService;
8
- constructor(ErrorHandler: ErrorMassageValidation, controlValidationService: ControlValidationService);
8
+ private utilityService;
9
+ constructor(ErrorHandler: ErrorMassageValidation, controlValidationService: ControlValidationService, utilityService: UtilityService);
9
10
  getErrorValidation(Errorsitem: any[], CustomValidation?: CustomValidation): string;
10
11
  patternValidator(regex: RegExp, error: ValidationErrors): ValidatorFn;
12
+ patchControlValue(originalValue: any, PatchFunction: any, PatchPath: any): void;
11
13
  arabicValidator(error: ValidationErrors): ValidatorFn;
12
14
  getInputType(type: number): string;
13
15
  trimControlValue(value: any): any;