@guajiritos/general-autocomplete 0.0.7 → 0.0.9

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 (38) hide show
  1. package/README.md +0 -0
  2. package/esm2020/guajiritos-general-autocomplete.mjs +4 -4
  3. package/esm2020/lib/guachos-general-autocomplete.component.mjs +327 -319
  4. package/esm2020/lib/guachos-general-autocomplete.module.mjs +108 -108
  5. package/esm2020/public-api.mjs +7 -7
  6. package/esm2020/utils/constants/contacts.mjs +9 -9
  7. package/esm2020/utils/interfaces/interfaces.mjs +11 -11
  8. package/esm2020/utils/pipes/duration.pipe.mjs +17 -17
  9. package/esm2020/utils/pipes/humanize-duration.pipe.mjs +16 -16
  10. package/esm2020/utils/pipes/i18n-field.pipe.mjs +27 -27
  11. package/esm2020/utils/pipes/ida-return.pipe.mjs +22 -22
  12. package/esm2020/utils/pipes/resolve-property-path.pipe.mjs +79 -79
  13. package/esm2020/utils/pipes/show-roles.pipe.mjs +23 -23
  14. package/esm2020/utils/pipes/show-segments.pipe.mjs +23 -23
  15. package/esm2020/utils/pipes/show-transport-types.pipe.mjs +23 -23
  16. package/esm2020/utils/services/autocomplete.service.mjs +160 -160
  17. package/esm2020/utils/services/utils.service.mjs +47 -47
  18. package/fesm2015/guajiritos-general-autocomplete.mjs +800 -792
  19. package/fesm2015/guajiritos-general-autocomplete.mjs.map +1 -1
  20. package/fesm2020/guajiritos-general-autocomplete.mjs +796 -788
  21. package/fesm2020/guajiritos-general-autocomplete.mjs.map +1 -1
  22. package/index.d.ts +5 -5
  23. package/lib/guachos-general-autocomplete.component.d.ts +72 -72
  24. package/lib/guachos-general-autocomplete.module.d.ts +24 -24
  25. package/package.json +6 -6
  26. package/public-api.d.ts +4 -4
  27. package/utils/constants/contacts.d.ts +2 -2
  28. package/utils/interfaces/interfaces.d.ts +33 -33
  29. package/utils/pipes/duration.pipe.d.ts +8 -8
  30. package/utils/pipes/humanize-duration.pipe.d.ts +7 -7
  31. package/utils/pipes/i18n-field.pipe.d.ts +7 -7
  32. package/utils/pipes/ida-return.pipe.d.ts +8 -8
  33. package/utils/pipes/resolve-property-path.pipe.d.ts +24 -24
  34. package/utils/pipes/show-roles.pipe.d.ts +8 -8
  35. package/utils/pipes/show-segments.pipe.d.ts +8 -8
  36. package/utils/pipes/show-transport-types.pipe.d.ts +8 -8
  37. package/utils/services/autocomplete.service.d.ts +15 -15
  38. package/utils/services/utils.service.d.ts +25 -25
@@ -26,828 +26,836 @@ import * as i10 from '@angular/material/autocomplete';
26
26
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
27
27
  import * as i11 from '@angular/material/core';
28
28
 
29
- var CustomPipes;
30
- (function (CustomPipes) {
31
- CustomPipes["SHOW_SEGMENTS"] = "showSegments";
32
- CustomPipes["DURATION_TIME"] = "durationTime";
33
- CustomPipes["HUMANIZE_DURATION"] = "humanizeDuration";
34
- CustomPipes["SHOW_TRANSPORT_TYPES"] = "showTransportTypes";
35
- CustomPipes["SHOW_ROLES"] = "showRoles";
36
- CustomPipes["IDA_RETURN"] = "idaReturn";
37
- CustomPipes["CURRENCY"] = "currency";
38
- CustomPipes["UPPERCASE"] = "uppercase";
29
+ var CustomPipes;
30
+ (function (CustomPipes) {
31
+ CustomPipes["SHOW_SEGMENTS"] = "showSegments";
32
+ CustomPipes["DURATION_TIME"] = "durationTime";
33
+ CustomPipes["HUMANIZE_DURATION"] = "humanizeDuration";
34
+ CustomPipes["SHOW_TRANSPORT_TYPES"] = "showTransportTypes";
35
+ CustomPipes["SHOW_ROLES"] = "showRoles";
36
+ CustomPipes["IDA_RETURN"] = "idaReturn";
37
+ CustomPipes["CURRENCY"] = "currency";
38
+ CustomPipes["UPPERCASE"] = "uppercase";
39
39
  })(CustomPipes || (CustomPipes = {}));
40
40
 
41
- const GENERAL_DISPLAY_OPTIONS = {
42
- firthLabel: [
43
- {
44
- type: 'path',
45
- path: ['name']
46
- }
47
- ],
48
- applyTranslate: true
41
+ const GENERAL_DISPLAY_OPTIONS = {
42
+ firthLabel: [
43
+ {
44
+ type: 'path',
45
+ path: ['name']
46
+ }
47
+ ],
48
+ applyTranslate: true
49
49
  };
50
50
 
51
- class UtilsService {
52
- /**
53
- * Convierte el tiempo pasado por parámetro en horas y minutos
54
- *
55
- * @param time - Tiempo
56
- * @returns Devuelve las horas y minutos
57
- */
58
- static getTime(time) {
59
- const hours = parseInt(Number(time) / 3600 + '', 10);
60
- time = Number(time) - (hours * 3600);
61
- const minutes = parseInt(Number(time) / 60 + '', 10);
62
- return { hours, minutes };
63
- }
64
- /**
65
- * Devuelve el tiempo en formato 'hh:mm'
66
- *
67
- * @param time - Tiempo
68
- */
69
- static getTimePretty(time) {
70
- const { hours, minutes } = UtilsService.getTime(time);
71
- return (hours < 10 ? '0' + hours : hours) + ':' + (minutes < 10 ? '0' + minutes : minutes);
72
- }
73
- /**
74
- * Devuelve el tiempo en formato 'hhh : mmm'
75
- *
76
- * @param time - Tiempo
77
- */
78
- static humanizeDuration(time) {
79
- const { hours, minutes } = UtilsService.getTime(time);
80
- return (hours < 10 ? '0' + hours : hours) + 'h : ' + (minutes < 10 ? '0' + minutes : minutes) + 'm';
81
- }
82
- static resolvePropertyByPath(obj, path) {
83
- return path.reduce((prev, curr) => {
84
- return prev ? prev[curr] : null;
85
- }, obj || self);
86
- }
87
- }
88
- UtilsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
89
- UtilsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UtilsService, providedIn: 'root' });
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UtilsService, decorators: [{
91
- type: Injectable,
92
- args: [{
93
- providedIn: 'root'
94
- }]
51
+ class UtilsService {
52
+ /**
53
+ * Convierte el tiempo pasado por parámetro en horas y minutos
54
+ *
55
+ * @param time - Tiempo
56
+ * @returns Devuelve las horas y minutos
57
+ */
58
+ static getTime(time) {
59
+ const hours = parseInt(Number(time) / 3600 + '', 10);
60
+ time = Number(time) - (hours * 3600);
61
+ const minutes = parseInt(Number(time) / 60 + '', 10);
62
+ return { hours, minutes };
63
+ }
64
+ /**
65
+ * Devuelve el tiempo en formato 'hh:mm'
66
+ *
67
+ * @param time - Tiempo
68
+ */
69
+ static getTimePretty(time) {
70
+ const { hours, minutes } = UtilsService.getTime(time);
71
+ return (hours < 10 ? '0' + hours : hours) + ':' + (minutes < 10 ? '0' + minutes : minutes);
72
+ }
73
+ /**
74
+ * Devuelve el tiempo en formato 'hhh : mmm'
75
+ *
76
+ * @param time - Tiempo
77
+ */
78
+ static humanizeDuration(time) {
79
+ const { hours, minutes } = UtilsService.getTime(time);
80
+ return (hours < 10 ? '0' + hours : hours) + 'h : ' + (minutes < 10 ? '0' + minutes : minutes) + 'm';
81
+ }
82
+ static resolvePropertyByPath(obj, path) {
83
+ return path.reduce((prev, curr) => {
84
+ return prev ? prev[curr] : null;
85
+ }, obj || self);
86
+ }
87
+ }
88
+ UtilsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
89
+ UtilsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UtilsService, providedIn: 'root' });
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: UtilsService, decorators: [{
91
+ type: Injectable,
92
+ args: [{
93
+ providedIn: 'root'
94
+ }]
95
95
  }] });
96
96
 
