structra-ui 0.1.23 → 0.1.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 +6 -4
- package/package.json +7 -16
package/README.md
CHANGED
|
@@ -6,16 +6,18 @@ Biblioteca **Angular** da stack **Structra** para interfaces consistentes: compo
|
|
|
6
6
|
|
|
7
7
|
## Instalação
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Com **npm 7 ou superior**, um comando instala a lib e resolve os **peer dependencies** obrigatórios na raiz do projeto (Angular, Material, CDK, Router, AG Grid, RxJS, Zone.js):
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm install structra-ui
|
|
12
|
+
npm install structra-ui
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
Se usar **npm 6 ou anterior**, instale explicitamente os mesmos pacotes e versões indicados em `peerDependencies` no `package.json` do npm.
|
|
16
|
+
|
|
15
17
|
**Compatibilidade**
|
|
16
18
|
|
|
17
|
-
- **Angular
|
|
18
|
-
- **
|
|
19
|
+
- **Angular 21** (`^21.2.7` nos peers): sem suporte para Angular 22.
|
|
20
|
+
- **Material e CDK** obrigatórios; **Router** obrigatório; **AG Grid** obrigatório; **RxJS** e **Zone.js** obrigatórios — nada é opcional no `package.json` da lib.
|
|
19
21
|
|
|
20
22
|
**Importar componentes:** `import { TextFieldComponent } from 'structra-ui';` e use em `imports: [TextFieldComponent, …]` do `@Component`. No `tsconfig.json` da app, prefira `"moduleResolution": "bundler"` ou `"node16"` para o Node resolver o campo `exports` do pacote.
|
|
21
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "structra-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "Biblioteca de componentes Angular da StructraLab (UI reutilizável).",
|
|
5
5
|
"homepage": "https://structralab.com/",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,27 +23,18 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@angular/animations": "^21.2.7",
|
|
25
25
|
"@angular/common": "^21.2.7",
|
|
26
|
+
"@angular/compiler": "^21.2.7",
|
|
26
27
|
"@angular/core": "^21.2.7",
|
|
27
28
|
"@angular/forms": "^21.2.7",
|
|
29
|
+
"@angular/platform-browser": "^21.2.7",
|
|
30
|
+
"@angular/platform-browser-dynamic": "^21.2.7",
|
|
28
31
|
"@angular/router": "^21.2.7",
|
|
29
32
|
"@angular/cdk": "^21.2.7",
|
|
30
33
|
"@angular/material": "^21.2.7",
|
|
31
34
|
"ag-grid-angular": "^35.0.0",
|
|
32
|
-
"ag-grid-community": "^35.0.0"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"@angular/router": {
|
|
36
|
-
"optional": true
|
|
37
|
-
},
|
|
38
|
-
"@angular/material": {
|
|
39
|
-
"optional": true
|
|
40
|
-
},
|
|
41
|
-
"ag-grid-angular": {
|
|
42
|
-
"optional": true
|
|
43
|
-
},
|
|
44
|
-
"ag-grid-community": {
|
|
45
|
-
"optional": true
|
|
46
|
-
}
|
|
35
|
+
"ag-grid-community": "^35.0.0",
|
|
36
|
+
"rxjs": "^7.8.0",
|
|
37
|
+
"zone.js": "~0.16.0"
|
|
47
38
|
},
|
|
48
39
|
"dependencies": {
|
|
49
40
|
"tslib": "^2.8.0"
|