@po-ui/ng-components 16.2.1 → 16.4.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-accordion/index.mjs +2 -1
- package/esm2022/lib/components/po-accordion/interfaces/po-accordion-literals.interface.mjs +2 -0
- package/esm2022/lib/components/po-accordion/po-accordion-base.component.mjs +150 -2
- package/esm2022/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.mjs +63 -6
- package/esm2022/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.mjs +44 -10
- package/esm2022/lib/components/po-accordion/po-accordion-manager/po-accordion-manager.component.mjs +43 -0
- package/esm2022/lib/components/po-accordion/po-accordion.component.mjs +93 -27
- package/esm2022/lib/components/po-accordion/po-accordion.module.mjs +13 -7
- package/esm2022/lib/components/po-breadcrumb/po-breadcrumb-base.component.mjs +24 -1
- package/esm2022/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.mjs +11 -6
- package/esm2022/lib/components/po-breadcrumb/po-breadcrumb.component.mjs +163 -65
- package/esm2022/lib/components/po-breadcrumb/po-breadcrumb.module.mjs +8 -15
- package/esm2022/lib/components/po-dynamic/index.mjs +2 -1
- package/esm2022/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.mjs +1 -1
- package/esm2022/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.mjs +5 -5
- package/esm2022/lib/components/po-dynamic/po-dynamic-view/interfaces/po-dynamic-view-request.interface.mjs +2 -0
- package/esm2022/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.mjs +94 -8
- package/esm2022/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-field.interface.mjs +1 -1
- package/esm2022/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.mjs +12 -3
- package/esm2022/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.mjs +46 -0
- package/esm2022/lib/components/po-dynamic/po-dynamic.module.mjs +2 -2
- package/esm2022/lib/components/po-field/po-combo/po-combo-base.component.mjs +18 -2
- package/esm2022/lib/components/po-field/po-combo/po-combo.component.mjs +55 -21
- package/esm2022/lib/components/po-field/po-field.module.mjs +5 -4
- package/esm2022/lib/components/po-field/po-input/po-input-base.component.mjs +2 -1
- package/esm2022/lib/components/po-field/po-input/po-mask.mjs +1 -1
- package/esm2022/lib/components/po-field/po-input-generic/po-input-generic.mjs +20 -1
- package/esm2022/lib/components/po-field/po-lookup/po-lookup-base.component.mjs +15 -2
- package/esm2022/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.mjs +7 -2
- package/esm2022/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-lookup/po-lookup.component.mjs +3 -2
- package/esm2022/lib/components/po-field/po-lookup/services/po-lookup-modal.service.mjs +3 -2
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect-base.component.mjs +18 -2
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect.component.mjs +74 -32
- package/esm2022/lib/components/po-field/po-upload/po-upload-base.service.mjs +6 -2
- package/esm2022/lib/components/po-menu/po-menu-item/po-menu-item.component.mjs +3 -3
- package/esm2022/lib/components/po-popup/po-popup-base.component.mjs +7 -3
- package/esm2022/lib/components/po-popup/po-popup.component.mjs +2 -1
- package/esm2022/lib/components/po-table/po-table-base.component.mjs +12 -8
- package/esm2022/lib/components/po-table/po-table.component.mjs +7 -2
- package/esm2022/lib/components/po-tag/enums/po-tag-type.enum.mjs +4 -2
- package/esm2022/lib/components/po-tag/po-tag-base.component.mjs +3 -2
- package/esm2022/lib/components/po-tree-view/po-tree-view-base.component.mjs +37 -7
- package/esm2022/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.mjs +14 -6
- package/esm2022/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.interface.mjs +1 -1
- package/esm2022/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.mjs +50 -16
- package/esm2022/lib/components/po-tree-view/po-tree-view.component.mjs +5 -5
- package/fesm2022/po-ui-ng-components.mjs +10484 -9823
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-accordion/index.d.ts +1 -0
- package/lib/components/po-accordion/interfaces/po-accordion-literals.interface.d.ts +13 -0
- package/lib/components/po-accordion/po-accordion-base.component.d.ts +105 -1
- package/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.d.ts +41 -1
- package/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.d.ts +7 -1
- package/lib/components/po-accordion/po-accordion-manager/po-accordion-manager.component.d.ts +11 -0
- package/lib/components/po-accordion/po-accordion.component.d.ts +15 -1
- package/lib/components/po-accordion/po-accordion.module.d.ts +6 -2
- package/lib/components/po-breadcrumb/po-breadcrumb-base.component.d.ts +3 -0
- package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.d.ts +2 -1
- package/lib/components/po-breadcrumb/po-breadcrumb.component.d.ts +14 -6
- package/lib/components/po-breadcrumb/po-breadcrumb.module.d.ts +7 -6
- package/lib/components/po-dynamic/index.d.ts +1 -0
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.d.ts +8 -0
- package/lib/components/po-dynamic/po-dynamic-view/interfaces/po-dynamic-view-request.interface.d.ts +18 -0
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +13 -2
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-field.interface.d.ts +44 -0
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.d.ts +4 -2
- package/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.d.ts +28 -0
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +15 -1
- package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +2 -0
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +17 -1
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +4 -1
- package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +1 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +15 -1
- package/lib/components/po-popup/po-popup-base.component.d.ts +3 -1
- package/lib/components/po-table/po-table-base.component.d.ts +1 -1
- package/lib/components/po-tag/enums/po-tag-type.enum.d.ts +4 -2
- package/lib/components/po-tag/po-tag-base.component.d.ts +2 -1
- package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +14 -1
- package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +3 -1
- package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.interface.d.ts +4 -0
- package/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.d.ts +4 -1
- package/package.json +4 -4
- package/po-ui-ng-components-16.4.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-breadcrumb/po-breadcrumb-dropdown/po-breadcrumb-dropdown.component.mjs +0 -44
- package/esm2022/lib/components/po-breadcrumb/po-breadcrumb-item/po-breadcrumb-item.component.mjs +0 -109
- package/esm2022/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.service.mjs +0 -18
- package/lib/components/po-breadcrumb/po-breadcrumb-dropdown/po-breadcrumb-dropdown.component.d.ts +0 -14
- package/lib/components/po-breadcrumb/po-breadcrumb-item/po-breadcrumb-item.component.d.ts +0 -16
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.service.d.ts +0 -13
- package/po-ui-ng-components-16.2.1.tgz +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @usedBy PoAccordionComponent
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
*
|
|
6
|
+
* Interface para definição das literais usadas no `po-accordion`.
|
|
7
|
+
*/
|
|
8
|
+
export interface PoAccordionLiterals {
|
|
9
|
+
/** Label do gerenciador de Accordion para expandir todos os itens. */
|
|
10
|
+
expandAllItems?: string;
|
|
11
|
+
/** Label do gerenciador de Accordion para colapsar todos os itens */
|
|
12
|
+
closeAllItems?: string;
|
|
13
|
+
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
3
|
+
import { PoAccordionLiterals } from './interfaces/po-accordion-literals.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const poAccordionLiteralsDefault: {
|
|
6
|
+
en: PoAccordionLiterals;
|
|
7
|
+
es: PoAccordionLiterals;
|
|
8
|
+
pt: PoAccordionLiterals;
|
|
9
|
+
ru: PoAccordionLiterals;
|
|
10
|
+
};
|
|
1
11
|
/**
|
|
2
12
|
* @description
|
|
3
13
|
*
|
|
@@ -8,7 +18,7 @@
|
|
|
8
18
|
* como no exemplo abaixo:
|
|
9
19
|
*
|
|
10
20
|
* ```
|
|
11
|
-
* <po-accordion>
|
|
21
|
+
* <po-accordion #accordion [p-show-manager-accordion]="true">
|
|
12
22
|
* <po-accordion-item p-label="PO Accordion 1">
|
|
13
23
|
* Accordion 1
|
|
14
24
|
* </po-accordion-item>
|
|
@@ -19,10 +29,104 @@
|
|
|
19
29
|
* </po-accordion>
|
|
20
30
|
* ```
|
|
21
31
|
*
|
|
32
|
+
* e no typescript pode-se utilizar o `@ViewChild`:
|
|
33
|
+
*
|
|
34
|
+
* ```
|
|
35
|
+
* @ViewChild(PoAccordionComponent, { static: true }) accordion: PoAccordionComponent;
|
|
36
|
+
*
|
|
37
|
+
* ngAfterContentInit() {
|
|
38
|
+
* // ou utilizar o método collapseAllItems();
|
|
39
|
+
* this.accordion.expandAllItems();
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
22
43
|
* O componente já faz o controle de abertura e fechamento dos itens automaticamente.
|
|
23
44
|
*
|
|
24
45
|
* Caso houver a necessidade de abrir algum dos `po-accordion-item` via Typescript
|
|
25
46
|
* acesse a [documentação do PoAccordionItem](/documentation/po-accordion-item).
|
|
26
47
|
*/
|
|
27
48
|
export declare class PoAccordionBaseComponent {
|
|
49
|
+
private language;
|
|
50
|
+
private _literals;
|
|
51
|
+
/**
|
|
52
|
+
* @optional
|
|
53
|
+
*
|
|
54
|
+
* @description
|
|
55
|
+
*
|
|
56
|
+
* Objeto com as literais usadas no `po-accordion`.
|
|
57
|
+
*
|
|
58
|
+
* Existem duas maneiras de customizar o componente, passando um objeto com todas as literais disponíveis:
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
* const customLiterals: PoAccordionLiterals = {
|
|
62
|
+
* closeAllItems: 'Fechar todos os itens',
|
|
63
|
+
* expandAllItems: 'Expandir todos os itens'
|
|
64
|
+
* };
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* Ou passando apenas as literais que deseja customizar:
|
|
68
|
+
*
|
|
69
|
+
* ```
|
|
70
|
+
* const customLiterals: PoAccordionLiterals = {
|
|
71
|
+
* expandAllItems: 'Expandir todos os itens'
|
|
72
|
+
* };
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* E para carregar as literais customizadas, basta apenas passar o objeto para o componente.
|
|
76
|
+
*
|
|
77
|
+
* ```
|
|
78
|
+
* <po-accordion
|
|
79
|
+
* [p-literals]="customLiterals">
|
|
80
|
+
* </po-accordion>
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* > O objeto padrão de literais será traduzido de acordo com o idioma do
|
|
84
|
+
* [`PoI18nService`](/documentation/po-i18n) ou do browser.
|
|
85
|
+
*/
|
|
86
|
+
set literals(value: PoAccordionLiterals);
|
|
87
|
+
get literals(): PoAccordionLiterals;
|
|
88
|
+
/**
|
|
89
|
+
* @optional
|
|
90
|
+
*
|
|
91
|
+
* @description
|
|
92
|
+
*
|
|
93
|
+
* Exibe o Gerenciador de Accordion.
|
|
94
|
+
*
|
|
95
|
+
* @default `false`
|
|
96
|
+
*/
|
|
97
|
+
showManagerAccordion: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* @optional
|
|
100
|
+
*
|
|
101
|
+
* @description
|
|
102
|
+
*
|
|
103
|
+
* Permite expandir mais de um `<po-accordion-item></po-accordion-item>` ao mesmo tempo.
|
|
104
|
+
* Sempre habilitada caso a propriedade `p-show-manager-accordion` esteja como `true`.
|
|
105
|
+
*
|
|
106
|
+
* @default `false`
|
|
107
|
+
*/
|
|
108
|
+
allowExpandItems: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* @optional
|
|
111
|
+
*
|
|
112
|
+
* @description
|
|
113
|
+
*
|
|
114
|
+
* Evento disparado ao expandir o gerenciador de accordion, seja manualmente ou programaticamente.
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
expandAllEvent: EventEmitter<void>;
|
|
118
|
+
/**
|
|
119
|
+
* @optional
|
|
120
|
+
*
|
|
121
|
+
* @description
|
|
122
|
+
*
|
|
123
|
+
* Evento disparado ao retrair o gerenciador de accordion, seja manualmente ou programaticamente.
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
collapseAllEvent: EventEmitter<void>;
|
|
127
|
+
constructor(languageService: PoLanguageService);
|
|
128
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoAccordionBaseComponent, never>;
|
|
129
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoAccordionBaseComponent, never, never, { "literals": { "alias": "p-literals"; "required": false; }; "showManagerAccordion": { "alias": "p-show-manager-accordion"; "required": false; }; "allowExpandItems": { "alias": "p-allow-expand-all-items"; "required": false; }; }, { "expandAllEvent": "p-expand-all"; "collapseAllEvent": "p-collapse-all"; }, never, never, false, never>;
|
|
130
|
+
static ngAcceptInputType_showManagerAccordion: any;
|
|
131
|
+
static ngAcceptInputType_allowExpandItems: any;
|
|
28
132
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import { PoTagType } from '../../po-tag';
|
|
2
3
|
import { PoAccordionService } from '../services/po-accordion.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
@@ -34,8 +35,46 @@ import * as i0 from "@angular/core";
|
|
|
34
35
|
*/
|
|
35
36
|
export declare class PoAccordionItemComponent implements OnDestroy {
|
|
36
37
|
private accordionService;
|
|
38
|
+
private _type?;
|
|
37
39
|
/** Título do item. */
|
|
38
40
|
label: string;
|
|
41
|
+
/**
|
|
42
|
+
* @optional
|
|
43
|
+
*
|
|
44
|
+
* @description
|
|
45
|
+
*
|
|
46
|
+
* Label da Tag.
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
labelTag: string;
|
|
50
|
+
/**
|
|
51
|
+
* @optional
|
|
52
|
+
*
|
|
53
|
+
* @description
|
|
54
|
+
*
|
|
55
|
+
* Desabilita item.
|
|
56
|
+
*
|
|
57
|
+
* @default `false`
|
|
58
|
+
*/
|
|
59
|
+
disabledItem: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* @optional
|
|
62
|
+
*
|
|
63
|
+
* @description
|
|
64
|
+
*
|
|
65
|
+
* Define o tipo da *tag* caso ela esteja sendo exibida.
|
|
66
|
+
*
|
|
67
|
+
* Valores válidos:
|
|
68
|
+
* - `success`: cor verde utilizada para simbolizar sucesso ou êxito.
|
|
69
|
+
* - `warning`: cor amarela que representa aviso ou advertência.
|
|
70
|
+
* - `danger`: cor vermelha para erro ou aviso crítico.
|
|
71
|
+
* - `info`: cor cinza escuro que caracteriza conteúdo informativo.
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
* @default `info`
|
|
75
|
+
*/
|
|
76
|
+
set typeTag(value: PoTagType);
|
|
77
|
+
get typeTag(): PoTagType;
|
|
39
78
|
/** Evento disparado ao expandir o item, seja manualmente ou programaticamente. */
|
|
40
79
|
expandEvent: EventEmitter<void>;
|
|
41
80
|
/** Evento disparado ao retrair o item, seja manualmente ou programaticamente. */
|
|
@@ -55,5 +94,6 @@ export declare class PoAccordionItemComponent implements OnDestroy {
|
|
|
55
94
|
*/
|
|
56
95
|
expand(): void;
|
|
57
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoAccordionItemComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoAccordionItemComponent, "po-accordion-item", never, { "label": { "alias": "p-label"; "required": false; }; }, { "expandEvent": "p-expand"; "collapseEvent": "p-collapse"; }, never, ["*"], false, never>;
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoAccordionItemComponent, "po-accordion-item", never, { "label": { "alias": "p-label"; "required": false; }; "labelTag": { "alias": "p-label-tag"; "required": false; }; "disabledItem": { "alias": "p-disabled"; "required": false; }; "typeTag": { "alias": "p-type-tag"; "required": false; }; }, { "expandEvent": "p-expand"; "collapseEvent": "p-collapse"; }, never, ["*"], false, never>;
|
|
98
|
+
static ngAcceptInputType_disabledItem: any;
|
|
59
99
|
}
|
package/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { PoLanguageService } from '../../../services/po-language';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class PoAccordionItemHeaderComponent {
|
|
5
|
+
private language;
|
|
4
6
|
expanded: boolean;
|
|
5
7
|
label: string;
|
|
8
|
+
labelTag: string;
|
|
9
|
+
typeTag: string;
|
|
10
|
+
disabledItem: boolean;
|
|
6
11
|
toggle: EventEmitter<boolean>;
|
|
12
|
+
constructor(languageService: PoLanguageService);
|
|
7
13
|
onClick(): void;
|
|
8
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoAccordionItemHeaderComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoAccordionItemHeaderComponent, "po-accordion-item-header", never, { "expanded": { "alias": "p-expanded"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; }, { "toggle": "p-toggle"; }, never, never, false, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoAccordionItemHeaderComponent, "po-accordion-item-header", never, { "expanded": { "alias": "p-expanded"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "labelTag": { "alias": "p-label-tag"; "required": false; }; "typeTag": { "alias": "p-type-tag"; "required": false; }; "disabledItem": { "alias": "p-disabled"; "required": false; }; }, { "toggle": "p-toggle"; }, never, never, false, never>;
|
|
10
16
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { PoAccordionLiterals } from '../interfaces/po-accordion-literals.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PoAccordionManagerComponent {
|
|
5
|
+
expandedAllItems: boolean;
|
|
6
|
+
literals: PoAccordionLiterals;
|
|
7
|
+
clickManager: EventEmitter<boolean>;
|
|
8
|
+
onClick(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoAccordionManagerComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoAccordionManagerComponent, "po-accordion-manager", never, { "expandedAllItems": { "alias": "p-expanded-all-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; }, { "clickManager": "p-click"; }, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -2,6 +2,7 @@ import { QueryList, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { PoAccordionBaseComponent } from './po-accordion-base.component';
|
|
3
3
|
import { PoAccordionItemComponent } from './po-accordion-item/po-accordion-item.component';
|
|
4
4
|
import { PoAccordionService } from './services/po-accordion.service';
|
|
5
|
+
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* @docsExtends PoAccordionBaseComponent
|
|
@@ -28,11 +29,24 @@ import * as i0 from "@angular/core";
|
|
|
28
29
|
export declare class PoAccordionComponent extends PoAccordionBaseComponent implements OnDestroy {
|
|
29
30
|
private accordionService;
|
|
30
31
|
poAccordionItems: QueryList<PoAccordionItemComponent>;
|
|
32
|
+
expandedAllItems: boolean;
|
|
31
33
|
private accordionServiceSubscription;
|
|
32
34
|
private expandedActiveAccordionItem;
|
|
33
|
-
constructor(accordionService: PoAccordionService);
|
|
35
|
+
constructor(accordionService: PoAccordionService, languageService: PoLanguageService);
|
|
34
36
|
ngOnDestroy(): void;
|
|
37
|
+
changeVisibleAllItems(event: boolean): void;
|
|
38
|
+
/**
|
|
39
|
+
* Método para colapsar todos os itens.
|
|
40
|
+
* Só pode ser utilizado quando a propriedade `p-show-manager-accordion` estiver como `true`.
|
|
41
|
+
*/
|
|
42
|
+
collapseAllItems(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Método para expandir todos os itens.
|
|
45
|
+
* Só pode ser utilizado quando a propriedade `p-show-manager-accordion` estiver como `true`.
|
|
46
|
+
*/
|
|
47
|
+
expandAllItems(): void;
|
|
35
48
|
headerToggle(event: boolean, poAccordionItem: PoAccordionItemComponent): void;
|
|
49
|
+
private checkVisibleAllItems;
|
|
36
50
|
private receiveFromChildAccordionSubscription;
|
|
37
51
|
private toggle;
|
|
38
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoAccordionComponent, never>;
|
|
@@ -3,7 +3,11 @@ import * as i1 from "./po-accordion.component";
|
|
|
3
3
|
import * as i2 from "./po-accordion-item-body/po-accordion-item-body.component";
|
|
4
4
|
import * as i3 from "./po-accordion-item/po-accordion-item.component";
|
|
5
5
|
import * as i4 from "./po-accordion-item-header/po-accordion-item-header.component";
|
|
6
|
-
import * as i5 from "
|
|
6
|
+
import * as i5 from "./po-accordion-manager/po-accordion-manager.component";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "../po-tag/po-tag.module";
|
|
9
|
+
import * as i8 from "../po-icon/po-icon.module";
|
|
10
|
+
import * as i9 from "../po-divider/po-divider.module";
|
|
7
11
|
/**
|
|
8
12
|
* @description
|
|
9
13
|
*
|
|
@@ -37,6 +41,6 @@ import * as i5 from "@angular/common";
|
|
|
37
41
|
*/
|
|
38
42
|
export declare class PoAccordionModule {
|
|
39
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoAccordionModule, never>;
|
|
40
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoAccordionModule, [typeof i1.PoAccordionComponent, typeof i2.PoAccordionItemBodyComponent, typeof i3.PoAccordionItemComponent, typeof i4.PoAccordionItemHeaderComponent], [typeof
|
|
44
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoAccordionModule, [typeof i1.PoAccordionComponent, typeof i2.PoAccordionItemBodyComponent, typeof i3.PoAccordionItemComponent, typeof i4.PoAccordionItemHeaderComponent, typeof i5.PoAccordionManagerComponent], [typeof i6.CommonModule, typeof i7.PoTagModule, typeof i8.PoIconModule, typeof i9.PoDividerModule], [typeof i1.PoAccordionComponent, typeof i3.PoAccordionItemComponent]>;
|
|
41
45
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoAccordionModule>;
|
|
42
46
|
}
|
|
@@ -87,6 +87,7 @@ export declare class PoBreadcrumbBaseComponent {
|
|
|
87
87
|
*/
|
|
88
88
|
paramsService?: object;
|
|
89
89
|
itemsView: Array<PoBreadcrumbItem>;
|
|
90
|
+
itemsViewPopup: Array<any>;
|
|
90
91
|
protected clickoutListener: () => void;
|
|
91
92
|
protected resizeListener: () => void;
|
|
92
93
|
private _items;
|
|
@@ -102,6 +103,8 @@ export declare class PoBreadcrumbBaseComponent {
|
|
|
102
103
|
*/
|
|
103
104
|
set items(items: Array<PoBreadcrumbItem>);
|
|
104
105
|
get items(): Array<PoBreadcrumbItem>;
|
|
106
|
+
private transformToArrayPopup;
|
|
107
|
+
private transformArrayToActionPopUp;
|
|
105
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoBreadcrumbBaseComponent, never>;
|
|
106
109
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PoBreadcrumbBaseComponent, never, never, { "favoriteService": { "alias": "p-favorite-service"; "required": false; }; "paramsService": { "alias": "p-params-service"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; }, {}, never, never, false, never>;
|
|
107
110
|
}
|
package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare class PoBreadcrumbFavoriteComponent implements OnInit, OnDestroy
|
|
|
17
17
|
favoriteService: string;
|
|
18
18
|
itemActive: PoBreadcrumbItem;
|
|
19
19
|
paramsService: object;
|
|
20
|
+
hiddenLiteral: boolean;
|
|
20
21
|
favorite: boolean;
|
|
21
22
|
literals: any;
|
|
22
23
|
private getSubscription;
|
|
@@ -28,5 +29,5 @@ export declare class PoBreadcrumbFavoriteComponent implements OnInit, OnDestroy
|
|
|
28
29
|
private getStatusFavorite;
|
|
29
30
|
private setStatusFavorite;
|
|
30
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoBreadcrumbFavoriteComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoBreadcrumbFavoriteComponent, "po-breadcrumb-favorite", never, { "favoriteService": { "alias": "p-favorite-service"; "required": false; }; "itemActive": { "alias": "p-item-active"; "required": false; }; "paramsService": { "alias": "p-params-service"; "required": false; }; }, {}, never, never, false, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoBreadcrumbFavoriteComponent, "po-breadcrumb-favorite", never, { "favoriteService": { "alias": "p-favorite-service"; "required": false; }; "itemActive": { "alias": "p-item-active"; "required": false; }; "paramsService": { "alias": "p-params-service"; "required": false; }; "hiddenLiteral": { "alias": "p-hidden-literal"; "required": false; }; }, {}, never, never, false, never>;
|
|
32
33
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { AfterViewInit, DoCheck, ElementRef, IterableDiffers, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
2
|
import { PoBreadcrumbBaseComponent } from './po-breadcrumb-base.component';
|
|
3
3
|
import { PoBreadcrumbItem } from './po-breadcrumb-item.interface';
|
|
4
|
+
import { PoPopupComponent } from '../po-popup/po-popup.component';
|
|
5
|
+
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
export declare const poBreadcrumbLiterals: Object;
|
|
5
8
|
/**
|
|
6
9
|
* @docsExtends PoBreadcrumbBaseComponent
|
|
7
10
|
*
|
|
@@ -20,36 +23,41 @@ import * as i0 from "@angular/core";
|
|
|
20
23
|
export declare class PoBreadcrumbComponent extends PoBreadcrumbBaseComponent implements AfterViewInit, DoCheck, OnDestroy {
|
|
21
24
|
private element;
|
|
22
25
|
renderer: Renderer2;
|
|
26
|
+
languageService: PoLanguageService;
|
|
23
27
|
breadcrumbElement: ElementRef;
|
|
24
28
|
dropdownIcon: ElementRef;
|
|
29
|
+
svgTarget: ElementRef;
|
|
30
|
+
popupContainer: PoPopupComponent;
|
|
25
31
|
showDropdown: boolean;
|
|
26
32
|
showDropdownToggle: boolean;
|
|
27
33
|
dropdownItems: Array<PoBreadcrumbItem>;
|
|
34
|
+
literals: any;
|
|
35
|
+
hiddenLiteralFavorite: boolean;
|
|
28
36
|
private _breadcrumbItemsLenght;
|
|
29
37
|
private calculatedElement;
|
|
30
38
|
private differ;
|
|
31
39
|
private hiddenWithoutResize;
|
|
32
40
|
private initialized;
|
|
33
41
|
private timeoutResize;
|
|
34
|
-
constructor(differs: IterableDiffers, element: ElementRef, renderer: Renderer2);
|
|
42
|
+
constructor(differs: IterableDiffers, element: ElementRef, renderer: Renderer2, languageService: PoLanguageService);
|
|
35
43
|
ngAfterViewInit(): void;
|
|
36
44
|
ngDoCheck(): void;
|
|
37
45
|
ngOnDestroy(): void;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
emitAction(item: PoBreadcrumbItem): void;
|
|
47
|
+
openPopup(event: any): void;
|
|
48
|
+
closePopUp(): void;
|
|
41
49
|
private checkChangeOnItems;
|
|
42
50
|
private calcBreadcrumb;
|
|
43
51
|
private getBreadcrumbFavoriteWidth;
|
|
52
|
+
private getBreadcrumbTooltipWidth;
|
|
53
|
+
private existsFavoritelabel;
|
|
44
54
|
private getBreadcrumbWidth;
|
|
45
55
|
private calcBreadcrumbItemsWidth;
|
|
46
56
|
private enableBreadcrumbResponsive;
|
|
47
57
|
private disableBreadcrumbResponsive;
|
|
48
58
|
private debounceResize;
|
|
49
59
|
private initBreadcrumbSize;
|
|
50
|
-
private initializeClickoutListener;
|
|
51
60
|
private initializeResizeListener;
|
|
52
|
-
private removeClickoutListener;
|
|
53
61
|
private removeResizeListener;
|
|
54
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoBreadcrumbComponent, never>;
|
|
55
63
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoBreadcrumbComponent, "po-breadcrumb", never, {}, {}, never, never, false, never>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./po-breadcrumb.component";
|
|
3
|
-
import * as i2 from "./po-breadcrumb-
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
3
|
+
import * as i2 from "./po-breadcrumb-favorite/po-breadcrumb-favorite.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/router";
|
|
6
|
+
import * as i5 from "../po-link/po-link.module";
|
|
7
|
+
import * as i6 from "../po-popup/po-popup.module";
|
|
8
|
+
import * as i7 from "../po-icon/po-icon.module";
|
|
8
9
|
/**
|
|
9
10
|
* @description
|
|
10
11
|
*
|
|
@@ -13,6 +14,6 @@ import * as i6 from "@angular/router";
|
|
|
13
14
|
*/
|
|
14
15
|
export declare class PoBreadcrumbModule {
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoBreadcrumbModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoBreadcrumbModule, [typeof i1.PoBreadcrumbComponent, typeof i2.
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoBreadcrumbModule, [typeof i1.PoBreadcrumbComponent, typeof i2.PoBreadcrumbFavoriteComponent], [typeof i3.CommonModule, typeof i4.RouterModule, typeof i5.PoLinkModule, typeof i6.PoPopupModule, typeof i7.PoIconModule], [typeof i1.PoBreadcrumbComponent]>;
|
|
17
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoBreadcrumbModule>;
|
|
18
19
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './po-dynamic-field-type.enum';
|
|
2
2
|
export * from './po-dynamic-field-force-component.enum';
|
|
3
3
|
export * from './po-dynamic-form/po-dynamic-form-field.interface';
|
|
4
|
+
export * from './po-dynamic-view/interfaces/po-dynamic-view-request.interface';
|
|
4
5
|
export * from './po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.interface';
|
|
5
6
|
export * from './po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-field-changed.interface';
|
|
6
7
|
export * from './po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-field-validation.interface';
|
|
@@ -505,6 +505,14 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
505
505
|
* **Componente compatível**: `po-upload`
|
|
506
506
|
*/
|
|
507
507
|
restrictions?: PoUploadFileRestrictions;
|
|
508
|
+
/**
|
|
509
|
+
* Nome do campo de formulário que será enviado para o serviço informado na propriedade `url`.
|
|
510
|
+
*
|
|
511
|
+
* > O valor default é `files`
|
|
512
|
+
*
|
|
513
|
+
* **Componente compatível**: `po-upload`
|
|
514
|
+
*/
|
|
515
|
+
formField?: string;
|
|
508
516
|
/**
|
|
509
517
|
* Objeto que contém os cabeçalhos que será enviado na requisição dos arquivos.
|
|
510
518
|
*
|
package/lib/components/po-dynamic/po-dynamic-view/interfaces/po-dynamic-view-request.interface.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
/**
|
|
3
|
+
* @usedBy PoDynamicViewComponent
|
|
4
|
+
*
|
|
5
|
+
* @description
|
|
6
|
+
*
|
|
7
|
+
* Define o tipo de busca customizada para um campo em específico.
|
|
8
|
+
*/
|
|
9
|
+
export interface PoDynamicViewRequest {
|
|
10
|
+
/**
|
|
11
|
+
* Método responsável por enviar um valor que será buscado no serviço.
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* @param {string|Array<any>} value Valor único a ser buscado na fonte de dados.
|
|
15
|
+
* @param {any} filterParams Valor opcional para informar filtros customizados.
|
|
16
|
+
*/
|
|
17
|
+
getObjectByValue(value: string | Array<any>, filterParams?: any): Observable<any>;
|
|
18
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CurrencyPipe, DatePipe, DecimalPipe, TitleCasePipe } from '@angular/common';
|
|
2
2
|
import { PoTimePipe } from '../../../pipes/po-time/po-time.pipe';
|
|
3
3
|
import { PoDynamicViewField } from './po-dynamic-view-field.interface';
|
|
4
|
-
import { PoDynamicViewService } from './po-dynamic-view.service';
|
|
4
|
+
import { PoDynamicViewService } from './services/po-dynamic-view.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
@@ -54,6 +54,7 @@ export declare class PoDynamicViewBaseComponent {
|
|
|
54
54
|
*/
|
|
55
55
|
load: string | Function;
|
|
56
56
|
visibleFields: any[];
|
|
57
|
+
service: any;
|
|
57
58
|
private _fields;
|
|
58
59
|
private _showAllValue;
|
|
59
60
|
private _value;
|
|
@@ -103,13 +104,17 @@ export declare class PoDynamicViewBaseComponent {
|
|
|
103
104
|
set value(value: object);
|
|
104
105
|
get value(): object;
|
|
105
106
|
constructor(currencyPipe: CurrencyPipe, datePipe: DatePipe, decimalPipe: DecimalPipe, timePipe: PoTimePipe, titleCasePipe: TitleCasePipe, dynamicViewService: PoDynamicViewService);
|
|
106
|
-
protected getConfiguredFields(): any[];
|
|
107
|
+
protected getConfiguredFields(useSearchService?: boolean): any[];
|
|
107
108
|
protected getMergedFields(): any[];
|
|
108
109
|
protected getValueFields(): {
|
|
109
110
|
tag?: boolean;
|
|
110
111
|
color?: string;
|
|
112
|
+
concatLabelValue?: boolean;
|
|
113
|
+
fieldLabel?: string;
|
|
114
|
+
fieldValue?: string;
|
|
111
115
|
icon?: string;
|
|
112
116
|
inverse?: boolean;
|
|
117
|
+
isArrayOrObject?: boolean;
|
|
113
118
|
format?: string;
|
|
114
119
|
order?: number;
|
|
115
120
|
alt?: string;
|
|
@@ -119,6 +124,7 @@ export declare class PoDynamicViewBaseComponent {
|
|
|
119
124
|
label: string;
|
|
120
125
|
value: string | number;
|
|
121
126
|
}[];
|
|
127
|
+
searchService?: string | import("@po-ui/ng-components").PoDynamicViewRequest;
|
|
122
128
|
key?: boolean;
|
|
123
129
|
property: string;
|
|
124
130
|
label: string;
|
|
@@ -143,6 +149,11 @@ export declare class PoDynamicViewBaseComponent {
|
|
|
143
149
|
cssClass: string;
|
|
144
150
|
}[];
|
|
145
151
|
private createField;
|
|
152
|
+
private createFieldWithService;
|
|
153
|
+
private returnValues;
|
|
154
|
+
private searchById;
|
|
155
|
+
private transformArrayValue;
|
|
156
|
+
private transformFieldLabel;
|
|
146
157
|
private transformValue;
|
|
147
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoDynamicViewBaseComponent, never>;
|
|
148
159
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PoDynamicViewBaseComponent, never, never, { "load": { "alias": "p-load"; "required": false; }; "fields": { "alias": "p-fields"; "required": false; }; "showAllValue": { "alias": "p-show-all-value"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PoDynamicField } from '../po-dynamic-field.interface';
|
|
2
|
+
import { PoDynamicViewRequest } from './interfaces/po-dynamic-view-request.interface';
|
|
2
3
|
/**
|
|
3
4
|
* @usedBy PoDynamicViewComponent
|
|
4
5
|
*
|
|
@@ -36,6 +37,29 @@ export interface PoDynamicViewField extends PoDynamicField {
|
|
|
36
37
|
* - <span class="dot po-color-12"></span> `color-12`
|
|
37
38
|
*/
|
|
38
39
|
color?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Permite que seja exibido em tela, de forma concatenada as propriedades `fieldLabel` + `fieldValue`.
|
|
42
|
+
* A ordem sempre será `fieldLabel` e depois `fieldValue`, não sendo possível alterar.
|
|
43
|
+
*
|
|
44
|
+
* > Propriedade funciona corretamente caso as propriedades `fieldLabel` e `fielValue` sejam válidas.
|
|
45
|
+
*
|
|
46
|
+
* @default `false`
|
|
47
|
+
*/
|
|
48
|
+
concatLabelValue?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Nome da propriedade do objeto retornado que será utilizado como descrição do campo.
|
|
51
|
+
*
|
|
52
|
+
* O valor padrão é: `label`.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
fieldLabel?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Nome da propriedade do objeto retornado que será utilizado como valor do campo.
|
|
58
|
+
*
|
|
59
|
+
* O valor padrão é: `value`.
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
fieldValue?: string;
|
|
39
63
|
/**
|
|
40
64
|
* Define um ícone que será exibido ao lado do valor para o campo do tipo *tag*.
|
|
41
65
|
*
|
|
@@ -52,6 +76,16 @@ export interface PoDynamicViewField extends PoDynamicField {
|
|
|
52
76
|
* @default `false`
|
|
53
77
|
*/
|
|
54
78
|
inverse?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Define que a propriedade `property` é uma lista ou um objeto.
|
|
81
|
+
*
|
|
82
|
+
* > Por padrão, espera-se que a lista ou o objeto esteja com as propriedades `label` e `value`.
|
|
83
|
+
* Caso estejam com nomes diferentes, deve-se usar as propriedades `fieldLabel` e `fieldValue`.
|
|
84
|
+
* > É ignorada caso a propriedade `searchService` esteja sendo utilizada.
|
|
85
|
+
*
|
|
86
|
+
* @default `false`
|
|
87
|
+
*/
|
|
88
|
+
isArrayOrObject?: boolean;
|
|
55
89
|
/**
|
|
56
90
|
* Formato de exibição do valor do campo.
|
|
57
91
|
*
|
|
@@ -175,4 +209,14 @@ export interface PoDynamicViewField extends PoDynamicField {
|
|
|
175
209
|
label: string;
|
|
176
210
|
value: string | number;
|
|
177
211
|
}>;
|
|
212
|
+
/**
|
|
213
|
+
* Serviço customizado para um campo em específico.
|
|
214
|
+
* Pode ser ser informada uma URL ou uma instancia do serviço baseado em PoDynamicViewRequest.
|
|
215
|
+
* **Importante:**
|
|
216
|
+
* > A propriedade `property` deve receber um valor válido independente de sua utilização para
|
|
217
|
+
* execução correta.
|
|
218
|
+
* > Para que funcione corretamente, é importante que o serviço siga o
|
|
219
|
+
* [guia de API do PO UI](https://po-ui.io/guides/api).
|
|
220
|
+
*/
|
|
221
|
+
searchService?: string | PoDynamicViewRequest;
|
|
178
222
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
1
|
import { CurrencyPipe, DatePipe, DecimalPipe, TitleCasePipe } from '@angular/common';
|
|
2
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { PoTimePipe } from '../../../pipes/po-time/po-time.pipe';
|
|
4
4
|
import { PoDynamicViewBaseComponent } from './po-dynamic-view-base.component';
|
|
5
|
-
import { PoDynamicViewService } from './po-dynamic-view.service';
|
|
5
|
+
import { PoDynamicViewService } from './services/po-dynamic-view.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* @docsExtends PoDynamicViewBaseComponent
|
|
@@ -22,9 +22,11 @@ import * as i0 from "@angular/core";
|
|
|
22
22
|
* <example name="po-dynamic-view-employee-on-load" title="PO Dynamic View - Employee on load">
|
|
23
23
|
* <file name="sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.component.html"> </file>
|
|
24
24
|
* <file name="sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.component.ts"> </file>
|
|
25
|
+
* <file name="sample-po-dynamic-view-employee-on-load/sample-po-dynamic-view-employee-on-load.service.ts"> </file>
|
|
25
26
|
* </example>
|
|
26
27
|
*/
|
|
27
28
|
export declare class PoDynamicViewComponent extends PoDynamicViewBaseComponent implements OnChanges, OnInit {
|
|
29
|
+
initChanges: any;
|
|
28
30
|
constructor(currencyPipe: CurrencyPipe, datePipe: DatePipe, decimalPipe: DecimalPipe, timePipe: PoTimePipe, titleCasePipe: TitleCasePipe, dynamicViewService: PoDynamicViewService);
|
|
29
31
|
ngOnChanges(changes: SimpleChanges): void;
|
|
30
32
|
ngOnInit(): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { PoDynamicViewField } from '../po-dynamic-view-field.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* @docsPrivate
|
|
7
|
+
*
|
|
8
|
+
* @description
|
|
9
|
+
*
|
|
10
|
+
* Serviço padrão utilizado para filtrar os dados dos campos que utilizam a propriedade `searchService`.
|
|
11
|
+
*/
|
|
12
|
+
export declare class PoDynamicViewService {
|
|
13
|
+
private httpClient;
|
|
14
|
+
readonly headers: HttpHeaders;
|
|
15
|
+
url: string;
|
|
16
|
+
constructor(httpClient: HttpClient);
|
|
17
|
+
getObjectByValue(value: any, filterParams?: any): Observable<Array<any> | {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>;
|
|
20
|
+
onLoad(url: string, value: any): Promise<{
|
|
21
|
+
value?: any;
|
|
22
|
+
fields?: Array<PoDynamicViewField>;
|
|
23
|
+
}>;
|
|
24
|
+
setConfig(url: string): void;
|
|
25
|
+
private validateParams;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoDynamicViewService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PoDynamicViewService>;
|
|
28
|
+
}
|