@bnsights/bbsf-controls 1.0.51 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/bnsights-bbsf-controls-1.0.54.tgz +0 -0
- package/bnsights-bbsf-controls.metadata.json +1 -1
- package/bundles/bnsights-bbsf-controls.umd.js +72 -30
- package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
- package/esm2015/lib/Shared/Enums/FileType.js +2 -2
- package/esm2015/lib/Shared/Models/ConfirmationModalOptions.js +3 -1
- package/esm2015/lib/Shared/Models/DropdownOptions.js +1 -1
- package/esm2015/lib/Shared/Models/MapAutocompleteDTO.js +4 -1
- package/esm2015/lib/Shared/Models/MultilingualControlOptionsBase.js +1 -1
- package/esm2015/lib/Shared/default_intl.js +5 -1
- package/esm2015/lib/controls/ConfirmationModal/ConfirmationModal.component.js +3 -4
- package/esm2015/lib/controls/DropdownList/DropdownList.component.js +2 -2
- package/esm2015/lib/controls/MapAutoComplete/MapAutoComplete.component.js +9 -2
- package/esm2015/lib/controls/MultiLingualHtmlEditor/MultiLingualHtmlEditor.component.js +11 -5
- package/esm2015/lib/controls/MultiLingualTextArea/MultiLingualTextArea.component.js +11 -5
- package/esm2015/lib/controls/MultiLingualTextBox/MultiLingualTextBox.component.js +11 -5
- package/esm2015/lib/controls/Repeater/repeater/repeater.component.js +2 -2
- package/esm2015/lib/controls/TagsInput/TagsInput.component.js +23 -12
- package/fesm2015/bnsights-bbsf-controls.js +74 -30
- package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
- package/lib/Shared/Enums/FileType.d.ts +1 -1
- package/lib/Shared/Models/ConfirmationModalOptions.d.ts +1 -0
- package/lib/Shared/Models/DropdownOptions.d.ts +2 -0
- package/lib/Shared/Models/MultilingualControlOptionsBase.d.ts +2 -0
- package/lib/Shared/default_intl.d.ts +4 -0
- package/package.json +2 -2
- package/bnsights-bbsf-controls-1.0.51.tgz +0 -0
|
@@ -706,6 +706,10 @@
|
|
|
706
706
|
_this.rangeFromLabel = _this.utilityService.getResourceValue("From");
|
|
707
707
|
/** A label for the range 'to' in picker info */
|
|
708
708
|
_this.rangeToLabel = _this.utilityService.getResourceValue("To");
|
|
709
|
+
/** A label for the cancel button */
|
|
710
|
+
_this.cancelBtnLabel = _this.utilityService.getResourceValue("Cancel");
|
|
711
|
+
/** A label for the set button */
|
|
712
|
+
_this.setBtnLabel = _this.utilityService.getResourceValue("Set");
|
|
709
713
|
return _this;
|
|
710
714
|
}
|
|
711
715
|
return DefaultIntl;
|
|
@@ -1437,10 +1441,16 @@
|
|
|
1437
1441
|
this.options.MultiControlPlacementType = this.globalSettings.MultiControlPlacementType;
|
|
1438
1442
|
if (!this.options.MaxLength)
|
|
1439
1443
|
this.options.MaxLength = this.globalSettings.MaxLengthTextBox;
|
|
1440
|
-
if (this.options.
|
|
1441
|
-
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
+
if (this.options.LabelKey != null && this.options.LabelKey != "") {
|
|
1445
|
+
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.LabelKey) + " " + this.UtilityService.getResourceValue("InArabic");
|
|
1446
|
+
this.options.EnglishLabelValue = this.UtilityService.getResourceValue(this.options.LabelKey) + " " + this.UtilityService.getResourceValue("InEnglish");
|
|
1447
|
+
}
|
|
1448
|
+
else {
|
|
1449
|
+
if (this.options.ArabicLabelKey != null && this.options.ArabicLabelKey != "")
|
|
1450
|
+
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.ArabicLabelKey);
|
|
1451
|
+
if (this.options.EnglishLabelKey != null && this.options.EnglishLabelKey != "")
|
|
1452
|
+
this.options.EnglishLabelValue = this.UtilityService.getResourceValue(this.options.EnglishLabelKey);
|
|
1453
|
+
}
|
|
1444
1454
|
if (this.options.CustomValidation.length > 0) {
|
|
1445
1455
|
Validations = this.options.CustomValidation;
|
|
1446
1456
|
for (index = 0; index < Validations.length; index++) {
|
|
@@ -2038,10 +2048,16 @@
|
|
|
2038
2048
|
this.options.MultiControlPlacementType = this.globalSettings.MultiControlPlacementType;
|
|
2039
2049
|
if (!this.options.MaxLength)
|
|
2040
2050
|
this.options.MaxLength = this.globalSettings.MaxLengthTextArea;
|
|
2041
|
-
if (this.options.
|
|
2042
|
-
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.
|
|
2043
|
-
|
|
2044
|
-
|
|
2051
|
+
if (this.options.LabelKey != null && this.options.LabelKey != "") {
|
|
2052
|
+
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.LabelKey) + " " + this.UtilityService.getResourceValue("InArabic");
|
|
2053
|
+
this.options.EnglishLabelValue = this.UtilityService.getResourceValue(this.options.LabelKey) + " " + this.UtilityService.getResourceValue("InEnglish");
|
|
2054
|
+
}
|
|
2055
|
+
else {
|
|
2056
|
+
if (this.options.ArabicLabelKey != null && this.options.ArabicLabelKey != "")
|
|
2057
|
+
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.ArabicLabelKey);
|
|
2058
|
+
if (this.options.EnglishLabelKey != null && this.options.EnglishLabelKey != "")
|
|
2059
|
+
this.options.EnglishLabelValue = this.UtilityService.getResourceValue(this.options.EnglishLabelKey);
|
|
2060
|
+
}
|
|
2045
2061
|
this.MultiLanguageTextAreagroup = new forms.FormGroup({});
|
|
2046
2062
|
this.MultiLanguageTextAreagroup.addControl("Arabic", new forms.FormControl(''));
|
|
2047
2063
|
this.MultiLanguageTextAreagroup.addControl("English", new forms.FormControl(''));
|
|
@@ -2634,7 +2650,7 @@
|
|
|
2634
2650
|
{ type: i0.Component, args: [{
|
|
2635
2651
|
// tslint:disable-next-line: component-selector
|
|
2636
2652
|
selector: 'BBSF-DropdownList',
|
|
2637
|
-
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]=\"options.NotFoundText\" [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()\" (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
|
|
2653
|
+
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]=\"options.NotFoundText\" [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()\" (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 <div title=\"{{item.disabled ? options.DisabledItemsTooltipValue : ''}}\">\r\n <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-select>\r\n\r\n <select *ngIf=\"options.DisableBootstrapSelect\" class=\"form-control bnsights-control\"\r\n dir=\"{{options.ForceDirection==2?'rtl':''}}\" (change)=\"onItemSelect()\" [(ngModel)]=\"options.SelectedItems\" [disabled]=\"options.IsDisabled\" formControlName=\"{{options.Name}}\">\r\n <option value=\"\" disabled>--{{UtilityService.getResourceValue(\"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",
|
|
2638
2654
|
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"]
|
|
2639
2655
|
},] }
|
|
2640
2656
|
];
|
|
@@ -3289,10 +3305,16 @@
|
|
|
3289
3305
|
this.EnglishValidationRules.push(forms.Validators.maxLength(this.options.MaxLength));
|
|
3290
3306
|
this.ArabicValidationRules.push(forms.Validators.maxLength(this.options.MaxLength));
|
|
3291
3307
|
}
|
|
3292
|
-
if (this.options.
|
|
3293
|
-
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.
|
|
3294
|
-
|
|
3295
|
-
|
|
3308
|
+
if (this.options.LabelKey != null && this.options.LabelKey != "") {
|
|
3309
|
+
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.LabelKey) + " " + this.UtilityService.getResourceValue("InArabic");
|
|
3310
|
+
this.options.EnglishLabelValue = this.UtilityService.getResourceValue(this.options.LabelKey) + " " + this.UtilityService.getResourceValue("InEnglish");
|
|
3311
|
+
}
|
|
3312
|
+
else {
|
|
3313
|
+
if (this.options.ArabicLabelKey != null && this.options.ArabicLabelKey != "")
|
|
3314
|
+
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.ArabicLabelKey);
|
|
3315
|
+
if (this.options.EnglishLabelKey != null && this.options.EnglishLabelKey != "")
|
|
3316
|
+
this.options.EnglishLabelValue = this.UtilityService.getResourceValue(this.options.EnglishLabelKey);
|
|
3317
|
+
}
|
|
3296
3318
|
this.showInputUsingLanguageMode();
|
|
3297
3319
|
this.ArabicValidationRules.push(forms.Validators.compose([
|
|
3298
3320
|
this.controlUtility.patternValidator(/^[\u0621-\u064A\u0660-\u0669 ]+$/, { ArabicLetterOnly: this.ArabicLetterOnly }),
|
|
@@ -4507,6 +4529,9 @@
|
|
|
4507
4529
|
// this.group.addControl(this.options.Name, new FormControl(''));
|
|
4508
4530
|
// this.TagInputControl = this.group.controls[this.options.Name]; // new FormControl('',validationRules);
|
|
4509
4531
|
this.TagsFormControl.setValue(this.options.Value);
|
|
4532
|
+
if (this.options.IsRequired) {
|
|
4533
|
+
this.validationRules.push(forms.Validators.required);
|
|
4534
|
+
}
|
|
4510
4535
|
if (this.options.CustomValidation.length > 0) {
|
|
4511
4536
|
var Validations = this.options.CustomValidation;
|
|
4512
4537
|
for (var index = 0; index < Validations.length; index++) {
|
|
@@ -4514,9 +4539,6 @@
|
|
|
4514
4539
|
this.validationRules.push(Validation.functionBody);
|
|
4515
4540
|
}
|
|
4516
4541
|
}
|
|
4517
|
-
if (this.options.IsRequired) {
|
|
4518
|
-
this.validationRules.push(forms.Validators.required);
|
|
4519
|
-
}
|
|
4520
4542
|
this.TagsFormControl.setValidators(this.validationRules);
|
|
4521
4543
|
this.TagsFormControl.setAsyncValidators(this.validationRulesasync);
|
|
4522
4544
|
if (this.options.IsDisabled) {
|
|
@@ -4525,7 +4547,7 @@
|
|
|
4525
4547
|
if (this.options.Value != undefined && this.options.Value != []) {
|
|
4526
4548
|
for (var index = 0; index < this.options.Value.length; index++) {
|
|
4527
4549
|
var element = this.options.Value[index];
|
|
4528
|
-
this.SelectedId.push(element.
|
|
4550
|
+
this.SelectedId.push(element.id);
|
|
4529
4551
|
}
|
|
4530
4552
|
this.tags = this.options.Value;
|
|
4531
4553
|
this.TagsFormControl.setValue(this.options.Value);
|
|
@@ -4559,7 +4581,7 @@
|
|
|
4559
4581
|
this.controlUtility.CopyInputMessage(inputElement);
|
|
4560
4582
|
};
|
|
4561
4583
|
TagsInputComponent.prototype.searchFunctionFactory = function (Text) {
|
|
4562
|
-
var Url = this.options.ActionURL + "?" + this.options.QueryParamName + "=" + Text + "&" + this.options.SelectedItemsParamName + "=" + this.SelectedId;
|
|
4584
|
+
var Url = this.options.ActionURL + "?" + this.options.QueryParamName + "=" + encodeURIComponent(Text) + "&" + this.options.SelectedItemsParamName + "=" + this.SelectedId;
|
|
4563
4585
|
if (this.options.ExtraFilters)
|
|
4564
4586
|
Url = Url + ("&" + this.options.ExtraFilters);
|
|
4565
4587
|
var requestOptionsModel = new bbsfUtilities.RequestOptionsModel();
|
|
@@ -4569,7 +4591,7 @@
|
|
|
4569
4591
|
return Model;
|
|
4570
4592
|
};
|
|
4571
4593
|
TagsInputComponent.prototype.AddTag = function (event, key) {
|
|
4572
|
-
if (this.IsNoMatch == true && this.options.AllowNewSelection == false &&
|
|
4594
|
+
if (this.IsNoMatch == true && this.options.AllowNewSelection == false && key.selected) {
|
|
4573
4595
|
this.TagsFormControl.setErrors({ "errorMassage": this.options.NoResultText });
|
|
4574
4596
|
this.TagsFormControl.markAsTouched();
|
|
4575
4597
|
this.TagsFormControl.invalid;
|
|
@@ -4581,28 +4603,39 @@
|
|
|
4581
4603
|
}
|
|
4582
4604
|
else if (this.IsNoMatch == true && event == "Enter" && this.options.AllowNewSelection && key.selected) {
|
|
4583
4605
|
if (!(this.tags.length >= this.options.MaxNumberTags)) {
|
|
4584
|
-
this.tags.push({
|
|
4585
|
-
|
|
4606
|
+
this.tags.push({ name: key.selected });
|
|
4607
|
+
this.group.get(this.options.Name).setValue(this.tags);
|
|
4608
|
+
this.group.get(this.options.Name).markAllAsTouched();
|
|
4609
|
+
this.group.updateValueAndValidity();
|
|
4610
|
+
if (this.group.get(this.options.Name).valid) {
|
|
4611
|
+
key.selected = null;
|
|
4612
|
+
return;
|
|
4613
|
+
}
|
|
4614
|
+
else
|
|
4615
|
+
this.tags.pop();
|
|
4586
4616
|
}
|
|
4587
4617
|
}
|
|
4588
4618
|
};
|
|
4589
4619
|
TagsInputComponent.prototype.onTagsChanged = function (result) {
|
|
4590
4620
|
//console.log(this.tags)
|
|
4591
4621
|
if (result["change"] == "add") {
|
|
4592
|
-
this.SelectedId.push(result.tag.
|
|
4622
|
+
this.SelectedId.push(result.tag.id);
|
|
4593
4623
|
}
|
|
4594
4624
|
if (result["change"] == "remove") {
|
|
4595
|
-
this.SelectedId = this.SelectedId.filter(function (item) { return item != result.tag.
|
|
4625
|
+
this.SelectedId = this.SelectedId.filter(function (item) { return item != result.tag.id; });
|
|
4596
4626
|
if (this.SelectedId.length == 0 && this.options.IsRequired == true) {
|
|
4597
4627
|
this.TagsFormControl.setErrors({ required: "" });
|
|
4598
4628
|
this.TagsFormControl.markAsTouched();
|
|
4599
4629
|
this.TagsFormControl.invalid;
|
|
4600
4630
|
}
|
|
4601
4631
|
}
|
|
4602
|
-
var originalValue = this.TagsFormControl.value.map(function (a) { return a.
|
|
4632
|
+
var originalValue = this.TagsFormControl.value.map(function (a) { return a.id; });
|
|
4603
4633
|
if (this.options.PatchFunction && this.options.PatchPath && this.TagsFormControl.valid) {
|
|
4604
4634
|
this.controlUtility.patchControlValue(originalValue, this.options.PatchFunction, this.options.PatchPath);
|
|
4605
4635
|
}
|
|
4636
|
+
this.group.get(this.options.Name).setValue(this.tags);
|
|
4637
|
+
this.TagsFormControl.updateValueAndValidity();
|
|
4638
|
+
this.group.updateValueAndValidity();
|
|
4606
4639
|
this.OnChange.emit(originalValue);
|
|
4607
4640
|
};
|
|
4608
4641
|
TagsInputComponent.prototype.onNoOptionsMatch = function (event) {
|
|
@@ -5453,6 +5486,7 @@
|
|
|
5453
5486
|
|
|
5454
5487
|
var MapAutocompleteDTO = /** @class */ (function () {
|
|
5455
5488
|
function MapAutocompleteDTO() {
|
|
5489
|
+
this.Text = null;
|
|
5456
5490
|
}
|
|
5457
5491
|
return MapAutocompleteDTO;
|
|
5458
5492
|
}());
|
|
@@ -5735,6 +5769,13 @@
|
|
|
5735
5769
|
}
|
|
5736
5770
|
};
|
|
5737
5771
|
MapAutoCompleteComponent.prototype.GermanAddressMapped = function (result) {
|
|
5772
|
+
if (result.type) {
|
|
5773
|
+
if (result.target.value == "") {
|
|
5774
|
+
this.MapAutoCompleteFormControl.setValue(result);
|
|
5775
|
+
this.group.controls[this.options.Name].setValue(result);
|
|
5776
|
+
}
|
|
5777
|
+
return;
|
|
5778
|
+
}
|
|
5738
5779
|
this.MapAutoCompleteModel == new MapAutocompleteDTO();
|
|
5739
5780
|
this.MapAutoCompleteModel.Text = result.displayAddress;
|
|
5740
5781
|
this.MapAutoCompleteModel.PlaceID = result.placeID;
|
|
@@ -5751,7 +5792,7 @@
|
|
|
5751
5792
|
MapAutoCompleteComponent.decorators = [
|
|
5752
5793
|
{ type: i0.Component, args: [{
|
|
5753
5794
|
selector: 'BBSF-MapAutoComplete',
|
|
5754
|
-
template: "<div class=\"b-control b-map-auto-complete\">\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'\"
|
|
5795
|
+
template: "<div class=\"b-control b-map-auto-complete\">\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 <div class=\"col-sm-12\" [ngClass]=\"(options.ViewType==1)?'':'col-md-9'\">\r\n <input class=\"form-control bnsights-control {{options.ExtraClasses}} \" [value]=\"MapAutoCompleteModel.Text\"\r\n [address]=\"MapAutoCompleteModel.Text\" value=\"{{MapAutoCompleteModel.Text}}\" aria-describedby=\"email-error\"\r\n aria-invalid=\"true\"\r\n [class.is-invalid]=\"MapAutoCompleteFormControl.invalid && MapAutoCompleteFormControl.touched\"\r\n placeholder=\"{{options.Placeholder}}\" id=\"{{options.Name}}\" (keyup)=\"GermanAddressMapped($event)\"\r\n matGoogleMapsAutocomplete #search (onAutocompleteSelected)=\"AutocompleteSelected($event)\"\r\n (onLocationSelected)=\"LocationSelected($event)\" (onGermanAddressMapped)=\"GermanAddressMapped($event)\" />\r\n <div class=\"text-danger Required-text\"\r\n *ngIf=\"(MapAutoCompleteFormControl.invalid && MapAutoCompleteFormControl.touched)\">\r\n {{getErrorValidation(MapAutoCompleteFormControl.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 text-dark\">{{options.LabelDescription}}</div>\r\n </div>\r\n\r\n <div *ngIf=\"(group.valid&&group.dirty&&group.touched )||(group.untouched&&group.invalid&&group.dirty) \">\r\n {{resetError()}}</div>\r\n\r\n </div>\r\n </div>\r\n</div>",
|
|
5755
5796
|
styles: [".example-form{min-width:150px;max-width:500px;width:100%}.example-full-width{width:100%}.flip_V{transform:scaleY(-1)}\n"]
|
|
5756
5797
|
},] }
|
|
5757
5798
|
];
|
|
@@ -6129,12 +6170,11 @@
|
|
|
6129
6170
|
//Modal confirmation submit function
|
|
6130
6171
|
ConfirmationModalComponent.prototype.submit = function () {
|
|
6131
6172
|
var _this = this;
|
|
6132
|
-
console.log("options in submit function");
|
|
6133
|
-
console.log(this.options);
|
|
6134
6173
|
var submitModel = this.options.ServiceSubmitModel;
|
|
6135
6174
|
var submittedService = this.options.ServiceSubmitFunction.apply(null, submitModel);
|
|
6136
6175
|
submittedService.subscribe(function (result) {
|
|
6137
|
-
_this.
|
|
6176
|
+
if (!_this.options.DisableModalDismiss)
|
|
6177
|
+
_this.modalService.dismissAll();
|
|
6138
6178
|
if (!_this.options.DisableSuccessNotification) {
|
|
6139
6179
|
if (!_this.options.SuccessNotificationMessage)
|
|
6140
6180
|
_this.options.SuccessNotificationMessage = _this.utilityService.getResourceValue("DeletedSuccessfully");
|
|
@@ -6307,7 +6347,7 @@
|
|
|
6307
6347
|
this.items = this.items.filter(function (res) { return res != _this.items[Index]; });
|
|
6308
6348
|
};
|
|
6309
6349
|
RepeaterComponent.prototype.addItem = function () {
|
|
6310
|
-
this.items.push(this.items
|
|
6350
|
+
this.items.push(this.items.length);
|
|
6311
6351
|
};
|
|
6312
6352
|
RepeaterComponent.prototype.ngAfterViewInit = function () {
|
|
6313
6353
|
var templateRefs = this._templates["_results"].map(function (item) { return item["template"]; });
|
|
@@ -8168,6 +8208,8 @@
|
|
|
8168
8208
|
this.DisableSuccessNotification = false;
|
|
8169
8209
|
//If ="true" disable notification after submission error
|
|
8170
8210
|
this.DisableErrorNotification = false;
|
|
8211
|
+
//If ="true" disable prevent modal from dismiss automatically
|
|
8212
|
+
this.DisableModalDismiss = false;
|
|
8171
8213
|
}
|
|
8172
8214
|
return ConfirmationModalOptions;
|
|
8173
8215
|
}());
|
|
@@ -8485,7 +8527,7 @@
|
|
|
8485
8527
|
exports.FileType = void 0;
|
|
8486
8528
|
(function (FileType) {
|
|
8487
8529
|
FileType["PDF"] = "application/pdf";
|
|
8488
|
-
FileType["Word"] = "application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
|
8530
|
+
FileType["Word"] = "application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
8489
8531
|
FileType["Excel"] = "application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
8490
8532
|
FileType["ImageTypes"] = "image/png,image/bmp,image/jpeg";
|
|
8491
8533
|
FileType["PNG"] = "image/png";
|