@po-ui/ng-templates 19.12.0 → 19.13.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/fesm2022/po-ui-ng-templates.mjs +24 -30
- package/fesm2022/po-ui-ng-templates.mjs.map +1 -1
- package/lib/components/po-page-change-password/po-page-change-password-base.component.d.ts +5 -5
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-save-new.interface.d.ts +9 -9
- package/lib/components/po-page-dynamic-edit/interfaces/po-page-dynamic-edit-before-save.interface.d.ts +9 -9
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-actions.interface.d.ts +3 -3
- package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-before-remove-all.interface.d.ts +3 -3
- package/lib/components/po-page-dynamic-table/po-page-dynamic-table.component.d.ts +9 -6
- package/lib/components/po-page-login/po-page-login-base.component.d.ts +10 -10
- package/package.json +4 -4
- package/po-ui-ng-templates-19.13.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/po-ui-ng-templates-19.12.0.tgz +0 -0
|
@@ -210,11 +210,11 @@ export declare abstract class PoPageChangePasswordBaseComponent {
|
|
|
210
210
|
*
|
|
211
211
|
* - **String**: informe uma url externa ou uma rota válida;
|
|
212
212
|
* - **Function**: pode-se customizar a ação. Para esta possilidade basta atribuir:
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
213
|
+
* ```
|
|
214
|
+
* <po-page-change-password>
|
|
215
|
+
* [recovery]="this.myFunc.bind(this)";
|
|
216
|
+
* </po-page-change-password>
|
|
217
|
+
* ```
|
|
218
218
|
*
|
|
219
219
|
* - **PoPageChangePasswordRecovery**: cria-se vínculo automático com o template **po-modal-password-recovery**.
|
|
220
220
|
* O objeto deve conter a **url** para requisição dos recursos e pode-se definir o **tipo** de modal para recuperação de senha,
|
|
@@ -23,19 +23,19 @@ export interface PoPageDynamicEditBeforeSaveNew {
|
|
|
23
23
|
* Por exemplo:
|
|
24
24
|
*
|
|
25
25
|
* - recurso anterior com a propriedade id foi que definida como *key*:
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* ```
|
|
27
|
+
* { id: 1, name: 'Ane' }
|
|
28
|
+
* ```
|
|
29
29
|
*
|
|
30
30
|
* - recurso retornado no `beforeSaveNew`:
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* ```
|
|
32
|
+
* { id: 50, age: 23 }
|
|
33
|
+
* ```
|
|
34
34
|
*
|
|
35
35
|
* - Mesclagem do recurso:
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
36
|
+
* ```
|
|
37
|
+
* { id: 1, name: 'Ane', age: 23 }
|
|
38
|
+
* ```
|
|
39
39
|
*
|
|
40
40
|
* > Caso `allowAction` seja `false`, o recurso será atualizado apenas localmente, sem concluir
|
|
41
41
|
* a ação de salvar (saveNew).
|
|
@@ -22,19 +22,19 @@ export interface PoPageDynamicEditBeforeSave {
|
|
|
22
22
|
* Por exemplo:
|
|
23
23
|
*
|
|
24
24
|
* - recurso anterior:
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* ```
|
|
26
|
+
* { name: 'Ane' }
|
|
27
|
+
* ```
|
|
28
28
|
*
|
|
29
29
|
* - recurso retornado no `beforeSave`:
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
30
|
+
* ```
|
|
31
|
+
* { age: 23 }
|
|
32
|
+
* ```
|
|
33
33
|
*
|
|
34
34
|
* - Mesclagem do recurso:
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
35
|
+
* ```
|
|
36
|
+
* { name: 'Ane', age: 23 }
|
|
37
|
+
* ```
|
|
38
38
|
*
|
|
39
39
|
* > Caso `allowAction` seja `false`, o recurso será atualizado apenas localmente, sem concluir
|
|
40
40
|
* a ação de salvar (save).
|
package/lib/components/po-page-dynamic-table/interfaces/po-page-dynamic-table-actions.interface.d.ts
CHANGED
|
@@ -125,9 +125,9 @@ export interface PoPageDynamicTableActions {
|
|
|
125
125
|
*
|
|
126
126
|
* Por exemplo:
|
|
127
127
|
* - Recursos com as propriedades id e name definidas como *key*:
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
128
|
+
* ```
|
|
129
|
+
* [{ id: 1, name: 'Mario' },{ id: 2, name: 'Gabriel' }]
|
|
130
|
+
* ```
|
|
131
131
|
*
|
|
132
132
|
*/
|
|
133
133
|
removeAll?: boolean | ((resources: Array<any>) => Array<any>);
|
|
@@ -29,9 +29,9 @@ export interface PoPageDynamicTableBeforeRemoveAll {
|
|
|
29
29
|
* Por exemplo:
|
|
30
30
|
*
|
|
31
31
|
* - Recursos com as propriedades id e name definidas como *key*:
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
32
|
+
* ```
|
|
33
|
+
* [{ id: 1, name: 'Mario' },{ id: 2, name: 'Gabriel' }]
|
|
34
|
+
* ```
|
|
35
35
|
*
|
|
36
36
|
* Esse recurso será passado para a ação `removeAll` também se for um array vazio `[]`
|
|
37
37
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { PoDialogService, PoLanguageService, PoNotificationService, PoPageAction, PoTableAction, PoTableColumnSort,
|
|
3
|
+
import { PoDialogService, PoLanguageService, PoNotificationService, PoPageAction, PoTableAction, PoTableColumnSort, PoThemeService } from '@po-ui/ng-components';
|
|
4
4
|
import { PoPageDynamicService } from '../../services/po-page-dynamic/po-page-dynamic.service';
|
|
5
5
|
import { PoPageDynamicSearchLiterals } from '../po-page-dynamic-search/interfaces/po-page-dynamic-search-literals.interface';
|
|
6
6
|
import { PoPageCustomizationService } from './../../services/po-page-customization/po-page-customization.service';
|
|
@@ -253,7 +253,6 @@ export declare class PoPageDynamicTableComponent extends PoPageDynamicListBaseCo
|
|
|
253
253
|
private _defaultTableActions;
|
|
254
254
|
private _hideCloseDisclaimers;
|
|
255
255
|
private _draggable;
|
|
256
|
-
private _spacing;
|
|
257
256
|
private _virtualScroll?;
|
|
258
257
|
private set defaultPageActions(value);
|
|
259
258
|
private set defaultTableActions(value);
|
|
@@ -424,14 +423,18 @@ export declare class PoPageDynamicTableComponent extends PoPageDynamicListBaseCo
|
|
|
424
423
|
*
|
|
425
424
|
* @description
|
|
426
425
|
*
|
|
427
|
-
*
|
|
426
|
+
* Define o espaçamento interno das células, impactando diretamente na altura das linhas do table. Os valores
|
|
427
|
+
* permitidos são definidos pelo enum **PoTableColumnSpacing**.
|
|
428
428
|
*
|
|
429
|
-
*
|
|
429
|
+
* > Em nível de acessibilidade **AA**, caso o valor de `p-spacing` não seja definido, o valor padrão será
|
|
430
|
+
* > `extraSmall` nos seguintes cenários:
|
|
431
|
+
* > - Quando o valor de `p-components-size` for `small`;
|
|
432
|
+
* > - Quando o valor padrão dos componentes for configurado como `small` no
|
|
433
|
+
* > [serviço de tema](https://po-ui.io/documentation/po-theme).
|
|
430
434
|
*
|
|
431
435
|
* @default `medium`
|
|
432
436
|
*/
|
|
433
|
-
|
|
434
|
-
get spacing(): PoTableColumnSpacing;
|
|
437
|
+
spacing: string;
|
|
435
438
|
/**
|
|
436
439
|
* @optional
|
|
437
440
|
*
|
|
@@ -479,11 +479,11 @@ export declare abstract class PoPageLoginBaseComponent implements OnDestroy {
|
|
|
479
479
|
*
|
|
480
480
|
* - **String**: informe uma url externa ou uma rota válida;
|
|
481
481
|
* - **Function**: pode-se customizar a ação. Para esta possilidade basta atribuir:
|
|
482
|
-
*
|
|
483
|
-
*
|
|
484
|
-
*
|
|
485
|
-
*
|
|
486
|
-
*
|
|
482
|
+
* ```
|
|
483
|
+
* <po-page-login>
|
|
484
|
+
* [recovery]="this.myRecovery.bind(this)">
|
|
485
|
+
* </po-page-login>
|
|
486
|
+
* ```
|
|
487
487
|
*
|
|
488
488
|
* - **PoPageLoginRecovery**: cria-se vínculo automático com o template **po-modal-password-recovery**.
|
|
489
489
|
* O objeto deve conter a **url** para requisição dos recursos e pode-se definir o **tipo** de modal para recuperação de senha,
|
|
@@ -676,11 +676,11 @@ export declare abstract class PoPageLoginBaseComponent implements OnDestroy {
|
|
|
676
676
|
*
|
|
677
677
|
* - **String**: URL externa ou uma rota válida;
|
|
678
678
|
* - **Function**: Função a ser disparada ao clicar no botão de suporte;
|
|
679
|
-
*
|
|
680
|
-
*
|
|
681
|
-
*
|
|
682
|
-
*
|
|
683
|
-
*
|
|
679
|
+
* ```
|
|
680
|
+
* <po-page-login>
|
|
681
|
+
* [p-support]="this.mySupport.bind(this)">
|
|
682
|
+
* </po-page-login>
|
|
683
|
+
* ```
|
|
684
684
|
*
|
|
685
685
|
*/
|
|
686
686
|
set support(value: string | Function);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-templates",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.13.0",
|
|
4
4
|
"description": "PO UI - Templates",
|
|
5
5
|
"author": "PO UI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"schematics": "./schematics/collection.json",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@po-ui/ng-components": "19.
|
|
15
|
-
"@po-ui/ng-schematics": "19.
|
|
14
|
+
"@po-ui/ng-components": "19.13.0",
|
|
15
|
+
"@po-ui/ng-schematics": "19.13.0",
|
|
16
16
|
"tslib": "^2.6.2"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@angular/platform-browser": "^19",
|
|
25
25
|
"@angular/platform-browser-dynamic": "^19",
|
|
26
26
|
"@angular/router": "^19",
|
|
27
|
-
"@po-ui/ng-components": "19.
|
|
27
|
+
"@po-ui/ng-components": "19.13.0",
|
|
28
28
|
"rxjs": "~7.8.1",
|
|
29
29
|
"zone.js": "~0.15.0"
|
|
30
30
|
},
|
|
Binary file
|
|
@@ -23,7 +23,7 @@ function default_1(options) {
|
|
|
23
23
|
}
|
|
24
24
|
function addPoPackageAndInstall() {
|
|
25
25
|
return (tree, context) => {
|
|
26
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-templates', '19.
|
|
26
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-templates', '19.13.0');
|
|
27
27
|
// install packages
|
|
28
28
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
29
29
|
};
|
|
Binary file
|