angular-visuals 0.1.2 → 0.1.4
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 +13 -8
- package/fesm2022/angular-visuals.mjs +666 -51
- package/fesm2022/angular-visuals.mjs.map +1 -1
- package/package.json +3 -2
- package/styles/angular-visuals.css +17 -7
- package/types/angular-visuals.d.ts +207 -18
package/README.md
CHANGED
|
@@ -44,31 +44,36 @@ Os componentes são standalone e podem ser importados diretamente no componente
|
|
|
44
44
|
|
|
45
45
|
```ts
|
|
46
46
|
import { Component } from '@angular/core';
|
|
47
|
-
import { AvBadge, AvButton, AvIcon, AvInput } from 'angular-visuals';
|
|
47
|
+
import { AvBadge, AvButton, AvCard, AvIcon, AvInput } from 'angular-visuals';
|
|
48
48
|
|
|
49
49
|
@Component({
|
|
50
50
|
standalone: true,
|
|
51
|
-
imports: [AvBadge, AvButton, AvIcon, AvInput],
|
|
51
|
+
imports: [AvBadge, AvButton, AvCard, AvIcon, AvInput],
|
|
52
52
|
template: `
|
|
53
53
|
<button av-button variant="orange" icon="check">Salvar</button>
|
|
54
54
|
<span av-badge variant="green">Ativo</span>
|
|
55
|
+
<av-card rounded="lg" padding="md">Resumo</av-card>
|
|
55
56
|
<av-input label="Nome" placeholder="Digite seu nome" />
|
|
56
57
|
`,
|
|
57
58
|
})
|
|
58
59
|
export class ExampleComponent {}
|
|
59
60
|
```
|
|
60
61
|
|
|
62
|
+
### Angular + Ionic + Capacitor
|
|
63
|
+
|
|
64
|
+
A biblioteca pode ser usada em aplicações Ionic/Capacitor como camada de componentes visuais, mantendo o Ionic para navegação, `ion-router-outlet`, `ion-content` e APIs nativas. Garanta apenas que o app tenha versões compatíveis de Angular, `@angular/cdk` e `@angular/forms`, e importe os estilos globais da biblioteca uma vez no stylesheet principal da aplicação.
|
|
65
|
+
|
|
61
66
|
## Componentes disponíveis
|
|
62
67
|
|
|
63
68
|
| Categoria | Componentes |
|
|
64
69
|
| --- | --- |
|
|
65
|
-
| Base | `AvBadge`, `AvButton`, `AvIcon` |
|
|
70
|
+
| Base | `AvBadge`, `AvButton`, `AvCard`, `AvIcon` |
|
|
66
71
|
| Formulários | `AvForm`, `AvInput`, `AvSelect`, `AvMultiSelect`, `AvCheckbox`, `AvCurrencyInput`, `AvDateTimePicker`, `AvSwitch`, `AvSlider`, `AvFileUpload`, `AvTextArea` |
|
|
67
|
-
| Layout e dados | `AvGrid`, `AvTable`, `AvPaginator` |
|
|
68
|
-
| Navegação | `AvSidenav`, `AvNavLink`, `
|
|
72
|
+
| Layout e dados | `AvGrid`, `AvTable`, `AvPaginator`, `AvCalendar` |
|
|
73
|
+
| Navegação | `AvSidenav`, `AvNavLink`, `AvNavDropdown`, `AvTabs`, `AvTab`, `AvStepper`, `AvStep` |
|
|
69
74
|
| Feedback | `AvProgressBar`, `AvProgressBarCircle` |
|
|
70
75
|
| Mídia | `AvCarousel`, `AvCarouselItem` |
|
|
71
|
-
| Overlay | `AvTooltip` |
|
|
76
|
+
| Overlay | `AvTooltip`, `AvDropdown`, `AvDropdownItem` |
|
|
72
77
|
| Primitives | `AvText` |
|
|
73
78
|
|
|
74
79
|
### Primitives
|
|
@@ -95,10 +100,10 @@ export class ExampleComponent {}
|
|
|
95
100
|
<av-nav-link label="Início" icon="search" href="/" active />
|
|
96
101
|
<av-nav-link label="Agenda" icon="calendar_today" href="/agenda" badge="3" />
|
|
97
102
|
|
|
98
|
-
<av-dropdown label="Financeiro" icon="payments">
|
|
103
|
+
<av-nav-dropdown label="Financeiro" icon="payments">
|
|
99
104
|
<av-nav-link label="Receitas" href="/financeiro/receitas" />
|
|
100
105
|
<av-nav-link label="Despesas" href="/financeiro/despesas" />
|
|
101
|
-
</av-dropdown>
|
|
106
|
+
</av-nav-dropdown>
|
|
102
107
|
</av-sidenav>
|
|
103
108
|
```
|
|
104
109
|
|