ngx-dsxlibrary 2.21.22 → 2.21.24
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/README.md +40 -0
- package/fesm2022/ngx-dsxlibrary.mjs +2413 -2047
- package/fesm2022/ngx-dsxlibrary.mjs.map +1 -1
- package/ngx-dsxlibrary-2.21.24.tgz +0 -0
- package/package.json +1 -1
- package/types/ngx-dsxlibrary.d.ts +133 -4
- package/ngx-dsxlibrary-2.21.22.tgz +0 -0
package/README.md
CHANGED
|
@@ -74,6 +74,46 @@ En `angular.json` del proyecto consumidor (sección `assets`):
|
|
|
74
74
|
- Este documento explica cómo se comporta AuthorizeService en desarrollo/producción y HTTP/HTTPS.
|
|
75
75
|
- Incluye checklist de depuración para validar protocol, host, environment.production y logs.
|
|
76
76
|
|
|
77
|
+
### Botón reutilizable dsx-button
|
|
78
|
+
|
|
79
|
+
`dsx-button` encapsula estilos, permisos por parámetro y variantes de acción para evitar duplicar lógica en cada vista.
|
|
80
|
+
|
|
81
|
+
Importar constantes seguras para evitar typos:
|
|
82
|
+
|
|
83
|
+
```ts
|
|
84
|
+
import { ACTION_TYPES } from "ngx-dsxlibrary";
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Uso básico:
|
|
88
|
+
|
|
89
|
+
```html
|
|
90
|
+
<dsx-button [type]="ACTION_TYPES.create" [routerLink]="[urlNew, 0]" />
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Con validación de parámetro de seguridad:
|
|
94
|
+
|
|
95
|
+
```html
|
|
96
|
+
<dsx-button [type]="ACTION_TYPES.create" parameterName="pCreate" [routerLink]="[urlNew, 0]" />
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Con modo guardar/actualizar según id:
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<dsx-button [type]="ACTION_TYPES.saveOrUpdate" [id]="id()" [disabled]="!form.valid" (action)="saveRegister()" />
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Con icono PrimeNG (sin texto):
|
|
106
|
+
|
|
107
|
+
```html
|
|
108
|
+
<dsx-button [type]="ACTION_TYPES.edit" [iconOnly]="true" [routerLink]="[urlNew, rowData.propietarioId]" />
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Rendimiento:
|
|
112
|
+
|
|
113
|
+
- El comportamiento es equivalente a la forma original con `@if + _paramService.isParameterValue(...)`.
|
|
114
|
+
- El componente mantiene guard por `loaded` para evitar render inestable mientras refrescan parámetros.
|
|
115
|
+
- `isParameterValue` ya usa cache interno en `ParameterValuesService`, por lo que el costo por evaluación se mantiene controlado.
|
|
116
|
+
|
|
77
117
|
## Cambios
|
|
78
118
|
|
|
79
119
|
Se realizo actualización en el interceptor para mejorar el comportamiento con angular V21 1.21.1
|