ng-magary 0.0.5 β 0.0.7
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 +63 -213
- package/fesm2022/ng-magary.mjs +8708 -0
- package/fesm2022/ng-magary.mjs.map +1 -0
- package/package.json +19 -14
- package/types/ng-magary.d.ts +2557 -0
- package/LICENSE.md +0 -21
- package/bun.lock +0 -290
- package/ng-package.json +0 -7
- package/src/lib/Button/button/button.html +0 -29
- package/src/lib/Button/button/button.module.ts +0 -9
- package/src/lib/Button/button/button.scss +0 -196
- package/src/lib/Button/button/button.spec.ts +0 -18
- package/src/lib/Button/button/button.ts +0 -72
- package/src/lib/Button/speed-dial/speed-dial-item.interface.ts +0 -9
- package/src/lib/Button/speed-dial/speed-dial.html +0 -57
- package/src/lib/Button/speed-dial/speed-dial.module.ts +0 -8
- package/src/lib/Button/speed-dial/speed-dial.scss +0 -247
- package/src/lib/Button/speed-dial/speed-dial.spec.ts +0 -18
- package/src/lib/Button/speed-dial/speed-dial.ts +0 -106
- package/src/lib/Form/cascade-select/cascade-select.html +0 -1
- package/src/lib/Form/cascade-select/cascade-select.module.ts +0 -8
- package/src/lib/Form/cascade-select/cascade-select.scss +0 -0
- package/src/lib/Form/cascade-select/cascade-select.spec.ts +0 -18
- package/src/lib/Form/cascade-select/cascade-select.ts +0 -9
- package/src/lib/Form/input/input.html +0 -66
- package/src/lib/Form/input/input.module.ts +0 -9
- package/src/lib/Form/input/input.scss +0 -193
- package/src/lib/Form/input/input.spec.ts +0 -22
- package/src/lib/Form/input/input.ts +0 -132
- package/src/lib/Menu/panelmenu/panelmenu.html +0 -259
- package/src/lib/Menu/panelmenu/panelmenu.interface.ts +0 -13
- package/src/lib/Menu/panelmenu/panelmenu.module.ts +0 -9
- package/src/lib/Menu/panelmenu/panelmenu.scss +0 -177
- package/src/lib/Menu/panelmenu/panelmenu.spec.ts +0 -18
- package/src/lib/Menu/panelmenu/panelmenu.ts +0 -134
- package/src/lib/Menu/sidebar/sidebar.html +0 -85
- package/src/lib/Menu/sidebar/sidebar.module.ts +0 -9
- package/src/lib/Menu/sidebar/sidebar.scss +0 -153
- package/src/lib/Menu/sidebar/sidebar.spec.ts +0 -18
- package/src/lib/Menu/sidebar/sidebar.ts +0 -64
- package/src/lib/Misc/avatar/avatar.html +0 -44
- package/src/lib/Misc/avatar/avatar.module.ts +0 -9
- package/src/lib/Misc/avatar/avatar.scss +0 -167
- package/src/lib/Misc/avatar/avatar.spec.ts +0 -18
- package/src/lib/Misc/avatar/avatar.ts +0 -93
- package/src/lib/Panel/card/card.html +0 -58
- package/src/lib/Panel/card/card.module.ts +0 -9
- package/src/lib/Panel/card/card.scss +0 -290
- package/src/lib/Panel/card/card.spec.ts +0 -18
- package/src/lib/Panel/card/card.ts +0 -126
- package/src/lib/Panel/tabs/tab/tab.spec.ts +0 -18
- package/src/lib/Panel/tabs/tab/tab.ts +0 -12
- package/src/lib/Panel/tabs/tabs.html +0 -26
- package/src/lib/Panel/tabs/tabs.module.ts +0 -10
- package/src/lib/Panel/tabs/tabs.scss +0 -58
- package/src/lib/Panel/tabs/tabs.spec.ts +0 -18
- package/src/lib/Panel/tabs/tabs.ts +0 -57
- package/src/lib/ng-magary.spec.ts +0 -18
- package/src/lib/ng-magary.ts +0 -43
- package/src/public-api.ts +0 -5
- package/tsconfig.lib.json +0 -22
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -14
package/README.md
CHANGED
|
@@ -1,213 +1,63 @@
|
|
|
1
|
-
# NgMagary
|
|
2
|
-
|
|
3
|
-
[
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- **Sidebar**: Navigable sidebar
|
|
65
|
-
|
|
66
|
-
### π€ Misc
|
|
67
|
-
- **Avatar**: User avatar component
|
|
68
|
-
|
|
69
|
-
### π¦ Panel
|
|
70
|
-
- **Card**: Content card
|
|
71
|
-
- **Tabs**: Navigable tab system
|
|
72
|
-
|
|
73
|
-
## π οΈ Basic Usage
|
|
74
|
-
|
|
75
|
-
### Import according to your Angular version
|
|
76
|
-
|
|
77
|
-
#### Angular 20+ (Standalone Components)
|
|
78
|
-
```typescript
|
|
79
|
-
import { Component } from '@angular/core';
|
|
80
|
-
import { ButtonComponent, InputComponent, CardComponent } from 'ng-magary';
|
|
81
|
-
|
|
82
|
-
@Component({
|
|
83
|
-
selector: 'app-example',
|
|
84
|
-
standalone: true,
|
|
85
|
-
imports: [ButtonComponent, InputComponent, CardComponent],
|
|
86
|
-
template: `
|
|
87
|
-
<magary-button label="Click me!" severity="primary"></magary-button>
|
|
88
|
-
<magary-input placeholder="Type something..."></magary-input>
|
|
89
|
-
<magary-card header="My Card">
|
|
90
|
-
<p>Card content</p>
|
|
91
|
-
</magary-card>
|
|
92
|
-
`
|
|
93
|
-
})
|
|
94
|
-
export class ExampleComponent { }
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
#### Angular 14-19 (Traditional Modules)
|
|
98
|
-
```typescript
|
|
99
|
-
import { NgModule } from '@angular/core';
|
|
100
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
101
|
-
|
|
102
|
-
// Import the NgMagary modules you need
|
|
103
|
-
import { ButtonModule, InputModule, CardModule } from 'ng-magary';
|
|
104
|
-
|
|
105
|
-
import { AppComponent } from './app.component';
|
|
106
|
-
|
|
107
|
-
@NgModule({
|
|
108
|
-
declarations: [
|
|
109
|
-
AppComponent
|
|
110
|
-
],
|
|
111
|
-
imports: [
|
|
112
|
-
BrowserModule,
|
|
113
|
-
ButtonModule,
|
|
114
|
-
InputModule,
|
|
115
|
-
CardModule
|
|
116
|
-
],
|
|
117
|
-
providers: [],
|
|
118
|
-
bootstrap: [AppComponent]
|
|
119
|
-
})
|
|
120
|
-
export class AppModule { }
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
### Using components in your template
|
|
124
|
-
|
|
125
|
-
```html
|
|
126
|
-
<!-- Button -->
|
|
127
|
-
<magary-button label="Click me!" severity="primary"></magary-button>
|
|
128
|
-
|
|
129
|
-
<!-- Input -->
|
|
130
|
-
<magary-input placeholder="Type something..."></magary-input>
|
|
131
|
-
|
|
132
|
-
<!-- Card -->
|
|
133
|
-
<magary-card header="My Card">
|
|
134
|
-
<p>Card content</p>
|
|
135
|
-
</magary-card>
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
## π Documentation
|
|
139
|
-
|
|
140
|
-
**[Live Demo & Examples β](https://your-demo-url.pages.dev)**
|
|
141
|
-
|
|
142
|
-
Explore interactive examples and see all components in action. The demo includes:
|
|
143
|
-
|
|
144
|
-
- π¨ **Component Gallery**: Visual showcase of all available components
|
|
145
|
-
- π» **Code Examples**: Copy-paste ready code snippets
|
|
146
|
-
- ποΈ **Interactive Playground**: Test component properties and behaviors
|
|
147
|
-
- π± **Responsive Design**: See how components work across different screen sizes
|
|
148
|
-
|
|
149
|
-
For additional information, you can also explore the components in the source code.
|
|
150
|
-
|
|
151
|
-
## π§ Development
|
|
152
|
-
|
|
153
|
-
To contribute to development:
|
|
154
|
-
|
|
155
|
-
```bash
|
|
156
|
-
# Clone the repository
|
|
157
|
-
git clone https://github.com/JhoanGon/magary.git
|
|
158
|
-
|
|
159
|
-
# Install dependencies
|
|
160
|
-
npm install
|
|
161
|
-
|
|
162
|
-
# Run in development mode
|
|
163
|
-
npm start
|
|
164
|
-
|
|
165
|
-
# Run tests
|
|
166
|
-
npm test
|
|
167
|
-
|
|
168
|
-
# Build the library
|
|
169
|
-
ng build ng-magary
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
## πΊοΈ Roadmap
|
|
173
|
-
|
|
174
|
-
### Upcoming components (future versions):
|
|
175
|
-
- **Data**: Table, List, Tree
|
|
176
|
-
- **File**: Upload, Download
|
|
177
|
-
- **Media**: Image, Carousel
|
|
178
|
-
- **Messages**: Toast, Dialog, Confirm
|
|
179
|
-
- **Overlay**: Modal, Tooltip, Popup
|
|
180
|
-
|
|
181
|
-
## π Changelog
|
|
182
|
-
|
|
183
|
-
### v0.0.2 (Alpha)
|
|
184
|
-
- β
**Optimized for Angular 20+** with standalone components support
|
|
185
|
-
- β
**Backward compatibility** with Angular 14, 15, 16, 17, 18, 19
|
|
186
|
-
- β
Button and Speed Dial components
|
|
187
|
-
- β
Form components (Input, Cascade Select)
|
|
188
|
-
- β
Menu components (Panel Menu, Sidebar)
|
|
189
|
-
- β
Avatar component
|
|
190
|
-
- β
Panel components (Card, Tabs)
|
|
191
|
-
- β
Traditional modules available for previous Angular versions
|
|
192
|
-
|
|
193
|
-
## π€ Contributing
|
|
194
|
-
|
|
195
|
-
Contributions are welcome. Please:
|
|
196
|
-
|
|
197
|
-
1. Fork the project
|
|
198
|
-
2. Create a feature branch (`git checkout -b feature/AmazingFeature`)
|
|
199
|
-
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
|
|
200
|
-
4. Push to the branch (`git push origin feature/AmazingFeature`)
|
|
201
|
-
5. Open a Pull Request
|
|
202
|
-
|
|
203
|
-
## π License
|
|
204
|
-
|
|
205
|
-
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
|
|
206
|
-
|
|
207
|
-
## π¨βπ» Author
|
|
208
|
-
|
|
209
|
-
**JhoanGon** - [GitHub](https://github.com/JhoanGon)
|
|
210
|
-
|
|
211
|
-
---
|
|
212
|
-
|
|
213
|
-
β If you find this project useful, give it a star on GitHub!
|
|
1
|
+
# NgMagary
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.1.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build ng-magary
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
```bash
|
|
35
|
+
cd dist/ng-magary
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
+
```bash
|
|
40
|
+
npm publish
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Running unit tests
|
|
44
|
+
|
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ng test
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Running end-to-end tests
|
|
52
|
+
|
|
53
|
+
For end-to-end (e2e) testing, run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ng e2e
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
+
|
|
61
|
+
## Additional Resources
|
|
62
|
+
|
|
63
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|