@qubesense/customer-farm 0.1.2 → 0.1.4
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/esm2020/lib/customer-farm.component.mjs +203 -0
- package/esm2020/lib/customer-farm.module.mjs +106 -0
- package/esm2020/lib/customer-farm.service.mjs +129 -0
- package/esm2020/lib/dependencies/customer-farm-api-urls.mjs +19 -0
- package/esm2020/lib/dependencies/customer-farm-model.mjs +57 -0
- package/esm2020/public-api.mjs +9 -0
- package/esm2020/qubesense-customer-farm.mjs +5 -0
- package/fesm2015/qubesense-customer-farm.mjs +539 -0
- package/fesm2015/qubesense-customer-farm.mjs.map +1 -0
- package/fesm2020/qubesense-customer-farm.mjs +514 -0
- package/fesm2020/qubesense-customer-farm.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/customer-farm.component.d.ts +80 -0
- package/lib/customer-farm.module.d.ts +24 -0
- package/lib/customer-farm.service.d.ts +58 -0
- package/lib/dependencies/customer-farm-api-urls.d.ts +9 -0
- package/lib/dependencies/customer-farm-model.d.ts +48 -0
- package/package.json +31 -11
- package/{src/public-api.ts → public-api.d.ts} +0 -4
- package/.eslintrc.json +0 -44
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/lib/customer-farm.component.html +0 -93
- package/src/lib/customer-farm.component.scss +0 -0
- package/src/lib/customer-farm.component.ts +0 -207
- package/src/lib/customer-farm.module.ts +0 -54
- package/src/lib/customer-farm.service.ts +0 -126
- package/src/lib/dependencies/customer-farm-api-urls.ts +0 -22
- package/src/lib/dependencies/customer-farm-model.ts +0 -52
- package/src/test.ts +0 -27
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qubesense-customer-farm.mjs","sources":["../../../projects/customer-farm/src/lib/dependencies/customer-farm-api-urls.ts","../../../projects/customer-farm/src/lib/customer-farm.service.ts","../../../projects/customer-farm/src/lib/dependencies/customer-farm-model.ts","../../../projects/customer-farm/src/lib/customer-farm.component.ts","../../../projects/customer-farm/src/lib/customer-farm.component.html","../../../projects/customer-farm/src/lib/customer-farm.module.ts","../../../projects/customer-farm/src/public-api.ts","../../../projects/customer-farm/src/qubesense-customer-farm.ts"],"sourcesContent":["export class CustomerFarmApiUrls {\r\n //api Url string for get data by Id\r\n getCustomerFarmByIdUrl: string = 'api/CustomerFarm/GetById';\r\n \r\n //api Url string for insert Customer data\r\n insertCustomerFarmDataUrl: string = 'api/CustomerFarm/Create';\r\n\r\n //api Url string for update Customer record\r\n updateCustomerFarmDataUrl: string = 'api/CustomerFarm/Update';\r\n\r\n //api Url string for delete Customer record\r\n deleteCustomerFarmDataUrl: string = 'api/CustomerFarm/Delete';\r\n\r\n //api Url string for get Customer list\r\n getCustomerFarmListUrl: string = 'api/CustomerFarm/GetAll';\r\n \r\n //api Url string for get Customer dropdown list\r\n getCustomerFarmDropdownListUrl: string = 'api/CustomerFarm/GetDropdownList';\r\n\r\n //api Url string for get Customer dropdown list\r\n getcustomerlistbykeyword: string = 'api/CustomerFarm/SearchCustomer';\r\n}","import { Injectable } from '@angular/core';\r\nimport { DataAccessService, WebApiResult } from '@qubesense/base-services';\r\nimport { CustomerFarmApiUrls } from './dependencies/customer-farm-api-urls';\r\nimport { CustomerFarmModel } from './dependencies/customer-farm-model';\r\n\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CustomerFarmService {\r\n\r\n constructor(private dataAccessService: DataAccessService) { }\r\n\r\n customerFarmApiUrls = new CustomerFarmApiUrls();\r\n\r\n /**\r\n * service for get customer data by Id\r\n * \r\n * @param customerGUID \r\n * \r\n * @returns Response Data from Database\r\n */\r\n public async GetDataById(customerGUID: string): Promise<WebApiResult> {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmByIdUrl + '/' + customerGUID;\r\n const resultResponse = await this.dataAccessService.GetDataById(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for inserting customer data into database\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async InsertData(customerFarmModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.insertCustomerFarmDataUrl;\r\n const resultResponse = await this.dataAccessService.InsertData(url, customerFarmModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for update customer Data\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async UpdateData(customerFarmModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.updateCustomerFarmDataUrl;\r\n const resultResponse = await this.dataAccessService.UpdateData(url, customerFarmModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for delete customer data by GUID\r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n public async DeleteData(recordId: any) {\r\n try {\r\n const url = this.customerFarmApiUrls.deleteCustomerFarmDataUrl + '/' + recordId;\r\n const resultResponse = await this.dataAccessService.DeleteData(url);\r\n return resultResponse;\r\n }\r\n catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for get data for customer grid \r\n * \r\n * @param customerFarmModel \r\n * \r\n * @returns Response Data from Database\r\n */\r\n public async GetListData(customerDataModel: CustomerFarmModel) {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmListUrl;\r\n const resultResponse = await this.dataAccessService.GetListData(url, customerDataModel);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n /**\r\n * service for get data for customer DropDown List\r\n * \r\n * @returns \r\n */\r\n public async GetCustomersDropdownList() {\r\n try {\r\n const url = this.customerFarmApiUrls.getCustomerFarmDropdownListUrl;\r\n const resultResponse = await this.dataAccessService.GetDropdownListData(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n\r\n public async GetCustomerListByKeyword(value:string) {\r\n try {\r\n const url = this.customerFarmApiUrls.getcustomerlistbykeyword + '/' + value;\r\n const resultResponse = await this.dataAccessService.GetDataById(url);\r\n return resultResponse;\r\n } catch (error) {\r\n throw error;\r\n }\r\n }\r\n}\r\n","export class CustomerFarmModel {\r\n formCode: string = null;\r\n formId: string = '';\r\n recordId: string = null;\r\n customerId: string = null;\r\n customerName: string = '';\r\n defaultWarehouse: string = '';\r\n personInCharge: string = '';\r\n displayName: string = '';\r\n primaryVetId: string = '';\r\n PICTattoo: string = '';\r\n isActive: boolean = true;\r\n isDeleted: boolean = false;\r\n}\r\n\r\nexport class CustomerFarmConfigrationModel {\r\n formCode: string = null;\r\n customerId: string = null;\r\n defaultView: boolean = false;\r\n showModal: boolean = false;\r\n showGrid: boolean = false;\r\n isSearchable: boolean = false;\r\n showClientData: boolean = false;\r\n customerData: CustomerFarmModel = null;\r\n userMessages: boolean = false;\r\n requiredCustomerFarmSection: boolean = false;\r\n allowedCustomerFarmSection: boolean = false;\r\n requiredCustomerFarmFields: RequiredCustomerFarmFields = new RequiredCustomerFarmFields();\r\n allowedCustomerFarmFields: AllowedCustomerFarmFields = new AllowedCustomerFarmFields();\r\n}\r\n\r\nexport class RequiredCustomerFarmFields {\r\n customerName: boolean = true;\r\n customerId: boolean = true;\r\n defaultWarehouse: boolean = true;\r\n personInCharge: boolean = true;\r\n primaryVetId: boolean = true;\r\n displayName: boolean = true;\r\n PICTattoo: boolean = false;\r\n profileImageURL: boolean = false;\r\n}\r\n\r\nexport class AllowedCustomerFarmFields {\r\n customerName: boolean = true;\r\n defaultWarehouse: boolean = true;\r\n personInCharge: boolean = true;\r\n primaryVetId: boolean = true;\r\n PICTattoo: boolean = true;\r\n displayName: boolean = true;\r\n profileImageURL: boolean = false;\r\n}\r\n\r\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\r\nimport { CustomerFarmConfigrationModel, CustomerFarmModel } from './dependencies/customer-farm-model';\r\nimport { ErrorLogService, GridEventsModel, KendoGridviewConfigurationModel, ToastrNotificationService } from '@qubesense/base-services';\r\nimport { CustomerFarmService } from './customer-farm.service';\r\n\r\n@Component({\r\n selector: 'lib-customer-farm',\r\n templateUrl: './customer-farm.component.html',\r\n styleUrls: ['./customer-farm.component.scss']\r\n})\r\nexport class CustomerFarmComponent implements OnInit {\r\n @Output() customerFarmData = new EventEmitter<any>();\r\n @Input() public customerFarmConfiguration: CustomerFarmConfigrationModel = new CustomerFarmConfigrationModel();\r\n customerFarmForm: FormGroup;\r\n userMessages: string[] = [];\r\n public gridData: any[] = [];\r\n gridConfiguration: KendoGridviewConfigurationModel = new KendoGridviewConfigurationModel();\r\n hideButtons = false;\r\n isViewCall = false;\r\n speciesList: any[] = [];\r\n filteredCustomers:[];\r\n\r\n constructor(private customerFarmService: CustomerFarmService,\r\n private formBuilder: FormBuilder,\r\n private errorLogService: ErrorLogService,\r\n private toastr: ToastrNotificationService\r\n ) { }\r\n\r\n ngOnInit() {\r\n this.DeclareForm();\r\n if (this.customerFarmConfiguration.showGrid) {\r\n this.gridConfiguration.FormCode = 'CUFA';\r\n this.gridConfiguration.showModal = true;\r\n this.gridConfiguration.actions = { 'View': false, 'Edit': true, 'Delete': true, 'Generate PDF': false }; \r\n this.GetListData();\r\n }\r\n }\r\n\r\n DeclareForm() {\r\n this.customerFarmForm = this.formBuilder.group({\r\n recordId : [null],\r\n customerId : [null],\r\n customerName : [null],\r\n defaultWarehouse : [null],\r\n personInCharge : [null],\r\n displayName : [null],\r\n primaryVetId : [null],\r\n PICTattoo : [null],\r\n isActive : [true]\r\n });\r\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.customerName) {\r\n this.customerFarmForm.get('customerName').addValidators(Validators.required);\r\n this.customerFarmForm.get('customerName').addValidators(Validators.pattern('^[a-zA-Z ]*$'));\r\n this.customerFarmForm.get('customerName').addValidators(Validators.minLength(3));\r\n }\r\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse) {\r\n this.customerFarmForm.get('defaultWarehouse').addValidators(Validators.required);\r\n }\r\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.personInCharge) {\r\n this.customerFarmForm.get('personInCharge').addValidators(Validators.required);\r\n }\r\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId) {\r\n this.customerFarmForm.get('primaryVetId').addValidators(Validators.required);\r\n }\r\n }\r\n\r\n ///////////////////////////////////standard methods/////////////////////////////////////////////////////\r\n\r\n /**\r\n * @description\r\n *\r\n * edit data list item using data item GUID\r\n *\r\n * @param customerId\r\n *\r\n * gets customer GUID from gridData and passes it to this function\r\n */\r\n async EditData(customerId:string) {\r\n const getResponse = await this.customerFarmService.GetDataById(customerId);\r\n this.customerFarmForm.controls['recordId'].setValue(getResponse.apiData.recordId);\r\n this.customerFarmForm.controls['customerId'].setValue(getResponse.apiData.customerId);\r\n this.customerFarmForm.controls['customerName'].setValue(getResponse.apiData.customerName);\r\n this.customerFarmForm.controls['defaultWarehouse'].setValue(getResponse.apiData.defaultWarehouse);\r\n this.customerFarmForm.controls['personInCharge'].setValue(getResponse.apiData.personInCharge);\r\n this.customerFarmForm.controls['displayName'].setValue(getResponse.apiData.displayName);\r\n this.customerFarmForm.controls['primaryVetId'].setValue(getResponse.apiData.primaryVetId);\r\n this.customerFarmForm.controls['PICTattoo'].setValue(getResponse.apiData.picTattoo);\r\n this.customerFarmForm.controls['isActive'].setValue(getResponse.apiData.isActive); \r\n }\r\n\r\n /**\r\n * @description\r\n *\r\n * this method converts all form inputs into model class\r\n *\r\n * @returns model with new form values\r\n */\r\n ConvertFormToModel() {\r\n const customerFarmModel = new CustomerFarmModel();\r\n customerFarmModel.recordId = this.customerFarmForm.value.recordId;\r\n customerFarmModel.customerName = this.customerFarmForm.value.customerName;\r\n customerFarmModel.defaultWarehouse = this.customerFarmForm.value.defaultWarehouse;\r\n customerFarmModel.personInCharge = this.customerFarmForm.value.personInCharge;\r\n customerFarmModel.displayName = this.customerFarmForm.value.displayName;\r\n customerFarmModel.primaryVetId = this.customerFarmForm.value.primaryVetId;\r\n customerFarmModel.PICTattoo = this.customerFarmForm.value.PICTattoo;\r\n customerFarmModel.customerId = this.customerFarmConfiguration.customerId;\r\n customerFarmModel.formCode = this.customerFarmConfiguration.formCode;\r\n\r\n return customerFarmModel;\r\n }\r\n\r\n /**\r\n * @description\r\n * clear form data\r\n */\r\n ClearForm() {\r\n this.DeclareForm();\r\n }\r\n\r\n emitDataToParent() {\r\n let customerFarmModel = new CustomerFarmModel();\r\n customerFarmModel = this.ConvertFormToModel();\r\n this.customerFarmData.emit(customerFarmModel);\r\n }\r\n\r\n /**\r\n * @description\r\n *\r\n * Insert customer data into database\r\n */\r\n public async InsertData() {\r\n let customerFarmModel = new CustomerFarmModel();\r\n customerFarmModel = this.ConvertFormToModel();\r\n const getResponse = await this.customerFarmService.InsertData(customerFarmModel);\r\n this.userMessages = getResponse.message.userMessage;\r\n if (this.customerFarmConfiguration.userMessages) {\r\n this.toastr.ShowSuccess(this.userMessages.toString());\r\n }\r\n }\r\n\r\n /**\r\n * @description\r\n *\r\n * update customer data into database\r\n */\r\n public async UpdateData() {\r\n let customerFarmModel = new CustomerFarmModel();\r\n customerFarmModel = this.ConvertFormToModel();\r\n const getResponse = await this.customerFarmService.UpdateData(customerFarmModel);\r\n this.userMessages = getResponse.message.userMessage;\r\n if (this.customerFarmConfiguration.userMessages) {\r\n this.toastr.ShowSuccess(this.userMessages.toString());\r\n }\r\n }\r\n\r\n /**\r\n * @description\r\n *\r\n * Delete customer data into database\r\n */\r\n public async DeleteData(value) {\r\n const getResponse = await this.customerFarmService.DeleteData(value);\r\n this.userMessages = getResponse.message.userMessage;\r\n if (this.customerFarmConfiguration.userMessages) {\r\n this.toastr.ShowSuccess(this.userMessages.toString());\r\n }\r\n }\r\n\r\n /**\r\n * @description\r\n * \r\n * Grid events calls\r\n */\r\n handleGridEvents(gridEvents: GridEventsModel) {\r\n gridEvents.editRecord.subscribe((recordId) => {\r\n this.hideButtons = false;\r\n this.isViewCall = false;\r\n this.EditData(recordId);\r\n this.customerFarmForm.enable();\r\n });\r\n gridEvents.deleteRecord.subscribe((recordId) => {\r\n this.DeleteData(recordId);\r\n });\r\n gridEvents.viewRecord.subscribe(async (recordId) => {\r\n this.EditData(recordId);\r\n this.customerFarmForm.disable();\r\n });\r\n }\r\n\r\n \r\n /**\r\n * @description\r\n * get data for Customer grid list\r\n */\r\n public async GetListData() {\r\n const customerFarmModel = new CustomerFarmModel();\r\n try {\r\n const getResponse = await this.customerFarmService.GetListData(customerFarmModel);\r\n this.gridData = getResponse.apiData;\r\n } catch (error) {\r\n this.errorLogService.saveError(error);\r\n this.toastr.ShowAllErrors(error.error.message.userMessage);\r\n }\r\n }\r\n}\r\n","<div class=\"flex flex-col flex-auto min-w-0 w-full\">\r\n <!-- form code starts here -->\r\n <!--content-->\r\n <div class=\"sm:w-full overflow-hidden\" *ngIf=\"customerFarmConfiguration.showModal\">\r\n\r\n <!--form body-->\r\n <form class=\"flex flex-col overflow-hidden\" [formGroup]=\"customerFarmForm\">\r\n <!-- Customer Farm section start -->\r\n\r\n <div class=\"sm:flex\">\r\n <div class=\"w-full\">\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.customerName\">\r\n <mat-label>Client Name</mat-label>\r\n <input matInput id=\"customerName\" placeholder=\"Client Name\" pattern=\"^[a-zA-Z ]*$\"\r\n minlength=\"3\" [formControlName]=\"'customerName'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('customerName').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.customerName \">\r\n Client Name is required\r\n </mat-error>\r\n <mat-error *ngIf=\"customerFarmForm.get('customerName').hasError('pattern')\">\r\n Please enter valid Client name\r\n </mat-error>\r\n <mat-error *ngIf=\"customerFarmForm.get('customerName').hasError('minlength')\">\r\n Client name must be of atleast 3 characters\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.defaultWarehouse\">\r\n <mat-label>Default Warehouse</mat-label>\r\n <input matInput id=\"defaultWarehouse\" placeholder=\"Default Warehouse\"\r\n [formControlName]=\"'defaultWarehouse'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('defaultWarehouse').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse\">\r\n Default Warehouse is required\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.personInCharge\">\r\n <mat-label>Person In Charge</mat-label>\r\n <input matInput id=\"personInCharge\" placeholder=\"Person In Charge\"\r\n [formControlName]=\"'personInCharge'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('personInCharge').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.personInCharge\">\r\n Person In Charge is required\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.displayName\">\r\n <mat-label>Display Name</mat-label>\r\n <input matInput id=\"displayName\" placeholder=\"Display Name\"\r\n [formControlName]=\"'displayName'\" (change)=\"emitDataToParent()\">\r\n </mat-form-field>\r\n </div>\r\n\r\n <div class=\"sm:flex px-8 pt-4\">\r\n <mat-form-field class=\"flex-auto w-full mr-4\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.primaryVetId\">\r\n <mat-label>Primary Vet</mat-label>\r\n <input matInput id=\"primaryVetId\" placeholder=\"Primary Vet\"\r\n [formControlName]=\"'primaryVetId'\" (change)=\"emitDataToParent()\">\r\n <mat-error\r\n *ngIf=\"customerFarmForm.get('primaryVetId').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId\">\r\n Primary Vet is required\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n <mat-form-field class=\"flex-auto w-full\"\r\n *ngIf=\"customerFarmConfiguration.allowedCustomerFarmFields.PICTattoo\">\r\n <mat-label>PIC/Tattoo (if applicable)</mat-label>\r\n <input matInput id=\"PICTattoo\" placeholder=\"PIC/Tattoo\" [formControlName]=\"'PICTattoo'\"\r\n (change)=\"emitDataToParent()\">\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <!-- Customer Farm section End -->\r\n\r\n </form>\r\n </div>\r\n <!-- form code ends here -->\r\n\r\n</div>\r\n<div *ngIf=\"customerFarmConfiguration.showGrid\">\r\n <lib-kendo-grid-view [configuration]=\"gridConfiguration\" (events)=\"handleGridEvents($event)\"></lib-kendo-grid-view>\r\n </div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CustomerFarmComponent } from './customer-farm.component';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { CdkStepperModule } from '@angular/cdk/stepper';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatOptionModule, MatNativeDateModule } from '@angular/material/core';\r\nimport { MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatGridListModule } from '@angular/material/grid-list';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatSelectModule } from '@angular/material/select';\r\nimport { MatStepperModule } from '@angular/material/stepper';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { ButtonsModule } from '@progress/kendo-angular-buttons';\r\nimport { GridModule, SharedModule, ExcelModule } from '@progress/kendo-angular-grid';\r\nimport { KendoGridViewModule } from '@qubesense/base-services';\r\n\r\n@NgModule({\r\n declarations: [\r\n CustomerFarmComponent\r\n ],\r\n imports: [\r\n MatIconModule,\r\n MatInputModule,\r\n MatToolbarModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n CommonModule,\r\n GridModule,\r\n ButtonsModule,\r\n MatGridListModule,\r\n MatFormFieldModule,\r\n ReactiveFormsModule,\r\n MatInputModule,\r\n MatOptionModule,\r\n MatSelectModule,\r\n MatCheckboxModule,\r\n SharedModule,\r\n MatButtonModule,\r\n MatDatepickerModule,\r\n MatNativeDateModule,\r\n ExcelModule,\r\n MatStepperModule,\r\n CdkStepperModule,\r\n KendoGridViewModule\r\n ],\r\n exports: [\r\n CustomerFarmComponent\r\n ]\r\n})\r\nexport class CustomerFarmModule { }\r\n","/*\r\n * Public API Surface of customer-farm\r\n */\r\n\r\nexport * from './lib/customer-farm.service';\r\nexport * from './lib/customer-farm.component';\r\nexport * from './lib/customer-farm.module';\r\nexport * from './lib/dependencies/customer-farm-api-urls';\r\nexport * from './lib/dependencies/customer-farm-model';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1","i1.CustomerFarmService"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAAa,mBAAmB,CAAA;AAAhC,IAAA,WAAA,GAAA;;QAEI,IAAsB,CAAA,sBAAA,GAAW,0BAA0B,CAAC;;QAG5D,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;QAG9D,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;QAG9D,IAAyB,CAAA,yBAAA,GAAW,yBAAyB,CAAC;;QAG9D,IAAsB,CAAA,sBAAA,GAAW,yBAAyB,CAAC;;QAG3D,IAA8B,CAAA,8BAAA,GAAW,kCAAkC,CAAC;;QAG5E,IAAwB,CAAA,wBAAA,GAAW,iCAAiC,CAAC;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A;;;ACpDD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { CustomerFarmConfigrationModel, CustomerFarmModel } from './dependencies/customer-farm-model';
|
|
4
|
+
import { ErrorLogService, GridEventsModel, KendoGridviewConfigurationModel, ToastrNotificationService } from '@qubesense/base-services';
|
|
5
|
+
import { CustomerFarmService } from './customer-farm.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class CustomerFarmComponent implements OnInit {
|
|
8
|
+
private customerFarmService;
|
|
9
|
+
private formBuilder;
|
|
10
|
+
private errorLogService;
|
|
11
|
+
private toastr;
|
|
12
|
+
customerFarmData: EventEmitter<any>;
|
|
13
|
+
customerFarmConfiguration: CustomerFarmConfigrationModel;
|
|
14
|
+
customerFarmForm: FormGroup;
|
|
15
|
+
userMessages: string[];
|
|
16
|
+
gridData: any[];
|
|
17
|
+
gridConfiguration: KendoGridviewConfigurationModel;
|
|
18
|
+
hideButtons: boolean;
|
|
19
|
+
isViewCall: boolean;
|
|
20
|
+
speciesList: any[];
|
|
21
|
+
filteredCustomers: [];
|
|
22
|
+
constructor(customerFarmService: CustomerFarmService, formBuilder: FormBuilder, errorLogService: ErrorLogService, toastr: ToastrNotificationService);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
DeclareForm(): void;
|
|
25
|
+
/**
|
|
26
|
+
* @description
|
|
27
|
+
*
|
|
28
|
+
* edit data list item using data item GUID
|
|
29
|
+
*
|
|
30
|
+
* @param customerId
|
|
31
|
+
*
|
|
32
|
+
* gets customer GUID from gridData and passes it to this function
|
|
33
|
+
*/
|
|
34
|
+
EditData(customerId: string): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* @description
|
|
37
|
+
*
|
|
38
|
+
* this method converts all form inputs into model class
|
|
39
|
+
*
|
|
40
|
+
* @returns model with new form values
|
|
41
|
+
*/
|
|
42
|
+
ConvertFormToModel(): CustomerFarmModel;
|
|
43
|
+
/**
|
|
44
|
+
* @description
|
|
45
|
+
* clear form data
|
|
46
|
+
*/
|
|
47
|
+
ClearForm(): void;
|
|
48
|
+
emitDataToParent(): void;
|
|
49
|
+
/**
|
|
50
|
+
* @description
|
|
51
|
+
*
|
|
52
|
+
* Insert customer data into database
|
|
53
|
+
*/
|
|
54
|
+
InsertData(): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* @description
|
|
57
|
+
*
|
|
58
|
+
* update customer data into database
|
|
59
|
+
*/
|
|
60
|
+
UpdateData(): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* @description
|
|
63
|
+
*
|
|
64
|
+
* Delete customer data into database
|
|
65
|
+
*/
|
|
66
|
+
DeleteData(value: any): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* @description
|
|
69
|
+
*
|
|
70
|
+
* Grid events calls
|
|
71
|
+
*/
|
|
72
|
+
handleGridEvents(gridEvents: GridEventsModel): void;
|
|
73
|
+
/**
|
|
74
|
+
* @description
|
|
75
|
+
* get data for Customer grid list
|
|
76
|
+
*/
|
|
77
|
+
GetListData(): Promise<void>;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomerFarmComponent, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomerFarmComponent, "lib-customer-farm", never, { "customerFarmConfiguration": "customerFarmConfiguration"; }, { "customerFarmData": "customerFarmData"; }, never, never, false>;
|
|
80
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./customer-farm.component";
|
|
3
|
+
import * as i2 from "@angular/material/icon";
|
|
4
|
+
import * as i3 from "@angular/material/input";
|
|
5
|
+
import * as i4 from "@angular/material/toolbar";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@progress/kendo-angular-grid";
|
|
9
|
+
import * as i8 from "@progress/kendo-angular-buttons";
|
|
10
|
+
import * as i9 from "@angular/material/grid-list";
|
|
11
|
+
import * as i10 from "@angular/material/form-field";
|
|
12
|
+
import * as i11 from "@angular/material/core";
|
|
13
|
+
import * as i12 from "@angular/material/select";
|
|
14
|
+
import * as i13 from "@angular/material/checkbox";
|
|
15
|
+
import * as i14 from "@angular/material/button";
|
|
16
|
+
import * as i15 from "@angular/material/datepicker";
|
|
17
|
+
import * as i16 from "@angular/material/stepper";
|
|
18
|
+
import * as i17 from "@angular/cdk/stepper";
|
|
19
|
+
import * as i18 from "@qubesense/base-services";
|
|
20
|
+
export declare class CustomerFarmModule {
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomerFarmModule, never>;
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CustomerFarmModule, [typeof i1.CustomerFarmComponent], [typeof i2.MatIconModule, typeof i3.MatInputModule, typeof i4.MatToolbarModule, typeof i5.ReactiveFormsModule, typeof i5.FormsModule, typeof i6.CommonModule, typeof i7.GridModule, typeof i8.ButtonsModule, typeof i9.MatGridListModule, typeof i10.MatFormFieldModule, typeof i5.ReactiveFormsModule, typeof i3.MatInputModule, typeof i11.MatOptionModule, typeof i12.MatSelectModule, typeof i13.MatCheckboxModule, typeof i7.SharedModule, typeof i14.MatButtonModule, typeof i15.MatDatepickerModule, typeof i11.MatNativeDateModule, typeof i7.ExcelModule, typeof i16.MatStepperModule, typeof i17.CdkStepperModule, typeof i18.KendoGridViewModule], [typeof i1.CustomerFarmComponent]>;
|
|
23
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CustomerFarmModule>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DataAccessService, WebApiResult } from '@qubesense/base-services';
|
|
2
|
+
import { CustomerFarmApiUrls } from './dependencies/customer-farm-api-urls';
|
|
3
|
+
import { CustomerFarmModel } from './dependencies/customer-farm-model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CustomerFarmService {
|
|
6
|
+
private dataAccessService;
|
|
7
|
+
constructor(dataAccessService: DataAccessService);
|
|
8
|
+
customerFarmApiUrls: CustomerFarmApiUrls;
|
|
9
|
+
/**
|
|
10
|
+
* service for get customer data by Id
|
|
11
|
+
*
|
|
12
|
+
* @param customerGUID
|
|
13
|
+
*
|
|
14
|
+
* @returns Response Data from Database
|
|
15
|
+
*/
|
|
16
|
+
GetDataById(customerGUID: string): Promise<WebApiResult>;
|
|
17
|
+
/**
|
|
18
|
+
* service for inserting customer data into database
|
|
19
|
+
*
|
|
20
|
+
* @param customerFarmModel
|
|
21
|
+
*
|
|
22
|
+
* @returns Response message from Database
|
|
23
|
+
*/
|
|
24
|
+
InsertData(customerFarmModel: CustomerFarmModel): Promise<WebApiResult>;
|
|
25
|
+
/**
|
|
26
|
+
* service for update customer Data
|
|
27
|
+
*
|
|
28
|
+
* @param customerFarmModel
|
|
29
|
+
*
|
|
30
|
+
* @returns Response message from Database
|
|
31
|
+
*/
|
|
32
|
+
UpdateData(customerFarmModel: CustomerFarmModel): Promise<WebApiResult>;
|
|
33
|
+
/**
|
|
34
|
+
* service for delete customer data by GUID
|
|
35
|
+
*
|
|
36
|
+
* @param customerFarmModel
|
|
37
|
+
*
|
|
38
|
+
* @returns Response message from Database
|
|
39
|
+
*/
|
|
40
|
+
DeleteData(recordId: any): Promise<WebApiResult>;
|
|
41
|
+
/**
|
|
42
|
+
* service for get data for customer grid
|
|
43
|
+
*
|
|
44
|
+
* @param customerFarmModel
|
|
45
|
+
*
|
|
46
|
+
* @returns Response Data from Database
|
|
47
|
+
*/
|
|
48
|
+
GetListData(customerDataModel: CustomerFarmModel): Promise<WebApiResult>;
|
|
49
|
+
/**
|
|
50
|
+
* service for get data for customer DropDown List
|
|
51
|
+
*
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
GetCustomersDropdownList(): Promise<WebApiResult>;
|
|
55
|
+
GetCustomerListByKeyword(value: string): Promise<WebApiResult>;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomerFarmService, never>;
|
|
57
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CustomerFarmService>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class CustomerFarmApiUrls {
|
|
2
|
+
getCustomerFarmByIdUrl: string;
|
|
3
|
+
insertCustomerFarmDataUrl: string;
|
|
4
|
+
updateCustomerFarmDataUrl: string;
|
|
5
|
+
deleteCustomerFarmDataUrl: string;
|
|
6
|
+
getCustomerFarmListUrl: string;
|
|
7
|
+
getCustomerFarmDropdownListUrl: string;
|
|
8
|
+
getcustomerlistbykeyword: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare class CustomerFarmModel {
|
|
2
|
+
formCode: string;
|
|
3
|
+
formId: string;
|
|
4
|
+
recordId: string;
|
|
5
|
+
customerId: string;
|
|
6
|
+
customerName: string;
|
|
7
|
+
defaultWarehouse: string;
|
|
8
|
+
personInCharge: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
primaryVetId: string;
|
|
11
|
+
PICTattoo: string;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
isDeleted: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class CustomerFarmConfigrationModel {
|
|
16
|
+
formCode: string;
|
|
17
|
+
customerId: string;
|
|
18
|
+
defaultView: boolean;
|
|
19
|
+
showModal: boolean;
|
|
20
|
+
showGrid: boolean;
|
|
21
|
+
isSearchable: boolean;
|
|
22
|
+
showClientData: boolean;
|
|
23
|
+
customerData: CustomerFarmModel;
|
|
24
|
+
userMessages: boolean;
|
|
25
|
+
requiredCustomerFarmSection: boolean;
|
|
26
|
+
allowedCustomerFarmSection: boolean;
|
|
27
|
+
requiredCustomerFarmFields: RequiredCustomerFarmFields;
|
|
28
|
+
allowedCustomerFarmFields: AllowedCustomerFarmFields;
|
|
29
|
+
}
|
|
30
|
+
export declare class RequiredCustomerFarmFields {
|
|
31
|
+
customerName: boolean;
|
|
32
|
+
customerId: boolean;
|
|
33
|
+
defaultWarehouse: boolean;
|
|
34
|
+
personInCharge: boolean;
|
|
35
|
+
primaryVetId: boolean;
|
|
36
|
+
displayName: boolean;
|
|
37
|
+
PICTattoo: boolean;
|
|
38
|
+
profileImageURL: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare class AllowedCustomerFarmFields {
|
|
41
|
+
customerName: boolean;
|
|
42
|
+
defaultWarehouse: boolean;
|
|
43
|
+
personInCharge: boolean;
|
|
44
|
+
primaryVetId: boolean;
|
|
45
|
+
PICTattoo: boolean;
|
|
46
|
+
displayName: boolean;
|
|
47
|
+
profileImageURL: boolean;
|
|
48
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@qubesense/customer-farm",
|
|
3
|
-
"license":"qubesense",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"peerDependencies": {
|
|
6
|
-
"@angular/common": "^14.1.0",
|
|
7
|
-
"@angular/core": "^14.1.0"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"tslib": "^2.3.0"
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@qubesense/customer-farm",
|
|
3
|
+
"license": "qubesense",
|
|
4
|
+
"version": "0.1.4",
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/common": "^14.1.0",
|
|
7
|
+
"@angular/core": "^14.1.0"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tslib": "^2.3.0"
|
|
11
|
+
},
|
|
12
|
+
"module": "fesm2015/qubesense-customer-farm.mjs",
|
|
13
|
+
"es2020": "fesm2020/qubesense-customer-farm.mjs",
|
|
14
|
+
"esm2020": "esm2020/qubesense-customer-farm.mjs",
|
|
15
|
+
"fesm2020": "fesm2020/qubesense-customer-farm.mjs",
|
|
16
|
+
"fesm2015": "fesm2015/qubesense-customer-farm.mjs",
|
|
17
|
+
"typings": "index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./package.json": {
|
|
20
|
+
"default": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./index.d.ts",
|
|
24
|
+
"esm2020": "./esm2020/qubesense-customer-farm.mjs",
|
|
25
|
+
"es2020": "./fesm2020/qubesense-customer-farm.mjs",
|
|
26
|
+
"es2015": "./fesm2015/qubesense-customer-farm.mjs",
|
|
27
|
+
"node": "./fesm2015/qubesense-customer-farm.mjs",
|
|
28
|
+
"default": "./fesm2020/qubesense-customer-farm.mjs"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false
|
|
12
32
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../.eslintrc.json",
|
|
3
|
-
"ignorePatterns": [
|
|
4
|
-
"!**/*"
|
|
5
|
-
],
|
|
6
|
-
"overrides": [
|
|
7
|
-
{
|
|
8
|
-
"files": [
|
|
9
|
-
"*.ts"
|
|
10
|
-
],
|
|
11
|
-
"parserOptions": {
|
|
12
|
-
"project": [
|
|
13
|
-
"projects/customer-farm/tsconfig.lib.json",
|
|
14
|
-
"projects/customer-farm/tsconfig.spec.json"
|
|
15
|
-
],
|
|
16
|
-
"createDefaultProgram": true
|
|
17
|
-
},
|
|
18
|
-
"rules": {
|
|
19
|
-
"@angular-eslint/directive-selector": [
|
|
20
|
-
"error",
|
|
21
|
-
{
|
|
22
|
-
"type": "attribute",
|
|
23
|
-
"prefix": "lib",
|
|
24
|
-
"style": "camelCase"
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"@angular-eslint/component-selector": [
|
|
28
|
-
"error",
|
|
29
|
-
{
|
|
30
|
-
"type": "element",
|
|
31
|
-
"prefix": "lib",
|
|
32
|
-
"style": "kebab-case"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"files": [
|
|
39
|
-
"*.html"
|
|
40
|
-
],
|
|
41
|
-
"rules": {}
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
}
|
package/karma.conf.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Karma configuration file, see link for more information
|
|
2
|
-
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
module.exports = function (config) {
|
|
5
|
-
config.set({
|
|
6
|
-
basePath: '',
|
|
7
|
-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
-
plugins: [
|
|
9
|
-
require('karma-jasmine'),
|
|
10
|
-
require('karma-chrome-launcher'),
|
|
11
|
-
require('karma-jasmine-html-reporter'),
|
|
12
|
-
require('karma-coverage'),
|
|
13
|
-
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
-
],
|
|
15
|
-
client: {
|
|
16
|
-
jasmine: {
|
|
17
|
-
// you can add configuration options for Jasmine here
|
|
18
|
-
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
-
// for example, you can disable the random execution with `random: false`
|
|
20
|
-
// or set a specific seed with `seed: 4321`
|
|
21
|
-
},
|
|
22
|
-
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
-
},
|
|
24
|
-
jasmineHtmlReporter: {
|
|
25
|
-
suppressAll: true // removes the duplicated traces
|
|
26
|
-
},
|
|
27
|
-
coverageReporter: {
|
|
28
|
-
dir: require('path').join(__dirname, '../../coverage/customer-farm'),
|
|
29
|
-
subdir: '.',
|
|
30
|
-
reporters: [
|
|
31
|
-
{ type: 'html' },
|
|
32
|
-
{ type: 'text-summary' }
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
reporters: ['progress', 'kjhtml'],
|
|
36
|
-
port: 9876,
|
|
37
|
-
colors: true,
|
|
38
|
-
logLevel: config.LOG_INFO,
|
|
39
|
-
autoWatch: true,
|
|
40
|
-
browsers: ['Chrome'],
|
|
41
|
-
singleRun: false,
|
|
42
|
-
restartOnFileChange: true
|
|
43
|
-
});
|
|
44
|
-
};
|
package/ng-package.json
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
<div class="flex flex-col flex-auto min-w-0 w-full">
|
|
2
|
-
<!-- form code starts here -->
|
|
3
|
-
<!--content-->
|
|
4
|
-
<div class="sm:w-full overflow-hidden" *ngIf="customerFarmConfiguration.showModal">
|
|
5
|
-
|
|
6
|
-
<!--form body-->
|
|
7
|
-
<form class="flex flex-col overflow-hidden" [formGroup]="customerFarmForm">
|
|
8
|
-
<!-- Customer Farm section start -->
|
|
9
|
-
|
|
10
|
-
<div class="sm:flex">
|
|
11
|
-
<div class="w-full">
|
|
12
|
-
<div class="sm:flex px-8 pt-4">
|
|
13
|
-
<mat-form-field class="flex-auto w-full mr-4"
|
|
14
|
-
*ngIf="customerFarmConfiguration.allowedCustomerFarmFields.customerName">
|
|
15
|
-
<mat-label>Client Name</mat-label>
|
|
16
|
-
<input matInput id="customerName" placeholder="Client Name" pattern="^[a-zA-Z ]*$"
|
|
17
|
-
minlength="3" [formControlName]="'customerName'" (change)="emitDataToParent()">
|
|
18
|
-
<mat-error
|
|
19
|
-
*ngIf="customerFarmForm.get('customerName').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.customerName ">
|
|
20
|
-
Client Name is required
|
|
21
|
-
</mat-error>
|
|
22
|
-
<mat-error *ngIf="customerFarmForm.get('customerName').hasError('pattern')">
|
|
23
|
-
Please enter valid Client name
|
|
24
|
-
</mat-error>
|
|
25
|
-
<mat-error *ngIf="customerFarmForm.get('customerName').hasError('minlength')">
|
|
26
|
-
Client name must be of atleast 3 characters
|
|
27
|
-
</mat-error>
|
|
28
|
-
</mat-form-field>
|
|
29
|
-
|
|
30
|
-
<mat-form-field class="flex-auto w-full"
|
|
31
|
-
*ngIf="customerFarmConfiguration.allowedCustomerFarmFields.defaultWarehouse">
|
|
32
|
-
<mat-label>Default Warehouse</mat-label>
|
|
33
|
-
<input matInput id="defaultWarehouse" placeholder="Default Warehouse"
|
|
34
|
-
[formControlName]="'defaultWarehouse'" (change)="emitDataToParent()">
|
|
35
|
-
<mat-error
|
|
36
|
-
*ngIf="customerFarmForm.get('defaultWarehouse').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse">
|
|
37
|
-
Default Warehouse is required
|
|
38
|
-
</mat-error>
|
|
39
|
-
</mat-form-field>
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<div class="sm:flex px-8 pt-4">
|
|
43
|
-
<mat-form-field class="flex-auto w-full mr-4"
|
|
44
|
-
*ngIf="customerFarmConfiguration.allowedCustomerFarmFields.personInCharge">
|
|
45
|
-
<mat-label>Person In Charge</mat-label>
|
|
46
|
-
<input matInput id="personInCharge" placeholder="Person In Charge"
|
|
47
|
-
[formControlName]="'personInCharge'" (change)="emitDataToParent()">
|
|
48
|
-
<mat-error
|
|
49
|
-
*ngIf="customerFarmForm.get('personInCharge').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.personInCharge">
|
|
50
|
-
Person In Charge is required
|
|
51
|
-
</mat-error>
|
|
52
|
-
</mat-form-field>
|
|
53
|
-
|
|
54
|
-
<mat-form-field class="flex-auto w-full"
|
|
55
|
-
*ngIf="customerFarmConfiguration.allowedCustomerFarmFields.displayName">
|
|
56
|
-
<mat-label>Display Name</mat-label>
|
|
57
|
-
<input matInput id="displayName" placeholder="Display Name"
|
|
58
|
-
[formControlName]="'displayName'" (change)="emitDataToParent()">
|
|
59
|
-
</mat-form-field>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<div class="sm:flex px-8 pt-4">
|
|
63
|
-
<mat-form-field class="flex-auto w-full mr-4"
|
|
64
|
-
*ngIf="customerFarmConfiguration.allowedCustomerFarmFields.primaryVetId">
|
|
65
|
-
<mat-label>Primary Vet</mat-label>
|
|
66
|
-
<input matInput id="primaryVetId" placeholder="Primary Vet"
|
|
67
|
-
[formControlName]="'primaryVetId'" (change)="emitDataToParent()">
|
|
68
|
-
<mat-error
|
|
69
|
-
*ngIf="customerFarmForm.get('primaryVetId').hasError('required') && customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId">
|
|
70
|
-
Primary Vet is required
|
|
71
|
-
</mat-error>
|
|
72
|
-
</mat-form-field>
|
|
73
|
-
|
|
74
|
-
<mat-form-field class="flex-auto w-full"
|
|
75
|
-
*ngIf="customerFarmConfiguration.allowedCustomerFarmFields.PICTattoo">
|
|
76
|
-
<mat-label>PIC/Tattoo (if applicable)</mat-label>
|
|
77
|
-
<input matInput id="PICTattoo" placeholder="PIC/Tattoo" [formControlName]="'PICTattoo'"
|
|
78
|
-
(change)="emitDataToParent()">
|
|
79
|
-
</mat-form-field>
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
</div>
|
|
84
|
-
<!-- Customer Farm section End -->
|
|
85
|
-
|
|
86
|
-
</form>
|
|
87
|
-
</div>
|
|
88
|
-
<!-- form code ends here -->
|
|
89
|
-
|
|
90
|
-
</div>
|
|
91
|
-
<div *ngIf="customerFarmConfiguration.showGrid">
|
|
92
|
-
<lib-kendo-grid-view [configuration]="gridConfiguration" (events)="handleGridEvents($event)"></lib-kendo-grid-view>
|
|
93
|
-
</div>
|
|
File without changes
|