@bnsights/bbsf-controls 1.0.171 → 1.0.173

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 (33) hide show
  1. package/README.md +10 -0
  2. package/esm2022/lib/Shared/Models/AutocompleteOptions.mjs +16 -1
  3. package/esm2022/lib/Shared/Models/ControlOptionsBase.mjs +5 -1
  4. package/esm2022/lib/Shared/Models/DatePickerOptions.mjs +17 -1
  5. package/esm2022/lib/Shared/Models/DropdownOptions.mjs +23 -1
  6. package/esm2022/lib/Shared/Models/MultiLingualTextBoxOptions.mjs +4 -1
  7. package/esm2022/lib/Shared/Models/MultilingualControlOptionsBase.mjs +6 -1
  8. package/esm2022/lib/Shared/Models/PhoneOptions.mjs +4 -1
  9. package/esm2022/lib/Shared/Models/RadioButtonOptions.mjs +4 -1
  10. package/esm2022/lib/Shared/Models/TagsInputOptions.mjs +16 -1
  11. package/esm2022/lib/Shared/Models/TextAreaOptions.mjs +4 -1
  12. package/esm2022/lib/Shared/Models/TextBoxOptions.mjs +4 -1
  13. package/esm2022/lib/controls/AutocompleteTextBox/AutocompleteTextBox.component.mjs +8 -4
  14. package/esm2022/lib/controls/DateTimePicker/DateTimePicker.component.mjs +20 -9
  15. package/esm2022/lib/controls/DropdownList/DropdownList.component.mjs +47 -14
  16. package/esm2022/lib/controls/FileUplaod/FileUplaod.component.mjs +18 -1
  17. package/esm2022/lib/controls/MultiLingualTextBox/MultiLingualTextBox.component.mjs +29 -21
  18. package/esm2022/lib/controls/TagsInput/TagsInput.component.mjs +1 -1
  19. package/fesm2022/bnsights-bbsf-controls.mjs +208 -44
  20. package/fesm2022/bnsights-bbsf-controls.mjs.map +1 -1
  21. package/lib/Shared/Models/AutocompleteOptions.d.ts +1 -0
  22. package/lib/Shared/Models/ControlOptionsBase.d.ts +4 -3
  23. package/lib/Shared/Models/DatePickerOptions.d.ts +1 -0
  24. package/lib/Shared/Models/DropdownOptions.d.ts +1 -0
  25. package/lib/Shared/Models/MultiLingualTextBoxOptions.d.ts +1 -0
  26. package/lib/Shared/Models/MultilingualControlOptionsBase.d.ts +2 -0
  27. package/lib/Shared/Models/PhoneOptions.d.ts +1 -0
  28. package/lib/Shared/Models/RadioButtonOptions.d.ts +1 -0
  29. package/lib/Shared/Models/TagsInputOptions.d.ts +1 -0
  30. package/lib/Shared/Models/TextAreaOptions.d.ts +1 -0
  31. package/lib/Shared/Models/TextBoxOptions.d.ts +1 -0
  32. package/lib/controls/DropdownList/DropdownList.component.d.ts +4 -2
  33. package/package.json +1 -1
@@ -39,4 +39,5 @@ export declare class AutocompleteOptions extends ControlOptionsBase {
39
39
  customTemplate: TemplateRef<any>;
40
40
  extraFilter: string | Function;
41
41
  extraFilterParamName: string;
42
+ get displayValue(): any;
42
43
  }
@@ -1,6 +1,6 @@
1
- import { ControlLayout } from "../Enums/ControlLayout";
1
+ import { ControlLayout } from '../Enums/ControlLayout';
2
2
  import { Attribute } from './Attribute';
