@unnilouis.org/vs-chipdropdown 0.0.15-beta-2 → 0.0.15

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.
Files changed (36) hide show
  1. package/README.md +2 -2
  2. package/esm2022/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.mjs +226 -0
  3. package/esm2022/lib/vs-chipdropdown.component.mjs +19 -0
  4. package/esm2022/lib/vs-chipdropdown.module.mjs +37 -0
  5. package/esm2022/lib/vs-chipdropdown.service.mjs +45 -0
  6. package/esm2022/public-api.mjs +8 -0
  7. package/esm2022/unnilouis.org-vs-chipdropdown.mjs +5 -0
  8. package/fesm2022/unnilouis.org-vs-chipdropdown.mjs +328 -0
  9. package/fesm2022/unnilouis.org-vs-chipdropdown.mjs.map +1 -0
  10. package/{unnilouis.org-vs-chipdropdown.d.ts → index.d.ts} +1 -0
  11. package/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.d.ts +3 -0
  12. package/lib/vs-chipdropdown.component.d.ts +4 -4
  13. package/lib/vs-chipdropdown.module.d.ts +15 -0
  14. package/lib/vs-chipdropdown.service.d.ts +3 -0
  15. package/package.json +19 -15
  16. package/bundles/unnilouis.org-vs-chipdropdown.umd.js +0 -547
  17. package/bundles/unnilouis.org-vs-chipdropdown.umd.js.map +0 -1
  18. package/bundles/unnilouis.org-vs-chipdropdown.umd.min.js +0 -16
  19. package/bundles/unnilouis.org-vs-chipdropdown.umd.min.js.map +0 -1
  20. package/esm2015/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.js +0 -233
  21. package/esm2015/lib/vs-chipdropdown.component.js +0 -19
  22. package/esm2015/lib/vs-chipdropdown.module.js +0 -24
  23. package/esm2015/lib/vs-chipdropdown.service.js +0 -49
  24. package/esm2015/public-api.js +0 -8
  25. package/esm2015/unnilouis.org-vs-chipdropdown.js +0 -5
  26. package/esm5/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.js +0 -249
  27. package/esm5/lib/vs-chipdropdown.component.js +0 -17
  28. package/esm5/lib/vs-chipdropdown.module.js +0 -27
  29. package/esm5/lib/vs-chipdropdown.service.js +0 -52
  30. package/esm5/public-api.js +0 -8
  31. package/esm5/unnilouis.org-vs-chipdropdown.js +0 -5
  32. package/fesm2015/unnilouis.org-vs-chipdropdown.js +0 -319
  33. package/fesm2015/unnilouis.org-vs-chipdropdown.js.map +0 -1
  34. package/fesm5/unnilouis.org-vs-chipdropdown.js +0 -339
  35. package/fesm5/unnilouis.org-vs-chipdropdown.js.map +0 -1
  36. package/unnilouis.org-vs-chipdropdown.metadata.json +0 -1