97
- class AutocompleteService {
98
- constructor(_httpClient) {
99
- this._httpClient = _httpClient;
100
- this.httpOptions = {};
101
- }
102
- processParams(filters, value) {
103
- return new Promise((resolve, reject) => {
104
- setTimeout(() => __awaiter(this, void 0, void 0, function* () {
105
- let filter = {};
106
- if (Array.isArray(filters)) {
107
- for (const f of filters) {
108
- yield this.processFilterString(f, value).then((resp) => {
109
- var _a;
110
- if ((_a = Object.keys(filter)) === null || _a === void 0 ? void 0 : _a.length) {
111
- merge(filter, resp);
112
- }
113
- else {
114
- filter = Object.assign(Object.assign({}, filter), resp);
115
- }
116
- if (f === filters[(filters === null || filters === void 0 ? void 0 : filters.length) - 1]) {
117
- resolve(filter);
118
- }
119
- });
120
- }
121
- }
122
- else if (typeof filters === 'string') {
123
- yield this.processFilterString(filters, value).then((resp) => {
124
- filter = Object.assign(Object.assign({}, filter), resp);
125
- resolve(filter);
126
- });
127
- }
128
- else {
129
- reject(null);
130
- }
131
- }), 100);
132
- });
133
- }
134
- processFilterString(filter, value) {
135
- return __awaiter(this, void 0, void 0, function* () {
136
- let f = {};
137
- const arrayFilters = filter === null || filter === void 0 ? void 0 : filter.split('[');
138
- if ((arrayFilters === null || arrayFilters === void 0 ? void 0 : arrayFilters.findIndex((a) => a === 'filter')) >= 0) {
139
- arrayFilters === null || arrayFilters === void 0 ? void 0 : arrayFilters.splice(0, 1);
140
- }
141
- yield this.createObjectFilters(arrayFilters, value).then((data) => {
142
- f = data;
143
- });
144
- return f;
145
- });
146
- }
147
- createObjectFilters(array, value) {
148
- return __awaiter(this, void 0, void 0, function* () {
149
- for (let filter of array) {
150
- filter = filter === null || filter === void 0 ? void 0 : filter.replace(']', '');
151
- if (array.length > 1) {
152
- array.splice(0, 1);
153
- return { [filter]: yield this.createObjectFilters(array, value) };
154
- }
155
- else {
156
- if (filter === '$like') {
157
- return { [filter]: '%' + value + '%' };
158
- }
159
- else {
160
- return { [filter]: value };
161
- }
162
- }
163
- }
164
- });
165
- }
166
- getAutocompleteByText(url, text, field, restrictions, removeProperties, order, bodyRequest) {
167
- var _a;
168
- return __awaiter(this, void 0, void 0, function* () {
169
- let httpParams = new HttpParams().set('offset', '0');
170
- httpParams = httpParams.append('limit', '20');
171
- if (order) {
172
- httpParams = httpParams.append('order', order);
173
- }
174
- if (!text) {
175
- text = '';
176
- }
177
- if (bodyRequest) {
178
- let body = {};
179
- if (text && text !== '') {
180
- yield this.processParams(field, text)
181
- .then((data) => {
182
- body = Object.assign(Object.assign({}, bodyRequest), { filter: data });
183
- });
184
- }
185
- else {
186
- body = JSON.parse(JSON.stringify(bodyRequest));
187
- }
188
- if (restrictions === null || restrictions === void 0 ? void 0 : restrictions.length) {
189
- for (let r of restrictions) {
190
- yield this.processParams(r === null || r === void 0 ? void 0 : r.filter, (_a = r === null || r === void 0 ? void 0 : r.value) === null || _a === void 0 ? void 0 : _a.toString())
191
- .then((data) => {
192
- let filtersAux = Object.assign({}, body === null || body === void 0 ? void 0 : body.filter);
193
- merge(filtersAux, data);
194
- body = Object.assign(Object.assign({}, body), { filter: filtersAux });
195
- httpParams = httpParams.set('form', JSON.stringify(body));
196
- });
197
- }
198
- }
199
- else {
200
- httpParams = httpParams.append('form', JSON.stringify(body));
201
- }
202
- }
203
- else {
204
- if (text && text !== '') {
205
- if (Array.isArray(field)) {
206
- for (const f of field) {
207
- httpParams = httpParams.append(f, '%' + text + '%');
208
- }
209
- }
210
- else {
211
- if (field === null || field === void 0 ? void 0 : field.includes('$like')) {
212
- httpParams = httpParams.append(field, '%' + text + '%');
213
- }
214
- else if (field) {
215
- httpParams = httpParams.append(field, text);
216
- }
217
- }
218
- }
219
- restrictions === null || restrictions === void 0 ? void 0 : restrictions.forEach((restriction) => {
220
- var _a;
221
- if (restriction === null || restriction === void 0 ? void 0 : restriction.value) {
222
- httpParams = httpParams.append(restriction === null || restriction === void 0 ? void 0 : restriction.filter, (_a = restriction.value) === null || _a === void 0 ? void 0 : _a.toString());
223
- }
224
- });
225
- }
226
- this.httpOptions = { params: httpParams };
227
- return this._httpClient
228
- .get(url, this.httpOptions)
229
- .pipe(map((result) => {
230
- var _a;
231
- (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.map((item) => {
232
- removeProperties === null || removeProperties === void 0 ? void 0 : removeProperties.forEach((property) => {
233
- delete item[property];
234
- });
235
- });
236
- return result;
237
- }));
238
- });
239
- }
240
- }
241
- AutocompleteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AutocompleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
242
- AutocompleteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AutocompleteService, providedIn: 'root' });
243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AutocompleteService, decorators: [{
244
- type: Injectable,
245
- args: [{
246
- providedIn: 'root'
247
- }]
97
+ class AutocompleteService {
98
+ constructor(_httpClient) {
99
+ this._httpClient = _httpClient;
100
+ this.httpOptions = {};
101
+ }
102
+ processParams(filters, value) {
103
+ return new Promise((resolve, reject) => {
104
+ setTimeout(() => __awaiter(this, void 0, void 0, function* () {
105
+ let filter = {};
106
+ if (Array.isArray(filters)) {
107
+ for (const f of filters) {
108
+ yield this.processFilterString(f, value).then((resp) => {
109
+ var _a;
110
+ if ((_a = Object.keys(filter)) === null || _a === void 0 ? void 0 : _a.length) {
111
+ merge(filter, resp);
112
+ }
113
+ else {
114
+ filter = Object.assign(Object.assign({}, filter), resp);
115
+ }
116
+ if (f === filters[(filters === null || filters === void 0 ? void 0 : filters.length) - 1]) {
117
+ resolve(filter);
118
+ }
119
+ });
120
+ }
121
+ }
122
+ else if (typeof filters === 'string') {
123
+ yield this.processFilterString(filters, value).then((resp) => {
124
+ filter = Object.assign(Object.assign({}, filter), resp);
125
+ resolve(filter);
126
+ });
127
+ }
128
+ else {
129
+ reject(null);
130
+ }
131
+ }), 100);
132
+ });
133
+ }
134
+ processFilterString(filter, value) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ let f = {};
137
+ const arrayFilters = filter === null || filter === void 0 ? void 0 : filter.split('[');
138
+ if ((arrayFilters === null || arrayFilters === void 0 ? void 0 : arrayFilters.findIndex((a) => a === 'filter')) >= 0) {
139
+ arrayFilters === null || arrayFilters === void 0 ? void 0 : arrayFilters.splice(0, 1);
140
+ }
141
+ yield this.createObjectFilters(arrayFilters, value).then((data) => {
142
+ f = data;
143
+ });
144
+ return f;
145
+ });
146
+ }
147
+ createObjectFilters(array, value) {
148
+ return __awaiter(this, void 0, void 0, function* () {
149
+ for (let filter of array) {
150
+ filter = filter === null || filter === void 0 ? void 0 : filter.replace(']', '');
151
+ if (array.length > 1) {
152
+ array.splice(0, 1);
153
+ return { [filter]: yield this.createObjectFilters(array, value) };
154
+ }
155
+ else {
156
+ if (filter === '$like') {
157
+ return { [filter]: '%' + value + '%' };
158
+ }
159
+ else {
160
+ return { [filter]: value };
161
+ }
162
+ }
163
+ }
164
+ });
165
+ }
166
+ getAutocompleteByText(url, text, field, restrictions, removeProperties, order, bodyRequest) {
167
+ var _a;
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ let httpParams = new HttpParams().set('offset', '0');
170
+ httpParams = httpParams.append('limit', '20');
171
+ if (order) {
172
+ httpParams = httpParams.append('order', order);
173
+ }
174
+ if (!text) {
175
+ text = '';
176
+ }
177
+ if (bodyRequest) {
178
+ let body = {};
179
+ if (text && text !== '') {
180
+ yield this.processParams(field, text)
181
+ .then((data) => {
182
+ body = Object.assign(Object.assign({}, bodyRequest), { filter: data });
183
+ });
184
+ }
185
+ else {
186
+ body = JSON.parse(JSON.stringify(bodyRequest));
187
+ }
188
+ if (restrictions === null || restrictions === void 0 ? void 0 : restrictions.length) {
189
+ for (let r of restrictions) {
190
+ yield this.processParams(r === null || r === void 0 ? void 0 : r.filter, (_a = r === null || r === void 0 ? void 0 : r.value) === null || _a === void 0 ? void 0 : _a.toString())
191
+ .then((data) => {
192
+ let filtersAux = Object.assign({}, body === null || body === void 0 ? void 0 : body.filter);
193
+ merge(filtersAux, data);
194
+ body = Object.assign(Object.assign({}, body), { filter: filtersAux });
195
+ httpParams = httpParams.set('form', JSON.stringify(body));
196
+ });
197
+ }
198
+ }
199
+ else {
200
+ httpParams = httpParams.append('form', JSON.stringify(body));
201
+ }
202
+ }
203
+ else {
204
+ if (text && text !== '') {
205
+ if (Array.isArray(field)) {
206
+ for (const f of field) {
207
+ httpParams = httpParams.append(f, '%' + text + '%');
208
+ }
209
+ }
210
+ else {
211
+ if (field === null || field === void 0 ? void 0 : field.includes('$like')) {
212
+ httpParams = httpParams.append(field, '%' + text + '%');
213
+ }
214
+ else if (field) {
215
+ httpParams = httpParams.append(field, text);
216
+ }
217
+ }
218
+ }
219
+ restrictions === null || restrictions === void 0 ? void 0 : restrictions.forEach((restriction) => {
220
+ var _a;
221
+ if (restriction === null || restriction === void 0 ? void 0 : restriction.value) {
222
+ httpParams = httpParams.append(restriction === null || restriction === void 0 ? void 0 : restriction.filter, (_a = restriction.value) === null || _a === void 0 ? void 0 : _a.toString());
223
+ }
224
+ });
225
+ }
226
+ this.httpOptions = { params: httpParams };
227
+ return this._httpClient
228
+ .get(url, this.httpOptions)
229
+ .pipe(map((result) => {
230
+ var _a;
231
+ (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.map((item) => {
232
+ removeProperties === null || removeProperties === void 0 ? void 0 : removeProperties.forEach((property) => {
233
+ delete item[property];
234
+ });
235
+ });
236
+ return result;
237
+ }));
238
+ });
239
+ }
240
+ }
241
+ AutocompleteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AutocompleteService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
242
+ AutocompleteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AutocompleteService, providedIn: 'root' });
243
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: AutocompleteService, decorators: [{
244
+ type: Injectable,
245
+ args: [{
246
+ providedIn: 'root'
247
+ }]
248
248
  }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
249
249
 
250
- class I18nFieldPipe {
251
- transform(value, lang) {
252
- if (!value) {
253
- return '';
254
- }
255
- if (typeof value === 'string') {
256
- return value;
257
- }
258
- const keys = Object.keys(value);
259
- if (!value[lang]) {
260
- let i = 0;
261
- while (i < (keys === null || keys === void 0 ? void 0 : keys.length) && (value[keys[i]] === null || value[keys[i]] === '')) {
262
- i++;
263
- }
264
- return (keys === null || keys === void 0 ? void 0 : keys.length) > i ? value[keys[i]] : 'No está definido';
265
- }
266
- return value[lang] || 'No está definido';
267
- }
268
- }
269
- I18nFieldPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: I18nFieldPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
270
- I18nFieldPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: I18nFieldPipe, name: "i18nField" });
271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: I18nFieldPipe, decorators: [{
272
- type: Pipe,
273
- args: [{ name: 'i18nField' }]
250
+ class I18nFieldPipe {
251
+ transform(value, lang) {
252
+ if (!value) {
253
+ return '';
254
+ }
255
+ if (typeof value === 'string') {
256
+ return value;
257
+ }
258
+ const keys = Object.keys(value);
259
+ if (!value[lang]) {
260
+ let i = 0;
261
+ while (i < (keys === null || keys === void 0 ? void 0 : keys.length) && (value[keys[i]] === null || value[keys[i]] === '')) {
262
+ i++;
263
+ }
264
+ return (keys === null || keys === void 0 ? void 0 : keys.length) > i ? value[keys[i]] : 'No está definido';
265
+ }
266
+ return value[lang] || 'No está definido';
267
+ }
268
+ }
269
+ I18nFieldPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: I18nFieldPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
270
+ I18nFieldPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: I18nFieldPipe, name: "i18nField" });
271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: I18nFieldPipe, decorators: [{
272
+ type: Pipe,
273
+ args: [{ name: 'i18nField' }]
274
274
  }] });
