@bnsights/bbsf-controls 1.0.6 → 1.0.10
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.10.tgz +0 -0
- package/bnsights-bbsf-controls.metadata.json +1 -1
- package/bundles/bnsights-bbsf-controls.umd.js +290 -188
- package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
- package/esm2015/lib/Shared/Models/AutocompleteOptions.js +2 -3
- package/esm2015/lib/Shared/Models/ConfirmationModalOptions.js +2 -5
- package/esm2015/lib/Shared/Models/DropdownOptions.js +2 -3
- package/esm2015/lib/Shared/Models/FileUploadOptions.js +2 -3
- package/esm2015/lib/Shared/Models/HtmlEditorOptions.js +2 -3
- package/esm2015/lib/Shared/Models/ImageUploadOptions.js +2 -3
- package/esm2015/lib/Shared/Models/MapAutoCompleteOptions.js +2 -3
- package/esm2015/lib/Shared/Models/MultiLingualHtmlEditorOptions.js +3 -5
- package/esm2015/lib/Shared/Models/MultiLingualTextAreaOptions.js +4 -6
- package/esm2015/lib/Shared/Models/MultilingualTextBoxOptions.js +4 -6
- package/esm2015/lib/Shared/Models/PhoneOptions.js +2 -3
- package/esm2015/lib/Shared/Models/ProfileImageUploadOptions.js +2 -3
- package/esm2015/lib/Shared/Models/RadioButtonOptions.js +2 -3
- package/esm2015/lib/Shared/Models/TagsInputOptions.js +2 -3
- package/esm2015/lib/Shared/Models/TextAreaOptions.js +2 -3
- package/esm2015/lib/Shared/Models/TextBoxOptions.js +2 -3
- package/esm2015/lib/Shared/Models/ToggleslideOptions.js +2 -3
- package/esm2015/lib/Shared/services/ControlUtility.js +3 -3
- package/esm2015/lib/Shared/services/GlobalSettings.service.js +20 -0
- package/esm2015/lib/controls/AutocompleteTextBox/AutocompleteTextBox.component.js +16 -9
- package/esm2015/lib/controls/ConfirmationModal/ConfirmationModal.component.js +34 -18
- package/esm2015/lib/controls/DropdownList/DropdownList.component.js +10 -7
- package/esm2015/lib/controls/FileUplaod/FileUplaod.component.js +9 -6
- package/esm2015/lib/controls/Form/Form.component.js +22 -4
- package/esm2015/lib/controls/HtmlEditor/HtmlEditor.component.js +9 -6
- package/esm2015/lib/controls/ImageUpload/ImageUpload.component.js +14 -10
- package/esm2015/lib/controls/MapAutoComplete/MapAutoComplete.component.js +8 -9
- package/esm2015/lib/controls/MultiLingualHtmlEditor/MultiLingualHtmlEditor.component.js +41 -30
- package/esm2015/lib/controls/MultiLingualTextArea/MultiLingualTextArea.component.js +13 -9
- package/esm2015/lib/controls/MultiLingualTextBox/MultiLingualTextBox.component.js +13 -7
- package/esm2015/lib/controls/Paging/Paging.component.js +6 -4
- package/esm2015/lib/controls/Phone/Phone.component.js +8 -6
- package/esm2015/lib/controls/ProfileImageUploader/ProfileImageUploader.component.js +13 -7
- package/esm2015/lib/controls/RadioButton/RadioButton.component.js +8 -3
- package/esm2015/lib/controls/TagsInput/TagsInput.component.js +16 -22
- package/esm2015/lib/controls/TextArea/TextArea.component.js +8 -6
- package/esm2015/lib/controls/TextBox/TextBox.component.js +8 -3
- package/esm2015/lib/controls/Toggleslide/toggleslide.component.js +8 -7
- package/esm2015/lib/controls/bbsf-controls.module.js +10 -8
- package/esm2015/public-api.js +2 -1
- package/fesm2015/bnsights-bbsf-controls.js +286 -187
- package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
- package/lib/Shared/Models/ConfirmationModalOptions.d.ts +0 -1
- package/lib/Shared/services/ControlUtility.d.ts +1 -1
- package/lib/Shared/services/GlobalSettings.service.d.ts +10 -0
- package/lib/controls/AutocompleteTextBox/AutocompleteTextBox.component.d.ts +5 -3
- package/lib/controls/ConfirmationModal/ConfirmationModal.component.d.ts +2 -1
- package/lib/controls/DropdownList/DropdownList.component.d.ts +4 -3
- package/lib/controls/FileUplaod/FileUplaod.component.d.ts +4 -3
- package/lib/controls/Form/Form.component.d.ts +6 -1
- package/lib/controls/HtmlEditor/HtmlEditor.component.d.ts +4 -3
- package/lib/controls/ImageUpload/ImageUpload.component.d.ts +5 -5
- package/lib/controls/MapAutoComplete/MapAutoComplete.component.d.ts +3 -5
- package/lib/controls/MultiLingualHtmlEditor/MultiLingualHtmlEditor.component.d.ts +7 -6
- package/lib/controls/MultiLingualTextArea/MultiLingualTextArea.component.d.ts +4 -5
- package/lib/controls/MultiLingualTextBox/MultiLingualTextBox.component.d.ts +3 -3
- package/lib/controls/Paging/Paging.component.d.ts +3 -2
- package/lib/controls/Phone/Phone.component.d.ts +3 -3
- package/lib/controls/ProfileImageUploader/ProfileImageUploader.component.d.ts +4 -3
- package/lib/controls/RadioButton/RadioButton.component.d.ts +3 -1
- package/lib/controls/TagsInput/TagsInput.component.d.ts +5 -4
- package/lib/controls/TextArea/TextArea.component.d.ts +3 -3
- package/lib/controls/TextBox/TextBox.component.d.ts +3 -1
- package/lib/controls/Toggleslide/toggleslide.component.d.ts +3 -3
- package/package.json +6 -4
- package/public-api.d.ts +1 -0
- package/src/lib/assets/Style.css +18 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@fullcalendar/angular'), require('@fullcalendar/daygrid'), require('@fullcalendar/timegrid'), require('@fullcalendar/list'), require('@fullcalendar/interaction'), require('@angular/core'), require('ng-block-ui'), require('@angular/forms'), require('@angular/http'), require('@angular/router'), require('ngx-toastr'), require('ngx-permissions'), require('@angular/cdk/overlay'), require('@ngrx/store-devtools'), require('@angular/common'), require('ngx-intl-tel-input'), require('@bnsights/bbsf-utilities'), require('ngx-bootstrap/datepicker'), require('rxjs'), require('ng2-file-upload'), require('ng-pick-datetime'), require('ng-multiselect-dropdown'), require('angular2-multiselect-dropdown'), require('ngx-summernote'), require('ngx-mask'), require('@syncfusion/ej2-angular-popups'), require('ngx-dropzone'), require('angular-cropperjs'), require('ngx-image-cropper'), require('@ng-bootstrap/ng-bootstrap'), require('@ngx-translate/core'), require('@angular/common/http'), require('ngx-typeahead'), require('rxjs/operators'), require('ngx-tags-input'), require('@ng-select/ng-select'), require('ngx-infinite-scroll'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@bnsights/bbsf-controls', ['exports', '@fullcalendar/angular', '@fullcalendar/daygrid', '@fullcalendar/timegrid', '@fullcalendar/list', '@fullcalendar/interaction', '@angular/core', 'ng-block-ui', '@angular/forms', '@angular/http', '@angular/router', 'ngx-toastr', 'ngx-permissions', '@angular/cdk/overlay', '@ngrx/store-devtools', '@angular/common', 'ngx-intl-tel-input', '@bnsights/bbsf-utilities', 'ngx-bootstrap/datepicker', 'rxjs', 'ng2-file-upload', 'ng-pick-datetime', 'ng-multiselect-dropdown', 'angular2-multiselect-dropdown', 'ngx-summernote', 'ngx-mask', '@syncfusion/ej2-angular-popups', 'ngx-dropzone', 'angular-cropperjs', 'ngx-image-cropper', '@ng-bootstrap/ng-bootstrap', '@ngx-translate/core', '@angular/common/http', 'ngx-typeahead', 'rxjs/operators', 'ngx-tags-input', '@ng-select/ng-select', 'ngx-infinite-scroll', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bnsights = global.bnsights || {}, global.bnsights["bbsf-controls"] = {}), global.angular, global.dayGridPlugin, global.timeGridPlugin, global.listPlugin, global.interactionPlugin, global.ng.core, global.ngBlockUi, global.ng.forms, global.ng.http, global.ng.router, global.ngxToastr, global.ngxPermissions, global.ng.cdk.overlay, global.storeDevtools, global.ng.common, global.ngxIntlTelInput, global.bbsfUtilities, global.datepicker, global.rxjs, global.ng2FileUpload, global.ngPickDatetime, global.ngMultiselectDropdown, global.angular2MultiselectDropdown, global.ngxSummernote, global.ngxMask, global.ej2AngularPopups, global.ngxDropzone, global.angularCropperjs, global.ngxImageCropper, global.ngBootstrap, global.core$1, global.ng.common.http, global.ngxTypeahead, global.rxjs.operators, global.ngxTagsInput, global.ngSelect, global.ngxInfiniteScroll, global.
|
|
5
|
-
})(this, (function (exports, angular, dayGridPlugin, timeGridPlugin, listPlugin, interactionPlugin, i0, ngBlockUi, forms, http, router, ngxToastr, ngxPermissions, overlay, storeDevtools, common, ngxIntlTelInput, bbsfUtilities, datepicker, rxjs, ng2FileUpload, ngPickDatetime, ngMultiselectDropdown, angular2MultiselectDropdown, ngxSummernote, ngxMask, ej2AngularPopups, ngxDropzone, angularCropperjs, ngxImageCropper, ngBootstrap, core$1, http$1, ngxTypeahead, operators, ngxTagsInput, ngSelect, ngxInfiniteScroll,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@fullcalendar/angular'), require('@fullcalendar/daygrid'), require('@fullcalendar/timegrid'), require('@fullcalendar/list'), require('@fullcalendar/interaction'), require('@angular/core'), require('ng-block-ui'), require('@angular/forms'), require('@angular/http'), require('@angular/router'), require('ngx-toastr'), require('ngx-permissions'), require('@angular/cdk/overlay'), require('@ngrx/store-devtools'), require('@angular/common'), require('ngx-intl-tel-input'), require('@bnsights/bbsf-utilities'), require('ngx-bootstrap/datepicker'), require('rxjs'), require('ng2-file-upload'), require('ng-pick-datetime'), require('ng-multiselect-dropdown'), require('angular2-multiselect-dropdown'), require('ngx-summernote'), require('ngx-mask'), require('@syncfusion/ej2-angular-popups'), require('ngx-dropzone'), require('angular-cropperjs'), require('ngx-image-cropper'), require('@ng-bootstrap/ng-bootstrap'), require('@ngx-translate/core'), require('@angular/common/http'), require('ngx-typeahead'), require('rxjs/operators'), require('ngx-tags-input'), require('@ng-select/ng-select'), require('ngx-infinite-scroll'), require('@agm/core'), require('@angular-material-extensions/google-maps-autocomplete'), require('@fullcalendar/core/locales/en-gb'), require('@fullcalendar/core/locales/ar'), require('ngx-bootstrap/typeahead'), require('@angular/material/slide-toggle'), require('@kolkov/angular-editor'), require('angular-ng-autocomplete'), require('ng-inline-svg'), require('sweetalert2'), require('@sweetalert2/ngx-sweetalert2')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@bnsights/bbsf-controls', ['exports', '@fullcalendar/angular', '@fullcalendar/daygrid', '@fullcalendar/timegrid', '@fullcalendar/list', '@fullcalendar/interaction', '@angular/core', 'ng-block-ui', '@angular/forms', '@angular/http', '@angular/router', 'ngx-toastr', 'ngx-permissions', '@angular/cdk/overlay', '@ngrx/store-devtools', '@angular/common', 'ngx-intl-tel-input', '@bnsights/bbsf-utilities', 'ngx-bootstrap/datepicker', 'rxjs', 'ng2-file-upload', 'ng-pick-datetime', 'ng-multiselect-dropdown', 'angular2-multiselect-dropdown', 'ngx-summernote', 'ngx-mask', '@syncfusion/ej2-angular-popups', 'ngx-dropzone', 'angular-cropperjs', 'ngx-image-cropper', '@ng-bootstrap/ng-bootstrap', '@ngx-translate/core', '@angular/common/http', 'ngx-typeahead', 'rxjs/operators', 'ngx-tags-input', '@ng-select/ng-select', 'ngx-infinite-scroll', '@agm/core', '@angular-material-extensions/google-maps-autocomplete', '@fullcalendar/core/locales/en-gb', '@fullcalendar/core/locales/ar', 'ngx-bootstrap/typeahead', '@angular/material/slide-toggle', '@kolkov/angular-editor', 'angular-ng-autocomplete', 'ng-inline-svg', 'sweetalert2', '@sweetalert2/ngx-sweetalert2'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bnsights = global.bnsights || {}, global.bnsights["bbsf-controls"] = {}), global.angular, global.dayGridPlugin, global.timeGridPlugin, global.listPlugin, global.interactionPlugin, global.ng.core, global.ngBlockUi, global.ng.forms, global.ng.http, global.ng.router, global.ngxToastr, global.ngxPermissions, global.ng.cdk.overlay, global.storeDevtools, global.ng.common, global.ngxIntlTelInput, global.bbsfUtilities, global.datepicker, global.rxjs, global.ng2FileUpload, global.ngPickDatetime, global.ngMultiselectDropdown, global.angular2MultiselectDropdown, global.ngxSummernote, global.ngxMask, global.ej2AngularPopups, global.ngxDropzone, global.angularCropperjs, global.ngxImageCropper, global.ngBootstrap, global.core$1, global.ng.common.http, global.ngxTypeahead, global.rxjs.operators, global.ngxTagsInput, global.ngSelect, global.ngxInfiniteScroll, global.core, global.googleMapsAutocomplete, global.enGbLocale, global.ArLocale, global.typeahead, global.ng.material.slideToggle, global.angularEditor, global.angularNgAutocomplete, global.ngInlineSvg, global.Swal, global.ngxSweetalert2));
|
|
5
|
+
})(this, (function (exports, angular, dayGridPlugin, timeGridPlugin, listPlugin, interactionPlugin, i0, ngBlockUi, forms, http, router, ngxToastr, ngxPermissions, overlay, storeDevtools, common, ngxIntlTelInput, bbsfUtilities, datepicker, rxjs, ng2FileUpload, ngPickDatetime, ngMultiselectDropdown, angular2MultiselectDropdown, ngxSummernote, ngxMask, ej2AngularPopups, ngxDropzone, angularCropperjs, ngxImageCropper, ngBootstrap, core$1, http$1, ngxTypeahead, operators, ngxTagsInput, ngSelect, ngxInfiniteScroll, core, googleMapsAutocomplete, enGbLocale, ArLocale, typeahead, slideToggle, angularEditor, angularNgAutocomplete, ngInlineSvg, Swal, ngxSweetalert2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
32
32
|
var enGbLocale__default = /*#__PURE__*/_interopDefaultLegacy(enGbLocale);
|
|
33
33
|
var ArLocale__default = /*#__PURE__*/_interopDefaultLegacy(ArLocale);
|
|
34
|
+
var Swal__default = /*#__PURE__*/_interopDefaultLegacy(Swal);
|
|
34
35
|
|
|
35
36
|
var ErrorMassageValidation = /** @class */ (function () {
|
|
36
37
|
// tslint:disable-next-line: deprecation
|
|
@@ -232,8 +233,8 @@
|
|
|
232
233
|
}
|
|
233
234
|
}
|
|
234
235
|
};
|
|
235
|
-
ControlUtility.prototype.showGlobalError = function () {
|
|
236
|
-
this.controlValidationService.showGlobalError();
|
|
236
|
+
ControlUtility.prototype.showGlobalError = function (formId) {
|
|
237
|
+
this.controlValidationService.showGlobalError(null, formId);
|
|
237
238
|
this.scrollToGlobalErrorMassage();
|
|
238
239
|
};
|
|
239
240
|
ControlUtility.prototype.RemoveRequiredValidation = function (FormControl, ValidationRole, Options) {
|
|
@@ -469,15 +470,49 @@
|
|
|
469
470
|
return MultipleFileUploadModel;
|
|
470
471
|
}());
|
|
471
472
|
|
|
473
|
+
exports.ControlLayout = void 0;
|
|
474
|
+
(function (ControlLayout) {
|
|
475
|
+
ControlLayout[ControlLayout["Vertical"] = 1] = "Vertical";
|
|
476
|
+
ControlLayout[ControlLayout["Horizontal"] = 2] = "Horizontal";
|
|
477
|
+
})(exports.ControlLayout || (exports.ControlLayout = {}));
|
|
478
|
+
|
|
479
|
+
exports.LanguageMode = void 0;
|
|
480
|
+
(function (LanguageMode) {
|
|
481
|
+
LanguageMode[LanguageMode["Both_Languages_are_visible"] = 1] = "Both_Languages_are_visible";
|
|
482
|
+
LanguageMode[LanguageMode["English_Language_only_is_visible"] = 2] = "English_Language_only_is_visible";
|
|
483
|
+
LanguageMode[LanguageMode["Arabic_Language_only_is_visible"] = 3] = "Arabic_Language_only_is_visible";
|
|
484
|
+
LanguageMode[LanguageMode["Both_Languages_but_only_English_is_required"] = 4] = "Both_Languages_but_only_English_is_required";
|
|
485
|
+
LanguageMode[LanguageMode["Both_Languages_but_only_Arabic_is_required"] = 5] = "Both_Languages_but_only_Arabic_is_required";
|
|
486
|
+
LanguageMode[LanguageMode["Current_Language_only_is_visible_and_required"] = 6] = "Current_Language_only_is_visible_and_required";
|
|
487
|
+
LanguageMode[LanguageMode["Both_Languages_are_visible_but_only_current_language_is_required"] = 7] = "Both_Languages_are_visible_but_only_current_language_is_required";
|
|
488
|
+
})(exports.LanguageMode || (exports.LanguageMode = {}));
|
|
489
|
+
|
|
490
|
+
var GlobalSettings = /** @class */ (function () {
|
|
491
|
+
function GlobalSettings() {
|
|
492
|
+
/** to set type of view if MultilingualTextArea is Vertical or Horizontal */
|
|
493
|
+
this.ViewType = exports.ControlLayout.Vertical;
|
|
494
|
+
/*multi control placement type*/
|
|
495
|
+
this.MultiControlPlacementType = exports.ControlLayout.Horizontal;
|
|
496
|
+
/**To Set LanguageMode To MultipleLanguageText */
|
|
497
|
+
this.LanguageMode = exports.LanguageMode.Both_Languages_are_visible;
|
|
498
|
+
this.HideAstericsWhenRequired = false;
|
|
499
|
+
}
|
|
500
|
+
return GlobalSettings;
|
|
501
|
+
}());
|
|
502
|
+
GlobalSettings.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function GlobalSettings_Factory() { return new GlobalSettings(); }, token: GlobalSettings, providedIn: "root" });
|
|
503
|
+
GlobalSettings.decorators = [
|
|
504
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
505
|
+
];
|
|
506
|
+
|
|
472
507
|
var FileUploadComponent = /** @class */ (function () {
|
|
473
|
-
function FileUploadComponent(controlContainer, MultipleFileUplaodControlHost, controlUtility, UtilityService,
|
|
508
|
+
function FileUploadComponent(controlContainer, MultipleFileUplaodControlHost, controlUtility, UtilityService, controlValidationService, globalSettings) {
|
|
474
509
|
var _this = this;
|
|
475
510
|
this.controlContainer = controlContainer;
|
|
476
511
|
this.MultipleFileUplaodControlHost = MultipleFileUplaodControlHost;
|
|
477
512
|
this.controlUtility = controlUtility;
|
|
478
513
|
this.UtilityService = UtilityService;
|
|
479
|
-
this.translate = translate;
|
|
480
514
|
this.controlValidationService = controlValidationService;
|
|
515
|
+
this.globalSettings = globalSettings;
|
|
481
516
|
this.OnChange = new i0.EventEmitter();
|
|
482
517
|
this.ValidationMessage = "";
|
|
483
518
|
this.AcceptedType = "";
|
|
@@ -519,6 +554,8 @@
|
|
|
519
554
|
var _this = this;
|
|
520
555
|
this.fileUploadModel = new FileUploadModel();
|
|
521
556
|
this.multipleFileUploadModel = new MultipleFileUploadModel();
|
|
557
|
+
if (!this.options.ViewType)
|
|
558
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
522
559
|
if (this.options.Value == null) {
|
|
523
560
|
if (this.options.IsMultipleFile == true) {
|
|
524
561
|
//this.options.Value=this.multipleFileUploadModel
|
|
@@ -781,8 +818,8 @@
|
|
|
781
818
|
{ type: forms.FormGroupDirective },
|
|
782
819
|
{ type: ControlUtility },
|
|
783
820
|
{ type: bbsfUtilities.UtilityService },
|
|
784
|
-
{ type: bbsfUtilities.
|
|
785
|
-
{ type:
|
|
821
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
822
|
+
{ type: GlobalSettings }
|
|
786
823
|
]; };
|
|
787
824
|
FileUploadComponent.propDecorators = {
|
|
788
825
|
fileInput: [{ type: i0.ViewChild, args: ['fileInput', { static: false },] }],
|
|
@@ -1115,27 +1152,16 @@
|
|
|
1115
1152
|
return EnglishArabicDTO;
|
|
1116
1153
|
}());
|
|
1117
1154
|
|
|
1118
|
-
exports.LanguageMode = void 0;
|
|
1119
|
-
(function (LanguageMode) {
|
|
1120
|
-
LanguageMode[LanguageMode["Both_Languages_are_visible"] = 1] = "Both_Languages_are_visible";
|
|
1121
|
-
LanguageMode[LanguageMode["English_Language_only_is_visible"] = 2] = "English_Language_only_is_visible";
|
|
1122
|
-
LanguageMode[LanguageMode["Arabic_Language_only_is_visible"] = 3] = "Arabic_Language_only_is_visible";
|
|
1123
|
-
LanguageMode[LanguageMode["Both_Languages_but_only_English_is_required"] = 4] = "Both_Languages_but_only_English_is_required";
|
|
1124
|
-
LanguageMode[LanguageMode["Both_Languages_but_only_Arabic_is_required"] = 5] = "Both_Languages_but_only_Arabic_is_required";
|
|
1125
|
-
LanguageMode[LanguageMode["Current_Language_only_is_visible_and_required"] = 6] = "Current_Language_only_is_visible_and_required";
|
|
1126
|
-
LanguageMode[LanguageMode["Both_Languages_are_visible_but_only_current_language_is_required"] = 7] = "Both_Languages_are_visible_but_only_current_language_is_required";
|
|
1127
|
-
})(exports.LanguageMode || (exports.LanguageMode = {}));
|
|
1128
|
-
|
|
1129
1155
|
var MultiLingualTextBoxComponent = /** @class */ (function () {
|
|
1130
|
-
function MultiLingualTextBoxComponent(
|
|
1156
|
+
function MultiLingualTextBoxComponent(MultiLingualTextBoxFormControlHost, controlContainer, controlUtility, UtilityService, translate, controlValidationService, globalSettings) {
|
|
1131
1157
|
var _this = this;
|
|
1132
|
-
this.ErrorHandler = ErrorHandler;
|
|
1133
1158
|
this.MultiLingualTextBoxFormControlHost = MultiLingualTextBoxFormControlHost;
|
|
1134
1159
|
this.controlContainer = controlContainer;
|
|
1135
1160
|
this.controlUtility = controlUtility;
|
|
1136
1161
|
this.UtilityService = UtilityService;
|
|
1137
1162
|
this.translate = translate;
|
|
1138
1163
|
this.controlValidationService = controlValidationService;
|
|
1164
|
+
this.globalSettings = globalSettings;
|
|
1139
1165
|
this.OnChange = new i0.EventEmitter();
|
|
1140
1166
|
this.ArabicWordCount = 0;
|
|
1141
1167
|
this.ArabicWordCountArray = 0;
|
|
@@ -1207,6 +1233,12 @@
|
|
|
1207
1233
|
this.EnglishFormControl = this.MultiLanguagegroup.controls["EnglishValue"]; // new FormControl('',validationRules);
|
|
1208
1234
|
this.group.addControl(this.options.Name, new forms.FormGroup(this.MultiLanguagegroup.controls));
|
|
1209
1235
|
this.getCustomErrorsMassages();
|
|
1236
|
+
if (!this.options.ViewType)
|
|
1237
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
1238
|
+
if (!this.options.LanguageMode)
|
|
1239
|
+
this.options.LanguageMode = this.globalSettings.LanguageMode;
|
|
1240
|
+
if (!this.options.MultiControlPlacementType)
|
|
1241
|
+
this.options.MultiControlPlacementType = this.globalSettings.MultiControlPlacementType;
|
|
1210
1242
|
if (this.options.ArabicLabelKey != null && this.options.ArabicLabelKey != "")
|
|
1211
1243
|
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.ArabicLabelKey);
|
|
1212
1244
|
if (this.options.EnglishLabelKey != null && this.options.EnglishLabelKey != "")
|
|
@@ -1438,18 +1470,18 @@
|
|
|
1438
1470
|
MultiLingualTextBoxComponent.decorators = [
|
|
1439
1471
|
{ type: i0.Component, args: [{
|
|
1440
1472
|
selector: 'BBSF-MultiLingualTextBox',
|
|
1441
|
-
template: "<div class=\"b-control b-multilangual-textbox\">\r\n <div class=\"form-group validate is-invalid\" [formGroup]=\"group\">\r\n\r\n <div class=\"form-group row\" [formGroup]=\"MultiLanguagegroup\">\r\n <div [ngClass]=\"(options.MultiControlPlacementType==1)?'col-md-12':'col-md-6'\">\r\n <div class=\"row\" *ngIf=\"ShowEnglishTextBox\">\r\n <label class=\"b-label col-form-label col-sm-12\"\r\n [ngClass]=\"(options.ViewType==1)?'col-md-9':'col-md-3'\" [hidden]=\"options.IsHideEnglishLabel\">\r\n {{(options.EnglishLabelValue!=null&&options.EnglishLabelValue!=\"\")?options.EnglishLabelValue:options.LabelValue}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\"\r\n class=\"text-danger Required-text\" 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 <div class=\"input-group\">\r\n <div class=\"svg svg-icon-grey\" [ngClass]=\"(options.IconPositionEN==1)?'left':'right'\" *ngIf=\"options.Icon!=null\">\r\n <span [inlineSVG]=\"options.Icon\"></span>\r\n </div>\r\n <input class=\"form-control bnsights-control\"\r\n (focus)=\"showEnglishWordCount(true)\" (focusout)=\"showEnglishWordCount(false)\"\r\n maxlength=\"{{options.MaxLength}}\" minlength=\"{{options.MinLength}}\"\r\n aria-describedby=\"email-error\" aria-invalid=\"true\" formControlName=\"EnglishValue\"\r\n [hidden]=\"options.IsHideEnglishFields\"\r\n [class.is-invalid]=\"EnglishFormControl.invalid && EnglishFormControl.touched\"\r\n placeholder=\"{{options.EnglishPlaceholder}}\" (change)=\"trimControlValue('En')\"\r\n (keyup)=\"onTextChange()\"\r\n (keydown)=\"EnglishWordCountArray>options.MaxWordCount&&$event.keyCode !=8?$event.preventDefault():null\"\r\n #userinputEnglish>\r\n\r\n <div class=\"input-group-append\" [hidden]=\"options.IsHideEnglishFields\" *ngIf=\"options.EnableCopyToClipboard\">\r\n <span class=\"input-group-text\" (click)=\"copyInputMessage(userinputEnglish)\">\r\n <i class=\"fas fa-copy\"></i>\r\n </span>\r\n </div>\r\n <div class=\"text-muted font-weight-500 word-count\" *ngIf=\"options.MaxWordCount>0&&IsShowEnglishWordCount\">{{EnglishWordCount}}/{{options.MaxWordCount}} words</div>\r\n </div>\r\n\r\n <div class=\"text-danger Required-text\"\r\n *ngIf=\"(EnglishFormControl.invalid && EnglishFormControl.touched)\">\r\n {{getErrorValidation(EnglishFormControl.errors|keyvalue)}}\r\n </div>\r\n\r\n <div class=\"control-desc\" *ngIf=\"(options.LabelDescription!=null&&options.LabelDescription!='') ||(options.EnglishLabelDescription!=null&&options.EnglishLabelDescription!='')\">\r\n {{(options.EnglishLabelDescription!=null&&options.EnglishLabelDescription!=\"\")?options.EnglishLabelDescription:options.LabelDescription}}\r\n </div>\r\n \r\n\r\n <!-- <div *ngIf=\"EnglishFormControl.valid\">{{resetError()}}</div> -->\r\n <div *ngIf=\"group.valid\">{{resetError()}}</div>\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div [ngClass]=\"(options.MultiControlPlacementType==1)?'col-md-12':'col-md-6'\">\r\n\r\n <div class=\"row\" *ngIf=\"ShowArabicTextBox\">\r\n\r\n <label class=\"b-label col-form-label col-sm-12\"\r\n [ngClass]=\"(options.ViewType==1)?'col-md-12':'col-md-3'\" [hidden]=\"options.IsHideArabicLabel\">\r\n {{(options.ArabicLabelValue!=null&&options.ArabicLabelValue!=\"\")?options.ArabicLabelValue:options.LabelValue}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\"\r\n class=\"text-danger Required-text\" aria-required=\"true\">*</span>\r\n\r\n </label>\r\n\r\n <div class=\" col-sm-12\" [ngClass]=\"(options.ViewType==1)?'':'col-md-9'\">\r\n <div class=\"input-group\">\r\n <div class=\"svg svg-icon-grey\" [ngClass]=\"(options.IconPositionEN==1)?'right':'left'\" *ngIf=\"options.Icon!=null\">\r\n <span [inlineSVG]=\"options.Icon\"></span>\r\n </div>\r\n <input class=\"form-control bnsights-control\" dir=\"rtl\"\r\n (focus)=\"showArabicWordCount(true)\" (focusout)=\"showArabicWordCount(false)\"\r\n [hidden]=\"options.IsHideArabicFields\" aria-describedby=\"email-error\" aria-invalid=\"true\"\r\n formControlName=\"ArabicValue\"\r\n maxlength=\"{{options.MaxLength}}\" minlength=\"{{options.MinLength}}\"\r\n [class.is-invalid]=\"ArabicFormControl.invalid && ArabicFormControl.touched\"\r\n placeholder=\"{{options.ArabicPlaceholder}}\" (keyup)=\"onTextChange()\"\r\n (keydown)=\"ArabicWordCountArray>options.MaxWordCount&&$event.keyCode !=8?$event.preventDefault():null\"\r\n (change)=\"trimControlValue('Ar')\" #userinputArabic>\r\n\r\n <div class=\"input-group-append\" [hidden]=\"options.IsHideArabicFields\" *ngIf=\"options.EnableCopyToClipboard\">\r\n <span class=\"input-group-text\" (click)=\"copyInputMessage(userinputArabic)\">\r\n <i class=\"fas fa-copy\"></i>\r\n </span>\r\n </div>\r\n <div class=\"text-muted font-weight-500 word-count\" *ngIf=\"options.MaxWordCount>0&&IsShowArabicWordCount\">{{ArabicWordCount}}/{{options.MaxWordCount}} Words</div>\r\n\r\n </div>\r\n\r\n <div class=\"text-danger Required-text\"\r\n *ngIf=\"(ArabicFormControl.invalid && ArabicFormControl.touched)\">\r\n {{getErrorValidation(ArabicFormControl.errors|keyvalue)}}\r\n </div>\r\n\r\n <div class=\"control-desc\" *ngIf=\"(options.LabelDescription!=null&&options.LabelDescription!='')||(options.ArabicLabelDescription!=null&&options.ArabicLabelDescription!='')\">\r\n {{(options.ArabicLabelDescription!=null&&options.ArabicLabelDescription!=\"\")?options.ArabicLabelDescription:options.LabelDescription}}\r\n </div>\r\n \r\n \r\n\r\n <!-- <div *ngIf=\"ArabicFormControl.valid\">{{resetError()}}</div> -->\r\n \r\n <div *ngIf=\"group.valid\">{{resetError()}}</div>\r\n\r\n </div>\r\n \r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n",
|
|
1473
|
+
template: "<div class=\"b-control b-multilangual-textbox\">\r\n <div class=\"form-group validate is-invalid\" [formGroup]=\"group\">\r\n\r\n <div class=\"form-group row\" [formGroup]=\"MultiLanguagegroup\">\r\n <div [ngClass]=\"(options.MultiControlPlacementType==1)?'col-md-12':'col-md-6'\">\r\n <div class=\"row\" *ngIf=\"ShowEnglishTextBox\">\r\n <label class=\"b-label col-form-label col-sm-12\"\r\n [ngClass]=\"(options.ViewType==1)?'col-md-9':'col-md-3'\" [hidden]=\"options.IsHideEnglishLabel\">\r\n {{(options.EnglishLabelValue!=null&&options.EnglishLabelValue!=\"\")?options.EnglishLabelValue:options.LabelValue}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\"\r\n class=\"text-danger Required-text\" 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 <div class=\"input-group align-items-center\">\r\n <div class=\"svg svg-icon-grey\" [ngClass]=\"(options.IconPositionEN==1)?'left':'right'\" *ngIf=\"options.Icon!=null\">\r\n <span [inlineSVG]=\"options.Icon\"></span>\r\n </div>\r\n <input class=\"form-control bnsights-control\"\r\n (focus)=\"showEnglishWordCount(true)\" (focusout)=\"showEnglishWordCount(false)\"\r\n maxlength=\"{{options.MaxLength}}\" minlength=\"{{options.MinLength}}\"\r\n aria-describedby=\"email-error\" aria-invalid=\"true\" formControlName=\"EnglishValue\"\r\n [hidden]=\"options.IsHideEnglishFields\"\r\n [class.is-invalid]=\"EnglishFormControl.invalid && EnglishFormControl.touched\"\r\n placeholder=\"{{options.EnglishPlaceholder}}\" (change)=\"trimControlValue('En')\"\r\n (keyup)=\"onTextChange()\"\r\n (keydown)=\"EnglishWordCountArray>options.MaxWordCount&&$event.keyCode !=8?$event.preventDefault():null\"\r\n #userinputEnglish>\r\n\r\n <div class=\"input-group-append\" [hidden]=\"options.IsHideEnglishFields\" *ngIf=\"options.EnableCopyToClipboard\">\r\n <span class=\"input-group-text\" (click)=\"copyInputMessage(userinputEnglish)\">\r\n <i class=\"fas fa-copy\"></i>\r\n </span>\r\n </div>\r\n <div class=\"text-muted font-weight-500 word-count\" *ngIf=\"options.MaxWordCount>0&&IsShowEnglishWordCount\">{{EnglishWordCount}}/{{options.MaxWordCount}} words</div>\r\n </div>\r\n\r\n <div class=\"text-danger Required-text\"\r\n *ngIf=\"(EnglishFormControl.invalid && EnglishFormControl.touched)\">\r\n {{getErrorValidation(EnglishFormControl.errors|keyvalue)}}\r\n </div>\r\n\r\n <div class=\"control-desc\" *ngIf=\"(options.LabelDescription!=null&&options.LabelDescription!='') ||(options.EnglishLabelDescription!=null&&options.EnglishLabelDescription!='')\">\r\n {{(options.EnglishLabelDescription!=null&&options.EnglishLabelDescription!=\"\")?options.EnglishLabelDescription:options.LabelDescription}}\r\n </div>\r\n \r\n\r\n <!-- <div *ngIf=\"EnglishFormControl.valid\">{{resetError()}}</div> -->\r\n <div *ngIf=\"group.valid\">{{resetError()}}</div>\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div [ngClass]=\"(options.MultiControlPlacementType==1)?'col-md-12':'col-md-6'\">\r\n\r\n <div class=\"row\" *ngIf=\"ShowArabicTextBox\">\r\n\r\n <label class=\"b-label col-form-label col-sm-12\"\r\n [ngClass]=\"(options.ViewType==1)?'col-md-12':'col-md-3'\" [hidden]=\"options.IsHideArabicLabel\">\r\n {{(options.ArabicLabelValue!=null&&options.ArabicLabelValue!=\"\")?options.ArabicLabelValue:options.LabelValue}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\"\r\n class=\"text-danger Required-text\" aria-required=\"true\">*</span>\r\n\r\n </label>\r\n\r\n <div class=\" col-sm-12\" [ngClass]=\"(options.ViewType==1)?'':'col-md-9'\">\r\n <div class=\"input-group align-items-center\">\r\n <div class=\"svg svg-icon-grey\" [ngClass]=\"(options.IconPositionEN==1)?'right':'left'\" *ngIf=\"options.Icon!=null\">\r\n <span [inlineSVG]=\"options.Icon\"></span>\r\n </div>\r\n <input class=\"form-control bnsights-control\" dir=\"rtl\"\r\n (focus)=\"showArabicWordCount(true)\" (focusout)=\"showArabicWordCount(false)\"\r\n [hidden]=\"options.IsHideArabicFields\" aria-describedby=\"email-error\" aria-invalid=\"true\"\r\n formControlName=\"ArabicValue\"\r\n maxlength=\"{{options.MaxLength}}\" minlength=\"{{options.MinLength}}\"\r\n [class.is-invalid]=\"ArabicFormControl.invalid && ArabicFormControl.touched\"\r\n placeholder=\"{{options.ArabicPlaceholder}}\" (keyup)=\"onTextChange()\"\r\n (keydown)=\"ArabicWordCountArray>options.MaxWordCount&&$event.keyCode !=8?$event.preventDefault():null\"\r\n (change)=\"trimControlValue('Ar')\" #userinputArabic>\r\n\r\n <div class=\"input-group-append\" [hidden]=\"options.IsHideArabicFields\" *ngIf=\"options.EnableCopyToClipboard\">\r\n <span class=\"input-group-text\" (click)=\"copyInputMessage(userinputArabic)\">\r\n <i class=\"fas fa-copy\"></i>\r\n </span>\r\n </div>\r\n <div class=\"text-muted font-weight-500 word-count\" *ngIf=\"options.MaxWordCount>0&&IsShowArabicWordCount\">{{ArabicWordCount}}/{{options.MaxWordCount}} Words</div>\r\n\r\n </div>\r\n\r\n <div class=\"text-danger Required-text\"\r\n *ngIf=\"(ArabicFormControl.invalid && ArabicFormControl.touched)\">\r\n {{getErrorValidation(ArabicFormControl.errors|keyvalue)}}\r\n </div>\r\n\r\n <div class=\"control-desc\" *ngIf=\"(options.LabelDescription!=null&&options.LabelDescription!='')||(options.ArabicLabelDescription!=null&&options.ArabicLabelDescription!='')\">\r\n {{(options.ArabicLabelDescription!=null&&options.ArabicLabelDescription!=\"\")?options.ArabicLabelDescription:options.LabelDescription}}\r\n </div>\r\n \r\n \r\n\r\n <!-- <div *ngIf=\"ArabicFormControl.valid\">{{resetError()}}</div> -->\r\n \r\n <div *ngIf=\"group.valid\">{{resetError()}}</div>\r\n\r\n </div>\r\n \r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n</div>\r\n",
|
|
1442
1474
|
styles: [".example-form{min-width:150px;max-width:500px;width:100%}.example-full-width{width:100%}\n"]
|
|
1443
1475
|
},] }
|
|
1444
1476
|
];
|
|
1445
1477
|
MultiLingualTextBoxComponent.ctorParameters = function () { return [
|
|
1446
|
-
{ type: ErrorMassageValidation },
|
|
1447
1478
|
{ type: forms.FormGroupDirective },
|
|
1448
1479
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
1449
1480
|
{ type: ControlUtility },
|
|
1450
1481
|
{ type: bbsfUtilities.UtilityService },
|
|
1451
1482
|
{ type: bbsfUtilities.BBSFTranslateService },
|
|
1452
|
-
{ type: bbsfUtilities.ControlValidationService }
|
|
1483
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
1484
|
+
{ type: GlobalSettings }
|
|
1453
1485
|
]; };
|
|
1454
1486
|
MultiLingualTextBoxComponent.propDecorators = {
|
|
1455
1487
|
group: [{ type: i0.Input }],
|
|
@@ -1458,14 +1490,14 @@
|
|
|
1458
1490
|
};
|
|
1459
1491
|
|
|
1460
1492
|
var TextAreaComponent = /** @class */ (function () {
|
|
1461
|
-
function TextAreaComponent(
|
|
1493
|
+
function TextAreaComponent(controlUtility, controlContainer, TextAreaControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
1462
1494
|
var _this = this;
|
|
1463
|
-
this.ErrorHandler = ErrorHandler;
|
|
1464
1495
|
this.controlUtility = controlUtility;
|
|
1465
1496
|
this.controlContainer = controlContainer;
|
|
1466
1497
|
this.TextAreaControlHost = TextAreaControlHost;
|
|
1467
1498
|
this.UtilityService = UtilityService;
|
|
1468
1499
|
this.controlValidationService = controlValidationService;
|
|
1500
|
+
this.globalSettings = globalSettings;
|
|
1469
1501
|
this.OnChange = new i0.EventEmitter();
|
|
1470
1502
|
this.WordCount = 0;
|
|
1471
1503
|
this.WordCountArray = 0;
|
|
@@ -1503,6 +1535,8 @@
|
|
|
1503
1535
|
this.controlValidationService.isCreatedBefor = false;
|
|
1504
1536
|
this.group.addControl(this.options.Name, new forms.FormControl(''));
|
|
1505
1537
|
this.TextAreaFormControl = this.group.controls[this.options.Name]; // new FormControl('',validationRules);
|
|
1538
|
+
if (!this.options.ViewType)
|
|
1539
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
1506
1540
|
if (this.options.LabelKey != null && this.options.LabelKey != "")
|
|
1507
1541
|
this.options.LabelValue = this.UtilityService.getResourceValue(this.options.LabelKey);
|
|
1508
1542
|
this.TextAreaFormControl.setValue(this.options.Value);
|
|
@@ -1590,12 +1624,12 @@
|
|
|
1590
1624
|
},] }
|
|
1591
1625
|
];
|
|
1592
1626
|
TextAreaComponent.ctorParameters = function () { return [
|
|
1593
|
-
{ type: ErrorMassageValidation },
|
|
1594
1627
|
{ type: ControlUtility },
|
|
1595
1628
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
1596
1629
|
{ type: forms.FormGroupDirective },
|
|
1597
1630
|
{ type: bbsfUtilities.UtilityService },
|
|
1598
|
-
{ type: bbsfUtilities.ControlValidationService }
|
|
1631
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
1632
|
+
{ type: GlobalSettings }
|
|
1599
1633
|
]; };
|
|
1600
1634
|
TextAreaComponent.propDecorators = {
|
|
1601
1635
|
group: [{ type: i0.Input }],
|
|
@@ -1604,15 +1638,14 @@
|
|
|
1604
1638
|
};
|
|
1605
1639
|
|
|
1606
1640
|
var MultiLingualTextAreaComponent = /** @class */ (function () {
|
|
1607
|
-
function MultiLingualTextAreaComponent(
|
|
1641
|
+
function MultiLingualTextAreaComponent(MultiLingualTextAreaFormControlHost, controlContainer, controlUtility, UtilityService, controlValidationService, globalSettings) {
|
|
1608
1642
|
var _this = this;
|
|
1609
|
-
this.ErrorHandler = ErrorHandler;
|
|
1610
1643
|
this.MultiLingualTextAreaFormControlHost = MultiLingualTextAreaFormControlHost;
|
|
1611
1644
|
this.controlContainer = controlContainer;
|
|
1612
1645
|
this.controlUtility = controlUtility;
|
|
1613
1646
|
this.UtilityService = UtilityService;
|
|
1614
|
-
this.translate = translate;
|
|
1615
1647
|
this.controlValidationService = controlValidationService;
|
|
1648
|
+
this.globalSettings = globalSettings;
|
|
1616
1649
|
this.OnChange = new i0.EventEmitter();
|
|
1617
1650
|
this.ArabicWordCount = 0;
|
|
1618
1651
|
this.ArabicWordCountArray = 0;
|
|
@@ -1680,6 +1713,12 @@
|
|
|
1680
1713
|
// this.CurrentLanguage = event.lang
|
|
1681
1714
|
// this.showInputUsingLanguageMode();
|
|
1682
1715
|
// });
|
|
1716
|
+
if (!this.options.ViewType)
|
|
1717
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
1718
|
+
if (!this.options.LanguageMode)
|
|
1719
|
+
this.options.LanguageMode = this.globalSettings.LanguageMode;
|
|
1720
|
+
if (!this.options.MultiControlPlacementType)
|
|
1721
|
+
this.options.MultiControlPlacementType = this.globalSettings.MultiControlPlacementType;
|
|
1683
1722
|
if (this.options.ArabicLabelKey != null && this.options.ArabicLabelKey != "")
|
|
1684
1723
|
this.options.ArabicLabelValue = this.UtilityService.getResourceValue(this.options.ArabicLabelKey);
|
|
1685
1724
|
if (this.options.EnglishLabelKey != null && this.options.EnglishLabelKey != "")
|
|
@@ -1918,13 +1957,12 @@
|
|
|
1918
1957
|
},] }
|
|
1919
1958
|
];
|
|
1920
1959
|
MultiLingualTextAreaComponent.ctorParameters = function () { return [
|
|
1921
|
-
{ type: ErrorMassageValidation },
|
|
1922
1960
|
{ type: forms.FormGroupDirective },
|
|
1923
1961
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
1924
1962
|
{ type: ControlUtility },
|
|
1925
1963
|
{ type: bbsfUtilities.UtilityService },
|
|
1926
|
-
{ type: bbsfUtilities.
|
|
1927
|
-
{ type:
|
|
1964
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
1965
|
+
{ type: GlobalSettings }
|
|
1928
1966
|
]; };
|
|
1929
1967
|
MultiLingualTextAreaComponent.propDecorators = {
|
|
1930
1968
|
group: [{ type: i0.Input }],
|
|
@@ -2044,15 +2082,15 @@
|
|
|
2044
2082
|
|
|
2045
2083
|
var DropdownListComponent = /** @class */ (function () {
|
|
2046
2084
|
// tslint:disable-next-line: max-line-length
|
|
2047
|
-
function DropdownListComponent(onChangeService, controlUtility, controlContainer, DropdownListControlHost, UtilityService,
|
|
2085
|
+
function DropdownListComponent(onChangeService, controlUtility, controlContainer, DropdownListControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
2048
2086
|
var _this = this;
|
|
2049
2087
|
this.onChangeService = onChangeService;
|
|
2050
2088
|
this.controlUtility = controlUtility;
|
|
2051
2089
|
this.controlContainer = controlContainer;
|
|
2052
2090
|
this.DropdownListControlHost = DropdownListControlHost;
|
|
2053
2091
|
this.UtilityService = UtilityService;
|
|
2054
|
-
this.translate = translate;
|
|
2055
2092
|
this.controlValidationService = controlValidationService;
|
|
2093
|
+
this.globalSettings = globalSettings;
|
|
2056
2094
|
this.dropdownSettings = {};
|
|
2057
2095
|
this.SelectedList = [];
|
|
2058
2096
|
this.OnChange = new i0.EventEmitter();
|
|
@@ -2115,6 +2153,8 @@
|
|
|
2115
2153
|
};
|
|
2116
2154
|
this.group.addControl(this.options.Name, new forms.FormControl(''));
|
|
2117
2155
|
this.DropdownListFormControl = this.group.controls[this.options.Name]; // new FormControl('',validationRules);
|
|
2156
|
+
if (!this.options.ViewType)
|
|
2157
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
2118
2158
|
if (this.options.CustomValidation.length > 0) {
|
|
2119
2159
|
var Validations = this.options.CustomValidation;
|
|
2120
2160
|
for (var index = 0; index < Validations.length; index++) {
|
|
@@ -2192,7 +2232,7 @@
|
|
|
2192
2232
|
{ type: i0.Component, args: [{
|
|
2193
2233
|
// tslint:disable-next-line: component-selector
|
|
2194
2234
|
selector: 'BBSF-DropdownList',
|
|
2195
|
-
template: "<div class=\"b-control b-dropdown-list\">\r\n
|
|
2235
|
+
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 [searchable]=\"true\" [clearable]=\"true\" placeholder=\"{{options.Placeholder}}\" id=\"{{options.Name}}\"\r\n [selectableGroup]=\"true\" [selectableGroupAsModel]=\"false\" formControlName=\"{{options.Name}}\"\r\n [(ngModel)]=\"SelectedList\" (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>",
|
|
2196
2236
|
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"]
|
|
2197
2237
|
},] }
|
|
2198
2238
|
];
|
|
@@ -2202,8 +2242,8 @@
|
|
|
2202
2242
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
2203
2243
|
{ type: forms.FormGroupDirective },
|
|
2204
2244
|
{ type: bbsfUtilities.UtilityService },
|
|
2205
|
-
{ type: bbsfUtilities.
|
|
2206
|
-
{ type:
|
|
2245
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
2246
|
+
{ type: GlobalSettings }
|
|
2207
2247
|
]; };
|
|
2208
2248
|
DropdownListComponent.propDecorators = {
|
|
2209
2249
|
group: [{ type: i0.Input }],
|
|
@@ -2214,14 +2254,14 @@
|
|
|
2214
2254
|
|
|
2215
2255
|
var PhoneComponent = /** @class */ (function () {
|
|
2216
2256
|
// tslint:disable-next-line: max-line-length
|
|
2217
|
-
function PhoneComponent(
|
|
2257
|
+
function PhoneComponent(controlUtility, controlContainer, PhoneControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
2218
2258
|
var _this = this;
|
|
2219
|
-
this.ErrorHandler = ErrorHandler;
|
|
2220
2259
|
this.controlUtility = controlUtility;
|
|
2221
2260
|
this.controlContainer = controlContainer;
|
|
2222
2261
|
this.PhoneControlHost = PhoneControlHost;
|
|
2223
2262
|
this.UtilityService = UtilityService;
|
|
2224
2263
|
this.controlValidationService = controlValidationService;
|
|
2264
|
+
this.globalSettings = globalSettings;
|
|
2225
2265
|
this.OnChange = new i0.EventEmitter();
|
|
2226
2266
|
this.SearchCountryField = ngxIntlTelInput.SearchCountryField;
|
|
2227
2267
|
// TooltipLabel = TooltipLabel;
|
|
@@ -2259,6 +2299,8 @@
|
|
|
2259
2299
|
this.controlValidationService.isCreatedBefor = false;
|
|
2260
2300
|
this.group.addControl(this.options.Name, new forms.FormControl(''));
|
|
2261
2301
|
this.PhoneFormControl = this.group.controls[this.options.Name]; // new FormControl('',validationRules);
|
|
2302
|
+
if (!this.options.ViewType)
|
|
2303
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
2262
2304
|
if (this.options.IsRequired) {
|
|
2263
2305
|
this.validationRules.push(forms.Validators.required);
|
|
2264
2306
|
}
|
|
@@ -2310,12 +2352,12 @@
|
|
|
2310
2352
|
},] }
|
|
2311
2353
|
];
|
|
2312
2354
|
PhoneComponent.ctorParameters = function () { return [
|
|
2313
|
-
{ type: ErrorMassageValidation },
|
|
2314
2355
|
{ type: ControlUtility },
|
|
2315
2356
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
2316
2357
|
{ type: forms.FormGroupDirective },
|
|
2317
2358
|
{ type: bbsfUtilities.UtilityService },
|
|
2318
|
-
{ type: bbsfUtilities.ControlValidationService }
|
|
2359
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
2360
|
+
{ type: GlobalSettings }
|
|
2319
2361
|
]; };
|
|
2320
2362
|
PhoneComponent.propDecorators = {
|
|
2321
2363
|
group: [{ type: i0.Input }],
|
|
@@ -2325,24 +2367,25 @@
|
|
|
2325
2367
|
|
|
2326
2368
|
var ToggleslideComponent = /** @class */ (function () {
|
|
2327
2369
|
// tslint:disable-next-line: max-line-length
|
|
2328
|
-
function ToggleslideComponent(
|
|
2329
|
-
this.ErrorHandler = ErrorHandler;
|
|
2370
|
+
function ToggleslideComponent(controlUtility, controlContainer, ToggleslideControlHost, TextControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
2330
2371
|
this.controlUtility = controlUtility;
|
|
2331
2372
|
this.controlContainer = controlContainer;
|
|
2332
2373
|
this.ToggleslideControlHost = ToggleslideControlHost;
|
|
2333
2374
|
this.TextControlHost = TextControlHost;
|
|
2334
2375
|
this.UtilityService = UtilityService;
|
|
2335
2376
|
this.controlValidationService = controlValidationService;
|
|
2377
|
+
this.globalSettings = globalSettings;
|
|
2336
2378
|
this.SlideValue = false;
|
|
2337
2379
|
ToggleslideComponent.controlContainerstatic = this.controlContainer;
|
|
2338
2380
|
}
|
|
2339
2381
|
ToggleslideComponent.prototype.ngOnInit = function () {
|
|
2340
|
-
;
|
|
2341
2382
|
this.group.addControl(this.options.Name, new forms.FormControl(''));
|
|
2342
2383
|
this.ToggleslideFormControl = this.group.controls[this.options.Name]; // new FormControl('',validationRules);
|
|
2343
2384
|
var validationRules = [];
|
|
2344
2385
|
var validationRulesasync = [];
|
|
2345
2386
|
this.SlideValue = this.options.Value == undefined ? false : this.options.Value;
|
|
2387
|
+
if (!this.options.ViewType)
|
|
2388
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
2346
2389
|
if (this.options.IsDisabled) {
|
|
2347
2390
|
this.ToggleslideFormControl.disable();
|
|
2348
2391
|
}
|
|
@@ -2377,13 +2420,13 @@
|
|
|
2377
2420
|
},] }
|
|
2378
2421
|
];
|
|
2379
2422
|
ToggleslideComponent.ctorParameters = function () { return [
|
|
2380
|
-
{ type: ErrorMassageValidation },
|
|
2381
2423
|
{ type: ControlUtility },
|
|
2382
2424
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
2383
2425
|
{ type: forms.FormGroupDirective },
|
|
2384
2426
|
{ type: forms.FormGroupDirective },
|
|
2385
2427
|
{ type: bbsfUtilities.UtilityService },
|
|
2386
|
-
{ type: bbsfUtilities.ControlValidationService }
|
|
2428
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
2429
|
+
{ type: GlobalSettings }
|
|
2387
2430
|
]; };
|
|
2388
2431
|
ToggleslideComponent.propDecorators = {
|
|
2389
2432
|
group: [{ type: i0.Input }],
|
|
@@ -2391,15 +2434,15 @@
|
|
|
2391
2434
|
};
|
|
2392
2435
|
|
|
2393
2436
|
var HtmlEditorComponent = /** @class */ (function () {
|
|
2394
|
-
function HtmlEditorComponent(zone, controlUtility, controlContainer, HtmlEditorControlHost, UtilityService,
|
|
2437
|
+
function HtmlEditorComponent(zone, controlUtility, controlContainer, HtmlEditorControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
2395
2438
|
var _this = this;
|
|
2396
2439
|
this.zone = zone;
|
|
2397
2440
|
this.controlUtility = controlUtility;
|
|
2398
2441
|
this.controlContainer = controlContainer;
|
|
2399
2442
|
this.HtmlEditorControlHost = HtmlEditorControlHost;
|
|
2400
2443
|
this.UtilityService = UtilityService;
|
|
2401
|
-
this.translate = translate;
|
|
2402
2444
|
this.controlValidationService = controlValidationService;
|
|
2445
|
+
this.globalSettings = globalSettings;
|
|
2403
2446
|
this.OnChange = new i0.EventEmitter();
|
|
2404
2447
|
this.WordCount = 0;
|
|
2405
2448
|
this.WordCountArray = 0;
|
|
@@ -2517,6 +2560,8 @@
|
|
|
2517
2560
|
this.group.addControl(this.options.Name, new forms.FormControl(''));
|
|
2518
2561
|
this.HtmlEditorFormControl = this.group.controls[this.options.Name]; // new FormControl('',validationRules);
|
|
2519
2562
|
this.HtmlEditorFormControl.setValue(this.options.Value);
|
|
2563
|
+
if (!this.options.ViewType)
|
|
2564
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
2520
2565
|
if (this.options.CustomValidation.length > 0) {
|
|
2521
2566
|
var Validations = this.options.CustomValidation;
|
|
2522
2567
|
for (var index = 0; index < Validations.length; index++) {
|
|
@@ -2582,8 +2627,8 @@
|
|
|
2582
2627
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
2583
2628
|
{ type: forms.FormGroupDirective },
|
|
2584
2629
|
{ type: bbsfUtilities.UtilityService },
|
|
2585
|
-
{ type: bbsfUtilities.
|
|
2586
|
-
{ type:
|
|
2630
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
2631
|
+
{ type: GlobalSettings }
|
|
2587
2632
|
]; };
|
|
2588
2633
|
HtmlEditorComponent.propDecorators = {
|
|
2589
2634
|
group: [{ type: i0.Input }],
|
|
@@ -2592,15 +2637,14 @@
|
|
|
2592
2637
|
};
|
|
2593
2638
|
|
|
2594
2639
|
var MultiLingualHtmlEditorComponent = /** @class */ (function () {
|
|
2595
|
-
function MultiLingualHtmlEditorComponent(
|
|
2640
|
+
function MultiLingualHtmlEditorComponent(MultiLingualHtmlEditorFormControlHost, controlContainer, controlUtility, UtilityService, controlValidationService, globalSettings) {
|
|
2596
2641
|
var _this = this;
|
|
2597
|
-
this.ErrorHandler = ErrorHandler;
|
|
2598
2642
|
this.MultiLingualHtmlEditorFormControlHost = MultiLingualHtmlEditorFormControlHost;
|
|
2599
2643
|
this.controlContainer = controlContainer;
|
|
2600
2644
|
this.controlUtility = controlUtility;
|
|
2601
2645
|
this.UtilityService = UtilityService;
|
|
2602
|
-
this.translate = translate;
|
|
2603
2646
|
this.controlValidationService = controlValidationService;
|
|
2647
|
+
this.globalSettings = globalSettings;
|
|
2604
2648
|
this.OnChange = new i0.EventEmitter();
|
|
2605
2649
|
this.CurrentLanguage = "";
|
|
2606
2650
|
this.ArabicValidationRules = [];
|
|
@@ -2612,6 +2656,8 @@
|
|
|
2612
2656
|
this.validationRulesasync = [];
|
|
2613
2657
|
this.ArabicLetterOnly = "";
|
|
2614
2658
|
this.EnglishLetterOnly = "";
|
|
2659
|
+
this.englishValue = null;
|
|
2660
|
+
this.arabicValue = null;
|
|
2615
2661
|
this.resetError = function () {
|
|
2616
2662
|
_this.controlValidationService.RemoveGlobalError();
|
|
2617
2663
|
};
|
|
@@ -2654,6 +2700,10 @@
|
|
|
2654
2700
|
return __generator(this, function (_b) {
|
|
2655
2701
|
switch (_b.label) {
|
|
2656
2702
|
case 0:
|
|
2703
|
+
if (!this.options.ViewType)
|
|
2704
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
2705
|
+
if (!this.options.LanguageMode)
|
|
2706
|
+
this.options.LanguageMode = this.globalSettings.LanguageMode;
|
|
2657
2707
|
this.editorEnglishConfig = {
|
|
2658
2708
|
editable: !this.options.IsDisabled,
|
|
2659
2709
|
spellcheck: true,
|
|
@@ -2844,30 +2894,37 @@
|
|
|
2844
2894
|
});
|
|
2845
2895
|
});
|
|
2846
2896
|
};
|
|
2847
|
-
MultiLingualHtmlEditorComponent.prototype.onTextChange = function () {
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
this.MultilingualHtmlEditorgroup.controls["ArabicHtmlEditorValue"].
|
|
2862
|
-
this.
|
|
2897
|
+
MultiLingualHtmlEditorComponent.prototype.onTextChange = function (type) {
|
|
2898
|
+
if (type == "en") {
|
|
2899
|
+
this.englishValue = this.MultilingualHtmlEditorgroup.controls["EnglishHtmlEditorValue"].value == null ? "" : this.MultilingualHtmlEditorgroup.controls["EnglishHtmlEditorValue"].value;
|
|
2900
|
+
if (this.englishValue)
|
|
2901
|
+
this.EnglishHtmlEditorFormControl.setValue(this.englishValue);
|
|
2902
|
+
var EngliswordCountArray = this.EnglishHtmlEditorFormControl.value.split(" ").length;
|
|
2903
|
+
if (EngliswordCountArray > 0) {
|
|
2904
|
+
if (EngliswordCountArray > this.options.MaxWordCount)
|
|
2905
|
+
this.MultilingualHtmlEditorgroup.controls["EnglishHtmlEditorValue"].setErrors({ MaxWordCountValidationKey: this.options.MaxWordCount });
|
|
2906
|
+
this.MultilingualHtmlEditorgroup.controls["EnglishHtmlEditorValue"].markAsTouched();
|
|
2907
|
+
this.MultilingualHtmlEditorgroup.controls["EnglishHtmlEditorValue"].invalid;
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
if (type == "ar") {
|
|
2911
|
+
this.arabicValue = this.MultilingualHtmlEditorgroup.controls["ArabicHtmlEditorValue"].value == null ? "" : this.MultilingualHtmlEditorgroup.controls["ArabicHtmlEditorValue"].value;
|
|
2912
|
+
if (this.arabicValue)
|
|
2913
|
+
this.ArabicHtmlEditorFormControl.setValue(this.arabicValue);
|
|
2914
|
+
var ArabicwordCountArray = this.ArabicHtmlEditorFormControl.value.split(" ").length;
|
|
2915
|
+
if (ArabicwordCountArray > 0) {
|
|
2916
|
+
if (ArabicwordCountArray > this.options.MaxWordCount)
|
|
2917
|
+
this.MultilingualHtmlEditorgroup.controls["ArabicHtmlEditorValue"].setErrors({ MaxWordCountValidationKey: this.options.MaxWordCount });
|
|
2918
|
+
this.MultilingualHtmlEditorgroup.controls["ArabicHtmlEditorValue"].markAsTouched();
|
|
2919
|
+
this.MultilingualHtmlEditorgroup.controls["ArabicHtmlEditorValue"].invalid;
|
|
2920
|
+
}
|
|
2863
2921
|
}
|
|
2864
2922
|
var mulitLangModel = new EnglishArabicDTO();
|
|
2865
|
-
mulitLangModel.Arabic = arabicValue;
|
|
2866
|
-
mulitLangModel.English = englishValue;
|
|
2867
|
-
this.ArabicHtmlEditorFormControl.setValue(arabicValue);
|
|
2868
|
-
this.EnglishHtmlEditorFormControl.setValue(englishValue);
|
|
2923
|
+
mulitLangModel.Arabic = this.arabicValue;
|
|
2924
|
+
mulitLangModel.English = this.englishValue;
|
|
2869
2925
|
this.OnChange.emit(mulitLangModel);
|
|
2870
|
-
this.
|
|
2926
|
+
if (this.arabicValue && this.englishValue)
|
|
2927
|
+
this.group.get(this.options.Name).setValue(mulitLangModel);
|
|
2871
2928
|
};
|
|
2872
2929
|
MultiLingualHtmlEditorComponent.prototype.showGlobalError = function () {
|
|
2873
2930
|
this.controlUtility.showGlobalError();
|
|
@@ -2959,18 +3016,17 @@
|
|
|
2959
3016
|
MultiLingualHtmlEditorComponent.decorators = [
|
|
2960
3017
|
{ type: i0.Component, args: [{
|
|
2961
3018
|
selector: 'BBSF-MultiLingualHtmlEditor',
|
|
2962
|
-
template: "<div class=\"b-control b-multilangual-html-editor\">\r\n <div class=\"form-group validate is-invalid\" [formGroup]=\"group\">\r\n\r\n <div class=\"form-group row\" [formGroup]=\"MultilingualHtmlEditorgroup\">\r\n <div class=\"col-lg-6\">\r\n <div class=\"row\" *ngIf=\"ShowEnglishHtmlEditor\">\r\n <label class=\"b-label col-form-label col-sm-12 \" \r\n [ngClass]=\"(options.ViewType==1)?'col-md-9':'col-md-3'\"\r\n [hidden]=\"options.IsHideEnglishLabel\">\r\n {{(options.EnglishLabelValue!=null&&options.EnglishLabelValue!=\"\")?options.EnglishLabelValue:options.LabelValue+\"in English\"}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\"\r\n class=\"text-danger Required-text\" 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 \r\n <angular-editor
|
|
3019
|
+
template: "<div class=\"b-control b-multilangual-html-editor\">\r\n <div class=\"form-group validate is-invalid\" [formGroup]=\"group\">\r\n\r\n <div class=\"form-group row\" [formGroup]=\"MultilingualHtmlEditorgroup\">\r\n <div class=\"col-lg-6\">\r\n <div class=\"row\" *ngIf=\"ShowEnglishHtmlEditor\">\r\n <label class=\"b-label col-form-label col-sm-12 \" \r\n [ngClass]=\"(options.ViewType==1)?'col-md-9':'col-md-3'\"\r\n [hidden]=\"options.IsHideEnglishLabel\">\r\n {{(options.EnglishLabelValue!=null&&options.EnglishLabelValue!=\"\")?options.EnglishLabelValue:options.LabelValue+\"in English\"}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\"\r\n class=\"text-danger Required-text\" 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 \r\n <angular-editor class=\"form-control bnsights-control {{options.ExtraClasses_EN}} \" (change)=\"onTextChange('en')\" [class.is-invalid]=\"EnglishHtmlEditorFormControl.invalid && EnglishHtmlEditorFormControl.touched\"\r\n formControlName=\"EnglishHtmlEditorValue\" [config]=\"editorEnglishConfig\"></angular-editor>\r\n\r\n <div class=\"text-danger Required-text\"\r\n *ngIf=\"(EnglishHtmlEditorFormControl.invalid && EnglishHtmlEditorFormControl.touched)\">\r\n {{getErrorValidation(EnglishHtmlEditorFormControl.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\">\r\n {{(options.EnglishLabelDescription!=null&&options.EnglishLabelDescription!=\"\")?options.EnglishLabelDescription:options.LabelDescription}}\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"(group.valid&&group.dirty&&group.touched )||(group.untouched&&group.invalid&&group.dirty) \">{{resetError()}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-lg-6\">\r\n <div class=\"row\" *ngIf=\"ShowArabicHtmlEditor\">\r\n\r\n <label class=\"b-label col-form-label col-sm-12 \"\r\n [ngClass]=\"(options.ViewType==1)?'col-md-12':'col-md-3'\"\r\n [hidden]=\"options.IsHideArabicLable\">\r\n {{(options.ArabicLabelValue!=null&&options.ArabicLabelValue!=\"\")?options.ArabicLabelValue:options.LabelValue+\"in Arabic\"}}\r\n <span *ngIf=\"(options.ShowAsterisk&&options.IsRequired)||(options.IsRequired)\"\r\n class=\"text-danger Required-text\" aria-required=\"true\">*</span>\r\n </label>\r\n <div class=\" col-sm-12\" [ngClass]=\"(options.ViewType==1)?'':'col-md-9'\">\r\n \r\n\r\n <angular-editor dir=\"rtl\" class=\"form-control bnsights-control {{options.ExtraClasses_AR}} \" (change)=\"onTextChange('ar')\" [class.is-invalid]=\"ArabicHtmlEditorFormControl.invalid && ArabicHtmlEditorFormControl.touched\"\r\n formControlName=\"ArabicHtmlEditorValue\" [config]=\"editorArabicConfig\"></angular-editor>\r\n\r\n <div class=\"text-danger Required-text\"\r\n *ngIf=\"(ArabicHtmlEditorFormControl.invalid && ArabicHtmlEditorFormControl.touched)\">\r\n {{getErrorValidation(ArabicHtmlEditorFormControl.errors|keyvalue)}}\r\n </div>\r\n\r\n \r\n\r\n <div class=\"d-flex justify-content-between align-items-center\">\r\n <div class=\"control-desc text-dark\">\r\n {{(options.ArabicLabelDescription!=null&&options.ArabicLabelDescription!=\"\")?options.ArabicLabelDescription:options.LabelDescription}}\r\n </div>\r\n </div>\r\n\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\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n </div>\r\n\r\n</div>\r\n",
|
|
2963
3020
|
styles: [".example-form{min-width:150px;max-width:500px;width:100%}.example-full-width{width:100%}\n"]
|
|
2964
3021
|
},] }
|
|
2965
3022
|
];
|
|
2966
3023
|
MultiLingualHtmlEditorComponent.ctorParameters = function () { return [
|
|
2967
|
-
{ type: ErrorMassageValidation },
|
|
2968
3024
|
{ type: forms.FormGroupDirective },
|
|
2969
3025
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
2970
3026
|
{ type: ControlUtility },
|
|
2971
3027
|
{ type: bbsfUtilities.UtilityService },
|
|
2972
|
-
{ type: bbsfUtilities.
|
|
2973
|
-
{ type:
|
|
3028
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
3029
|
+
{ type: GlobalSettings }
|
|
2974
3030
|
]; };
|
|
2975
3031
|
MultiLingualHtmlEditorComponent.propDecorators = {
|
|
2976
3032
|
group: [{ type: i0.Input }],
|
|
@@ -2979,16 +3035,15 @@
|
|
|
2979
3035
|
};
|
|
2980
3036
|
|
|
2981
3037
|
var ImageUploaderComponent = /** @class */ (function () {
|
|
2982
|
-
function ImageUploaderComponent(zone,
|
|
3038
|
+
function ImageUploaderComponent(zone, controlUtility, controlContainer, ImageUplaoderControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
2983
3039
|
var _this = this;
|
|
2984
3040
|
this.zone = zone;
|
|
2985
|
-
this.ErrorHandler = ErrorHandler;
|
|
2986
3041
|
this.controlUtility = controlUtility;
|
|
2987
3042
|
this.controlContainer = controlContainer;
|
|
2988
3043
|
this.ImageUplaoderControlHost = ImageUplaoderControlHost;
|
|
2989
3044
|
this.UtilityService = UtilityService;
|
|
2990
|
-
this.translate = translate;
|
|
2991
3045
|
this.controlValidationService = controlValidationService;
|
|
3046
|
+
this.globalSettings = globalSettings;
|
|
2992
3047
|
this.files = [];
|
|
2993
3048
|
this.ImageSource = "./src/assets/images/uploadimg.png";
|
|
2994
3049
|
this.OnChange = new i0.EventEmitter();
|
|
@@ -3036,6 +3091,8 @@
|
|
|
3036
3091
|
ImageUploaderComponent.prototype.ngOnInit = function () {
|
|
3037
3092
|
var _this = this;
|
|
3038
3093
|
this.controlValidationService.isCreatedBefor = false;
|
|
3094
|
+
if (!this.options.ViewType)
|
|
3095
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
3039
3096
|
if (this.options.DefaultImageSrc != null && this.options.DefaultImageSrc != "")
|
|
3040
3097
|
this.ImageSource = this.options.DefaultImageSrc;
|
|
3041
3098
|
if (this.options.AllowImageCropper) {
|
|
@@ -3122,6 +3179,10 @@
|
|
|
3122
3179
|
}
|
|
3123
3180
|
}
|
|
3124
3181
|
};
|
|
3182
|
+
ImageUploaderComponent.prototype.showImageUploader = function (element) {
|
|
3183
|
+
var input = element.parentElement.parentElement.querySelector('input[type=file]');
|
|
3184
|
+
input.click();
|
|
3185
|
+
};
|
|
3125
3186
|
ImageUploaderComponent.prototype.showGlobalError = function () {
|
|
3126
3187
|
this.controlUtility.showGlobalError();
|
|
3127
3188
|
};
|
|
@@ -3267,19 +3328,18 @@
|
|
|
3267
3328
|
ImageUploaderComponent.decorators = [
|
|
3268
3329
|
{ type: i0.Component, args: [{
|
|
3269
3330
|
selector: 'BBSF-ImageUpload',
|
|
3270
|
-
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]=\"options.FileMaxSizeInMB\"\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\"
|
|
3331
|
+
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]=\"options.FileMaxSizeInMB\"\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]=\"options.FileMaxSizeInMB\"\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 Crop Image\r\n </h4>\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> Cancel\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 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\"\r\n *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\r\n <div *ngIf=\"(group.valid&&group.dirty&&group.touched )||(group.untouched&&group.invalid&&group.dirty) \">{{resetError()}}</div>\r\n\r\n </div>\r\n\r\n </div>\r\n</div>\r\n",
|
|
3271
3332
|
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"]
|
|
3272
3333
|
},] }
|
|
3273
3334
|
];
|
|
3274
3335
|
ImageUploaderComponent.ctorParameters = function () { return [
|
|
3275
3336
|
{ type: i0.NgZone },
|
|
3276
|
-
{ type: ErrorMassageValidation },
|
|
3277
3337
|
{ type: ControlUtility },
|
|
3278
3338
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
3279
3339
|
{ type: forms.FormGroupDirective },
|
|
3280
3340
|
{ type: bbsfUtilities.UtilityService },
|
|
3281
|
-
{ type: bbsfUtilities.
|
|
3282
|
-
{ type:
|
|
3341
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
3342
|
+
{ type: GlobalSettings }
|
|
3283
3343
|
]; };
|
|
3284
3344
|
ImageUploaderComponent.propDecorators = {
|
|
3285
3345
|
fileInput: [{ type: i0.ViewChild, args: ['fileInput', { static: false },] }],
|
|
@@ -3296,15 +3356,15 @@
|
|
|
3296
3356
|
}());
|
|
3297
3357
|
|
|
3298
3358
|
var ProfileImageUploaderComponent = /** @class */ (function () {
|
|
3299
|
-
function ProfileImageUploaderComponent(zone,
|
|
3359
|
+
function ProfileImageUploaderComponent(zone, controlUtility, controlContainer, ProfileImageUploaderControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
3300
3360
|
var _this = this;
|
|
3301
3361
|
this.zone = zone;
|
|
3302
|
-
this.ErrorHandler = ErrorHandler;
|
|
3303
3362
|
this.controlUtility = controlUtility;
|
|
3304
3363
|
this.controlContainer = controlContainer;
|
|
3305
3364
|
this.ProfileImageUploaderControlHost = ProfileImageUploaderControlHost;
|
|
3306
3365
|
this.UtilityService = UtilityService;
|
|
3307
3366
|
this.controlValidationService = controlValidationService;
|
|
3367
|
+
this.globalSettings = globalSettings;
|
|
3308
3368
|
this.files = [];
|
|
3309
3369
|
this.ImageSource = "./src/assets/images/userimg.png";
|
|
3310
3370
|
this.OnChange = new i0.EventEmitter();
|
|
@@ -3353,6 +3413,8 @@
|
|
|
3353
3413
|
ProfileImageUploaderComponent.prototype.ngOnInit = function () {
|
|
3354
3414
|
var _this = this;
|
|
3355
3415
|
this.controlValidationService.isCreatedBefor = false;
|
|
3416
|
+
if (!this.options.ViewType)
|
|
3417
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
3356
3418
|
if (this.options.DefaultImageSrc != null && this.options.DefaultImageSrc != "")
|
|
3357
3419
|
this.ImageSource = this.options.DefaultImageSrc;
|
|
3358
3420
|
this.config = {
|
|
@@ -3423,6 +3485,10 @@
|
|
|
3423
3485
|
}
|
|
3424
3486
|
}
|
|
3425
3487
|
};
|
|
3488
|
+
ProfileImageUploaderComponent.prototype.showImageUploader = function (element) {
|
|
3489
|
+
var input = element.parentElement.parentElement.querySelector('input[type=file]');
|
|
3490
|
+
input.click();
|
|
3491
|
+
};
|
|
3426
3492
|
ProfileImageUploaderComponent.prototype.showGlobalError = function () {
|
|
3427
3493
|
this.controlUtility.showGlobalError();
|
|
3428
3494
|
};
|
|
@@ -3605,18 +3671,18 @@
|
|
|
3605
3671
|
ProfileImageUploaderComponent.decorators = [
|
|
3606
3672
|
{ type: i0.Component, args: [{
|
|
3607
3673
|
selector: 'BBSF-ProfileImageUploader',
|
|
3608
|
-
template: "<div class=\"b-control b-profile-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\"></i>\r\n </ejs-tooltip>\r\n\r\n\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\" class=\"ProfileDropBox d-inline-flex h-auto w-auto overflow-hidden m-0 {{options.ExtraClasses}}\" style=\"width:200px;height:200px;overflow:inherit;\" ngx-dropzone\r\n [disabled]=\"options.IsDisabled\" [accept]=\"AcceptedType\" (change)=\"onFileChange($event)\"\r\n aria-describedby=\"email-error\" aria-invalid=\"true\" ngDefaultControl formControlName=\"{{options.Name}}\"\r\n id=\"{{options.Name}}\" [class.is-invalid]=\"ProfileImageUploadFormControl.invalid && ProfileImageUploadFormControl.touched\">\r\n <ngx-dropzone-label class=\"rounded-circle w-100 h-100 m-0\">\r\n <div class=\"h-100\">\r\n <img [src]=\"ImageSource\" class=\"w-100 rounded-circle\" />\r\n </div>\r\n </ngx-dropzone-label>\r\n <ngx-dropzone-image-preview *ngFor=\"let f of files\" ngProjectAs=\"ngx-dropzone-preview\" [file]=\"f\" [removable]=\"true\" (removed)=\"removeFromControlValue(f)\"\r\n class=\"w-100 h-100 m-0\">\r\n\r\n </ngx-dropzone-image-preview>\r\n </div>\r\n\r\n <div class=\"ProfileImageUploadClassSelector\" *ngIf=\"!options.AllowDropZone\" >\r\n <ngx-dropzone-label style=\" border: none !important;width:200px;height:200px;overflow:inherit;\" class=\"d-inline-flex h-auto w-auto overflow-hidden m-0\" *ngIf=\"files.length==0\" >\r\n <div style=\"max-width:200px !important; max-height: 200px !important;\" class=\"h-100 file-fake-input\"
|
|
3674
|
+
template: "<div class=\"b-control b-profile-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\"></i>\r\n </ejs-tooltip>\r\n\r\n\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\" class=\"ProfileDropBox d-inline-flex h-auto w-auto overflow-hidden m-0 {{options.ExtraClasses}}\" style=\"width:200px;height:200px;overflow:inherit;\" ngx-dropzone\r\n [disabled]=\"options.IsDisabled\" [accept]=\"AcceptedType\" (change)=\"onFileChange($event)\"\r\n aria-describedby=\"email-error\" aria-invalid=\"true\" ngDefaultControl formControlName=\"{{options.Name}}\"\r\n id=\"{{options.Name}}\" [class.is-invalid]=\"ProfileImageUploadFormControl.invalid && ProfileImageUploadFormControl.touched\">\r\n <ngx-dropzone-label class=\"rounded-circle w-100 h-100 m-0\">\r\n <div class=\"h-100\">\r\n <img [src]=\"ImageSource\" class=\"w-100 rounded-circle\" />\r\n </div>\r\n </ngx-dropzone-label>\r\n <ngx-dropzone-image-preview *ngFor=\"let f of files\" ngProjectAs=\"ngx-dropzone-preview\" [file]=\"f\" [removable]=\"true\" (removed)=\"removeFromControlValue(f)\"\r\n class=\"w-100 h-100 m-0\">\r\n\r\n </ngx-dropzone-image-preview>\r\n </div>\r\n\r\n <div class=\"ProfileImageUploadClassSelector\" *ngIf=\"!options.AllowDropZone\" >\r\n <ngx-dropzone-label style=\" border: none !important;width:200px;height:200px;overflow:inherit;\" class=\"d-inline-flex h-auto w-auto overflow-hidden 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 class=\"ProfileDropBox rounded-circle {{options.ExtraClasses}}\" style=\" border: none !important;width:200px;height:200px;overflow:inherit;\" ngx-dropzone\r\n [disabled]=\"options.IsDisabled\" [accept]=\"AcceptedType\" (change)=\"onFileChange($event)\"\r\n aria-describedby=\"email-error\" aria-invalid=\"true\" ngDefaultControl formControlName=\"{{options.Name}}\"\r\n id=\"{{options.Name}}\" [class.is-invalid]=\"ProfileImageUploadFormControl.invalid && ProfileImageUploadFormControl.touched\">\r\n \r\n <ngx-dropzone-image-preview class=\"rounded-circle w-100 h-100 m-0\" *ngFor=\"let f of files\" ngProjectAs=\"ngx-dropzone-preview\" [file]=\"f\" [removable]=\"true\" (removed)=\"removeFromControlValue(f)\"\r\n >\r\n\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 Crop Image\r\n </h4>\r\n </div>\r\n <div class=\"modal-body py-5\">\r\n <div *ngIf=\"imageUrl\">\r\n <angular-cropper class=\"ProfileDropBox\" #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> Cancel\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 Crop\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"text-danger Required-text\"\r\n *ngIf=\"(ProfileImageUploadFormControl.invalid && ProfileImageUploadFormControl.touched)\">\r\n {{getErrorValidation(ProfileImageUploadFormControl.errors|keyvalue)}}\r\n</div>\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) \">{{resetError()}}</div>\r\n\r\n </div>\r\n\r\n </div>\r\n</div>\r\n",
|
|
3609
3675
|
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}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer}.modal-body{padding:2px 16px}\n"]
|
|
3610
3676
|
},] }
|
|
3611
3677
|
];
|
|
3612
3678
|
ProfileImageUploaderComponent.ctorParameters = function () { return [
|
|
3613
3679
|
{ type: i0.NgZone },
|
|
3614
|
-
{ type: ErrorMassageValidation },
|
|
3615
3680
|
{ type: ControlUtility },
|
|
3616
3681
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
3617
3682
|
{ type: forms.FormGroupDirective },
|
|
3618
3683
|
{ type: bbsfUtilities.UtilityService },
|
|
3619
|
-
{ type: bbsfUtilities.ControlValidationService }
|
|
3684
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
3685
|
+
{ type: GlobalSettings }
|
|
3620
3686
|
]; };
|
|
3621
3687
|
ProfileImageUploaderComponent.propDecorators = {
|
|
3622
3688
|
fileInput: [{ type: i0.ViewChild, args: ['fileInput', { static: false },] }],
|
|
@@ -3636,16 +3702,17 @@
|
|
|
3636
3702
|
|
|
3637
3703
|
var AutocompleteTextBoxComponent = /** @class */ (function () {
|
|
3638
3704
|
// tslint:disable-next-line: max-line-length
|
|
3639
|
-
function AutocompleteTextBoxComponent(http, ErrorHandler, controlUtility, controlContainer, AutocompleteTextBoxControlHost, UtilityService,
|
|
3705
|
+
function AutocompleteTextBoxComponent(http, ErrorHandler, requestHandlerService, controlUtility, controlContainer, AutocompleteTextBoxControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
3640
3706
|
var _this = this;
|
|
3641
3707
|
this.http = http;
|
|
3642
3708
|
this.ErrorHandler = ErrorHandler;
|
|
3709
|
+
this.requestHandlerService = requestHandlerService;
|
|
3643
3710
|
this.controlUtility = controlUtility;
|
|
3644
3711
|
this.controlContainer = controlContainer;
|
|
3645
3712
|
this.AutocompleteTextBoxControlHost = AutocompleteTextBoxControlHost;
|
|
3646
3713
|
this.UtilityService = UtilityService;
|
|
3647
|
-
this.translate = translate;
|
|
3648
3714
|
this.controlValidationService = controlValidationService;
|
|
3715
|
+
this.globalSettings = globalSettings;
|
|
3649
3716
|
this.OnChange = new i0.EventEmitter();
|
|
3650
3717
|
this.keyword = 'value';
|
|
3651
3718
|
this.Search = '';
|
|
@@ -3720,6 +3787,8 @@
|
|
|
3720
3787
|
this.controlValidationService.isCreatedBefor = false;
|
|
3721
3788
|
this.group.addControl(this.options.Name, new forms.FormControl(''));
|
|
3722
3789
|
this.AutocompleteTextBoxControl = this.group.controls[this.options.Name]; // new FormControl('',validationRules);
|
|
3790
|
+
if (!this.options.ViewType)
|
|
3791
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
3723
3792
|
if (this.options.LabelKey != null && this.options.LabelKey != "")
|
|
3724
3793
|
this.options.LabelValue = this.UtilityService.getResourceValue(this.options.LabelKey);
|
|
3725
3794
|
// this.AutocompleteTextBoxControl.setValue(this.options.Value);
|
|
@@ -3762,10 +3831,12 @@
|
|
|
3762
3831
|
if (query) {
|
|
3763
3832
|
var params = new http$1.HttpParams();
|
|
3764
3833
|
params = params.append(_this.options.QueryParam, query);
|
|
3834
|
+
var requestOptionsModel = new bbsfUtilities.RequestOptionsModel();
|
|
3835
|
+
requestOptionsModel.disableBlockUI = true;
|
|
3836
|
+
requestOptionsModel.disableSuccessNotification = true;
|
|
3765
3837
|
// using github public api to get users by name
|
|
3766
|
-
return _this.
|
|
3767
|
-
|
|
3768
|
-
}).pipe(operators.map(function (data) { return data || []; }), operators.tap(function () { return rxjs.noop; }, function (err) {
|
|
3838
|
+
return _this.requestHandlerService.get(_this.options.ActionURL, params, requestOptionsModel)
|
|
3839
|
+
.pipe(operators.map(function (data) { return data || []; }), operators.tap(function () { return rxjs.noop; }, function (err) {
|
|
3769
3840
|
// in case of http error
|
|
3770
3841
|
_this.errorMessage = err && err.message || 'Something goes wrong';
|
|
3771
3842
|
}));
|
|
@@ -3859,12 +3930,13 @@
|
|
|
3859
3930
|
AutocompleteTextBoxComponent.ctorParameters = function () { return [
|
|
3860
3931
|
{ type: http$1.HttpClient },
|
|
3861
3932
|
{ type: ErrorMassageValidation },
|
|
3933
|
+
{ type: bbsfUtilities.RequestHandlerService },
|
|
3862
3934
|
{ type: ControlUtility },
|
|
3863
3935
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
3864
3936
|
{ type: forms.FormGroupDirective },
|
|
3865
3937
|
{ type: bbsfUtilities.UtilityService },
|
|
3866
|
-
{ type: bbsfUtilities.
|
|
3867
|
-
{ type:
|
|
3938
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
3939
|
+
{ type: GlobalSettings }
|
|
3868
3940
|
]; };
|
|
3869
3941
|
AutocompleteTextBoxComponent.propDecorators = {
|
|
3870
3942
|
group: [{ type: i0.Input }],
|
|
@@ -3874,15 +3946,16 @@
|
|
|
3874
3946
|
|
|
3875
3947
|
var TagsInputComponent = /** @class */ (function () {
|
|
3876
3948
|
// tslint:disable-next-line: max-line-length
|
|
3877
|
-
function TagsInputComponent(http,
|
|
3949
|
+
function TagsInputComponent(http, controlUtility, requestHandlerService, controlContainer, TagsInputControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
3878
3950
|
var _this = this;
|
|
3879
3951
|
this.http = http;
|
|
3880
|
-
this.ErrorHandler = ErrorHandler;
|
|
3881
3952
|
this.controlUtility = controlUtility;
|
|
3953
|
+
this.requestHandlerService = requestHandlerService;
|
|
3882
3954
|
this.controlContainer = controlContainer;
|
|
3883
3955
|
this.TagsInputControlHost = TagsInputControlHost;
|
|
3884
3956
|
this.UtilityService = UtilityService;
|
|
3885
3957
|
this.controlValidationService = controlValidationService;
|
|
3958
|
+
this.globalSettings = globalSettings;
|
|
3886
3959
|
this.OnChange = new i0.EventEmitter();
|
|
3887
3960
|
// TagInputControl: AbstractControl;
|
|
3888
3961
|
this.SelectedId = [];
|
|
@@ -3949,6 +4022,8 @@
|
|
|
3949
4022
|
this.TagsFormGroup.addControl("tags", new forms.FormControl(''));
|
|
3950
4023
|
this.TagsFormControl = this.TagsFormGroup.controls["tags"]; // new FormControl('',validationRules);
|
|
3951
4024
|
this.group.addControl(this.options.Name, this.TagsFormControl);
|
|
4025
|
+
if (!this.options.ViewType)
|
|
4026
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
3952
4027
|
if (this.options.LabelKey != null && this.options.LabelKey != "")
|
|
3953
4028
|
this.options.LabelValue = this.UtilityService.getResourceValue(this.options.LabelKey);
|
|
3954
4029
|
// this.group.addControl(this.options.Name, new FormControl(''));
|
|
@@ -4006,21 +4081,11 @@
|
|
|
4006
4081
|
this.controlUtility.CopyInputMessage(inputElement);
|
|
4007
4082
|
};
|
|
4008
4083
|
TagsInputComponent.prototype.searchFunctionFactory = function (Text) {
|
|
4009
|
-
var httpOptions = this.options.ValidationToken != null && this.options.ValidationToken != "" ?
|
|
4010
|
-
{
|
|
4011
|
-
headers: new http$1.HttpHeaders({
|
|
4012
|
-
'Content-Type': 'application/json',
|
|
4013
|
-
'Authorization': this.options.ValidationToken
|
|
4014
|
-
})
|
|
4015
|
-
}
|
|
4016
|
-
:
|
|
4017
|
-
{
|
|
4018
|
-
headers: new http$1.HttpHeaders({
|
|
4019
|
-
'Content-Type': 'application/json',
|
|
4020
|
-
})
|
|
4021
|
-
};
|
|
4022
4084
|
var Url = this.options.ActionURL + "?" + this.options.QueryParamName + "=" + Text + "&" + this.options.SelectedItemsParamName + "=" + this.SelectedId;
|
|
4023
|
-
var
|
|
4085
|
+
var requestOptionsModel = new bbsfUtilities.RequestOptionsModel();
|
|
4086
|
+
requestOptionsModel.disableBlockUI = true;
|
|
4087
|
+
requestOptionsModel.disableSuccessNotification = true;
|
|
4088
|
+
var Model = this.requestHandlerService.get(Url, null, requestOptionsModel);
|
|
4024
4089
|
return Model;
|
|
4025
4090
|
};
|
|
4026
4091
|
TagsInputComponent.prototype.AddTag = function (event, key) {
|
|
@@ -4072,12 +4137,13 @@
|
|
|
4072
4137
|
];
|
|
4073
4138
|
TagsInputComponent.ctorParameters = function () { return [
|
|
4074
4139
|
{ type: http$1.HttpClient },
|
|
4075
|
-
{ type: ErrorMassageValidation },
|
|
4076
4140
|
{ type: ControlUtility },
|
|
4141
|
+
{ type: bbsfUtilities.RequestHandlerService },
|
|
4077
4142
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
4078
4143
|
{ type: forms.FormGroupDirective },
|
|
4079
4144
|
{ type: bbsfUtilities.UtilityService },
|
|
4080
|
-
{ type: bbsfUtilities.ControlValidationService }
|
|
4145
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
4146
|
+
{ type: GlobalSettings }
|
|
4081
4147
|
]; };
|
|
4082
4148
|
TagsInputComponent.propDecorators = {
|
|
4083
4149
|
group: [{ type: i0.Input }],
|
|
@@ -4112,8 +4178,9 @@
|
|
|
4112
4178
|
|
|
4113
4179
|
// tslint:disable-next-line: no-conflicting-lifecycle
|
|
4114
4180
|
var PagingComponent = /** @class */ (function () {
|
|
4115
|
-
function PagingComponent(http, router, onChangeService, requestHandlerService) {
|
|
4181
|
+
function PagingComponent(utilityService, http, router, onChangeService, requestHandlerService) {
|
|
4116
4182
|
var _this = this;
|
|
4183
|
+
this.utilityService = utilityService;
|
|
4117
4184
|
this.http = http;
|
|
4118
4185
|
this.router = router;
|
|
4119
4186
|
this.onChangeService = onChangeService;
|
|
@@ -4308,11 +4375,12 @@
|
|
|
4308
4375
|
PagingComponent.decorators = [
|
|
4309
4376
|
{ type: i0.Component, args: [{
|
|
4310
4377
|
selector: 'BBSF-Paging',
|
|
4311
|
-
template: "<div class=\"b-control b-paging\" *ngIf=\"(result.length > 0)\">\r\n <div class=\"d-flex justify-content-between align-items-center\" *ngIf=\"!options.IsLoadMoreControl\">\r\n <div class=\"b-pagination\">\r\n <jw-pagination [items]=\"items\" *ngIf=\"!((Pages==1)&&options.HidePaginationWhenPageSizeEqualOne)\"\r\n (changePage)=\"onChangePage($event)\" [pageSize]=\"options.PageSize\" [ShowFirstAndLast]=\"options.ShowFirstAndLast\"\r\n [initialPage]=\"1\" [maxPages]=\"10\"></jw-pagination>\r\n </div>\r\n <div class=\"b-pages d-flex\" *ngIf=\"!((Pages==1)&&options.HidePaginationWhenPageSizeEqualOne)\" >\r\n <select (change)=\"changePageSize($event)\" *ngIf=\"options.ShowPageSizeOption\">\r\n <option>10</option>\r\n <option>20</option>\r\n <option>50</option>\r\n <option>100</option>\r\n <option>200</option>\r\n </select>\r\n <div class=\"b-items ml-3\">\r\n <strong>{{totalRow}}</strong>
|
|
4378
|
+
template: "<div class=\"b-control b-paging\" *ngIf=\"(result.length > 0)\">\r\n <div class=\"d-flex justify-content-between align-items-center\" *ngIf=\"!options.IsLoadMoreControl\">\r\n <div class=\"b-pagination\">\r\n <jw-pagination [items]=\"items\" *ngIf=\"!((Pages==1)&&options.HidePaginationWhenPageSizeEqualOne)\"\r\n (changePage)=\"onChangePage($event)\" [pageSize]=\"options.PageSize\" [ShowFirstAndLast]=\"options.ShowFirstAndLast\"\r\n [initialPage]=\"1\" [maxPages]=\"10\"></jw-pagination>\r\n </div>\r\n <div class=\"b-pages d-flex\" *ngIf=\"!((Pages==1)&&options.HidePaginationWhenPageSizeEqualOne)\" >\r\n <select (change)=\"changePageSize($event)\" *ngIf=\"options.ShowPageSizeOption\">\r\n <option>10</option>\r\n <option>20</option>\r\n <option>50</option>\r\n <option>100</option>\r\n <option>200</option>\r\n </select>\r\n <div class=\"b-items ml-3\">\r\n <strong>{{totalRow}}</strong> {{utilityService.getResourceValue(\"ItemsIn\")}} <strong> {{Pages}}</strong> {{utilityService.getResourceValue(\"Pages\")}}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\" style=\"align-self:center; align-items: center; text-align: center;\" *ngIf=\"options.IsLoadMoreControl\">\r\n <div class=\"search-results\" infinite-scroll [infiniteScrollDistance]=\"ScrollDistance\"\r\n [infiniteScrollUpDistance]=\"ScrollUpDistance\" [infiniteScrollThrottle]=\"Throttle\" (scrolled)=\"options.IsInfiniteScroll==true?onScrollDown():null\"\r\n [scrollWindow]=\"options.ScrollWindow\" [infiniteScrollContainer]=\"options.InfiniteScrollContainer\">\r\n </div>\r\n <button class=\"btn btn-primary\" (click)=\"onScrollDown()\" *ngIf=\"!(result.length==totalRow)\"> Load More </button>\r\n </div>\r\n</div>\r\n",
|
|
4312
4379
|
styles: [".ngx-pager-container{text-align:center;padding:25px 0 0}.ngx-pager-container li{display:inline-block;margin:0 4px}.ngx-pager-container li a{display:block;width:26px;height:26px;border:1px solid #707070;text-align:center;color:#3e4e59;font-size:14px;line-height:24px;border-radius:5px;text-decoration:none}.ngx-pager-container li a:hover{color:#fff;background:#0a0e03}.ngx-pager-container li.invisible{display:none}.ngx-pager-container li.active{background:#0a0e03;border-radius:5px}.ngx-pager-container li.active a{border:none;color:#fff}\n"]
|
|
4313
4380
|
},] }
|
|
4314
4381
|
];
|
|
4315
4382
|
PagingComponent.ctorParameters = function () { return [
|
|
4383
|
+
{ type: bbsfUtilities.UtilityService },
|
|
4316
4384
|
{ type: http$1.HttpClient },
|
|
4317
4385
|
{ type: router.Router },
|
|
4318
4386
|
{ type: OnPagingFiltersChangeService },
|
|
@@ -4435,13 +4503,14 @@
|
|
|
4435
4503
|
|
|
4436
4504
|
var RadioButtonComponent = /** @class */ (function () {
|
|
4437
4505
|
// tslint:disable-next-line: max-line-length
|
|
4438
|
-
function RadioButtonComponent(controlUtility, controlContainer, RadioButtonControlHost, UtilityService, controlValidationService) {
|
|
4506
|
+
function RadioButtonComponent(controlUtility, controlContainer, RadioButtonControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
4439
4507
|
var _this = this;
|
|
4440
4508
|
this.controlUtility = controlUtility;
|
|
4441
4509
|
this.controlContainer = controlContainer;
|
|
4442
4510
|
this.RadioButtonControlHost = RadioButtonControlHost;
|
|
4443
4511
|
this.UtilityService = UtilityService;
|
|
4444
4512
|
this.controlValidationService = controlValidationService;
|
|
4513
|
+
this.globalSettings = globalSettings;
|
|
4445
4514
|
this.OnChange = new i0.EventEmitter();
|
|
4446
4515
|
this.markAllAsTouched = false;
|
|
4447
4516
|
this.validationRules = [];
|
|
@@ -4475,6 +4544,8 @@
|
|
|
4475
4544
|
var _this = this;
|
|
4476
4545
|
this.group.addControl(this.options.Name, new forms.FormControl(''));
|
|
4477
4546
|
this.RadioButtonFormControl = this.group.controls[this.options.Name]; // new FormControl('',validationRules);
|
|
4547
|
+
if (!this.options.ViewType)
|
|
4548
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
4478
4549
|
if (this.options.IsRequired) {
|
|
4479
4550
|
this.validationRules.push(forms.Validators.required);
|
|
4480
4551
|
}
|
|
@@ -4522,7 +4593,8 @@
|
|
|
4522
4593
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
4523
4594
|
{ type: forms.FormGroupDirective },
|
|
4524
4595
|
{ type: bbsfUtilities.UtilityService },
|
|
4525
|
-
{ type: bbsfUtilities.ControlValidationService }
|
|
4596
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
4597
|
+
{ type: GlobalSettings }
|
|
4526
4598
|
]; };
|
|
4527
4599
|
RadioButtonComponent.propDecorators = {
|
|
4528
4600
|
group: [{ type: i0.Input }],
|
|
@@ -4532,13 +4604,14 @@
|
|
|
4532
4604
|
|
|
4533
4605
|
var TextboxComponent = /** @class */ (function () {
|
|
4534
4606
|
// tslint:disable-next-line: max-line-length
|
|
4535
|
-
function TextboxComponent(controlUtility, controlContainer, TextControlHost, UtilityService, controlValidationService) {
|
|
4607
|
+
function TextboxComponent(controlUtility, controlContainer, TextControlHost, UtilityService, controlValidationService, globalSettings) {
|
|
4536
4608
|
var _this = this;
|
|
4537
4609
|
this.controlUtility = controlUtility;
|
|
4538
4610
|
this.controlContainer = controlContainer;
|
|
4539
4611
|
this.TextControlHost = TextControlHost;
|
|
4540
4612
|
this.UtilityService = UtilityService;
|
|
4541
4613
|
this.controlValidationService = controlValidationService;
|
|
4614
|
+
this.globalSettings = globalSettings;
|
|
4542
4615
|
this.OnChange = new i0.EventEmitter();
|
|
4543
4616
|
this.WordCount = 0;
|
|
4544
4617
|
this.WordCountArray = 0;
|
|
@@ -4588,6 +4661,8 @@
|
|
|
4588
4661
|
TextboxComponent.prototype.ngOnInit = function () {
|
|
4589
4662
|
var _this = this;
|
|
4590
4663
|
this.controlValidationService.isCreatedBefor = false;
|
|
4664
|
+
if (!this.options.ViewType)
|
|
4665
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
4591
4666
|
if (this.options.MaskPattern != null && this.options.MaskPattern != "") {
|
|
4592
4667
|
this.MaskPattern = this.options.MaskPattern;
|
|
4593
4668
|
this.options.Placeholder = this.MaskPattern;
|
|
@@ -4737,7 +4812,8 @@
|
|
|
4737
4812
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
4738
4813
|
{ type: forms.FormGroupDirective },
|
|
4739
4814
|
{ type: bbsfUtilities.UtilityService },
|
|
4740
|
-
{ type: bbsfUtilities.ControlValidationService }
|
|
4815
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
4816
|
+
{ type: GlobalSettings }
|
|
4741
4817
|
]; };
|
|
4742
4818
|
TextboxComponent.propDecorators = {
|
|
4743
4819
|
group: [{ type: i0.Input }],
|
|
@@ -4752,18 +4828,17 @@
|
|
|
4752
4828
|
}());
|
|
4753
4829
|
|
|
4754
4830
|
var MapAutoCompleteComponent = /** @class */ (function () {
|
|
4755
|
-
function MapAutoCompleteComponent(mapsAPILoader, ngZone,
|
|
4831
|
+
function MapAutoCompleteComponent(mapsAPILoader, ngZone, controlUtility, controlContainer, MapAutoCompleteControlHost, UtilityService, translate, controlValidationService, globalSettings) {
|
|
4756
4832
|
var _this = this;
|
|
4757
4833
|
this.mapsAPILoader = mapsAPILoader;
|
|
4758
4834
|
this.ngZone = ngZone;
|
|
4759
|
-
this.titleService = titleService;
|
|
4760
|
-
this.ErrorHandler = ErrorHandler;
|
|
4761
4835
|
this.controlUtility = controlUtility;
|
|
4762
4836
|
this.controlContainer = controlContainer;
|
|
4763
4837
|
this.MapAutoCompleteControlHost = MapAutoCompleteControlHost;
|
|
4764
4838
|
this.UtilityService = UtilityService;
|
|
4765
4839
|
this.translate = translate;
|
|
4766
4840
|
this.controlValidationService = controlValidationService;
|
|
4841
|
+
this.globalSettings = globalSettings;
|
|
4767
4842
|
this.OnChange = new i0.EventEmitter();
|
|
4768
4843
|
this.MapAutoCompleteModel = new MapAutocompleteDTO();
|
|
4769
4844
|
this.CurrentLanguage = "";
|
|
@@ -4940,6 +5015,8 @@
|
|
|
4940
5015
|
});
|
|
4941
5016
|
this.group.addControl(this.options.Name, new forms.FormControl(''));
|
|
4942
5017
|
this.MapAutoCompleteFormControl = this.group.controls[this.options.Name]; // new FormControl('',validationRules);
|
|
5018
|
+
if (!this.options.ViewType)
|
|
5019
|
+
this.options.ViewType = this.globalSettings.ViewType;
|
|
4943
5020
|
if (this.options.IsRequired) {
|
|
4944
5021
|
this.validationRules.push(forms.Validators.required);
|
|
4945
5022
|
}
|
|
@@ -5019,14 +5096,13 @@
|
|
|
5019
5096
|
MapAutoCompleteComponent.ctorParameters = function () { return [
|
|
5020
5097
|
{ type: core.MapsAPILoader },
|
|
5021
5098
|
{ type: i0.NgZone },
|
|
5022
|
-
{ type: platformBrowser.Title },
|
|
5023
|
-
{ type: ErrorMassageValidation },
|
|
5024
5099
|
{ type: ControlUtility },
|
|
5025
5100
|
{ type: forms.ControlContainer, decorators: [{ type: i0.Optional }] },
|
|
5026
5101
|
{ type: forms.FormGroupDirective },
|
|
5027
5102
|
{ type: bbsfUtilities.UtilityService },
|
|
5028
5103
|
{ type: bbsfUtilities.BBSFTranslateService },
|
|
5029
|
-
{ type: bbsfUtilities.ControlValidationService }
|
|
5104
|
+
{ type: bbsfUtilities.ControlValidationService },
|
|
5105
|
+
{ type: GlobalSettings }
|
|
5030
5106
|
]; };
|
|
5031
5107
|
MapAutoCompleteComponent.propDecorators = {
|
|
5032
5108
|
group: [{ type: i0.Input }],
|
|
@@ -5223,18 +5299,23 @@
|
|
|
5223
5299
|
})(exports.PagingActionMode || (exports.PagingActionMode = {}));
|
|
5224
5300
|
|
|
5225
5301
|
var FormComponent = /** @class */ (function () {
|
|
5226
|
-
function FormComponent(utilityService, controlValidationService, modalService, ngbActiveModal) {
|
|
5302
|
+
function FormComponent(controlUtility, utilityService, controlValidationService, modalService, ngbActiveModal) {
|
|
5303
|
+
this.controlUtility = controlUtility;
|
|
5227
5304
|
this.utilityService = utilityService;
|
|
5228
5305
|
this.controlValidationService = controlValidationService;
|
|
5229
5306
|
this.modalService = modalService;
|
|
5230
5307
|
this.ngbActiveModal = ngbActiveModal;
|
|
5231
5308
|
}
|
|
5232
5309
|
FormComponent.prototype.ngOnInit = function () {
|
|
5310
|
+
this.fromName = this.randomString(5);
|
|
5233
5311
|
};
|
|
5234
5312
|
FormComponent.prototype.submit = function () {
|
|
5235
5313
|
var _this = this;
|
|
5236
|
-
|
|
5314
|
+
this.options.FormGroup.markAllAsTouched();
|
|
5315
|
+
if (this.options.FormGroup.invalid) {
|
|
5316
|
+
this.showGlobalError();
|
|
5237
5317
|
return;
|
|
5318
|
+
}
|
|
5238
5319
|
else {
|
|
5239
5320
|
var submitModel = this.options.GetModelFunction();
|
|
5240
5321
|
var submittedService = this.options.ServiceSubmitFunction.apply(null, submitModel);
|
|
@@ -5283,16 +5364,28 @@
|
|
|
5283
5364
|
if (!this.options.DisableBlockUI)
|
|
5284
5365
|
this.utilityService.stopBlockUI();
|
|
5285
5366
|
};
|
|
5367
|
+
FormComponent.prototype.showGlobalError = function () {
|
|
5368
|
+
this.controlUtility.showGlobalError(this.fromName);
|
|
5369
|
+
};
|
|
5370
|
+
FormComponent.prototype.randomString = function (length) {
|
|
5371
|
+
var randomChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
5372
|
+
var result = '';
|
|
5373
|
+
for (var i = 0; i < length; i++) {
|
|
5374
|
+
result += randomChars.charAt(Math.floor(Math.random() * randomChars.length));
|
|
5375
|
+
}
|
|
5376
|
+
return result;
|
|
5377
|
+
};
|
|
5286
5378
|
return FormComponent;
|
|
5287
5379
|
}());
|
|
5288
5380
|
FormComponent.decorators = [
|
|
5289
5381
|
{ type: i0.Component, args: [{
|
|
5290
5382
|
// tslint:disable-next-line: component-selector
|
|
5291
5383
|
selector: 'BBSF-Form',
|
|
5292
|
-
template: "<form [FormGroup]=\"options.FormGroup\" (ngSubmit)=\"submit()\"
|
|
5384
|
+
template: "<form id=\"{{fromName}}\" [FormGroup]=\"options.FormGroup\" (ngSubmit)=\"submit()\" > \r\n \r\n <ng-template #content><ng-content></ng-content></ng-template>\r\n\r\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\r\n</form>"
|
|
5293
5385
|
},] }
|
|
5294
5386
|
];
|
|
5295
5387
|
FormComponent.ctorParameters = function () { return [
|
|
5388
|
+
{ type: ControlUtility },
|
|
5296
5389
|
{ type: bbsfUtilities.UtilityService },
|
|
5297
5390
|
{ type: bbsfUtilities.ControlValidationService },
|
|
5298
5391
|
{ type: ngBootstrap.NgbModal },
|
|
@@ -5311,27 +5404,44 @@
|
|
|
5311
5404
|
this.styleSuccess = exports.StyleConfirmationMode.Success;
|
|
5312
5405
|
}
|
|
5313
5406
|
ConfirmationModalComponent.prototype.ngOnInit = function () {
|
|
5314
|
-
console.log("options on initialize");
|
|
5315
|
-
console.log(this.options);
|
|
5316
|
-
//check for options text values
|
|
5317
|
-
this.setTextValues();
|
|
5318
|
-
};
|
|
5319
|
-
ConfirmationModalComponent.prototype.ngAfterViewInit = function () {
|
|
5320
|
-
if (this.options.AutoShowModal)
|
|
5321
|
-
this.showModal();
|
|
5322
5407
|
};
|
|
5323
5408
|
//Method used to show confirmation modal
|
|
5324
5409
|
ConfirmationModalComponent.prototype.showModal = function () {
|
|
5410
|
+
var _this = this;
|
|
5325
5411
|
this.utilityService.startBlockUI();
|
|
5326
|
-
//
|
|
5327
|
-
this.
|
|
5412
|
+
//check for options text values
|
|
5413
|
+
this.setTextValues();
|
|
5414
|
+
//sweetalert styles//
|
|
5415
|
+
switch (this.options.StyleConfirmationMode) {
|
|
5416
|
+
case this.styleSuccess: {
|
|
5417
|
+
this.icon = 'success';
|
|
5418
|
+
this.btnColor = '#50cd89';
|
|
5419
|
+
}
|
|
5420
|
+
case this.styleWarning: {
|
|
5421
|
+
this.icon = 'warning';
|
|
5422
|
+
this.btnColor = '#ffc700';
|
|
5423
|
+
}
|
|
5424
|
+
case this.styleDanger: {
|
|
5425
|
+
this.icon = 'error';
|
|
5426
|
+
this.btnColor = '#f1416c';
|
|
5427
|
+
}
|
|
5428
|
+
}
|
|
5429
|
+
Swal__default["default"].fire({
|
|
5430
|
+
title: this.options.ConfirmationHeader,
|
|
5431
|
+
text: this.options.ConfirmationBody,
|
|
5432
|
+
icon: this.icon,
|
|
5433
|
+
showCancelButton: true,
|
|
5434
|
+
confirmButtonColor: this.btnColor,
|
|
5435
|
+
cancelButtonColor: '#f5f8fa',
|
|
5436
|
+
showCloseButton: true,
|
|
5437
|
+
}).then(function (result) {
|
|
5438
|
+
if (result.isConfirmed) {
|
|
5439
|
+
_this.submit();
|
|
5440
|
+
}
|
|
5441
|
+
});
|
|
5328
5442
|
this.utilityService.stopBlockUI();
|
|
5329
|
-
console.log("options after modal opened");
|
|
5330
|
-
console.log(this.options);
|
|
5331
5443
|
};
|
|
5332
5444
|
ConfirmationModalComponent.prototype.setTextValues = function () {
|
|
5333
|
-
console.log("options in first showmodal");
|
|
5334
|
-
console.log(this.options);
|
|
5335
5445
|
if (!this.options.ConfirmationHeader)
|
|
5336
5446
|
this.options.ConfirmationHeader = this.utilityService.getResourceValue("DeleteConfirmation");
|
|
5337
5447
|
if (!this.options.ConfirmationBody)
|
|
@@ -5388,9 +5498,8 @@
|
|
|
5388
5498
|
}());
|
|
5389
5499
|
ConfirmationModalComponent.decorators = [
|
|
5390
5500
|
{ type: i0.Component, args: [{
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
styles: [""]
|
|
5501
|
+
template: "",
|
|
5502
|
+
selector: 'BBSF-ConfirmationModal'
|
|
5394
5503
|
},] }
|
|
5395
5504
|
];
|
|
5396
5505
|
ConfirmationModalComponent.ctorParameters = function () { return [
|
|
@@ -5493,18 +5602,19 @@
|
|
|
5493
5602
|
angularNgAutocomplete.AutocompleteLibModule,
|
|
5494
5603
|
bbsfUtilities.BBSFUtilitiesModule,
|
|
5495
5604
|
ngInlineSvg.InlineSVGModule.forRoot(),
|
|
5605
|
+
ngxSweetalert2.SweetAlert2Module
|
|
5496
5606
|
],
|
|
5497
5607
|
providers: [
|
|
5498
5608
|
ErrorMassageValidation,
|
|
5499
5609
|
ControlUtility,
|
|
5500
5610
|
OnPagingFiltersChangeService,
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5611
|
+
// EnvironmentService,
|
|
5612
|
+
// AuthService,
|
|
5613
|
+
// RequestHandlerService,
|
|
5614
|
+
// UtilityService,
|
|
5505
5615
|
core$1.TranslateService,
|
|
5506
|
-
|
|
5507
|
-
|
|
5616
|
+
// BBSFTranslateService,
|
|
5617
|
+
// ControlValidationService,
|
|
5508
5618
|
forms.FormGroupDirective,
|
|
5509
5619
|
ngBootstrap.NgbModal,
|
|
5510
5620
|
ngBootstrap.NgbActiveModal
|
|
@@ -5578,12 +5688,6 @@
|
|
|
5578
5688
|
return CustomValidator;
|
|
5579
5689
|
}());
|
|
5580
5690
|
|
|
5581
|
-
exports.ControlLayout = void 0;
|
|
5582
|
-
(function (ControlLayout) {
|
|
5583
|
-
ControlLayout[ControlLayout["Vertical"] = 1] = "Vertical";
|
|
5584
|
-
ControlLayout[ControlLayout["Horizontal"] = 2] = "Horizontal";
|
|
5585
|
-
})(exports.ControlLayout || (exports.ControlLayout = {}));
|
|
5586
|
-
|
|
5587
5691
|
exports.ForceDirection = void 0;
|
|
5588
5692
|
(function (ForceDirection) {
|
|
5589
5693
|
ForceDirection[ForceDirection["English"] = 1] = "English";
|
|
@@ -5629,7 +5733,7 @@
|
|
|
5629
5733
|
/**Prevent AutoComplete of textbox*/
|
|
5630
5734
|
this.AutoComplete = "off";
|
|
5631
5735
|
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5632
|
-
this.ViewType =
|
|
5736
|
+
this.ViewType = null;
|
|
5633
5737
|
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5634
5738
|
*/
|
|
5635
5739
|
this.CustomValidation = [];
|
|
@@ -5651,7 +5755,7 @@
|
|
|
5651
5755
|
*/
|
|
5652
5756
|
this.CustomValidation = [];
|
|
5653
5757
|
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5654
|
-
this.ViewType =
|
|
5758
|
+
this.ViewType = null;
|
|
5655
5759
|
}
|
|
5656
5760
|
return FileUploadOptions;
|
|
5657
5761
|
}());
|
|
@@ -5664,13 +5768,13 @@
|
|
|
5664
5768
|
/**To Set Value To MultipleLanguageText with Object From Type "EnglishArabicDTO" */
|
|
5665
5769
|
this.Value = new EnglishArabicDTO();
|
|
5666
5770
|
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5667
|
-
this.ViewType =
|
|
5771
|
+
this.ViewType = null;
|
|
5668
5772
|
/**To Set LanguageMode To MultipleLanguageText */
|
|
5669
|
-
this.LanguageMode =
|
|
5773
|
+
this.LanguageMode = null;
|
|
5670
5774
|
this.IconPositionEN = exports.IconPosition.left;
|
|
5671
5775
|
this.IconPositionAR = exports.IconPosition.right;
|
|
5672
5776
|
/*multi control placement type*/
|
|
5673
|
-
this.MultiControlPlacementType =
|
|
5777
|
+
this.MultiControlPlacementType = null;
|
|
5674
5778
|
}
|
|
5675
5779
|
return MultiLingualTextBoxOptions;
|
|
5676
5780
|
}());
|
|
@@ -5684,7 +5788,7 @@
|
|
|
5684
5788
|
var TextAreaOptions = /** @class */ (function () {
|
|
5685
5789
|
function TextAreaOptions() {
|
|
5686
5790
|
/** to set type of view if TextArea is Vertical or Horizontal */
|
|
5687
|
-
this.ViewType =
|
|
5791
|
+
this.ViewType = null;
|
|
5688
5792
|
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5689
5793
|
*/
|
|
5690
5794
|
this.CustomValidation = [];
|
|
@@ -5702,11 +5806,11 @@
|
|
|
5702
5806
|
/**To Set Value To MultipleLanguageText with Object From Type "EnglishArabicDTO" */
|
|
5703
5807
|
this.Value = new EnglishArabicDTO();
|
|
5704
5808
|
/** to set type of view if MultilingualTextArea is Vertical or Horizontal */
|
|
5705
|
-
this.ViewType =
|
|
5809
|
+
this.ViewType = null;
|
|
5706
5810
|
/**To Set LanguageMode To MultipleLanguageText */
|
|
5707
|
-
this.LanguageMode =
|
|
5811
|
+
this.LanguageMode = null;
|
|
5708
5812
|
/*multi control placement type*/
|
|
5709
|
-
this.MultiControlPlacementType =
|
|
5813
|
+
this.MultiControlPlacementType = null;
|
|
5710
5814
|
}
|
|
5711
5815
|
return MultiLingualTextAreaOptions;
|
|
5712
5816
|
}());
|
|
@@ -5734,7 +5838,7 @@
|
|
|
5734
5838
|
/** Disable Bootstrap DropdownList */
|
|
5735
5839
|
this.DisableBootstrapSelect = false;
|
|
5736
5840
|
/** to set type of view if DropdownList is Vertical or Horizontal */
|
|
5737
|
-
this.ViewType =
|
|
5841
|
+
this.ViewType = null;
|
|
5738
5842
|
/** To Set Custom Validation*/
|
|
5739
5843
|
this.CustomValidation = [];
|
|
5740
5844
|
/** Set key for item in DropdownList */
|
|
@@ -5754,7 +5858,7 @@
|
|
|
5754
5858
|
/**Set List Of Countries As Preferred Countries*/
|
|
5755
5859
|
this.PreferredCountries = [];
|
|
5756
5860
|
/** to set type of view if Phonebox is Vertical or Horizontal */
|
|
5757
|
-
this.ViewType =
|
|
5861
|
+
this.ViewType = null;
|
|
5758
5862
|
this.ForceDirection = exports.ForceDirection.English;
|
|
5759
5863
|
}
|
|
5760
5864
|
return PhoneOptions;
|
|
@@ -5762,7 +5866,7 @@
|
|
|
5762
5866
|
|
|
5763
5867
|
var ToggleSlideOptions = /** @class */ (function () {
|
|
5764
5868
|
function ToggleSlideOptions() {
|
|
5765
|
-
this.ViewType =
|
|
5869
|
+
this.ViewType = null;
|
|
5766
5870
|
this.ForceDirection = exports.ForceDirection.English;
|
|
5767
5871
|
}
|
|
5768
5872
|
return ToggleSlideOptions;
|
|
@@ -5771,7 +5875,7 @@
|
|
|
5771
5875
|
var HtmlEditorOptions = /** @class */ (function () {
|
|
5772
5876
|
function HtmlEditorOptions() {
|
|
5773
5877
|
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5774
|
-
this.ViewType =
|
|
5878
|
+
this.ViewType = null;
|
|
5775
5879
|
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5776
5880
|
*/
|
|
5777
5881
|
this.CustomValidation = [];
|
|
@@ -5791,11 +5895,11 @@
|
|
|
5791
5895
|
/**To Set Value To MultipleLanguageText with Object From Type "EnglishArabicDTO" */
|
|
5792
5896
|
this.Value = new EnglishArabicDTO();
|
|
5793
5897
|
/** to set type of view if MultipleLanguageText is Vertical or Horizontal */
|
|
5794
|
-
this.ViewType =
|
|
5898
|
+
this.ViewType = null;
|
|
5795
5899
|
/** Set Height For */
|
|
5796
5900
|
this.Height = 150;
|
|
5797
5901
|
/**To Set LanguageMode To MultipleLanguageText */
|
|
5798
|
-
this.LanguageMode =
|
|
5902
|
+
this.LanguageMode = null;
|
|
5799
5903
|
}
|
|
5800
5904
|
return MultiLingualHtmlEditorOptions;
|
|
5801
5905
|
}());
|
|
@@ -5820,7 +5924,7 @@
|
|
|
5820
5924
|
*/
|
|
5821
5925
|
this.CustomValidation = [];
|
|
5822
5926
|
/** to set type of view if FileInput is Vertical or Horizontal */
|
|
5823
|
-
this.ViewType =
|
|
5927
|
+
this.ViewType = null;
|
|
5824
5928
|
/** Set List of Custom Attribute to FileInput */
|
|
5825
5929
|
this.FileUploadAcceptsTypes = [exports.ImageType.ImageTypes];
|
|
5826
5930
|
}
|
|
@@ -5834,7 +5938,7 @@
|
|
|
5834
5938
|
this.AllowDropZone = false;
|
|
5835
5939
|
this.CustomValidation = [];
|
|
5836
5940
|
/** to set type of view if FileInput is Vertical or Horizontal */
|
|
5837
|
-
this.ViewType =
|
|
5941
|
+
this.ViewType = null;
|
|
5838
5942
|
/** Set List of Custom Attribute to FileInput */
|
|
5839
5943
|
this.ImageUploadAcceptsTypes = [exports.ImageType.ImageTypes];
|
|
5840
5944
|
}
|
|
@@ -5902,7 +6006,7 @@
|
|
|
5902
6006
|
*/
|
|
5903
6007
|
this.CustomValidation = [];
|
|
5904
6008
|
/** to set type of view if MapAutoComplete is Vertical or Horizontal */
|
|
5905
|
-
this.ViewType =
|
|
6009
|
+
this.ViewType = null;
|
|
5906
6010
|
}
|
|
5907
6011
|
return MapAutoCompleteOptions;
|
|
5908
6012
|
}());
|
|
@@ -5918,7 +6022,7 @@
|
|
|
5918
6022
|
/** set Range Number to Textbox with type number with From-Value and To-value*/
|
|
5919
6023
|
this.NumberRange = new RangeNumber();
|
|
5920
6024
|
/** to set type of view if textbox is Vertical or Horizontal */
|
|
5921
|
-
this.ViewType =
|
|
6025
|
+
this.ViewType = null;
|
|
5922
6026
|
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5923
6027
|
*/
|
|
5924
6028
|
this.CustomValidation = [];
|
|
@@ -5945,7 +6049,7 @@
|
|
|
5945
6049
|
/**To set value to tagsinput */
|
|
5946
6050
|
this.Value = null;
|
|
5947
6051
|
/** to set type of view if tagsinput is Vertical or Horizontal */
|
|
5948
|
-
this.ViewType =
|
|
6052
|
+
this.ViewType = null;
|
|
5949
6053
|
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
5950
6054
|
*/
|
|
5951
6055
|
this.CustomValidation = [];
|
|
@@ -6038,7 +6142,7 @@
|
|
|
6038
6142
|
|
|
6039
6143
|
var RadioButtonOptions = /** @class */ (function () {
|
|
6040
6144
|
function RadioButtonOptions() {
|
|
6041
|
-
this.ViewType =
|
|
6145
|
+
this.ViewType = null;
|
|
6042
6146
|
/** Allow to Pass Object With Body of Function which represent CustomValidation and massage for error massage
|
|
6043
6147
|
*/
|
|
6044
6148
|
this.CustomValidation = [];
|
|
@@ -6102,7 +6206,7 @@
|
|
|
6102
6206
|
//Represents refrence to paging control that needs to be updated after success
|
|
6103
6207
|
this.PagingReference = null;
|
|
6104
6208
|
//Represents paging action excutes after submission (Reinitialize/Update)
|
|
6105
|
-
this.PagingActionMode = exports.PagingActionMode.
|
|
6209
|
+
this.PagingActionMode = exports.PagingActionMode.Reinitialize;
|
|
6106
6210
|
//Represents function that excutes after submission error
|
|
6107
6211
|
this.OnErrorHandler = null;
|
|
6108
6212
|
//Represents function that excutes after submission success
|
|
@@ -6113,9 +6217,6 @@
|
|
|
6113
6217
|
this.DisableSuccessNotification = false;
|
|
6114
6218
|
//If ="true" disable notification after submission error
|
|
6115
6219
|
this.DisableErrorNotification = false;
|
|
6116
|
-
//If ="true" modal open automatically after options initialization
|
|
6117
|
-
//If="false" should call function showModal()
|
|
6118
|
-
this.AutoShowModal = true;
|
|
6119
6220
|
}
|
|
6120
6221
|
return ConfirmationModalOptions;
|
|
6121
6222
|
}());
|
|
@@ -6465,6 +6566,7 @@
|
|
|
6465
6566
|
exports.FileUploadOptions = FileUploadOptions;
|
|
6466
6567
|
exports.FilterItem = FilterItem;
|
|
6467
6568
|
exports.FormOptions = FormOptions;
|
|
6569
|
+
exports.GlobalSettings = GlobalSettings;
|
|
6468
6570
|
exports.HtmlEditorOptions = HtmlEditorOptions;
|
|
6469
6571
|
exports.ImageUploadOptions = ImageUploadOptions;
|
|
6470
6572
|
exports.MapAutoCompleteOptions = MapAutoCompleteOptions;
|