@po-ui/ng-templates 19.2.0 → 19.3.0-beta.1
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 +31 -0
- package/fesm2022/po-ui-ng-templates.mjs.map +1 -1
- package/lib/components/po-page-dynamic-edit/po-page-dynamic-edit.component.d.ts +29 -0
- package/package.json +4 -4
- package/po-ui-ng-templates-19.3.0-beta.1.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/po-ui-ng-templates-19.2.0.tgz +0 -0
|
@@ -357,6 +357,35 @@ export declare class PoPageDynamicEditComponent implements OnInit, OnDestroy {
|
|
|
357
357
|
ngOnInit(): void;
|
|
358
358
|
ngOnDestroy(): void;
|
|
359
359
|
detailActionNew(): void;
|
|
360
|
+
/**
|
|
361
|
+
* Método que exibe `additionalHelpTooltip` ou executa a ação definida em `additionalHelp`.
|
|
362
|
+
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `keydown`.
|
|
363
|
+
*
|
|
364
|
+
* ```
|
|
365
|
+
* import { PoPageDynamicEditModule } from '@po-ui/ng-templates';
|
|
366
|
+
* ...
|
|
367
|
+
* @ViewChild('dynamicEdit', { static: true }) dynamicEdit: PoPageDynamicEditComponent;
|
|
368
|
+
*
|
|
369
|
+
* fields: Array<PoPageDynamicEditField> = [
|
|
370
|
+
* {
|
|
371
|
+
* property: 'name',
|
|
372
|
+
* ...
|
|
373
|
+
* help: 'Mensagem de ajuda.',
|
|
374
|
+
* additionalHelpTooltip: 'Mensagem de ajuda complementar.',
|
|
375
|
+
* keydown: this.onKeyDown.bind(this, 'name')
|
|
376
|
+
* },
|
|
377
|
+
* ]
|
|
378
|
+
*
|
|
379
|
+
* onKeyDown(property: string, event: KeyboardEvent): void {
|
|
380
|
+
* if (event.code === 'F9') {
|
|
381
|
+
* this.dynamicEdit.showAdditionalHelp(property);
|
|
382
|
+
* }
|
|
383
|
+
* }
|
|
384
|
+
* ```
|
|
385
|
+
*
|
|
386
|
+
* @param { string } property Identificador da coluna.
|
|
387
|
+
*/
|
|
388
|
+
showAdditionalHelp(property: string): void;
|
|
360
389
|
get duplicates(): any[];
|
|
361
390
|
get keys(): any[];
|
|
362
391
|
get pageActions(): PoPageAction[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-templates",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.3.0-beta.1",
|
|
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.3.0-beta.1",
|
|
15
|
+
"@po-ui/ng-schematics": "19.3.0-beta.1",
|
|
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.3.0-beta.1",
|
|
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.3.0-beta.1');
|
|
27
27
|
// install packages
|
|
28
28
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
29
29
|
};
|
|
Binary file
|