@unnilouis.org/vs-chipdropdown 9.0.9 → 16.2.0
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/esm2022/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.mjs +243 -0
- package/esm2022/lib/vs-chipdropdown.component.mjs +19 -0
- package/esm2022/lib/vs-chipdropdown.module.mjs +61 -0
- package/esm2022/lib/vs-chipdropdown.service.mjs +45 -0
- package/esm2022/public-api.mjs +8 -0
- package/esm2022/unnilouis.org-vs-chipdropdown.mjs +5 -0
- package/fesm2022/unnilouis.org-vs-chipdropdown.mjs +368 -0
- package/fesm2022/unnilouis.org-vs-chipdropdown.mjs.map +1 -0
- package/{unnilouis.org-vs-chipdropdown.d.ts → index.d.ts} +1 -0
- package/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.d.ts +6 -10
- package/lib/vs-chipdropdown.component.d.ts +4 -4
- package/lib/vs-chipdropdown.module.d.ts +18 -1
- package/lib/vs-chipdropdown.service.d.ts +3 -0
- package/package.json +21 -13
- package/bundles/unnilouis.org-vs-chipdropdown.umd.js +0 -767
- package/bundles/unnilouis.org-vs-chipdropdown.umd.js.map +0 -1
- package/bundles/unnilouis.org-vs-chipdropdown.umd.min.js +0 -16
- package/bundles/unnilouis.org-vs-chipdropdown.umd.min.js.map +0 -1
- package/esm2015/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.js +0 -438
- package/esm2015/lib/vs-chipdropdown.component.js +0 -19
- package/esm2015/lib/vs-chipdropdown.module.js +0 -41
- package/esm2015/lib/vs-chipdropdown.service.js +0 -49
- package/esm2015/public-api.js +0 -8
- package/esm2015/unnilouis.org-vs-chipdropdown.js +0 -5
- package/esm5/lib/vs-chipdd-cmp/vs-chipdd-cmp.component.js +0 -454
- package/esm5/lib/vs-chipdropdown.component.js +0 -17
- package/esm5/lib/vs-chipdropdown.module.js +0 -44
- package/esm5/lib/vs-chipdropdown.service.js +0 -52
- package/esm5/public-api.js +0 -8
- package/esm5/unnilouis.org-vs-chipdropdown.js +0 -5
- package/fesm2015/unnilouis.org-vs-chipdropdown.js +0 -540
- package/fesm2015/unnilouis.org-vs-chipdropdown.js.map +0 -1
- package/fesm5/unnilouis.org-vs-chipdropdown.js +0 -560
- package/fesm5/unnilouis.org-vs-chipdropdown.js.map +0 -1
- package/unnilouis.org-vs-chipdropdown.metadata.json +0 -1
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common/http";
|
|
6
|
-
var VsChipdropdownService = /** @class */ (function () {
|
|
7
|
-
function VsChipdropdownService(http) {
|
|
8
|
-
this.http = http;
|
|
9
|
-
}
|
|
10
|
-
VsChipdropdownService.prototype.postApi = function (Apiurl, json, params) {
|
|
11
|
-
if (json === void 0) { json = {}; }
|
|
12
|
-
var getToken = localStorage.getItem("sessionData");
|
|
13
|
-
var tokenValue = JSON.parse(getToken);
|
|
14
|
-
var token = tokenValue.token;
|
|
15
|
-
console.log("params", params);
|
|
16
|
-
var paradata = '';
|
|
17
|
-
if (params !== undefined && params !== null && params !== '') {
|
|
18
|
-
paradata = params;
|
|
19
|
-
}
|
|
20
|
-
var headers = { Authorization: "Token " + token };
|
|
21
|
-
return this.http.post(Apiurl + paradata, json, {
|
|
22
|
-
headers: headers,
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
VsChipdropdownService.prototype.GetApi = function (Apiurl, params) {
|
|
26
|
-
if (params === void 0) { params = ''; }
|
|
27
|
-
var getToken = localStorage.getItem("sessionData");
|
|
28
|
-
var tokenValue = JSON.parse(getToken);
|
|
29
|
-
var token = tokenValue.token;
|
|
30
|
-
console.log("params", params);
|
|
31
|
-
var paradata = '';
|
|
32
|
-
if (params !== undefined && params !== null && params !== '') {
|
|
33
|
-
paradata = params;
|
|
34
|
-
}
|
|
35
|
-
var headers = { Authorization: "Token " + token };
|
|
36
|
-
return this.http.get(Apiurl + paradata, {
|
|
37
|
-
headers: headers,
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
VsChipdropdownService.ctorParameters = function () { return [
|
|
41
|
-
{ type: HttpClient }
|
|
42
|
-
]; };
|
|
43
|
-
VsChipdropdownService.ɵprov = i0.ɵɵdefineInjectable({ factory: function VsChipdropdownService_Factory() { return new VsChipdropdownService(i0.ɵɵinject(i1.HttpClient)); }, token: VsChipdropdownService, providedIn: "root" });
|
|
44
|
-
VsChipdropdownService = __decorate([
|
|
45
|
-
Injectable({
|
|
46
|
-
providedIn: 'root'
|
|
47
|
-
})
|
|
48
|
-
], VsChipdropdownService);
|
|
49
|
-
return VsChipdropdownService;
|
|
50
|
-
}());
|
|
51
|
-
export { VsChipdropdownService };
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidnMtY2hpcGRyb3Bkb3duLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdW5uaWxvdWlzLm9yZy92cy1jaGlwZHJvcGRvd24vIiwic291cmNlcyI6WyJsaWIvdnMtY2hpcGRyb3Bkb3duLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDOzs7QUFLbEQ7SUFFRSwrQkFBb0IsSUFBZ0I7UUFBaEIsU0FBSSxHQUFKLElBQUksQ0FBWTtJQUFJLENBQUM7SUFDekMsdUNBQU8sR0FBUCxVQUFRLE1BQU0sRUFBQyxJQUFPLEVBQUMsTUFBTTtRQUFkLHFCQUFBLEVBQUEsU0FBTztRQUNwQixJQUFNLFFBQVEsR0FBRyxZQU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4gXCIgKyB0b2tlbiB9O1xyXG4gICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQ8YW55PihBcGl1cmwrcGFyYWRhdGEse1xyXG4gICAgICBoZWFkZXJzOiBoZWFkZXJzLFxyXG4gICAgfSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
package/esm5/public-api.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of vs-chipdropdown
|
|
3
|
-
*/
|
|
4
|
-
export * from './lib/vs-chipdropdown.service';
|
|
5
|
-
export * from './lib/vs-chipdropdown.component';
|
|
6
|
-
export * from './lib/vs-chipdropdown.module';
|
|
7
|
-
export * from './lib/vs-chipdd-cmp/vs-chipdd-cmp.component';
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B1bm5pbG91aXMub3JnL3ZzLWNoaXBkcm9wZG93bi8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLCtCQUErQixDQUFDO0FBQzlDLGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYyw4QkFBOEIsQ0FBQztBQUM3QyxjQUFjLDZDQUE2QyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHZzLWNoaXBkcm9wZG93blxyXG4gKi9cclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3ZzLWNoaXBkcm9wZG93bi5zZXJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvdnMtY2hpcGRyb3Bkb3duLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3ZzLWNoaXBkcm9wZG93bi5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi92cy1jaGlwZGQtY21wL3ZzLWNoaXBkZC1jbXAuY29tcG9uZW50J1xyXG4iXX0=
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5uaWxvdWlzLm9yZy12cy1jaGlwZHJvcGRvd24uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdW5uaWxvdWlzLm9yZy92cy1jaGlwZHJvcGRvd24vIiwic291cmNlcyI6WyJ1bm5pbG91aXMub3JnLXZzLWNoaXBkcm9wZG93bi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
|
@@ -1,540 +0,0 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
2
|
-
import { ɵɵdefineInjectable, ɵɵinject, Injectable, Component, EventEmitter, Input, ViewChild, Output, NgModule } from '@angular/core';
|
|
3
|
-
import { HttpClient, HttpClientModule } from '@angular/common/http';
|
|
4
|
-
import { MatAutocompleteTrigger, MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
5
|
-
import { map, takeUntil, debounceTime, distinctUntilChanged, switchMap, finalize } from 'rxjs/operators';
|
|
6
|
-
import { fromEvent } from 'rxjs';
|
|
7
|
-
import { FormControl, FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
8
|
-
import { ENTER, COMMA } from '@angular/cdk/keycodes';
|
|
9
|
-
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
10
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
11
|
-
import { MatInputModule } from '@angular/material/input';
|
|
12
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
13
|
-
import { CommonModule } from '@angular/common';
|
|
14
|
-
import { MatGridListModule } from '@angular/material/grid-list';
|
|
15
|
-
import { MatChipsModule } from '@angular/material/chips';
|
|
16
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
-
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
18
|
-
|
|
19
|
-
let VsChipdropdownService = class VsChipdropdownService {
|
|
20
|
-
constructor(http) {
|
|
21
|
-
this.http = http;
|
|
22
|
-
}
|
|
23
|
-
postApi(Apiurl, json = {}, params) {
|
|
24
|
-
const getToken = localStorage.getItem("sessionData");
|
|
25
|
-
let tokenValue = JSON.parse(getToken);
|
|
26
|
-
let token = tokenValue.token;
|
|
27
|
-
console.log("params", params);
|
|
28
|
-
let paradata = '';
|
|
29
|
-
if (params !== undefined && params !== null && params !== '') {
|
|
30
|
-
paradata = params;
|
|
31
|
-
}
|
|
32
|
-
const headers = { Authorization: "Token " + token };
|
|
33
|
-
return this.http.post(Apiurl + paradata, json, {
|
|
34
|
-
headers: headers,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
GetApi(Apiurl, params = '') {
|
|
38
|
-
const getToken = localStorage.getItem("sessionData");
|
|
39
|
-
let tokenValue = JSON.parse(getToken);
|
|
40
|
-
let token = tokenValue.token;
|
|
41
|
-
console.log("params", params);
|
|
42
|
-
let paradata = '';
|
|
43
|
-
if (params !== undefined && params !== null && params !== '') {
|
|
44
|
-
paradata = params;
|
|
45
|
-
}
|
|
46
|
-
const headers = { Authorization: "Token " + token };
|
|
47
|
-
return this.http.get(Apiurl + paradata, {
|
|
48
|
-
headers: headers,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
VsChipdropdownService.ctorParameters = () => [
|
|
53
|
-
{ type: HttpClient }
|
|
54
|
-
];
|
|
55
|
-
VsChipdropdownService.ɵprov = ɵɵdefineInjectable({ factory: function VsChipdropdownService_Factory() { return new VsChipdropdownService(ɵɵinject(HttpClient)); }, token: VsChipdropdownService, providedIn: "root" });
|
|
56
|
-
VsChipdropdownService = __decorate([
|
|
57
|
-
Injectable({
|
|
58
|
-
providedIn: 'root'
|
|
59
|
-
})
|
|
60
|
-
], VsChipdropdownService);
|
|
61
|
-
|
|
62
|
-
let VsChipdropdownComponent = class VsChipdropdownComponent {
|
|
63
|
-
constructor() { }
|
|
64
|
-
ngOnInit() {
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
VsChipdropdownComponent = __decorate([
|
|
68
|
-
Component({
|
|
69
|
-
selector: 'lib-vs-chipdropdown',
|
|
70
|
-
template: `
|
|
71
|
-
<p>
|
|
72
|
-
vs-chipdropdown works!
|
|
73
|
-
</p>
|
|
74
|
-
`
|
|
75
|
-
})
|
|
76
|
-
], VsChipdropdownComponent);
|
|
77
|
-
|
|
78
|
-
let VsChipddCmpComponent = class VsChipddCmpComponent {
|
|
79
|
-
constructor(service, fb) {
|
|
80
|
-
this.service = service;
|
|
81
|
-
this.fb = fb;
|
|
82
|
-
this.Backendapi = true;
|
|
83
|
-
this.dataEvent = new EventEmitter();
|
|
84
|
-
this.separatorsKeysCodes = [ENTER, COMMA];
|
|
85
|
-
this.has_next = false;
|
|
86
|
-
this.currentpage = 1;
|
|
87
|
-
this.Dropdowndata = [];
|
|
88
|
-
this.has_previous = false;
|
|
89
|
-
this.chipSelectedId = [];
|
|
90
|
-
this.chipSelectedObj = [];
|
|
91
|
-
this.isOptionSelected = false;
|
|
92
|
-
this.Outputdata = [];
|
|
93
|
-
this.formkeyarr = [];
|
|
94
|
-
}
|
|
95
|
-
ngOnInit() {
|
|
96
|
-
// if (this.formGroup) {
|
|
97
|
-
// this.DropdownForm = this.formGroup;
|
|
98
|
-
// } else {
|
|
99
|
-
// this.DropdownForm = this.fb.group({
|
|
100
|
-
// value: '',
|
|
101
|
-
// });
|
|
102
|
-
// }
|
|
103
|
-
// this.dupngonit();
|
|
104
|
-
// if (this.InputFields?.defaultvalue) {
|
|
105
|
-
// this.DropdownForm.get("value").patchValue(this.InputFields?.defaultvalue)
|
|
106
|
-
// this.chipSelectedObj = this.InputFields?.defaultvalue
|
|
107
|
-
// if (this.chipSelectedObj.length > 0) {
|
|
108
|
-
// for (let foundemp of this.chipSelectedObj) {
|
|
109
|
-
// if (this.InputFields?.Outputkey) {
|
|
110
|
-
// this.chipSelectedId.push(foundemp[this.InputFields?.Outputkey])
|
|
111
|
-
// }
|
|
112
|
-
// else {
|
|
113
|
-
// this.chipSelectedId.push(foundemp.id)
|
|
114
|
-
// }
|
|
115
|
-
// }
|
|
116
|
-
// this.selected()
|
|
117
|
-
// }
|
|
118
|
-
// }
|
|
119
|
-
// if (this.InputFields?.fronentdata) {
|
|
120
|
-
// this.Dropdowndata = this.InputFields?.data
|
|
121
|
-
// }
|
|
122
|
-
// else {
|
|
123
|
-
// this.getdropdown('')
|
|
124
|
-
// }
|
|
125
|
-
}
|
|
126
|
-
looop() {
|
|
127
|
-
var _a, _b, _c, _d;
|
|
128
|
-
for (let foundemp of this.chipSelectedObj) {
|
|
129
|
-
if (!(foundemp instanceof Number)) {
|
|
130
|
-
if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.Outputkey) {
|
|
131
|
-
this.chipSelectedId.push(foundemp[(_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.Outputkey]);
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
this.chipSelectedId.push(foundemp.id);
|
|
135
|
-
}
|
|
136
|
-
if ((_c = this.InputFields) === null || _c === void 0 ? void 0 : _c.formkey) {
|
|
137
|
-
this.formkeyarr.push(foundemp[(_d = this.InputFields) === null || _d === void 0 ? void 0 : _d.formkey]);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
dupngonit() {
|
|
143
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
144
|
-
if (this.formGroup) {
|
|
145
|
-
this.DropdownForm = this.formGroup;
|
|
146
|
-
if (!this.DropdownForm.contains((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.formcontrolname)) {
|
|
147
|
-
this.DropdownForm.addControl(this.dynamciformcontrolparent(), new FormControl({ value: [], disabled: (_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.disabled }));
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
((_c = this.InputFields) === null || _c === void 0 ? void 0 : _c.disabled) ? this.DropdownForm.get('chipvalue').disable() : '';
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
this.DropdownForm = this.fb.group({
|
|
155
|
-
chipvalue: [], disabled: (_d = this.InputFields) === null || _d === void 0 ? void 0 : _d.disabled
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
console.log('this.DropdownForm', this.DropdownForm.value);
|
|
159
|
-
// this.chipSelectedObj =
|
|
160
|
-
// this.DropdownForm.get(this.dynamciformcontrolparent()).value &&
|
|
161
|
-
// this.DropdownForm.get(this.dynamciformcontrolparent()).value.length !== 0
|
|
162
|
-
// ? this.DropdownForm.get(this.dynamciformcontrolparent()).value
|
|
163
|
-
// : [];
|
|
164
|
-
// console.log('this.chipSelectedObj', this.chipSelectedObj);
|
|
165
|
-
if ((_e = this.InputFields) === null || _e === void 0 ? void 0 : _e.defaultvalue) {
|
|
166
|
-
// this.DropdownForm.get(this.dynamciformcontrolparent()).patchValue(
|
|
167
|
-
// this.InputFields?.formkey
|
|
168
|
-
// ? this.InputFields?.defaultvalue[this.InputFields?.formkey]
|
|
169
|
-
// : this.InputFields?.defaultvalue
|
|
170
|
-
// );
|
|
171
|
-
// this.DropdownForm.get(this.dynamciformcontrolparent()).patchValue(this.InputFields?.defaultvalue);
|
|
172
|
-
this.chipSelectedObj = (_f = this.InputFields) === null || _f === void 0 ? void 0 : _f.defaultvalue;
|
|
173
|
-
this.chipSelectedId = [];
|
|
174
|
-
this.formkeyarr = [];
|
|
175
|
-
if (this.chipSelectedObj.length > 0) {
|
|
176
|
-
this.looop();
|
|
177
|
-
this.selected();
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
if (this.DropdownForm.get(this.dynamciformcontrolparent()).value &&
|
|
181
|
-
this.DropdownForm.get(this.dynamciformcontrolparent()).value.length !== 0) {
|
|
182
|
-
this.chipSelectedObj = this.DropdownForm.get(this.dynamciformcontrolparent()).value;
|
|
183
|
-
console.log('test', this.chipSelectedObj = this.DropdownForm.get(this.dynamciformcontrolparent()).value);
|
|
184
|
-
this.chipSelectedId = [];
|
|
185
|
-
this.formkeyarr = [];
|
|
186
|
-
this.looop();
|
|
187
|
-
this.selected();
|
|
188
|
-
}
|
|
189
|
-
if ((_g = this.InputFields) === null || _g === void 0 ? void 0 : _g.fronentdata) {
|
|
190
|
-
this.Dropdowndata = (_h = this.InputFields) === null || _h === void 0 ? void 0 : _h.data;
|
|
191
|
-
}
|
|
192
|
-
this.dropdownsearch();
|
|
193
|
-
// else {
|
|
194
|
-
// this.getdropdown('')
|
|
195
|
-
// }
|
|
196
|
-
}
|
|
197
|
-
ngOnChanges(changes) {
|
|
198
|
-
if (changes.InputFields && changes.InputFields.currentValue) {
|
|
199
|
-
console.log('Summary Log Changes');
|
|
200
|
-
this.currentpage = 1;
|
|
201
|
-
this.dupngonit();
|
|
202
|
-
}
|
|
203
|
-
if (changes.ResetForm && changes.ResetForm.currentValue) {
|
|
204
|
-
console.log('hitted');
|
|
205
|
-
// this.DropdownForm.reset();
|
|
206
|
-
this.currentpage = 1;
|
|
207
|
-
this.dupngonit();
|
|
208
|
-
this.chipSelectedId = [];
|
|
209
|
-
this.formkeyarr = [];
|
|
210
|
-
this.chipSelectedObj = [];
|
|
211
|
-
this.dataEvent.emit([]);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
// public displaydevelopclient(clt: any, key: string) {
|
|
215
|
-
// return key[clt];
|
|
216
|
-
// }
|
|
217
|
-
autocompleteAppScroll() {
|
|
218
|
-
var _a;
|
|
219
|
-
if (!((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.fronentdata)) {
|
|
220
|
-
setTimeout(() => {
|
|
221
|
-
if (this.matAutocompleteApp &&
|
|
222
|
-
this.autocompleteTrigger &&
|
|
223
|
-
this.matAutocompleteApp.panel) {
|
|
224
|
-
fromEvent(this.matAutocompleteApp.panel.nativeElement, 'scroll')
|
|
225
|
-
.pipe(map((x) => this.matAutocompleteApp.panel.nativeElement.scrollTop), takeUntil(this.autocompleteTrigger.panelClosingActions))
|
|
226
|
-
.subscribe((x) => {
|
|
227
|
-
const scrollTop = this.matAutocompleteApp.panel.nativeElement.scrollTop;
|
|
228
|
-
const scrollHeight = this.matAutocompleteApp.panel.nativeElement.scrollHeight;
|
|
229
|
-
const elementHeight = this.matAutocompleteApp.panel.nativeElement.clientHeight;
|
|
230
|
-
const atBottom = scrollHeight - 1 <= scrollTop + elementHeight;
|
|
231
|
-
if (atBottom) {
|
|
232
|
-
if (this.has_next === true) {
|
|
233
|
-
let value = this.DropInput.nativeElement.value;
|
|
234
|
-
let params = this.searchparams(value);
|
|
235
|
-
this.currentpage = this.currentpage + 1;
|
|
236
|
-
if (this.currentpage > 1) {
|
|
237
|
-
this.service
|
|
238
|
-
.GetApi(this.InputFields.url + '?page=' + this.currentpage, params)
|
|
239
|
-
.subscribe((results) => {
|
|
240
|
-
let datas = results['data'];
|
|
241
|
-
let datapagination = results['pagination'];
|
|
242
|
-
this.Dropdowndata = this.Dropdowndata.concat(datas);
|
|
243
|
-
console.log('this.Dropdowndata', this.Dropdowndata);
|
|
244
|
-
if (this.Dropdowndata.length >= 0) {
|
|
245
|
-
this.has_next = datapagination.has_next;
|
|
246
|
-
this.has_previous = datapagination.has_previous;
|
|
247
|
-
this.currentpage = datapagination.index;
|
|
248
|
-
}
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
dropdownsearch() {
|
|
259
|
-
var _a, _b;
|
|
260
|
-
const controlName = this.dynamciformcontrolparent();
|
|
261
|
-
const control = this.DropdownForm.get(controlName);
|
|
262
|
-
if (control) {
|
|
263
|
-
if (!((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.fronentdata)) {
|
|
264
|
-
if (!((_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.url)) {
|
|
265
|
-
return false;
|
|
266
|
-
}
|
|
267
|
-
this.DropdownForm.get(this.dynamciformcontrolparent())
|
|
268
|
-
.valueChanges.pipe(debounceTime(300), distinctUntilChanged(),
|
|
269
|
-
// tap(() => {
|
|
270
|
-
// this.DrodownLoading = true;
|
|
271
|
-
// console.log('inside tap');
|
|
272
|
-
// }),
|
|
273
|
-
switchMap((value) => {
|
|
274
|
-
if (this.isOptionSelected) {
|
|
275
|
-
this.isOptionSelected = false;
|
|
276
|
-
return [];
|
|
277
|
-
}
|
|
278
|
-
let params = this.searchparams(value);
|
|
279
|
-
this.currentpage = 1;
|
|
280
|
-
console.log("hiteeeedddddddddddddd>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
|
|
281
|
-
return this.service
|
|
282
|
-
.GetApi(this.InputFields.url + '?page=' + this.currentpage, params)
|
|
283
|
-
.pipe(finalize(() => {
|
|
284
|
-
this.DrodownLoading = false;
|
|
285
|
-
}));
|
|
286
|
-
}))
|
|
287
|
-
.subscribe((results) => {
|
|
288
|
-
this.dataEvent.emit('');
|
|
289
|
-
let datas = results['data'];
|
|
290
|
-
this.Dropdowndata = datas;
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
// this.Dropdowndata = this.InputFields?.data
|
|
295
|
-
this.DropdownForm.get(this.dynamciformcontrolparent()).valueChanges.subscribe((value) => {
|
|
296
|
-
var _a;
|
|
297
|
-
this.Dropdowndata = (_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.data.filter((item) => { var _a, _b; return (_b = item[(_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.displaykey]) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(value === null || value === void 0 ? void 0 : value.toLowerCase()); });
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
// if (control && !this.InputFields?.fronentdata) {
|
|
302
|
-
// this.DropdownForm.get(this.dynamciformcontrolparent())
|
|
303
|
-
// .valueChanges.pipe(
|
|
304
|
-
// debounceTime(200),
|
|
305
|
-
// distinctUntilChanged(),
|
|
306
|
-
// tap(() => {
|
|
307
|
-
// this.DrodownLoading = true;
|
|
308
|
-
// console.log('inside tap');
|
|
309
|
-
// }),
|
|
310
|
-
// switchMap((value) => {
|
|
311
|
-
// let params = this.searchparams(value);
|
|
312
|
-
// this.currentpage = 1;
|
|
313
|
-
// return this.service
|
|
314
|
-
// .GetApi(
|
|
315
|
-
// this.InputFields.url + '?page=' + this.currentpage,
|
|
316
|
-
// params
|
|
317
|
-
// )
|
|
318
|
-
// .pipe(
|
|
319
|
-
// finalize(() => {
|
|
320
|
-
// this.DrodownLoading = false;
|
|
321
|
-
// })
|
|
322
|
-
// );
|
|
323
|
-
// })
|
|
324
|
-
// )
|
|
325
|
-
// .subscribe((results: any[]) => {
|
|
326
|
-
// let datas = results['data'];
|
|
327
|
-
// this.Dropdowndata = datas;
|
|
328
|
-
// });
|
|
329
|
-
// }
|
|
330
|
-
}
|
|
331
|
-
getdropdown(value) {
|
|
332
|
-
this.currentpage = 1;
|
|
333
|
-
if (this.InputFields.url) {
|
|
334
|
-
let params = this.searchparams(value);
|
|
335
|
-
this.service
|
|
336
|
-
.GetApi(this.InputFields.url + '?page=' + this.currentpage, params)
|
|
337
|
-
.subscribe((results) => {
|
|
338
|
-
let datas = results['data'];
|
|
339
|
-
let datapagination = results['pagination'];
|
|
340
|
-
this.Dropdowndata = datas;
|
|
341
|
-
setTimeout(() => {
|
|
342
|
-
this.trigger.openPanel();
|
|
343
|
-
}, 0);
|
|
344
|
-
if (this.Dropdowndata.length >= 0) {
|
|
345
|
-
this.has_next = datapagination.has_next;
|
|
346
|
-
this.has_previous = datapagination.has_previous;
|
|
347
|
-
this.currentpage = datapagination.index;
|
|
348
|
-
}
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
dynamciformcontrolparent() {
|
|
353
|
-
var _a, _b;
|
|
354
|
-
return ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.formcontrolname) && this.formGroup
|
|
355
|
-
? (_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.formcontrolname : 'chipvalue';
|
|
356
|
-
}
|
|
357
|
-
selected() {
|
|
358
|
-
var _a, _b;
|
|
359
|
-
this.Outputdata = this.chipSelectedObj;
|
|
360
|
-
if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.Outputkey) {
|
|
361
|
-
this.Outputdata = this.chipSelectedId;
|
|
362
|
-
}
|
|
363
|
-
if (this.formGroup && ((_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.formcontrolname)) {
|
|
364
|
-
this.DropdownForm.get(this.dynamciformcontrolparent()).patchValue(this.formkeyarr);
|
|
365
|
-
}
|
|
366
|
-
console.log(this.formkeyarr);
|
|
367
|
-
console.log('this.DropdownForm.get', this.DropdownForm.value);
|
|
368
|
-
this.dataEvent.emit(this.Outputdata);
|
|
369
|
-
// let data = this.DropdownForm.value.value
|
|
370
|
-
// if (this.InputFields?.wholedata) {
|
|
371
|
-
// this.dataEvent.emit(this.chipSelectedObj);
|
|
372
|
-
// if (this.InputFields?.formgroup && this.InputFields?.formcontrolname) {
|
|
373
|
-
// this.InputFields?.formgroup
|
|
374
|
-
// .get(this.InputFields?.formcontrolname)
|
|
375
|
-
// .patchValue(this.chipSelectedObj);
|
|
376
|
-
// }
|
|
377
|
-
// }
|
|
378
|
-
// else {
|
|
379
|
-
// if (this.InputFields?.Outputkey) {
|
|
380
|
-
// this.dataEvent.emit(this.chipSelectedId);
|
|
381
|
-
// if (this.InputFields?.formgroup && this.InputFields?.formcontrolname) {
|
|
382
|
-
// this.InputFields?.formgroup
|
|
383
|
-
// .get(this.InputFields?.formcontrolname)
|
|
384
|
-
// .patchValue(this.chipSelectedId);
|
|
385
|
-
// }
|
|
386
|
-
// }
|
|
387
|
-
// else {
|
|
388
|
-
// this.dataEvent.emit(this.chipSelectedObj);
|
|
389
|
-
// if (this.InputFields?.formgroup && this.InputFields?.formcontrolname) {
|
|
390
|
-
// this.InputFields?.formgroup
|
|
391
|
-
// .get(this.InputFields?.formcontrolname)
|
|
392
|
-
// .patchValue(this.chipSelectedObj);
|
|
393
|
-
// }
|
|
394
|
-
// }
|
|
395
|
-
// }
|
|
396
|
-
}
|
|
397
|
-
searchparams(value) {
|
|
398
|
-
let params = '';
|
|
399
|
-
if (this.InputFields.params) {
|
|
400
|
-
params = this.InputFields.params;
|
|
401
|
-
}
|
|
402
|
-
let inpValue = value;
|
|
403
|
-
inpValue
|
|
404
|
-
? (params += '&' + this.InputFields.searchkey + '=' + inpValue)
|
|
405
|
-
: '';
|
|
406
|
-
return params;
|
|
407
|
-
}
|
|
408
|
-
removechip(obj) {
|
|
409
|
-
const index = this.chipSelectedObj.indexOf(obj);
|
|
410
|
-
if (index >= 0) {
|
|
411
|
-
this.chipSelectedObj.splice(index, 1);
|
|
412
|
-
console.log(this.chipSelectedObj);
|
|
413
|
-
this.chipSelectedId.splice(index, 1);
|
|
414
|
-
console.log(this.chipSelectedId);
|
|
415
|
-
this.formkeyarr.splice(index, 1);
|
|
416
|
-
console.log('this.formkeyarr', this.formkeyarr);
|
|
417
|
-
this.DropInput.nativeElement.value = '';
|
|
418
|
-
this.selected();
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
venSelected(datas) {
|
|
422
|
-
let data = !datas && datas === '' ? datas : datas.option.value;
|
|
423
|
-
this.isOptionSelected = true;
|
|
424
|
-
this.DropInput.nativeElement.value = '';
|
|
425
|
-
console.log('event.option.value', data);
|
|
426
|
-
this.selectvenByName(data[this.comparekey(data)]);
|
|
427
|
-
console.log('chipSelectedvenid', this.chipSelectedObj);
|
|
428
|
-
}
|
|
429
|
-
selectvenByName(ven) {
|
|
430
|
-
var _a, _b, _c, _d;
|
|
431
|
-
let foundemp1 = this.chipSelectedObj.filter((e) => e[this.comparekey(e)] == ven);
|
|
432
|
-
if (foundemp1.length) {
|
|
433
|
-
return;
|
|
434
|
-
}
|
|
435
|
-
let foundemp = this.Dropdowndata.filter((e) => e[this.comparekey(e)] == ven);
|
|
436
|
-
if (foundemp.length) {
|
|
437
|
-
this.chipSelectedObj.push(foundemp[0]);
|
|
438
|
-
if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.Outputkey) {
|
|
439
|
-
this.chipSelectedId.push(foundemp[0][(_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.Outputkey]);
|
|
440
|
-
}
|
|
441
|
-
else {
|
|
442
|
-
this.chipSelectedId.push(foundemp[0].id);
|
|
443
|
-
}
|
|
444
|
-
if ((_c = this.InputFields) === null || _c === void 0 ? void 0 : _c.formkey) {
|
|
445
|
-
this.formkeyarr.push(foundemp[0][(_d = this.InputFields) === null || _d === void 0 ? void 0 : _d.formkey]);
|
|
446
|
-
}
|
|
447
|
-
this.selected();
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
comparekey(e) {
|
|
451
|
-
var _a, _b;
|
|
452
|
-
if ((_a = this.InputFields) === null || _a === void 0 ? void 0 : _a.comparekey) {
|
|
453
|
-
return (_b = this.InputFields) === null || _b === void 0 ? void 0 : _b.comparekey;
|
|
454
|
-
}
|
|
455
|
-
else {
|
|
456
|
-
if (e === null || e === void 0 ? void 0 : e.id) {
|
|
457
|
-
return 'id';
|
|
458
|
-
}
|
|
459
|
-
else {
|
|
460
|
-
return this.InputFields.displaykey;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
VsChipddCmpComponent.ctorParameters = () => [
|
|
466
|
-
{ type: VsChipdropdownService },
|
|
467
|
-
{ type: FormBuilder }
|
|
468
|
-
];
|
|
469
|
-
__decorate([
|
|
470
|
-
Input()
|
|
471
|
-
], VsChipddCmpComponent.prototype, "InputFields", void 0);
|
|
472
|
-
__decorate([
|
|
473
|
-
Input()
|
|
474
|
-
], VsChipddCmpComponent.prototype, "ResetForm", void 0);
|
|
475
|
-
__decorate([
|
|
476
|
-
Input()
|
|
477
|
-
], VsChipddCmpComponent.prototype, "Backendapi", void 0);
|
|
478
|
-
__decorate([
|
|
479
|
-
ViewChild('autoCompleteInput', {
|
|
480
|
-
static: false,
|
|
481
|
-
read: MatAutocompleteTrigger,
|
|
482
|
-
})
|
|
483
|
-
], VsChipddCmpComponent.prototype, "trigger", void 0);
|
|
484
|
-
__decorate([
|
|
485
|
-
ViewChild(MatAutocompleteTrigger)
|
|
486
|
-
], VsChipddCmpComponent.prototype, "autocompleteTrigger", void 0);
|
|
487
|
-
__decorate([
|
|
488
|
-
ViewChild('scrolll')
|
|
489
|
-
], VsChipddCmpComponent.prototype, "matAutocompleteApp", void 0);
|
|
490
|
-
__decorate([
|
|
491
|
-
Output()
|
|
492
|
-
], VsChipddCmpComponent.prototype, "dataEvent", void 0);
|
|
493
|
-
__decorate([
|
|
494
|
-
ViewChild('DropInput')
|
|
495
|
-
], VsChipddCmpComponent.prototype, "DropInput", void 0);
|
|
496
|
-
__decorate([
|
|
497
|
-
Input()
|
|
498
|
-
], VsChipddCmpComponent.prototype, "formGroup", void 0);
|
|
499
|
-
VsChipddCmpComponent = __decorate([
|
|
500
|
-
Component({
|
|
501
|
-
selector: 'lib-vs-chipdd-cmp',
|
|
502
|
-
template: "<div>\r\n <form [formGroup]=\"DropdownForm\" id=\"matChip-size\">\r\n <!-- class=\"mat-chipScroll\" -->\r\n <mat-form-field\r\n appearance=\"outline\"\r\n (click)=\"!this.InputFields?.fronentdata ? this.getdropdown('') : ''\"\r\n >\r\n <mat-label>{{ InputFields?.label | translate }}</mat-label>\r\n <!-- class=\"chip-container\" -->\r\n <mat-chip-list multiple #chipListvendor>\r\n <!-- class=\"mat-chipEx\" -->\r\n <mat-chip\r\n *ngFor=\"let obj of chipSelectedObj\"\r\n [removable]=\"true\"\r\n (removed)=\"removechip(obj)\"\r\n >\r\n {{ obj[InputFields?.displaykey] }}\r\n <mat-icon matChipRemove>cancel</mat-icon>\r\n </mat-chip>\r\n <!-- class=\"matformfieldinputstyle\" -->\r\n <input\r\n #DropInput\r\n [matAutocomplete]=\"scrolll\"\r\n [matChipInputFor]=\"chipListvendor\"\r\n [matChipInputSeparatorKeyCodes]=\"separatorsKeysCodes\"\r\n [matChipInputAddOnBlur]=\"true\"\r\n #autoCompleteInput=\"matAutocompleteTrigger\"\r\n [formControlName]=\"this.dynamciformcontrolparent()\"\r\n />\r\n </mat-chip-list>\r\n <mat-autocomplete\r\n #scrolll=\"matAutocomplete\"\r\n (opened)=\"autocompleteAppScroll()\"\r\n >\r\n <ng-container>\r\n <mat-option\r\n *ngFor=\"let dropvalues of Dropdowndata\"\r\n [value]=\"\r\n this.InputFields?.formkey\r\n ? dropvalues[this.InputFields?.formkey]\r\n : dropvalues\r\n \"\r\n (onSelectionChange)=\"venSelected(dropvalues)\"\r\n >\r\n {{ dropvalues[InputFields?.displaykey] }}\r\n </mat-option>\r\n </ng-container>\r\n </mat-autocomplete>\r\n </mat-form-field>\r\n </form>\r\n</div>\r\n<!-- (click)=\"selected()\"\r\n -->\r\n<!-- (optionSelected)=\"venSelected($event)\"\r\n -->\r\n",
|
|
503
|
-
styles: [""]
|
|
504
|
-
})
|
|
505
|
-
], VsChipddCmpComponent);
|
|
506
|
-
|
|
507
|
-
// import {VsSharedModuleModule} from '@unnilouis.org/vs-shared-module'
|
|
508
|
-
let VsChipdropdownModule = class VsChipdropdownModule {
|
|
509
|
-
};
|
|
510
|
-
VsChipdropdownModule = __decorate([
|
|
511
|
-
NgModule({
|
|
512
|
-
declarations: [VsChipdropdownComponent, VsChipddCmpComponent],
|
|
513
|
-
imports: [MatFormFieldModule, MatInputModule, MatSelectModule, MatAutocompleteModule, FormsModule, ReactiveFormsModule, CommonModule, MatGridListModule, MatChipsModule, MatIconModule,
|
|
514
|
-
TranslateModule,
|
|
515
|
-
HttpClientModule,
|
|
516
|
-
TranslateModule.forRoot({
|
|
517
|
-
loader: {
|
|
518
|
-
provide: TranslateLoader,
|
|
519
|
-
useFactory: httpTranslateLoader,
|
|
520
|
-
deps: [HttpClient],
|
|
521
|
-
},
|
|
522
|
-
}),],
|
|
523
|
-
// imports: [VsSharedModuleModule],
|
|
524
|
-
exports: [VsChipddCmpComponent]
|
|
525
|
-
})
|
|
526
|
-
], VsChipdropdownModule);
|
|
527
|
-
function httpTranslateLoader(http) {
|
|
528
|
-
return new TranslateHttpLoader(http);
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
/*
|
|
532
|
-
* Public API Surface of vs-chipdropdown
|
|
533
|
-
*/
|
|
534
|
-
|
|
535
|
-
/**
|
|
536
|
-
* Generated bundle index. Do not edit.
|
|
537
|
-
*/
|
|
538
|
-
|
|
539
|
-
export { VsChipddCmpComponent, VsChipdropdownComponent, VsChipdropdownModule, VsChipdropdownService, httpTranslateLoader };
|
|
540
|
-
//# sourceMappingURL=unnilouis.org-vs-chipdropdown.js.map
|