@bnsights/bbsf-controls 1.0.25 → 1.0.26
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/bnsights-bbsf-controls-1.0.26.tgz +0 -0
- package/bnsights-bbsf-controls.metadata.json +1 -1
- package/bundles/bnsights-bbsf-controls.umd.js +1117 -193
- 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/controls/DropdownList/DropdownList.component.js +2 -2
- package/esm2015/lib/controls/ImageUpload/ImageUpload.component.js +2 -1
- 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/bbsf-controls.module.js +17 -9
- package/esm2015/public-api.js +9 -1
- package/fesm2015/bnsights-bbsf-controls.js +1082 -182
- 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/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 +1 -1
- package/public-api.d.ts +8 -0
- package/bnsights-bbsf-controls-1.0.25.tgz +0 -0
|
@@ -2256,7 +2256,7 @@
|
|
|
2256
2256
|
{ type: i0.Component, args: [{
|
|
2257
2257
|
// tslint:disable-next-line: component-selector
|
|
2258
2258
|
selector: 'BBSF-DropdownList',
|
|
2259
|
-
template: "<div class=\"b-control b-dropdown-list\">\r\n <div class=\"form-group row validate is-invalid\" [formGroup]=\"group\">\r\n <label class=\"b-label col-form-label col-sm-12 \" [ngClass]=\"(options.ViewType==1)?'col-md-12':'col-md-3'\"\r\n [hidden]=\"options.HideLabel\">\r\n {{options.LabelValue}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\" class=\"text-danger Required-text\"\r\n aria-required=\"true\">*</span>\r\n </label>\r\n\r\n <div class=\"col-sm-12\" [ngClass]=\"(options.ViewType==1)?'':'col-md-9'\">\r\n <ng-select *ngIf=\"options.DisableBootstrapSelect==false\" dir=\"{{options.ForceDirection==2?'rtl':''}}\"\r\n [bindValue]=\"options.ItemTempletkey\" [bindLabel]=\"options.ItemTempletvalue\" [items]=\"options.DataSource\"\r\n [notFoundText]=\"'No data found.'\" [maxSelectedItems]=\"options.LimitSelection\"\r\n [searchable]=\"options.AllowSearchFilter\" [multiple]=\"!options.SingleSelection\" [readonly]=\"options.IsDisabled\"\r\n [
|
|
2259
|
+
template: "<div class=\"b-control b-dropdown-list\">\r\n <div class=\"form-group row validate is-invalid\" [formGroup]=\"group\">\r\n <label class=\"b-label col-form-label col-sm-12 \" [ngClass]=\"(options.ViewType==1)?'col-md-12':'col-md-3'\"\r\n [hidden]=\"options.HideLabel\">\r\n {{options.LabelValue}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\" class=\"text-danger Required-text\"\r\n aria-required=\"true\">*</span>\r\n </label>\r\n\r\n <div class=\"col-sm-12\" [ngClass]=\"(options.ViewType==1)?'':'col-md-9'\">\r\n <ng-select *ngIf=\"options.DisableBootstrapSelect==false\" dir=\"{{options.ForceDirection==2?'rtl':''}}\"\r\n [bindValue]=\"options.ItemTempletkey\" [bindLabel]=\"options.ItemTempletvalue\" [items]=\"options.DataSource\"\r\n [notFoundText]=\"'No data found.'\" [maxSelectedItems]=\"options.LimitSelection\"\r\n [searchable]=\"options.AllowSearchFilter\" [multiple]=\"!options.SingleSelection\" [readonly]=\"options.IsDisabled\"\r\n [clearable]=\"true\" placeholder=\"{{options.Placeholder}}\" id=\"{{options.Name}}\"\r\n [selectableGroup]=\"true\" [selectableGroupAsModel]=\"false\" formControlName=\"{{options.Name}}\"\r\n [(ngModel)]=\"options.SelectedItems\" (change)=\"onItemSelect($event[options.ItemTempletkey])\" (clear)=\"Clear()\"\r\n [class.is-invalid]=\"DropdownListFormControl.invalid && DropdownListFormControl.touched\"\r\n [closeOnSelect]=\"options.SingleSelection ? true : false\">\r\n\r\n <ng-template *ngIf=\"options.ShowCheckbox\" ng-option-tmp let-item=\"item\" let-item$=\"item$\" let-index=\"index\">\r\n <div class=\"ks-cboxtags\">\r\n <input id=\"item-{{index}}\" type=\"checkbox\" [ngModelOptions]=\"{standalone: true}\" [ngModel]=\"item$.selected\"\r\n class=\" \" /> <label class=\"ng-option-label mb-0\" id={{item.key}}>{{item.value}}</label>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template *ngIf=\"!options.ShowCheckbox\" ng-option-tmp let-item=\"item\" let-item$=\"item$\" let-index=\"index\">\r\n <label class=\"ng-option-label mb-0\" id={{item.key}}>{{item.value}}</label>\r\n </ng-template>\r\n\r\n </ng-select>\r\n\r\n <select *ngIf=\"options.DisableBootstrapSelect\" class=\"form-control bnsights-control\"\r\n dir=\"{{options.ForceDirection==2?'rtl':''}}\" (change)=\"onItemSelect($event.target.value)\"\r\n [disabled]=\"options.IsDisabled\" formControlName=\"{{options.Name}}\">\r\n <option value=\"\" disabled>--select--</option>\r\n <option *ngFor=\"let item of options.DataSource\" value=\"{{item.key}}\" [ngValue]=\"item.key\">\r\n {{item.value}}\r\n </option>\r\n </select>\r\n\r\n <div class=\"text-danger Required-text\"\r\n *ngIf=\"(DropdownListFormControl.invalid && DropdownListFormControl.touched)\">\r\n {{getErrorValidation(DropdownListFormControl.errors|keyvalue)}}\r\n </div>\r\n\r\n <div class=\"d-flex justify-content-between align-items-center\">\r\n <div class=\"control-desc\">{{options.LabelDescription}}</div>\r\n </div>\r\n\r\n <!-- <div *ngIf=\"DropdownListFormControl.valid\">{{resetError()}}</div> -->\r\n <div *ngIf=\"(group.valid&&group.dirty&&group.touched )||(group.untouched&&group.invalid&&group.dirty) \">\r\n {{resetError()}}</div>\r\n\r\n\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
2260
2260
|
styles: [".cuppa-dropdown{background-color:#fff}.arrow-up,.arrow-down{border-left:none!important;border-right:none!important}.dropdown-list{padding-top:0!important}.c-token{background-color:#6495ed}.pure-checkbox .selected-item{background-color:#6495ed;color:#fff}\n"]
|
|
2261
2261
|
},] }
|
|
2262
2262
|
];
|
|
@@ -3343,6 +3343,7 @@
|
|
|
3343
3343
|
FileType: _this.EventFile.type,
|
|
3344
3344
|
FileBase64: reader.result.toString().split(',')[1],
|
|
3345
3345
|
FileSizeInMB: ((BlobFile.size / 1000) / 1000),
|
|
3346
|
+
NameWithExtension: _this.EventFile.name
|
|
3346
3347
|
};
|
|
3347
3348
|
BlobFile.name = _this.EventFile.name;
|
|
3348
3349
|
FilesArray.push(FileObject);
|
|
@@ -5609,6 +5610,1086 @@
|
|
|
5609
5610
|
confirmationModal: [{ type: i0.ViewChild, args: ['confirmationModal', { static: false },] }]
|
|
5610
5611
|
};
|
|
5611
5612
|
|
|
5613
|
+
var NgTemplateNameDirective = /** @class */ (function () {
|
|
5614
|
+
function NgTemplateNameDirective(template) {
|
|
5615
|
+
this.template = template;
|
|
5616
|
+
}
|
|
5617
|
+
return NgTemplateNameDirective;
|
|
5618
|
+
}());
|
|
5619
|
+
NgTemplateNameDirective.decorators = [
|
|
5620
|
+
{ type: i0.Directive, args: [{
|
|
5621
|
+
selector: 'ng-template[name]'
|
|
5622
|
+
},] }
|
|
5623
|
+
];
|
|
5624
|
+
NgTemplateNameDirective.ctorParameters = function () { return [
|
|
5625
|
+
{ type: i0.TemplateRef }
|
|
5626
|
+
]; };
|
|
5627
|
+
NgTemplateNameDirective.propDecorators = {
|
|
5628
|
+
name: [{ type: i0.Input }]
|
|
5629
|
+
};
|
|
5630
|
+
|
|
5631
|
+
var RepeaterComponent = /** @class */ (function () {
|
|
5632
|
+
function RepeaterComponent() {
|
|
5633
|
+
this.templateRefs = [];
|
|
5634
|
+
this.items = [];
|
|
5635
|
+
this.repeaterContext = { index: 0, delete: null, elements: null };
|
|
5636
|
+
}
|
|
5637
|
+
RepeaterComponent.prototype.ngOnInit = function () {
|
|
5638
|
+
var _this = this;
|
|
5639
|
+
this.currentTemplate = this.initialTemplate;
|
|
5640
|
+
this.repeaterGroup = new forms.FormGroup({});
|
|
5641
|
+
this.group.addControl(this.options.Name, this.repeaterGroup);
|
|
5642
|
+
this.group.get(this.options.Name).setValue(this.options.RepeaterValue);
|
|
5643
|
+
for (var index = 0; index < this.options.MinRequiredItems; index++) {
|
|
5644
|
+
this.items.push(index);
|
|
5645
|
+
}
|
|
5646
|
+
this.repeaterGroup.valueChanges.subscribe(function (res) {
|
|
5647
|
+
var _a, _b;
|
|
5648
|
+
var result = [];
|
|
5649
|
+
var rowNumber = [];
|
|
5650
|
+
var addItems = [];
|
|
5651
|
+
for (var key in _this.repeaterGroup.controls) {
|
|
5652
|
+
if (Object.prototype.hasOwnProperty.call(_this.repeaterGroup.controls, key)) {
|
|
5653
|
+
var keySplitArr = key.split('.');
|
|
5654
|
+
var item = (_a = {},
|
|
5655
|
+
_a[keySplitArr[1]] = (_b = {}, _b[keySplitArr[0]] = _this.group.controls[_this.options.Name].value[key], _b),
|
|
5656
|
+
_a);
|
|
5657
|
+
addItems.push(item);
|
|
5658
|
+
if (!rowNumber.includes(keySplitArr[1]))
|
|
5659
|
+
rowNumber.push(keySplitArr[1]);
|
|
5660
|
+
}
|
|
5661
|
+
}
|
|
5662
|
+
var _loop_1 = function (index) {
|
|
5663
|
+
var row = rowNumber[index];
|
|
5664
|
+
var addObject = {};
|
|
5665
|
+
var filteredElements = addItems.filter(function (item) { return item[row]; });
|
|
5666
|
+
for (var index_1 = 0; index_1 < filteredElements.length; index_1++) {
|
|
5667
|
+
var filteredElement = filteredElements[index_1];
|
|
5668
|
+
for (var key in filteredElement) {
|
|
5669
|
+
if (Object.prototype.hasOwnProperty.call(filteredElement, key)) {
|
|
5670
|
+
var element = filteredElement[key];
|
|
5671
|
+
for (var key_1 in element) {
|
|
5672
|
+
if (Object.prototype.hasOwnProperty.call(element, key_1)) {
|
|
5673
|
+
var value = element[key_1];
|
|
5674
|
+
addObject[key_1] = value;
|
|
5675
|
+
}
|
|
5676
|
+
}
|
|
5677
|
+
}
|
|
5678
|
+
}
|
|
5679
|
+
}
|
|
5680
|
+
result.push(addObject);
|
|
5681
|
+
};
|
|
5682
|
+
for (var index = 0; index < rowNumber.length; index++) {
|
|
5683
|
+
_loop_1(index);
|
|
5684
|
+
}
|
|
5685
|
+
_this.options.RepeaterValue = result;
|
|
5686
|
+
});
|
|
5687
|
+
};
|
|
5688
|
+
RepeaterComponent.prototype.deleteItem = function (Index) {
|
|
5689
|
+
var _a;
|
|
5690
|
+
if (this.items.length == this.options.MinRequiredItems && this.options.IsRequired)
|
|
5691
|
+
return;
|
|
5692
|
+
var deletedControls = [];
|
|
5693
|
+
var controlNames = this.options.RepeaterStructure.map(function (e) { return e.ControlOptions.Name; });
|
|
5694
|
+
for (var key in this.repeaterGroup.controls) {
|
|
5695
|
+
if (Object.prototype.hasOwnProperty.call(this.repeaterGroup.controls, key)) {
|
|
5696
|
+
for (var index = 0; index < controlNames.length; index++) {
|
|
5697
|
+
var element = controlNames[index];
|
|
5698
|
+
var keySplitArr = key.split('.');
|
|
5699
|
+
if (keySplitArr[0] + keySplitArr[1] == "" + element + Index) {
|
|
5700
|
+
var element_1 = this.repeaterGroup.controls[key];
|
|
5701
|
+
deletedControls.push((_a = {}, _a[key] = element_1, _a));
|
|
5702
|
+
}
|
|
5703
|
+
}
|
|
5704
|
+
}
|
|
5705
|
+
}
|
|
5706
|
+
for (var index = 0; index < deletedControls.length; index++) {
|
|
5707
|
+
var element = deletedControls[index];
|
|
5708
|
+
for (var key in element) {
|
|
5709
|
+
if (Object.prototype.hasOwnProperty.call(element, key)) {
|
|
5710
|
+
this.repeaterGroup.removeControl(key);
|
|
5711
|
+
}
|
|
5712
|
+
}
|
|
5713
|
+
}
|
|
5714
|
+
var item = this.items[Index];
|
|
5715
|
+
this.items = this.items.filter(function (res) { return res != item; });
|
|
5716
|
+
};
|
|
5717
|
+
RepeaterComponent.prototype.AddItem = function () {
|
|
5718
|
+
this.items.push(this.items.length + 1);
|
|
5719
|
+
};
|
|
5720
|
+
RepeaterComponent.prototype.ngAfterViewInit = function () {
|
|
5721
|
+
var templateRefs = this._templates["_results"].map(function (item) { return item["template"]; });
|
|
5722
|
+
this.templateRefs = templateRefs;
|
|
5723
|
+
this.repeaterContext.elements = this.templateRefs;
|
|
5724
|
+
this.repeaterContext.delete = this.delete;
|
|
5725
|
+
};
|
|
5726
|
+
RepeaterComponent.prototype.setCurrentIndex = function (i) {
|
|
5727
|
+
this.repeaterContext.index = i;
|
|
5728
|
+
};
|
|
5729
|
+
return RepeaterComponent;
|
|
5730
|
+
}());
|
|
5731
|
+
RepeaterComponent.decorators = [
|
|
5732
|
+
{ type: i0.Component, args: [{
|
|
5733
|
+
selector: 'BBSF-repeater',
|
|
5734
|
+
template: "<div *ngFor='let item of items ; index as i'>\r\n {{setCurrentIndex(i)}}\r\n <ng-container *ngTemplateOutlet=\"currentTemplate; context: repeaterContext\">\r\n </ng-container>\r\n\r\n</div>\r\n\r\n<div>\r\n <ng-container *ngTemplateOutlet=\"add\">\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template *ngFor=\"let RepeaterField of options.RepeaterStructure ; index as i\" name=\"R{{i}}\" \r\n let-Index=\"itemIndex\" let-control=\"controlIndex\">\r\n <repeater-field-builder *ngIf=\"RepeaterField\" [RepeaterField]=\"RepeaterField\" [itemNumber]=\"Index\" [controlNumber]=\"control\"\r\n [group]=\"repeaterGroup\"></repeater-field-builder>\r\n</ng-template>\r\n\r\n<ng-template #delete let-item=\"itemIndex\">\r\n <button class=\"{{options.DeleteButtonExtraClasses}}\" type=\"button\" (click)=\"deleteItem(item)\"\r\n [disabled]=\"items.length ==options.MinRequiredItems&&options.IsRequired\"> <span [innerHTML]=\"options.DeleteButtonText\"></span></button>\r\n</ng-template>\r\n\r\n<ng-template #add>\r\n <button class=\"{{options.AddButtonExtraClasses}}\" type=\"button\"\r\n (click)=\"AddItem()\"><span [innerHTML]=\"options.AddButtonText\"></span></button>\r\n</ng-template>\r\n\r\n\r\n\r\n\r\n\r\n<!-- <ng-template adHost></ng-template> -->",
|
|
5735
|
+
styles: [""]
|
|
5736
|
+
},] }
|
|
5737
|
+
];
|
|
5738
|
+
RepeaterComponent.ctorParameters = function () { return []; };
|
|
5739
|
+
RepeaterComponent.propDecorators = {
|
|
5740
|
+
group: [{ type: i0.Input }],
|
|
5741
|
+
options: [{ type: i0.Input }],
|
|
5742
|
+
initialTemplate: [{ type: i0.Input }],
|
|
5743
|
+
_templates: [{ type: i0.ViewChildren, args: [NgTemplateNameDirective,] }],
|
|
5744
|
+
delete: [{ type: i0.ViewChild, args: ['delete', { static: false },] }]
|
|
5745
|
+
};
|
|
5746
|
+
|
|
5747
|
+
exports.PermissionSets = void 0;
|
|
5748
|
+
(function (PermissionSets) {
|
|
5749
|
+
PermissionSets[PermissionSets["Admin"] = 1] = "Admin";
|
|
5750
|
+
PermissionSets[PermissionSets["BusinessAdmin"] = 2] = "BusinessAdmin";
|
|
5751
|
+
PermissionSets[PermissionSets["Customer"] = 3] = "Customer";
|
|
5752
|
+
})(exports.PermissionSets || (exports.PermissionSets = {}));
|
|
5753
|
+
exports.PropertyLocation = void 0;
|
|
5754
|
+
(function (PropertyLocation) {
|
|
5755
|
+
PropertyLocation[PropertyLocation["InternalIdeas"] = 53001] = "InternalIdeas";
|
|
5756
|
+
PropertyLocation[PropertyLocation["EvaluationRequest"] = 53002] = "EvaluationRequest";
|
|
5757
|
+
PropertyLocation[PropertyLocation["IMOBusiness"] = 53003] = "IMOBusiness";
|
|
5758
|
+
PropertyLocation[PropertyLocation["PublicIdeas"] = 53004] = "PublicIdeas";
|
|
5759
|
+
})(exports.PropertyLocation || (exports.PropertyLocation = {}));
|
|
5760
|
+
exports.LanguageType = void 0;
|
|
5761
|
+
(function (LanguageType) {
|
|
5762
|
+
LanguageType[LanguageType["English"] = 54001] = "English";
|
|
5763
|
+
LanguageType[LanguageType["Arabic"] = 54002] = "Arabic";
|
|
5764
|
+
LanguageType[LanguageType["Any"] = 54003] = "Any";
|
|
5765
|
+
})(exports.LanguageType || (exports.LanguageType = {}));
|
|
5766
|
+
exports.DataType = void 0;
|
|
5767
|
+
(function (DataType) {
|
|
5768
|
+
DataType[DataType["Text"] = 52001] = "Text";
|
|
5769
|
+
DataType[DataType["Email"] = 52002] = "Email";
|
|
5770
|
+
DataType[DataType["Number"] = 52005] = "Number";
|
|
5771
|
+
DataType[DataType["Name"] = 52003] = "Name";
|
|
5772
|
+
DataType[DataType["Mobile"] = 52004] = "Mobile";
|
|
5773
|
+
DataType[DataType["MultilineText"] = 52006] = "MultilineText";
|
|
5774
|
+
DataType[DataType["HTML"] = 52007] = "HTML";
|
|
5775
|
+
DataType[DataType["Image"] = 52010] = "Image";
|
|
5776
|
+
DataType[DataType["File"] = 52011] = "File";
|
|
5777
|
+
DataType[DataType["MultiFile"] = 52012] = "MultiFile";
|
|
5778
|
+
DataType[DataType["Boolean"] = 52013] = "Boolean";
|
|
5779
|
+
DataType[DataType["Date"] = 52014] = "Date";
|
|
5780
|
+
DataType[DataType["DateTime"] = 52015] = "DateTime";
|
|
5781
|
+
DataType[DataType["Time"] = 52016] = "Time";
|
|
5782
|
+
DataType[DataType["Location"] = 52017] = "Location";
|
|
5783
|
+
DataType[DataType["SingleSelect"] = 52008] = "SingleSelect";
|
|
5784
|
+
DataType[DataType["MulipleSelect"] = 52009] = "MulipleSelect";
|
|
5785
|
+
DataType[DataType["Goal"] = 52018] = "Goal";
|
|
5786
|
+
DataType[DataType["Challenge"] = 52019] = "Challenge";
|
|
5787
|
+
DataType[DataType["CoverPhoto"] = 52020] = "CoverPhoto";
|
|
5788
|
+
DataType[DataType["InnovationLab"] = 52021] = "InnovationLab";
|
|
5789
|
+
DataType[DataType["Country"] = 52022] = "Country";
|
|
5790
|
+
})(exports.DataType || (exports.DataType = {}));
|
|
5791
|
+
|
|
5792
|
+
exports.ForceDirection = void 0;
|
|
5793
|
+
(function (ForceDirection) {
|
|
5794
|
+
ForceDirection[ForceDirection["English"] = 1] = "English";
|
|
5795
|
+
ForceDirection[ForceDirection["Arabic"] = 2] = "Arabic";
|
|
5796
|
+
})(exports.ForceDirection || (exports.ForceDirection = {}));
|
|
5797
|
+
|
|
5798
|
+
var DatePickerOptions = /** @class */ (function () {
|
|
5799
|
+
function DatePickerOptions() {
|
|
5800
|
+
/** to set type of view if DatePicker is Vertical or Horizontal */
|
|
5801
|
+
this.ViewType = exports.ControlLayout.Vertical;
|
|
5802
|
+
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5803
|
+
*/
|
|
5804
|
+
this.CustomValidation = [];
|
|
5805
|
+
/**To set First Day Of Week to DatePicker */
|
|
5806
|
+
this.FirstDayOfWeek = 1;
|
|
5807
|
+
/**To set PickerType to DatePicker is Calendar or Timer Or Both */
|
|
5808
|
+
this.PickerType = exports.PickerType.Calendar;
|
|
5809
|
+
/**To set StartView to DatePicker is Year or Month Or Multi-Year */
|
|
5810
|
+
this.StartView = exports.StartView.Month;
|
|
5811
|
+
/**To set SelectMode to DatePicker is Single or Range */
|
|
5812
|
+
this.SelectMode = exports.SelectMode.Single;
|
|
5813
|
+
this.ForceDirection = exports.ForceDirection.English;
|
|
5814
|
+
}
|
|
5815
|
+
return DatePickerOptions;
|
|
5816
|
+
}());
|
|
5817
|
+
|
|
5818
|
+
var DropdownOptions = /** @class */ (function () {
|
|
5819
|
+
function DropdownOptions() {
|
|
5820
|
+
/** Disable Bootstrap DropdownList */
|
|
5821
|
+
this.DisableBootstrapSelect = false;
|
|
5822
|
+
/** to set type of view if DropdownList is Vertical or Horizontal */
|
|
5823
|
+
this.ViewType = null;
|
|
5824
|
+
/** To Set Custom Validation*/
|
|
5825
|
+
this.CustomValidation = [];
|
|
5826
|
+
/** Set key for item in DropdownList */
|
|
5827
|
+
this.ItemTempletkey = "key";
|
|
5828
|
+
/** Set value for item in DropdownList */
|
|
5829
|
+
this.ItemTempletvalue = "value";
|
|
5830
|
+
this.ForceDirection = exports.ForceDirection.English;
|
|
5831
|
+
}
|
|
5832
|
+
return DropdownOptions;
|
|
5833
|
+
}());
|
|
5834
|
+
|
|
5835
|
+
var FileUploadOptions = /** @class */ (function () {
|
|
5836
|
+
function FileUploadOptions() {
|
|
5837
|
+
/** Ability to set FileInput required */
|
|
5838
|
+
this.IsMultipleFile = false;
|
|
5839
|
+
/** Sets boolean Value to Show IsDropZone Or Not */
|
|
5840
|
+
this.IsDropZone = false;
|
|
5841
|
+
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5842
|
+
*/
|
|
5843
|
+
this.CustomValidation = [];
|
|
5844
|
+
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5845
|
+
this.ViewType = null;
|
|
5846
|
+
}
|
|
5847
|
+
return FileUploadOptions;
|
|
5848
|
+
}());
|
|
5849
|
+
|
|
5850
|
+
var HtmlEditorOptions = /** @class */ (function () {
|
|
5851
|
+
function HtmlEditorOptions() {
|
|
5852
|
+
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5853
|
+
this.ViewType = null;
|
|
5854
|
+
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5855
|
+
*/
|
|
5856
|
+
this.CustomValidation = [];
|
|
5857
|
+
/** to set Direction of HtmlEditor if HtmlEditor is Arabic or English */
|
|
5858
|
+
this.ForceDirection = exports.ForceDirection.English;
|
|
5859
|
+
/** Set Height For */
|
|
5860
|
+
this.Height = 150;
|
|
5861
|
+
}
|
|
5862
|
+
return HtmlEditorOptions;
|
|
5863
|
+
}());
|
|
5864
|
+
|
|
5865
|
+
exports.ImageType = void 0;
|
|
5866
|
+
(function (ImageType) {
|
|
5867
|
+
ImageType["ImageTypes"] = "image/png,image/bmp,image/jpeg";
|
|
5868
|
+
ImageType["PNG"] = "image/png";
|
|
5869
|
+
ImageType["JPG"] = "image/jpeg";
|
|
5870
|
+
ImageType["JPEG"] = "image/jpeg";
|
|
5871
|
+
ImageType["SVG"] = "image/svg+xml";
|
|
5872
|
+
ImageType["None"] = "";
|
|
5873
|
+
})(exports.ImageType || (exports.ImageType = {}));
|
|
5874
|
+
|
|
5875
|
+
var ImageUploadOptions = /** @class */ (function () {
|
|
5876
|
+
function ImageUploadOptions() {
|
|
5877
|
+
/** Allow to Upload Multiple File */
|
|
5878
|
+
this.IsMultiple = false;
|
|
5879
|
+
/** Allow to Use Drop Zone */
|
|
5880
|
+
this.AllowDropZone = false;
|
|
5881
|
+
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5882
|
+
*/
|
|
5883
|
+
this.CustomValidation = [];
|
|
5884
|
+
/** to set type of view if FileInput is Vertical or Horizontal */
|
|
5885
|
+
this.ViewType = null;
|
|
5886
|
+
/** Set List of Custom Attribute to FileInput */
|
|
5887
|
+
this.FileUploadAcceptsTypes = [exports.ImageType.ImageTypes];
|
|
5888
|
+
}
|
|
5889
|
+
return ImageUploadOptions;
|
|
5890
|
+
}());
|
|
5891
|
+
|
|
5892
|
+
var MapAutoCompleteOptions = /** @class */ (function () {
|
|
5893
|
+
function MapAutoCompleteOptions() {
|
|
5894
|
+
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5895
|
+
*/
|
|
5896
|
+
this.CustomValidation = [];
|
|
5897
|
+
/** to set type of view if MapAutoComplete is Vertical or Horizontal */
|
|
5898
|
+
this.ViewType = null;
|
|
5899
|
+
}
|
|
5900
|
+
return MapAutoCompleteOptions;
|
|
5901
|
+
}());
|
|
5902
|
+
|
|
5903
|
+
var PhoneOptions = /** @class */ (function () {
|
|
5904
|
+
function PhoneOptions() {
|
|
5905
|
+
/**
|
|
5906
|
+
* Represent Css classes to Phonebox
|
|
5907
|
+
*/
|
|
5908
|
+
this.ExtraClasses = "form-control bnsights-control";
|
|
5909
|
+
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5910
|
+
*/
|
|
5911
|
+
this.CustomValidation = [];
|
|
5912
|
+
/**Set List Of Countries As Preferred Countries*/
|
|
5913
|
+
this.PreferredCountries = [];
|
|
5914
|
+
/** to set type of view if Phonebox is Vertical or Horizontal */
|
|
5915
|
+
this.ViewType = null;
|
|
5916
|
+
this.ForceDirection = exports.ForceDirection.English;
|
|
5917
|
+
}
|
|
5918
|
+
return PhoneOptions;
|
|
5919
|
+
}());
|
|
5920
|
+
|
|
5921
|
+
var RangeNumber = /** @class */ (function () {
|
|
5922
|
+
function RangeNumber() {
|
|
5923
|
+
}
|
|
5924
|
+
return RangeNumber;
|
|
5925
|
+
}());
|
|
5926
|
+
|
|
5927
|
+
var TextAreaOptions = /** @class */ (function () {
|
|
5928
|
+
function TextAreaOptions() {
|
|
5929
|
+
/** to set type of view if TextArea is Vertical or Horizontal */
|
|
5930
|
+
this.ViewType = null;
|
|
5931
|
+
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5932
|
+
*/
|
|
5933
|
+
this.CustomValidation = [];
|
|
5934
|
+
/** to set Direction of TextArea if TextArea is Arabic or English */
|
|
5935
|
+
this.ForceDirection = exports.ForceDirection.English;
|
|
5936
|
+
}
|
|
5937
|
+
return TextAreaOptions;
|
|
5938
|
+
}());
|
|
5939
|
+
|
|
5940
|
+
exports.IconPosition = void 0;
|
|
5941
|
+
(function (IconPosition) {
|
|
5942
|
+
IconPosition[IconPosition["left"] = 1] = "left";
|
|
5943
|
+
IconPosition[IconPosition["right"] = 2] = "right";
|
|
5944
|
+
})(exports.IconPosition || (exports.IconPosition = {}));
|
|
5945
|
+
|
|
5946
|
+
var TextBoxOptions = /** @class */ (function () {
|
|
5947
|
+
function TextBoxOptions() {
|
|
5948
|
+
/** set Range Number to Textbox with type number with From-Value and To-value*/
|
|
5949
|
+
this.NumberRange = new RangeNumber();
|
|
5950
|
+
/**Prevent AutoComplete of textbox*/
|
|
5951
|
+
this.AutoComplete = "off";
|
|
5952
|
+
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5953
|
+
this.ViewType = null;
|
|
5954
|
+
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5955
|
+
*/
|
|
5956
|
+
this.CustomValidation = [];
|
|
5957
|
+
/** to set Direction of textbox if textbox is Arabic or English */
|
|
5958
|
+
this.ForceDirection = null;
|
|
5959
|
+
/** Set Type of TextBox ("text","password","email","number") */
|
|
5960
|
+
this.Type = exports.InputType.Text;
|
|
5961
|
+
this.IconPosition = exports.IconPosition.left;
|
|
5962
|
+
this.NoMargin = false;
|
|
5963
|
+
this.ValidationRules = [];
|
|
5964
|
+
}
|
|
5965
|
+
return TextBoxOptions;
|
|
5966
|
+
}());
|
|
5967
|
+
|
|
5968
|
+
var ToggleSlideOptions = /** @class */ (function () {
|
|
5969
|
+
function ToggleSlideOptions() {
|
|
5970
|
+
this.ViewType = null;
|
|
5971
|
+
this.ForceDirection = exports.ForceDirection.English;
|
|
5972
|
+
}
|
|
5973
|
+
return ToggleSlideOptions;
|
|
5974
|
+
}());
|
|
5975
|
+
|
|
5976
|
+
var RenderComponentService = /** @class */ (function () {
|
|
5977
|
+
function RenderComponentService(componentFactoryResolver) {
|
|
5978
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
5979
|
+
}
|
|
5980
|
+
RenderComponentService.prototype.renderDynamicComponent = function (viewContainerRef, component, group, options) {
|
|
5981
|
+
var factory = this.componentFactoryResolver.resolveComponentFactory(component);
|
|
5982
|
+
var componentRef = viewContainerRef.createComponent(factory);
|
|
5983
|
+
componentRef.instance.group = group;
|
|
5984
|
+
componentRef.instance.options = options;
|
|
5985
|
+
};
|
|
5986
|
+
return RenderComponentService;
|
|
5987
|
+
}());
|
|
5988
|
+
RenderComponentService.decorators = [
|
|
5989
|
+
{ type: i0.Injectable }
|
|
5990
|
+
];
|
|
5991
|
+
RenderComponentService.ctorParameters = function () { return [
|
|
5992
|
+
{ type: i0.ComponentFactoryResolver }
|
|
5993
|
+
]; };
|
|
5994
|
+
|
|
5995
|
+
var RepeaterFieldBuilderComponent = /** @class */ (function () {
|
|
5996
|
+
function RepeaterFieldBuilderComponent(renderComponentService, TextControlHost) {
|
|
5997
|
+
this.renderComponentService = renderComponentService;
|
|
5998
|
+
this.TextControlHost = TextControlHost;
|
|
5999
|
+
}
|
|
6000
|
+
RepeaterFieldBuilderComponent.prototype.ngOnInit = function () {
|
|
6001
|
+
};
|
|
6002
|
+
RepeaterFieldBuilderComponent.prototype.ngAfterViewInit = function () {
|
|
6003
|
+
var _this = this;
|
|
6004
|
+
setTimeout(function () {
|
|
6005
|
+
_this.Item.clear();
|
|
6006
|
+
switch (_this.RepeaterField.ControlType) {
|
|
6007
|
+
///TextBox
|
|
6008
|
+
case exports.DataType.Text:
|
|
6009
|
+
var Text = new TextBoxOptions();
|
|
6010
|
+
Text.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6011
|
+
Text.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6012
|
+
Text.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6013
|
+
Text.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6014
|
+
Text.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6015
|
+
Text.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6016
|
+
Text.Type = exports.InputType.Text;
|
|
6017
|
+
if (_this.RepeaterField.ControlOptions.maxLength)
|
|
6018
|
+
Text.MaxLength = _this.RepeaterField.ControlOptions.maxLength;
|
|
6019
|
+
if (_this.RepeaterField.ControlOptions.minLength)
|
|
6020
|
+
Text.MinLength = _this.RepeaterField.ControlOptions.minLength;
|
|
6021
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, TextboxComponent, _this.group, Text);
|
|
6022
|
+
break;
|
|
6023
|
+
case exports.DataType.Name:
|
|
6024
|
+
var Name = new TextBoxOptions();
|
|
6025
|
+
Name.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6026
|
+
Name.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6027
|
+
Name.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6028
|
+
Name.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6029
|
+
Name.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6030
|
+
Name.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6031
|
+
if (_this.RepeaterField.ControlOptions.maxLength)
|
|
6032
|
+
Name.MaxLength = _this.RepeaterField.ControlOptions.maxLength;
|
|
6033
|
+
if (_this.RepeaterField.ControlOptions.minLength)
|
|
6034
|
+
Name.MinLength = _this.RepeaterField.ControlOptions.minLength;
|
|
6035
|
+
Name.Type = exports.InputType.Text;
|
|
6036
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, TextboxComponent, _this.group, Name);
|
|
6037
|
+
break;
|
|
6038
|
+
case exports.DataType.Email:
|
|
6039
|
+
var Email = new TextBoxOptions();
|
|
6040
|
+
Email.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6041
|
+
Email.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6042
|
+
Email.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6043
|
+
Email.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6044
|
+
Email.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6045
|
+
Email.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6046
|
+
Email.Type = exports.InputType.Email;
|
|
6047
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, TextboxComponent, _this.group, Email);
|
|
6048
|
+
break;
|
|
6049
|
+
case exports.DataType.Number:
|
|
6050
|
+
var Number = new TextBoxOptions();
|
|
6051
|
+
Number.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6052
|
+
Number.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6053
|
+
Number.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6054
|
+
Number.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6055
|
+
Number.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6056
|
+
Number.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6057
|
+
Number.Type = exports.InputType.Number;
|
|
6058
|
+
var rangeNumber = new RangeNumber();
|
|
6059
|
+
rangeNumber.To = _this.RepeaterField.ControlOptions.maxLength;
|
|
6060
|
+
rangeNumber.From = _this.RepeaterField.ControlOptions.minLength;
|
|
6061
|
+
Number.NumberRange = rangeNumber;
|
|
6062
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, TextboxComponent, _this.group, Number);
|
|
6063
|
+
break;
|
|
6064
|
+
///DateTime
|
|
6065
|
+
case exports.DataType.Date:
|
|
6066
|
+
var Date = new DatePickerOptions();
|
|
6067
|
+
Date.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6068
|
+
Date.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6069
|
+
Date.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6070
|
+
Date.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6071
|
+
Date.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6072
|
+
Date.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6073
|
+
Date.PickerType = exports.PickerType.Calendar;
|
|
6074
|
+
Date.SelectMode = exports.SelectMode.Single;
|
|
6075
|
+
Date.StartView = exports.StartView.Month;
|
|
6076
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, DateInputComponent, _this.group, Date);
|
|
6077
|
+
break;
|
|
6078
|
+
case exports.DataType.DateTime:
|
|
6079
|
+
var DateTime = new DatePickerOptions();
|
|
6080
|
+
DateTime.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6081
|
+
DateTime.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6082
|
+
DateTime.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6083
|
+
DateTime.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6084
|
+
DateTime.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6085
|
+
DateTime.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6086
|
+
DateTime.PickerType = exports.PickerType.Both;
|
|
6087
|
+
DateTime.SelectMode = exports.SelectMode.Single;
|
|
6088
|
+
DateTime.StartView = exports.StartView.Month;
|
|
6089
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, DateInputComponent, _this.group, DateTime);
|
|
6090
|
+
break;
|
|
6091
|
+
case exports.DataType.Time:
|
|
6092
|
+
var Time = new DatePickerOptions();
|
|
6093
|
+
Time.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6094
|
+
Time.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6095
|
+
Time.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6096
|
+
Time.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6097
|
+
Time.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6098
|
+
Time.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6099
|
+
Time.PickerType = exports.PickerType.Timer;
|
|
6100
|
+
Time.SelectMode = exports.SelectMode.Single;
|
|
6101
|
+
Time.StartView = exports.StartView.Month;
|
|
6102
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, DateInputComponent, _this.group, Time);
|
|
6103
|
+
break;
|
|
6104
|
+
//Dropdown
|
|
6105
|
+
case exports.DataType.SingleSelect:
|
|
6106
|
+
var SingleSelect = new DropdownOptions();
|
|
6107
|
+
SingleSelect.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6108
|
+
SingleSelect.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6109
|
+
SingleSelect.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6110
|
+
SingleSelect.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6111
|
+
SingleSelect.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6112
|
+
SingleSelect.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6113
|
+
SingleSelect.DataSource = _this.RepeaterField.ControlOptions.dataSource;
|
|
6114
|
+
SingleSelect.SingleSelection = true;
|
|
6115
|
+
SingleSelect.ShowCheckbox = false;
|
|
6116
|
+
SingleSelect.AllowSearchFilter = _this.RepeaterField.ControlOptions.hasSearch;
|
|
6117
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, DropdownListComponent, _this.group, SingleSelect);
|
|
6118
|
+
break;
|
|
6119
|
+
case exports.DataType.MulipleSelect:
|
|
6120
|
+
var MulipleSelect = new DropdownOptions();
|
|
6121
|
+
MulipleSelect.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6122
|
+
MulipleSelect.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6123
|
+
MulipleSelect.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6124
|
+
MulipleSelect.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6125
|
+
MulipleSelect.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6126
|
+
MulipleSelect.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6127
|
+
MulipleSelect.DataSource = _this.RepeaterField.ControlOptions.dataSource;
|
|
6128
|
+
MulipleSelect.SingleSelection = false;
|
|
6129
|
+
MulipleSelect.ShowCheckbox = false;
|
|
6130
|
+
MulipleSelect.AllowSearchFilter = _this.RepeaterField.ControlOptions.hasSearch;
|
|
6131
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, DropdownListComponent, _this.group, MulipleSelect);
|
|
6132
|
+
break;
|
|
6133
|
+
case exports.DataType.Goal:
|
|
6134
|
+
var Goal = new DropdownOptions();
|
|
6135
|
+
Goal.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6136
|
+
Goal.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6137
|
+
Goal.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6138
|
+
Goal.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6139
|
+
Goal.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6140
|
+
Goal.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6141
|
+
Goal.DataSource = _this.RepeaterField.ControlOptions.dataSource;
|
|
6142
|
+
Goal.SingleSelection = !_this.RepeaterField.ControlOptions.isMultiple;
|
|
6143
|
+
Goal.ShowCheckbox = false;
|
|
6144
|
+
Goal.AllowSearchFilter = _this.RepeaterField.ControlOptions.hasSearch;
|
|
6145
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, DropdownListComponent, _this.group, Goal);
|
|
6146
|
+
break;
|
|
6147
|
+
case exports.DataType.Challenge:
|
|
6148
|
+
var Challenge = new DropdownOptions();
|
|
6149
|
+
Challenge.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6150
|
+
Challenge.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6151
|
+
Challenge.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6152
|
+
Challenge.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6153
|
+
Challenge.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6154
|
+
Challenge.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6155
|
+
Challenge.DataSource = _this.RepeaterField.ControlOptions.dataSource;
|
|
6156
|
+
Challenge.DataSource = _this.RepeaterField.ControlOptions.dataSource;
|
|
6157
|
+
Challenge.SingleSelection = !_this.RepeaterField.ControlOptions.isMultiple;
|
|
6158
|
+
Challenge.ShowCheckbox = false;
|
|
6159
|
+
Challenge.AllowSearchFilter = _this.RepeaterField.ControlOptions.hasSearch;
|
|
6160
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, DropdownListComponent, _this.group, Challenge);
|
|
6161
|
+
break;
|
|
6162
|
+
case exports.DataType.InnovationLab:
|
|
6163
|
+
var InnovationLab = new DropdownOptions();
|
|
6164
|
+
InnovationLab.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6165
|
+
InnovationLab.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6166
|
+
InnovationLab.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6167
|
+
InnovationLab.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6168
|
+
InnovationLab.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6169
|
+
InnovationLab.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6170
|
+
InnovationLab.DataSource = _this.RepeaterField.ControlOptions.dataSource;
|
|
6171
|
+
InnovationLab.SingleSelection = !_this.RepeaterField.ControlOptions.isMultiple;
|
|
6172
|
+
InnovationLab.ShowCheckbox = false;
|
|
6173
|
+
InnovationLab.AllowSearchFilter = _this.RepeaterField.ControlOptions.hasSearch;
|
|
6174
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, DropdownListComponent, _this.group, InnovationLab);
|
|
6175
|
+
break;
|
|
6176
|
+
case exports.DataType.Country:
|
|
6177
|
+
var Country = new DropdownOptions();
|
|
6178
|
+
Country.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6179
|
+
Country.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6180
|
+
Country.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6181
|
+
Country.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6182
|
+
Country.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6183
|
+
Country.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6184
|
+
Country.DataSource = _this.RepeaterField.ControlOptions.dataSource;
|
|
6185
|
+
Country.SingleSelection = !_this.RepeaterField.ControlOptions.isMultiple;
|
|
6186
|
+
Country.ShowCheckbox = false;
|
|
6187
|
+
Country.AllowSearchFilter = _this.RepeaterField.ControlOptions.hasSearch;
|
|
6188
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, DropdownListComponent, _this.group, Country);
|
|
6189
|
+
break;
|
|
6190
|
+
//FileUpload
|
|
6191
|
+
case exports.DataType.File:
|
|
6192
|
+
var File = new FileUploadOptions();
|
|
6193
|
+
File.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6194
|
+
File.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6195
|
+
File.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6196
|
+
File.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6197
|
+
File.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6198
|
+
File.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6199
|
+
File.FileMaxSizeInMB = _this.RepeaterField.ControlOptions.maxFileSizeInMB;
|
|
6200
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, FileUploadComponent, _this.group, File);
|
|
6201
|
+
break;
|
|
6202
|
+
case exports.DataType.MultiFile:
|
|
6203
|
+
var MultiFile = new FileUploadOptions();
|
|
6204
|
+
File.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6205
|
+
File.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6206
|
+
File.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6207
|
+
File.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6208
|
+
File.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6209
|
+
File.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6210
|
+
MultiFile.MaxSizeForAllFilesInMB = _this.RepeaterField.ControlOptions.maxFileSizeInMB;
|
|
6211
|
+
MultiFile.MaxNoOfFiles = _this.RepeaterField.ControlOptions.maxFileCount;
|
|
6212
|
+
MultiFile.IsMultipleFile = true;
|
|
6213
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, FileUploadComponent, _this.group, MultiFile);
|
|
6214
|
+
break;
|
|
6215
|
+
//ImageUpload
|
|
6216
|
+
case exports.DataType.Image:
|
|
6217
|
+
var Image = new ImageUploadOptions();
|
|
6218
|
+
Image.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6219
|
+
Image.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6220
|
+
Image.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6221
|
+
Image.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6222
|
+
Image.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6223
|
+
Image.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6224
|
+
if (_this.RepeaterField.ControlOptions.maxFileSizeInMB)
|
|
6225
|
+
Image.FileMaxSizeInMB = _this.RepeaterField.ControlOptions.maxFileSizeInMB;
|
|
6226
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, ImageUploaderComponent, _this.group, Image);
|
|
6227
|
+
break;
|
|
6228
|
+
case exports.DataType.CoverPhoto:
|
|
6229
|
+
var CoverPhoto = new ImageUploadOptions();
|
|
6230
|
+
CoverPhoto.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6231
|
+
CoverPhoto.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6232
|
+
CoverPhoto.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6233
|
+
CoverPhoto.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6234
|
+
CoverPhoto.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6235
|
+
CoverPhoto.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6236
|
+
if (_this.RepeaterField.ControlOptions.maxFileSizeInMB)
|
|
6237
|
+
CoverPhoto.FileMaxSizeInMB = _this.RepeaterField.ControlOptions.maxFileSizeInMB;
|
|
6238
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, ImageUploaderComponent, _this.group, CoverPhoto);
|
|
6239
|
+
break;
|
|
6240
|
+
//Mobile
|
|
6241
|
+
case exports.DataType.Mobile:
|
|
6242
|
+
var Mobile = new PhoneOptions();
|
|
6243
|
+
Mobile.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6244
|
+
Mobile.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6245
|
+
Mobile.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6246
|
+
Mobile.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6247
|
+
Mobile.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6248
|
+
Mobile.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6249
|
+
Mobile.AllowSearch = true;
|
|
6250
|
+
Mobile.PhoneValidation = true;
|
|
6251
|
+
Mobile.SelectFirstCountry = true;
|
|
6252
|
+
Mobile.EnablePlaceholder = true;
|
|
6253
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, PhoneComponent, _this.group, Mobile);
|
|
6254
|
+
break;
|
|
6255
|
+
//MultilineText
|
|
6256
|
+
case exports.DataType.MultilineText:
|
|
6257
|
+
var MultilineText = new TextAreaOptions();
|
|
6258
|
+
MultilineText.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6259
|
+
MultilineText.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6260
|
+
MultilineText.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6261
|
+
MultilineText.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6262
|
+
MultilineText.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6263
|
+
MultilineText.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6264
|
+
if (_this.RepeaterField.ControlOptions.maxLength)
|
|
6265
|
+
MultilineText.MaxLength = _this.RepeaterField.ControlOptions.maxLength;
|
|
6266
|
+
if (_this.RepeaterField.ControlOptions.minLength)
|
|
6267
|
+
MultilineText.MinLength = _this.RepeaterField.ControlOptions.minLength;
|
|
6268
|
+
MultilineText.Rows = _this.RepeaterField.ControlOptions.rows;
|
|
6269
|
+
MultilineText.ForceDirection = _this.RepeaterField.ControlOptions.ForceDirection;
|
|
6270
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, TextAreaComponent, _this.group, MultilineText);
|
|
6271
|
+
break;
|
|
6272
|
+
//HTML
|
|
6273
|
+
case exports.DataType.HTML:
|
|
6274
|
+
var HTML = new HtmlEditorOptions();
|
|
6275
|
+
HTML.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6276
|
+
HTML.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6277
|
+
HTML.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6278
|
+
HTML.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6279
|
+
HTML.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6280
|
+
HTML.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6281
|
+
if (_this.RepeaterField.ControlOptions.maxLength)
|
|
6282
|
+
HTML.MaxLength = _this.RepeaterField.ControlOptions.maxLength;
|
|
6283
|
+
if (_this.RepeaterField.ControlOptions.minLength)
|
|
6284
|
+
HTML.MinLength = _this.RepeaterField.ControlOptions.minLength;
|
|
6285
|
+
HTML.Height = _this.RepeaterField.ControlOptions.rows;
|
|
6286
|
+
HTML.ForceDirection = _this.RepeaterField.ControlOptions.ForceDirection;
|
|
6287
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, HtmlEditorComponent, _this.group, HTML);
|
|
6288
|
+
break;
|
|
6289
|
+
//Boolean
|
|
6290
|
+
case exports.DataType.Boolean:
|
|
6291
|
+
var Boolean = new ToggleSlideOptions();
|
|
6292
|
+
Boolean.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6293
|
+
Boolean.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6294
|
+
Boolean.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6295
|
+
Boolean.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6296
|
+
Boolean.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6297
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, ToggleslideComponent, _this.group, Boolean);
|
|
6298
|
+
break;
|
|
6299
|
+
//Location
|
|
6300
|
+
case exports.DataType.Location:
|
|
6301
|
+
var Location = new MapAutoCompleteOptions();
|
|
6302
|
+
Location.Name = _this.RepeaterField.ControlOptions.Name + "." + _this.itemNumber.toString() + "." + _this.controlNumber.toString();
|
|
6303
|
+
Location.HideLabel = _this.RepeaterField.ControlOptions.HideLabel;
|
|
6304
|
+
Location.LabelKey = _this.RepeaterField.ControlOptions.LabelKey;
|
|
6305
|
+
Location.IsRequired = _this.RepeaterField.ControlOptions.IsRequired;
|
|
6306
|
+
Location.ViewType = _this.RepeaterField.ControlOptions.ViewType;
|
|
6307
|
+
Location.LabelDescription = _this.RepeaterField.ControlOptions.LabelDescription ? _this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6308
|
+
_this.renderComponentService.renderDynamicComponent(_this.Item, MapAutoCompleteComponent, _this.group, Location);
|
|
6309
|
+
break;
|
|
6310
|
+
default:
|
|
6311
|
+
break;
|
|
6312
|
+
}
|
|
6313
|
+
}, 0);
|
|
6314
|
+
};
|
|
6315
|
+
RepeaterFieldBuilderComponent.prototype.ngOnChanges = function (changes) {
|
|
6316
|
+
if (changes.itemNumber.previousValue) {
|
|
6317
|
+
var name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.previousValue.toString() + "." + this.controlNumber.toString();
|
|
6318
|
+
var value = this.group.controls[name].value;
|
|
6319
|
+
this.Item.clear();
|
|
6320
|
+
this.group.removeControl(name);
|
|
6321
|
+
switch (this.RepeaterField.ControlType) {
|
|
6322
|
+
///TextBox
|
|
6323
|
+
case exports.DataType.Text:
|
|
6324
|
+
var Text = new TextBoxOptions();
|
|
6325
|
+
Text.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6326
|
+
Text.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6327
|
+
Text.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6328
|
+
Text.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6329
|
+
Text.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6330
|
+
Text.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6331
|
+
Text.Type = exports.InputType.Text;
|
|
6332
|
+
if (this.RepeaterField.ControlOptions.maxLength)
|
|
6333
|
+
Text.MaxLength = this.RepeaterField.ControlOptions.maxLength;
|
|
6334
|
+
if (this.RepeaterField.ControlOptions.minLength)
|
|
6335
|
+
Text.MinLength = this.RepeaterField.ControlOptions.minLength;
|
|
6336
|
+
Text.Value = value;
|
|
6337
|
+
this.renderComponentService.renderDynamicComponent(this.Item, TextboxComponent, this.group, Text);
|
|
6338
|
+
break;
|
|
6339
|
+
case exports.DataType.Name:
|
|
6340
|
+
var Name = new TextBoxOptions();
|
|
6341
|
+
Name.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6342
|
+
Name.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6343
|
+
Name.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6344
|
+
Name.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6345
|
+
Name.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6346
|
+
Name.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6347
|
+
if (this.RepeaterField.ControlOptions.maxLength)
|
|
6348
|
+
Name.MaxLength = this.RepeaterField.ControlOptions.maxLength;
|
|
6349
|
+
if (this.RepeaterField.ControlOptions.minLength)
|
|
6350
|
+
Name.MinLength = this.RepeaterField.ControlOptions.minLength;
|
|
6351
|
+
Name.Type = exports.InputType.Text;
|
|
6352
|
+
Name.Value = value;
|
|
6353
|
+
this.renderComponentService.renderDynamicComponent(this.Item, TextboxComponent, this.group, Name);
|
|
6354
|
+
break;
|
|
6355
|
+
case exports.DataType.Email:
|
|
6356
|
+
var Email = new TextBoxOptions();
|
|
6357
|
+
Email.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6358
|
+
Email.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6359
|
+
Email.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6360
|
+
Email.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6361
|
+
Email.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6362
|
+
Email.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6363
|
+
Email.Type = exports.InputType.Email;
|
|
6364
|
+
Email.Value = value;
|
|
6365
|
+
this.renderComponentService.renderDynamicComponent(this.Item, TextboxComponent, this.group, Email);
|
|
6366
|
+
break;
|
|
6367
|
+
case exports.DataType.Number:
|
|
6368
|
+
var Number = new TextBoxOptions();
|
|
6369
|
+
Number.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6370
|
+
Number.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6371
|
+
Number.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6372
|
+
Number.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6373
|
+
Number.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6374
|
+
Number.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6375
|
+
Number.Type = exports.InputType.Number;
|
|
6376
|
+
var rangeNumber = new RangeNumber();
|
|
6377
|
+
rangeNumber.To = this.RepeaterField.ControlOptions.maxLength;
|
|
6378
|
+
rangeNumber.From = this.RepeaterField.ControlOptions.minLength;
|
|
6379
|
+
Number.NumberRange = rangeNumber;
|
|
6380
|
+
Number.Value = value;
|
|
6381
|
+
this.renderComponentService.renderDynamicComponent(this.Item, TextboxComponent, this.group, Number);
|
|
6382
|
+
break;
|
|
6383
|
+
///DateTime
|
|
6384
|
+
case exports.DataType.Date:
|
|
6385
|
+
var Date = new DatePickerOptions();
|
|
6386
|
+
Date.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6387
|
+
Date.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6388
|
+
Date.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6389
|
+
Date.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6390
|
+
Date.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6391
|
+
Date.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6392
|
+
Date.PickerType = exports.PickerType.Calendar;
|
|
6393
|
+
Date.SelectMode = exports.SelectMode.Single;
|
|
6394
|
+
Date.StartView = exports.StartView.Month;
|
|
6395
|
+
Date.Value = value;
|
|
6396
|
+
this.renderComponentService.renderDynamicComponent(this.Item, DateInputComponent, this.group, Date);
|
|
6397
|
+
break;
|
|
6398
|
+
case exports.DataType.DateTime:
|
|
6399
|
+
var DateTime = new DatePickerOptions();
|
|
6400
|
+
DateTime.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6401
|
+
DateTime.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6402
|
+
DateTime.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6403
|
+
DateTime.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6404
|
+
DateTime.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6405
|
+
DateTime.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6406
|
+
DateTime.PickerType = exports.PickerType.Both;
|
|
6407
|
+
DateTime.SelectMode = exports.SelectMode.Single;
|
|
6408
|
+
DateTime.StartView = exports.StartView.Month;
|
|
6409
|
+
DateTime.Value = value;
|
|
6410
|
+
this.renderComponentService.renderDynamicComponent(this.Item, DateInputComponent, this.group, DateTime);
|
|
6411
|
+
break;
|
|
6412
|
+
case exports.DataType.Time:
|
|
6413
|
+
var Time = new DatePickerOptions();
|
|
6414
|
+
Time.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6415
|
+
Time.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6416
|
+
Time.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6417
|
+
Time.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6418
|
+
Time.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6419
|
+
Time.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6420
|
+
Time.PickerType = exports.PickerType.Timer;
|
|
6421
|
+
Time.SelectMode = exports.SelectMode.Single;
|
|
6422
|
+
Time.StartView = exports.StartView.Month;
|
|
6423
|
+
Time.Value = value;
|
|
6424
|
+
this.renderComponentService.renderDynamicComponent(this.Item, DateInputComponent, this.group, Time);
|
|
6425
|
+
break;
|
|
6426
|
+
//Dropdown
|
|
6427
|
+
case exports.DataType.SingleSelect:
|
|
6428
|
+
var SingleSelect = new DropdownOptions();
|
|
6429
|
+
SingleSelect.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6430
|
+
SingleSelect.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6431
|
+
SingleSelect.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6432
|
+
SingleSelect.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6433
|
+
SingleSelect.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6434
|
+
SingleSelect.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6435
|
+
SingleSelect.DataSource = this.RepeaterField.ControlOptions.dataSource;
|
|
6436
|
+
SingleSelect.SingleSelection = true;
|
|
6437
|
+
SingleSelect.ShowCheckbox = false;
|
|
6438
|
+
SingleSelect.AllowSearchFilter = this.RepeaterField.ControlOptions.hasSearch;
|
|
6439
|
+
SingleSelect.SelectedItems = value;
|
|
6440
|
+
this.renderComponentService.renderDynamicComponent(this.Item, DropdownListComponent, this.group, SingleSelect);
|
|
6441
|
+
break;
|
|
6442
|
+
case exports.DataType.MulipleSelect:
|
|
6443
|
+
var MulipleSelect = new DropdownOptions();
|
|
6444
|
+
MulipleSelect.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6445
|
+
MulipleSelect.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6446
|
+
MulipleSelect.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6447
|
+
MulipleSelect.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6448
|
+
MulipleSelect.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6449
|
+
MulipleSelect.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6450
|
+
MulipleSelect.DataSource = this.RepeaterField.ControlOptions.dataSource;
|
|
6451
|
+
MulipleSelect.SingleSelection = false;
|
|
6452
|
+
MulipleSelect.ShowCheckbox = false;
|
|
6453
|
+
MulipleSelect.AllowSearchFilter = this.RepeaterField.ControlOptions.hasSearch;
|
|
6454
|
+
MulipleSelect.SelectedItems = value;
|
|
6455
|
+
this.renderComponentService.renderDynamicComponent(this.Item, DropdownListComponent, this.group, MulipleSelect);
|
|
6456
|
+
break;
|
|
6457
|
+
case exports.DataType.Goal:
|
|
6458
|
+
var Goal = new DropdownOptions();
|
|
6459
|
+
Goal.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6460
|
+
Goal.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6461
|
+
Goal.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6462
|
+
Goal.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6463
|
+
Goal.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6464
|
+
Goal.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6465
|
+
Goal.DataSource = this.RepeaterField.ControlOptions.dataSource;
|
|
6466
|
+
Goal.SingleSelection = !this.RepeaterField.ControlOptions.isMultiple;
|
|
6467
|
+
Goal.ShowCheckbox = false;
|
|
6468
|
+
Goal.AllowSearchFilter = this.RepeaterField.ControlOptions.hasSearch;
|
|
6469
|
+
Goal.SelectedItems = value;
|
|
6470
|
+
this.renderComponentService.renderDynamicComponent(this.Item, DropdownListComponent, this.group, Goal);
|
|
6471
|
+
break;
|
|
6472
|
+
case exports.DataType.Challenge:
|
|
6473
|
+
var Challenge = new DropdownOptions();
|
|
6474
|
+
Challenge.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6475
|
+
Challenge.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6476
|
+
Challenge.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6477
|
+
Challenge.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6478
|
+
Challenge.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6479
|
+
Challenge.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6480
|
+
Challenge.DataSource = this.RepeaterField.ControlOptions.dataSource;
|
|
6481
|
+
Challenge.DataSource = this.RepeaterField.ControlOptions.dataSource;
|
|
6482
|
+
Challenge.SingleSelection = !this.RepeaterField.ControlOptions.isMultiple;
|
|
6483
|
+
Challenge.ShowCheckbox = false;
|
|
6484
|
+
Challenge.AllowSearchFilter = this.RepeaterField.ControlOptions.hasSearch;
|
|
6485
|
+
Challenge.SelectedItems = value;
|
|
6486
|
+
this.renderComponentService.renderDynamicComponent(this.Item, DropdownListComponent, this.group, Challenge);
|
|
6487
|
+
break;
|
|
6488
|
+
case exports.DataType.InnovationLab:
|
|
6489
|
+
var InnovationLab = new DropdownOptions();
|
|
6490
|
+
InnovationLab.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6491
|
+
InnovationLab.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6492
|
+
InnovationLab.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6493
|
+
InnovationLab.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6494
|
+
InnovationLab.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6495
|
+
InnovationLab.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6496
|
+
InnovationLab.DataSource = this.RepeaterField.ControlOptions.dataSource;
|
|
6497
|
+
InnovationLab.SingleSelection = !this.RepeaterField.ControlOptions.isMultiple;
|
|
6498
|
+
InnovationLab.ShowCheckbox = false;
|
|
6499
|
+
InnovationLab.AllowSearchFilter = this.RepeaterField.ControlOptions.hasSearch;
|
|
6500
|
+
InnovationLab.SelectedItems = value;
|
|
6501
|
+
this.renderComponentService.renderDynamicComponent(this.Item, DropdownListComponent, this.group, InnovationLab);
|
|
6502
|
+
break;
|
|
6503
|
+
case exports.DataType.Country:
|
|
6504
|
+
var Country = new DropdownOptions();
|
|
6505
|
+
Country.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6506
|
+
Country.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6507
|
+
Country.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6508
|
+
Country.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6509
|
+
Country.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6510
|
+
Country.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6511
|
+
Country.DataSource = this.RepeaterField.ControlOptions.dataSource;
|
|
6512
|
+
Country.SingleSelection = !this.RepeaterField.ControlOptions.isMultiple;
|
|
6513
|
+
Country.ShowCheckbox = false;
|
|
6514
|
+
Country.AllowSearchFilter = this.RepeaterField.ControlOptions.hasSearch;
|
|
6515
|
+
Country.SelectedItems = value;
|
|
6516
|
+
this.renderComponentService.renderDynamicComponent(this.Item, DropdownListComponent, this.group, Country);
|
|
6517
|
+
break;
|
|
6518
|
+
//FileUpload
|
|
6519
|
+
case exports.DataType.File:
|
|
6520
|
+
var File = new FileUploadOptions();
|
|
6521
|
+
File.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6522
|
+
File.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6523
|
+
File.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6524
|
+
File.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6525
|
+
File.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6526
|
+
File.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6527
|
+
File.FileMaxSizeInMB = this.RepeaterField.ControlOptions.maxFileSizeInMB;
|
|
6528
|
+
File.Value = value;
|
|
6529
|
+
this.renderComponentService.renderDynamicComponent(this.Item, FileUploadComponent, this.group, File);
|
|
6530
|
+
break;
|
|
6531
|
+
case exports.DataType.MultiFile:
|
|
6532
|
+
var MultiFile = new FileUploadOptions();
|
|
6533
|
+
File.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6534
|
+
File.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6535
|
+
File.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6536
|
+
File.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6537
|
+
File.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6538
|
+
File.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6539
|
+
MultiFile.MaxSizeForAllFilesInMB = this.RepeaterField.ControlOptions.maxFileSizeInMB;
|
|
6540
|
+
MultiFile.MaxNoOfFiles = this.RepeaterField.ControlOptions.maxFileCount;
|
|
6541
|
+
MultiFile.IsMultipleFile = true;
|
|
6542
|
+
MultiFile.Value = value;
|
|
6543
|
+
this.renderComponentService.renderDynamicComponent(this.Item, FileUploadComponent, this.group, MultiFile);
|
|
6544
|
+
break;
|
|
6545
|
+
//ImageUpload
|
|
6546
|
+
case exports.DataType.Image:
|
|
6547
|
+
var Image = new ImageUploadOptions();
|
|
6548
|
+
Image.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6549
|
+
Image.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6550
|
+
Image.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6551
|
+
Image.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6552
|
+
Image.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6553
|
+
Image.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6554
|
+
if (this.RepeaterField.ControlOptions.maxFileSizeInMB)
|
|
6555
|
+
Image.FileMaxSizeInMB = this.RepeaterField.ControlOptions.maxFileSizeInMB;
|
|
6556
|
+
Image.Value = value;
|
|
6557
|
+
this.renderComponentService.renderDynamicComponent(this.Item, ImageUploaderComponent, this.group, Image);
|
|
6558
|
+
break;
|
|
6559
|
+
case exports.DataType.CoverPhoto:
|
|
6560
|
+
var CoverPhoto = new ImageUploadOptions();
|
|
6561
|
+
CoverPhoto.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6562
|
+
CoverPhoto.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6563
|
+
CoverPhoto.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6564
|
+
CoverPhoto.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6565
|
+
CoverPhoto.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6566
|
+
CoverPhoto.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6567
|
+
if (this.RepeaterField.ControlOptions.maxFileSizeInMB)
|
|
6568
|
+
CoverPhoto.FileMaxSizeInMB = this.RepeaterField.ControlOptions.maxFileSizeInMB;
|
|
6569
|
+
CoverPhoto.Value = value;
|
|
6570
|
+
this.renderComponentService.renderDynamicComponent(this.Item, ImageUploaderComponent, this.group, CoverPhoto);
|
|
6571
|
+
break;
|
|
6572
|
+
//Mobile
|
|
6573
|
+
case exports.DataType.Mobile:
|
|
6574
|
+
var Mobile = new PhoneOptions();
|
|
6575
|
+
Mobile.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6576
|
+
Mobile.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6577
|
+
Mobile.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6578
|
+
Mobile.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6579
|
+
Mobile.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6580
|
+
Mobile.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6581
|
+
Mobile.AllowSearch = true;
|
|
6582
|
+
Mobile.PhoneValidation = true;
|
|
6583
|
+
Mobile.SelectFirstCountry = true;
|
|
6584
|
+
Mobile.EnablePlaceholder = true;
|
|
6585
|
+
Mobile.Value = value;
|
|
6586
|
+
this.renderComponentService.renderDynamicComponent(this.Item, PhoneComponent, this.group, Mobile);
|
|
6587
|
+
break;
|
|
6588
|
+
//MultilineText
|
|
6589
|
+
case exports.DataType.MultilineText:
|
|
6590
|
+
var MultilineText = new TextAreaOptions();
|
|
6591
|
+
MultilineText.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6592
|
+
MultilineText.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6593
|
+
MultilineText.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6594
|
+
MultilineText.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6595
|
+
MultilineText.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6596
|
+
MultilineText.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6597
|
+
if (this.RepeaterField.ControlOptions.maxLength)
|
|
6598
|
+
MultilineText.MaxLength = this.RepeaterField.ControlOptions.maxLength;
|
|
6599
|
+
if (this.RepeaterField.ControlOptions.minLength)
|
|
6600
|
+
MultilineText.MinLength = this.RepeaterField.ControlOptions.minLength;
|
|
6601
|
+
MultilineText.Rows = this.RepeaterField.ControlOptions.rows;
|
|
6602
|
+
MultilineText.ForceDirection = this.RepeaterField.ControlOptions.ForceDirection;
|
|
6603
|
+
MultilineText.Value = value;
|
|
6604
|
+
this.renderComponentService.renderDynamicComponent(this.Item, TextAreaComponent, this.group, MultilineText);
|
|
6605
|
+
break;
|
|
6606
|
+
//HTML
|
|
6607
|
+
case exports.DataType.HTML:
|
|
6608
|
+
var HTML = new HtmlEditorOptions();
|
|
6609
|
+
HTML.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6610
|
+
HTML.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6611
|
+
HTML.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6612
|
+
HTML.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6613
|
+
HTML.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6614
|
+
HTML.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6615
|
+
if (this.RepeaterField.ControlOptions.maxLength)
|
|
6616
|
+
HTML.MaxLength = this.RepeaterField.ControlOptions.maxLength;
|
|
6617
|
+
if (this.RepeaterField.ControlOptions.minLength)
|
|
6618
|
+
HTML.MinLength = this.RepeaterField.ControlOptions.minLength;
|
|
6619
|
+
HTML.Height = this.RepeaterField.ControlOptions.rows;
|
|
6620
|
+
HTML.ForceDirection = this.RepeaterField.ControlOptions.ForceDirection;
|
|
6621
|
+
HTML.Value = value;
|
|
6622
|
+
this.renderComponentService.renderDynamicComponent(this.Item, HtmlEditorComponent, this.group, HTML);
|
|
6623
|
+
break;
|
|
6624
|
+
//Boolean
|
|
6625
|
+
case exports.DataType.Boolean:
|
|
6626
|
+
var Boolean = new ToggleSlideOptions();
|
|
6627
|
+
Boolean.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6628
|
+
Boolean.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6629
|
+
Boolean.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6630
|
+
Boolean.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6631
|
+
Boolean.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6632
|
+
Boolean.Value = value;
|
|
6633
|
+
this.renderComponentService.renderDynamicComponent(this.Item, ToggleslideComponent, this.group, Boolean);
|
|
6634
|
+
break;
|
|
6635
|
+
//Location
|
|
6636
|
+
case exports.DataType.Location:
|
|
6637
|
+
var Location = new MapAutoCompleteOptions();
|
|
6638
|
+
Location.Name = this.RepeaterField.ControlOptions.Name + "." + changes.itemNumber.currentValue + "." + this.controlNumber.toString();
|
|
6639
|
+
Location.HideLabel = this.RepeaterField.ControlOptions.HideLabel;
|
|
6640
|
+
Location.LabelKey = this.RepeaterField.ControlOptions.LabelKey;
|
|
6641
|
+
Location.IsRequired = this.RepeaterField.ControlOptions.IsRequired;
|
|
6642
|
+
Location.ViewType = this.RepeaterField.ControlOptions.ViewType;
|
|
6643
|
+
Location.LabelDescription = this.RepeaterField.ControlOptions.LabelDescription ? this.RepeaterField.ControlOptions.LabelDescription : "";
|
|
6644
|
+
Location.Value = value;
|
|
6645
|
+
this.renderComponentService.renderDynamicComponent(this.Item, MapAutoCompleteComponent, this.group, Location);
|
|
6646
|
+
break;
|
|
6647
|
+
default:
|
|
6648
|
+
break;
|
|
6649
|
+
}
|
|
6650
|
+
}
|
|
6651
|
+
};
|
|
6652
|
+
return RepeaterFieldBuilderComponent;
|
|
6653
|
+
}());
|
|
6654
|
+
RepeaterFieldBuilderComponent.decorators = [
|
|
6655
|
+
{ type: i0.Component, args: [{
|
|
6656
|
+
selector: 'repeater-field-builder',
|
|
6657
|
+
template: "<ng-container #Item></ng-container>\r\n"
|
|
6658
|
+
},] }
|
|
6659
|
+
];
|
|
6660
|
+
RepeaterFieldBuilderComponent.ctorParameters = function () { return [
|
|
6661
|
+
{ type: RenderComponentService },
|
|
6662
|
+
{ type: forms.FormGroupDirective }
|
|
6663
|
+
]; };
|
|
6664
|
+
RepeaterFieldBuilderComponent.propDecorators = {
|
|
6665
|
+
Item: [{ type: i0.ViewChild, args: ["Item", { read: i0.ViewContainerRef },] }],
|
|
6666
|
+
group: [{ type: i0.Input }],
|
|
6667
|
+
itemNumber: [{ type: i0.Input }],
|
|
6668
|
+
controlNumber: [{ type: i0.Input }],
|
|
6669
|
+
RepeaterField: [{ type: i0.Input }]
|
|
6670
|
+
};
|
|
6671
|
+
|
|
6672
|
+
var RepeaterItemFieldComponent = /** @class */ (function () {
|
|
6673
|
+
function RepeaterItemFieldComponent() {
|
|
6674
|
+
}
|
|
6675
|
+
RepeaterItemFieldComponent.prototype.ngOnInit = function () {
|
|
6676
|
+
};
|
|
6677
|
+
return RepeaterItemFieldComponent;
|
|
6678
|
+
}());
|
|
6679
|
+
RepeaterItemFieldComponent.decorators = [
|
|
6680
|
+
{ type: i0.Component, args: [{
|
|
6681
|
+
selector: 'repeater-item-field',
|
|
6682
|
+
template: "<ng-container *ngFor=\"let template of templates ; index as i\">\r\n <ng-container *ngIf=\"i==filedIndex\" [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext] ={itemIndex:itemIndex,controlIndex:i}></ng-container>\r\n </ng-container>",
|
|
6683
|
+
styles: [""]
|
|
6684
|
+
},] }
|
|
6685
|
+
];
|
|
6686
|
+
RepeaterItemFieldComponent.ctorParameters = function () { return []; };
|
|
6687
|
+
RepeaterItemFieldComponent.propDecorators = {
|
|
6688
|
+
templates: [{ type: i0.Input }],
|
|
6689
|
+
filedIndex: [{ type: i0.Input }],
|
|
6690
|
+
itemIndex: [{ type: i0.Input }]
|
|
6691
|
+
};
|
|
6692
|
+
|
|
5612
6693
|
var options;
|
|
5613
6694
|
exports.AppInjector = void 0;
|
|
5614
6695
|
angular.FullCalendarModule.registerPlugins([
|
|
@@ -5652,7 +6733,11 @@
|
|
|
5652
6733
|
JwPaginationComponent,
|
|
5653
6734
|
RadioButtonComponent,
|
|
5654
6735
|
FormComponent,
|
|
5655
|
-
ConfirmationModalComponent
|
|
6736
|
+
ConfirmationModalComponent,
|
|
6737
|
+
RepeaterComponent,
|
|
6738
|
+
RepeaterFieldBuilderComponent,
|
|
6739
|
+
NgTemplateNameDirective,
|
|
6740
|
+
RepeaterItemFieldComponent,
|
|
5656
6741
|
],
|
|
5657
6742
|
imports: [
|
|
5658
6743
|
common.CommonModule,
|
|
@@ -5707,17 +6792,12 @@
|
|
|
5707
6792
|
ErrorMassageValidation,
|
|
5708
6793
|
ControlUtility,
|
|
5709
6794
|
OnPagingFiltersChangeService,
|
|
5710
|
-
// EnvironmentService,
|
|
5711
|
-
// AuthService,
|
|
5712
|
-
// RequestHandlerService,
|
|
5713
|
-
// UtilityService,
|
|
5714
6795
|
core$1.TranslateService,
|
|
5715
|
-
// BBSFTranslateService,
|
|
5716
|
-
// ControlValidationService,
|
|
5717
6796
|
forms.FormGroupDirective,
|
|
5718
6797
|
ngBootstrap.NgbModal,
|
|
5719
6798
|
ngBootstrap.NgbActiveModal,
|
|
5720
6799
|
common.DatePipe,
|
|
6800
|
+
RenderComponentService,
|
|
5721
6801
|
{ provide: ngPickDatetime.OWL_DATE_TIME_LOCALE, useValue: ɵ0 },
|
|
5722
6802
|
],
|
|
5723
6803
|
schemas: [
|
|
@@ -5747,7 +6827,11 @@
|
|
|
5747
6827
|
RadioButtonComponent,
|
|
5748
6828
|
FormComponent,
|
|
5749
6829
|
PagingComponent,
|
|
5750
|
-
ConfirmationModalComponent
|
|
6830
|
+
ConfirmationModalComponent,
|
|
6831
|
+
RepeaterComponent,
|
|
6832
|
+
RepeaterFieldBuilderComponent,
|
|
6833
|
+
NgTemplateNameDirective,
|
|
6834
|
+
RepeaterItemFieldComponent,
|
|
5751
6835
|
]
|
|
5752
6836
|
},] }
|
|
5753
6837
|
];
|
|
@@ -5788,81 +6872,6 @@
|
|
|
5788
6872
|
return CustomValidator;
|
|
5789
6873
|
}());
|
|
5790
6874
|
|
|
5791
|
-
exports.ForceDirection = void 0;
|
|
5792
|
-
(function (ForceDirection) {
|
|
5793
|
-
ForceDirection[ForceDirection["English"] = 1] = "English";
|
|
5794
|
-
ForceDirection[ForceDirection["Arabic"] = 2] = "Arabic";
|
|
5795
|
-
})(exports.ForceDirection || (exports.ForceDirection = {}));
|
|
5796
|
-
|
|
5797
|
-
var DatePickerOptions = /** @class */ (function () {
|
|
5798
|
-
function DatePickerOptions() {
|
|
5799
|
-
/** to set type of view if DatePicker is Vertical or Horizontal */
|
|
5800
|
-
this.ViewType = exports.ControlLayout.Vertical;
|
|
5801
|
-
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5802
|
-
*/
|
|
5803
|
-
this.CustomValidation = [];
|
|
5804
|
-
/**To set First Day Of Week to DatePicker */
|
|
5805
|
-
this.FirstDayOfWeek = 1;
|
|
5806
|
-
/**To set PickerType to DatePicker is Calendar or Timer Or Both */
|
|
5807
|
-
this.PickerType = exports.PickerType.Calendar;
|
|
5808
|
-
/**To set StartView to DatePicker is Year or Month Or Multi-Year */
|
|
5809
|
-
this.StartView = exports.StartView.Month;
|
|
5810
|
-
/**To set SelectMode to DatePicker is Single or Range */
|
|
5811
|
-
this.SelectMode = exports.SelectMode.Single;
|
|
5812
|
-
this.ForceDirection = exports.ForceDirection.English;
|
|
5813
|
-
}
|
|
5814
|
-
return DatePickerOptions;
|
|
5815
|
-
}());
|
|
5816
|
-
|
|
5817
|
-
var RangeNumber = /** @class */ (function () {
|
|
5818
|
-
function RangeNumber() {
|
|
5819
|
-
}
|
|
5820
|
-
return RangeNumber;
|
|
5821
|
-
}());
|
|
5822
|
-
|
|
5823
|
-
exports.IconPosition = void 0;
|
|
5824
|
-
(function (IconPosition) {
|
|
5825
|
-
IconPosition[IconPosition["left"] = 1] = "left";
|
|
5826
|
-
IconPosition[IconPosition["right"] = 2] = "right";
|
|
5827
|
-
})(exports.IconPosition || (exports.IconPosition = {}));
|
|
5828
|
-
|
|
5829
|
-
var TextBoxOptions = /** @class */ (function () {
|
|
5830
|
-
function TextBoxOptions() {
|
|
5831
|
-
/** set Range Number to Textbox with type number with From-Value and To-value*/
|
|
5832
|
-
this.NumberRange = new RangeNumber();
|
|
5833
|
-
/**Prevent AutoComplete of textbox*/
|
|
5834
|
-
this.AutoComplete = "off";
|
|
5835
|
-
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5836
|
-
this.ViewType = null;
|
|
5837
|
-
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5838
|
-
*/
|
|
5839
|
-
this.CustomValidation = [];
|
|
5840
|
-
/** to set Direction of textbox if textbox is Arabic or English */
|
|
5841
|
-
this.ForceDirection = null;
|
|
5842
|
-
/** Set Type of TextBox ("text","password","email","number") */
|
|
5843
|
-
this.Type = exports.InputType.Text;
|
|
5844
|
-
this.IconPosition = exports.IconPosition.left;
|
|
5845
|
-
this.NoMargin = false;
|
|
5846
|
-
this.ValidationRules = [];
|
|
5847
|
-
}
|
|
5848
|
-
return TextBoxOptions;
|
|
5849
|
-
}());
|
|
5850
|
-
|
|
5851
|
-
var FileUploadOptions = /** @class */ (function () {
|
|
5852
|
-
function FileUploadOptions() {
|
|
5853
|
-
/** Ability to set FileInput required */
|
|
5854
|
-
this.IsMultipleFile = false;
|
|
5855
|
-
/** Sets boolean Value to Show IsDropZone Or Not */
|
|
5856
|
-
this.IsDropZone = false;
|
|
5857
|
-
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5858
|
-
*/
|
|
5859
|
-
this.CustomValidation = [];
|
|
5860
|
-
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5861
|
-
this.ViewType = null;
|
|
5862
|
-
}
|
|
5863
|
-
return FileUploadOptions;
|
|
5864
|
-
}());
|
|
5865
|
-
|
|
5866
6875
|
var MultiLingualTextBoxOptions = /** @class */ (function () {
|
|
5867
6876
|
function MultiLingualTextBoxOptions() {
|
|
5868
6877
|
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
@@ -5888,19 +6897,6 @@
|
|
|
5888
6897
|
return Attribute;
|
|
5889
6898
|
}());
|
|
5890
6899
|
|
|
5891
|
-
var TextAreaOptions = /** @class */ (function () {
|
|
5892
|
-
function TextAreaOptions() {
|
|
5893
|
-
/** to set type of view if TextArea is Vertical or Horizontal */
|
|
5894
|
-
this.ViewType = null;
|
|
5895
|
-
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5896
|
-
*/
|
|
5897
|
-
this.CustomValidation = [];
|
|
5898
|
-
/** to set Direction of TextArea if TextArea is Arabic or English */
|
|
5899
|
-
this.ForceDirection = exports.ForceDirection.English;
|
|
5900
|
-
}
|
|
5901
|
-
return TextAreaOptions;
|
|
5902
|
-
}());
|
|
5903
|
-
|
|
5904
6900
|
var MultiLingualTextAreaOptions = /** @class */ (function () {
|
|
5905
6901
|
function MultiLingualTextAreaOptions() {
|
|
5906
6902
|
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
@@ -5936,64 +6932,6 @@
|
|
|
5936
6932
|
return DropdownListItem;
|
|
5937
6933
|
}());
|
|
5938
6934
|
|
|
5939
|
-
var DropdownOptions = /** @class */ (function () {
|
|
5940
|
-
function DropdownOptions() {
|
|
5941
|
-
/** Disable Bootstrap DropdownList */
|
|
5942
|
-
this.DisableBootstrapSelect = false;
|
|
5943
|
-
/** to set type of view if DropdownList is Vertical or Horizontal */
|
|
5944
|
-
this.ViewType = null;
|
|
5945
|
-
/** To Set Custom Validation*/
|
|
5946
|
-
this.CustomValidation = [];
|
|
5947
|
-
/** Set key for item in DropdownList */
|
|
5948
|
-
this.ItemTempletkey = "key";
|
|
5949
|
-
/** Set value for item in DropdownList */
|
|
5950
|
-
this.ItemTempletvalue = "value";
|
|
5951
|
-
this.ForceDirection = exports.ForceDirection.English;
|
|
5952
|
-
}
|
|
5953
|
-
return DropdownOptions;
|
|
5954
|
-
}());
|
|
5955
|
-
|
|
5956
|
-
var PhoneOptions = /** @class */ (function () {
|
|
5957
|
-
function PhoneOptions() {
|
|
5958
|
-
/**
|
|
5959
|
-
* Represent Css classes to Phonebox
|
|
5960
|
-
*/
|
|
5961
|
-
this.ExtraClasses = "form-control bnsights-control";
|
|
5962
|
-
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5963
|
-
*/
|
|
5964
|
-
this.CustomValidation = [];
|
|
5965
|
-
/**Set List Of Countries As Preferred Countries*/
|
|
5966
|
-
this.PreferredCountries = [];
|
|
5967
|
-
/** to set type of view if Phonebox is Vertical or Horizontal */
|
|
5968
|
-
this.ViewType = null;
|
|
5969
|
-
this.ForceDirection = exports.ForceDirection.English;
|
|
5970
|
-
}
|
|
5971
|
-
return PhoneOptions;
|
|
5972
|
-
}());
|
|
5973
|
-
|
|
5974
|
-
var ToggleSlideOptions = /** @class */ (function () {
|
|
5975
|
-
function ToggleSlideOptions() {
|
|
5976
|
-
this.ViewType = null;
|
|
5977
|
-
this.ForceDirection = exports.ForceDirection.English;
|
|
5978
|
-
}
|
|
5979
|
-
return ToggleSlideOptions;
|
|
5980
|
-
}());
|
|
5981
|
-
|
|
5982
|
-
var HtmlEditorOptions = /** @class */ (function () {
|
|
5983
|
-
function HtmlEditorOptions() {
|
|
5984
|
-
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5985
|
-
this.ViewType = null;
|
|
5986
|
-
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5987
|
-
*/
|
|
5988
|
-
this.CustomValidation = [];
|
|
5989
|
-
/** to set Direction of HtmlEditor if HtmlEditor is Arabic or English */
|
|
5990
|
-
this.ForceDirection = exports.ForceDirection.English;
|
|
5991
|
-
/** Set Height For */
|
|
5992
|
-
this.Height = 150;
|
|
5993
|
-
}
|
|
5994
|
-
return HtmlEditorOptions;
|
|
5995
|
-
}());
|
|
5996
|
-
|
|
5997
6935
|
var MultiLingualHtmlEditorOptions = /** @class */ (function () {
|
|
5998
6936
|
function MultiLingualHtmlEditorOptions() {
|
|
5999
6937
|
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
@@ -6011,33 +6949,6 @@
|
|
|
6011
6949
|
return MultiLingualHtmlEditorOptions;
|
|
6012
6950
|
}());
|
|
6013
6951
|
|
|
6014
|
-
exports.ImageType = void 0;
|
|
6015
|
-
(function (ImageType) {
|
|
6016
|
-
ImageType["ImageTypes"] = "image/png,image/bmp,image/jpeg";
|
|
6017
|
-
ImageType["PNG"] = "image/png";
|
|
6018
|
-
ImageType["JPG"] = "image/jpeg";
|
|
6019
|
-
ImageType["JPEG"] = "image/jpeg";
|
|
6020
|
-
ImageType["SVG"] = "image/svg+xml";
|
|
6021
|
-
ImageType["None"] = "";
|
|
6022
|
-
})(exports.ImageType || (exports.ImageType = {}));
|
|
6023
|
-
|
|
6024
|
-
var ImageUploadOptions = /** @class */ (function () {
|
|
6025
|
-
function ImageUploadOptions() {
|
|
6026
|
-
/** Allow to Upload Multiple File */
|
|
6027
|
-
this.IsMultiple = false;
|
|
6028
|
-
/** Allow to Use Drop Zone */
|
|
6029
|
-
this.AllowDropZone = false;
|
|
6030
|
-
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
6031
|
-
*/
|
|
6032
|
-
this.CustomValidation = [];
|
|
6033
|
-
/** to set type of view if FileInput is Vertical or Horizontal */
|
|
6034
|
-
this.ViewType = null;
|
|
6035
|
-
/** Set List of Custom Attribute to FileInput */
|
|
6036
|
-
this.FileUploadAcceptsTypes = [exports.ImageType.ImageTypes];
|
|
6037
|
-
}
|
|
6038
|
-
return ImageUploadOptions;
|
|
6039
|
-
}());
|
|
6040
|
-
|
|
6041
6952
|
var ProfileImageUploadOptions = /** @class */ (function () {
|
|
6042
6953
|
function ProfileImageUploadOptions() {
|
|
6043
6954
|
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
@@ -6107,17 +7018,6 @@
|
|
|
6107
7018
|
return CalendarEventDTO;
|
|
6108
7019
|
}());
|
|
6109
7020
|
|
|
6110
|
-
var MapAutoCompleteOptions = /** @class */ (function () {
|
|
6111
|
-
function MapAutoCompleteOptions() {
|
|
6112
|
-
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
6113
|
-
*/
|
|
6114
|
-
this.CustomValidation = [];
|
|
6115
|
-
/** to set type of view if MapAutoComplete is Vertical or Horizontal */
|
|
6116
|
-
this.ViewType = null;
|
|
6117
|
-
}
|
|
6118
|
-
return MapAutoCompleteOptions;
|
|
6119
|
-
}());
|
|
6120
|
-
|
|
6121
7021
|
var AutocompleteOptions = /** @class */ (function () {
|
|
6122
7022
|
function AutocompleteOptions() {
|
|
6123
7023
|
/**
|
|
@@ -6328,6 +7228,23 @@
|
|
|
6328
7228
|
return ConfirmationModalOptions;
|
|
6329
7229
|
}());
|
|
6330
7230
|
|
|
7231
|
+
var RepeaterField = /** @class */ (function () {
|
|
7232
|
+
function RepeaterField() {
|
|
7233
|
+
}
|
|
7234
|
+
return RepeaterField;
|
|
7235
|
+
}());
|
|
7236
|
+
|
|
7237
|
+
var RepeaterOptions = /** @class */ (function () {
|
|
7238
|
+
function RepeaterOptions() {
|
|
7239
|
+
this.MinRequiredItems = 1;
|
|
7240
|
+
this.AddButtonText = "Add";
|
|
7241
|
+
this.DeleteButtonText = "Delete";
|
|
7242
|
+
this.RepeaterValue = [];
|
|
7243
|
+
this.RepeaterStructure = [];
|
|
7244
|
+
}
|
|
7245
|
+
return RepeaterOptions;
|
|
7246
|
+
}());
|
|
7247
|
+
|
|
6331
7248
|
exports.MenuListType = void 0;
|
|
6332
7249
|
(function (MenuListType) {
|
|
6333
7250
|
MenuListType[MenuListType["AdminType"] = 1] = "AdminType";
|
|
@@ -6697,6 +7614,7 @@
|
|
|
6697
7614
|
exports.MultiLingualTextBoxComponent = MultiLingualTextBoxComponent;
|
|
6698
7615
|
exports.MultiLingualTextBoxOptions = MultiLingualTextBoxOptions;
|
|
6699
7616
|
exports.MultipleFileUploadModel = MultipleFileUploadModel;
|
|
7617
|
+
exports.NgTemplateNameDirective = NgTemplateNameDirective;
|
|
6700
7618
|
exports.OnPagingFiltersChangeService = OnPagingFiltersChangeService;
|
|
6701
7619
|
exports.PagingComponent = PagingComponent;
|
|
6702
7620
|
exports.PagingDTO = PagingDTO;
|
|
@@ -6710,6 +7628,12 @@
|
|
|
6710
7628
|
exports.RadioButtonItem = RadioButtonItem;
|
|
6711
7629
|
exports.RadioButtonOptions = RadioButtonOptions;
|
|
6712
7630
|
exports.RangeNumber = RangeNumber;
|
|
7631
|
+
exports.RenderComponentService = RenderComponentService;
|
|
7632
|
+
exports.RepeaterComponent = RepeaterComponent;
|
|
7633
|
+
exports.RepeaterField = RepeaterField;
|
|
7634
|
+
exports.RepeaterFieldBuilderComponent = RepeaterFieldBuilderComponent;
|
|
7635
|
+
exports.RepeaterItemFieldComponent = RepeaterItemFieldComponent;
|
|
7636
|
+
exports.RepeaterOptions = RepeaterOptions;
|
|
6713
7637
|
exports.SaveDTO = SaveDTO;
|
|
6714
7638
|
exports.TagsInputComponent = TagsInputComponent;
|
|
6715
7639
|
exports.TagsInputDTO = TagsInputDTO;
|