275
275
 
276
- class ShowSegmentsPipe {
277
- transform(value) {
278
- let result = '';
279
- if (value === null || value === void 0 ? void 0 : value.length) {
280
- value.forEach(item => {
281
- var _a, _b, _c, _d;
282
- result += ((_b = (_a = item === null || item === void 0 ? void 0 : item.Segment) === null || _a === void 0 ? void 0 : _a.PlaceOrigin) === null || _b === void 0 ? void 0 : _b.alpha3) + '-' + ((_d = (_c = item === null || item === void 0 ? void 0 : item.Segment) === null || _c === void 0 ? void 0 : _c.PlaceDestination) === null || _d === void 0 ? void 0 : _d.alpha3) + ', ';
283
- });
284
- result = result.substring(0, (result === null || result === void 0 ? void 0 : result.length) - 2);
285
- }
286
- return result;
287
- }
288
- }
289
- ShowSegmentsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowSegmentsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
290
- ShowSegmentsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: ShowSegmentsPipe, name: "showSegments" });
291
- ShowSegmentsPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowSegmentsPipe });
292
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowSegmentsPipe, decorators: [{
293
- type: Injectable
294
- }, {
295
- type: Pipe,
296
- args: [{ name: 'showSegments' }]
276
+ class ShowSegmentsPipe {
277
+ transform(value) {
278
+ let result = '';
279
+ if (value === null || value === void 0 ? void 0 : value.length) {
280
+ value.forEach(item => {
281
+ var _a, _b, _c, _d;
282
+ result += ((_b = (_a = item === null || item === void 0 ? void 0 : item.Segment) === null || _a === void 0 ? void 0 : _a.PlaceOrigin) === null || _b === void 0 ? void 0 : _b.alpha3) + '-' + ((_d = (_c = item === null || item === void 0 ? void 0 : item.Segment) === null || _c === void 0 ? void 0 : _c.PlaceDestination) === null || _d === void 0 ? void 0 : _d.alpha3) + ', ';
283
+ });
284
+ result = result.substring(0, (result === null || result === void 0 ? void 0 : result.length) - 2);
285
+ }
286
+ return result;
287
+ }
288
+ }
289
+ ShowSegmentsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowSegmentsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
290
+ ShowSegmentsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: ShowSegmentsPipe, name: "showSegments" });
291
+ ShowSegmentsPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowSegmentsPipe });
292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowSegmentsPipe, decorators: [{
293
+ type: Injectable
294
+ }, {
295
+ type: Pipe,
296
+ args: [{ name: 'showSegments' }]
297
297
  }] });
298
298
 
299
- class ShowRolesPipe {
300
- transform(value) {
301
- let result = '';
302
- if (value === null || value === void 0 ? void 0 : value.length) {
303
- value.forEach(item => {
304
- var _a;
305
- result += ((_a = item === null || item === void 0 ? void 0 : item.Rol) === null || _a === void 0 ? void 0 : _a.name) + ', ';
306
- });
307
- result = result.substring(0, (result === null || result === void 0 ? void 0 : result.length) - 2);
308
- }
309
- return result;
310
- }
311
- }
312
- ShowRolesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowRolesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
313
- ShowRolesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: ShowRolesPipe, name: "showSegments" });
314
- ShowRolesPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowRolesPipe });
315
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowRolesPipe, decorators: [{
316
- type: Injectable
317
- }, {
318
- type: Pipe,
319
- args: [{ name: 'showSegments' }]
299
+ class ShowRolesPipe {
300
+ transform(value) {
301
+ let result = '';
302
+ if (value === null || value === void 0 ? void 0 : value.length) {
303
+ value.forEach(item => {
304
+ var _a;
305
+ result += ((_a = item === null || item === void 0 ? void 0 : item.Rol) === null || _a === void 0 ? void 0 : _a.name) + ', ';
306
+ });
307
+ result = result.substring(0, (result === null || result === void 0 ? void 0 : result.length) - 2);
308
+ }
309
+ return result;
310
+ }
311
+ }
312
+ ShowRolesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowRolesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
313
+ ShowRolesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: ShowRolesPipe, name: "showSegments" });
314
+ ShowRolesPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowRolesPipe });
315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowRolesPipe, decorators: [{
316
+ type: Injectable
317
+ }, {
318
+ type: Pipe,
319
+ args: [{ name: 'showSegments' }]
320
320
  }] });
321
321
 
322
- class ShowTransportTypesPipe {
323
- transform(value) {
324
- let result = '';
325
- if (value === null || value === void 0 ? void 0 : value.length) {
326
- value.forEach(item => {
327
- var _a;
328
- result += ((_a = item === null || item === void 0 ? void 0 : item.TransportType) === null || _a === void 0 ? void 0 : _a.name['es']) + ', ';
329
- });
330
- result = result.substring(0, (result === null || result === void 0 ? void 0 : result.length) - 2);
331
- }
332
- return result;
333
- }
334
- }
335
- ShowTransportTypesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowTransportTypesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
336
- ShowTransportTypesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: ShowTransportTypesPipe, name: "showTransportTypes" });
337
- ShowTransportTypesPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowTransportTypesPipe });
338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowTransportTypesPipe, decorators: [{
339
- type: Injectable
340
- }, {
341
- type: Pipe,
342
- args: [{ name: 'showTransportTypes' }]
322
+ class ShowTransportTypesPipe {
323
+ transform(value) {
324
+ let result = '';
325
+ if (value === null || value === void 0 ? void 0 : value.length) {
326
+ value.forEach(item => {
327
+ var _a;
328
+ result += ((_a = item === null || item === void 0 ? void 0 : item.TransportType) === null || _a === void 0 ? void 0 : _a.name['es']) + ', ';
329
+ });
330
+ result = result.substring(0, (result === null || result === void 0 ? void 0 : result.length) - 2);
331
+ }
332
+ return result;
333
+ }
334
+ }
335
+ ShowTransportTypesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowTransportTypesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
336
+ ShowTransportTypesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: ShowTransportTypesPipe, name: "showTransportTypes" });
337
+ ShowTransportTypesPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowTransportTypesPipe });
338
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ShowTransportTypesPipe, decorators: [{
339
+ type: Injectable
340
+ }, {
341
+ type: Pipe,
342
+ args: [{ name: 'showTransportTypes' }]
343
343
  }] });
344
344
 
345
- class IdaReturnPipe {
346
- transform(value) {
347
- if (value === CustomPipes.IDA_RETURN) {
348
- return 'Ida y Vuelta';
349
- }
350
- else {
351
- return 'solo Ida';
352
- }
353
- }
354
- }
355
- IdaReturnPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IdaReturnPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
356
- IdaReturnPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: IdaReturnPipe, name: "idaReturn" });
357
- IdaReturnPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IdaReturnPipe });
358
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IdaReturnPipe, decorators: [{
359
- type: Injectable
360
- }, {
361
- type: Pipe,
362
- args: [{ name: 'idaReturn' }]
345
+ class IdaReturnPipe {
346
+ transform(value) {
347
+ if (value === CustomPipes.IDA_RETURN) {
348
+ return 'Ida y Vuelta';
349
+ }
350
+ else {
351
+ return 'solo Ida';
352
+ }
353
+ }
354
+ }
355
+ IdaReturnPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IdaReturnPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
356
+ IdaReturnPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: IdaReturnPipe, name: "idaReturn" });
357
+ IdaReturnPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IdaReturnPipe });
358
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: IdaReturnPipe, decorators: [{
359
+ type: Injectable
360
+ }, {
361
+ type: Pipe,
362
+ args: [{ name: 'idaReturn' }]
363
363
  }] });
