@bnsights/bbsf-controls 1.0.37 → 1.0.40
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 +8 -0
- package/bnsights-bbsf-controls-1.0.40.tgz +0 -0
- package/bnsights-bbsf-controls.metadata.json +1 -1
- package/bundles/bnsights-bbsf-controls.umd.js +28 -38
- package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
- package/esm2015/lib/Shared/Enums/Enums.js +23 -36
- package/esm2015/lib/controls/ImageUpload/ImageUpload.component.js +5 -2
- package/esm2015/lib/controls/MultiLingualTextBox/MultiLingualTextBox.component.js +3 -3
- package/fesm2015/bnsights-bbsf-controls.js +29 -39
- package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
- package/lib/Shared/Enums/Enums.d.ts +22 -33
- package/lib/controls/ImageUpload/ImageUpload.component.d.ts +1 -0
- package/package.json +2 -2
- package/bnsights-bbsf-controls-1.0.37.tgz +0 -0
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
this.CurrentLanguage = translate.currentLang != undefined ? translate.currentLang : translate.defaultLang;
|
|
1358
1358
|
}
|
|
1359
1359
|
MultiLingualTextBoxComponent.prototype.getCustomErrorsMassages = function () {
|
|
1360
|
-
this.ArabicLetterOnly = this.UtilityService.getResourceValue("
|
|
1360
|
+
this.ArabicLetterOnly = this.UtilityService.getResourceValue("VAL_ArabicIsRequiredAndOnly50CharactersEnglish");
|
|
1361
1361
|
this.EnglishLetterOnly = this.UtilityService.getResourceValue("EnglishLetterOnly");
|
|
1362
1362
|
};
|
|
1363
1363
|
MultiLingualTextBoxComponent.prototype.ngOnInit = function () {
|
|
@@ -1417,7 +1417,7 @@
|
|
|
1417
1417
|
}
|
|
1418
1418
|
this.showInputUsingLanguageMode();
|
|
1419
1419
|
this.ArabicValidationRules.push(forms.Validators.compose([
|
|
1420
|
-
this.controlUtility.arabicValidator({
|
|
1420
|
+
this.controlUtility.arabicValidator({ ArabicLetterOnly: this.ArabicLetterOnly }),
|
|
1421
1421
|
]));
|
|
1422
1422
|
this.EnglishValidationRules.push(forms.Validators.compose([
|
|
1423
1423
|
this.controlUtility.patternValidator(/^[\x00-\x7F]*$/, { EnglishLetterOnly: this.EnglishLetterOnly }),
|
|
@@ -3446,6 +3446,7 @@
|
|
|
3446
3446
|
this.markAllAsTouched = false;
|
|
3447
3447
|
this.validationRules = [];
|
|
3448
3448
|
this.validationRulesasync = [];
|
|
3449
|
+
this.maxFileSize = 0;
|
|
3449
3450
|
this.resetError = function () {
|
|
3450
3451
|
_this.controlValidationService.RemoveGlobalError();
|
|
3451
3452
|
};
|
|
@@ -3518,6 +3519,8 @@
|
|
|
3518
3519
|
});
|
|
3519
3520
|
this.uploader.addToQueue([this.FileLikeObject]);
|
|
3520
3521
|
}
|
|
3522
|
+
if (this.options.FileMaxSizeInMB)
|
|
3523
|
+
this.maxFileSize = this.options.FileMaxSizeInMB * 1000 * 1000;
|
|
3521
3524
|
if (this.options.FileUploadAcceptsTypes != null && this.options.FileUploadAcceptsTypes.length > 0) {
|
|
3522
3525
|
for (var index = 0; index < this.options.FileUploadAcceptsTypes.length; index++) {
|
|
3523
3526
|
var Type = this.options.FileUploadAcceptsTypes[index];
|
|
@@ -3726,7 +3729,7 @@
|
|
|
3726
3729
|
ImageUploaderComponent.decorators = [
|
|
3727
3730
|
{ type: i0.Component, args: [{
|
|
3728
3731
|
selector: 'BBSF-ImageUpload',
|
|
3729
|
-
template: "<div class=\"b-control b-image-upload\">\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'\" [hidden]=\"options.HideLabel\">\r\n {{options.LabelValue}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\" class=\"text-danger Required-text\" aria-required=\"true\">* </span>\r\n\r\n <ejs-tooltip id=\"tooltip\" content='{{ValidationMessage}}' tipPointerPosition='Middle'>\r\n <i class=\"fa fa-info-circle\" data-plugin=\"tooltip\" data-html=\"true\">\r\n </i>\r\n </ejs-tooltip>\r\n </label>\r\n\r\n <div class=\"col-sm-12\" [ngClass]=\"(options.ViewType==1)?'':'col-md-9'\">\r\n\r\n <div *ngIf=\"options.AllowDropZone\" style=\"max-width:200px !important; max-height: 200px !important;\" class=\"d-inline-flex h-auto w-auto overflow-hidden m-0 {{options.ExtraClasses}}\" ngx-dropzone [disabled]=\"options.IsDisabled\" [accept]=\"AcceptedType\" [multiple]=\"options.IsMultiple\"\r\n (change)=\"onFileChange($event)\" aria-describedby=\"email-error\" aria-invalid=\"true\" ngDefaultControl formControlName=\"{{options.Name}}\" [maxFileSize]=\"
|
|
3732
|
+
template: "<div class=\"b-control b-image-upload\">\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'\" [hidden]=\"options.HideLabel\">\r\n {{options.LabelValue}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\" class=\"text-danger Required-text\" aria-required=\"true\">* </span>\r\n\r\n <ejs-tooltip id=\"tooltip\" content='{{ValidationMessage}}' tipPointerPosition='Middle'>\r\n <i class=\"fa fa-info-circle\" data-plugin=\"tooltip\" data-html=\"true\">\r\n </i>\r\n </ejs-tooltip>\r\n </label>\r\n\r\n <div class=\"col-sm-12\" [ngClass]=\"(options.ViewType==1)?'':'col-md-9'\">\r\n\r\n <div *ngIf=\"options.AllowDropZone\" style=\"max-width:200px !important; max-height: 200px !important;\" class=\"d-inline-flex h-auto w-auto overflow-hidden m-0 {{options.ExtraClasses}}\" ngx-dropzone [disabled]=\"options.IsDisabled\" [accept]=\"AcceptedType\" [multiple]=\"options.IsMultiple\"\r\n (change)=\"onFileChange($event)\" aria-describedby=\"email-error\" aria-invalid=\"true\" ngDefaultControl formControlName=\"{{options.Name}}\" [maxFileSize]=\"maxFileSize\"\r\n id=\"{{options.Name}}\" [class.is-invalid]=\"ImageUploadFormControl.invalid && ImageUploadFormControl.touched\">\r\n <ngx-dropzone-label class=\"h-100 m-0\" style=\"max-width: 200px !important;\">\r\n <div class=\"h-100\">\r\n <img [src]=\"ImageSource\" class=\"h-100 w-100\" />\r\n </div>\r\n </ngx-dropzone-label>\r\n\r\n\r\n <ngx-dropzone-image-preview style=\"max-width:200px !important; max-height: 200px !important;\" *ngFor=\"let f of files\" [file]=\"f\" [removable]=\"true\" (removed)=\"removeFromControlValue(f)\"\r\n ngProjectAs=\"ngx-dropzone-preview\" class=\"b-img-preview w-100 h-100 m-0\">\r\n </ngx-dropzone-image-preview>\r\n </div>\r\n\r\n <div class=\"ImageUploadClassSelector\" *ngIf=\"!options.AllowDropZone\">\r\n <ngx-dropzone-label class=\"h-100 m-0\" *ngIf=\"files.length==0\">\r\n <div style=\"max-width:200px !important; max-height: 200px !important;\" class=\"h-100 file-fake-input\" #element (click)=\"showImageUploader(element)\">\r\n <img [src]=\"ImageSource\" class=\"h-100 w-100\" />\r\n </div>\r\n </ngx-dropzone-label>\r\n\r\n <div style=\"border: none !important; max-width:200px !important; max-height: 200px !important;\" class=\" fileSelector customImageUploadPlacment d-inline-flex h-auto w-auto overflow-hidden m-0 {{options.ExtraClasses}}\" ngx-dropzone [disabled]=\"options.IsDisabled\" [accept]=\"AcceptedType\" [multiple]=\"options.IsMultiple\"\r\n (change)=\"onFileChange($event)\" aria-describedby=\"email-error\" aria-invalid=\"true\" ngDefaultControl formControlName=\"{{options.Name}}\" [maxFileSize]=\"maxFileSize\"\r\n id=\"{{options.Name}}\" [class.is-invalid]=\"ImageUploadFormControl.invalid && ImageUploadFormControl.touched\">\r\n\r\n\r\n\r\n <ngx-dropzone-image-preview style=\"max-width:200px !important; max-height: 200px !important;\" *ngFor=\"let f of files\" [file]=\"f\" [removable]=\"true\" (removed)=\"removeFromControlValue(f)\"\r\n ngProjectAs=\"ngx-dropzone-preview\" class=\"b-img-preview w-100 h-100 m-0\">\r\n </ngx-dropzone-image-preview>\r\n </div>\r\n </div>\r\n\r\n\r\n <div id=\"mdlSample\" class=\"modal fade\" role=\"dialog\" style=\"z-index: 11 !important ;\"\r\n [ngStyle]=\"{'display': mdlSampleIsOpen ? 'block' : 'none', 'opacity': 1}\">\r\n <div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h4 class=\"modal-title\">\r\n {{UtilityService.getResourceValue(\"CropImage\")}}\r\n </h4>\r\n <button type=\"button\" class=\"btn-close\" aria-hidden=\"true\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"openModal(false)\"></button>\r\n </div>\r\n <div class=\"modal-body py-5\">\r\n <div *ngIf=\"imageUrl\">\r\n <angular-cropper #angularCropper [cropperOptions]=\"config\" [imageUrl]=\"imageUrl\">\r\n </angular-cropper>\r\n <img [src]=\"imgwUrl\" />\r\n </div>\r\n <div style=\"text-align:center;\">\r\n <div class=\"btn-group\">\r\n <button type=\"button\" (click)=\"zoomImage(0.1)\" class=\"btn btn-default\" data-method=\"zoom\" data-option=\"0.1\" title=\"Zoom In\">\r\n <span class=\"docs-tooltip\" data-toggle=\"tooltip\" title=\"\" data-original-title=\"cropper.zoom(0.1)\">\r\n <span class=\"fa fa-search-plus\"></span>\r\n </span>\r\n </button>\r\n <button type=\"button\" (click)=\"zoomImage(-0.1)\" class=\"btn btn-default\" data-method=\"zoom\" data-option=\"-0.1\" title=\"Zoom Out\">\r\n <span class=\"docs-tooltip\" data-toggle=\"tooltip\" title=\"\" data-original-title=\"cropper.zoom(-0.1)\">\r\n <span class=\"fa fa-search-minus\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"btn-group\">\r\n <button type=\"button\" (click)=\"moveImage(-10,0)\" class=\"btn btn-default\" data-method=\"move\" data-option=\"-10\" data-second-option=\"0\" title=\"Move Left\">\r\n <span class=\"docs-tooltip\" data-toggle=\"tooltip\" title=\"\" data-original-title=\"cropper.move(-10, 0)\" aria-describedby=\"tooltip631939\">\r\n <span class=\"fa fa-arrow-left\"></span>\r\n </span>\r\n </button>\r\n <button type=\"button\" (click)=\"moveImage(10,0)\" class=\"btn btn-default\" data-method=\"move\" data-option=\"10\" data-second-option=\"0\" title=\"Move Right\">\r\n <span class=\"docs-tooltip\" data-toggle=\"tooltip\" title=\"\" data-original-title=\"cropper.move(10, 0)\">\r\n <span class=\"fa fa-arrow-right\"></span>\r\n </span>\r\n </button>\r\n <button type=\"button\" (click)=\"moveImage(0,-10)\" class=\"btn btn-default\" data-method=\"move\" data-option=\"0\" data-second-option=\"-10\" title=\"Move Up\">\r\n <span class=\"docs-tooltip\" data-toggle=\"tooltip\" title=\"\" data-original-title=\"cropper.move(0, -10)\">\r\n <span class=\"fa fa-arrow-up\"></span>\r\n </span>\r\n </button>\r\n <button type=\"button\" (click)=\"moveImage(0,10)\" class=\"btn btn-default\" data-method=\"move\" data-option=\"0\" data-second-option=\"10\" title=\"Move Down\">\r\n <span class=\"docs-tooltip\" data-toggle=\"tooltip\" title=\"\" data-original-title=\"cropper.move(0, 10)\">\r\n <span class=\"fa fa-arrow-down\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"btn-group\">\r\n <button type=\"button\" (click)=\"rotateImage(-45)\" class=\"btn btn-default\" data-method=\"rotate\" data-option=\"-45\" title=\"Rotate Left\">\r\n <span class=\"docs-tooltip\" data-toggle=\"tooltip\" title=\"\" data-original-title=\"cropper.rotate(-45)\" aria-describedby=\"tooltip236044\">\r\n <span class=\"fa fa-undo-alt\"></span>\r\n </span>\r\n </button>\r\n <button type=\"button\" (click)=\"rotateImage(45)\" class=\"btn btn-default\" data-method=\"rotate\" data-option=\"45\" title=\"Rotate Right\">\r\n <span class=\"docs-tooltip\" data-toggle=\"tooltip\" title=\"\" data-original-title=\"cropper.rotate(45)\">\r\n <span class=\"fa fa-redo-alt\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\" align=\"right\">\r\n <button type=\"button\" id=\"btnClose\" class=\"btn btn-default\" (click)=\"openModal(false)\">\r\n <i class=\"fa fa-times fa-fw\"></i> {{UtilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"button\" (click)=\"cropImage()\" id=\"btnOK\" class=\"btn btn-success\">\r\n <i class=\"fa fa-check fa-fw\"></i>\r\n {{UtilityService.getResourceValue(\"Crop\")}}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"text-danger Required-text\" *ngIf=\"(ImageUploadFormControl.invalid && ImageUploadFormControl.touched)\">\r\n {{getErrorValidation(ImageUploadFormControl.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 <div *ngIf=\"(group.valid&&group.dirty&&group.touched )||(group.untouched&&group.invalid&&group.dirty) \">{{resetError()}}</div>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n",
|
|
3730
3733
|
styles: [".e-tip-content{background-color:#afafaf;color:#fff;padding-left:10px;padding-right:10px;padding-top:2px}.my-drop-zone{border:dotted 3px lightgray}.nv-file-over{border:dotted 3px red}.another-file-over-class{border:dotted 3px green}html,body{height:100%}.modal{display:none;position:fixed;z-index:1;padding-top:100px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:#0006}.modal-content{position:relative;background-color:#fefefe;margin:auto;padding:0;border:1px solid #888;width:80%;box-shadow:0 4px 8px #0003,0 6px 20px #00000030;-webkit-animation-name:animatetop;-webkit-animation-duration:.4s;animation-name:animatetop;animation-duration:.4s}@keyframes animatetop{0%{top:-300px;opacity:0}to{top:0;opacity:1}}.close{color:#fff;float:right;font-size:28px;font-weight:bold}.ImageUploadClassSelector img{cursor:pointer}.d-inline-flex.h-auto.m-0.overflow-hidden.w-auto.ng-untouched.ng-pristine.ng-valid{border-radius:40px;border-color:#c7c7c7}\n"]
|
|
3731
3734
|
},] }
|
|
3732
3735
|
];
|
|
@@ -6159,43 +6162,30 @@
|
|
|
6159
6162
|
PermissionSets[PermissionSets["BusinessAdmin"] = 2] = "BusinessAdmin";
|
|
6160
6163
|
PermissionSets[PermissionSets["Customer"] = 3] = "Customer";
|
|
6161
6164
|
})(exports.PermissionSets || (exports.PermissionSets = {}));
|
|
6162
|
-
exports.PropertyLocation = void 0;
|
|
6163
|
-
(function (PropertyLocation) {
|
|
6164
|
-
PropertyLocation[PropertyLocation["InternalIdeas"] = 53001] = "InternalIdeas";
|
|
6165
|
-
PropertyLocation[PropertyLocation["EvaluationRequest"] = 53002] = "EvaluationRequest";
|
|
6166
|
-
PropertyLocation[PropertyLocation["IMOBusiness"] = 53003] = "IMOBusiness";
|
|
6167
|
-
PropertyLocation[PropertyLocation["PublicIdeas"] = 53004] = "PublicIdeas";
|
|
6168
|
-
})(exports.PropertyLocation || (exports.PropertyLocation = {}));
|
|
6169
|
-
exports.LanguageType = void 0;
|
|
6170
|
-
(function (LanguageType) {
|
|
6171
|
-
LanguageType[LanguageType["English"] = 54001] = "English";
|
|
6172
|
-
LanguageType[LanguageType["Arabic"] = 54002] = "Arabic";
|
|
6173
|
-
LanguageType[LanguageType["Any"] = 54003] = "Any";
|
|
6174
|
-
})(exports.LanguageType || (exports.LanguageType = {}));
|
|
6175
6165
|
exports.DataType = void 0;
|
|
6176
6166
|
(function (DataType) {
|
|
6177
|
-
DataType[
|
|
6178
|
-
DataType[
|
|
6179
|
-
DataType[
|
|
6180
|
-
DataType[
|
|
6181
|
-
DataType[
|
|
6182
|
-
DataType[
|
|
6183
|
-
DataType[
|
|
6184
|
-
DataType[
|
|
6185
|
-
DataType[
|
|
6186
|
-
DataType[
|
|
6187
|
-
DataType[
|
|
6188
|
-
DataType[
|
|
6189
|
-
DataType[
|
|
6190
|
-
DataType[
|
|
6191
|
-
DataType[
|
|
6192
|
-
DataType[
|
|
6193
|
-
DataType[
|
|
6194
|
-
DataType[
|
|
6195
|
-
DataType[
|
|
6196
|
-
DataType[
|
|
6197
|
-
DataType[
|
|
6198
|
-
DataType[
|
|
6167
|
+
DataType["Text"] = "7F35E246-7C93-4666-8031-3CE9D2262DB9";
|
|
6168
|
+
DataType["Email"] = "E4F974F6-682F-4CAC-8597-C94E8BF60539";
|
|
6169
|
+
DataType["Number"] = "962060E2-539C-4257-88E5-0259EB8A64F4";
|
|
6170
|
+
DataType["Name"] = "54FE6A3E-1F71-42B8-8C99-06279ED8AA2F";
|
|
6171
|
+
DataType["Mobile"] = "266E2903-D105-4847-AC9B-002AE884A31E";
|
|
6172
|
+
DataType["MultilineText"] = "97F904E0-991B-4F68-B227-217A7B87B8B3";
|
|
6173
|
+
DataType["HTML"] = "57335E2B-E286-401A-A374-72888C3FB753";
|
|
6174
|
+
DataType["Image"] = "1AE5FF1F-856E-41DA-923E-07966F6F8FFE";
|
|
6175
|
+
DataType["File"] = "ACDFEFA7-B406-45B8-9264-78AA440D94B5";
|
|
6176
|
+
DataType["MultiFile"] = "11FAC9EB-D1BB-4F73-9386-64A6C89A70AC";
|
|
6177
|
+
DataType["Boolean"] = "7F89617B-5863-4741-A948-106BBE82D38D";
|
|
6178
|
+
DataType["Date"] = "41182659-A638-4FF0-8E3F-66B89B0B544C";
|
|
6179
|
+
DataType["DateTime"] = "8D899956-8187-4EA1-92EB-B62D50A66323";
|
|
6180
|
+
DataType["Time"] = "B8C225ED-17C3-4AE0-A0E8-3C722B38D8A7";
|
|
6181
|
+
DataType["Location"] = "C486F9C5-0065-4A81-AFA1-03946DBD2214";
|
|
6182
|
+
DataType["SingleSelect"] = "1A63B4B7-DEDE-48C8-8407-10E4170BF761";
|
|
6183
|
+
DataType["MulipleSelect"] = "2CB28735-9D0B-4FBE-A504-8793A4544F94";
|
|
6184
|
+
DataType["Goal"] = "108310CE-9FE1-4914-AB6B-2CF6284472AD";
|
|
6185
|
+
DataType["Challenge"] = "48C419CE-5306-4F6B-87A3-F016E522D9E3";
|
|
6186
|
+
DataType["CoverPhoto"] = "9CC8C0BB-C670-466F-A632-8632FF5C1296";
|
|
6187
|
+
DataType["InnovationLab"] = "4B914ED0-8B36-4E24-B85E-9A04C9F266BE";
|
|
6188
|
+
DataType["Country"] = "342AA701-76C7-4E5D-8056-407BFC86F888";
|
|
6199
6189
|
})(exports.DataType || (exports.DataType = {}));
|
|
6200
6190
|
|
|
6201
6191
|
exports.ForceDirection = void 0;
|