@unnilouis.org/vs-chipdropdown 0.0.13 → 0.0.15-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bundles/unnilouis.org-vs-chipdropdown.umd.js +547 -0
- package/bundles/unnilouis.org-vs-chipdropdown.umd.js.map +1 -0
- package/bundles/unnilouis.org-vs-chipdropdown.umd.min.js +16 -0
- package/bundles/unnilouis.org-vs-chipdropdown.umd.min.js.map +1 -0
- package/esm2015/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.js +233 -0
- package/esm2015/lib/vs-chipdropdown.component.js +19 -0
- package/esm2015/lib/vs-chipdropdown.module.js +24 -0
- package/esm2015/lib/vs-chipdropdown.service.js +49 -0
- package/esm2015/public-api.js +8 -0
- package/esm2015/unnilouis.org-vs-chipdropdown.js +5 -0
- package/esm5/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.js +249 -0
- package/esm5/lib/vs-chipdropdown.component.js +17 -0
- package/esm5/lib/vs-chipdropdown.module.js +27 -0
- package/esm5/lib/vs-chipdropdown.service.js +52 -0
- package/esm5/public-api.js +8 -0
- package/esm5/unnilouis.org-vs-chipdropdown.js +5 -0
- package/fesm2015/unnilouis.org-vs-chipdropdown.js +319 -0
- package/fesm2015/unnilouis.org-vs-chipdropdown.js.map +1 -0
- package/fesm5/unnilouis.org-vs-chipdropdown.js +339 -0
- package/fesm5/unnilouis.org-vs-chipdropdown.js.map +1 -0
- package/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.d.ts +0 -3
- package/lib/vs-chipdropdown.component.d.ts +4 -4
- package/lib/vs-chipdropdown.module.d.ts +0 -15
- package/lib/vs-chipdropdown.service.d.ts +0 -3
- package/package.json +15 -19
- package/{index.d.ts → unnilouis.org-vs-chipdropdown.d.ts} +0 -1
- package/unnilouis.org-vs-chipdropdown.metadata.json +1 -0
- package/esm2022/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.mjs +0 -211
- package/esm2022/lib/vs-chipdropdown.component.mjs +0 -19
- package/esm2022/lib/vs-chipdropdown.module.mjs +0 -37
- package/esm2022/lib/vs-chipdropdown.service.mjs +0 -45
- package/esm2022/public-api.mjs +0 -8
- package/esm2022/unnilouis.org-vs-chipdropdown.mjs +0 -5
- package/fesm2022/unnilouis.org-vs-chipdropdown.mjs +0 -313
- package/fesm2022/unnilouis.org-vs-chipdropdown.mjs.map +0 -1
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import { ɵɵdefineInjectable, ɵɵinject, Injectable, Component, EventEmitter, Input, ViewChild, Output, NgModule } from '@angular/core';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { MatAutocompleteTrigger, MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
5
|
+
import { map, takeUntil, debounceTime, distinctUntilChanged, tap, switchMap, finalize } from 'rxjs/operators';
|
|
6
|
+
import { fromEvent } from 'rxjs';
|
|
7
|
+
import { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import { ENTER, COMMA } from '@angular/cdk/keycodes';
|
|
9
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
10
|
+
import { MatInputModule } from '@angular/material/input';
|
|
11
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
12
|
+
import { CommonModule } from '@angular/common';
|
|
13
|
+
import { MatGridListModule } from '@angular/material/grid-list';
|
|
14
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
15
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
16
|
+
|
|
17
|
+
let VsChipdropdownService = class VsChipdropdownService {
|
|
18
|
+
constructor(http) {
|
|
19
|
+
this.http = http;
|
|
20
|
+
}
|
|
21
|
+
postApi(Apiurl, json = {}, params) {
|
|
22
|
+
const getToken = localStorage.getItem("sessionData");
|
|
23
|
+
let tokenValue = JSON.parse(getToken);
|
|
24
|
+
let token = tokenValue.token;
|
|
25
|
+
console.log("params", params);
|
|
26
|
+
let paradata = '';
|
|
27
|
+
if (params !== undefined && params !== null && params !== '') {
|
|
28
|
+
paradata = params;
|
|
29
|
+
}
|
|
30
|
+
const headers = { Authorization: "Token " + token };
|
|
31
|
+
return this.http.post(Apiurl + paradata, json, {
|
|
32
|
+
headers: headers,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
GetApi(Apiurl, params = '') {
|
|
36
|
+
const getToken = localStorage.getItem("sessionData");
|
|
37
|
+
let tokenValue = JSON.parse(getToken);
|
|
38
|
+
let token = tokenValue.token;
|
|
39
|
+
console.log("params", params);
|
|
40
|
+
let paradata = '';
|
|
41
|
+
if (params !== undefined && params !== null && params !== '') {
|
|
42
|
+
paradata = params;
|
|
43
|
+
}
|
|
44
|
+
const headers = { Authorization: "Token " + token };
|
|
45
|
+
return this.http.get(Apiurl + paradata, {
|
|
46
|
+
headers: headers,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
VsChipdropdownService.ctorParameters = () => [
|
|
51
|
+
{ type: HttpClient }
|
|
52
|
+
];
|
|
53
|
+
VsChipdropdownService.ɵprov = ɵɵdefineInjectable({ factory: function VsChipdropdownService_Factory() { return new VsChipdropdownService(ɵɵinject(HttpClient)); }, token: VsChipdropdownService, providedIn: "root" });
|
|
54
|
+
VsChipdropdownService = __decorate([
|
|
55
|
+
Injectable({
|
|
56
|
+
providedIn: 'root'
|
|
57
|
+
})
|
|
58
|
+
], VsChipdropdownService);
|
|
59
|
+
|
|
60
|
+
let VsChipdropdownComponent = class VsChipdropdownComponent {
|
|
61
|
+
constructor() { }
|
|
62
|
+
ngOnInit() {
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
VsChipdropdownComponent = __decorate([
|
|
66
|
+
Component({
|
|
67
|
+
selector: 'lib-vs-chipdropdown',
|
|
68
|
+
template: `
|
|
69
|
+
<p>
|
|
70
|
+
vs-chipdropdown works!
|
|
71
|
+
</p>
|
|
72
|
+
`
|
|
73
|
+
})
|
|
74
|
+
], VsChipdropdownComponent);
|
|
75
|
+
|
|
76
|
+
let VsChipddCmpComponent = class VsChipddCmpComponent {
|
|
77
|
+
constructor(service, fb) {
|
|
78
|
+
this.service = service;
|
|
79
|
+
this.fb = fb;
|
|
80
|
+
this.dataEvent = new EventEmitter();
|
|
81
|
+
this.separatorsKeysCodes = [ENTER, COMMA];
|
|
82
|
+
this.has_next = false;
|
|
83
|
+
this.currentpage = 1;
|
|
84
|
+
this.Dropdowndata = [];
|
|
85
|
+
this.has_previous = false;
|
|
86
|
+
this.chipSelectedId = [];
|
|
87
|
+
this.chipSelectedObj = [];
|
|
88
|
+
}
|
|
89
|
+
ngOnInit() {
|
|
90
|
+
var _a, _b, _c, _d, _e;
|
|
91
|
+
this.DropdownForm = this.fb.group({
|
|
92
|
+
value: ''
|
|
93
|
+
});
|
|
94
|
+
if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.defaultvalue) {
|
|
95
|
+
this.DropdownForm.get("value").patchValue((_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.defaultvalue);
|
|
96
|
+
this.chipSelectedObj = (_c = this.InputFields) === null || _c === void 0 ? void 0 : _c.defaultvalue;
|
|
97
|
+
if (this.chipSelectedObj.length > 0) {
|
|
98
|
+
for (let foundemp of this.chipSelectedObj) {
|
|
99
|
+
if ((_d = this.InputFields) === null || _d === void 0 ? void 0 : _d.Outputkey) {
|
|
100
|
+
this.chipSelectedId.push(foundemp[(_e = this.InputFields) === null || _e === void 0 ? void 0 : _e.Outputkey]);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
this.chipSelectedId.push(foundemp.id);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
this.selected();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
this.getdropdown('');
|
|
110
|
+
}
|
|
111
|
+
ngOnChanges(changes) {
|
|
112
|
+
console.log("changes.ResetForm", changes.ResetForm, changes.ResetForm.currentValue, changes.ResetForm && changes.ResetForm.currentValue);
|
|
113
|
+
if (changes.InputFields && changes.InputFields.currentValue) {
|
|
114
|
+
console.log("Summary Log Changes");
|
|
115
|
+
this.currentpage = 1;
|
|
116
|
+
this.getdropdown('');
|
|
117
|
+
}
|
|
118
|
+
if (changes.ResetForm && changes.ResetForm.currentValue) {
|
|
119
|
+
console.log("hitted");
|
|
120
|
+
this.DropdownForm.reset();
|
|
121
|
+
this.currentpage = 1;
|
|
122
|
+
this.getdropdown('');
|
|
123
|
+
this.chipSelectedId = [];
|
|
124
|
+
this.chipSelectedObj = [];
|
|
125
|
+
this.dataEvent.emit([]);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
// public displaydevelopclient(clt: any, key: string) {
|
|
129
|
+
// return key[clt];
|
|
130
|
+
// }
|
|
131
|
+
autocompleteAppScroll() {
|
|
132
|
+
setTimeout(() => {
|
|
133
|
+
if (this.matAutocompleteApp &&
|
|
134
|
+
this.autocompleteTrigger &&
|
|
135
|
+
this.matAutocompleteApp.panel) {
|
|
136
|
+
fromEvent(this.matAutocompleteApp.panel.nativeElement, 'scroll')
|
|
137
|
+
.pipe(map(x => this.matAutocompleteApp.panel.nativeElement.scrollTop), takeUntil(this.autocompleteTrigger.panelClosingActions))
|
|
138
|
+
.subscribe(x => {
|
|
139
|
+
const scrollTop = this.matAutocompleteApp.panel.nativeElement.scrollTop;
|
|
140
|
+
const scrollHeight = this.matAutocompleteApp.panel.nativeElement.scrollHeight;
|
|
141
|
+
const elementHeight = this.matAutocompleteApp.panel.nativeElement.clientHeight;
|
|
142
|
+
const atBottom = scrollHeight - 1 <= scrollTop + elementHeight;
|
|
143
|
+
if (atBottom) {
|
|
144
|
+
if (this.has_next === true) {
|
|
145
|
+
let value = this.DropInput.nativeElement.value;
|
|
146
|
+
let params = this.searchparams(value);
|
|
147
|
+
this.currentpage = this.currentpage + 1;
|
|
148
|
+
if (this.currentpage > 1) {
|
|
149
|
+
this.service.GetApi(this.InputFields.url + "?page=" + this.currentpage, params)
|
|
150
|
+
.subscribe((results) => {
|
|
151
|
+
let datas = results["data"];
|
|
152
|
+
let datapagination = results["pagination"];
|
|
153
|
+
this.Dropdowndata = this.Dropdowndata.concat(datas);
|
|
154
|
+
console.log("this.Dropdowndata", this.Dropdowndata);
|
|
155
|
+
if (this.Dropdowndata.length >= 0) {
|
|
156
|
+
this.has_next = datapagination.has_next;
|
|
157
|
+
this.has_previous = datapagination.has_previous;
|
|
158
|
+
this.currentpage = datapagination.index;
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
dropdownsearch() {
|
|
169
|
+
this.DropdownForm.get("value").valueChanges.pipe(debounceTime(100), distinctUntilChanged(), tap(() => {
|
|
170
|
+
this.DrodownLoading = true;
|
|
171
|
+
console.log("inside tap");
|
|
172
|
+
}), switchMap((value) => {
|
|
173
|
+
let params = this.searchparams(value);
|
|
174
|
+
this.currentpage = 1;
|
|
175
|
+
return this.service.GetApi(this.InputFields.url + "?page=" + this.currentpage, params).pipe(finalize(() => {
|
|
176
|
+
this.DrodownLoading = false;
|
|
177
|
+
}));
|
|
178
|
+
})).subscribe((results) => {
|
|
179
|
+
let datas = results["data"];
|
|
180
|
+
this.Dropdowndata = datas;
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
getdropdown(value) {
|
|
184
|
+
let params = this.searchparams(value);
|
|
185
|
+
this.service.GetApi(this.InputFields.url + "?page=" + this.currentpage, params)
|
|
186
|
+
.subscribe((results) => {
|
|
187
|
+
let datas = results["data"];
|
|
188
|
+
let datapagination = results["pagination"];
|
|
189
|
+
this.Dropdowndata = datas;
|
|
190
|
+
if (this.Dropdowndata.length >= 0) {
|
|
191
|
+
this.has_next = datapagination.has_next;
|
|
192
|
+
this.has_previous = datapagination.has_previous;
|
|
193
|
+
this.currentpage = datapagination.index;
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
selected() {
|
|
198
|
+
var _a, _b;
|
|
199
|
+
// let data = this.DropdownForm.value.value
|
|
200
|
+
if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.wholedata) {
|
|
201
|
+
this.dataEvent.emit(this.chipSelectedObj);
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
if ((_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.Outputkey) {
|
|
205
|
+
this.dataEvent.emit(this.chipSelectedId);
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
this.dataEvent.emit(this.chipSelectedObj);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
searchparams(value) {
|
|
213
|
+
let params = '';
|
|
214
|
+
if (this.InputFields.params) {
|
|
215
|
+
params = this.InputFields.params;
|
|
216
|
+
}
|
|
217
|
+
let inpValue = value;
|
|
218
|
+
inpValue ? params += '&' + this.InputFields.searchkey + '=' + inpValue : '';
|
|
219
|
+
return params;
|
|
220
|
+
}
|
|
221
|
+
removechip(obj) {
|
|
222
|
+
const index = this.chipSelectedObj.indexOf(obj);
|
|
223
|
+
if (index >= 0) {
|
|
224
|
+
this.chipSelectedObj.splice(index, 1);
|
|
225
|
+
console.log(this.chipSelectedObj);
|
|
226
|
+
this.chipSelectedId.splice(index, 1);
|
|
227
|
+
console.log(this.chipSelectedId);
|
|
228
|
+
this.DropInput.nativeElement.value = '';
|
|
229
|
+
this.selected();
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
venSelected(event) {
|
|
233
|
+
this.DropInput.nativeElement.value = '';
|
|
234
|
+
console.log('event.option.value', event.option.value);
|
|
235
|
+
this.selectvenByName(event.option.value[this.comparekey(event.option.value)]);
|
|
236
|
+
console.log('chipSelectedvenid', this.chipSelectedObj);
|
|
237
|
+
}
|
|
238
|
+
selectvenByName(ven) {
|
|
239
|
+
var _a, _b;
|
|
240
|
+
let foundemp1 = this.chipSelectedObj.filter(e => e[this.comparekey(e)] == ven);
|
|
241
|
+
if (foundemp1.length) {
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
let foundemp = this.Dropdowndata.filter(e => e[this.comparekey(e)] == ven);
|
|
245
|
+
if (foundemp.length) {
|
|
246
|
+
this.chipSelectedObj.push(foundemp[0]);
|
|
247
|
+
if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.Outputkey) {
|
|
248
|
+
this.chipSelectedId.push(foundemp[0][(_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.Outputkey]);
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
this.chipSelectedId.push(foundemp[0].id);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
comparekey(e) {
|
|
256
|
+
var _a, _b;
|
|
257
|
+
if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.comparekey) {
|
|
258
|
+
return (_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.comparekey;
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
if (e === null || e === void 0 ? void 0 : e.id) {
|
|
262
|
+
return "id";
|
|
263
|
+
}
|
|
264
|
+
else {
|
|
265
|
+
return this.InputFields.displaykey;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
VsChipddCmpComponent.ctorParameters = () => [
|
|
271
|
+
{ type: VsChipdropdownService },
|
|
272
|
+
{ type: FormBuilder }
|
|
273
|
+
];
|
|
274
|
+
__decorate([
|
|
275
|
+
Input()
|
|
276
|
+
], VsChipddCmpComponent.prototype, "InputFields", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
Input()
|
|
279
|
+
], VsChipddCmpComponent.prototype, "ResetForm", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
ViewChild(MatAutocompleteTrigger)
|
|
282
|
+
], VsChipddCmpComponent.prototype, "autocompleteTrigger", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
ViewChild('scrolll')
|
|
285
|
+
], VsChipddCmpComponent.prototype, "matAutocompleteApp", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
Output()
|
|
288
|
+
], VsChipddCmpComponent.prototype, "dataEvent", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
ViewChild('DropInput')
|
|
291
|
+
], VsChipddCmpComponent.prototype, "DropInput", void 0);
|
|
292
|
+
VsChipddCmpComponent = __decorate([
|
|
293
|
+
Component({
|
|
294
|
+
selector: 'lib-vs-chipdd-cmp',
|
|
295
|
+
template: "<div>\n <form [formGroup]=\"DropdownForm\">\n <mat-form-field appearance=\"outline\" class=\"mat-chipScroll\">\n <mat-label>{{InputFields.label}}</mat-label>\n <mat-chip-list multiple #chipListvendor class=\"chip-container\">\n <mat-chip *ngFor=\"let obj of chipSelectedObj\" [removable]=\"true\" (removed)=\"removechip(obj)\" class=\"mat-chipEx\">\n {{ obj[InputFields.displaykey] }}\n <mat-icon matChipRemove>cancel</mat-icon>\n </mat-chip>\n <input #DropInput [matAutocomplete]=\"scrolll\" class=\"matformfieldinputstyle\"\n (keydown)=\"dropdownsearch()\" [matChipInputFor]=\"chipListvendor\" [matChipInputSeparatorKeyCodes]=\"\n separatorsKeysCodes\n \" [matChipInputAddOnBlur]=\"true\" formControlName=\"value\" />\n </mat-chip-list>\n <mat-autocomplete #scrolll=\"matAutocomplete\" (optionSelected)=\"venSelected($event)\"\n (opened)=\"autocompleteAppScroll()\">\n <ng-container>\n <mat-option *ngFor=\"let dropvalues of Dropdowndata\" [value]=\"dropvalues\" (click)=\"selected()\">\n {{dropvalues[InputFields.displaykey]}}\n </mat-option>\n </ng-container>\n </mat-autocomplete>\n </mat-form-field>\n </form>\n</div>",
|
|
296
|
+
styles: [""]
|
|
297
|
+
})
|
|
298
|
+
], VsChipddCmpComponent);
|
|
299
|
+
|
|
300
|
+
let VsChipdropdownModule = class VsChipdropdownModule {
|
|
301
|
+
};
|
|
302
|
+
VsChipdropdownModule = __decorate([
|
|
303
|
+
NgModule({
|
|
304
|
+
declarations: [VsChipdropdownComponent, VsChipddCmpComponent],
|
|
305
|
+
imports: [MatFormFieldModule, MatInputModule, MatSelectModule, MatAutocompleteModule, FormsModule, ReactiveFormsModule, CommonModule, MatGridListModule, MatChipsModule, MatIconModule],
|
|
306
|
+
exports: [VsChipddCmpComponent]
|
|
307
|
+
})
|
|
308
|
+
], VsChipdropdownModule);
|
|
309
|
+
|
|
310
|
+
/*
|
|
311
|
+
* Public API Surface of vs-chipdropdown
|
|
312
|
+
*/
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Generated bundle index. Do not edit.
|
|
316
|
+
*/
|
|
317
|
+
|
|
318
|
+
export { VsChipddCmpComponent, VsChipdropdownComponent, VsChipdropdownModule, VsChipdropdownService };
|
|
319
|
+
//# sourceMappingURL=unnilouis.org-vs-chipdropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unnilouis.org-vs-chipdropdown.js","sources":["ng://@unnilouis.org/vs-chipdropdown/lib/vs-chipdropdown.service.ts","ng://@unnilouis.org/vs-chipdropdown/lib/vs-chipdropdown.component.ts","ng://@unnilouis.org/vs-chipdropdown/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.ts","ng://@unnilouis.org/vs-chipdropdown/lib/vs-chipdropdown.module.ts","ng://@unnilouis.org/vs-chipdropdown/public-api.ts","ng://@unnilouis.org/vs-chipdropdown/unnilouis.org-vs-chipdropdown.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { HttpClient } from '@angular/common/http';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class VsChipdropdownService {\n\n constructor(private http: HttpClient) { }\n postApi(Apiurl,json={},params): Observable<any> {\n const getToken = localStorage.getItem(\"sessionData\");\n let tokenValue = JSON.parse(getToken);\n let token = tokenValue.token;\n console.log(\"params\",params)\n let paradata=''\n if(params!==undefined && params!==null && params!==''){\n paradata=params\n }\n const headers = { Authorization: \"Token \" + token };\n return this.http.post<any>(Apiurl+paradata,json ,{\n headers: headers,\n \n });\n }\n GetApi(Apiurl,params=''): Observable<any> {\n const getToken = localStorage.getItem(\"sessionData\");\n let tokenValue = JSON.parse(getToken);\n let token = tokenValue.token;\n console.log(\"params\",params)\n let paradata=''\n if(params!==undefined && params!==null && params!==''){\n paradata=params\n }\n const headers = { Authorization: \"Token \" + token };\n return this.http.get<any>(Apiurl+paradata,{\n headers: headers,\n });\n }\n}\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'lib-vs-chipdropdown',\n template: `\n <p>\n vs-chipdropdown works!\n </p>\n `,\n styles: [\n ]\n})\nexport class VsChipdropdownComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","import { Component, EventEmitter, Input, Output, SimpleChanges, ViewChild } from '@angular/core';\nimport { MatAutocompleteSelectedEvent, MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete';\nimport {\n debounceTime,\n distinctUntilChanged,\n tap,\n filter,\n switchMap,\n finalize,\n takeUntil,\n map,\n} from \"rxjs/operators\";\nimport { from, Observable, fromEvent } from 'rxjs';\nimport { VsChipdropdownService } from '../vs-chipdropdown.service'\nimport { FormBuilder, FormControl, FormGroup } from '@angular/forms';\nimport { COMMA, ENTER } from '@angular/cdk/keycodes';\n@Component({\n selector: 'lib-vs-chipdd-cmp',\n templateUrl: './vs-chipdd-cmp.component.html',\n styleUrls: ['./vs-chipdd-cmp.component.scss']\n})\nexport class VsChipddCmpComponent {\n DrodownLoading: boolean;\n constructor(private service: VsChipdropdownService, private fb: FormBuilder) { }\n @Input() InputFields: any\n @Input() ResetForm: any\n\n @ViewChild(MatAutocompleteTrigger) autocompleteTrigger: MatAutocompleteTrigger;\n @ViewChild('scrolll') matAutocompleteApp: MatAutocomplete;\n @Output() dataEvent: EventEmitter<any> = new EventEmitter<any>();\n @ViewChild('DropInput') DropInput: any;\n readonly separatorsKeysCodes: number[] = [ENTER, COMMA];\n\n has_next: boolean = false;\n currentpage: number = 1;\n Dropdowndata: any = [];\n has_previous: boolean = false;\n DropdownForm: FormGroup\n chipSelectedId: any = [];\n chipSelectedObj: any = []\n\n ngOnInit() {\n this.DropdownForm = this.fb.group({\n value: ''\n })\n if(this.InputFields?.defaultvalue){\n this.DropdownForm.get(\"value\").patchValue(this.InputFields?.defaultvalue)\n this.chipSelectedObj=this.InputFields?.defaultvalue\n if(this.chipSelectedObj.length>0){\n for (let foundemp of this.chipSelectedObj){\n if (this.InputFields?.Outputkey) {\n this.chipSelectedId.push(foundemp[this.InputFields?.Outputkey])\n \n }\n else {\n this.chipSelectedId.push(foundemp.id)\n \n }\n }\n this.selected()\n }\n \n\n }\n this.getdropdown('')\n }\n ngOnChanges(changes: SimpleChanges): void {\n console.log(\"changes.ResetForm\", changes.ResetForm, changes.ResetForm.currentValue, changes.ResetForm && changes.ResetForm.currentValue)\n if (changes.InputFields && changes.InputFields.currentValue) {\n console.log(\"Summary Log Changes\")\n this.currentpage = 1\n this.getdropdown('');\n }\n if (changes.ResetForm && changes.ResetForm.currentValue) {\n console.log(\"hitted\")\n this.DropdownForm.reset()\n this.currentpage = 1\n this.getdropdown('');\n this.chipSelectedId = [];\n this.chipSelectedObj = []\n this.dataEvent.emit([]);\n\n\n }\n }\n // public displaydevelopclient(clt: any, key: string) {\n // return key[clt];\n // }\n autocompleteAppScroll() {\n setTimeout(() => {\n if (\n this.matAutocompleteApp &&\n this.autocompleteTrigger &&\n this.matAutocompleteApp.panel\n ) {\n fromEvent(this.matAutocompleteApp.panel.nativeElement, 'scroll')\n .pipe(\n map(x => this.matAutocompleteApp.panel.nativeElement.scrollTop),\n takeUntil(this.autocompleteTrigger.panelClosingActions as Observable<any>)\n )\n .subscribe(x => {\n const scrollTop = this.matAutocompleteApp.panel.nativeElement.scrollTop;\n const scrollHeight = this.matAutocompleteApp.panel.nativeElement.scrollHeight;\n const elementHeight = this.matAutocompleteApp.panel.nativeElement.clientHeight;\n const atBottom = scrollHeight - 1 <= scrollTop + elementHeight;\n if (atBottom) {\n if (this.has_next === true) {\n let value = this.DropInput.nativeElement.value\n let params = this.searchparams(value)\n this.currentpage = this.currentpage + 1\n if (this.currentpage > 1) {\n this.service.GetApi(this.InputFields.url + \"?page=\" + this.currentpage, params)\n .subscribe((results: any[]) => {\n let datas = results[\"data\"];\n let datapagination = results[\"pagination\"];\n this.Dropdowndata = this.Dropdowndata.concat(datas);\n console.log(\"this.Dropdowndata\", this.Dropdowndata)\n if (this.Dropdowndata.length >= 0) {\n this.has_next = datapagination.has_next;\n this.has_previous = datapagination.has_previous;\n this.currentpage = datapagination.index;\n }\n })\n }\n\n }\n }\n });\n }\n });\n }\n dropdownsearch() {\n this.DropdownForm.get(\"value\").valueChanges.pipe(\n debounceTime(100),\n distinctUntilChanged(),\n tap(() => {\n this.DrodownLoading = true;\n console.log(\"inside tap\");\n }),\n switchMap((value) => {\n let params = this.searchparams(value);\n this.currentpage = 1\n return this.service.GetApi(this.InputFields.url + \"?page=\" + this.currentpage, params).pipe(\n finalize(() => {\n this.DrodownLoading = false;\n })\n );\n })\n ).subscribe((results: any[]) => {\n let datas = results[\"data\"];\n this.Dropdowndata = datas;\n });\n }\n getdropdown(value) {\n let params = this.searchparams(value)\n this.service.GetApi(this.InputFields.url + \"?page=\" + this.currentpage, params)\n .subscribe((results: any[]) => {\n let datas = results[\"data\"];\n let datapagination = results[\"pagination\"];\n this.Dropdowndata = datas\n if (this.Dropdowndata.length >= 0) {\n this.has_next = datapagination.has_next;\n this.has_previous = datapagination.has_previous;\n this.currentpage = datapagination.index;\n }\n })\n }\n selected() {\n // let data = this.DropdownForm.value.value\n if (this.InputFields?.wholedata) {\n this.dataEvent.emit(this.chipSelectedObj);\n }\n else {\n if (this.InputFields?.Outputkey) {\n this.dataEvent.emit(this.chipSelectedId);\n }\n else {\n this.dataEvent.emit(this.chipSelectedObj);\n }\n\n }\n\n }\n searchparams(value) {\n let params = ''\n if (this.InputFields.params) {\n params = this.InputFields.params\n }\n let inpValue = value\n inpValue ? params += '&' + this.InputFields.searchkey + '=' + inpValue : ''\n return params\n }\n removechip(obj) {\n const index = this.chipSelectedObj.indexOf(obj);\n\n if (index >= 0) {\n\n this.chipSelectedObj.splice(index, 1);\n console.log(this.chipSelectedObj);\n this.chipSelectedId.splice(index, 1);\n console.log(this.chipSelectedId);\n this.DropInput.nativeElement.value = '';\n this.selected()\n }\n\n }\n public venSelected(event: MatAutocompleteSelectedEvent): void {\n this.DropInput.nativeElement.value = '';\n console.log('event.option.value', event.option.value)\n this.selectvenByName(event.option.value[this.comparekey(event.option.value)]);\n console.log('chipSelectedvenid', this.chipSelectedObj)\n }\n private selectvenByName(ven) {\n let foundemp1 = this.chipSelectedObj.filter(e => e[this.comparekey(e)] == ven);\n if (foundemp1.length) {\n return;\n }\n let foundemp = this.Dropdowndata.filter(e => e[this.comparekey(e)] == ven);\n if (foundemp.length) {\n this.chipSelectedObj.push(foundemp[0]);\n if (this.InputFields?.Outputkey) {\n this.chipSelectedId.push(foundemp[0][this.InputFields?.Outputkey])\n\n }\n else {\n this.chipSelectedId.push(foundemp[0].id)\n\n }\n }\n }\n comparekey(e) {\n if (this.InputFields?.comparekey) {\n return this.InputFields?.comparekey\n }\n else {\n if (e?.id) {\n return \"id\"\n }\n else {\n return this.InputFields.displaykey\n }\n }\n }\n}","import { NgModule } from '@angular/core';\nimport { VsChipdropdownComponent } from './vs-chipdropdown.component';\nimport { VsChipddCmpComponent } from './vs-chipdd-cmp/vs-chipdd-cmp.component';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatAutocompleteModule } from '@angular/material/autocomplete';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { CommonModule } from '@angular/common';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatChipsModule } from '@angular/material/chips';\nimport { MatIconModule } from '@angular/material/icon';\n\n\n\n@NgModule({\n declarations: [VsChipdropdownComponent, VsChipddCmpComponent],\n imports: [MatFormFieldModule,MatInputModule,MatSelectModule,MatAutocompleteModule,FormsModule,ReactiveFormsModule,CommonModule,MatGridListModule,MatChipsModule,MatIconModule],\n exports: [VsChipddCmpComponent]\n})\nexport class VsChipdropdownModule { }\n","/*\n * Public API Surface of vs-chipdropdown\n */\n\nexport * from './lib/vs-chipdropdown.service';\nexport * from './lib/vs-chipdropdown.component';\nexport * from './lib/vs-chipdropdown.module';\nexport * from './lib/vs-chipdd-cmp/vs-chipdd-cmp.component'\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;IAOa,qBAAqB,GAAlC,MAAa,qBAAqB;IAEhC,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;KAAK;IACzC,OAAO,CAAC,MAAM,EAAC,IAAI,GAAC,EAAE,EAAC,MAAM;QAC3B,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACrD,IAAI,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACtC,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC7B,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,MAAM,CAAC,CAAA;QAC5B,IAAI,QAAQ,GAAC,EAAE,CAAA;QACf,IAAG,MAAM,KAAG,SAAS,IAAI,MAAM,KAAG,IAAI,IAAI,MAAM,KAAG,EAAE,EAAC;YACpD,QAAQ,GAAC,MAAM,CAAA;SAChB;QACD,MAAM,OAAO,GAAG,EAAE,aAAa,EAAE,QAAQ,GAAG,KAAK,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAM,MAAM,GAAC,QAAQ,EAAC,IAAI,EAAE;YAC/C,OAAO,EAAE,OAAO;SAEjB,CAAC,CAAC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