364
364
 
365
- class HumanizeDurationPipe {
366
- transform(input) {
367
- return UtilsService.humanizeDuration(input);
368
- }
369
- }
370
- HumanizeDurationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HumanizeDurationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
371
- HumanizeDurationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: HumanizeDurationPipe, name: "humanizeDuration" });
372
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HumanizeDurationPipe, decorators: [{
373
- type: Pipe,
374
- args: [{
375
- name: 'humanizeDuration'
376
- }]
365
+ class HumanizeDurationPipe {
366
+ transform(input) {
367
+ return UtilsService.humanizeDuration(input);
368
+ }
369
+ }
370
+ HumanizeDurationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HumanizeDurationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
371
+ HumanizeDurationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: HumanizeDurationPipe, name: "humanizeDuration" });
372
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HumanizeDurationPipe, decorators: [{
373
+ type: Pipe,
374
+ args: [{
375
+ name: 'humanizeDuration'
376
+ }]
377
377
  }] });
378
378
 
379
- class DurationTimePipe {
380
- transform(value) {
381
- return UtilsService.getTimePretty(value);
382
- }
383
- }
384
- DurationTimePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DurationTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
385
- DurationTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: DurationTimePipe, name: "durationTime" });
386
- DurationTimePipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DurationTimePipe });
387
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DurationTimePipe, decorators: [{
388
- type: Injectable
389
- }, {
390
- type: Pipe,
391
- args: [{ name: 'durationTime' }]
379
+ class DurationTimePipe {
380
+ transform(value) {
381
+ return UtilsService.getTimePretty(value);
382
+ }
383
+ }
384
+ DurationTimePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DurationTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
385
+ DurationTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: DurationTimePipe, name: "durationTime" });
386
+ DurationTimePipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DurationTimePipe });
387
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DurationTimePipe, decorators: [{
388
+ type: Injectable
389
+ }, {
390
+ type: Pipe,
391
+ args: [{ name: 'durationTime' }]
392
392
  }] });
393
393
 
394
- class ResolvePropertyPath {
395
- constructor(_showSegmentPipe, _showRolesPipe, _showTransportTypesPipe, _idaReturnPipe, _currencyPipe, _humanizeDurationPipe, _upperCasePipe, _durationPipe) {
396
- this._showSegmentPipe = _showSegmentPipe;
397
- this._showRolesPipe = _showRolesPipe;
398
- this._showTransportTypesPipe = _showTransportTypesPipe;
399
- this._idaReturnPipe = _idaReturnPipe;
400
- this._currencyPipe = _currencyPipe;
401
- this._humanizeDurationPipe = _humanizeDurationPipe;
402
- this._upperCasePipe = _upperCasePipe;
403
- this._durationPipe = _durationPipe;
404
- }
405
- transform(obj, path) {
406
- let result = '';
407
- path === null || path === void 0 ? void 0 : path.forEach(item => {
408
- if ((item === null || item === void 0 ? void 0 : item.type) === 'divider') {
409
- result += item === null || item === void 0 ? void 0 : item.divider;
410
- }
411
- else {
412
- if (item === null || item === void 0 ? void 0 : item.path) {
413
- let value = UtilsService.resolvePropertyByPath(obj, item.path);
414
- switch (item === null || item === void 0 ? void 0 : item.customPipe) {
415
- case CustomPipes.SHOW_SEGMENTS:
416
- value = this._showSegmentPipe.transform(value);
417
- break;
418
- case CustomPipes.DURATION_TIME:
419
- value = this._durationPipe.transform(value);
420
- break;
421
- case CustomPipes.HUMANIZE_DURATION:
422
- value = this._humanizeDurationPipe.transform(value);
423
- break;
424
- case CustomPipes.SHOW_TRANSPORT_TYPES:
425
- value = this._showTransportTypesPipe.transform(value);
426
- break;
427
- case CustomPipes.SHOW_ROLES:
428
- value = this._showRolesPipe.transform(value);
429
- break;
430
- case CustomPipes.IDA_RETURN:
431
- value = this._idaReturnPipe.transform(value);
432
- break;
433
- case CustomPipes.CURRENCY:
434
- value = this._currencyPipe.transform(value);
435
- break;
436
- case CustomPipes.UPPERCASE:
437
- value = this._upperCasePipe.transform(value);
438
- break;
439
- default:
440
- break;
441
- }
442
- result += value;
443
- }
444
- }
445
- });
446
- return result;
447
- }
448
- }
449
- ResolvePropertyPath.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ResolvePropertyPath, deps: [{ token: ShowSegmentsPipe }, { token: ShowRolesPipe }, { token: ShowTransportTypesPipe }, { token: IdaReturnPipe }, { token: i3.CurrencyPipe }, { token: HumanizeDurationPipe }, { token: i3.UpperCasePipe }, { token: DurationTimePipe }], target: i0.ɵɵFactoryTarget.Pipe });
450
- ResolvePropertyPath.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: ResolvePropertyPath, name: "resolvePropertyPath" });
451
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ResolvePropertyPath, decorators: [{
452
- type: Pipe,
453
- args: [{ name: 'resolvePropertyPath' }]
394
+ class ResolvePropertyPath {
395
+ constructor(_showSegmentPipe, _showRolesPipe, _showTransportTypesPipe, _idaReturnPipe, _currencyPipe, _humanizeDurationPipe, _upperCasePipe, _durationPipe) {
396
+ this._showSegmentPipe = _showSegmentPipe;
397
+ this._showRolesPipe = _showRolesPipe;
398
+ this._showTransportTypesPipe = _showTransportTypesPipe;
399
+ this._idaReturnPipe = _idaReturnPipe;
400
+ this._currencyPipe = _currencyPipe;
401
+ this._humanizeDurationPipe = _humanizeDurationPipe;
402
+ this._upperCasePipe = _upperCasePipe;
403
+ this._durationPipe = _durationPipe;
404
+ }
405
+ transform(obj, path) {
406
+ let result = '';
407
+ path === null || path === void 0 ? void 0 : path.forEach(item => {
408
+ if ((item === null || item === void 0 ? void 0 : item.type) === 'divider') {
409
+ result += item === null || item === void 0 ? void 0 : item.divider;
410
+ }
411
+ else {
412
+ if (item === null || item === void 0 ? void 0 : item.path) {
413
+ let value = UtilsService.resolvePropertyByPath(obj, item.path);
414
+ switch (item === null || item === void 0 ? void 0 : item.customPipe) {
415
+ case CustomPipes.SHOW_SEGMENTS:
416
+ value = this._showSegmentPipe.transform(value);
417
+ break;
418
+ case CustomPipes.DURATION_TIME:
419
+ value = this._durationPipe.transform(value);
420
+ break;
421
+ case CustomPipes.HUMANIZE_DURATION:
422
+ value = this._humanizeDurationPipe.transform(value);
423
+ break;
424
+ case CustomPipes.SHOW_TRANSPORT_TYPES:
425
+ value = this._showTransportTypesPipe.transform(value);
426
+ break;
427
+ case CustomPipes.SHOW_ROLES:
428
+ value = this._showRolesPipe.transform(value);
429
+ break;
430
+ case CustomPipes.IDA_RETURN:
431
+ value = this._idaReturnPipe.transform(value);
432
+ break;
433
+ case CustomPipes.CURRENCY:
434
+ value = this._currencyPipe.transform(value);
435
+ break;
436
+ case CustomPipes.UPPERCASE:
437
+ value = this._upperCasePipe.transform(value);
438
+ break;
439
+ default:
440
+ break;
441
+ }
442
+ result += value;
443
+ }
444
+ }
445
+ });
446
+ return result;
447
+ }
448
+ }
449
+ ResolvePropertyPath.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ResolvePropertyPath, deps: [{ token: ShowSegmentsPipe }, { token: ShowRolesPipe }, { token: ShowTransportTypesPipe }, { token: IdaReturnPipe }, { token: i3.CurrencyPipe }, { token: HumanizeDurationPipe }, { token: i3.UpperCasePipe }, { token: DurationTimePipe }], target: i0.ɵɵFactoryTarget.Pipe });
450
+ ResolvePropertyPath.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: ResolvePropertyPath, name: "resolvePropertyPath" });
451
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: ResolvePropertyPath, decorators: [{
452
+ type: Pipe,
453
+ args: [{ name: 'resolvePropertyPath' }]
454
454
  }], ctorParameters: function () { return [{ type: ShowSegmentsPipe }, { type: ShowRolesPipe }, { type: ShowTransportTypesPipe }, { type: IdaReturnPipe }, { type: i3.CurrencyPipe }, { type: HumanizeDurationPipe }, { type: i3.UpperCasePipe }, { type: DurationTimePipe }]; } });
455
455
 
