arco-support-request 0.1.1 → 0.1.2
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/arco-support-request.metadata.json +1 -1
- package/bundles/arco-support-request.umd.js +47 -32
- package/bundles/arco-support-request.umd.js.map +1 -1
- package/bundles/arco-support-request.umd.min.js +1 -1
- package/bundles/arco-support-request.umd.min.js.map +1 -1
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.js +35 -31
- package/esm2015/lib/support-request/request-flow/request-flow.component.js +14 -3
- package/fesm2015/arco-support-request.js +47 -33
- package/fesm2015/arco-support-request.js.map +1 -1
- package/lib/support-request/request-flow/request-flow.component.d.ts +3 -1
- package/package.json +1 -1
|
@@ -6212,10 +6212,12 @@
|
|
|
6212
6212
|
|
|
6213
6213
|
// import { environment } from 'arco-support-request';
|
|
6214
6214
|
var RequestFlowComponent = /** @class */ (function () {
|
|
6215
|
-
function RequestFlowComponent(supportService, fb, entityTypeSetup, globalService, document) {
|
|
6215
|
+
function RequestFlowComponent(supportService, fb, entityTypeSetup, router$1, globalService, document) {
|
|
6216
|
+
var _this = this;
|
|
6216
6217
|
this.supportService = supportService;
|
|
6217
6218
|
this.fb = fb;
|
|
6218
6219
|
this.entityTypeSetup = entityTypeSetup;
|
|
6220
|
+
this.router = router$1;
|
|
6219
6221
|
this.globalService = globalService;
|
|
6220
6222
|
this.document = document;
|
|
6221
6223
|
this.issuType = "7";
|
|
@@ -6306,6 +6308,14 @@
|
|
|
6306
6308
|
this.isShowCreateRequest = false;
|
|
6307
6309
|
this.selectCaseItem = null;
|
|
6308
6310
|
this.isDetails = false;
|
|
6311
|
+
router$1.events.subscribe(function (event) {
|
|
6312
|
+
if (event instanceof router.NavigationStart) {
|
|
6313
|
+
setTimeout(function () { return _this.globalService.dataLoader = true; }, 0);
|
|
6314
|
+
}
|
|
6315
|
+
else if (event instanceof router.NavigationEnd) {
|
|
6316
|
+
setTimeout(function () { return _this.globalService.dataLoader = false; }, 0);
|
|
6317
|
+
}
|
|
6318
|
+
});
|
|
6309
6319
|
}
|
|
6310
6320
|
RequestFlowComponent.prototype.ngOnChanges = function (changes) {
|
|
6311
6321
|
if (changes && changes.Language && changes.Language.firstChange == false) {
|
|
@@ -6925,7 +6935,7 @@
|
|
|
6925
6935
|
RequestFlowComponent.decorators = [
|
|
6926
6936
|
{ type: i0.Component, args: [{
|
|
6927
6937
|
selector: 'app-request-flow',
|
|
6928
|
-
template: "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css\">\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/styles.css\">\r\n<link rel=\"stylesheet\" href=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/SupportRequest/supportstyles.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/main.css\">\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/bootstrap.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/font-awesome.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@angular/material@11.2.13/prebuilt-themes/indigo-pink.css\">\r\n<ng-container *ngIf=\"viewHtml\">\r\n\r\n<ng-container *ngIf=\"PageType=='SelfService';else caseTemplate\" >\r\n\r\n <app-self-service-flow [RequesterTypeId]=\"RequesterTypeId\" [RequesterTypeIdEn]=\"RequesterTypeIdEn\"\r\n [RequesterId]=\"RequesterId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequestField]=\"RequesterField\"></app-self-service-flow>\r\n\r\n</ng-container>\r\n\r\n<ng-template #caseTemplate>\r\n\r\n <div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div *ngIf=\"isDetails\">\r\n <span class=\"back-arrow\" (click)=\"backToRequest()\">\r\n <i class=\"fa fa-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"whole m-t-10 m-b-20 clearfix\">\r\n \r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{PageType|translate}}\r\n <span *ngIf=\"isDetails && CaseId\"> - #{{CaseId}}</span>\r\n </h2>\r\n \r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"openIssueType()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <div class=\"modal fade show\" *ngIf=\"displayPopUp\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':dropdownmodal,'modal-lg':!dropdownmodal}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} {{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">×</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"IssueTypeDDL.length > 0\">\r\n <div class=\"\" *ngIf=\"dropdownmodal\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Request'\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select [items]=\"dropdownIssuse\" [placeholder]=\"'Request'\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n \r\n \r\n <!-- <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n \r\n \r\n \r\n <div class=\"row\">\r\n \r\n \r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <ng-container *ngIf=\"showChild\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"Popup-boxes\" (click)=\"selectGroup(_issue,_type)\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n \r\n \r\n <span >{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-container>\r\n \r\n <div class=\"col-sm-12 mb-3\" *ngIf=\"_issue.showSubGroup && !showChild && showsubChild\">\r\n <h6 class=\"\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n </div>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <ng-container *ngIf=\"showsubChild && !showChild && _issue.showSubGroup\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n \r\n <div class=\"Popup-boxes\" (click)=\"selectSubGroup(_sub)\">\r\n \r\n \r\n <span >{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n \r\n </ng-container>\r\n </div>\r\n\r\n \r\n </ng-container> -->\r\n \r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n \r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> > \r\n \r\n <ng-container *ngIf=\"selectedType.IssueGroup; else elseCategory\">\r\n \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}</span> > \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ? selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) : selectedSubGroup?.IssueEn }}</span> > \r\n \r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ? selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) : selectedCategory?.CategoryIdEn }}</span> > \r\n </ng-template>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr : (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </div>\r\n \r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" \r\n [ViewFrom]=\"'Popup'\"\r\n \r\n [IssueType]=\"selectedType.IssueType\"\r\n [IssueTypeEn]=\"selectedType.IssueTypeEn\"\r\n [IssueTypeAr]=\"selectedType.IssueTypeAr\"\r\n \r\n [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\"\r\n [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n \r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" \r\n [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\" \r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" \r\n \r\n [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\"\r\n [Channel]=\"Channel\" \r\n [ChannelEn]=\"ChannelEn\" \r\n [ChannelAr]=\"ChannelAr\" \r\n [RequesterId]=\"RequesterId\"\r\n [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\"\r\n \r\n [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"\" *ngIf=\"isCreate && !isShowCreateRequest\">\r\n <div class=\"step-fixed\" (click)=\"backToRequest()\" ></div>\r\n <ul class=\"steps\">\r\n <li>\r\n <!-- <h6> {{'Issue Type'|translate}}</h6> -->\r\n <div class=\"main_menu_brad\">\r\n \r\n <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _type.showGroup || _type.showCategory}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectType(_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_type.IssueTypeAr ? _type.IssueTypeAr\r\n : (_type.IssueTypeEn |translate)) : _type.IssueTypeEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_type.showGroup || _type.showCategory\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToType(_type)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr :\r\n (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}\r\n </h6>\r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectGroup(_issue,_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_issue.showSubGroup\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectSubGroup(_sub)\">{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngFor=\"let _cat of _type.Category\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _cat.showCase}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectCategory(_cat,_type)\">\r\n {{ globalService.CurrentLanguage =='Ar' ? (_cat.CategoryIdAr ?\r\n _cat.CategoryIdAr : (_cat.CategoryIdEn |translate)) : _cat.CategoryIdEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_cat.showCase\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToCategory(_cat)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedCategory.CategoryIdAr ? selectedCategory.CategoryIdAr :\r\n (selectedCategory.CategoryIdEn |translate)) : selectedCategory.CategoryIdEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _case of _cat.Case\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectCase(_case)\">{{globalService.CurrentLanguage =='Ar' ? (_case.CaseIdAr ?\r\n _case.CaseIdAr : (_case.CaseIdEn |translate)) : _case.CaseIdEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n </div>\r\n <!-- <div class=\"pull-right m-r-10\">\r\n <button class=\"btn btn-outline btn-danger\" *ngIf=\"isDetails\" (click)=\"backToRequest()\">\r\n \r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div> -->\r\n </div>\r\n \r\n \r\n <ng-container *ngIf=\"!isDetails\">\r\n \r\n <div class=\"whole m-b-20\">\r\n\r\n <div class=\"card-box \">\r\n <div class=\"header\">\r\n <h5 class=\"card-box-title m-0\">{{'Overview'| translate}}</h5>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span><i class=\"la la-info\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{TotalStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Total Request'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fde3ff;color: #db32e8;\"><i class=\"la la-file\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{NewStatus }}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'New'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fff3ea;color: #ec8f48;\"><i\r\n class=\"la la-exclamation-circle\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{InProgressStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'In Progress'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #eafff1;color: #27b556;\"><i class=\"la la-check\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{ClosedStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Closed'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n <div class=\"whole\">\r\n\r\n <div class=\"pull-left w-50 p-r-10 p-l-10\">\r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"w-100 serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- <div class=\"m-r-10 pull-left status_dropdown_div\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n \r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n \r\n </div> -->\r\n <!-- <div class=\"view-type pull-left m-l-10 m-r-10\">\r\n <span class=\"themecolor m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-id-card-o\"></i></span>\r\n <span class=\"m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-table\"></i></span>\r\n </div> -->\r\n \r\n \r\n \r\n </div>\r\n \r\n <div class=\"body whole\">\r\n <div class=\"lists\" *ngFor=\"let item of supportRequestData\">\r\n \r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"header\">\r\n <div class=\"\">{{item.CreatedBy}}</div>\r\n <!-- <div class=\"user-stage\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div> -->\r\n <span><span class=\"user-stage\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{item.CreatedDatetime | date}} </div>\r\n </div>\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div> -->\r\n \r\n <div class=\"content col-sm-12\">\r\n <h4 class=\"themecolor\"><u class=\"m-r-15\" (click)=\"openDetailsPopup(item)\">#{{item?.CaseId}}</u> {{item.Subject}}</h4>\r\n <!-- <span ><i class=\"text-bold\">Assigned To </i>: {{item.AssignedTo}}</span> -->\r\n \r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n \r\n \r\n <!-- <div class=\"req_id\">\r\n <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p>\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n \r\n <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span>\r\n </div> -->\r\n\r\n <div class=\"prioritys\">\r\n \r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr ? item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div>\r\n \r\n\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n \r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n \r\n </ng-container>\r\n\r\n \r\n </div>\r\n</ng-template>\r\n\r\n\r\n</ng-container>\r\n",
|
|
6938
|
+
template: "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css\">\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/styles.css\">\r\n<link rel=\"stylesheet\" href=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/SupportRequest/supportstyles.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/main.css\">\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/bootstrap.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/font-awesome.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@angular/material@11.2.13/prebuilt-themes/indigo-pink.css\">\r\n<!-- <div class=\"data-loader\" [ngClass]=\"{'show_loader': globalService.dataLoader == true}\">\r\n <div class=\"loading\">\r\n <div class=\"dataloadings\">\r\n </div>\r\n </div>\r\n</div> -->\r\n<ng-container *ngIf=\"globalService.dataLoader\">\r\n <div class=\"page-loader-wrapper active\">\r\n <div class=\"loader\">\r\n <div class=\"m-t-30\"><img src=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/assets/images/arco-icon-96x96.png\" width=\"48\" height=\"48\" alt=\"ARCO\"></div>\r\n <p>Please wait...</p>\r\n </div>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"viewHtml\">\r\n\r\n<ng-container *ngIf=\"PageType=='SelfService';else caseTemplate\" >\r\n\r\n <app-self-service-flow [RequesterTypeId]=\"RequesterTypeId\" [RequesterTypeIdEn]=\"RequesterTypeIdEn\"\r\n [RequesterId]=\"RequesterId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequestField]=\"RequesterField\"></app-self-service-flow>\r\n\r\n</ng-container>\r\n\r\n<ng-template #caseTemplate>\r\n\r\n <div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div *ngIf=\"isDetails\">\r\n <span class=\"back-arrow\" (click)=\"backToRequest()\">\r\n <i class=\"fa fa-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"whole m-t-10 m-b-20 clearfix\">\r\n \r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{PageType|translate}}\r\n <span *ngIf=\"isDetails && CaseId\"> - #{{CaseId}}</span>\r\n </h2>\r\n \r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"openIssueType()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <div class=\"modal fade show\" *ngIf=\"displayPopUp\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':dropdownmodal,'modal-lg':!dropdownmodal}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} {{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">×</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"IssueTypeDDL.length > 0\">\r\n <div class=\"\" *ngIf=\"dropdownmodal\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Request'\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select [items]=\"dropdownIssuse\" [placeholder]=\"'Request'\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n \r\n \r\n <!-- <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n \r\n \r\n \r\n <div class=\"row\">\r\n \r\n \r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <ng-container *ngIf=\"showChild\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"Popup-boxes\" (click)=\"selectGroup(_issue,_type)\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n \r\n \r\n <span >{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-container>\r\n \r\n <div class=\"col-sm-12 mb-3\" *ngIf=\"_issue.showSubGroup && !showChild && showsubChild\">\r\n <h6 class=\"\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n </div>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <ng-container *ngIf=\"showsubChild && !showChild && _issue.showSubGroup\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n \r\n <div class=\"Popup-boxes\" (click)=\"selectSubGroup(_sub)\">\r\n \r\n \r\n <span >{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n \r\n </ng-container>\r\n </div>\r\n\r\n \r\n </ng-container> -->\r\n \r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n \r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> > \r\n \r\n <ng-container *ngIf=\"selectedType.IssueGroup; else elseCategory\">\r\n \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}</span> > \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ? selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) : selectedSubGroup?.IssueEn }}</span> > \r\n \r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ? selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) : selectedCategory?.CategoryIdEn }}</span> > \r\n </ng-template>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr : (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </div>\r\n \r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" \r\n [ViewFrom]=\"'Popup'\"\r\n \r\n [IssueType]=\"selectedType.IssueType\"\r\n [IssueTypeEn]=\"selectedType.IssueTypeEn\"\r\n [IssueTypeAr]=\"selectedType.IssueTypeAr\"\r\n \r\n [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\"\r\n [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n \r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" \r\n [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\" \r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" \r\n \r\n [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\"\r\n [Channel]=\"Channel\" \r\n [ChannelEn]=\"ChannelEn\" \r\n [ChannelAr]=\"ChannelAr\" \r\n [RequesterId]=\"RequesterId\"\r\n [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\"\r\n \r\n [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"\" *ngIf=\"isCreate && !isShowCreateRequest\">\r\n <div class=\"step-fixed\" (click)=\"backToRequest()\" ></div>\r\n <ul class=\"steps\">\r\n <li>\r\n <!-- <h6> {{'Issue Type'|translate}}</h6> -->\r\n <div class=\"main_menu_brad\">\r\n \r\n <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _type.showGroup || _type.showCategory}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectType(_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_type.IssueTypeAr ? _type.IssueTypeAr\r\n : (_type.IssueTypeEn |translate)) : _type.IssueTypeEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_type.showGroup || _type.showCategory\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToType(_type)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr :\r\n (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}\r\n </h6>\r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectGroup(_issue,_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_issue.showSubGroup\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectSubGroup(_sub)\">{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngFor=\"let _cat of _type.Category\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _cat.showCase}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectCategory(_cat,_type)\">\r\n {{ globalService.CurrentLanguage =='Ar' ? (_cat.CategoryIdAr ?\r\n _cat.CategoryIdAr : (_cat.CategoryIdEn |translate)) : _cat.CategoryIdEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_cat.showCase\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToCategory(_cat)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedCategory.CategoryIdAr ? selectedCategory.CategoryIdAr :\r\n (selectedCategory.CategoryIdEn |translate)) : selectedCategory.CategoryIdEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _case of _cat.Case\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectCase(_case)\">{{globalService.CurrentLanguage =='Ar' ? (_case.CaseIdAr ?\r\n _case.CaseIdAr : (_case.CaseIdEn |translate)) : _case.CaseIdEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n </div>\r\n <!-- <div class=\"pull-right m-r-10\">\r\n <button class=\"btn btn-outline btn-danger\" *ngIf=\"isDetails\" (click)=\"backToRequest()\">\r\n \r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div> -->\r\n </div>\r\n \r\n \r\n <ng-container *ngIf=\"!isDetails\">\r\n \r\n <div class=\"whole m-b-20\">\r\n\r\n <div class=\"card-box \">\r\n <div class=\"header\">\r\n <h5 class=\"card-box-title m-0\">{{'Overview'| translate}}</h5>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span><i class=\"la la-ticket my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{TotalStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Total Request'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fde3ff;color: #db32e8;\"><i class=\"la la-file my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{NewStatus }}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'New'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fff3ea;color: #ec8f48;\"><i\r\n class=\"la la-hourglass-half my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{InProgressStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'In Progress'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #eafff1;color: #27b556;\"><i class=\"la la-check my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{ClosedStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Closed'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n <div class=\"whole\">\r\n\r\n <div class=\"pull-left w-50 p-r-10 p-l-10\">\r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"w-100 serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- <div class=\"m-r-10 pull-left status_dropdown_div\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n \r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n \r\n </div> -->\r\n <!-- <div class=\"view-type pull-left m-l-10 m-r-10\">\r\n <span class=\"themecolor m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-id-card-o\"></i></span>\r\n <span class=\"m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-table\"></i></span>\r\n </div> -->\r\n \r\n \r\n \r\n </div>\r\n \r\n <div class=\"body whole\">\r\n <div class=\"lists\" *ngFor=\"let item of supportRequestData\">\r\n \r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"header\">\r\n <div class=\"\">{{item.CreatedBy}}</div>\r\n <!-- <div class=\"user-stage\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div> -->\r\n <span><span class=\"user-stage\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{item.CreatedDatetime | date}} </div>\r\n </div>\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div> -->\r\n \r\n <div class=\"content col-sm-12\">\r\n <h4 class=\"themecolor\"><u class=\"m-r-15\" (click)=\"openDetailsPopup(item)\">#{{item?.CaseId}}</u> {{item.Subject}}</h4>\r\n <!-- <span ><i class=\"text-bold\">Assigned To </i>: {{item.AssignedTo}}</span> -->\r\n \r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n \r\n \r\n <!-- <div class=\"req_id\">\r\n <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p>\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n \r\n <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span>\r\n </div> -->\r\n\r\n <div class=\"prioritys\">\r\n \r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr ? item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div>\r\n \r\n\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n \r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n \r\n </ng-container>\r\n\r\n \r\n </div>\r\n</ng-template>\r\n\r\n\r\n</ng-container>\r\n",
|
|
6929
6939
|
styles: [""]
|
|
6930
6940
|
},] }
|
|
6931
6941
|
];
|
|
@@ -6933,6 +6943,7 @@
|
|
|
6933
6943
|
{ type: SupportRequestService },
|
|
6934
6944
|
{ type: forms.FormBuilder },
|
|
6935
6945
|
{ type: EntityTypeSetupService },
|
|
6946
|
+
{ type: router.Router },
|
|
6936
6947
|
{ type: GlobalService },
|
|
6937
6948
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] }
|
|
6938
6949
|
]; };
|
|
@@ -8863,35 +8874,39 @@
|
|
|
8863
8874
|
this.pageStartFrom = 1;
|
|
8864
8875
|
};
|
|
8865
8876
|
EntityDynamicFieldComponent.prototype.autoSearchDropdown = function (event, field, searchValue, RequestorField) {
|
|
8866
|
-
|
|
8867
|
-
if (
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
var
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8877
|
+
debugger;
|
|
8878
|
+
if (event.keyCode == 13) {
|
|
8879
|
+
this.globalService.dataLoader = true;
|
|
8880
|
+
this.tempFields = field;
|
|
8881
|
+
if (field.DataType == E_DataType.dropdown) {
|
|
8882
|
+
if (field.FieldData) {
|
|
8883
|
+
var jsonItem = JSON.parse(field.FieldData);
|
|
8884
|
+
if (jsonItem.isDynamic && jsonItem.rest && jsonItem.rest.URL) {
|
|
8885
|
+
var restData = jsonItem.rest;
|
|
8886
|
+
var _Searchcriteria = {
|
|
8887
|
+
Pagging: {
|
|
8888
|
+
PageNo: 1,
|
|
8889
|
+
PageSize: 100,
|
|
8890
|
+
},
|
|
8891
|
+
Where: [],
|
|
8892
|
+
SortOrder: 1,
|
|
8893
|
+
};
|
|
8894
|
+
if (!searchValue)
|
|
8895
|
+
searchValue = event.target.value;
|
|
8896
|
+
var filterobj_1 = {
|
|
8897
|
+
Field: restData.valueField,
|
|
8898
|
+
Operator: 'Contains',
|
|
8899
|
+
TableAlias: '',
|
|
8900
|
+
Value: searchValue,
|
|
8901
|
+
};
|
|
8902
|
+
jsonItem.rest.QueryStrings.filter(function (x) { return x.Type == "SearchValue"; }).map(function (y) {
|
|
8903
|
+
var temp = ":" + y.Name;
|
|
8904
|
+
filterobj_1.Field += temp;
|
|
8905
|
+
});
|
|
8906
|
+
if (filterobj_1.Field)
|
|
8907
|
+
_Searchcriteria.Where.push(filterobj_1);
|
|
8908
|
+
this.loadDropdown(field, _Searchcriteria, RequestorField, searchValue);
|
|
8909
|
+
}
|
|
8895
8910
|
}
|
|
8896
8911
|
}
|
|
8897
8912
|
}
|
|
@@ -9333,7 +9348,7 @@
|
|
|
9333
9348
|
EntityDynamicFieldComponent.decorators = [
|
|
9334
9349
|
{ type: i0.Component, args: [{
|
|
9335
9350
|
selector: 'app-entity-dynamic-field',
|
|
9336
|
-
template: "<ng-container *ngIf=\"fieldsList.length != 0\">\r\n <div class=\"d-block field position-relative \" [ngClass]=\"{'dynamic-view':(Type=='View'|| Type=='Details'),'lang_Arabic': globalService.CurrentLanguage=='Ar'}\"\r\n *ngFor=\"let item of fieldsList; let fieldIndex = index\">\r\n <!-- textarea, image, file -->\r\n\r\n <ng-container *ngIf=\"Type !='Details' else elseTemplate\" [formGroup]=\"pageForm.form\">\r\n <ng-container\r\n *ngIf=\"(item.DataType == 10 || item.DataType == 7 || item.DataType == 8 || item.DataType == 11 || item.DataType == _dataType.HtmlEditor || item.DataType == _dataType.List) else thenBlack\">\r\n <ng-container>\r\n <!-- *ngIf=\"item.IsVisible\" -->\r\n <!-- Drop Down -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 8\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <!-- <ng-select [id]=\"item.Description\" (click)=\"loadDropdown(item)\"\r\n [items]=\"dropDown$[item.Description] | async\" [formControlName]=\"item.Description\"\r\n bindLabel=\"Description\" bindValue=\"Id\" (change)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\">\r\n </ng-select> -->\r\n\r\n <div class=\"position-relative\" style=\"position: relative;\">\r\n\r\n <div class=\"control-input\">\r\n <!-- {{item.showSelectedValues|translate}} -->\r\n <label class=\"form-control\" [ngClass]=\"{'border-red': item.IsMandatory && !(pageForm.form.value[item.Description]) }\" (click)=\"showTable(item)\">\r\n {{item.showSelectedValues? (item.showSelectedValues ): pageForm.form.value[item.Description]}}\r\n </label>\r\n <input [id]=\"item.Description\" autocomplete=\"off\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.DescriptionAr ?item.DescriptionAr : (item.Description | translate)) :item.Description\" type=\"hidden\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"item.showTable =!item.showTable;loadDropdownColumn(item)\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (keyup)=\"changeFiledValue($event,item)\" readonly />\r\n </div>\r\n\r\n\r\n\r\n <div class=\"control-table autoComplete_dropdown\" *ngIf=\"item.showTable\" [ngClass]=\"{'d-none':item.IsInactive}\">\r\n\r\n <span class=\"close pull-right\" (click)=\"item.showTable =!item.showTable;\">x</span>\r\n\r\n <div class=\"control-table-search m-b-10 m-r-30\" style=\"position: relative;\">\r\n <input type=\"text\" [(ngModel)]=\"item.AutoSearchText\" [ngModelOptions]=\"{standalone: true}\"\r\n placeholder=\"{{'Search Here to Get Data'|translate}}....\" (keyup)=\"autoSearchDropdown($event,item)\" />\r\n <i class=\"la la-search\"\r\n style=\"position: absolute;\r\n top: 4px;\r\n right: 5px;\r\n color: #ddd;\r\n font-size: 18px; \"\r\n (click)=\"loadDropdown(item)\"></i>\r\n <!-- <button class=\"btn-outline-secondary table_buttons\" >\r\n <i class=\"la la-search\"></i>\r\n </button> -->\r\n </div>\r\n <table class=\"table table-bordered table-striped table-hover\">\r\n <thead>\r\n <tr>\r\n <td style=\"width: 30px;\"></td>\r\n <td *ngFor=\"let col of dropDownColumn$[item.Description]| Unique\">\r\n {{col|translate}}\r\n </td>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"let val of (dropDown$[item.Description] | async | filter:item.AutoSearchText) | paginate: {itemsPerPage:defineItemsPerPage, currentPage:pageStartFrom} \">\r\n <td style=\"width: 30px;\">\r\n <span (click)=\"item.showTable =!item.showTable;selectDropDownRow(val,item)\">\r\n <input class=\"themecolor\" name=\"{{item.Description}}\" type=\"radio\">\r\n </span>\r\n </td>\r\n <ng-container *ngFor=\"let col of dropDownColumn$[item.Description]| Unique\">\r\n <td> {{val[col]}} </td>\r\n </ng-container>\r\n\r\n </tr>\r\n </tbody>\r\n\r\n\r\n </table>\r\n\r\n <ng-container *ngIf=\"(dropDown$[item.Description]| async) as list\">\r\n\r\n <div class=\"bootom-pagenations whole row m-0\" *ngIf=\"list && list.length > 10\"> \r\n\r\n <pagination-controls class=\"inline-block pull-left col padding-0\" style=\"max-width: 100%;\" (pageChange)=\"pageStartFrom = $event\">\r\n </pagination-controls>\r\n\r\n <div class=\"inline-block page-style pull-right col padding-0\" style=\"max-width: 50px;\">\r\n <!-- <label class=\"pageLabel\">{{'Page Size'|translate}}: </label> -->\r\n <select class=\"form-control form-control-sm pageSize inline-block m-0\" style=\"width: 50px;\"\r\n [(ngModel)]=\"defineItemsPerPage\" [ngModelOptions]=\"{standalone: true}\" (change)=\"defineRecordCount($event)\">\r\n <option value=\"10\">10</option>\r\n <option value=\"15\">15</option>\r\n <option value=\"20\">20</option>\r\n <option value=\"25\">25</option>\r\n </select>\r\n </div>\r\n\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <!-- text-area -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 10\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-md-3 col-lg-4 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\" (click)=\"showShortKey(item)\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <textarea class=\"dy-text-area\" rows=\"4\" [id]=\"item.Description\" [name]=\"item.Description\"\r\n [formControlName]=\"item.Description\" class=\"form-control\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n (click)=\"activeInputId = item.Description\" (keyup)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"></textarea>\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n\r\n\r\n <div class=\"canned-response\" *ngIf=\"item.DataType ==10\">\r\n\r\n <button type=\"button\" (click)=\"showshortcode =!showshortcode; getShortCodeCannedResponse()\"\r\n class=\"btn-outline-success badge bg-white\">\r\n <i class=\"la la-envelope-open-text themecolor\" style=\"font-size: 25px;\"></i> </button>\r\n <ul role=\"menu\" class=\"dropdown-menu show\" *ngIf=\"showshortcode\">\r\n <li *ngFor=\"let short of shortcode\"><a class=\"dropdown-item\"\r\n (click)=\"selectShortKey(short)\">{{short.Message}}</a></li>\r\n </ul>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n\r\n <!-- Image -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 7\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <input autocomplete=\"off\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\" type=\"file\" [id]=\"item.Description\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\" class=\"form-control\"\r\n (click)=\"activeInputId = item.Description\" (change)=\"changeFile($event,item)\"\r\n accept=\"image/x-png,image/gif,image/jpeg\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- file -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 11\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <input [id]=\"item.Description\" autocomplete=\"off\"\r\n style=\"width: calc(100% - 30px); display: inline-block; margin: 00 5px 0 0;\"\r\n [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\" type=\"file\" (change)=\"changeFile($event,item)\" [name]=\"item.Description\"\r\n [formControlName]=\"item.Description\" (click)=\"activeInputId = item.Description\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group\" *ngIf=\"item.DataType == _dataType.List\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n \r\n <div class=\"row\">\r\n \r\n <div class=\"col text-right\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n <span class=\"padding-left-10\">\r\n <i (click)=\"addnewList(item)\" class=\"themeprimary la la-plus bold fs-15\"></i>\r\n </span>\r\n </label>\r\n </div>\r\n <div class=\"col control-input\">\r\n \r\n <div class=\"form-group\" *ngFor=\"let _list of FiedlListData$[item.Description]; let i = index\">\r\n <div class=\"row\">\r\n <span class=\"col-sm-3\">\r\n <input class=\"form-control\" type=\"text\" placeholder=\"key\" [(ngModel)]=\"_list.key\" [ngModelOptions]=\"{standalone: true}\" (keyup)=\"changeFiledList(item,_list,i)\" >\r\n </span>\r\n <span class=\"col-sm-1 no-padding\" style=\"width: auto;\">=</span>\r\n <span class=\"col-sm-3\">\r\n <input class=\"form-control\" type=\"text\" placeholder=\"value\" [(ngModel)]=\"_list.value\" [ngModelOptions]=\"{standalone: true}\" (keyup)=\"changeFiledList(item,_list,i)\" >\r\n </span>\r\n <span class=\"col-sm-1 no-padding\" (click)=\"removeList(item,i)\" style=\"width: auto;\">\r\n <i class=\"la la-times themeprimary\"></i>\r\n </span>\r\n \r\n </div>\r\n </div>\r\n \r\n \r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n </div>\r\n\r\n\r\n <div class=\"form-group\" *ngIf=\"item.DataType == _dataType.HtmlEditor\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <angular-editor [id]=\"item.Description\" class=\"mail_editor\" [formControlName]=\"item.Description\"\r\n (keyup)=\"changeFiledValue($event,item)\" (click)=\"activeInputId = item.Description\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"></angular-editor>\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #thenBlack>\r\n <div class=\"form-group\" *ngIf=\"!item.IsTableField\" [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <!-- *ngIf=\"item.IsVisible\" -->\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <!-- string, int, decimal, time, checkbox, image -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\"\r\n *ngIf=\"item.DataType == 1 || item.DataType == 2 || item.DataType == 5 || item.DataType == 6\">\r\n\r\n \r\n <ng-container *ngIf=\"item.IsTableField; else elseTemplate\">\r\n \r\n <label class=\"form-control field_muted\" style=\"padding-right: 0px;\">\r\n {{pageForm.form.value[item.Description]}}\r\n </label>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <input [id]=\"item.Description\" autocomplete=\"off\"\r\n [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n [type]=\"getType(item.DataType)\" [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"activeInputId = item.Description\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (keyup)=\"changeFiledValue($event,item)\" />\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </ng-template>\r\n </div>\r\n <!-- checkbox -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\" *ngIf=\"item.DataType == 9\">\r\n <input [id]=\"item.Description\" autocomplete=\"off\" type=\"checkbox\" [formControlName]=\"item.Description\"\r\n class=\"form-control\" [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (change)=\"changeFiledValue($event,item)\" />\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n\r\n\r\n <!-- date && date-time -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0 date_pick\" *ngIf=\"item.DataType == 3 || item.DataType == 4\">\r\n <input [id]=\"item.Description\" type=\"text\" [matDatepicker]=\"myDatepicker\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"activeInputId = item.Description\" class=\"form-control\" (dateChange)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n <div class=\"datepickerstyle\">\r\n <mat-datepicker-toggle [for]=\"myDatepicker\"></mat-datepicker-toggle>\r\n <mat-datepicker #myDatepicker></mat-datepicker>\r\n </div>\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n\r\n <div class=\" row\" *ngIf=\"!item.IsUiField\" >\r\n <label class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <!-- {{item.Label }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n </label>\r\n <span class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">: \r\n\r\n <ng-container *ngIf=\"item && item.Description\" [ngSwitch]=\"item.DataType\">\r\n <span *ngSwitchCase=\"_dataType.date\" class=\"tooltiptexts\">\r\n {{PageGroupValues[item.Description] | date :'dd/MM/yyyy'}}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.dateTime\" class=\"tooltiptexts\">\r\n {{PageGroupValues[item.Description] | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.bool\">\r\n {{(PageGroupValues[item.Description] ==true ? 'Yes' : 'No') | translate }}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.dropdown\">\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n </span>\r\n <span *ngSwitchCase=\"_dataType.LookUp\">\r\n <ng-container *ngIf=\"item.LookupData; else elseLookupTemplate\">\r\n {{PageGroupValues[getFiledKey(item.Description,item.LookupData)] }}\r\n </ng-container>\r\n <ng-template #elseLookupTemplate>\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n </ng-template>\r\n </span>\r\n\r\n\r\n <div *ngSwitchCase=\"_dataType.HtmlEditor\" [innerHTML]=\"PageGroupValues[item.Description]\">\r\n </div>\r\n\r\n\r\n <span *ngSwitchDefault>\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n \r\n </span>\r\n </ng-container>\r\n </span>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-container *ngIf=\"Type !='Details' && ActionType != '1' && ActionType != '2'\">\r\n <div class=\"settings position-absolute\">\r\n <i (click)=\"_deleteField(fieldIndex)\" class=\"la la-trash-o\"></i>\r\n <i (click)=\"_downField(fieldIndex)\" class=\"la la-arrow-down\"></i>\r\n <i (click)=\"_upField(fieldIndex)\" class=\"la la-arrow-up\"></i>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n</ng-container>\r\n",
|
|
9351
|
+
template: "<ng-container *ngIf=\"fieldsList.length != 0\">\r\n <div class=\"d-block field position-relative \" [ngClass]=\"{'dynamic-view':(Type=='View'|| Type=='Details'),'lang_Arabic': globalService.CurrentLanguage=='Ar'}\"\r\n *ngFor=\"let item of fieldsList; let fieldIndex = index\">\r\n <!-- textarea, image, file -->\r\n\r\n <ng-container *ngIf=\"Type !='Details' else elseTemplate\" [formGroup]=\"pageForm.form\">\r\n <ng-container\r\n *ngIf=\"(item.DataType == 10 || item.DataType == 7 || item.DataType == 8 || item.DataType == 11 || item.DataType == _dataType.HtmlEditor || item.DataType == _dataType.List) else thenBlack\">\r\n <ng-container>\r\n <!-- *ngIf=\"item.IsVisible\" -->\r\n <!-- Drop Down -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 8\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <!-- <ng-select [id]=\"item.Description\" (click)=\"loadDropdown(item)\"\r\n [items]=\"dropDown$[item.Description] | async\" [formControlName]=\"item.Description\"\r\n bindLabel=\"Description\" bindValue=\"Id\" (change)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\">\r\n </ng-select> -->\r\n\r\n <div class=\"position-relative\" style=\"position: relative;\">\r\n\r\n <div class=\"control-input\">\r\n <!-- {{item.showSelectedValues|translate}} -->\r\n <label class=\"form-control\" style=\"padding: 0px 2px;margin: 0px;\" [ngClass]=\"{'border-red': item.IsMandatory && !(pageForm.form.value[item.Description]) }\" (click)=\"showTable(item)\">\r\n {{item.showSelectedValues? (item.showSelectedValues ): pageForm.form.value[item.Description]}}\r\n </label>\r\n <input [id]=\"item.Description\" autocomplete=\"off\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.DescriptionAr ?item.DescriptionAr : (item.Description | translate)) :item.Description\" type=\"hidden\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"item.showTable =!item.showTable;loadDropdownColumn(item)\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (keyup)=\"changeFiledValue($event,item)\" readonly />\r\n </div>\r\n\r\n\r\n\r\n <div class=\"control-table autoComplete_dropdown\" *ngIf=\"item.showTable\" [ngClass]=\"{'d-none':item.IsInactive}\">\r\n\r\n <span class=\"close pull-right\" (click)=\"item.showTable =!item.showTable;\">x</span>\r\n\r\n <div class=\"control-table-search m-b-10 m-r-30\" style=\"position: relative;\">\r\n <input type=\"text\" [(ngModel)]=\"item.AutoSearchText\" [ngModelOptions]=\"{standalone: true}\"\r\n placeholder=\"{{'Search And Press Enter to Get Data'|translate}}....\" (keydown)=\"autoSearchDropdown($event,item)\" />\r\n <i class=\"la la-search\"\r\n style=\"position: absolute;\r\n top: 4px;\r\n right: 5px;\r\n color: #ddd;\r\n font-size: 18px; \"\r\n (click)=\"loadDropdown(item)\"></i>\r\n <small class=\"red\">{{'Search And Press Enter to Get Data'|translate}}</small>\r\n <!-- <button class=\"btn-outline-secondary table_buttons\" >\r\n <i class=\"la la-search\"></i>\r\n </button> -->\r\n </div>\r\n <table class=\"table table-bordered table-striped table-hover\">\r\n <thead>\r\n <tr>\r\n <td style=\"width: 30px;\"></td>\r\n <td *ngFor=\"let col of dropDownColumn$[item.Description]| Unique\">\r\n {{col|translate}}\r\n </td>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"let val of (dropDown$[item.Description] | async | filter:item.AutoSearchText) | paginate: {itemsPerPage:defineItemsPerPage, currentPage:pageStartFrom} \">\r\n <td style=\"width: 30px;\">\r\n <span (click)=\"item.showTable =!item.showTable;selectDropDownRow(val,item)\">\r\n <input class=\"themecolor\" name=\"{{item.Description}}\" type=\"radio\">\r\n </span>\r\n </td>\r\n <ng-container *ngFor=\"let col of dropDownColumn$[item.Description]| Unique\">\r\n <td> {{val[col]}} </td>\r\n </ng-container>\r\n\r\n </tr>\r\n </tbody>\r\n\r\n\r\n </table>\r\n\r\n <ng-container *ngIf=\"(dropDown$[item.Description]| async) as list\">\r\n\r\n <div class=\"bootom-pagenations whole row m-0\" *ngIf=\"list && list.length > 10\"> \r\n\r\n <pagination-controls class=\"inline-block pull-left col padding-0\" style=\"max-width: 100%;\" (pageChange)=\"pageStartFrom = $event\">\r\n </pagination-controls>\r\n\r\n <div class=\"inline-block page-style pull-right col padding-0\" style=\"max-width: 50px;\">\r\n <!-- <label class=\"pageLabel\">{{'Page Size'|translate}}: </label> -->\r\n <select class=\"form-control form-control-sm pageSize inline-block m-0\" style=\"width: 50px;\"\r\n [(ngModel)]=\"defineItemsPerPage\" [ngModelOptions]=\"{standalone: true}\" (change)=\"defineRecordCount($event)\">\r\n <option value=\"10\">10</option>\r\n <option value=\"15\">15</option>\r\n <option value=\"20\">20</option>\r\n <option value=\"25\">25</option>\r\n </select>\r\n </div>\r\n\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <!-- text-area -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 10\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-md-3 col-lg-4 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\" (click)=\"showShortKey(item)\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <textarea class=\"dy-text-area\" rows=\"4\" [id]=\"item.Description\" [name]=\"item.Description\"\r\n [formControlName]=\"item.Description\" class=\"form-control\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n (click)=\"activeInputId = item.Description\" (keyup)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"></textarea>\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n\r\n\r\n <div class=\"canned-response\" *ngIf=\"item.DataType ==10\">\r\n\r\n <button type=\"button\" (click)=\"showshortcode =!showshortcode; getShortCodeCannedResponse()\"\r\n class=\"btn-outline-success badge bg-white\">\r\n <i class=\"la la-envelope-open-text themecolor\" style=\"font-size: 25px;\"></i> </button>\r\n <ul role=\"menu\" class=\"dropdown-menu show\" *ngIf=\"showshortcode\">\r\n <li *ngFor=\"let short of shortcode\"><a class=\"dropdown-item\"\r\n (click)=\"selectShortKey(short)\">{{short.Message}}</a></li>\r\n </ul>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n\r\n <!-- Image -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 7\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <input autocomplete=\"off\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\" type=\"file\" [id]=\"item.Description\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\" class=\"form-control\"\r\n (click)=\"activeInputId = item.Description\" (change)=\"changeFile($event,item)\"\r\n accept=\"image/x-png,image/gif,image/jpeg\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- file -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 11\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <input [id]=\"item.Description\" autocomplete=\"off\"\r\n style=\"width: calc(100% - 30px); display: inline-block; margin: 00 5px 0 0;\"\r\n [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\" type=\"file\" (change)=\"changeFile($event,item)\" [name]=\"item.Description\"\r\n [formControlName]=\"item.Description\" (click)=\"activeInputId = item.Description\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group\" *ngIf=\"item.DataType == _dataType.List\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n \r\n <div class=\"row\">\r\n \r\n <div class=\"col text-right\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n <span class=\"padding-left-10\">\r\n <i (click)=\"addnewList(item)\" class=\"themeprimary la la-plus bold fs-15\"></i>\r\n </span>\r\n </label>\r\n </div>\r\n <div class=\"col control-input\">\r\n \r\n <div class=\"form-group\" *ngFor=\"let _list of FiedlListData$[item.Description]; let i = index\">\r\n <div class=\"row\">\r\n <span class=\"col-sm-3\">\r\n <input class=\"form-control\" type=\"text\" placeholder=\"key\" [(ngModel)]=\"_list.key\" [ngModelOptions]=\"{standalone: true}\" (keyup)=\"changeFiledList(item,_list,i)\" >\r\n </span>\r\n <span class=\"col-sm-1 no-padding\" style=\"width: auto;\">=</span>\r\n <span class=\"col-sm-3\">\r\n <input class=\"form-control\" type=\"text\" placeholder=\"value\" [(ngModel)]=\"_list.value\" [ngModelOptions]=\"{standalone: true}\" (keyup)=\"changeFiledList(item,_list,i)\" >\r\n </span>\r\n <span class=\"col-sm-1 no-padding\" (click)=\"removeList(item,i)\" style=\"width: auto;\">\r\n <i class=\"la la-times themeprimary\"></i>\r\n </span>\r\n \r\n </div>\r\n </div>\r\n \r\n \r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n </div>\r\n\r\n\r\n <div class=\"form-group\" *ngIf=\"item.DataType == _dataType.HtmlEditor\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <angular-editor [id]=\"item.Description\" class=\"mail_editor\" [formControlName]=\"item.Description\"\r\n (keyup)=\"changeFiledValue($event,item)\" (click)=\"activeInputId = item.Description\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"></angular-editor>\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #thenBlack>\r\n <div class=\"form-group\" *ngIf=\"!item.IsTableField\" [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <!-- *ngIf=\"item.IsVisible\" -->\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <!-- string, int, decimal, time, checkbox, image -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\"\r\n *ngIf=\"item.DataType == 1 || item.DataType == 2 || item.DataType == 5 || item.DataType == 6\">\r\n\r\n \r\n <ng-container *ngIf=\"item.IsTableField; else elseTemplate\">\r\n \r\n <label class=\"form-control field_muted\" style=\"padding-right: 0px;\">\r\n {{pageForm.form.value[item.Description]}}\r\n </label>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <input [id]=\"item.Description\" autocomplete=\"off\"\r\n [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n [type]=\"getType(item.DataType)\" [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"activeInputId = item.Description\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (keyup)=\"changeFiledValue($event,item)\" />\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </ng-template>\r\n </div>\r\n <!-- checkbox -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\" *ngIf=\"item.DataType == 9\">\r\n <input [id]=\"item.Description\" autocomplete=\"off\" type=\"checkbox\" [formControlName]=\"item.Description\" style=\"margin-top: 7px;margin-bottom: 8px;\"\r\n class=\"form-control\" [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (change)=\"changeFiledValue($event,item)\" />\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n\r\n\r\n <!-- date && date-time -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0 date_pick\" *ngIf=\"item.DataType == 3 || item.DataType == 4\">\r\n <input [id]=\"item.Description\" type=\"text\" [matDatepicker]=\"myDatepicker\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"activeInputId = item.Description\" class=\"form-control\" (dateChange)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n <div class=\"datepickerstyle\">\r\n <mat-datepicker-toggle [for]=\"myDatepicker\"></mat-datepicker-toggle>\r\n <mat-datepicker #myDatepicker></mat-datepicker>\r\n </div>\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n\r\n <div class=\" row\" *ngIf=\"!item.IsUiField\" >\r\n <label class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <!-- {{item.Label }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n </label>\r\n <span class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">: \r\n\r\n <ng-container *ngIf=\"item && item.Description\" [ngSwitch]=\"item.DataType\">\r\n <span *ngSwitchCase=\"_dataType.date\" class=\"tooltiptexts\">\r\n {{PageGroupValues[item.Description] | date :'dd/MM/yyyy'}}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.dateTime\" class=\"tooltiptexts\">\r\n {{PageGroupValues[item.Description] | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.bool\">\r\n {{(PageGroupValues[item.Description] ==true ? 'Yes' : 'No') | translate }}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.dropdown\">\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n </span>\r\n <span *ngSwitchCase=\"_dataType.LookUp\">\r\n <ng-container *ngIf=\"item.LookupData; else elseLookupTemplate\">\r\n {{PageGroupValues[getFiledKey(item.Description,item.LookupData)] }}\r\n </ng-container>\r\n <ng-template #elseLookupTemplate>\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n </ng-template>\r\n </span>\r\n\r\n\r\n <div *ngSwitchCase=\"_dataType.HtmlEditor\" [innerHTML]=\"PageGroupValues[item.Description]\">\r\n </div>\r\n\r\n\r\n <span *ngSwitchDefault>\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n \r\n </span>\r\n </ng-container>\r\n </span>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-container *ngIf=\"Type !='Details' && ActionType != '1' && ActionType != '2'\">\r\n <div class=\"settings position-absolute\">\r\n <i (click)=\"_deleteField(fieldIndex)\" class=\"la la-trash-o\"></i>\r\n <i (click)=\"_downField(fieldIndex)\" class=\"la la-arrow-down\"></i>\r\n <i (click)=\"_upField(fieldIndex)\" class=\"la la-arrow-up\"></i>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n</ng-container>\r\n",
|
|
9337
9352
|
styles: [".field .settings{display:none;top:0;right:0;z-index:1;margin:auto 10px;cursor:pointer;padding:5px;-webkit-animation-name:fadeIn;animation-name:fadeIn;-webkit-animation-timing-function:ease;animation-timing-function:ease;-webkit-animation-duration:.3s;animation-duration:.3s}.field:hover .settings{display:block}.field .settings>i{padding:6px}.field .settings>i:hover{background:hsla(0,0%,50.2%,.198)}.field.dynamic-view .settings,.field.dynamic-view:hover .settings{display:none}.field .form-group .row>.col:first-child,.field .row>.col:first-child{max-width:180px}.req_page.lang_Arabic .field .row>.col:first-child{text-align:right!important}.field .form-group .row>.col{padding:0}.field .form-group .row>.col .control-label{font-size:13px}.field .form-group .row>.col.control-input .form-control{height:30px;padding:4px;font-size:13px}.control-table{background:#fff;border:2px solid #ddd;padding:5px;position:absolute;border-radius:5px;box-shadow:3px 6px 10px 7px rgba(0,0,0,.1);min-width:350px;box-shadow:1px;z-index:1}.control-table .control-table-search input{width:100%;border:1px solid #ddd;height:25px;padding:5px}.canned-response{position:absolute;right:10px;bottom:0;display:none}.canned-response .badge{border-radius:100px;height:41px;box-shadow:0 0 13px -5px rgba(0,0,0,.68)}.canned-response .badge:focus{outline:none}.hide{display:none!important}.datepickerstyle{float:left;right:-1px;position:absolute;top:-5px;box-shadow:none}.field_muted{background-color:#f5f5f5}.form-group .control-input input[type=checkbox]{height:15px!important;width:15px!important}"]
|
|
9338
9353
|
},] }
|
|
9339
9354
|
];
|