@po-ui/ng-components 16.7.0 → 16.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/po-listbox/po-listbox.component.mjs +58 -73
- package/esm2022/lib/components/po-loading/po-loading-base.component.mjs +24 -2
- package/esm2022/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.mjs +21 -2
- package/esm2022/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.mjs +4 -4
- package/esm2022/lib/components/po-loading/po-loading.component.mjs +15 -12
- package/esm2022/lib/components/po-progress/enums/po-progress-size.enum.mjs +13 -0
- package/esm2022/lib/components/po-progress/index.mjs +2 -1
- package/esm2022/lib/components/po-progress/literals/po-progress.literals.mjs +19 -0
- package/esm2022/lib/components/po-progress/po-progress-bar/po-progress-bar.component.mjs +24 -9
- package/esm2022/lib/components/po-progress/po-progress-base.component.mjs +39 -2
- package/esm2022/lib/components/po-progress/po-progress.component.mjs +77 -54
- package/esm2022/lib/components/po-progress/po-progress.module.mjs +7 -4
- package/esm2022/lib/components/po-search/enum/po-search-filter-mode.enum.mjs +17 -0
- package/esm2022/lib/components/po-search/index.mjs +3 -2
- package/esm2022/lib/components/po-search/literals/po-search-literals-default.mjs +19 -0
- package/esm2022/lib/components/po-search/literals/po-search-literals.mjs +1 -1
- package/esm2022/lib/components/po-search/po-search-base.component.mjs +177 -10
- package/esm2022/lib/components/po-search/po-search.component.mjs +52 -48
- package/esm2022/lib/components/po-table/po-table-base.component.mjs +8 -3
- package/esm2022/lib/components/po-table/po-table.component.mjs +200 -182
- package/esm2022/lib/components/po-table/po-table.module.mjs +3 -3
- package/fesm2022/po-ui-ng-components.mjs +885 -544
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-loading/po-loading-base.component.d.ts +15 -1
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.d.ts +13 -1
- package/lib/components/po-progress/enums/po-progress-size.enum.d.ts +11 -0
- package/lib/components/po-progress/index.d.ts +1 -0
- package/lib/components/po-progress/literals/po-progress.literals.d.ts +18 -0
- package/lib/components/po-progress/po-progress-base.component.d.ts +30 -3
- package/lib/components/po-progress/po-progress.component.d.ts +5 -1
- package/lib/components/po-progress/po-progress.module.d.ts +4 -1
- package/lib/components/po-search/{po-search-filter-mode.enum.d.ts → enum/po-search-filter-mode.enum.d.ts} +2 -2
- package/lib/components/po-search/index.d.ts +2 -1
- package/lib/components/po-search/literals/po-search-literals-default.d.ts +7 -0
- package/lib/components/po-search/literals/po-search-literals.d.ts +11 -1
- package/lib/components/po-search/po-search-base.component.d.ts +140 -5
- package/lib/components/po-search/po-search.component.d.ts +23 -8
- package/lib/components/po-table/po-table-base.component.d.ts +5 -2
- package/lib/components/po-table/po-table.component.d.ts +4 -1
- package/package.json +4 -4
- package/po-ui-ng-components-16.9.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/esm2022/lib/components/po-search/po-search-filter-mode.enum.mjs +0 -17
- package/po-ui-ng-components-16.7.0.tgz +0 -0
|
@@ -18,13 +18,27 @@ export declare const poLoadingLiteralsDefault: {
|
|
|
18
18
|
export declare class PoLoadingBaseComponent {
|
|
19
19
|
private languageService;
|
|
20
20
|
private _text?;
|
|
21
|
+
private _size?;
|
|
21
22
|
/**
|
|
22
23
|
* Texto a ser exibido no componente.
|
|
23
24
|
*/
|
|
24
25
|
set text(value: string);
|
|
25
26
|
get text(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Define o tamanho do ícone.
|
|
29
|
+
*
|
|
30
|
+
* @default `lg`
|
|
31
|
+
*
|
|
32
|
+
* Valores válidos:
|
|
33
|
+
* - `xs`: tamanho `extra small`
|
|
34
|
+
* - `sm`: tamanho `small`
|
|
35
|
+
* - `md`: tamanho `medium`
|
|
36
|
+
* - `lg`: tamanho `large`
|
|
37
|
+
*/
|
|
38
|
+
set size(value: string);
|
|
39
|
+
get size(): string;
|
|
26
40
|
constructor(languageService: PoLanguageService);
|
|
27
41
|
private getTextDefault;
|
|
28
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoLoadingBaseComponent, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoLoadingBaseComponent, never, never, { "text": { "alias": "p-text"; "required": false; }; }, {}, never, never, false, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoLoadingBaseComponent, never, never, { "text": { "alias": "p-text"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
44
|
}
|
|
@@ -18,6 +18,7 @@ export declare class PoLoadingOverlayBaseComponent {
|
|
|
18
18
|
private languageService;
|
|
19
19
|
private _screenLock?;
|
|
20
20
|
private _text?;
|
|
21
|
+
private _size?;
|
|
21
22
|
/**
|
|
22
23
|
* @optional
|
|
23
24
|
*
|
|
@@ -55,8 +56,19 @@ export declare class PoLoadingOverlayBaseComponent {
|
|
|
55
56
|
*/
|
|
56
57
|
set text(value: string);
|
|
57
58
|
get text(): string;
|
|
59
|
+
/**
|
|
60
|
+
* @optional
|
|
61
|
+
*
|
|
62
|
+
* @description
|
|
63
|
+
*
|
|
64
|
+
* Define o tamnho do componente.
|
|
65
|
+
*
|
|
66
|
+
* @default `lg`
|
|
67
|
+
*/
|
|
68
|
+
set size(value: string | null);
|
|
69
|
+
get size(): string;
|
|
58
70
|
constructor(languageService: PoLanguageService);
|
|
59
71
|
private getTextDefault;
|
|
60
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoLoadingOverlayBaseComponent, never>;
|
|
61
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoLoadingOverlayBaseComponent, never, never, { "screenLock": { "alias": "p-screen-lock"; "required": false; }; "text": { "alias": "p-text"; "required": false; }; }, {}, never, never, false, never>;
|
|
73
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoLoadingOverlayBaseComponent, never, never, { "screenLock": { "alias": "p-screen-lock"; "required": false; }; "text": { "alias": "p-text"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, {}, never, never, false, never>;
|
|
62
74
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const poProgressLiterals: {
|
|
2
|
+
en: {
|
|
3
|
+
cancel: string;
|
|
4
|
+
retry: string;
|
|
5
|
+
};
|
|
6
|
+
es: {
|
|
7
|
+
cancel: string;
|
|
8
|
+
retry: string;
|
|
9
|
+
};
|
|
10
|
+
pt: {
|
|
11
|
+
cancel: string;
|
|
12
|
+
retry: string;
|
|
13
|
+
};
|
|
14
|
+
ru: {
|
|
15
|
+
cancel: string;
|
|
16
|
+
retry: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import { PoProgressStatus } from './enums/po-progress-status.enum';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -26,7 +26,7 @@ export declare class PoProgressBaseComponent {
|
|
|
26
26
|
*
|
|
27
27
|
* Exemplo: `po-icon-ok`.
|
|
28
28
|
*/
|
|
29
|
-
infoIcon?: string
|
|
29
|
+
infoIcon?: string | TemplateRef<void>;
|
|
30
30
|
/**
|
|
31
31
|
* @optional
|
|
32
32
|
*
|
|
@@ -72,6 +72,7 @@ export declare class PoProgressBaseComponent {
|
|
|
72
72
|
retry: EventEmitter<any>;
|
|
73
73
|
private _indeterminate?;
|
|
74
74
|
private _value?;
|
|
75
|
+
private _size;
|
|
75
76
|
/**
|
|
76
77
|
* @optional
|
|
77
78
|
*
|
|
@@ -100,7 +101,33 @@ export declare class PoProgressBaseComponent {
|
|
|
100
101
|
*/
|
|
101
102
|
set value(value: number);
|
|
102
103
|
get value(): number;
|
|
104
|
+
/**
|
|
105
|
+
* @optional
|
|
106
|
+
*
|
|
107
|
+
* @description
|
|
108
|
+
*
|
|
109
|
+
* Definição do tamanho da altura da barra de progresso.
|
|
110
|
+
*
|
|
111
|
+
* Valores válidos:
|
|
112
|
+
* - `medium`: tamanho médio
|
|
113
|
+
* - `large`: tamanho grande
|
|
114
|
+
*
|
|
115
|
+
* @default `large`
|
|
116
|
+
*/
|
|
117
|
+
set size(value: string);
|
|
118
|
+
get size(): string;
|
|
119
|
+
/**
|
|
120
|
+
* @optional
|
|
121
|
+
*
|
|
122
|
+
* @description
|
|
123
|
+
*
|
|
124
|
+
* Ativa a exibição da porcentagem atual da barra de progresso.
|
|
125
|
+
*
|
|
126
|
+
* @default `false`
|
|
127
|
+
*/
|
|
128
|
+
showPercentage: boolean;
|
|
103
129
|
private isProgressRangeValue;
|
|
104
130
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoProgressBaseComponent, never>;
|
|
105
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoProgressBaseComponent, never, never, { "info": { "alias": "p-info"; "required": false; }; "infoIcon": { "alias": "p-info-icon"; "required": false; }; "status": { "alias": "p-status"; "required": false; }; "text": { "alias": "p-text"; "required": false; }; "indeterminate": { "alias": "p-indeterminate"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; }, { "cancel": "p-cancel"; "retry": "p-retry"; }, never, never, false, never>;
|
|
131
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoProgressBaseComponent, never, never, { "info": { "alias": "p-info"; "required": false; }; "infoIcon": { "alias": "p-info-icon"; "required": false; }; "status": { "alias": "p-status"; "required": false; }; "text": { "alias": "p-text"; "required": false; }; "indeterminate": { "alias": "p-indeterminate"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "showPercentage": { "alias": "p-show-percentage"; "required": false; }; }, { "cancel": "p-cancel"; "retry": "p-retry"; }, never, never, false, never>;
|
|
132
|
+
static ngAcceptInputType_showPercentage: any;
|
|
106
133
|
}
|
|
@@ -20,10 +20,14 @@ import * as i0 from "@angular/core";
|
|
|
20
20
|
* </example>
|
|
21
21
|
*/
|
|
22
22
|
export declare class PoProgressComponent extends PoProgressBaseComponent {
|
|
23
|
+
language: any;
|
|
24
|
+
literals: any;
|
|
23
25
|
get isAllowCancel(): boolean;
|
|
24
|
-
get
|
|
26
|
+
get isAllowInfoError(): boolean;
|
|
25
27
|
get isAllowRetry(): boolean;
|
|
26
28
|
get statusClass(): string;
|
|
29
|
+
private poLanguageService;
|
|
30
|
+
ngOnInit(): void;
|
|
27
31
|
emitCancellation(): void;
|
|
28
32
|
emitRetry(): void;
|
|
29
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoProgressComponent, never>;
|
|
@@ -2,6 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./po-progress-bar/po-progress-bar.component";
|
|
3
3
|
import * as i2 from "./po-progress.component";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "../po-button/po-button.module";
|
|
6
|
+
import * as i5 from "../po-icon/po-icon.module";
|
|
7
|
+
import * as i6 from "../po-label/po-label.module";
|
|
5
8
|
/**
|
|
6
9
|
* @description
|
|
7
10
|
*
|
|
@@ -9,6 +12,6 @@ import * as i3 from "@angular/common";
|
|
|
9
12
|
*/
|
|
10
13
|
export declare class PoProgressModule {
|
|
11
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoProgressModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoProgressModule, [typeof i1.PoProgressBarComponent, typeof i2.PoProgressComponent], [typeof i3.CommonModule], [typeof i2.PoProgressComponent]>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoProgressModule, [typeof i1.PoProgressBarComponent, typeof i2.PoProgressComponent], [typeof i3.CommonModule, typeof i4.PoButtonModule, typeof i5.PoIconModule, typeof i6.PoLabelModule], [typeof i2.PoProgressComponent]>;
|
|
13
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoProgressModule>;
|
|
14
17
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @description
|
|
5
5
|
*
|
|
6
|
-
* Define o tipo de busca usado no po-
|
|
6
|
+
* Define o tipo de busca usado no po-search.
|
|
7
7
|
*/
|
|
8
|
-
export declare enum
|
|
8
|
+
export declare enum PoSearchFilterMode {
|
|
9
9
|
/** Verifica se o texto *inicia* com o valor pesquisado. */
|
|
10
10
|
startsWith = 0,
|
|
11
11
|
/** Verifica se o texto *contém* o valor pesquisado. */
|
|
@@ -6,7 +6,17 @@ export interface PoSearchLiterals {
|
|
|
6
6
|
*
|
|
7
7
|
* @description
|
|
8
8
|
*
|
|
9
|
-
* search: Texto exibido no *placeholder* do filtro do componente
|
|
9
|
+
* search: Texto exibido no *placeholder* do filtro do componente `po-search`.
|
|
10
10
|
*/
|
|
11
11
|
search?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @usedBy PoSearchComponent
|
|
14
|
+
*
|
|
15
|
+
* @optional
|
|
16
|
+
*
|
|
17
|
+
* @description
|
|
18
|
+
*
|
|
19
|
+
* search: Texto usado no leitor de tela para acessibilidade.
|
|
20
|
+
*/
|
|
21
|
+
clean?: string;
|
|
12
22
|
}
|
|
@@ -1,15 +1,150 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
2
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
3
|
+
import { PoSearchLiterals } from './literals/po-search-literals';
|
|
4
|
+
import { PoSearchFilterMode } from './enum/po-search-filter-mode.enum';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @description
|
|
8
|
+
*
|
|
9
|
+
* O componente search, também conhecido como barra de pesquisa, é utilizado para ajudar os usuários a localizar um determinado conteúdo
|
|
10
|
+
*
|
|
11
|
+
* Normalmente localizado no canto superior direito, junto com o ícone de lupa, uma vez que este ícone é amplamente reconhecido.
|
|
12
|
+
*
|
|
13
|
+
* Portanto, é de extrema importância que, ao utilizar este componente, as pessoas responsáveis por seu desenvolvimento considerem os seguintes critérios.
|
|
14
|
+
*
|
|
15
|
+
* #### Boas práticas
|
|
16
|
+
*
|
|
17
|
+
* Foram estruturados os padrões de usabilidade para auxiliar na utilização do componente e garantir uma boa experiência aos usuários. Por isso, é muito importante que ao utilizar este componente, as pessoas que o projetarem devem levar em consideração os seguintes critérios:
|
|
18
|
+
* - Utilize labels para apresentar resultados que estão sendo exibidos e apresente os resultados mais relevantes primeiro.
|
|
19
|
+
* - Exiba uma mensagem clara quando não forem encontrados resultados para busca e sempre que possível ofereça outras sugestões de busca.
|
|
20
|
+
* - Mantenha o texto original no campo de input, que facilita a ação do usuário caso queira fazer uma nova busca com alguma modificação na pesquisa.
|
|
21
|
+
* - Caso seja possível detectar um erro de digitação, mostre os resultados para a palavra "corrigida", isso evita a frustração de não obter resultados e não força o usuário a realizar uma nova busca.
|
|
22
|
+
* - Quando apropriado, destaque os termos da busca nos resultados.
|
|
23
|
+
* - A entrada do campo de pesquisa deve caber em uma linha. Não use entradas de pesquisa de várias linhas.
|
|
24
|
+
* - Recomenda-se ter apenas uma pesquisa por página. Se você precisar de várias pesquisas, rotule-as claramente para indicar sua finalidade.
|
|
25
|
+
* - Se possível, forneça sugestões de pesquisa, seja em um helptext ou sugestão de pesquisa que é um autocomplete. Isso ajuda os usuários a encontrar o que estão procurando, especialmente se os itens pesquisáveis forem complexos.
|
|
26
|
+
*
|
|
27
|
+
* #### Acessibilidade tratada no componente
|
|
28
|
+
*
|
|
29
|
+
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo proprietário do conteúdo. São elas:
|
|
30
|
+
*
|
|
31
|
+
* - Permitir a interação via teclado (2.1.1: Keyboard (A));
|
|
32
|
+
* - Alteração entre os estados precisa ser indicada por mais de um elemento além da cor (1.4.1: Use of Color);
|
|
33
|
+
*/
|
|
4
34
|
export declare class PoSearchBaseComponent {
|
|
35
|
+
private _literals?;
|
|
36
|
+
private _ariaLabel?;
|
|
37
|
+
private language;
|
|
38
|
+
/**
|
|
39
|
+
* @optional
|
|
40
|
+
*
|
|
41
|
+
* @description
|
|
42
|
+
*
|
|
43
|
+
* Desabilita o po-search e não permite que o usuário interaja com o mesmo.
|
|
44
|
+
*
|
|
45
|
+
* @default `false`
|
|
46
|
+
*/
|
|
5
47
|
disabled?: boolean;
|
|
6
|
-
|
|
48
|
+
/**
|
|
49
|
+
* @optional
|
|
50
|
+
*
|
|
51
|
+
* @description
|
|
52
|
+
*
|
|
53
|
+
* Lista de itens que serão utilizados para pesquisa
|
|
54
|
+
*/
|
|
7
55
|
items: Array<any>;
|
|
56
|
+
/**
|
|
57
|
+
* @optional
|
|
58
|
+
*
|
|
59
|
+
* @description
|
|
60
|
+
*
|
|
61
|
+
* Define um aria-label para o po-search.
|
|
62
|
+
*
|
|
63
|
+
* > Devido o componente não possuir uma label assim como outros campos de texto, o `aria-label` é utilizado para acessibilidade.
|
|
64
|
+
*/
|
|
65
|
+
set ariaLabel(value: string);
|
|
66
|
+
get ariaLabel(): string;
|
|
67
|
+
/**
|
|
68
|
+
* @optional
|
|
69
|
+
*
|
|
70
|
+
* @description
|
|
71
|
+
*
|
|
72
|
+
* Deve ser informado o nome da propriedade do objeto que será utilizado para a conversão dos itens apresentados na lista do componente (p-items), esta propriedade será responsável pelo texto de apresentação de cada item da lista.
|
|
73
|
+
*/
|
|
8
74
|
filterKeys: Array<any>;
|
|
9
|
-
|
|
75
|
+
/**
|
|
76
|
+
* @optional
|
|
77
|
+
*
|
|
78
|
+
* @description
|
|
79
|
+
*
|
|
80
|
+
* Deve ser informado o nome da propriedade do objeto que será utilizado para a conversão dos itens apresentados na lista do componente (p-items), esta propriedade será responsável pelo texto de apresentação de cada item da lista.
|
|
81
|
+
*/
|
|
82
|
+
icon: string | TemplateRef<void>;
|
|
83
|
+
/**
|
|
84
|
+
* @optional
|
|
85
|
+
*
|
|
86
|
+
* @description
|
|
87
|
+
*
|
|
88
|
+
* Objeto com as literais usadas no `po-search`.
|
|
89
|
+
*
|
|
90
|
+
* Para utilizar basta passar a literal que deseja customizar:
|
|
91
|
+
*
|
|
92
|
+
* ```
|
|
93
|
+
* const customLiterals: PoSearchLiterals = {
|
|
94
|
+
* search: 'Pesquisar',
|
|
95
|
+
* clean: 'Limpar',
|
|
96
|
+
* };
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* E para carregar a literal customizada, basta apenas passar o objeto para o componente.
|
|
100
|
+
*
|
|
101
|
+
* ```
|
|
102
|
+
* <po-search
|
|
103
|
+
* [p-literals]="customLiterals">
|
|
104
|
+
* </po-search>
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* > O objeto padrão de literais será traduzido de acordo com o idioma do
|
|
108
|
+
* [`PoI18nService`](/documentation/po-i18n) ou do browser.
|
|
109
|
+
*/
|
|
110
|
+
set literals(value: PoSearchLiterals);
|
|
111
|
+
get literals(): PoSearchLiterals;
|
|
112
|
+
/**
|
|
113
|
+
* @optional
|
|
114
|
+
*
|
|
115
|
+
* @description
|
|
116
|
+
*
|
|
117
|
+
* Define o modo de pesquisa utilizado no campo de busca, quando habilitado. Valores definidos no enum: PoSearchFilterMode
|
|
118
|
+
*
|
|
119
|
+
* @default `startsWith`
|
|
120
|
+
*/
|
|
121
|
+
filterType: PoSearchFilterMode;
|
|
122
|
+
/**
|
|
123
|
+
* @optional
|
|
124
|
+
*
|
|
125
|
+
* @description
|
|
126
|
+
*
|
|
127
|
+
* Evento disparado ao alterar valor do model.
|
|
128
|
+
*/
|
|
129
|
+
changeModel: EventEmitter<any>;
|
|
130
|
+
/**
|
|
131
|
+
* @optional
|
|
132
|
+
*
|
|
133
|
+
* @description
|
|
134
|
+
*
|
|
135
|
+
* Pode ser informada uma função que será disparada quando houver alterações no input.
|
|
136
|
+
*/
|
|
10
137
|
filteredItemsChange: EventEmitter<any[]>;
|
|
138
|
+
/**
|
|
139
|
+
* @optional
|
|
140
|
+
*
|
|
141
|
+
* @description
|
|
142
|
+
*
|
|
143
|
+
* Pode ser informada uma função que será disparada quando houver alterações nos filtros.
|
|
144
|
+
*/
|
|
11
145
|
filter: EventEmitter<any>;
|
|
146
|
+
constructor(languageService: PoLanguageService);
|
|
12
147
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoSearchBaseComponent, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoSearchBaseComponent, never, never, { "disabled": { "alias": "p-disabled"; "required": false; }; "
|
|
148
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoSearchBaseComponent, never, never, { "disabled": { "alias": "p-disabled"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "ariaLabel": { "alias": "p-aria-label"; "required": false; }; "filterKeys": { "alias": "p-filter-keys"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "filterType": { "alias": "p-filter-type"; "required": false; }; }, { "changeModel": "p-change-model"; "filteredItemsChange": "p-filtered-items-change"; "filter": "p-filter"; }, never, never, false, never>;
|
|
14
149
|
static ngAcceptInputType_disabled: any;
|
|
15
150
|
}
|
|
@@ -1,20 +1,35 @@
|
|
|
1
1
|
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
3
|
-
import { PoSearchLiterals } from './literals/po-search-literals';
|
|
4
3
|
import { PoSearchBaseComponent } from './po-search-base.component';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @docsExtends PoSearchBaseComponent
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
*
|
|
10
|
+
* <example name="po-search-basic" title="PO Search Basic">
|
|
11
|
+
* <file name="sample-po-search-basic/sample-po-search-basic.component.html"> </file>
|
|
12
|
+
* <file name="sample-po-search-basic/sample-po-search-basic.component.ts"> </file>
|
|
13
|
+
* </example>
|
|
14
|
+
*
|
|
15
|
+
* <example name="po-search-labs" title="PO Search Labs">
|
|
16
|
+
* <file name="sample-po-search-labs/sample-po-search-labs.component.html"> </file>
|
|
17
|
+
* <file name="sample-po-search-labs/sample-po-search-labs.component.ts"> </file>
|
|
18
|
+
* <file name="sample-po-search-labs/sample-po-search-labs.service.ts"> </file>
|
|
19
|
+
* </example>
|
|
20
|
+
*
|
|
21
|
+
* <example name="po-search-find-people" title="PO Search Find People">
|
|
22
|
+
* <file name="sample-po-search-find-people/sample-po-search-find-people.component.html"> </file>
|
|
23
|
+
* <file name="sample-po-search-find-people/sample-po-search-find-people.component.ts"> </file>
|
|
24
|
+
* <file name="sample-po-search-find-people/sample-po-search-find-people.service.ts"> </file>
|
|
25
|
+
* </example>
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
12
28
|
export declare class PoSearchComponent extends PoSearchBaseComponent implements OnInit {
|
|
13
29
|
languageService: PoLanguageService;
|
|
14
30
|
private renderer;
|
|
15
31
|
poSearchInput: ElementRef;
|
|
16
32
|
filteredItems: Array<any>;
|
|
17
|
-
literals?: any;
|
|
18
33
|
constructor(languageService: PoLanguageService, renderer: Renderer2);
|
|
19
34
|
ngOnInit(): void;
|
|
20
35
|
clearSearch(): void;
|
|
@@ -2,7 +2,7 @@ import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { PoDateService } from '../../services/po-date/po-date.service';
|
|
4
4
|
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
5
|
-
import {
|
|
5
|
+
import { PoSearchFilterMode } from '../po-search/enum/po-search-filter-mode.enum';
|
|
6
6
|
import { PoTableColumnSpacing } from './enums/po-table-spacing.enum';
|
|
7
7
|
import { PoTableAction } from './interfaces/po-table-action.interface';
|
|
8
8
|
import { PoTableColumnSort } from './interfaces/po-table-column-sort.interface';
|
|
@@ -212,7 +212,7 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
|
|
|
212
212
|
*
|
|
213
213
|
* @default `startsWith`
|
|
214
214
|
*/
|
|
215
|
-
filterType:
|
|
215
|
+
filterType: PoSearchFilterMode;
|
|
216
216
|
/**
|
|
217
217
|
* @optional
|
|
218
218
|
*
|
|
@@ -345,6 +345,7 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
|
|
|
345
345
|
itemsSelected: Array<any>;
|
|
346
346
|
paramsFilter: {};
|
|
347
347
|
filteredItems: Array<any>;
|
|
348
|
+
initialized: boolean;
|
|
348
349
|
private initialVisibleColumns;
|
|
349
350
|
private _spacing;
|
|
350
351
|
private _filteredColumns;
|
|
@@ -694,6 +695,8 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
|
|
|
694
695
|
private removePropertyFixed;
|
|
695
696
|
protected abstract calculateHeightTableContainer(height: any): any;
|
|
696
697
|
protected abstract checkInfiniteScroll(): any;
|
|
698
|
+
protected abstract changeSizeLoading(): any;
|
|
699
|
+
protected abstract changeHeaderWidth(): any;
|
|
697
700
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTableBaseComponent, never>;
|
|
698
701
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PoTableBaseComponent, never, never, { "hideTextOverflow": { "alias": "p-hide-text-overflow"; "required": false; }; "hideColumnsManager": { "alias": "p-hide-columns-manager"; "required": false; }; "hideBatchActions": { "alias": "p-hide-batch-actions"; "required": false; }; "hideActionFixedColumns": { "alias": "p-hide-action-fixed-columns"; "required": false; }; "hideTableSearch": { "alias": "p-hide-table-search"; "required": false; }; "autoCollapse": { "alias": "p-auto-collapse"; "required": false; }; "loadingShowMore": { "alias": "p-loading-show-more"; "required": false; }; "sort": { "alias": "p-sort"; "required": false; }; "showMoreDisabled": { "alias": "p-show-more-disabled"; "required": false; }; "striped": { "alias": "p-striped"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "selectableEntireLine": { "alias": "p-selectable-entire-line"; "required": false; }; "actionRight": { "alias": "p-actions-right"; "required": false; }; "maxColumns": { "alias": "p-max-columns"; "required": false; }; "filterType": { "alias": "p-filter-type"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "columns": { "alias": "p-columns"; "required": false; }; "container": { "alias": "p-container"; "required": false; }; "paramDeleteApi": { "alias": "p-param-delete-api"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "hideDetail": { "alias": "p-hide-detail"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "loading": { "alias": "p-loading"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "serviceApi": { "alias": "p-service-api"; "required": false; }; "serviceDeleteApi": { "alias": "p-service-delete"; "required": false; }; "spacing": { "alias": "p-spacing"; "required": false; }; "filteredColumns": { "alias": "p-filtered-columns"; "required": false; }; "draggable": { "alias": "p-draggable"; "required": false; }; }, { "allSelected": "p-all-selected"; "allUnselected": "p-all-unselected"; "collapsed": "p-collapsed"; "expanded": "p-expanded"; "eventDelete": "p-delete-items"; "selected": "p-selected"; "showMore": "p-show-more"; "sortBy": "p-sort-by"; "unselected": "p-unselected"; "changeVisibleColumns": "p-change-visible-columns"; "columnRestoreManager": "p-restore-column-manager"; }, never, never, false, never>;
|
|
699
702
|
static ngAcceptInputType_hideTextOverflow: any;
|
|
@@ -108,6 +108,8 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
|
|
|
108
108
|
inputFieldValue: string;
|
|
109
109
|
JSON: JSON;
|
|
110
110
|
newOrderColumns: Array<PoTableColumn>;
|
|
111
|
+
sizeLoading: string;
|
|
112
|
+
headerWidth: number;
|
|
111
113
|
close: PoModalAction;
|
|
112
114
|
confirm: PoModalAction;
|
|
113
115
|
private _columnManagerTarget;
|
|
@@ -115,7 +117,6 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
|
|
|
115
117
|
private differ;
|
|
116
118
|
private footerHeight;
|
|
117
119
|
private headerHeight;
|
|
118
|
-
private initialized;
|
|
119
120
|
private timeoutResize;
|
|
120
121
|
private visibleElement;
|
|
121
122
|
private scrollEvent$;
|
|
@@ -144,6 +145,7 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
|
|
|
144
145
|
get isDraggable(): boolean;
|
|
145
146
|
get inverseOfTranslation(): string;
|
|
146
147
|
ngOnInit(): void;
|
|
148
|
+
changeHeaderWidth(): void;
|
|
147
149
|
ngAfterViewInit(): void;
|
|
148
150
|
showMoreInfiniteScroll({ target }: {
|
|
149
151
|
target: any;
|
|
@@ -277,6 +279,7 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
|
|
|
277
279
|
protected verifyCalculateHeightTableContainer(): void;
|
|
278
280
|
protected checkInfiniteScroll(): void;
|
|
279
281
|
private changesAfterDelete;
|
|
282
|
+
protected changeSizeLoading(): void;
|
|
280
283
|
private checkChangesItems;
|
|
281
284
|
private checkingIfColumnHasTooltip;
|
|
282
285
|
private debounceResize;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.9.0",
|
|
4
4
|
"tag": "next",
|
|
5
5
|
"description": "PO UI - Components",
|
|
6
6
|
"author": "PO UI",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@angular/cdk": "~16.2.0",
|
|
25
|
-
"@po-ui/style": "16.
|
|
26
|
-
"@po-ui/ng-schematics": "16.
|
|
25
|
+
"@po-ui/style": "16.9.0",
|
|
26
|
+
"@po-ui/ng-schematics": "16.9.0",
|
|
27
27
|
"tslib": "^2.3.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@angular/platform-browser": "~16.2.0",
|
|
37
37
|
"@angular/platform-browser-dynamic": "~16.2.0",
|
|
38
38
|
"@angular/router": "~16.2.0",
|
|
39
|
-
"@po-ui/style": "16.
|
|
39
|
+
"@po-ui/style": "16.9.0",
|
|
40
40
|
"rxjs": "~7.5.5",
|
|
41
41
|
"zone.js": "~0.13.1"
|
|
42
42
|
},
|
|
Binary file
|
|
@@ -18,7 +18,7 @@ function default_1(options) {
|
|
|
18
18
|
exports.default = default_1;
|
|
19
19
|
function addPoPackageAndInstall() {
|
|
20
20
|
return (tree, context) => {
|
|
21
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '16.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '16.9.0');
|
|
22
22
|
// install packages
|
|
23
23
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
24
24
|
};
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.9.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -10,7 +10,7 @@ const changes_1 = require("./changes");
|
|
|
10
10
|
const httpClientModuleName = 'HttpClientModule';
|
|
11
11
|
const httpClientModuleSourcePath = '@angular/common/http';
|
|
12
12
|
function default_1() {
|
|
13
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.
|
|
13
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
14
14
|
}
|
|
15
15
|
exports.default = default_1;
|
|
16
16
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.9.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -10,7 +10,7 @@ const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
|
10
10
|
const changes_1 = require("./changes");
|
|
11
11
|
function updateToV2() {
|
|
12
12
|
return (0, schematics_1.chain)([
|
|
13
|
-
updatePackageJson('16.
|
|
13
|
+
updatePackageJson('16.9.0', changes_1.dependeciesChanges),
|
|
14
14
|
(0, replace_1.replaceInFile)('tslint.json', changes_1.tsLintReplaces),
|
|
15
15
|
(0, replace_1.replaceInFile)('angular.json', changes_1.angularJsonReplaces),
|
|
16
16
|
createUpgradeRule(),
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function updateToV3() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
exports.updateToV3 = updateToV3;
|
|
13
13
|
function postUpdate() {
|
|
@@ -6,7 +6,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
exports.default = default_1;
|
|
12
12
|
function postUpdate() {
|
|
@@ -6,7 +6,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
exports.default = default_1;
|
|
12
12
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('16.9.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|