@@ -1,339 +0,0 @@
1
- import { __decorate, __values } 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
- var VsChipdropdownService = /** @class */ (function () {
18
- function VsChipdropdownService(http) {
19
- this.http = http;
20
- }
21
- VsChipdropdownService.prototype.postApi = function (Apiurl, json, params) {
22
- if (json === void 0) { json = {}; }
23
- var getToken = localStorage.getItem("sessionData");
24
- var tokenValue = JSON.parse(getToken);
25
- var token = tokenValue.token;
26
- console.log("params", params);
27
- var paradata = '';
28
- if (params !== undefined && params !== null && params !== '') {
29
- paradata = params;
30
- }
31
- var headers = { Authorization: "Token " + token };
32
- return this.http.post(Apiurl + paradata, json, {
33
- headers: headers,
34
- });
35
- };
36
- VsChipdropdownService.prototype.GetApi = function (Apiurl, params) {
37
- if (params === void 0) { params = ''; }
38
- var getToken = localStorage.getItem("sessionData");
39
- var tokenValue = JSON.parse(getToken);
40
- var token = tokenValue.token;
41
- console.log("params", params);
42
- var paradata = '';
43
- if (params !== undefined && params !== null && params !== '') {
44
- paradata = params;
45
- }
46
- var headers = { Authorization: "Token " + token };
47
- return this.http.get(Apiurl + paradata, {
48
- headers: headers,
49
- });
50
- };
51
- VsChipdropdownService.ctorParameters = function () { return [
52
- { type: HttpClient }
53
- ]; };
54
- VsChipdropdownService.ɵprov = ɵɵdefineInjectable({ factory: function VsChipdropdownService_Factory() { return new VsChipdropdownService(ɵɵinject(HttpClient)); }, token: VsChipdropdownService, providedIn: "root" });
55
- VsChipdropdownService = __decorate([
56
- Injectable({
57
- providedIn: 'root'
58
- })
59
- ], VsChipdropdownService);
60
- return VsChipdropdownService;
61
- }());
62
-
63
- var VsChipdropdownComponent = /** @class */ (function () {
64
- function VsChipdropdownComponent() {
65
- }
66
- VsChipdropdownComponent.prototype.ngOnInit = function () {
67
- };
68
- VsChipdropdownComponent = __decorate([
69
- Component({
70
- selector: 'lib-vs-chipdropdown',
71
- template: "\n <p>\n vs-chipdropdown works!\n </p>\n "
72
- })
73
- ], VsChipdropdownComponent);
74
- return VsChipdropdownComponent;
75
- }());
76
-
77
- var VsChipddCmpComponent = /** @class */ (function () {
78
- function VsChipddCmpComponent(service, fb) {
79
- this.service = service;
80
- this.fb = fb;
81
- this.dataEvent = new EventEmitter();
82
- this.separatorsKeysCodes = [ENTER, COMMA];
83
- this.has_next = false;
84
- this.currentpage = 1;
85
- this.Dropdowndata = [];
86
- this.has_previous = false;
87
- this.chipSelectedId = [];
88
- this.chipSelectedObj = [];
89
- }
90
- VsChipddCmpComponent.prototype.ngOnInit = function () {
91
- var e_1, _a;
92
- var _b, _c, _d, _e, _f;
93
- this.DropdownForm = this.fb.group({
94
- value: ''
95
- });
96
- if ((_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.defaultvalue) {
97
- this.DropdownForm.get("value").patchValue((_c = this.InputFields) === null || _c === void 0 ? void 0 : _c.defaultvalue);
98
- this.chipSelectedObj = (_d = this.InputFields) === null || _d === void 0 ? void 0 : _d.defaultvalue;
99
- if (this.chipSelectedObj.length > 0) {
100
- try {
101
- for (var _g = __values(this.chipSelectedObj), _h = _g.next(); !_h.done; _h = _g.next()) {
102
- var foundemp = _h.value;
103
- if ((_e = this.InputFields) === null || _e === void 0 ? void 0 : _e.Outputkey) {
104
- this.chipSelectedId.push(foundemp[(_f = this.InputFields) === null || _f === void 0 ? void 0 : _f.Outputkey]);
105
- }
106
- else {
107
- this.chipSelectedId.push(foundemp.id);
108
- }
109
- }
110
- }
111
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
112
- finally {
113
- try {
114
- if (_h && !_h.done && (_a = _g.return)) _a.call(_g);
115
- }
116
- finally { if (e_1) throw e_1.error; }
117
- }
118
- this.selected();
119
- }
120
- }
121
- this.getdropdown('');
122
- };
123
- VsChipddCmpComponent.prototype.ngOnChanges = function (changes) {
124
- console.log("changes.ResetForm", changes.ResetForm, changes.ResetForm.currentValue, changes.ResetForm && changes.ResetForm.currentValue);
125
- if (changes.InputFields && changes.InputFields.currentValue) {
126
- console.log("Summary Log Changes");
127
- this.currentpage = 1;
128
- this.getdropdown('');
129
- }
130
- if (changes.ResetForm && changes.ResetForm.currentValue) {
131
- console.log("hitted");
132
- this.DropdownForm.reset();
133
- this.currentpage = 1;
134
- this.getdropdown('');
135
- this.chipSelectedId = [];
136
- this.chipSelectedObj = [];
137
- this.dataEvent.emit([]);
138
- }
139
- };
140
- // public displaydevelopclient(clt: any, key: string) {
141
- // return key[clt];
142
- // }
143
- VsChipddCmpComponent.prototype.autocompleteAppScroll = function () {
144
- var _this = this;
145
- setTimeout(function () {
146
- if (_this.matAutocompleteApp &&
147
- _this.autocompleteTrigger &&
148
- _this.matAutocompleteApp.panel) {
149
- fromEvent(_this.matAutocompleteApp.panel.nativeElement, 'scroll')
150
- .pipe(map(function (x) { return _this.matAutocompleteApp.panel.nativeElement.scrollTop; }), takeUntil(_this.autocompleteTrigger.panelClosingActions))
151
- .subscribe(function (x) {
152
- var scrollTop = _this.matAutocompleteApp.panel.nativeElement.scrollTop;
153
- var scrollHeight = _this.matAutocompleteApp.panel.nativeElement.scrollHeight;
154
- var elementHeight = _this.matAutocompleteApp.panel.nativeElement.clientHeight;
155
- var atBottom = scrollHeight - 1 <= scrollTop + elementHeight;
156
- if (atBottom) {
157
- if (_this.has_next === true) {
158
- var value = _this.DropInput.nativeElement.value;
159
- var params = _this.searchparams(value);
160
- _this.currentpage = _this.currentpage + 1;
161
- if (_this.currentpage > 1) {
162
- _this.service.GetApi(_this.InputFields.url + "?page=" + _this.currentpage, params)
163
- .subscribe(function (results) {
164
- var datas = results["data"];
165
- var datapagination = results["pagination"];
166
- _this.Dropdowndata = _this.Dropdowndata.concat(datas);
167
- console.log("this.Dropdowndata", _this.Dropdowndata);
168
- if (_this.Dropdowndata.length >= 0) {
169
- _this.has_next = datapagination.has_next;
170
- _this.has_previous = datapagination.has_previous;
171
- _this.currentpage = datapagination.index;
172
- }
173
- });
174
- }
175
- }
176
- }
177
- });
178
- }
179
- });
180
- };
181
- VsChipddCmpComponent.prototype.dropdownsearch = function () {
182
- var _this = this;
183
- this.DropdownForm.get("value").valueChanges.pipe(debounceTime(100), distinctUntilChanged(), tap(function () {
184
- _this.DrodownLoading = true;
185
- console.log("inside tap");
186
- }), switchMap(function (value) {
187
- var params = _this.searchparams(value);
188
- _this.currentpage = 1;
189
- return _this.service.GetApi(_this.InputFields.url + "?page=" + _this.currentpage, params).pipe(finalize(function () {
190
- _this.DrodownLoading = false;
191
- }));
192
- })).subscribe(function (results) {
193
- var datas = results["data"];
194
- _this.Dropdowndata = datas;
195
- });
196
- };
197
- VsChipddCmpComponent.prototype.getdropdown = function (value) {
198
- var _this = this;
199
- var params = this.searchparams(value);
200
- this.service.GetApi(this.InputFields.url + "?page=" + this.currentpage, params)
201
- .subscribe(function (results) {
202
- var datas = results["data"];
203
- var datapagination = results["pagination"];
204
- _this.Dropdowndata = datas;
205
- if (_this.Dropdowndata.length >= 0) {
206
- _this.has_next = datapagination.has_next;
207
- _this.has_previous = datapagination.has_previous;
208
- _this.currentpage = datapagination.index;
209
- }
210
- });
211
- };
212
- VsChipddCmpComponent.prototype.selected = function () {
213
- var _a, _b;
214
- // let data = this.DropdownForm.value.value
215
- if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.wholedata) {
216
- this.dataEvent.emit(this.chipSelectedObj);
217
- }
218
- else {
219
- if ((_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.Outputkey) {
220
- this.dataEvent.emit(this.chipSelectedId);
221
- }
222
- else {
223
- this.dataEvent.emit(this.chipSelectedObj);
224
- }
225
- }
226
- };
227
- VsChipddCmpComponent.prototype.searchparams = function (value) {
228
- var params = '';
229
- if (this.InputFields.params) {
230
- params = this.InputFields.params;
231
- }
232
- var inpValue = value;
233
- inpValue ? params += '&' + this.InputFields.searchkey + '=' + inpValue : '';
234
- return params;
235
- };
236
- VsChipddCmpComponent.prototype.removechip = function (obj) {
237
- var index = this.chipSelectedObj.indexOf(obj);
238
- if (index >= 0) {
239
- this.chipSelectedObj.splice(index, 1);
240
- console.log(this.chipSelectedObj);
241
- this.chipSelectedId.splice(index, 1);
242
- console.log(this.chipSelectedId);
243
- this.DropInput.nativeElement.value = '';
244
- this.selected();
245
- }
246
- };
247
- VsChipddCmpComponent.prototype.venSelected = function (event) {
248
- this.DropInput.nativeElement.value = '';
249
- console.log('event.option.value', event.option.value);
250
- this.selectvenByName(event.option.value[this.comparekey(event.option.value)]);
251
- console.log('chipSelectedvenid', this.chipSelectedObj);
252
- };
253
- VsChipddCmpComponent.prototype.selectvenByName = function (ven) {
254
- var _this = this;
255
- var _a, _b;
256
- var foundemp1 = this.chipSelectedObj.filter(function (e) { return e[_this.comparekey(e)] == ven; });
257
- if (foundemp1.length) {
258
- return;
259
- }
260
- var foundemp = this.Dropdowndata.filter(function (e) { return e[_this.comparekey(e)] == ven; });
261
- if (foundemp.length) {
262
- this.chipSelectedObj.push(foundemp[0]);
263
- if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.Outputkey) {
264
- this.chipSelectedId.push(foundemp[0][(_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.Outputkey]);
265
- }
266
- else {
267
- this.chipSelectedId.push(foundemp[0].id);
268
- }
269
- }
270
- };
271
- VsChipddCmpComponent.prototype.comparekey = function (e) {
272
- var _a, _b;
273
- if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.comparekey) {
274
- return (_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.comparekey;
275
- }
276
- else {
277
- if (e === null || e === void 0 ? void 0 : e.id) {
278
- return "id";
279
- }
280
- else {
281
- return this.InputFields.displaykey;
282
- }
283
- }
284
- };
285
- VsChipddCmpComponent.ctorParameters = function () { return [
286
- { type: VsChipdropdownService },
287
- { type: FormBuilder }
288
- ]; };
289
- __decorate([
290
- Input()
291
- ], VsChipddCmpComponent.prototype, "InputFields", void 0);
292
- __decorate([
293
- Input()
294
- ], VsChipddCmpComponent.prototype, "ResetForm", void 0);
295
- __decorate([
296
- ViewChild(MatAutocompleteTrigger)
297
- ], VsChipddCmpComponent.prototype, "autocompleteTrigger", void 0);
298
- __decorate([
299
- ViewChild('scrolll')
300
- ], VsChipddCmpComponent.prototype, "matAutocompleteApp", void 0);
301
- __decorate([
302
- Output()
303
- ], VsChipddCmpComponent.prototype, "dataEvent", void 0);
304
- __decorate([
305
- ViewChild('DropInput')
306
- ], VsChipddCmpComponent.prototype, "DropInput", void 0);
307
- VsChipddCmpComponent = __decorate([
308
- Component({
309
- selector: 'lib-vs-chipdd-cmp',
310
- template: "<div>\n <form [formGroup]=\"DropdownForm\">\n <mat-form-field class=\"mat-chipScroll\"\n appearance=\"outline\">\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>",
311
- styles: [".mat-chipScroll{max-width:420px;width:100%}.mat-chipEx{text-align:left}.chip-container{overflow-y:scroll;max-height:80px}.chip-container::-webkit-scrollbar{width:6px;height:6px}.chip-container::-webkit-scrollbar-track{background:0 0}.chip-container::-webkit-scrollbar-thumb{border-radius:20px;background:#c3c3c3}.chip-container::-webkit-scrollbar-thumb:hover{background:#a6a6a6}"]
312
- })
313
- ], VsChipddCmpComponent);
314
- return VsChipddCmpComponent;
315
- }());
316
-
317
- var VsChipdropdownModule = /** @class */ (function () {
318
- function VsChipdropdownModule() {
319
- }
320
- VsChipdropdownModule = __decorate([
321
- NgModule({
322
- declarations: [VsChipdropdownComponent, VsChipddCmpComponent],
323
- imports: [MatFormFieldModule, MatInputModule, MatSelectModule, MatAutocompleteModule, FormsModule, ReactiveFormsModule, CommonModule, MatGridListModule, MatChipsModule, MatIconModule],
324
- exports: [VsChipddCmpComponent]
325
- })
326
- ], VsChipdropdownModule);
327
- return VsChipdropdownModule;
328
- }());
329
-
330
- /*
331
- * Public API Surface of vs-chipdropdown
332
- */
333
-
334
- /**
335
- * Generated bundle index. Do not edit.
336
- */
337
-
338
- export { VsChipddCmpComponent, VsChipdropdownComponent, VsChipdropdownModule, VsChipdropdownService };
339
- //# sourceMappingURL=unnilouis.org-vs-chipdropdown.js.map
@@ -1 +0,0 @@
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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bolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":9,"character":28}]}],"postApi":[{"__symbolic":"method"}],"GetApi":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"VsChipdropdownComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lib-vs-chipdropdown","template":"\n <p>\n vs-chipdropdown works!\n </p>\n ","styles":[]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"VsChipdropdownModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"VsChipdropdownComponent"},{"__symbolic":"reference","name":"VsChipddCmpComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/material/form-field","name":"MatFormFieldModule","line":17,"character":12},{"__symbolic":"reference","module":"@angular/material/input","name":"MatInputModule","line":17,"character":31},{"__symbolic":"reference","module":"@angular/material/select","name":"MatSelectModule","line":17,"character":46},{"__symbolic":"reference","module":"@angular/material/autocomplete","name":"MatAutocompleteModule","line":17,"character":62},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":17,"character":84},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":17,"character":96},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":17,"character":116},{"__symbolic":"reference","module":"@angular/material/grid-list","name":"MatGridListModule","line":17,"character":129},{"__symbolic":"reference","module":"@angular/material/chips","name":"MatChipsModule","line":17,"character":147},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":17,"character":162}],"exports":[{"__symbolic":"reference","name":"VsChipddCmpComponent"}]}]}],"members":{}},"VsChipddCmpComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":16,"character":1},"arguments":[{"selector":"lib-vs-chipdd-cmp","template":"<div>\n <form [formGroup]=\"DropdownForm\">\n <mat-form-field class=\"mat-chipScroll\"\n appearance=\"outline\">\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>","styles":[".mat-chipScroll{max-width:420px;width:100%}.mat-chipEx{text-align:left}.chip-container{overflow-y:scroll;max-height:80px}.chip-container::-webkit-scrollbar{width:6px;height:6px}.chip-container::-webkit-scrollbar-track{background:0 0}.chip-container::-webkit-scrollbar-thumb{border-radius:20px;background:#c3c3c3}.chip-container::-webkit-scrollbar-thumb:hover{background:#a6a6a6}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"VsChipdropdownService"},{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":23,"character":66}]}],"InputFields":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"ResetForm":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"autocompleteTrigger":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":27,"character":3},"arguments":[{"__symbolic":"reference","module":"@angular/material/autocomplete","name":"MatAutocompleteTrigger","line":27,"character":13}]}]}],"matAutocompleteApp":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["scrolll"]}]}],"dataEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":29,"character":3}}]}],"DropInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":30,"character":3},"arguments":["DropInput"]}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"autocompleteAppScroll":[{"__symbolic":"method"}],"dropdownsearch":[{"__symbolic":"method"}],"getdropdown":[{"__symbolic":"method"}],"selected":[{"__symbolic":"method"}],"searchparams":[{"__symbolic":"method"}],"removechip":[{"__symbolic":"method"}],"venSelected":[{"__symbolic":"method"}],"selectvenByName":[{"__symbolic":"method"}],"comparekey":[{"__symbolic":"method"}]}}},"origins":{"VsChipdropdownService":"./lib/vs-chipdropdown.service","VsChipdropdownComponent":"./lib/vs-chipdropdown.component","VsChipdropdownModule":"./lib/vs-chipdropdown.module","VsChipddCmpComponent":"./lib/vs-chipdd-cmp/vs-chipdd-cmp.component"},"importAs":"@unnilouis.org/vs-chipdropdown"}