3
- import { CustomValidation } from "./CustomValidation";
3
+ import { CustomValidation } from './CustomValidation';
4
4
  export declare class ControlOptionsBase {
5
5
  /** Represent Name Of Form Control*/
6
6
  name: string;
@@ -21,7 +21,7 @@ export declare class ControlOptionsBase {
21
21
  * if ForceAsterisk=true and IsRequired=True his display "*" ,
22
22
  * if ForceAsterisk=false and IsRequired=false this remove "*",
23
23
  *if ForceAsterisk=false and IsRequired=True this display "*" ,
24
- */
24
+ */
25
25
  showAsterisk: boolean;
26
26
  /** Ability to set Control required */
27
27
  isRequired: boolean;
@@ -43,4 +43,5 @@ export declare class ControlOptionsBase {
43
43
  isReadonly: boolean;
44
44
  /** Set output function for repeater */
45
45
  outputFunction: Function;
46
+ get displayValue(): any;
46
47
  }
@@ -25,4 +25,5 @@ export declare class DatePickerOptions extends ControlOptionsBase {
25
25
  /**Name of DatePicker control to compare value with it */
26
26
  startControlToCompareWith: string;
27
27
  validationClasses: string;
28
+ get displayValue(): any;
28
29
  }
@@ -31,4 +31,5 @@ export declare class DropdownOptions extends ControlOptionsBase {
31
31
  /** Represent Value of disabled items tooltip*/
32
32
  disabledItemsTooltipValue: string;
33
33
  hasGroup: boolean;
34
+ get displayValue(): any;
34
35
  }
@@ -9,4 +9,5 @@ export declare class MultiLingualTextBoxOptions extends MultilingualControlOptio
9
9
  maxLengthWarningLimit: number;
10
10
  /**Prevent AutoComplete of inputs default value is "on" available values "on" and "off"*/
11
11
  autoComplete: string;
12
+ get displayValue(): any;
12
13
  }
@@ -74,4 +74,6 @@ export declare class MultilingualControlOptionsBase {
74
74
  patchFunction: Function;
75
75
  /** Sets an attribute readonly */
76
76
  isReadonly: boolean;
77
+ /** Sets an display value */
78
+ get displayValue(): any;
77
79
  }
@@ -18,4 +18,5 @@ export declare class PhoneOptions extends ControlOptionsBase {
18
18
  preferredCountries: Country[];
19
19
  onlyCountries: Country[];
20
20
  forceDirection: ForceDirection;
21
+ get displayValue(): any;
21
22
  }
@@ -5,4 +5,5 @@ export declare class RadioButtonOptions extends ControlOptionsBase {
5
5
  value: RadioButtonItem;
6
6
  /** Set List of Custom Attribute to RadioButton */
7
7
  items: RadioButtonItem[];
8
+ get displayValue(): any;
8
9
  }
@@ -54,4 +54,5 @@ export declare class TagsInputOptions extends ControlOptionsBase {
54
54
  extraFilters: string | Function;
55
55
  tagInputMode: TagInputView;
56
56
  showDescription: boolean;
57
+ get displayValue(): any;
57
58
  }
@@ -28,4 +28,5 @@ export declare class TextAreaOptions extends ControlOptionsBase {
28
28
  iconMicOff: string;
29
29
  extraClassMicLanguage: string;
30
30
  autoSaveSpeechLanguagetoLocalStorage: boolean;
31
+ get displayValue(): any;
31
32
  }
@@ -34,4 +34,5 @@ export declare class TextBoxOptions extends ControlOptionsBase {
34
34
  noMargin: boolean;
35
35
  validationRules: any[];
36
36
  maxLengthWarningLimit: number;
37
+ get displayValue(): any;
37
38
  }
@@ -1,4 +1,4 @@
1
- import { OnInit, EventEmitter } from '@angular/core';
1
+ import { OnInit, EventEmitter, DoCheck } from '@angular/core';
2
2
  import { FormGroup, AbstractControl, FormGroupDirective, ControlContainer } from '@angular/forms';
3
3
  import { ControlUtility } from '../../Shared/services/ControlUtility';
4
4
  import { DropdownOptions } from '../../Shared/Models/DropdownOptions';
@@ -8,7 +8,7 @@ import { ControlValidationService, UtilityService } from '@bnsights/bbsf-utiliti
8
8
  import { GlobalSettings } from '../../Shared/services/GlobalSettings.service';
9
9
  import { ForceDirection } from '../../Shared/Enums/ForceDirection';
10
10
  import * as i0 from "@angular/core";
11
- export declare class DropdownListComponent implements OnInit {
11
+ export declare class DropdownListComponent implements OnInit, DoCheck {
12
12
  private onChangeService;
13
13
  private controlUtility;
14
14
  private controlContainer;
@@ -33,7 +33,9 @@ export declare class DropdownListComponent implements OnInit {
33
33
  validationRulesasync: any[];
34
34
  textDir: any;
35
35
  ForceDirection: typeof ForceDirection;
36
+ private previousSelectedItems;
36
37
  ngOnInit(): void;
38
+ ngDoCheck(): void;
37
39
  ngAfterViewInit(): void;
38
40
  resetError: () => void;
39
41
  showGlobalError(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bnsights/bbsf-controls",
3
- "version": "1.0.171",
3
+ "version": "1.0.173",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^17.0.5",
6
6
  "@angular/cdk": "^17.0.2",