456
- class GuajiritosGeneralAutocompleteComponent {
457
- constructor(_autocompleteService, _cdRef, _zone, translateService) {
458
- this._autocompleteService = _autocompleteService;
459
- this._cdRef = _cdRef;
460
- this._zone = _zone;
461
- this.translateService = translateService;
462
- this.unsubscribeAll$ = new Subject();
463
- this.firstCall = true;
464
- this.restrictionsFilters = [];
465
- this.required = true;
466
- this.component = new UntypedFormControl({
467
- value: null, disabled: false
468
- });
469
- this.disabledButton = false;
470
- this.loading = false;
471
- /**
472
- * Possible values 'never', 'auto' or 'always'
473
- */
474
- this.floatLabel = 'auto';
475
- this.debounceTimeValue = 250;
476
- this.label = 'Seleccione';
477
- this.placeholder = 'Seleccione un elemento';
478
- this.field = ['name'];
479
- this.filterString = 'filter[$and][name][$like]';
480
- this.displayOptions = GENERAL_DISPLAY_OPTIONS;
481
- this.withoutPaddingBottom = true;
482
- this.valueId = false;
483
- this.order = null;
484
- this.removeProperties = [];
485
- this.SelectElement = new EventEmitter();
486
- this.onChanged = () => {
487
- };
488
- this.onTouched = () => {
489
- };
490
- this.displayFn = (value) => {
491
- var _a, _b;
492
- if (value) {
493
- if (typeof value === 'string') {
494
- return value;
495
- }
496
- let displayText = '';
497
- if (!this.displayOptions) {
498
- this.displayOptions = GENERAL_DISPLAY_OPTIONS;
499
- }
500
- (_b = (_a = this.displayOptions) === null || _a === void 0 ? void 0 : _a.firthLabel) === null || _b === void 0 ? void 0 : _b.forEach((field) => {
501
- if ((field === null || field === void 0 ? void 0 : field.type) === 'path') {
502
- displayText += UtilsService.resolvePropertyByPath(value, field === null || field === void 0 ? void 0 : field.path);
503
- }
504
- else {
505
- displayText += field === null || field === void 0 ? void 0 : field.divider;
506
- }
507
- });
508
- return displayText;
509
- }
510
- };
511
- }
512
- set disable(flag) {
513
- this.disabledButton = flag;
514
- if (flag) {
515
- this.component.disable();
516
- }
517
- else {
518
- this.component.enable();
519
- }
520
- this._cdRef.detectChanges();
521
- }
522
- set url(data) {
523
- if (data) {
524
- this._url = data;
525
- this.subscribeComponentChanges();
526
- }
527
- }
528
- set clearData(value) {
529
- this.clearData$ = value;
530
- if (this.clearData$) {
531
- this.clearData$
532
- .pipe(takeUntil(this.unsubscribeAll$))
533
- .subscribe(() => {
534
- this.component.setValue(null);
535
- this.selectedElement = null;
536
- this.SelectElement.emit(null);
537
- this.filteredOptions = [];
538
- this.onChanged(null);
539
- });
540
- }
541
- }
542
- set initialValue(value) {
543
- this.component.setValue(value);
544
- }
545
- set restrictions(value) {
546
- if (value) {
547
- this.restrictionsFilters = value;
548
- }
549
- else {
550
- this.restrictionsFilters = [];
551
- }
552
- }
553
- set isRequired(value) {
554
- this.required = value;
555
- if (this.required) {
556
- this.component.setValidators([Validators.required, GuajiritosGeneralAutocompleteComponent.ValidateAutocomplete]);
557
- }
558
- else {
559
- this.component.clearValidators();
560
- }
561
- this.component.updateValueAndValidity();
562
- }
563
- get doFocus() {
564
- return this.doFocusSubject$;
565
- }
566
- set doFocus(value) {
567
- this.doFocusSubject$ = value;
568
- if (value) {
569
- this.doFocusSubject$
570
- .pipe(takeUntil(this.unsubscribeAll$))
571
- .subscribe(() => {
572
- this._zone.run(() => {
573
- setTimeout(() => {
574
- this.inputText.nativeElement.focus();
575
- }, 500);
576
- });
577
- });
578
- }
579
- }
580
- static ValidateAutocomplete(control) {
581
- var _a, _b;
582
- if (((_a = control === null || control === void 0 ? void 0 : control.value) === null || _a === void 0 ? void 0 : _a.constructor) !== Object || !((_b = control === null || control === void 0 ? void 0 : control.value) === null || _b === void 0 ? void 0 : _b.id)) {
583
- return { invalidSelection: true };
584
- }
585
- return null;
586
- }
587
- subscribeComponentChanges() {
588
- var _a, _b, _c;
589
- (_c = (_b = (_a = this.component) === null || _a === void 0 ? void 0 : _a.valueChanges) === null || _b === void 0 ? void 0 : _b.pipe(debounceTime(this.debounceTimeValue), takeUntil(this.unsubscribeAll$))) === null || _c === void 0 ? void 0 : _c.subscribe(() => {
590
- if (!this.firstCall) {
591
- this.getAutocompleteByTextHandler(this.getAutocompleteSearchText());
592
- }
593
- else {
594
- this.firstCall = false;
595
- }
596
- });
597
- }
598
- getAutocompleteByTextHandler(text) {
599
- this._autocompleteService
600
- .getAutocompleteByText(this._url, text, this.filterString, this.restrictionsFilters, this.removeProperties, this.order, this.bodyRequest)
601
- .then((resp) => {
602
- resp === null || resp === void 0 ? void 0 : resp.subscribe((result) => {
603
- var _a;
604
- this.filteredOptions = (_a = result === null || result === void 0 ? void 0 : result.payload) === null || _a === void 0 ? void 0 : _a.data;
605
- this.loading = false;
606
- this._cdRef.detectChanges();
607
- });
608
- });
609
- }
610
- getAutocompleteSearchText() {
611
- var _a, _b, _c;
612
- this.loading = true;
613
- let text = null;
614
- if ((_a = this.component) === null || _a === void 0 ? void 0 : _a.value) {
615
- if (typeof this.component.value === 'object') {
616
- const componentValue = (_b = this.component) === null || _b === void 0 ? void 0 : _b.value[this.field[0]];
617
- if (typeof componentValue === 'object') {
618
- let lang = 'es';
619
- if (this.field[1]) {
620
- lang = this.field[1];
621
- }
622
- text = componentValue[lang];
623
- }
624
- }
625
- else if (typeof ((_c = this.component) === null || _c === void 0 ? void 0 : _c.value) === 'string') {
626
- text = this.component.value;
627
- }
628
- }
629
- return text;
630
- }
631
- writeValue(value) {
632
- if (value) {
633
- if (typeof value === 'number') {
634
- this.value = value;
635
- }
636
- else if (typeof value === 'object') {
637
- this.component.setValue(value);
638
- this.value = value.id;
639
- }
640
- else {
641
- this.value = value;
642
- }
643
- }
644
- else {
645
- this.value = null;
646
- }
647
- this._cdRef.detectChanges();
648
- }
649
- registerOnChange(fn) {
650
- this.onChanged = fn;
651
- this._cdRef.detectChanges();
652
- }
653
- registerOnTouched(fn) {
654
- this.onTouched = fn;
655
- this._cdRef.detectChanges();
656
- }
657
- clear(trigger) {
658
- this.component.setValue(null);
659
- this.selectedElement = null;
660
- this.SelectElement.emit(null);
661
- this._cdRef.detectChanges();
662
- this.onChanged(null);
663
- this._zone.run(() => {
664
- setTimeout(() => {
665
- trigger.openPanel();
666
- this._cdRef.detectChanges();
667
- }, 200);
668
- });
669
- }
670
- onFocus() {
671
- this.getAutocompleteByTextHandler(this.getAutocompleteSearchText());
672
- }
673
- onSelectElement(item) {
674
- this.selectedElement = item;
675
- this.SelectElement.emit(item);
676
- this.value = item;
677
- if (this.valueId) {
678
- this.onChanged(item === null || item === void 0 ? void 0 : item.id);
679
- }
680
- else {
681
- this.onChanged(item);
682
- }
683
- this._cdRef.detectChanges();
684
- }
685
- ngOnInit() {
686
- this.component.markAllAsTouched();
687
- }
688
- ngOnDestroy() {
689
- this.unsubscribeAll$.next();
690
- this.unsubscribeAll$.complete();
691
- }
692
- }
693
- GuajiritosGeneralAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteComponent, deps: [{ token: AutocompleteService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
694
- GuajiritosGeneralAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: GuajiritosGeneralAutocompleteComponent, selector: "guajiritos-general-autocomplete", inputs: { floatLabel: "floatLabel", bodyRequest: "bodyRequest", debounceTimeValue: "debounceTimeValue", detailsTemplate: "detailsTemplate", label: "label", placeholder: "placeholder", field: "field", filterString: "filterString", displayOptions: "displayOptions", withoutPaddingBottom: "withoutPaddingBottom", valueId: "valueId", order: "order", removeProperties: "removeProperties", disable: "disable", url: "url", clearData: "clearData", initialValue: "initialValue", restrictions: "restrictions", isRequired: "isRequired", doFocus: "doFocus" }, outputs: { SelectElement: "SelectElement" }, providers: [
695
- {
696
- provide: NG_VALUE_ACCESSOR,
697
- useExisting: forwardRef(() => GuajiritosGeneralAutocompleteComponent),
698
- multi: true
699
- }
700
- ], viewQueries: [{ propertyName: "inputText", first: true, predicate: ["inputText"], descendants: true, static: true }], ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" [ngClass]=\"{'without-padding-bottom': withoutPaddingBottom}\"\r\n appearance=\"outline\" class=\"w-100\" color=\"accent\">\r\n\r\n <mat-label>{{label | translate}}</mat-label>\r\n <input #inputText #trigger=\"matAutocompleteTrigger\" (blur)=\"onTouched()\" (focus)=\"onFocus()\"\r\n [formControl]=\"component\" [matAutocomplete]=\"autocomplete\" [placeholder]=\"placeholder | translate\"\r\n aria-label=\"Number\" autocomplete=\"off\" matInput type=\"text\">\r\n <button (click)=\"clear(trigger)\" *ngIf=\"!loading && component?.value\" [disabled]=\"disabledButton\" aria-label=\"Clear\"\r\n mat-icon-button matSuffix>\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n <button *ngIf=\"loading\" aria-label=\"Clear\" mat-icon-button matSuffix>\r\n <mat-spinner [value]=\"90\" color=\"accent\" diameter=\"25\"></mat-spinner>\r\n </button>\r\n <mat-autocomplete #autocomplete=\"matAutocomplete\" [displayWith]=\"displayFn\">\r\n <mat-option *ngFor=\"let option of filteredOptions\" [value]=\"option\"\r\n (onSelectionChange)=\"onSelectElement(option)\">\r\n\r\n <ng-container *ngIf=\"!displayOptions && !detailsTemplate\">\r\n {{ option?.name | i18nField: translateService.currentLang }}\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!detailsTemplate\">\r\n <div class=\"display-options\">\r\n <span [ngStyle]=\"{'line-height': displayOptions?.secondLabel ? '16px' : ''}\">\r\n {{option | resolvePropertyPath:displayOptions?.firthLabel | i18nField: translateService.currentLang}}\r\n </span>\r\n <span *ngIf=\"displayOptions?.secondLabel\" class=\"mat-caption\">\r\n {{option | resolvePropertyPath: displayOptions?.secondLabel | i18nField: translateService.currentLang}}\r\n </span>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"detailsTemplate\">\r\n <ng-container *ngTemplateOutlet=\"detailsTemplate;context:{$implicit: option }\"></ng-container>\r\n </ng-container>\r\n\r\n </mat-option>\r\n </mat-autocomplete>\r\n</mat-form-field>\r\n", styles: ["::ng-deep .without-padding-bottom .mat-form-field-wrapper{padding-bottom:0!important}.w-100{width:100%}.display-options{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i9.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i10.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i11.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i10.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: I18nFieldPipe, name: "i18nField" }, { kind: "pipe", type: ResolvePropertyPath, name: "resolvePropertyPath" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
701
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteComponent, decorators: [{
702
- type: Component,
703
- args: [{ selector: 'guajiritos-general-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
704
- {
705
- provide: NG_VALUE_ACCESSOR,
706
- useExisting: forwardRef(() => GuajiritosGeneralAutocompleteComponent),
707
- multi: true
708
- }
709
- ], template: "<mat-form-field [floatLabel]=\"floatLabel\" [ngClass]=\"{'without-padding-bottom': withoutPaddingBottom}\"\r\n appearance=\"outline\" class=\"w-100\" color=\"accent\">\r\n\r\n <mat-label>{{label | translate}}</mat-label>\r\n <input #inputText #trigger=\"matAutocompleteTrigger\" (blur)=\"onTouched()\" (focus)=\"onFocus()\"\r\n [formControl]=\"component\" [matAutocomplete]=\"autocomplete\" [placeholder]=\"placeholder | translate\"\r\n aria-label=\"Number\" autocomplete=\"off\" matInput type=\"text\">\r\n <button (click)=\"clear(trigger)\" *ngIf=\"!loading && component?.value\" [disabled]=\"disabledButton\" aria-label=\"Clear\"\r\n mat-icon-button matSuffix>\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n <button *ngIf=\"loading\" aria-label=\"Clear\" mat-icon-button matSuffix>\r\n <mat-spinner [value]=\"90\" color=\"accent\" diameter=\"25\"></mat-spinner>\r\n </button>\r\n <mat-autocomplete #autocomplete=\"matAutocomplete\" [displayWith]=\"displayFn\">\r\n <mat-option *ngFor=\"let option of filteredOptions\" [value]=\"option\"\r\n (onSelectionChange)=\"onSelectElement(option)\">\r\n\r\n <ng-container *ngIf=\"!displayOptions && !detailsTemplate\">\r\n {{ option?.name | i18nField: translateService.currentLang }}\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!detailsTemplate\">\r\n <div class=\"display-options\">\r\n <span [ngStyle]=\"{'line-height': displayOptions?.secondLabel ? '16px' : ''}\">\r\n {{option | resolvePropertyPath:displayOptions?.firthLabel | i18nField: translateService.currentLang}}\r\n </span>\r\n <span *ngIf=\"displayOptions?.secondLabel\" class=\"mat-caption\">\r\n {{option | resolvePropertyPath: displayOptions?.secondLabel | i18nField: translateService.currentLang}}\r\n </span>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"detailsTemplate\">\r\n <ng-container *ngTemplateOutlet=\"detailsTemplate;context:{$implicit: option }\"></ng-container>\r\n </ng-container>\r\n\r\n </mat-option>\r\n </mat-autocomplete>\r\n</mat-form-field>\r\n", styles: ["::ng-deep .without-padding-bottom .mat-form-field-wrapper{padding-bottom:0!important}.w-100{width:100%}.display-options{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}\n"] }]
710
- }], ctorParameters: function () { return [{ type: AutocompleteService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.TranslateService }]; }, propDecorators: { inputText: [{
711
- type: ViewChild,
712
- args: ['inputText', { static: true }]
713
- }], floatLabel: [{
714
- type: Input
715
- }], bodyRequest: [{
716
- type: Input
717
- }], debounceTimeValue: [{
718
- type: Input
719
- }], detailsTemplate: [{
720
- type: Input
721
- }], label: [{
722
- type: Input
723
- }], placeholder: [{
724
- type: Input
725
- }], field: [{
726
- type: Input
727
- }], filterString: [{
728
- type: Input
729
- }], displayOptions: [{
730
- type: Input
731
- }], withoutPaddingBottom: [{
732
- type: Input
733
- }], valueId: [{
734
- type: Input
735
- }], order: [{
736
- type: Input
737
- }], removeProperties: [{
738
- type: Input
739
- }], SelectElement: [{
740
- type: Output
741
- }], disable: [{
742
- type: Input
743
- }], url: [{
744
- type: Input
745
- }], clearData: [{
746
- type: Input
747
- }], initialValue: [{
748
- type: Input
749
- }], restrictions: [{
750
- type: Input
751
- }], isRequired: [{
752
- type: Input
753
- }], doFocus: [{
754
- type: Input
456
+ class GuajiritosGeneralAutocompleteComponent {
457
+ constructor(_autocompleteService, _cdRef, _zone, translateService) {
458
+ this._autocompleteService = _autocompleteService;
459
+ this._cdRef = _cdRef;
460
+ this._zone = _zone;
461
+ this.translateService = translateService;
462
+ this.unsubscribeAll$ = new Subject();
463
+ this.firstCall = true;
464
+ this.restrictionsFilters = [];
465
+ this.required = true;
466
+ this.component = new UntypedFormControl({
467
+ value: null, disabled: false
468
+ });
469
+ this.disabledButton = false;
470
+ this.loading = false;
471
+ /**
472
+ * Possible values 'never', 'auto' or 'always'
473
+ */
474
+ this.floatLabel = 'auto';
475
+ this.debounceTimeValue = 250;
476
+ this.label = 'Seleccione';
477
+ this.placeholder = 'Seleccione un elemento';
478
+ this.field = ['name'];
479
+ this.filterString = 'filter[$and][name][$like]';
480
+ this.displayOptions = GENERAL_DISPLAY_OPTIONS;
481
+ this.withoutPaddingBottom = true;
482
+ this.valueId = false;
483
+ this.order = null;
484
+ this.removeProperties = [];
485
+ this.SelectElement = new EventEmitter();
486
+ this.onChanged = () => {
487
+ };
488
+ this.onTouched = () => {
489
+ };
490
+ this.displayFn = (value) => {
491
+ var _a, _b;
492
+ if (value) {
493
+ if (typeof value === 'string') {
494
+ return value;
495
+ }
496
+ let displayText = '';
497
+ if (!this.displayOptions) {
498
+ this.displayOptions = GENERAL_DISPLAY_OPTIONS;
499
+ }
500
+ (_b = (_a = this.displayOptions) === null || _a === void 0 ? void 0 : _a.firthLabel) === null || _b === void 0 ? void 0 : _b.forEach((field) => {
501
+ if ((field === null || field === void 0 ? void 0 : field.type) === 'path') {
502
+ displayText += UtilsService.resolvePropertyByPath(value, field === null || field === void 0 ? void 0 : field.path);
503
+ }
504
+ else {
505
+ displayText += field === null || field === void 0 ? void 0 : field.divider;
506
+ }
507
+ });
508
+ return displayText;
509
+ }
510
+ };
511
+ }
512
+ set disable(flag) {
513
+ this.disabledButton = flag;
514
+ if (flag) {
515
+ this.component.disable();
516
+ }
517
+ else {
518
+ this.component.enable();
519
+ }
520
+ this._cdRef.detectChanges();
521
+ }
522
+ set url(data) {
523
+ if (data) {
524
+ this._url = data;
525
+ this.subscribeComponentChanges();
526
+ }
527
+ }
528
+ set clearData(value) {
529
+ this.clearData$ = value;
530
+ if (this.clearData$) {
531
+ this.clearData$
532
+ .pipe(takeUntil(this.unsubscribeAll$))
533
+ .subscribe({
534
+ next: () => {
535
+ this.component.setValue(null);
536
+ this.selectedElement = null;
537
+ this.SelectElement.emit(null);
538
+ this.filteredOptions = [];
539
+ this.onChanged(null);
540
+ }
541
+ });
542
+ }
543
+ }
544
+ set initialValue(value) {
545
+ this.component.setValue(value);
546
+ }
547
+ set restrictions(value) {
548
+ if (value) {
549
+ this.restrictionsFilters = value;
550
+ }
551
+ else {
552
+ this.restrictionsFilters = [];
553
+ }
554
+ }
555
+ set isRequired(value) {
556
+ this.required = value;
557
+ if (this.required) {
558
+ this.component.setValidators([Validators.required, GuajiritosGeneralAutocompleteComponent.ValidateAutocomplete]);
559
+ }
560
+ else {
561
+ this.component.clearValidators();
562
+ }
563
+ this.component.updateValueAndValidity();
564
+ }
565
+ get doFocus() {
566
+ return this.doFocusSubject$;
567
+ }
568
+ set doFocus(value) {
569
+ this.doFocusSubject$ = value;
570
+ if (value) {
571
+ this.doFocusSubject$
572
+ .pipe(takeUntil(this.unsubscribeAll$))
573
+ .subscribe({
574
+ next: () => {
575
+ this._zone.run(() => {
576
+ setTimeout(() => {
577
+ this.inputText.nativeElement.focus();
578
+ }, 500);
579
+ });
580
+ }
581
+ });
582
+ }
583
+ }
584
+ static ValidateAutocomplete(control) {
585
+ var _a, _b;
586
+ if (((_a = control === null || control === void 0 ? void 0 : control.value) === null || _a === void 0 ? void 0 : _a.constructor) !== Object || !((_b = control === null || control === void 0 ? void 0 : control.value) === null || _b === void 0 ? void 0 : _b.id)) {
587
+ return { invalidSelection: true };
588
+ }
589
+ return null;
590
+ }
591
+ subscribeComponentChanges() {
592
+ var _a, _b, _c;
593
+ (_c = (_b = (_a = this.component) === null || _a === void 0 ? void 0 : _a.valueChanges) === null || _b === void 0 ? void 0 : _b.pipe(debounceTime(this.debounceTimeValue), takeUntil(this.unsubscribeAll$))) === null || _c === void 0 ? void 0 : _c.subscribe({
594
+ next: () => {
595
+ if (!this.firstCall) {
596
+ this.getAutocompleteByTextHandler(this.getAutocompleteSearchText());
597
+ }
598
+ else {
599
+ this.firstCall = false;
600
+ }
601
+ }
602
+ });
603
+ }
604
+ getAutocompleteByTextHandler(text) {
605
+ this._autocompleteService
606
+ .getAutocompleteByText(this._url, text, this.filterString, this.restrictionsFilters, this.removeProperties, this.order, this.bodyRequest)
607
+ .then((resp) => {
608
+ resp === null || resp === void 0 ? void 0 : resp.subscribe({
609
+ next: (result) => {
610
+ var _a;
611
+ this.filteredOptions = ((_a = result === null || result === void 0 ? void 0 : result.payload) === null || _a === void 0 ? void 0 : _a.data) || (result === null || result === void 0 ? void 0 : result.data);
612
+ this.loading = false;
613
+ this._cdRef.detectChanges();
614
+ }
615
+ });
616
+ });
617
+ }
618
+ getAutocompleteSearchText() {
619
+ var _a, _b, _c;
620
+ this.loading = true;
621
+ let text = null;
622
+ if ((_a = this.component) === null || _a === void 0 ? void 0 : _a.value) {
623
+ if (typeof this.component.value === 'object') {
624
+ const componentValue = (_b = this.component) === null || _b === void 0 ? void 0 : _b.value[this.field[0]];
625
+ if (typeof componentValue === 'object') {
626
+ let lang = 'es';
627
+ if (this.field[1]) {
628
+ lang = this.field[1];
629
+ }
630
+ text = componentValue[lang];
631
+ }
632
+ }
633
+ else if (typeof ((_c = this.component) === null || _c === void 0 ? void 0 : _c.value) === 'string') {
634
+ text = this.component.value;
635
+ }
636
+ }
637
+ return text;
638
+ }
639
+ writeValue(value) {
640
+ if (value) {
641
+ if (typeof value === 'number') {
642
+ this.value = value;
643
+ }
644
+ else if (typeof value === 'object') {
645
+ this.component.setValue(value);
646
+ this.value = value.id;
647
+ }
648
+ else {
649
+ this.value = value;
650
+ }
651
+ }
652
+ else {
653
+ this.value = null;
654
+ }
655
+ this._cdRef.detectChanges();
656
+ }
657
+ registerOnChange(fn) {
658
+ this.onChanged = fn;
659
+ this._cdRef.detectChanges();
660
+ }
661
+ registerOnTouched(fn) {
662
+ this.onTouched = fn;
663
+ this._cdRef.detectChanges();
664
+ }
665
+ clear(trigger) {
666
+ this.component.setValue(null);
667
+ this.selectedElement = null;
668
+ this.SelectElement.emit(null);
669
+ this._cdRef.detectChanges();
670
+ this.onChanged(null);
671
+ this._zone.run(() => {
672
+ setTimeout(() => {
673
+ trigger.openPanel();
674
+ this._cdRef.detectChanges();
675
+ }, 200);
676
+ });
677
+ }
678
+ onFocus() {
679
+ this.getAutocompleteByTextHandler(this.getAutocompleteSearchText());
680
+ }
681
+ onSelectElement(item) {
682
+ this.selectedElement = item;
683
+ this.SelectElement.emit(item);
684
+ this.value = item;
685
+ if (this.valueId) {
686
+ this.onChanged(item === null || item === void 0 ? void 0 : item.id);
687
+ }
688
+ else {
689
+ this.onChanged(item);
690
+ }
691
+ this._cdRef.detectChanges();
692
+ }
693
+ ngOnInit() {
694
+ this.component.markAllAsTouched();
695
+ }
696
+ ngOnDestroy() {
697
+ this.unsubscribeAll$.next();
698
+ this.unsubscribeAll$.complete();
699
+ }
700
+ }
701
+ GuajiritosGeneralAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteComponent, deps: [{ token: AutocompleteService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
702
+ GuajiritosGeneralAutocompleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: GuajiritosGeneralAutocompleteComponent, selector: "guajiritos-general-autocomplete", inputs: { floatLabel: "floatLabel", bodyRequest: "bodyRequest", debounceTimeValue: "debounceTimeValue", detailsTemplate: "detailsTemplate", label: "label", placeholder: "placeholder", field: "field", filterString: "filterString", displayOptions: "displayOptions", withoutPaddingBottom: "withoutPaddingBottom", valueId: "valueId", order: "order", removeProperties: "removeProperties", disable: "disable", url: "url", clearData: "clearData", initialValue: "initialValue", restrictions: "restrictions", isRequired: "isRequired", doFocus: "doFocus" }, outputs: { SelectElement: "SelectElement" }, providers: [
703
+ {
704
+ provide: NG_VALUE_ACCESSOR,
705
+ useExisting: forwardRef(() => GuajiritosGeneralAutocompleteComponent),
706
+ multi: true
707
+ }
708
+ ], viewQueries: [{ propertyName: "inputText", first: true, predicate: ["inputText"], descendants: true, static: true }], ngImport: i0, template: "<mat-form-field [floatLabel]=\"floatLabel\" [ngClass]=\"{'without-padding-bottom': withoutPaddingBottom}\"\r\n appearance=\"outline\" class=\"w-100\" color=\"accent\">\r\n\r\n <mat-label>{{label | translate}}</mat-label>\r\n <input #inputText #trigger=\"matAutocompleteTrigger\" (blur)=\"onTouched()\" (focus)=\"onFocus()\"\r\n [formControl]=\"component\" [matAutocomplete]=\"autocomplete\" [placeholder]=\"placeholder | translate\"\r\n aria-label=\"Number\" autocomplete=\"off\" matInput type=\"text\">\r\n <button (click)=\"clear(trigger)\" *ngIf=\"!loading && component?.value\" [disabled]=\"disabledButton\" aria-label=\"Clear\"\r\n mat-icon-button matSuffix>\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n <button *ngIf=\"loading\" aria-label=\"Clear\" mat-icon-button matSuffix>\r\n <mat-spinner [value]=\"90\" color=\"accent\" diameter=\"25\"></mat-spinner>\r\n </button>\r\n <mat-autocomplete #autocomplete=\"matAutocomplete\" [displayWith]=\"displayFn\">\r\n <mat-option *ngFor=\"let option of filteredOptions\" [value]=\"option\"\r\n (onSelectionChange)=\"onSelectElement(option)\">\r\n\r\n <ng-container *ngIf=\"!displayOptions && !detailsTemplate\">\r\n {{ option?.name | i18nField: translateService.currentLang }}\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!detailsTemplate\">\r\n <div class=\"display-options\">\r\n <span [ngStyle]=\"{'line-height': displayOptions?.secondLabel ? '16px' : ''}\">\r\n {{option | resolvePropertyPath:displayOptions?.firthLabel | i18nField: translateService.currentLang}}\r\n </span>\r\n <span *ngIf=\"displayOptions?.secondLabel\" class=\"mat-caption\">\r\n {{option | resolvePropertyPath: displayOptions?.secondLabel | i18nField: translateService.currentLang}}\r\n </span>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"detailsTemplate\">\r\n <ng-container *ngTemplateOutlet=\"detailsTemplate;context:{$implicit: option }\"></ng-container>\r\n </ng-container>\r\n\r\n </mat-option>\r\n </mat-autocomplete>\r\n</mat-form-field>\r\n", styles: ["::ng-deep .without-padding-bottom .mat-form-field-wrapper{padding-bottom:0!important}.w-100{width:100%}.display-options{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}\n"], dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i9.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i10.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i11.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i10.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "pipe", type: I18nFieldPipe, name: "i18nField" }, { kind: "pipe", type: ResolvePropertyPath, name: "resolvePropertyPath" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
709
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteComponent, decorators: [{
710
+ type: Component,
711
+ args: [{ selector: 'guajiritos-general-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
712
+ {
713
+ provide: NG_VALUE_ACCESSOR,
714
+ useExisting: forwardRef(() => GuajiritosGeneralAutocompleteComponent),
715
+ multi: true
716
+ }
717
+ ], template: "<mat-form-field [floatLabel]=\"floatLabel\" [ngClass]=\"{'without-padding-bottom': withoutPaddingBottom}\"\r\n appearance=\"outline\" class=\"w-100\" color=\"accent\">\r\n\r\n <mat-label>{{label | translate}}</mat-label>\r\n <input #inputText #trigger=\"matAutocompleteTrigger\" (blur)=\"onTouched()\" (focus)=\"onFocus()\"\r\n [formControl]=\"component\" [matAutocomplete]=\"autocomplete\" [placeholder]=\"placeholder | translate\"\r\n aria-label=\"Number\" autocomplete=\"off\" matInput type=\"text\">\r\n <button (click)=\"clear(trigger)\" *ngIf=\"!loading && component?.value\" [disabled]=\"disabledButton\" aria-label=\"Clear\"\r\n mat-icon-button matSuffix>\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n <button *ngIf=\"loading\" aria-label=\"Clear\" mat-icon-button matSuffix>\r\n <mat-spinner [value]=\"90\" color=\"accent\" diameter=\"25\"></mat-spinner>\r\n </button>\r\n <mat-autocomplete #autocomplete=\"matAutocomplete\" [displayWith]=\"displayFn\">\r\n <mat-option *ngFor=\"let option of filteredOptions\" [value]=\"option\"\r\n (onSelectionChange)=\"onSelectElement(option)\">\r\n\r\n <ng-container *ngIf=\"!displayOptions && !detailsTemplate\">\r\n {{ option?.name | i18nField: translateService.currentLang }}\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"!detailsTemplate\">\r\n <div class=\"display-options\">\r\n <span [ngStyle]=\"{'line-height': displayOptions?.secondLabel ? '16px' : ''}\">\r\n {{option | resolvePropertyPath:displayOptions?.firthLabel | i18nField: translateService.currentLang}}\r\n </span>\r\n <span *ngIf=\"displayOptions?.secondLabel\" class=\"mat-caption\">\r\n {{option | resolvePropertyPath: displayOptions?.secondLabel | i18nField: translateService.currentLang}}\r\n </span>\r\n </div>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"detailsTemplate\">\r\n <ng-container *ngTemplateOutlet=\"detailsTemplate;context:{$implicit: option }\"></ng-container>\r\n </ng-container>\r\n\r\n </mat-option>\r\n </mat-autocomplete>\r\n</mat-form-field>\r\n", styles: ["::ng-deep .without-padding-bottom .mat-form-field-wrapper{padding-bottom:0!important}.w-100{width:100%}.display-options{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}\n"] }]
718
+ }], ctorParameters: function () { return [{ type: AutocompleteService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.TranslateService }]; }, propDecorators: { inputText: [{
719
+ type: ViewChild,
720
+ args: ['inputText', { static: true }]
721
+ }], floatLabel: [{
722
+ type: Input
723
+ }], bodyRequest: [{
724
+ type: Input
725
+ }], debounceTimeValue: [{
726
+ type: Input
727
+ }], detailsTemplate: [{
728
+ type: Input
729
+ }], label: [{
730
+ type: Input
731
+ }], placeholder: [{
732
+ type: Input
733
+ }], field: [{
734
+ type: Input
735
+ }], filterString: [{
736
+ type: Input
737
+ }], displayOptions: [{
738
+ type: Input
739
+ }], withoutPaddingBottom: [{
740
+ type: Input
741
+ }], valueId: [{
742
+ type: Input
743
+ }], order: [{
744
+ type: Input
745
+ }], removeProperties: [{
746
+ type: Input
747
+ }], SelectElement: [{
748
+ type: Output
749
+ }], disable: [{
750
+ type: Input
751
+ }], url: [{
752
+ type: Input
753
+ }], clearData: [{
754
+ type: Input
755
+ }], initialValue: [{
756
+ type: Input
757
+ }], restrictions: [{
758
+ type: Input
759
+ }], isRequired: [{
760
+ type: Input
761
+ }], doFocus: [{
762
+ type: Input
755
763
  }] } });
756
764
 
757
- class GuajiritosGeneralAutocompleteModule {
758
- }
759
- GuajiritosGeneralAutocompleteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
760
- GuajiritosGeneralAutocompleteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteModule, declarations: [GuajiritosGeneralAutocompleteComponent,
761
- DurationTimePipe,
762
- I18nFieldPipe,
763
- ResolvePropertyPath,
764
- HumanizeDurationPipe,
765
- IdaReturnPipe,
766
- ShowRolesPipe,
767
- ShowSegmentsPipe,
768
- ShowTransportTypesPipe], imports: [CommonModule,
769
- TranslateModule,
770
- FormsModule,
771
- ReactiveFormsModule,
772
- MatFormFieldModule,
773
- MatIconModule,
774
- MatProgressSpinnerModule,
775
- MatButtonModule,
776
- MatInputModule,
777
- MatAutocompleteModule], exports: [GuajiritosGeneralAutocompleteComponent] });
778
- GuajiritosGeneralAutocompleteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteModule, providers: [
779
- UpperCasePipe,
780
- CurrencyPipe,
781
- AutocompleteService,
782
- DurationTimePipe,
783
- I18nFieldPipe,
784
- ResolvePropertyPath,
785
- HumanizeDurationPipe,
786
- IdaReturnPipe,
787
- ShowRolesPipe,
788
- ShowSegmentsPipe,
789
- ShowTransportTypesPipe
790
- ], imports: [CommonModule,
791
- TranslateModule,
792
- FormsModule,
793
- ReactiveFormsModule,
794
- MatFormFieldModule,
795
- MatIconModule,
796
- MatProgressSpinnerModule,
797
- MatButtonModule,
798
- MatInputModule,
799
- MatAutocompleteModule] });
800
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteModule, decorators: [{
801
- type: NgModule,
802
- args: [{
803
- declarations: [
804
- GuajiritosGeneralAutocompleteComponent,
805
- DurationTimePipe,
806
- I18nFieldPipe,
807
- ResolvePropertyPath,
808
- HumanizeDurationPipe,
809
- IdaReturnPipe,
810
- ShowRolesPipe,
811
- ShowSegmentsPipe,
812
- ShowTransportTypesPipe
813
- ],
814
- imports: [
815
- CommonModule,
816
- TranslateModule,
817
- FormsModule,
818
- ReactiveFormsModule,
819
- MatFormFieldModule,
820
- MatIconModule,
821
- MatProgressSpinnerModule,
822
- MatButtonModule,
823
- MatInputModule,
824
- MatAutocompleteModule
825
- ],
826
- providers: [
827
- UpperCasePipe,
828
- CurrencyPipe,
829
- AutocompleteService,
830
- DurationTimePipe,
831
- I18nFieldPipe,
832
- ResolvePropertyPath,
833
- HumanizeDurationPipe,
834
- IdaReturnPipe,
835
- ShowRolesPipe,
836
- ShowSegmentsPipe,
837
- ShowTransportTypesPipe
838
- ],
839
- exports: [
840
- GuajiritosGeneralAutocompleteComponent
841
- ]
842
- }]
765
+ class GuajiritosGeneralAutocompleteModule {
766
+ }
767
+ GuajiritosGeneralAutocompleteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
768
+ GuajiritosGeneralAutocompleteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteModule, declarations: [GuajiritosGeneralAutocompleteComponent,
769
+ DurationTimePipe,
770
+ I18nFieldPipe,
771
+ ResolvePropertyPath,
772
+ HumanizeDurationPipe,
773
+ IdaReturnPipe,
774
+ ShowRolesPipe,
775
+ ShowSegmentsPipe,
776
+ ShowTransportTypesPipe], imports: [CommonModule,
777
+ TranslateModule,
778
+ FormsModule,
779
+ ReactiveFormsModule,
780
+ MatFormFieldModule,
781
+ MatIconModule,
782
+ MatProgressSpinnerModule,
783
+ MatButtonModule,
784
+ MatInputModule,
785
+ MatAutocompleteModule], exports: [GuajiritosGeneralAutocompleteComponent] });
786
+ GuajiritosGeneralAutocompleteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteModule, providers: [
787
+ UpperCasePipe,
788
+ CurrencyPipe,
789
+ AutocompleteService,
790
+ DurationTimePipe,
791
+ I18nFieldPipe,
792
+ ResolvePropertyPath,
793
+ HumanizeDurationPipe,
794
+ IdaReturnPipe,
795
+ ShowRolesPipe,
796
+ ShowSegmentsPipe,
797
+ ShowTransportTypesPipe
798
+ ], imports: [CommonModule,
799
+ TranslateModule,
800
+ FormsModule,
801
+ ReactiveFormsModule,
802
+ MatFormFieldModule,
803
+ MatIconModule,
804
+ MatProgressSpinnerModule,
805
+ MatButtonModule,
806
+ MatInputModule,
807
+ MatAutocompleteModule] });
808
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: GuajiritosGeneralAutocompleteModule, decorators: [{
809
+ type: NgModule,
810
+ args: [{
811
+ declarations: [
812
+ GuajiritosGeneralAutocompleteComponent,
813
+ DurationTimePipe,
814
+ I18nFieldPipe,
815
+ ResolvePropertyPath,
816
+ HumanizeDurationPipe,
817
+ IdaReturnPipe,
818
+ ShowRolesPipe,
819
+ ShowSegmentsPipe,
820
+ ShowTransportTypesPipe
821
+ ],
822
+ imports: [
823
+ CommonModule,
824
+ TranslateModule,
825
+ FormsModule,
826
+ ReactiveFormsModule,
827
+ MatFormFieldModule,
828
+ MatIconModule,
829
+ MatProgressSpinnerModule,
830
+ MatButtonModule,
831
+ MatInputModule,
832
+ MatAutocompleteModule
833
+ ],
834
+ providers: [
835
+ UpperCasePipe,
836
+ CurrencyPipe,
837
+ AutocompleteService,
838
+ DurationTimePipe,
839
+ I18nFieldPipe,
840
+ ResolvePropertyPath,
841
+ HumanizeDurationPipe,
842
+ IdaReturnPipe,
843
+ ShowRolesPipe,
844
+ ShowSegmentsPipe,
845
+ ShowTransportTypesPipe
846
+ ],
847
+ exports: [
848
+ GuajiritosGeneralAutocompleteComponent
849
+ ]
850
+ }]
843
851
  }] });
844
852
 
845
- /*
846
- * Public API Surface of guachos-general-autocomplete
853
+ /*
854
+ * Public API Surface of guachos-general-autocomplete
847
855
  */
848
856
 
849
- /**
850
- * Generated bundle index. Do not edit.
857
+ /**
858
+ * Generated bundle index. Do not edit.
851
859
  */
852
860
 
853
861
  export { CustomPipes, GENERAL_DISPLAY_OPTIONS, GuajiritosGeneralAutocompleteComponent, GuajiritosGeneralAutocompleteModule };