@bnsights/bbsf-controls 1.0.25 → 1.0.28
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.
- package/README.md +7 -18
- package/bnsights-bbsf-controls-1.0.28.tgz +0 -0
- package/bnsights-bbsf-controls.metadata.json +1 -1
- package/bundles/bnsights-bbsf-controls.umd.js +1152 -222
- package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
- package/esm2015/lib/Shared/Directives/template-name.directive.js +18 -0
- package/esm2015/lib/Shared/Enums/Enums.js +45 -0
- package/esm2015/lib/Shared/Models/RepeaterField.js +3 -0
- package/esm2015/lib/Shared/Models/RepeaterOptions.js +10 -0
- package/esm2015/lib/Shared/services/render-component-service.service.js +19 -0
- package/esm2015/lib/Shared/services/validationErrorMassage.service.js +12 -12
- package/esm2015/lib/controls/ConfirmationModal/ConfirmationModal.component.js +2 -2
- package/esm2015/lib/controls/DateTimePicker/DateTimePicker.component.js +8 -3
- package/esm2015/lib/controls/DropdownList/DropdownList.component.js +2 -2
- package/esm2015/lib/controls/ImageUpload/ImageUpload.component.js +8 -5
- package/esm2015/lib/controls/MultiLingualTextArea/MultiLingualTextArea.component.js +3 -3
- package/esm2015/lib/controls/MultiLingualTextBox/MultiLingualTextBox.component.js +3 -3
- package/esm2015/lib/controls/Paging/Paging.component.js +2 -2
- package/esm2015/lib/controls/Repeater/repeater/repeater.component.js +112 -0
- package/esm2015/lib/controls/Repeater/repeater-field-builder/repeater-field-builder.component.js +704 -0
- package/esm2015/lib/controls/Repeater/repeater-item-field/repeater-item-field.component.js +20 -0
- package/esm2015/lib/controls/TextArea/TextArea.component.js +2 -2
- package/esm2015/lib/controls/TextBox/TextBox.component.js +2 -2
- package/esm2015/lib/controls/bbsf-controls.module.js +17 -9
- package/esm2015/public-api.js +9 -1
- package/fesm2015/bnsights-bbsf-controls.js +1114 -208
- package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
- package/lib/Shared/Directives/template-name.directive.d.ts +6 -0
- package/lib/Shared/Enums/Enums.d.ts +40 -0
- package/lib/Shared/Models/RepeaterField.d.ts +5 -0
- package/lib/Shared/Models/RepeaterOptions.d.ts +13 -0
- package/lib/Shared/services/render-component-service.service.d.ts +7 -0
- package/lib/controls/DateTimePicker/DateTimePicker.component.d.ts +3 -1
- package/lib/controls/ImageUpload/ImageUpload.component.d.ts +1 -1
- package/lib/controls/Repeater/repeater/repeater.component.d.ts +25 -0
- package/lib/controls/Repeater/repeater-field-builder/repeater-field-builder.component.d.ts +17 -0
- package/lib/controls/Repeater/repeater-item-field/repeater-item-field.component.d.ts +8 -0
- package/package.json +2 -2
- package/public-api.d.ts +8 -0
- package/src/lib/assets/Style.css +0 -9
- package/bnsights-bbsf-controls-1.0.25.tgz +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare enum PermissionSets {
|
|
2
|
+
Admin = 1,
|
|
3
|
+
BusinessAdmin = 2,
|
|
4
|
+
Customer = 3
|
|
5
|
+
}
|
|
6
|
+
export declare enum PropertyLocation {
|
|
7
|
+
InternalIdeas = 53001,
|
|
8
|
+
EvaluationRequest = 53002,
|
|
9
|
+
IMOBusiness = 53003,
|
|
10
|
+
PublicIdeas = 53004
|
|
11
|
+
}
|
|
12
|
+
export declare enum LanguageType {
|
|
13
|
+
English = 54001,
|
|
14
|
+
Arabic = 54002,
|
|
15
|
+
Any = 54003
|
|
16
|
+
}
|
|
17
|
+
export declare enum DataType {
|
|
18
|
+
Text = 52001,
|
|
19
|
+
Email = 52002,
|
|
20
|
+
Number = 52005,
|
|
21
|
+
Name = 52003,
|
|
22
|
+
Mobile = 52004,
|
|
23
|
+
MultilineText = 52006,
|
|
24
|
+
HTML = 52007,
|
|
25
|
+
Image = 52010,
|
|
26
|
+
File = 52011,
|
|
27
|
+
MultiFile = 52012,
|
|
28
|
+
Boolean = 52013,
|
|
29
|
+
Date = 52014,
|
|
30
|
+
DateTime = 52015,
|
|
31
|
+
Time = 52016,
|
|
32
|
+
Location = 52017,
|
|
33
|
+
SingleSelect = 52008,
|
|
34
|
+
MulipleSelect = 52009,
|
|
35
|
+
Goal = 52018,
|
|
36
|
+
Challenge = 52019,
|
|
37
|
+
CoverPhoto = 52020,
|
|
38
|
+
InnovationLab = 52021,
|
|
39
|
+
Country = 52022
|
|
40
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RepeaterField } from "./RepeaterField";
|
|
2
|
+
export declare class RepeaterOptions {
|
|
3
|
+
IsRequired: boolean;
|
|
4
|
+
MinRequiredItems: number;
|
|
5
|
+
ExtraClasses: string;
|
|
6
|
+
Name: string;
|
|
7
|
+
AddButtonExtraClasses: string;
|
|
8
|
+
AddButtonText: string;
|
|
9
|
+
DeleteButtonExtraClasses: string;
|
|
10
|
+
DeleteButtonText: string;
|
|
11
|
+
RepeaterValue: any[];
|
|
12
|
+
RepeaterStructure: RepeaterField[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
export declare class RenderComponentService {
|
|
4
|
+
private componentFactoryResolver;
|
|
5
|
+
constructor(componentFactoryResolver: ComponentFactoryResolver);
|
|
6
|
+
renderDynamicComponent<T>(viewContainerRef: ViewContainerRef, component: any, group: FormGroup, options: any): void;
|
|
7
|
+
}
|
|
@@ -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
|
-
|
|
14
|
+
UtilityService: UtilityService;
|
|
15
15
|
private controlValidationService;
|
|
16
16
|
private globalSettings;
|
|
17
17
|
static controlContainerstatic: any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { RepeaterOptions } from '../../../Shared/Models/RepeaterOptions';
|
|
4
|
+
export declare class RepeaterComponent implements OnInit {
|
|
5
|
+
group: FormGroup;
|
|
6
|
+
options: RepeaterOptions;
|
|
7
|
+
initialTemplate: TemplateRef<any>;
|
|
8
|
+
private _templates;
|
|
9
|
+
delete: TemplateRef<any>;
|
|
10
|
+
templateRefs: Array<TemplateRef<any>>;
|
|
11
|
+
items: number[];
|
|
12
|
+
repeaterGroup: FormGroup;
|
|
13
|
+
currentTemplate: TemplateRef<any>;
|
|
14
|
+
repeaterContext: {
|
|
15
|
+
index: number;
|
|
16
|
+
delete: any;
|
|
17
|
+
elements: any;
|
|
18
|
+
};
|
|
19
|
+
constructor();
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
deleteItem(Index: any): void;
|
|
22
|
+
AddItem(): void;
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
setCurrentIndex(i: number): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AfterViewInit, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormGroupDirective } from '@angular/forms';
|
|
3
|
+
import { RepeaterField } from '../../../Shared/Models/RepeaterField';
|
|
4
|
+
import { RenderComponentService } from '../../../Shared/services/render-component-service.service';
|
|
5
|
+
export declare class RepeaterFieldBuilderComponent implements OnInit, AfterViewInit {
|
|
6
|
+
private renderComponentService;
|
|
7
|
+
TextControlHost: FormGroupDirective;
|
|
8
|
+
Item: ViewContainerRef;
|
|
9
|
+
group: FormGroup;
|
|
10
|
+
itemNumber: number;
|
|
11
|
+
controlNumber: number;
|
|
12
|
+
RepeaterField: RepeaterField;
|
|
13
|
+
constructor(renderComponentService: RenderComponentService, TextControlHost: FormGroupDirective);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngAfterViewInit(): void;
|
|
16
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bnsights/bbsf-controls",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
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.
|
|
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
|
@@ -22,11 +22,15 @@ export * from './lib/controls/Paging/Paging.component';
|
|
|
22
22
|
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
|
+
export * from './lib/controls/Repeater/repeater/repeater.component';
|
|
26
|
+
export * from './lib/controls/Repeater/repeater-field-builder/repeater-field-builder.component';
|
|
27
|
+
export * from './lib/controls/Repeater/repeater-item-field/repeater-item-field.component';
|
|
25
28
|
export * from './lib/Shared/services/validationErrorMassage.service';
|
|
26
29
|
export * from './lib/Shared/services/ControlUtility';
|
|
27
30
|
export * from './lib/Shared/services/OnPagingFiltersChange.service';
|
|
28
31
|
export * from './lib/Shared/config/environment';
|
|
29
32
|
export * from './lib/Shared/services/GlobalSettings.service';
|
|
33
|
+
export * from './lib/Shared/services/render-component-service.service';
|
|
30
34
|
export * from './lib/Shared/Models/CustomValidation';
|
|
31
35
|
export * from './lib/Shared/Models/datePickerOptions';
|
|
32
36
|
export * from './lib/Shared/Models/TextBoxOptions';
|
|
@@ -69,6 +73,9 @@ export * from './lib/Shared/Models/RadioButtonOptions';
|
|
|
69
73
|
export * from './lib/Shared/Models/RadioButtonItem';
|
|
70
74
|
export * from './lib/Shared/Models/FormOptions';
|
|
71
75
|
export * from './lib/Shared/Models/ConfirmationModalOptions';
|
|
76
|
+
export * from './lib/Shared/Models/RepeaterField';
|
|
77
|
+
export * from './lib/Shared/Models/RepeaterOptions';
|
|
78
|
+
export * from './lib/Shared/Directives/template-name.directive';
|
|
72
79
|
export * from './lib/Shared/Enums/InputType';
|
|
73
80
|
export * from './lib/Shared/Enums/menu-list-enum';
|
|
74
81
|
export * from './lib/Shared/Enums/ControlLayout';
|
|
@@ -90,3 +97,4 @@ export * from './lib/Shared/Enums/FilterType';
|
|
|
90
97
|
export * from './lib/Shared/Enums/IconPosition';
|
|
91
98
|
export * from './lib/Shared/Enums/PagingActionMode';
|
|
92
99
|
export * from './lib/Shared/Enums/StyleConfirmationMode';
|
|
100
|
+
export * from './lib/Shared/Enums/Enums';
|
package/src/lib/assets/Style.css
CHANGED
|
@@ -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
|