@bnsights/bbsf-controls 1.0.27 → 1.0.30

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 (37) hide show
  1. package/README.md +7 -18
  2. package/bnsights-bbsf-controls-1.0.30.tgz +0 -0
  3. package/bnsights-bbsf-controls.metadata.json +1 -1
  4. package/bundles/bnsights-bbsf-controls.umd.js +555 -382
  5. package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
  6. package/esm2015/lib/Shared/Enums/LanguageValidation.js +6 -0
  7. package/esm2015/lib/Shared/Models/RepeaterField.js +1 -1
  8. package/esm2015/lib/Shared/Models/RepeaterOptions.js +2 -1
  9. package/esm2015/lib/Shared/Models/TextBoxOptions.js +3 -1
  10. package/esm2015/lib/Shared/services/validationErrorMassage.service.js +12 -12
  11. package/esm2015/lib/controls/ConfirmationModal/ConfirmationModal.component.js +2 -2
  12. package/esm2015/lib/controls/DateTimePicker/DateTimePicker.component.js +8 -3
  13. package/esm2015/lib/controls/ImageUpload/ImageUpload.component.js +4 -4
  14. package/esm2015/lib/controls/MultiLingualTextArea/MultiLingualTextArea.component.js +3 -3
  15. package/esm2015/lib/controls/MultiLingualTextBox/MultiLingualTextBox.component.js +3 -3
  16. package/esm2015/lib/controls/Repeater/repeater/repeater.component.js +15 -9
  17. package/esm2015/lib/controls/Repeater/repeater-field-builder/repeater-field-builder.component.js +376 -336
  18. package/esm2015/lib/controls/Repeater/repeater-table/repeater-table.component.js +105 -0
  19. package/esm2015/lib/controls/TextArea/TextArea.component.js +2 -2
  20. package/esm2015/lib/controls/TextBox/TextBox.component.js +15 -14
  21. package/esm2015/lib/controls/bbsf-controls.module.js +4 -1
  22. package/esm2015/public-api.js +3 -1
  23. package/fesm2015/bnsights-bbsf-controls.js +543 -380
  24. package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
  25. package/lib/Shared/Enums/LanguageValidation.d.ts +4 -0
  26. package/lib/Shared/Models/RepeaterField.d.ts +1 -0
  27. package/lib/Shared/Models/RepeaterOptions.d.ts +3 -0
  28. package/lib/Shared/Models/TextBoxOptions.d.ts +3 -0
  29. package/lib/controls/DateTimePicker/DateTimePicker.component.d.ts +3 -1
  30. package/lib/controls/ImageUpload/ImageUpload.component.d.ts +1 -1
  31. package/lib/controls/Repeater/repeater/repeater.component.d.ts +2 -1
  32. package/lib/controls/Repeater/repeater-field-builder/repeater-field-builder.component.d.ts +3 -0
  33. package/lib/controls/Repeater/repeater-table/repeater-table.component.d.ts +16 -0
  34. package/package.json +2 -2
  35. package/public-api.d.ts +2 -0
  36. package/src/lib/assets/Style.css +0 -9
  37. package/bnsights-bbsf-controls-1.0.27.tgz +0 -0
@@ -0,0 +1,4 @@
1
+ export declare enum LanguageValidation {
2
+ English = 1,
3
+ Arabic = 2
4
+ }
@@ -1,5 +1,6 @@
1
1
  import { DataType } from "../Enums/Enums";
2
2
  export declare class RepeaterField {
3
+ HeaderTitle: string;
3
4
  ControlType: DataType;
4
5
  ControlOptions: any;
5
6
  }
