structra-ui 0.1.22 → 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 CHANGED
@@ -6,16 +6,20 @@ Biblioteca **Angular** da stack **Structra** para interfaces consistentes: compo
6
6
 
7
7
  ## Instalação
8
8
 
9
- Para instalar a Structra UI em um projeto Angular, use:
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 ag-grid-angular ag-grid-community
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:** **21**; peers `@angular/*` em **21.2.7** (versão exata; sem `>=`). Não há suporte para Angular 22.
18
- - **AG Grid** (grades): peers **`^35.0.0`**. Obrigatório se usar grades; caso contrário pode instalar `structra-ui` e gerenciar avisos de peers opcionais.
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.
21
+
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.
19
23
 
20
24
  ## Build do pacote
21
25