@po-ui/ng-components 14.5.0 → 14.7.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/esm2020/lib/components/components.module.mjs +14 -7
- package/esm2020/lib/components/index.mjs +2 -1
- package/esm2020/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.mjs +1 -1
- package/esm2020/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.mjs +5 -5
- package/esm2020/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-field.interface.mjs +1 -1
- package/esm2020/lib/components/po-field/index.mjs +2 -1
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox-base.component.mjs +27 -2
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox-size.enum.mjs +15 -0
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox.component.mjs +4 -4
- package/esm2020/lib/components/po-field/po-lookup/interfaces/po-lookup-column.interface.mjs +1 -1
- package/esm2020/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.mjs +2 -2
- package/esm2020/lib/components/po-field/po-select/po-select.component.mjs +5 -1
- package/esm2020/lib/components/po-link/index.mjs +3 -0
- package/esm2020/lib/components/po-link/po-link-base.component.mjs +54 -0
- package/esm2020/lib/components/po-link/po-link.component.mjs +40 -0
- package/esm2020/lib/components/po-link/po-link.module.mjs +24 -0
- package/esm2020/lib/components/po-table/interfaces/po-table-column.interface.mjs +1 -1
- package/esm2020/lib/components/po-table/po-table-detail/po-table-detail-column.interface.mjs +1 -1
- package/esm2020/lib/components/po-table/po-table.component.mjs +355 -356
- package/esm2020/lib/services/po-language/po-language.service.mjs +3 -1
- package/fesm2015/po-ui-ng-components.mjs +523 -355
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +513 -355
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/components.module.d.ts +2 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.d.ts +3 -3
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-field.interface.d.ts +7 -4
- package/lib/components/po-field/index.d.ts +1 -0
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +18 -1
- package/lib/components/po-field/po-checkbox/po-checkbox-size.enum.d.ts +13 -0
- package/lib/components/po-field/po-lookup/interfaces/po-lookup-column.interface.d.ts +1 -1
- package/lib/components/po-field/po-select/po-select.component.d.ts +2 -1
- package/lib/components/po-link/index.d.ts +2 -0
- package/lib/components/po-link/po-link-base.component.d.ts +37 -0
- package/lib/components/po-link/po-link.component.d.ts +26 -0
- package/lib/components/po-link/po-link.module.d.ts +13 -0
- package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +1 -1
- package/lib/components/po-table/po-table-detail/po-table-detail-column.interface.d.ts +1 -1
- package/package.json +4 -4
- package/po-ui-ng-components-14.7.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/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/po-ui-ng-components-14.5.0.tgz +0 -0
|
@@ -35,8 +35,9 @@ import * as i33 from "./po-tag/po-tag.module";
|
|
|
35
35
|
import * as i34 from "./po-toolbar/po-toolbar.module";
|
|
36
36
|
import * as i35 from "./po-tree-view/po-tree-view.module";
|
|
37
37
|
import * as i36 from "./po-widget/po-widget.module";
|
|
38
|
+
import * as i37 from "./po-link/po-link.module";
|
|
38
39
|
export declare class PoComponentsModule {
|
|
39
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoComponentsModule, never>;
|
|
40
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoComponentsModule, never, [typeof i1.PoAccordionModule, typeof i2.PoAvatarModule, typeof i3.PoBreadcrumbModule, typeof i4.PoButtonModule, typeof i5.PoButtonGroupModule, typeof i6.PoCalendarModule, typeof i7.PoChartModule, typeof i8.PoContainerModule, typeof i9.PoDisclaimerGroupModule, typeof i10.PoDisclaimerModule, typeof i11.PoDividerModule, typeof i12.PoDropdownModule, typeof i13.PoDynamicModule, typeof i14.PoFieldModule, typeof i15.PoGaugeModule, typeof i16.PoGridModule, typeof i17.PoIconModule, typeof i18.PoInfoModule, typeof i19.PoListViewModule, typeof i20.PoLoadingModule, typeof i21.PoMenuModule, typeof i22.PoMenuPanelModule, typeof i23.PoModalModule, typeof i24.PoNavbarModule, typeof i25.PoPageModule, typeof i26.PoPopoverModule, typeof i27.PoPopupModule, typeof i28.PoProgressModule, typeof i29.PoSlideModule, typeof i30.PoStepperModule, typeof i31.PoTableModule, typeof i32.PoTabsModule, typeof i33.PoTagModule, typeof i34.PoToolbarModule, typeof i35.PoTreeViewModule, typeof i36.PoWidgetModule], [typeof i1.PoAccordionModule, typeof i2.PoAvatarModule, typeof i3.PoBreadcrumbModule, typeof i4.PoButtonModule, typeof i5.PoButtonGroupModule, typeof i6.PoCalendarModule, typeof i7.PoChartModule, typeof i8.PoContainerModule, typeof i9.PoDisclaimerGroupModule, typeof i10.PoDisclaimerModule, typeof i11.PoDividerModule, typeof i12.PoDropdownModule, typeof i13.PoDynamicModule, typeof i14.PoFieldModule, typeof i15.PoGaugeModule, typeof i16.PoGridModule, typeof i17.PoIconModule, typeof i18.PoInfoModule, typeof i19.PoListViewModule, typeof i20.PoLoadingModule, typeof i21.PoMenuModule, typeof i22.PoMenuPanelModule, typeof i23.PoModalModule, typeof i24.PoNavbarModule, typeof i25.PoPageModule, typeof i26.PoPopoverModule, typeof i27.PoPopupModule, typeof i28.PoProgressModule, typeof i29.PoSlideModule, typeof i30.PoStepperModule, typeof i31.PoTableModule, typeof i32.PoTabsModule, typeof i33.PoTagModule, typeof i34.PoToolbarModule, typeof i35.PoTreeViewModule, typeof i36.PoWidgetModule]>;
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoComponentsModule, never, [typeof i1.PoAccordionModule, typeof i2.PoAvatarModule, typeof i3.PoBreadcrumbModule, typeof i4.PoButtonModule, typeof i5.PoButtonGroupModule, typeof i6.PoCalendarModule, typeof i7.PoChartModule, typeof i8.PoContainerModule, typeof i9.PoDisclaimerGroupModule, typeof i10.PoDisclaimerModule, typeof i11.PoDividerModule, typeof i12.PoDropdownModule, typeof i13.PoDynamicModule, typeof i14.PoFieldModule, typeof i15.PoGaugeModule, typeof i16.PoGridModule, typeof i17.PoIconModule, typeof i18.PoInfoModule, typeof i19.PoListViewModule, typeof i20.PoLoadingModule, typeof i21.PoMenuModule, typeof i22.PoMenuPanelModule, typeof i23.PoModalModule, typeof i24.PoNavbarModule, typeof i25.PoPageModule, typeof i26.PoPopoverModule, typeof i27.PoPopupModule, typeof i28.PoProgressModule, typeof i29.PoSlideModule, typeof i30.PoStepperModule, typeof i31.PoTableModule, typeof i32.PoTabsModule, typeof i33.PoTagModule, typeof i34.PoToolbarModule, typeof i35.PoTreeViewModule, typeof i36.PoWidgetModule, typeof i37.PoLinkModule], [typeof i1.PoAccordionModule, typeof i2.PoAvatarModule, typeof i3.PoBreadcrumbModule, typeof i4.PoButtonModule, typeof i5.PoButtonGroupModule, typeof i6.PoCalendarModule, typeof i7.PoChartModule, typeof i8.PoContainerModule, typeof i9.PoDisclaimerGroupModule, typeof i10.PoDisclaimerModule, typeof i11.PoDividerModule, typeof i12.PoDropdownModule, typeof i13.PoDynamicModule, typeof i14.PoFieldModule, typeof i15.PoGaugeModule, typeof i16.PoGridModule, typeof i17.PoIconModule, typeof i18.PoInfoModule, typeof i19.PoListViewModule, typeof i20.PoLoadingModule, typeof i21.PoMenuModule, typeof i22.PoMenuPanelModule, typeof i23.PoModalModule, typeof i24.PoNavbarModule, typeof i25.PoPageModule, typeof i26.PoPopoverModule, typeof i27.PoPopupModule, typeof i28.PoProgressModule, typeof i29.PoSlideModule, typeof i30.PoStepperModule, typeof i31.PoTableModule, typeof i32.PoTabsModule, typeof i33.PoTagModule, typeof i34.PoToolbarModule, typeof i35.PoTreeViewModule, typeof i36.PoWidgetModule, typeof i37.PoLinkModule]>;
|
|
41
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoComponentsModule>;
|
|
42
43
|
}
|
|
@@ -41,7 +41,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
41
41
|
*
|
|
42
42
|
* **Componentes compatíveis:** `po-select`, `po-radio-group`, `po-checkbox-group`, `po-multiselect`.
|
|
43
43
|
* */
|
|
44
|
-
options?: Array<string> | Array<PoSelectOption> | Array<PoMultiselectOption> | Array<PoCheckboxGroupOption>;
|
|
44
|
+
options?: Array<string> | Array<PoSelectOption> | Array<PoMultiselectOption> | Array<PoCheckboxGroupOption> | Array<any>;
|
|
45
45
|
/**
|
|
46
46
|
* Permite que o usuário faça múltipla seleção dentro da lista de opções.
|
|
47
47
|
*/
|
|
@@ -222,7 +222,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
222
222
|
*
|
|
223
223
|
* O valor padrão é: `label`.
|
|
224
224
|
*
|
|
225
|
-
* > Esta propriedade pode ser utilizada em conjunto com: `optionsService` e `searchService`.
|
|
225
|
+
* > Esta propriedade pode ser utilizada em conjunto com: `options`, `optionsService` e `searchService`.
|
|
226
226
|
*/
|
|
227
227
|
fieldLabel?: string;
|
|
228
228
|
/**
|
|
@@ -230,7 +230,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
230
230
|
*
|
|
231
231
|
* O valor padrão é: `value`.
|
|
232
232
|
*
|
|
233
|
-
* > Esta propriedade pode ser utilizada em conjunto com: `optionsService` e `searchService`.
|
|
233
|
+
* > Esta propriedade pode ser utilizada em conjunto com: `options`, `optionsService` e `searchService`.
|
|
234
234
|
*/
|
|
235
235
|
fieldValue?: string;
|
|
236
236
|
/**
|
|
@@ -16,9 +16,12 @@ export interface PoDynamicViewField extends PoDynamicField {
|
|
|
16
16
|
*/
|
|
17
17
|
tag?: boolean;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* Determina a cor da tag. As maneiras de customizar as cores são:
|
|
20
|
+
* - Hexadeximal, por exemplo `#c64840`;
|
|
21
|
+
* - RGB, como `rgb(0, 0, 165)`;
|
|
22
|
+
* - O nome da cor, por exemplo `blue`;
|
|
23
|
+
* - Usando uma das cores do tema do PO:
|
|
24
|
+
* - Valores válidos:
|
|
22
25
|
* - <span class="dot po-color-01"></span> `color-01`
|
|
23
26
|
* - <span class="dot po-color-02"></span> `color-02`
|
|
24
27
|
* - <span class="dot po-color-03"></span> `color-03`
|
|
@@ -59,7 +62,7 @@ export interface PoDynamicViewField extends PoDynamicField {
|
|
|
59
62
|
* [**CurrencyPipe**](https://angular.io/api/common/CurrencyPipe)
|
|
60
63
|
* + Exemplos: 'BRL', 'USD'.
|
|
61
64
|
* - `date`: Aceita valores definidos para a propriedade `format` do [**DatePipe**](https://angular.io/api/common/DatePipe)
|
|
62
|
-
* e também aceita os caracteres de dia(dd), mês(MM
|
|
65
|
+
* e também aceita os caracteres de dia(dd), mês(MM) e ano (yyyy ou yy),
|
|
63
66
|
* caso não seja informado um formato o mesmo será 'dd/MM/yyyy'. Exemplos: 'dd/MM/yyyy', 'dd-MM-yy', 'mm/dd/yyyy'.
|
|
64
67
|
* - `time`: Aceita apenas os caracteres de hora(HH), minutos(mm), segundos(ss) e
|
|
65
68
|
* milisegundos(f-ffffff), os milisegundos são opcionais, caso não seja informado um formato o mesmo será
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './po-checkbox/po-checkbox.component';
|
|
2
|
+
export * from './po-checkbox/po-checkbox-size.enum';
|
|
2
3
|
export * from './po-checkbox-group/interfaces/po-checkbox-group-option.interface';
|
|
3
4
|
export * from './po-checkbox-group/po-checkbox-group.component';
|
|
4
5
|
export * from './po-clean/po-clean.component';
|
|
@@ -62,6 +62,23 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
62
62
|
*/
|
|
63
63
|
set disabled(value: boolean);
|
|
64
64
|
get disabled(): boolean;
|
|
65
|
+
private _size?;
|
|
66
|
+
/**
|
|
67
|
+
* @optional
|
|
68
|
+
*
|
|
69
|
+
* @description
|
|
70
|
+
*
|
|
71
|
+
* Define o tamanho do *checkbox*
|
|
72
|
+
*
|
|
73
|
+
* Valores válidos:
|
|
74
|
+
* - `medium`: o `po-checkbox` fica do tamanho padrão, com 24px de altura.;
|
|
75
|
+
* - `large`: o `po-checkbox` fica maior, com 32px de altura.;
|
|
76
|
+
*
|
|
77
|
+
* @default `medium`
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
set size(value: string);
|
|
81
|
+
get size(): string;
|
|
65
82
|
changeValue(): void;
|
|
66
83
|
checkOption(value: boolean | null | string): void;
|
|
67
84
|
setDisabledState(isDisabled: boolean): void;
|
|
@@ -70,5 +87,5 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
70
87
|
writeValue(value: any): void;
|
|
71
88
|
protected abstract changeModelValue(value: boolean | null): any;
|
|
72
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoCheckboxBaseComponent, never>;
|
|
73
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoCheckboxBaseComponent, never, never, { "name": "name"; "autoFocus": "p-auto-focus"; "label": "p-label"; "checkboxValue": "p-checkboxValue"; "checkBoxRequired": "p-required"; "disabled": "p-disabled"; }, { "change": "p-change"; }, never, never, false>;
|
|
90
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoCheckboxBaseComponent, never, never, { "name": "name"; "autoFocus": "p-auto-focus"; "label": "p-label"; "checkboxValue": "p-checkboxValue"; "checkBoxRequired": "p-required"; "disabled": "p-disabled"; "size": "p-size"; }, { "change": "p-change"; }, never, never, false>;
|
|
74
91
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @usedBy PoCheckboxComponent
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
*
|
|
6
|
+
* Enum para definir o tamanho do po-checkbox.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum PoCheckboxSize {
|
|
9
|
+
/** A caixa de seleção fica do tamanho padrão, com 24px de altura. */
|
|
10
|
+
medium = "medium",
|
|
11
|
+
/** A caixa de seleção fica maior, com 32px de altura. */
|
|
12
|
+
large = "large"
|
|
13
|
+
}
|
|
@@ -19,7 +19,7 @@ export interface PoLookupColumn {
|
|
|
19
19
|
/**
|
|
20
20
|
* Formato de exibição do valor da coluna:
|
|
21
21
|
* - Formato para moeda (currency). Exemplos: 'BRL', 'USD'.
|
|
22
|
-
* - Formato para data (date): aceita apenas os caracteres de dia(dd), mês(MM
|
|
22
|
+
* - Formato para data (date): aceita apenas os caracteres de dia(dd), mês(MM) e ano (yyyy ou yy),
|
|
23
23
|
* valor padrão é 'dd/MM/yyyy'. Exemplos: 'dd/MM/yyyy', 'dd-MM-yy', 'mm/dd/yyyy'.
|
|
24
24
|
*/
|
|
25
25
|
format?: string;
|
|
@@ -78,7 +78,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
|
|
|
78
78
|
displayValue: any;
|
|
79
79
|
modelValue: any;
|
|
80
80
|
selectedValue: any;
|
|
81
|
-
onModelTouched: any;
|
|
81
|
+
protected onModelTouched: any;
|
|
82
82
|
private differ;
|
|
83
83
|
private _fieldLabel?;
|
|
84
84
|
private _fieldValue?;
|
|
@@ -151,6 +151,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
|
|
|
151
151
|
extraValidation(c: AbstractControl): {
|
|
152
152
|
[key: string]: any;
|
|
153
153
|
};
|
|
154
|
+
registerOnTouched(fn: any): void;
|
|
154
155
|
private isEqual;
|
|
155
156
|
private findOptionValue;
|
|
156
157
|
private validateOptions;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* @description
|
|
4
|
+
*
|
|
5
|
+
* Os links são utilizados como rota. O destino dessa rota pode ser externo ou interno à aplicação. Eles podem ser usados dentro de texto ou isoladamente.
|
|
6
|
+
*
|
|
7
|
+
* #### Boas Práticas
|
|
8
|
+
*
|
|
9
|
+
* O componente link foi projetado para atender os requisitos das Diretrizes de Acessibilidade para Conteúdo Web (WCAG) 2.1. Também foram estruturadas padrões de usabilidade para auxiliar na utilização do componente e garantir uma boa experiência para os usuários. Por isso, é muito importante que, ao aplicar esse componente, o proprietário do conteúdo leve em consideração alguns critérios e práticas:
|
|
10
|
+
* ##### Uso
|
|
11
|
+
* - Evite usar muitos links em uma única tela, pois isso pode confundir o usuário quanto a identificação e rotas.
|
|
12
|
+
* - Em caso de interações que alteram ou manipulam dados ou acionam alguma ação, priorize o uso de botões ao invés de link.
|
|
13
|
+
* - Use labels (rótulos) que descrevam a finalidade do link. Evite texto como "Clique aqui", por exemplo. (WCAG [2.4.9: Link Purpose - Link Only](https://www.w3.org/WAI/WCAG21/Understanding/link-purpose-link-only))
|
|
14
|
+
* - Não use cores para o link com baixo contraste entre o fundo e o texto, pois isso dificulta o entendimento do conteúdo. É possível conferir se o contraste está adequado e atingindo o valor de 7:1 em um [Contrast Checker](https://webaim.org/resources/contrastchecker/) (WCAG [1.4.6: Contrast](https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html))
|
|
15
|
+
*
|
|
16
|
+
* ##### Interação
|
|
17
|
+
* - A interação de foco deve compor o componente, sendo a navegação por mouse ou teclado, e em sequência lógica. Como por exemplo, ao pressionar Enter, executa o link e move o foco para o destino do link. (WCAG [2.4.3: Focus Order](https://www.w3.org/WAI/WCAG21/Understanding/focus-order))
|
|
18
|
+
* - A distância entre o link e outras áreas interativas deve ter no mínimo 44px de altura e largura, para permitir distanciamento seguro e para que nenhum outro elemento seja acionado sem intenção. (WCAG [2.5.8: Pointer Target Spacing](https://w3c.github.io/wcag/understanding/pointer-target-spacing))
|
|
19
|
+
* - Quando se tratar de um link para uma página externa, é recomendável que esta informação seja adicionada na label do componente link, para que a mudança de contexto seja informada ao usuário (WCAG [3.2.5: Change on Request](https://www.w3.org/WAI/WCAG21/Understanding/change-on-request)).
|
|
20
|
+
*
|
|
21
|
+
* #### Acessibilidade tratada no componente
|
|
22
|
+
* 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:
|
|
23
|
+
* - O link foi desenvolvido utilizando controles padrões HTML para permitir a identificação do mesmo na interface por tecnologias assistivas. (WCAG [4.1.2: Name, Role, Value](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value))
|
|
24
|
+
* - A cor não deve ser o único meio para diferenciar o link de textos comuns ou outros elementos, por isso deve-se manter o underline no link, para proporcionar essa diferença. (WCAG [1.4.1: Use of Color](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color)/ [3.2.4: Consistent Identification](https://www.w3.org/WAI/WCAG21/Understanding/consistent-identification))
|
|
25
|
+
* - O foco precisa ter uma área mínima do dobro do perímetro do link, ter contraste de pelo menos 4.5:1 entre o estado focado e não focado do componente; e o foco não pode ficar escondido por outros elementos da tela. (WCAG [2.4.12: Focus Appearance - Enhanced](https://w3c.github.io/wcag/understanding/focus-appearance-enhanced))
|
|
26
|
+
* - O estado de foco do componente deve ser sempre preservado. (WCAG [2.4.7: Focus Visible](https://www.w3.org/WAI/WCAG21/Understanding/focus-visible))
|
|
27
|
+
*/
|
|
28
|
+
export declare class PoLinkBaseComponent {
|
|
29
|
+
/** Valor do rótulo a ser exibido. */
|
|
30
|
+
label: string;
|
|
31
|
+
/** Url que será aberta ao clicar no link. */
|
|
32
|
+
url: string;
|
|
33
|
+
/** Indica se o link deverá ser aberto em uma nova aba. Sempre que utilizar essa propriedade, é importante informar isso ao usuário através da label. */
|
|
34
|
+
openNewTab?: boolean;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoLinkBaseComponent, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoLinkBaseComponent, never, never, { "label": "p-label"; "url": "p-url"; "openNewTab": "p-open-new-tab"; }, {}, never, never, false>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PoLinkBaseComponent } from './po-link-base.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* @docsExtends PoLinkBaseComponent
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
*
|
|
8
|
+
* <example name="po-link-basic" title="PO Link Basic" >
|
|
9
|
+
* <file name="sample-po-link-basic/sample-po-link-basic.component.html"> </file>
|
|
10
|
+
* <file name="sample-po-link-basic/sample-po-link-basic.component.ts"> </file>
|
|
11
|
+
* </example>
|
|
12
|
+
*
|
|
13
|
+
* <example name="po-link-labs" title="PO Link Labs" >
|
|
14
|
+
* <file name="sample-po-link-labs/sample-po-link-labs.component.html"> </file>
|
|
15
|
+
* <file name="sample-po-link-labs/sample-po-link-labs.component.ts"> </file>
|
|
16
|
+
* </example>
|
|
17
|
+
*
|
|
18
|
+
* <example name="po-link-heroes" title="PO Link Heroes" >
|
|
19
|
+
* <file name="sample-po-link-heroes/sample-po-link-heroes.component.html"> </file>
|
|
20
|
+
* <file name="sample-po-link-heroes/sample-po-link-heroes.component.ts"> </file>
|
|
21
|
+
* </example>
|
|
22
|
+
*/
|
|
23
|
+
export declare class PoLinkComponent extends PoLinkBaseComponent {
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoLinkComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoLinkComponent, "po-link", never, {}, {}, never, never, false>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./po-link.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
*
|
|
7
|
+
* Módulo do componente po-link.
|
|
8
|
+
*/
|
|
9
|
+
export declare class PoLinkModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoLinkModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoLinkModule, [typeof i1.PoLinkComponent], [typeof i2.CommonModule], [typeof i1.PoLinkComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PoLinkModule>;
|
|
13
|
+
}
|
|
@@ -92,7 +92,7 @@ export interface PoTableColumn {
|
|
|
92
92
|
/**
|
|
93
93
|
* Formato de exibição do valor da coluna:
|
|
94
94
|
* - Formato para moeda (currency). Exemplos: 'BRL', 'USD'.
|
|
95
|
-
* - Formato para data (date): aceita apenas os caracteres de dia(dd), mês(MM
|
|
95
|
+
* - Formato para data (date): aceita apenas os caracteres de dia(dd), mês(MM) e ano (yyyy ou yy),
|
|
96
96
|
* caso não seja informado um formato o mesmo será 'dd/MM/yyyy'. Exemplos: 'dd/MM/yyyy', 'dd-MM-yy', 'mm/dd/yyyy'.
|
|
97
97
|
* - Formato para horário (time): aceita apenas os caracteres de hora(HH), minutos(mm), segundos(ss) e
|
|
98
98
|
* milisegundos(f-ffffff), os milisegundos são opcionais, caso não seja informado um formato o mesmo será
|
|
@@ -9,7 +9,7 @@ export interface PoTableDetailColumn {
|
|
|
9
9
|
/**
|
|
10
10
|
* Formato de exibição do valor da coluna:
|
|
11
11
|
* - Formato para moeda (currency). Exemplos: 'BRL', 'USD'.
|
|
12
|
-
* - Formato para data (date): aceita apenas os caracteres de dia(dd), mês(MM
|
|
12
|
+
* - Formato para data (date): aceita apenas os caracteres de dia(dd), mês(MM) e ano (yyyy ou yy),
|
|
13
13
|
* caso não seja informado um formato o mesmo será 'dd/MM/yyyy'. Exemplos: 'dd/MM/yyyy', 'dd-MM-yy', 'mm/dd/yyyy'.
|
|
14
14
|
* - Formato para horário (time): aceita apenas os caracteres de hora(HH), minutos(mm), segundos(ss) e
|
|
15
15
|
* milisegundos(f-ffffff), os milisegundos são opcionais, caso não seja informado um formato o mesmo será
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.7.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": "^14.0.2",
|
|
25
|
-
"@po-ui/style": "14.
|
|
26
|
-
"@po-ui/ng-schematics": "14.
|
|
25
|
+
"@po-ui/style": "14.7.0",
|
|
26
|
+
"@po-ui/ng-schematics": "14.7.0",
|
|
27
27
|
"tslib": "^2.3.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@angular/platform-browser": "^14.0.2",
|
|
37
37
|
"@angular/platform-browser-dynamic": "^14.0.2",
|
|
38
38
|
"@angular/router": "^14.0.2",
|
|
39
|
-
"@po-ui/style": "14.
|
|
39
|
+
"@po-ui/style": "14.7.0",
|
|
40
40
|
"rxjs": "~7.5.5",
|
|
41
41
|
"zone.js": "~0.11.4"
|
|
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', '14.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '14.7.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)('14.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('14.7.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('14.
|
|
13
|
+
updatePackageJson('14.7.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)('14.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('14.7.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)('14.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('14.7.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)('14.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('14.7.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)('14.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('14.7.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
Binary file
|