@@ -4,7 +4,10 @@ export declare class RepeaterOptions {
4
4
  MinRequiredItems: number;
5
5
  ExtraClasses: string;
6
6
  Name: string;
7
+ ActionLabelKey: string;
7
8
  AddButtonExtraClasses: string;
9
+ RepeaterTableExtraClasses: string;
10
+ RepeaterTableRowExtraClasses: string;
8
11
  AddButtonText: string;
9
12
  DeleteButtonExtraClasses: string;
10
13
  DeleteButtonText: string;
@@ -5,6 +5,7 @@ import { RangeNumber } from './RangeNumber';
5
5
  import { ForceDirection } from '../Enums/ForceDirection';
6
6
  import { Attribute } from './Attribute';
7
7
  import { IconPosition } from '../Enums/IconPosition';
8
+ import { LanguageValidation } from '../Enums/LanguageValidation';
8
9
  export declare class TextBoxOptions {
9
10
  /**
10
11
  * Represent Name Of Form Control
@@ -58,6 +59,8 @@ export declare class TextBoxOptions {
58
59
  CustomValidation: CustomValidation[];
59
60
  /** to set Direction of textbox if textbox is Arabic or English */
60
61
  ForceDirection: ForceDirection;
62
+ /** to set Language of textbox if textbox language is Arabic or English */
63
+ LanguageValidation: LanguageValidation;
61
64
  /** Set Type of TextBox ("text","password","email","number") */
62
65
  Type: InputType;
63
66
  /** Set List of Custom Attribute to TextBox */
@@ -6,6 +6,7 @@ import { ControlUtility } from '../../Shared/services/ControlUtility';
6
6
  import { OnPagingFiltersChangeService } from '../../Shared/services/OnPagingFiltersChange.service';
7
7
  import { BBSFTranslateService, ControlValidationService, UtilityService } from '@bnsights/bbsf-utilities';
8
8
  import { DatePipe } from '@angular/common';
9
+ import { DateTimeAdapter } from 'ng-pick-datetime';
9
10
  export declare class DateInputComponent implements OnInit {
10
11
  datepipe: DatePipe;
11
12
  private onChangeService;
@@ -16,8 +17,9 @@ export declare class DateInputComponent implements OnInit {
16
17
  private UtilityService;
17
18
  private translate;
18
19
  private controlValidationService;
20
+ private dateTimeAdapter;
19
21
  static controlContainerstatic: any;
20
- constructor(datepipe: DatePipe, onChangeService: OnPagingFiltersChangeService, ErrorHandler: ErrorMassageValidation, controlUtility: ControlUtility, controlContainer: ControlContainer, DateInputControlHost: FormGroupDirective, UtilityService: UtilityService, translate: BBSFTranslateService, controlValidationService: ControlValidationService);
22
+ constructor(datepipe: DatePipe, onChangeService: OnPagingFiltersChangeService, ErrorHandler: ErrorMassageValidation, controlUtility: ControlUtility, controlContainer: ControlContainer, DateInputControlHost: FormGroupDirective, UtilityService: UtilityService, translate: BBSFTranslateService, controlValidationService: ControlValidationService, dateTimeAdapter: DateTimeAdapter<any>);
21
23
  group: FormGroup;
22
24
  options: DatePickerOptions;
23
25
  DatePickerFormControl: AbstractControl;
@@ -11,7 +11,7 @@ export declare class ImageUploaderComponent implements OnInit {
11
11
  private controlUtility;
12
12
  private controlContainer;
13
13
  ImageUplaoderControlHost: FormGroupDirective;
14
- private UtilityService;
14
+ UtilityService: UtilityService;
15
15
  private controlValidationService;
16
16
  private globalSettings;
17
17
  static controlContainerstatic: any;
@@ -9,6 +9,7 @@ export declare class RepeaterComponent implements OnInit {
9
9
  delete: TemplateRef<any>;
10
10
  templateRefs: Array<TemplateRef<any>>;
11
11
  items: number[];
12
+ originalItems: any[];
12
13
  repeaterGroup: FormGroup;
13
14
  currentTemplate: TemplateRef<any>;
14
15
  repeaterContext: {
@@ -19,7 +20,7 @@ export declare class RepeaterComponent implements OnInit {
19
20
  constructor();
20
21
  ngOnInit(): void;
21
22
  deleteItem(Index: any): void;
22
- AddItem(): void;
23
+ addItem(): void;
23
24
  ngAfterViewInit(): void;
24
25
  setCurrentIndex(i: number): void;
25
26
  }
@@ -10,6 +10,9 @@ export declare class RepeaterFieldBuilderComponent implements OnInit, AfterViewI
10
10
  itemNumber: number;
11
11
  controlNumber: number;
12
12
  RepeaterField: RepeaterField;
13
+ itemsValue: any[];
14
+ itemValue: any;
15
+ value: any;
13
16
  constructor(renderComponentService: RenderComponentService, TextControlHost: FormGroupDirective);
14
17
  ngOnInit(): void;
15
18
  ngAfterViewInit(): void;
@@ -0,0 +1,16 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { RepeaterOptions } from '../../../Shared/Models/RepeaterOptions';
4
+ import { UtilityService } from '@bnsights/bbsf-utilities';
5
+ export declare class RepeaterTableComponent implements OnInit {
6
+ utilityService: UtilityService;
7
+ group: FormGroup;
8
+ options: RepeaterOptions;
9
+ items: number[];
10
+ repeaterGroup: FormGroup;
11
+ originalItems: any[];
12
+ constructor(utilityService: UtilityService);
13
+ ngOnInit(): void;
14
+ deleteItem(Index: any): void;
15
+ addItem(): void;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bnsights/bbsf-controls",
3
- "version": "1.0.27",
3
+ "version": "1.0.30",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~12.2.12",
6
6
  "@angular/core": "~12.2.12"
@@ -21,7 +21,7 @@
21
21
  "@angular/platform-browser": "~12.2.12",
22
22
  "@angular/platform-browser-dynamic": "~12.2.12",
23
23
  "@angular/router": "~12.2.12",
24
- "@bnsights/bbsf-utilities": "1.0.12",
24
+ "@bnsights/bbsf-utilities": "1.0.13",
25
25
  "@fortawesome/fontawesome-free": "^5.15.2",
26
26
  "google-libphonenumber": "^3.2.17",
27
27
  "@fullcalendar/angular": "^5.5.0",
package/public-api.d.ts CHANGED
@@ -23,6 +23,7 @@ export * from './lib/controls/RadioButton/RadioButton.component';
23
23
  export * from './lib/controls/ConfirmationModal/ConfirmationModal.component';
24
24
  export * from './lib/controls/Form/Form.component';
25
25
  export * from './lib/controls/Repeater/repeater/repeater.component';
26
+ export * from './lib/controls/Repeater/repeater-table/repeater-table.component';
26
27
  export * from './lib/controls/Repeater/repeater-field-builder/repeater-field-builder.component';
27
28
  export * from './lib/controls/Repeater/repeater-item-field/repeater-item-field.component';
28
29
  export * from './lib/Shared/services/validationErrorMassage.service';
@@ -98,3 +99,4 @@ export * from './lib/Shared/Enums/IconPosition';
98
99
  export * from './lib/Shared/Enums/PagingActionMode';
99
100
  export * from './lib/Shared/Enums/StyleConfirmationMode';
100
101
  export * from './lib/Shared/Enums/Enums';
102
+ export * from './lib/Shared/Enums/LanguageValidation';
@@ -59,9 +59,6 @@ i.fa.fa-search {
59
59
  display: none !important;
60
60
  }
61
61
 
62
- span {
63
- cursor: pointer;
64
- }
65
62
 
66
63
  .ta-results[_ngcontent-ng-cli-universal-c7] {
67
64
  position: static !important;
@@ -198,12 +195,6 @@ section.ta-results.list-group {
198
195
  color: #a2a2a2;
199
196
  }
200
197
 
201
- .word-count {
202
- position: absolute;
203
- bottom: -25px;
204
- right: 0px;
205
- }
206
-
207
198
  .input-group:not(.has-validation) > .form-control:not(:last-child), .input-group:not(.has-validation) > .custom-select:not(:last-child), .input-group:not(.has-validation) > .custom-file:not(:last-child) .custom-file-label::after {
208
199
  border-top-right-radius: 0 !important;
209
200
  border-bottom-right-radius: 0 !important;
Binary file