@guajiritos/general-autocomplete 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/guajiritos-general-autocomplete.mjs +4 -4
- package/esm2020/lib/guachos-general-autocomplete.component.mjs +327 -309
- package/esm2020/lib/guachos-general-autocomplete.module.mjs +108 -108
- package/esm2020/public-api.mjs +7 -7
- package/esm2020/utils/constants/contacts.mjs +9 -9
- package/esm2020/utils/interfaces/interfaces.mjs +11 -11
- package/esm2020/utils/pipes/duration.pipe.mjs +17 -17
- package/esm2020/utils/pipes/humanize-duration.pipe.mjs +16 -16
- package/esm2020/utils/pipes/i18n-field.pipe.mjs +27 -27
- package/esm2020/utils/pipes/ida-return.pipe.mjs +22 -22
- package/esm2020/utils/pipes/resolve-property-path.pipe.mjs +79 -79
- package/esm2020/utils/pipes/show-roles.pipe.mjs +23 -23
- package/esm2020/utils/pipes/show-segments.pipe.mjs +23 -23
- package/esm2020/utils/pipes/show-transport-types.pipe.mjs +23 -23
- package/esm2020/utils/services/autocomplete.service.mjs +161 -161
- package/esm2020/utils/services/utils.service.mjs +47 -47
- package/fesm2015/guajiritos-general-autocomplete.mjs +802 -784
- package/fesm2015/guajiritos-general-autocomplete.mjs.map +1 -1
- package/fesm2020/guajiritos-general-autocomplete.mjs +798 -780
- package/fesm2020/guajiritos-general-autocomplete.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/guachos-general-autocomplete.component.d.ts +72 -72
- package/lib/guachos-general-autocomplete.module.d.ts +24 -24
- package/package.json +3 -2
- package/public-api.d.ts +4 -4
- package/utils/constants/contacts.d.ts +2 -2
- package/utils/interfaces/interfaces.d.ts +33 -33
- package/utils/pipes/duration.pipe.d.ts +8 -8
- package/utils/pipes/humanize-duration.pipe.d.ts +7 -7
- package/utils/pipes/i18n-field.pipe.d.ts +7 -7
- package/utils/pipes/ida-return.pipe.d.ts +8 -8
- package/utils/pipes/resolve-property-path.pipe.d.ts +24 -24
- package/utils/pipes/show-roles.pipe.d.ts +8 -8
- package/utils/pipes/show-segments.pipe.d.ts +8 -8
- package/utils/pipes/show-transport-types.pipe.d.ts +8 -8
- package/utils/services/autocomplete.service.d.ts +15 -15
- package/utils/services/utils.service.d.ts +25 -25
@@ -1,8 +1,8 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class DurationTimePipe implements PipeTransform {
|
4
|
-
transform(value: number): string;
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DurationTimePipe, never>;
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DurationTimePipe, "durationTime", false>;
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DurationTimePipe>;
|
8
|
-
}
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class DurationTimePipe implements PipeTransform {
|
4
|
+
transform(value: number): string;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DurationTimePipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DurationTimePipe, "durationTime", false>;
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DurationTimePipe>;
|
8
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class HumanizeDurationPipe implements PipeTransform {
|
4
|
-
transform(input: string): string;
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HumanizeDurationPipe, never>;
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<HumanizeDurationPipe, "humanizeDuration", false>;
|
7
|
-
}
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class HumanizeDurationPipe implements PipeTransform {
|
4
|
+
transform(input: string): string;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HumanizeDurationPipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HumanizeDurationPipe, "humanizeDuration", false>;
|
7
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class I18nFieldPipe implements PipeTransform {
|
4
|
-
transform(value: any, lang: string): string;
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<I18nFieldPipe, never>;
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<I18nFieldPipe, "i18nField", false>;
|
7
|
-
}
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class I18nFieldPipe implements PipeTransform {
|
4
|
+
transform(value: any, lang: string): string;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I18nFieldPipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<I18nFieldPipe, "i18nField", false>;
|
7
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class IdaReturnPipe implements PipeTransform {
|
4
|
-
transform(value: string): any;
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IdaReturnPipe, never>;
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<IdaReturnPipe, "idaReturn", false>;
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IdaReturnPipe>;
|
8
|
-
}
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class IdaReturnPipe implements PipeTransform {
|
4
|
+
transform(value: string): any;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IdaReturnPipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IdaReturnPipe, "idaReturn", false>;
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IdaReturnPipe>;
|
8
|
+
}
|
@@ -1,24 +1,24 @@
|
|
1
|
-
import { CurrencyPipe, UpperCasePipe } from '@angular/common';
|
2
|
-
import { PipeTransform } from '@angular/core';
|
3
|
-
import { DurationTimePipe } from './duration.pipe';
|
4
|
-
import { HumanizeDurationPipe } from './humanize-duration.pipe';
|
5
|
-
import { IdaReturnPipe } from './ida-return.pipe';
|
6
|
-
import { ShowRolesPipe } from './show-roles.pipe';
|
7
|
-
import { ShowSegmentsPipe } from './show-segments.pipe';
|
8
|
-
import { ShowTransportTypesPipe } from './show-transport-types.pipe';
|
9
|
-
import { DisplayOptionItem } from "../interfaces/interfaces";
|
10
|
-
import * as i0 from "@angular/core";
|
11
|
-
export declare class ResolvePropertyPath implements PipeTransform {
|
12
|
-
private _showSegmentPipe;
|
13
|
-
private _showRolesPipe;
|
14
|
-
private _showTransportTypesPipe;
|
15
|
-
private _idaReturnPipe;
|
16
|
-
private _currencyPipe;
|
17
|
-
private _humanizeDurationPipe;
|
18
|
-
private _upperCasePipe;
|
19
|
-
private _durationPipe;
|
20
|
-
constructor(_showSegmentPipe: ShowSegmentsPipe, _showRolesPipe: ShowRolesPipe, _showTransportTypesPipe: ShowTransportTypesPipe, _idaReturnPipe: IdaReturnPipe, _currencyPipe: CurrencyPipe, _humanizeDurationPipe: HumanizeDurationPipe, _upperCasePipe: UpperCasePipe, _durationPipe: DurationTimePipe);
|
21
|
-
transform(obj: any, path: DisplayOptionItem[]): string;
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ResolvePropertyPath, never>;
|
23
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ResolvePropertyPath, "resolvePropertyPath", false>;
|
24
|
-
}
|
1
|
+
import { CurrencyPipe, UpperCasePipe } from '@angular/common';
|
2
|
+
import { PipeTransform } from '@angular/core';
|
3
|
+
import { DurationTimePipe } from './duration.pipe';
|
4
|
+
import { HumanizeDurationPipe } from './humanize-duration.pipe';
|
5
|
+
import { IdaReturnPipe } from './ida-return.pipe';
|
6
|
+
import { ShowRolesPipe } from './show-roles.pipe';
|
7
|
+
import { ShowSegmentsPipe } from './show-segments.pipe';
|
8
|
+
import { ShowTransportTypesPipe } from './show-transport-types.pipe';
|
9
|
+
import { DisplayOptionItem } from "../interfaces/interfaces";
|
10
|
+
import * as i0 from "@angular/core";
|
11
|
+
export declare class ResolvePropertyPath implements PipeTransform {
|
12
|
+
private _showSegmentPipe;
|
13
|
+
private _showRolesPipe;
|
14
|
+
private _showTransportTypesPipe;
|
15
|
+
private _idaReturnPipe;
|
16
|
+
private _currencyPipe;
|
17
|
+
private _humanizeDurationPipe;
|
18
|
+
private _upperCasePipe;
|
19
|
+
private _durationPipe;
|
20
|
+
constructor(_showSegmentPipe: ShowSegmentsPipe, _showRolesPipe: ShowRolesPipe, _showTransportTypesPipe: ShowTransportTypesPipe, _idaReturnPipe: IdaReturnPipe, _currencyPipe: CurrencyPipe, _humanizeDurationPipe: HumanizeDurationPipe, _upperCasePipe: UpperCasePipe, _durationPipe: DurationTimePipe);
|
21
|
+
transform(obj: any, path: DisplayOptionItem[]): string;
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResolvePropertyPath, never>;
|
23
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ResolvePropertyPath, "resolvePropertyPath", false>;
|
24
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class ShowRolesPipe implements PipeTransform {
|
4
|
-
transform(value: any[]): any;
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShowRolesPipe, never>;
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ShowRolesPipe, "showSegments", false>;
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShowRolesPipe>;
|
8
|
-
}
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class ShowRolesPipe implements PipeTransform {
|
4
|
+
transform(value: any[]): any;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowRolesPipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ShowRolesPipe, "showSegments", false>;
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShowRolesPipe>;
|
8
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class ShowSegmentsPipe implements PipeTransform {
|
4
|
-
transform(value: any[]): any;
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShowSegmentsPipe, never>;
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ShowSegmentsPipe, "showSegments", false>;
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShowSegmentsPipe>;
|
8
|
-
}
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class ShowSegmentsPipe implements PipeTransform {
|
4
|
+
transform(value: any[]): any;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowSegmentsPipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ShowSegmentsPipe, "showSegments", false>;
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShowSegmentsPipe>;
|
8
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class ShowTransportTypesPipe implements PipeTransform {
|
4
|
-
transform(value: any[]): any;
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShowTransportTypesPipe, never>;
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ShowTransportTypesPipe, "showTransportTypes", false>;
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ShowTransportTypesPipe>;
|
8
|
-
}
|
1
|
+
import { PipeTransform } from '@angular/core';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class ShowTransportTypesPipe implements PipeTransform {
|
4
|
+
transform(value: any[]): any;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShowTransportTypesPipe, never>;
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ShowTransportTypesPipe, "showTransportTypes", false>;
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShowTransportTypesPipe>;
|
8
|
+
}
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { ApiFormData, RestrictionFilter } from '../interfaces/interfaces';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export declare class AutocompleteService {
|
6
|
-
private _httpClient;
|
7
|
-
constructor(_httpClient: HttpClient);
|
8
|
-
private httpOptions;
|
9
|
-
private processParams;
|
10
|
-
private processFilterString;
|
11
|
-
private createObjectFilters;
|
12
|
-
getAutocompleteByText(url: string, text?: string, field?: string[] | string, restrictions?: RestrictionFilter[], removeProperties?: string[], order?: string, bodyRequest?: ApiFormData): Promise<Observable<any>>;
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteService, never>;
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AutocompleteService>;
|
15
|
-
}
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import { ApiFormData, RestrictionFilter } from '../interfaces/interfaces';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class AutocompleteService {
|
6
|
+
private _httpClient;
|
7
|
+
constructor(_httpClient: HttpClient);
|
8
|
+
private httpOptions;
|
9
|
+
private processParams;
|
10
|
+
private processFilterString;
|
11
|
+
private createObjectFilters;
|
12
|
+
getAutocompleteByText(url: string, text?: string, field?: string[] | string, restrictions?: RestrictionFilter[], removeProperties?: string[], order?: string, bodyRequest?: ApiFormData): Promise<Observable<any>>;
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteService, never>;
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AutocompleteService>;
|
15
|
+
}
|
@@ -1,25 +1,25 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
export declare class UtilsService {
|
3
|
-
/**
|
4
|
-
* Convierte el tiempo pasado por parámetro en horas y minutos
|
5
|
-
*
|
6
|
-
* @param time - Tiempo
|
7
|
-
* @returns Devuelve las horas y minutos
|
8
|
-
*/
|
9
|
-
private static getTime;
|
10
|
-
/**
|
11
|
-
* Devuelve el tiempo en formato 'hh:mm'
|
12
|
-
*
|
13
|
-
* @param time - Tiempo
|
14
|
-
*/
|
15
|
-
static getTimePretty(time: number): string;
|
16
|
-
/**
|
17
|
-
* Devuelve el tiempo en formato 'hhh : mmm'
|
18
|
-
*
|
19
|
-
* @param time - Tiempo
|
20
|
-
*/
|
21
|
-
static humanizeDuration(time: number | string): string;
|
22
|
-
static resolvePropertyByPath(obj: any, path: string[]): any;
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
25
|
-
}
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class UtilsService {
|
3
|
+
/**
|
4
|
+
* Convierte el tiempo pasado por parámetro en horas y minutos
|
5
|
+
*
|
6
|
+
* @param time - Tiempo
|
7
|
+
* @returns Devuelve las horas y minutos
|
8
|
+
*/
|
9
|
+
private static getTime;
|
10
|
+
/**
|
11
|
+
* Devuelve el tiempo en formato 'hh:mm'
|
12
|
+
*
|
13
|
+
* @param time - Tiempo
|
14
|
+
*/
|
15
|
+
static getTimePretty(time: number): string;
|
16
|
+
/**
|
17
|
+
* Devuelve el tiempo en formato 'hhh : mmm'
|
18
|
+
*
|
19
|
+
* @param time - Tiempo
|
20
|
+
*/
|
21
|
+
static humanizeDuration(time: number | string): string;
|
22
|
+
static resolvePropertyByPath(obj: any, path: string[]): any;
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
25
|
+
}
|