@qubesense/customer-farm 0.0.1 → 0.0.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/esm2020/lib/customer-farm.component.mjs +67 -10
- package/esm2020/lib/customer-farm.service.mjs +39 -36
- package/esm2020/lib/dependencies/customer-farm-model.mjs +2 -1
- package/fesm2015/qubesense-customer-farm.mjs +116 -46
- package/fesm2015/qubesense-customer-farm.mjs.map +1 -1
- package/fesm2020/qubesense-customer-farm.mjs +106 -46
- package/fesm2020/qubesense-customer-farm.mjs.map +1 -1
- package/lib/customer-farm.component.d.ts +16 -1
- package/lib/customer-farm.service.d.ts +12 -1
- package/lib/dependencies/customer-farm-model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, EventEmitter, Component, Output, Input, NgModule } from '@angular/core';
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as i3 from '@qubesense/base-services';
|
|
4
|
+
import * as i2 from '@angular/forms';
|
|
5
5
|
import { Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i4 from '@angular/material/form-field';
|
|
7
7
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
8
|
-
import * as
|
|
8
|
+
import * as i5 from '@angular/material/input';
|
|
9
9
|
import { MatInputModule } from '@angular/material/input';
|
|
10
|
-
import * as
|
|
10
|
+
import * as i6 from '@angular/common';
|
|
11
11
|
import { CommonModule } from '@angular/common';
|
|
12
12
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
13
13
|
import { CdkStepperModule } from '@angular/cdk/stepper';
|
|
@@ -61,38 +61,40 @@ class CustomerFarmService {
|
|
|
61
61
|
throw error;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
64
|
+
/**
|
|
65
|
+
* service for inserting customer data into database
|
|
66
|
+
*
|
|
67
|
+
* @param customerFarmModel
|
|
68
|
+
*
|
|
69
|
+
* @returns Response message from Database
|
|
70
|
+
*/
|
|
71
|
+
async InsertData(customerFarmModel) {
|
|
72
|
+
try {
|
|
73
|
+
const url = this.customerFarmApiUrls.insertCustomerFarmDataUrl;
|
|
74
|
+
const resultResponse = await this.dataAccessService.InsertData(url, customerFarmModel);
|
|
75
|
+
return resultResponse;
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
throw error;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
80
81
|
/**
|
|
81
82
|
* service for update customer Data
|
|
82
83
|
*
|
|
83
|
-
* @param
|
|
84
|
+
* @param customerFarmModel
|
|
84
85
|
*
|
|
85
86
|
* @returns Response message from Database
|
|
86
87
|
*/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
88
|
+
async UpdateData(customerFarmModel) {
|
|
89
|
+
try {
|
|
90
|
+
const url = this.customerFarmApiUrls.updateCustomerFarmDataUrl;
|
|
91
|
+
const resultResponse = await this.dataAccessService.UpdateData(url, customerFarmModel);
|
|
92
|
+
return resultResponse;
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
throw error;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
96
98
|
/**
|
|
97
99
|
* service for delete customer data by GUID
|
|
98
100
|
*
|
|
@@ -117,15 +119,16 @@ class CustomerFarmService {
|
|
|
117
119
|
*
|
|
118
120
|
* @returns Response Data from Database
|
|
119
121
|
*/
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
122
|
+
async GetListData(customerDataModel) {
|
|
123
|
+
try {
|
|
124
|
+
const url = this.customerFarmApiUrls.getCustomerFarmListUrl;
|
|
125
|
+
const resultResponse = await this.dataAccessService.GetListData(url, customerDataModel);
|
|
126
|
+
return resultResponse;
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
throw error;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
129
132
|
/**
|
|
130
133
|
* service for get data for customer DropDown List
|
|
131
134
|
*
|
|
@@ -142,14 +145,14 @@ class CustomerFarmService {
|
|
|
142
145
|
}
|
|
143
146
|
}
|
|
144
147
|
}
|
|
145
|
-
CustomerFarmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CustomerFarmService, deps: [{ token:
|
|
148
|
+
CustomerFarmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CustomerFarmService, deps: [{ token: i3.DataAccessService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
146
149
|
CustomerFarmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CustomerFarmService, providedIn: 'root' });
|
|
147
150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CustomerFarmService, decorators: [{
|
|
148
151
|
type: Injectable,
|
|
149
152
|
args: [{
|
|
150
153
|
providedIn: 'root'
|
|
151
154
|
}]
|
|
152
|
-
}], ctorParameters: function () { return [{ type:
|
|
155
|
+
}], ctorParameters: function () { return [{ type: i3.DataAccessService }]; } });
|
|
153
156
|
|
|
154
157
|
class CustomerFarmModel {
|
|
155
158
|
constructor() {
|
|
@@ -176,6 +179,7 @@ class CustomerFarmConfigrationModel {
|
|
|
176
179
|
this.isSearchable = false;
|
|
177
180
|
this.showClientData = false;
|
|
178
181
|
this.customerData = null;
|
|
182
|
+
this.userMessages = false;
|
|
179
183
|
this.requiredCustomerFarmSection = false;
|
|
180
184
|
this.allowedCustomerFarmSection = false;
|
|
181
185
|
this.requiredCustomerFarmFields = new RequiredCustomerFarmFields();
|
|
@@ -207,12 +211,14 @@ class AllowedCustomerFarmFields {
|
|
|
207
211
|
}
|
|
208
212
|
|
|
209
213
|
class CustomerFarmComponent {
|
|
210
|
-
constructor(formBuilder, errorLogService, toastr) {
|
|
214
|
+
constructor(customerFarmService, formBuilder, errorLogService, toastr) {
|
|
215
|
+
this.customerFarmService = customerFarmService;
|
|
211
216
|
this.formBuilder = formBuilder;
|
|
212
217
|
this.errorLogService = errorLogService;
|
|
213
218
|
this.toastr = toastr;
|
|
214
219
|
this.customerFarmData = new EventEmitter();
|
|
215
220
|
this.customerFarmConfiguration = new CustomerFarmConfigrationModel();
|
|
221
|
+
this.userMessages = [];
|
|
216
222
|
}
|
|
217
223
|
ngOnInit() {
|
|
218
224
|
this.DeclareForm();
|
|
@@ -306,13 +312,67 @@ class CustomerFarmComponent {
|
|
|
306
312
|
customerFarmModel = this.ConvertFormToModel();
|
|
307
313
|
this.customerFarmData.emit(customerFarmModel);
|
|
308
314
|
}
|
|
315
|
+
/**
|
|
316
|
+
* @description
|
|
317
|
+
*
|
|
318
|
+
* Insert customer data into database
|
|
319
|
+
*/
|
|
320
|
+
async InsertData() {
|
|
321
|
+
try {
|
|
322
|
+
let customerFarmModel = new CustomerFarmModel();
|
|
323
|
+
customerFarmModel = this.ConvertFormToModel();
|
|
324
|
+
if (!this.customerFarmForm.invalid) {
|
|
325
|
+
const getResponse = await this.customerFarmService.InsertData(customerFarmModel);
|
|
326
|
+
this.userMessages = getResponse.message.userMessage;
|
|
327
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
328
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
329
|
+
}
|
|
330
|
+
this.ClearForm();
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
this.customerFarmForm.markAllAsTouched();
|
|
334
|
+
this.toastr.ShowWarning("Please enter valid data!");
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
catch (error) {
|
|
338
|
+
this.errorLogService.saveError(error);
|
|
339
|
+
this.toastr.ShowAllErrors(error.error.message.userMessage);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* @description
|
|
344
|
+
*
|
|
345
|
+
* update customer data into database
|
|
346
|
+
*/
|
|
347
|
+
async UpdateData() {
|
|
348
|
+
try {
|
|
349
|
+
let customerFarmModel = new CustomerFarmModel();
|
|
350
|
+
customerFarmModel = this.ConvertFormToModel();
|
|
351
|
+
if (!this.customerFarmForm.invalid) {
|
|
352
|
+
const getResponse = await this.customerFarmService.UpdateData(customerFarmModel);
|
|
353
|
+
this.userMessages = getResponse.message.userMessage;
|
|
354
|
+
if (this.customerFarmConfiguration.userMessages) {
|
|
355
|
+
this.toastr.ShowSuccess(this.userMessages.toString());
|
|
356
|
+
}
|
|
357
|
+
this.ClearForm();
|
|
358
|
+
}
|
|
359
|
+
else {
|
|
360
|
+
this.customerFarmForm.markAllAsTouched();
|
|
361
|
+
this.toastr.ShowWarning("Please enter valid data!");
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
catch (error) {
|
|
365
|
+
this.errorLogService.saveError(error);
|
|
366
|
+
this.toastr.ShowAllErrors(error.error.message.userMessage);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
309
369
|
}
|
|
310
|
-
CustomerFarmComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CustomerFarmComponent, deps: [{ token:
|
|
311
|
-
CustomerFarmComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: CustomerFarmComponent, selector: "lib-customer-farm", inputs: { customerFarmConfiguration: "customerFarmConfiguration" }, outputs: { customerFarmData: "customerFarmData" }, ngImport: i0, template: "<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>", styles: [""], dependencies: [{ kind: "directive", type:
|
|
370
|
+
CustomerFarmComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CustomerFarmComponent, deps: [{ token: CustomerFarmService }, { token: i2.FormBuilder }, { token: i3.ErrorLogService }, { token: i3.ToastrNotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
371
|
+
CustomerFarmComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: CustomerFarmComponent, selector: "lib-customer-farm", inputs: { customerFarmConfiguration: "customerFarmConfiguration" }, outputs: { customerFarmData: "customerFarmData" }, ngImport: i0, template: "<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>", styles: [""], dependencies: [{ kind: "directive", type: i4.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i2.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
312
372
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CustomerFarmComponent, decorators: [{
|
|
313
373
|
type: Component,
|
|
314
374
|
args: [{ selector: 'lib-customer-farm', template: "<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>" }]
|
|
315
|
-
}], ctorParameters: function () { return [{ type:
|
|
375
|
+
}], ctorParameters: function () { return [{ type: CustomerFarmService }, { type: i2.FormBuilder }, { type: i3.ErrorLogService }, { type: i3.ToastrNotificationService }]; }, propDecorators: { customerFarmData: [{
|
|
316
376
|
type: Output
|
|
317
377
|
}], customerFarmConfiguration: [{
|
|
318
378
|
type: Input
|
|
@@ -1 +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}","import { Injectable } from '@angular/core';\r\nimport { DataAccessService, WebApiResult } from '@qubesense/base-services';\r\nimport { CustomerFarmApiUrls } from './dependencies/customer-farm-api-urls';\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 parentCustomerFarmModel \r\n // * \r\n // * @returns Response message from Database\r\n // */\r\n // public async InsertData(parentCustomerFarmModel: ParentCustomerFarmModel) {\r\n // try {\r\n // const url = this.customerFarmApiUrls.insertCustomerFarmDataUrl;\r\n // const resultResponse = await this.dataAccessService.InsertData(url, parentCustomerFarmModel);\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 parentCustomerFarmModel \r\n * \r\n * @returns Response message from Database\r\n */\r\n // public async UpdateData(parentCustomerFarmModel: ParentCustomerFarmModel) {\r\n // try {\r\n // const url = this.customerFarmApiUrls.updateCustomerFarmDataUrl;\r\n // const resultResponse = await this.dataAccessService.UpdateData(url, parentCustomerFarmModel);\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: CustomerDataModel) {\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","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 isSearchable: boolean = false;\r\n showClientData: boolean = false;\r\n customerData: CustomerFarmModel = null;\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';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { CustomerFarmConfigrationModel, CustomerFarmModel } from './dependencies/customer-farm-model';\nimport { ErrorLogService, ToastrNotificationService } from '@qubesense/base-services';\n\n@Component({\n selector: 'lib-customer-farm',\n templateUrl: './customer-farm.component.html',\n styleUrls: ['./customer-farm.component.scss']\n})\nexport class CustomerFarmComponent implements OnInit {\n @Output() customerFarmData = new EventEmitter<any>();\n @Input() public customerFarmConfiguration: CustomerFarmConfigrationModel = new CustomerFarmConfigrationModel();\n customerFarmForm: FormGroup;\n\n constructor(private formBuilder: FormBuilder,\n private errorLogService: ErrorLogService,\n private toastr: ToastrNotificationService\n ) { }\n\n ngOnInit() {\n this.DeclareForm();\n if (this.customerFarmConfiguration.customerData != null) {\n this.EditData();\n }\n }\n\n DeclareForm() {\n this.customerFarmForm = this.formBuilder.group({\n recordId : [null],\n customerId : [null],\n customerName : [null],\n defaultWarehouse : [null],\n personInCharge : [null],\n displayName : [null],\n primaryVetId : [null],\n PICTattoo : [null],\n isActive : [true]\n });\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.customerName) {\n this.customerFarmForm.get('customerName').addValidators(Validators.required);\n this.customerFarmForm.get('customerName').addValidators(Validators.pattern('^[a-zA-Z ]*$'));\n this.customerFarmForm.get('customerName').addValidators(Validators.minLength(3));\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse) {\n this.customerFarmForm.get('defaultWarehouse').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.personInCharge) {\n this.customerFarmForm.get('personInCharge').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId) {\n this.customerFarmForm.get('primaryVetId').addValidators(Validators.required);\n }\n\n }\n\n ///////////////////////////////////standard methods/////////////////////////////////////////////////////\n\n /**\n * @description\n *\n * edit data list item using data item GUID\n *\n * @param recordId\n *\n * gets customer GUID from gridData and passes it to this function\n */\n async EditData() {\n try {\n this.customerFarmForm.controls['recordId'].setValue(this.customerFarmConfiguration.customerData.recordId);\n this.customerFarmForm.controls['customerId'].setValue(this.customerFarmConfiguration.customerData.customerId);\n this.customerFarmForm.controls['customerName'].setValue(this.customerFarmConfiguration.customerData.customerName);\n this.customerFarmForm.controls['defaultWarehouse'].setValue(this.customerFarmConfiguration.customerData.defaultWarehouse);\n this.customerFarmForm.controls['personInCharge'].setValue(this.customerFarmConfiguration.customerData.personInCharge);\n this.customerFarmForm.controls['displayName'].setValue(this.customerFarmConfiguration.customerData.displayName);\n this.customerFarmForm.controls['primaryVetId'].setValue(this.customerFarmConfiguration.customerData.primaryVetId);\n this.customerFarmForm.controls['PICTattoo'].setValue(this.customerFarmConfiguration.customerData.PICTattoo);\n this.customerFarmForm.controls['isActive'].setValue(this.customerFarmConfiguration.customerData.isActive);\n\n }\n catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n\n\n\n /**\n * @description\n *\n * this method converts all form inputs into model class\n *\n * @returns model with new form values\n */\n ConvertFormToModel() {\n const customerFarmModel = new CustomerFarmModel();\n customerFarmModel.recordId = this.customerFarmForm.value.recordId;\n customerFarmModel.customerId = this.customerFarmForm.value.customerId;\n customerFarmModel.customerName = this.customerFarmForm.value.customerName;\n customerFarmModel.defaultWarehouse = this.customerFarmForm.value.defaultWarehouse;\n customerFarmModel.personInCharge = this.customerFarmForm.value.personInCharge;\n customerFarmModel.displayName = this.customerFarmForm.value.displayName;\n customerFarmModel.primaryVetId = this.customerFarmForm.value.primaryVetId;\n customerFarmModel.PICTattoo = this.customerFarmForm.value.PICTattoo;\n customerFarmModel.formCode = this.customerFarmConfiguration.formCode;\n\n return customerFarmModel;\n }\n\n /**\n * @description\n * clear form data\n */\n ClearForm() {\n this.DeclareForm();\n }\n\n emitDataToParent() {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n this.customerFarmData.emit(customerFarmModel);\n }\n\n}\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>","import { NgModule } from '@angular/core';\nimport { CustomerFarmComponent } from './customer-farm.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CdkStepperModule } from '@angular/cdk/stepper';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatOptionModule, MatNativeDateModule } from '@angular/material/core';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { ButtonsModule } from '@progress/kendo-angular-buttons';\nimport { GridModule, SharedModule, ExcelModule } from '@progress/kendo-angular-grid';\n\n@NgModule({\n declarations: [\n CustomerFarmComponent\n ],\n imports: [\n MatIconModule,\n MatInputModule,\n MatToolbarModule,\n ReactiveFormsModule,\n FormsModule,\n CommonModule,\n GridModule,\n ButtonsModule,\n MatGridListModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n MatInputModule,\n MatOptionModule,\n MatSelectModule,\n MatCheckboxModule,\n SharedModule,\n MatButtonModule,\n MatDatepickerModule,\n MatNativeDateModule,\n ExcelModule,\n MatStepperModule,\n CdkStepperModule,\n ],\n exports: [\n CustomerFarmComponent\n ]\n})\nexport class CustomerFarmModule { }\n","/*\n * Public API Surface of customer-farm\n */\n\nexport * from './lib/customer-farm.service';\nexport * from './lib/customer-farm.component';\nexport * from './lib/customer-farm.module';\nexport * from './lib/dependencies/customer-farm-api-urls';\nexport * from './lib/dependencies/customer-farm-model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"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;KAC/E;AAAA;;MCVY,mBAAmB,CAAA;AAE5B,IAAA,WAAA,CAAoB,iBAAoC,EAAA;QAApC,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;AAExD,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAC;KAFa;AAI7D;;;;;;AAMG;IACI,MAAM,WAAW,CAAC,YAAoB,EAAA;QACzC,IAAI;YACA,MAAM,GAAG,GAAG,IAAI,CAAC,mBAAmB,CAAC,sBAAsB,GAAG,GAAG,GAAG,YAAY,CAAC;YACjF,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC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;"}
|
|
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}","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","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 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';\nimport { FormBuilder, FormGroup, Validators } from '@angular/forms';\nimport { CustomerFarmConfigrationModel, CustomerFarmModel } from './dependencies/customer-farm-model';\nimport { ErrorLogService, ToastrNotificationService } from '@qubesense/base-services';\nimport { CustomerFarmService } from './customer-farm.service';\n\n@Component({\n selector: 'lib-customer-farm',\n templateUrl: './customer-farm.component.html',\n styleUrls: ['./customer-farm.component.scss']\n})\nexport class CustomerFarmComponent implements OnInit {\n @Output() customerFarmData = new EventEmitter<any>();\n @Input() public customerFarmConfiguration: CustomerFarmConfigrationModel = new CustomerFarmConfigrationModel();\n customerFarmForm: FormGroup;\n userMessages: string[] = [];\n\n constructor(private customerFarmService: CustomerFarmService,\n private formBuilder: FormBuilder,\n private errorLogService: ErrorLogService,\n private toastr: ToastrNotificationService\n ) { }\n\n ngOnInit() {\n this.DeclareForm();\n if (this.customerFarmConfiguration.customerData != null) {\n this.EditData();\n }\n }\n\n DeclareForm() {\n this.customerFarmForm = this.formBuilder.group({\n recordId : [null],\n customerId : [null],\n customerName : [null],\n defaultWarehouse : [null],\n personInCharge : [null],\n displayName : [null],\n primaryVetId : [null],\n PICTattoo : [null],\n isActive : [true]\n });\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.customerName) {\n this.customerFarmForm.get('customerName').addValidators(Validators.required);\n this.customerFarmForm.get('customerName').addValidators(Validators.pattern('^[a-zA-Z ]*$'));\n this.customerFarmForm.get('customerName').addValidators(Validators.minLength(3));\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.defaultWarehouse) {\n this.customerFarmForm.get('defaultWarehouse').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.personInCharge) {\n this.customerFarmForm.get('personInCharge').addValidators(Validators.required);\n }\n if (this.customerFarmConfiguration.requiredCustomerFarmFields.primaryVetId) {\n this.customerFarmForm.get('primaryVetId').addValidators(Validators.required);\n }\n\n }\n\n ///////////////////////////////////standard methods/////////////////////////////////////////////////////\n\n /**\n * @description\n *\n * edit data list item using data item GUID\n *\n * @param recordId\n *\n * gets customer GUID from gridData and passes it to this function\n */\n async EditData() {\n try {\n this.customerFarmForm.controls['recordId'].setValue(this.customerFarmConfiguration.customerData.recordId);\n this.customerFarmForm.controls['customerId'].setValue(this.customerFarmConfiguration.customerData.customerId);\n this.customerFarmForm.controls['customerName'].setValue(this.customerFarmConfiguration.customerData.customerName);\n this.customerFarmForm.controls['defaultWarehouse'].setValue(this.customerFarmConfiguration.customerData.defaultWarehouse);\n this.customerFarmForm.controls['personInCharge'].setValue(this.customerFarmConfiguration.customerData.personInCharge);\n this.customerFarmForm.controls['displayName'].setValue(this.customerFarmConfiguration.customerData.displayName);\n this.customerFarmForm.controls['primaryVetId'].setValue(this.customerFarmConfiguration.customerData.primaryVetId);\n this.customerFarmForm.controls['PICTattoo'].setValue(this.customerFarmConfiguration.customerData.PICTattoo);\n this.customerFarmForm.controls['isActive'].setValue(this.customerFarmConfiguration.customerData.isActive);\n\n }\n catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n\n\n\n /**\n * @description\n *\n * this method converts all form inputs into model class\n *\n * @returns model with new form values\n */\n ConvertFormToModel() {\n const customerFarmModel = new CustomerFarmModel();\n customerFarmModel.recordId = this.customerFarmForm.value.recordId;\n customerFarmModel.customerId = this.customerFarmForm.value.customerId;\n customerFarmModel.customerName = this.customerFarmForm.value.customerName;\n customerFarmModel.defaultWarehouse = this.customerFarmForm.value.defaultWarehouse;\n customerFarmModel.personInCharge = this.customerFarmForm.value.personInCharge;\n customerFarmModel.displayName = this.customerFarmForm.value.displayName;\n customerFarmModel.primaryVetId = this.customerFarmForm.value.primaryVetId;\n customerFarmModel.PICTattoo = this.customerFarmForm.value.PICTattoo;\n customerFarmModel.formCode = this.customerFarmConfiguration.formCode;\n\n return customerFarmModel;\n }\n\n /**\n * @description\n * clear form data\n */\n ClearForm() {\n this.DeclareForm();\n }\n\n emitDataToParent() {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n this.customerFarmData.emit(customerFarmModel);\n }\n\n\n /**\n * @description\n *\n * Insert customer data into database\n */\n public async InsertData() {\n try {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n if (!this.customerFarmForm.invalid) {\n const getResponse = await this.customerFarmService.InsertData(customerFarmModel);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n this.ClearForm();\n } else {\n this.customerFarmForm.markAllAsTouched();\n this.toastr.ShowWarning(\"Please enter valid data!\");\n }\n } catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n \n /**\n * @description\n *\n * update customer data into database\n */\n public async UpdateData() {\n try {\n let customerFarmModel = new CustomerFarmModel();\n customerFarmModel = this.ConvertFormToModel();\n if (!this.customerFarmForm.invalid) {\n const getResponse = await this.customerFarmService.UpdateData(customerFarmModel);\n this.userMessages = getResponse.message.userMessage;\n if (this.customerFarmConfiguration.userMessages) {\n this.toastr.ShowSuccess(this.userMessages.toString());\n }\n this.ClearForm();\n } else {\n this.customerFarmForm.markAllAsTouched();\n this.toastr.ShowWarning(\"Please enter valid data!\");\n }\n } catch (error) {\n this.errorLogService.saveError(error);\n this.toastr.ShowAllErrors(error.error.message.userMessage);\n }\n }\n\n}\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>","import { NgModule } from '@angular/core';\nimport { CustomerFarmComponent } from './customer-farm.component';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { CdkStepperModule } from '@angular/cdk/stepper';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatOptionModule, MatNativeDateModule } from '@angular/material/core';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatStepperModule } from '@angular/material/stepper';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { ButtonsModule } from '@progress/kendo-angular-buttons';\nimport { GridModule, SharedModule, ExcelModule } from '@progress/kendo-angular-grid';\n\n@NgModule({\n declarations: [\n CustomerFarmComponent\n ],\n imports: [\n MatIconModule,\n MatInputModule,\n MatToolbarModule,\n ReactiveFormsModule,\n FormsModule,\n CommonModule,\n GridModule,\n ButtonsModule,\n MatGridListModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n MatInputModule,\n MatOptionModule,\n MatSelectModule,\n MatCheckboxModule,\n SharedModule,\n MatButtonModule,\n MatDatepickerModule,\n MatNativeDateModule,\n ExcelModule,\n MatStepperModule,\n CdkStepperModule,\n ],\n exports: [\n CustomerFarmComponent\n ]\n})\nexport class CustomerFarmModule { }\n","/*\n * Public API Surface of customer-farm\n */\n\nexport * from './lib/customer-farm.service';\nexport * from './lib/customer-farm.component';\nexport * from './lib/customer-farm.module';\nexport * from './lib/dependencies/customer-farm-api-urls';\nexport * from './lib/dependencies/customer-farm-model';\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;KAC/E;AAAA;;MCTY,mBAAmB,CAAA;AAE5B,IAAA,WAAA,CAAoB,iBAAoC,EAAA;QAApC,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;AAExD,QAAA,IAAA,CAAA,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAC;KAFa;AAI7D;;;;;;A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IAAA,EAAA,kBAAkB,YA3B3B,aAAa;QACT,cAAc;QACd,gBAAgB;QAChB,mBAAmB;QACnB,WAAW;QACX,YAAY;QACZ,UAAU;QACV,aAAa;QACb,iBAAiB;QACjB,kBAAkB;QAClB,mBAAmB;QACnB,cAAc;QACd,eAAe;QACf,eAAe;QACf,iBAAiB;QACjB,YAAY;QACZ,eAAe;QACf,mBAAmB;QACnB,mBAAmB;QACnB,WAAW;QACX,gBAAgB;QAChB,gBAAgB,CAAA,EAAA,CAAA,CAAA;2FAMX,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAhC9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,qBAAqB;AACtB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,aAAa;wBACT,cAAc;wBACd,gBAAgB;wBAChB,mBAAmB;wBACnB,WAAW;wBACX,YAAY;wBACZ,UAAU;wBACV,aAAa;wBACb,iBAAiB;wBACjB,kBAAkB;wBAClB,mBAAmB;wBACnB,cAAc;wBACd,eAAe;wBACf,eAAe;wBACf,iBAAiB;wBACjB,YAAY;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,mBAAmB;wBACnB,WAAW;wBACX,gBAAgB;wBAChB,gBAAgB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,qBAAqB;AACtB,qBAAA;AACF,iBAAA,CAAA;;;AClDD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -2,15 +2,18 @@ import { EventEmitter, OnInit } from '@angular/core';
|
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { CustomerFarmConfigrationModel, CustomerFarmModel } from './dependencies/customer-farm-model';
|
|
4
4
|
import { ErrorLogService, ToastrNotificationService } from '@qubesense/base-services';
|
|
5
|
+
import { CustomerFarmService } from './customer-farm.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class CustomerFarmComponent implements OnInit {
|
|
8
|
+
private customerFarmService;
|
|
7
9
|
private formBuilder;
|
|
8
10
|
private errorLogService;
|
|
9
11
|
private toastr;
|
|
10
12
|
customerFarmData: EventEmitter<any>;
|
|
11
13
|
customerFarmConfiguration: CustomerFarmConfigrationModel;
|
|
12
14
|
customerFarmForm: FormGroup;
|
|
13
|
-
|
|
15
|
+
userMessages: string[];
|
|
16
|
+
constructor(customerFarmService: CustomerFarmService, formBuilder: FormBuilder, errorLogService: ErrorLogService, toastr: ToastrNotificationService);
|
|
14
17
|
ngOnInit(): void;
|
|
15
18
|
DeclareForm(): void;
|
|
16
19
|
/**
|
|
@@ -37,6 +40,18 @@ export declare class CustomerFarmComponent implements OnInit {
|
|
|
37
40
|
*/
|
|
38
41
|
ClearForm(): void;
|
|
39
42
|
emitDataToParent(): void;
|
|
43
|
+
/**
|
|
44
|
+
* @description
|
|
45
|
+
*
|
|
46
|
+
* Insert customer data into database
|
|
47
|
+
*/
|
|
48
|
+
InsertData(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* @description
|
|
51
|
+
*
|
|
52
|
+
* update customer data into database
|
|
53
|
+
*/
|
|
54
|
+
UpdateData(): Promise<void>;
|
|
40
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomerFarmComponent, never>;
|
|
41
56
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomerFarmComponent, "lib-customer-farm", never, { "customerFarmConfiguration": "customerFarmConfiguration"; }, { "customerFarmData": "customerFarmData"; }, never, never, false>;
|
|
42
57
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DataAccessService, WebApiResult } from '@qubesense/base-services';
|
|
2
2
|
import { CustomerFarmApiUrls } from './dependencies/customer-farm-api-urls';
|
|
3
|
+
import { CustomerFarmModel } from './dependencies/customer-farm-model';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class CustomerFarmService {
|
|
5
6
|
private dataAccessService;
|
|
@@ -13,13 +14,22 @@ export declare class CustomerFarmService {
|
|
|
13
14
|
* @returns Response Data from Database
|
|
14
15
|
*/
|
|
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>;
|
|
16
25
|
/**
|
|
17
26
|
* service for update customer Data
|
|
18
27
|
*
|
|
19
|
-
* @param
|
|
28
|
+
* @param customerFarmModel
|
|
20
29
|
*
|
|
21
30
|
* @returns Response message from Database
|
|
22
31
|
*/
|
|
32
|
+
UpdateData(customerFarmModel: CustomerFarmModel): Promise<WebApiResult>;
|
|
23
33
|
/**
|
|
24
34
|
* service for delete customer data by GUID
|
|
25
35
|
*
|
|
@@ -35,6 +45,7 @@ export declare class CustomerFarmService {
|
|
|
35
45
|
*
|
|
36
46
|
* @returns Response Data from Database
|
|
37
47
|
*/
|
|
48
|
+
GetListData(customerDataModel: CustomerFarmModel): Promise<WebApiResult>;
|
|
38
49
|
/**
|
|
39
50
|
* service for get data for customer DropDown List
|
|
40
51
|
*
|
|
@@ -20,6 +20,7 @@ export declare class CustomerFarmConfigrationModel {
|
|
|
20
20
|
isSearchable: boolean;
|
|
21
21
|
showClientData: boolean;
|
|
22
22
|
customerData: CustomerFarmModel;
|
|
23
|
+
userMessages: boolean;
|
|
23
24
|
requiredCustomerFarmSection: boolean;
|
|
24
25
|
allowedCustomerFarmSection: boolean;
|
|
25
26
|
requiredCustomerFarmFields: RequiredCustomerFarmFields;
|