lib-common-angular 0.0.8 → 0.0.9
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 +0 -134
- package/package.json +1 -1
- package/dist/lib-common-angular/README.md +0 -0
- /package/{dist/lib-common-angular/fesm2022 → fesm2022}/lib-common-angular.mjs +0 -0
- /package/{dist/lib-common-angular/fesm2022 → fesm2022}/lib-common-angular.mjs.map +0 -0
- /package/{dist/lib-common-angular/index.d.ts → index.d.ts} +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/i18n/de.json +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/i18n/en.json +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/i18n/es.json +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/i18n/pt.json +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/imagenes/bannerInflables.png +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/state/business.state.ts +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/state/categorias-productos.state.ts +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/state/currency.state.ts +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/state/productos.state.ts +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/state/state-generic/generic-crud.actions.ts +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/state/state-generic/generic-crud.state.ts +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/assets/state/usuarios.actions.ts +0 -0
- /package/{dist/lib-common-angular/src → src}/lib/styles/global-styles.scss +0 -0
package/README.md
CHANGED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
# Lib-Common-angular
|
|
2
|
-
|
|
3
|
-
Esta libreria se usa para todos los proyectos frontales de aqui se usan los componentes
|
|
4
|
-
version 20.1.6.
|
|
5
|
-
|
|
6
|
-
# Lib Common Angular
|
|
7
|
-
|
|
8
|
-
## Configuración de Ambientes
|
|
9
|
-
|
|
10
|
-
### Uso Básico
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
// En tu app.module.ts
|
|
14
|
-
import { LibCommonAngularModule, LibConfigModule } from 'lib-common-angular';
|
|
15
|
-
|
|
16
|
-
@NgModule({
|
|
17
|
-
imports: [
|
|
18
|
-
// ...otros imports
|
|
19
|
-
LibCommonAngularModule,
|
|
20
|
-
LibConfigModule.forRoot({
|
|
21
|
-
baseUrlProducts: 'https://api.miapp.com/productos',
|
|
22
|
-
baseUrlAuth: 'https://auth.miapp.com',
|
|
23
|
-
baseUrlUsers: 'https://users.miapp.com',
|
|
24
|
-
apiVersion: 'v2',
|
|
25
|
-
timeout: 60000
|
|
26
|
-
})
|
|
27
|
-
],
|
|
28
|
-
// ...resto del módulo
|
|
29
|
-
})
|
|
30
|
-
export class AppModule { }
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Configuración por Ambiente
|
|
34
|
-
|
|
35
|
-
```typescript
|
|
36
|
-
// environment.prod.ts
|
|
37
|
-
export const environment = {
|
|
38
|
-
production: true,
|
|
39
|
-
libConfig: {
|
|
40
|
-
baseUrlProducts: 'https://api-prod.miapp.com/productos',
|
|
41
|
-
baseUrlAuth: 'https://auth-prod.miapp.com',
|
|
42
|
-
baseUrlUsers: 'https://users-prod.miapp.com'
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
// app.module.ts
|
|
47
|
-
import { environment } from '../environments/environment';
|
|
48
|
-
|
|
49
|
-
@NgModule({
|
|
50
|
-
imports: [
|
|
51
|
-
LibConfigModule.forRoot(environment.libConfig)
|
|
52
|
-
]
|
|
53
|
-
})
|
|
54
|
-
export class AppModule { }
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Configuración Dinámica
|
|
58
|
-
|
|
59
|
-
```typescript
|
|
60
|
-
// En cualquier servicio o componente
|
|
61
|
-
constructor(private libConfig: LibConfigService) {}
|
|
62
|
-
|
|
63
|
-
updateConfig() {
|
|
64
|
-
this.libConfig.updateConfig({
|
|
65
|
-
baseUrlProducts: 'https://nueva-api.com'
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
## Paso 1
|
|
73
|
-
|
|
74
|
-
**## npm install**
|
|
75
|
-
agregara las depencias localmente
|
|
76
|
-
|
|
77
|
-
## paso 2
|
|
78
|
-
|
|
79
|
-
ir ala carpeta principal del proyecto ejecutar
|
|
80
|
-
y ejecutar
|
|
81
|
-
esto para probar componetes dentro de la misma libreria
|
|
82
|
-
**## ng build lib-common-angular --watch**
|
|
83
|
-
|
|
84
|
-
en caso de probar cambios en un proyecto que esta importando esta libreria ejecutar.
|
|
85
|
-
|
|
86
|
-
si solo se quiere probar la libreria con el mismo proyecto interno no ejecutar los siguientes comandos e ir hasta el paso 3
|
|
87
|
-
**## ng build lib-common-angular**
|
|
88
|
-
|
|
89
|
-
y despues
|
|
90
|
-
**## npm link lib-common-angular**
|
|
91
|
-
una vez ejecutado esto
|
|
92
|
-
puedes ejecutar
|
|
93
|
-
para que construya los cambios en tiempo real y el proyecto que lo importa los tome
|
|
94
|
-
**## ng build lib-common-angular --watch**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
en el proyecto que usara la libreria ejecutar
|
|
99
|
-
**## npm link lib-common-angular**
|
|
100
|
-
|
|
101
|
-
## paso 3
|
|
102
|
-
|
|
103
|
-
este paso aplica si quieres correr la libreria en el mismo proyecto que tiene la libreria para probar componetes
|
|
104
|
-
|
|
105
|
-
**## ng serve lib-common-angular-demo**
|
|
106
|
-
|
|
107
|
-
esto levantara la aplicacion donde podras probar tus componentes creados en la libreria
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
**# importante**
|
|
113
|
-
|
|
114
|
-
Si se va a crear nuevos dtos importante usar la libreria juliaositembackenexpress los siguientes pasos son para modificar la libreria y ir viendo cambios descargar la libreria localmn
|
|
115
|
-
|
|
116
|
-
**# descargar la libreria juliaositembackenexpress localmente**
|
|
117
|
-
despues
|
|
118
|
-
|
|
119
|
-
**# npm i**
|
|
120
|
-
|
|
121
|
-
en la carpeta de la libreria
|
|
122
|
-
|
|
123
|
-
**# npm run build**
|
|
124
|
-
|
|
125
|
-
esto para crear la carpeta dist
|
|
126
|
-
|
|
127
|
-
**# npm link**
|
|
128
|
-
esto creara un enlace simbolico una vez creado ese enlace ir ala carpeta common-lib-angular y ejecutar
|
|
129
|
-
|
|
130
|
-
**# npm link juliaositembackenexpress**
|
|
131
|
-
|
|
132
|
-
esto ara que cree un enlace a la libreria si queremos ir desarrollando ala par con la libreria podemos despues ejecutar
|
|
133
|
-
|
|
134
|
-
**# npm run Build:watch**
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{dist/lib-common-angular/src → src}/lib/assets/state/state-generic/generic-crud.actions.ts
RENAMED
|
File without changes
|
/package/{dist/lib-common-angular/src → src}/lib/assets/state/state-generic/generic-crud.state.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|