@rubeusteam/rb-angular-components 0.0.1 → 0.0.2-dev.2
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 +75 -140
- package/fesm2022/rubeusteam-rb-angular-components.mjs +1332 -92
- package/fesm2022/rubeusteam-rb-angular-components.mjs.map +1 -1
- package/lib/components/rb-change-log-dialog/rb-change-log-dialog.component.d.ts +9 -0
- package/lib/components/rb-columns-sort-setting/rb-columns-sort-setting.component.d.ts +31 -0
- package/lib/components/rb-copy-confirm-dialog/rb-copy-confirm-dialog.component.d.ts +14 -0
- package/lib/components/rb-crud/helpers/resolve-actions.helper.d.ts +6 -0
- package/lib/components/rb-crud/rb-crud.component.d.ts +33 -31
- package/lib/components/rb-crud-tool-bar/rb-crud-tool-bar.component.d.ts +19 -0
- package/lib/components/rb-dialog/rb-dialog.component.d.ts +10 -0
- package/lib/components/rb-filter-dropdown/rb-filter-dropdown.component.d.ts +23 -0
- package/lib/components/rb-filter-panel/rb-filter-panel.component.d.ts +12 -0
- package/lib/components/rb-header/rb-header.component.d.ts +52 -0
- package/lib/components/rb-help-panel/rb-help-panel.component.d.ts +28 -0
- package/lib/components/rb-sidebar-navigation/rb-sidebar-navigation.component.d.ts +84 -0
- package/lib/directives/rb-overflow-tooltip/rb-overflow-tooltip.directive.d.ts +14 -0
- package/lib/interfaces/button.interface.d.ts +29 -0
- package/lib/interfaces/rb-change-log-dialog.interface.d.ts +5 -0
- package/lib/interfaces/rb-conditional-class.interface.d.ts +9 -0
- package/lib/interfaces/rb-crud.interface.d.ts +19 -0
- package/lib/interfaces/rb-dialog.interface.d.ts +17 -0
- package/lib/interfaces/rb-filter.interface.d.ts +11 -0
- package/lib/interfaces/rb-header.interface.d.ts +20 -0
- package/lib/interfaces/rb-help-panel.interface.d.ts +17 -0
- package/lib/interfaces/rb-sidebar-navigation.interface.d.ts +19 -0
- package/lib/pipes/is-array.pipe.d.ts +7 -0
- package/lib/pipes/rb-conditional-class/rb-conditional-class.pipe.d.ts +9 -0
- package/lib/pipes/{rb-custom.pipe.d.ts → rb-custom/rb-custom.pipe.d.ts} +2 -1
- package/lib/services/filter/client-filter.service.d.ts +1 -0
- package/lib/services/rb-show-index-crud-service/rb-show-index-crud.service.d.ts +8 -0
- package/package.json +26 -4
- package/public-api.d.ts +24 -3
- package/lib/components/rb-filter/rb-filter.component.d.ts +0 -26
- /package/lib/directives/{rb-dynamic-button.directive.d.ts → rb-dynamic-button/rb-dynamic-button.directive.d.ts} +0 -0
- /package/lib/{services/translates → i18n/paginator-ptbr-intl}/paginator-ptbr-intl.service.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,184 +1,119 @@
|
|
|
1
1
|
# RbAngularComponents
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
O `rb-angular-components` é uma biblioteca de componentes Angular reutilizáveis criada para acelerar o desenvolvimento de aplicações com base no Angular Material.
|
|
3
|
+
Este projeto foi gerado usando o [Angular CLI](https://github.com/angular/angular-cli) versão 19.1.8.
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
`rb-angular-components` is a reusable Angular component library designed to speed up application development using Angular Material.
|
|
5
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.1.8.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## Instalação | Installation
|
|
12
|
-
|
|
13
|
-
**PT-BR**
|
|
14
|
-
Para instalar a biblioteca em seu projeto Angular, execute:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
npm install rb-angular-components
|
|
18
|
-
```
|
|
7
|
+
## Visão Geral | Overview
|
|
19
8
|
|
|
20
|
-
|
|
21
|
-
To install the library in your Angular project, run:
|
|
9
|
+
RbAngularComponents é uma biblioteca de componentes, diretivas, serviços e pipes Angular criada para acelerar o desenvolvimento de interfaces com consistência e boas práticas.
|
|
22
10
|
|
|
23
|
-
|
|
24
|
-
npm install rb-angular-components
|
|
25
|
-
```
|
|
11
|
+
RbAngularComponents is a library of Angular components, directives, services, and pipes designed to accelerate UI development with consistency and best practices.
|
|
26
12
|
|
|
27
|
-
|
|
13
|
+
## Requisitos
|
|
28
14
|
|
|
29
|
-
|
|
15
|
+
- Angular >= 15 (suporta componentes standalone)
|
|
16
|
+
- Node.js >= 18.x
|
|
17
|
+
- npm >= 9.x
|
|
18
|
+
- Angular Material (alguns componentes são baseados nele)
|
|
30
19
|
|
|
31
|
-
|
|
32
|
-
Importe os módulos desejados no seu `AppModule` ou no módulo onde deseja usar os componentes:
|
|
20
|
+
## Requirements
|
|
33
21
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
- Angular >= 15 (supports standalone components)
|
|
23
|
+
- Node.js >= 18.x
|
|
24
|
+
- npm >= 9.x
|
|
25
|
+
- Angular Material (some components are based on it)
|
|
37
26
|
|
|
38
|
-
|
|
39
|
-
Import the desired modules into your `AppModule` or the module where you want to use the components:
|
|
40
|
-
|
|
41
|
-
```ts
|
|
42
|
-
import { RbCrudModule } from 'rb-angular-components';
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Componentes Disponíveis | Available Components
|
|
48
|
-
|
|
49
|
-
**PT-BR**
|
|
50
|
-
- `RbCrudComponent`: Componente de CRUD genérico com filtros, tabela e paginação.
|
|
51
|
-
- `RbFilterComponent`: Barra de pesquisa/filtros integrável ao CRUD.
|
|
52
|
-
- `RbContentCardComponent`: Quadro de conteúdo estilizado.
|
|
53
|
-
- E mais...
|
|
54
|
-
|
|
55
|
-
**EN**
|
|
56
|
-
- `RbCrudComponent`: Generic CRUD component with filters, table, and pagination.
|
|
57
|
-
- `RbFilterComponent`: Search/filter bar that integrates with the CRUD.
|
|
58
|
-
- `RbContentCardComponent`: Styled content card.
|
|
59
|
-
- And more...
|
|
60
|
-
|
|
61
|
-
Para detalhes específicos de uso, veja os READMEs individuais:
|
|
62
|
-
**To learn more about each, see the individual READMEs:**
|
|
63
|
-
|
|
64
|
-
- [`docs/components/rb-crud`](./projects/rb-angular-components/src/lib/rb-crud/README.md)
|
|
65
|
-
- [`docs/components/rb-filter`](./projects/rb-angular-components/src/lib/rb-filter/README.md)
|
|
66
|
-
|
|
67
|
-
---
|
|
27
|
+
## Instalação | Installation
|
|
68
28
|
|
|
69
|
-
|
|
29
|
+
Instale a biblioteca via npm:
|
|
70
30
|
|
|
71
|
-
|
|
72
|
-
Use o Angular CLI para gerar novos componentes, diretivas ou pipes:
|
|
31
|
+
Install the library via npm:
|
|
73
32
|
|
|
74
33
|
```bash
|
|
75
|
-
|
|
34
|
+
npm install rb-angular-components
|
|
76
35
|
```
|
|
77
36
|
|
|
78
|
-
|
|
79
|
-
Use Angular CLI to generate new components, directives, or pipes:
|
|
37
|
+
## Uso em Componentes Standalone | Usage in Standalone Components
|
|
80
38
|
|
|
81
|
-
|
|
82
|
-
ng generate component component-name
|
|
83
|
-
```
|
|
39
|
+
Você pode importar qualquer componente, diretiva ou pipe diretamente em seu componente standalone.
|
|
84
40
|
|
|
85
|
-
|
|
86
|
-
**To list all available schematics:**
|
|
41
|
+
You can import any component, directive, or pipe directly into your standalone component.
|
|
87
42
|
|
|
88
|
-
```
|
|
89
|
-
|
|
43
|
+
```ts
|
|
44
|
+
import { RbCrudComponent } from 'rb-angular-components';
|
|
45
|
+
|
|
46
|
+
@Component({
|
|
47
|
+
standalone: true,
|
|
48
|
+
imports: [RbCrudComponent],
|
|
49
|
+
selector: 'app-demo',
|
|
50
|
+
template: '<rb-crud></rb-crud>'
|
|
51
|
+
})
|
|
52
|
+
export class DemoComponent {}
|
|
90
53
|
```
|
|
91
54
|
|
|
92
|
-
|
|
55
|
+
## Uso em Módulos Angular (NgModules) | Usage in Angular Modules (NgModules)
|
|
93
56
|
|
|
94
|
-
|
|
57
|
+
Se seu projeto usa NgModules, ainda assim você pode usar os componentes standalone importando-os no array `imports`.
|
|
95
58
|
|
|
96
|
-
|
|
97
|
-
Para construir a biblioteca, execute:
|
|
59
|
+
If your project uses NgModules, you can still use the standalone components by importing them in the `imports` array.
|
|
98
60
|
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
61
|
+
```ts
|
|
62
|
+
import { NgModule } from '@angular/core';
|
|
63
|
+
import { CommonModule } from '@angular/common';
|
|
64
|
+
import { RbCrudComponent } from 'rb-angular-components';
|
|
65
|
+
|
|
66
|
+
@NgModule({
|
|
67
|
+
imports: [
|
|
68
|
+
CommonModule,
|
|
69
|
+
RbCrudComponent // standalone component
|
|
70
|
+
]
|
|
71
|
+
})
|
|
72
|
+
export class MyModule {}
|
|
108
73
|
```
|
|
109
74
|
|
|
110
|
-
|
|
111
|
-
**The compiled files will be placed in `dist/`.**
|
|
112
|
-
|
|
113
|
-
---
|
|
75
|
+
> Opcionalmente, você pode criar um módulo compartilhado que agrupe e exporte todos os componentes standalone para conveniência.
|
|
114
76
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
**PT-BR**
|
|
118
|
-
1. Navegue até a pasta da biblioteca:
|
|
119
|
-
```bash
|
|
120
|
-
cd dist/rb-angular-components
|
|
121
|
-
```
|
|
122
|
-
2. Publique com:
|
|
123
|
-
```bash
|
|
124
|
-
npm publish
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
**EN**
|
|
128
|
-
1. Navigate to the library folder:
|
|
129
|
-
```bash
|
|
130
|
-
cd dist/rb-angular-components
|
|
131
|
-
```
|
|
132
|
-
2. Publish using:
|
|
133
|
-
```bash
|
|
134
|
-
npm publish
|
|
135
|
-
```
|
|
77
|
+
> Optionally, you can create a shared module that groups and exports all standalone components for convenience.
|
|
136
78
|
|
|
137
|
-
---
|
|
138
79
|
|
|
139
|
-
##
|
|
80
|
+
## Recursos Disponíveis
|
|
140
81
|
|
|
141
|
-
|
|
142
|
-
|
|
82
|
+
- Componentes (ex: `RbCrudComponent`, `RbFilterComponent`)
|
|
83
|
+
- Diretivas (ex: `RbDynamicButtonDirective`)
|
|
84
|
+
- Pipes (ex: `RbCustomPipe`)
|
|
85
|
+
- Serviços (ex: `ClientFilterService`)
|
|
86
|
+
- Traduções (ex: `PaginatorPtbrIntlService`)
|
|
143
87
|
|
|
144
|
-
|
|
145
|
-
ng test
|
|
146
|
-
```
|
|
88
|
+
## Available Resources
|
|
147
89
|
|
|
148
|
-
|
|
149
|
-
|
|
90
|
+
- Components (e.g., `RbCrudComponent`, `RbFilterComponent`)
|
|
91
|
+
- Directives (e.g., `RbDynamicButtonDirective`)
|
|
92
|
+
- Pipes (e.g., `RbCustomPipe`)
|
|
93
|
+
- Services (e.g., `ClientFilterService`)
|
|
94
|
+
- Translations (e.g., `PaginatorPtbrIntlService`)
|
|
150
95
|
|
|
151
|
-
```bash
|
|
152
|
-
ng test
|
|
153
|
-
```
|
|
154
96
|
|
|
155
|
-
|
|
97
|
+
## Documentação por Recurso | Documentation by Feature
|
|
156
98
|
|
|
157
|
-
|
|
99
|
+
Você pode acessar a documentação de cada recurso em sua respectiva pasta:
|
|
158
100
|
|
|
159
|
-
|
|
160
|
-
Para rodar testes end-to-end:
|
|
101
|
+
You can access documentation for each feature in its respective folder:
|
|
161
102
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
ng e2e
|
|
171
|
-
```
|
|
103
|
+
- [`components/rb-content-box`](./src/lib/components/rb-content-box/README.md)
|
|
104
|
+
- [`components/rb-crud`](./src/lib/components/rb-crud/README.md)
|
|
105
|
+
- [`components/rb-filter`](./src/lib/components/rb-filter/README.md)
|
|
106
|
+
- [`components/rb-dialog`](./src/lib/components/rb-dialog/README.md)
|
|
107
|
+
- [`directives/rb-dynamic-button`](./src/lib/directives/rb-dynamic-button/README.md)
|
|
108
|
+
- [`pipes/rb-custom`](./src/lib/pipes/rb-custom/README.md)
|
|
109
|
+
- [`services/client-filter`](./src/lib/services/client-filter/README.md)
|
|
110
|
+
- [`i18n/paginator-ptbr-intl`](./src/lib/i18n/paginator-ptbr-intl/README.md)
|
|
172
111
|
|
|
173
112
|
---
|
|
174
113
|
|
|
175
|
-
## Recursos Adicionais | Additional Resources
|
|
114
|
+
## Recursos Adicionais | Additional Resources
|
|
176
115
|
|
|
177
|
-
|
|
178
|
-
Para mais informações sobre o Angular CLI, acesse:
|
|
179
|
-
[Angular CLI Overview and Command Reference](https://angular.dev/tools/cli)
|
|
116
|
+
Para uso do Angular CLI e comandos, veja a [Referência do Angular CLI](https://angular.dev/tools/cli).
|
|
180
117
|
|
|
181
|
-
|
|
182
|
-
For more information on Angular CLI, visit:
|
|
183
|
-
[Angular CLI Overview and Command Reference](https://angular.dev/tools/cli)
|
|
118
|
+
For Angular CLI usage and commands, see the [Angular CLI Reference](https://angular.dev/tools/cli).
|
|
184
119
|
|