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.
Files changed (63) hide show
  1. package/README.md +63 -213
  2. package/fesm2022/ng-magary.mjs +8708 -0
  3. package/fesm2022/ng-magary.mjs.map +1 -0
  4. package/package.json +19 -14
  5. package/types/ng-magary.d.ts +2557 -0
  6. package/LICENSE.md +0 -21
  7. package/bun.lock +0 -290
  8. package/ng-package.json +0 -7
  9. package/src/lib/Button/button/button.html +0 -29
  10. package/src/lib/Button/button/button.module.ts +0 -9
  11. package/src/lib/Button/button/button.scss +0 -196
  12. package/src/lib/Button/button/button.spec.ts +0 -18
  13. package/src/lib/Button/button/button.ts +0 -72
  14. package/src/lib/Button/speed-dial/speed-dial-item.interface.ts +0 -9
  15. package/src/lib/Button/speed-dial/speed-dial.html +0 -57
  16. package/src/lib/Button/speed-dial/speed-dial.module.ts +0 -8
  17. package/src/lib/Button/speed-dial/speed-dial.scss +0 -247
  18. package/src/lib/Button/speed-dial/speed-dial.spec.ts +0 -18
  19. package/src/lib/Button/speed-dial/speed-dial.ts +0 -106
  20. package/src/lib/Form/cascade-select/cascade-select.html +0 -1
  21. package/src/lib/Form/cascade-select/cascade-select.module.ts +0 -8
  22. package/src/lib/Form/cascade-select/cascade-select.scss +0 -0
  23. package/src/lib/Form/cascade-select/cascade-select.spec.ts +0 -18
  24. package/src/lib/Form/cascade-select/cascade-select.ts +0 -9
  25. package/src/lib/Form/input/input.html +0 -66
  26. package/src/lib/Form/input/input.module.ts +0 -9
  27. package/src/lib/Form/input/input.scss +0 -193
  28. package/src/lib/Form/input/input.spec.ts +0 -22
  29. package/src/lib/Form/input/input.ts +0 -132
  30. package/src/lib/Menu/panelmenu/panelmenu.html +0 -259
  31. package/src/lib/Menu/panelmenu/panelmenu.interface.ts +0 -13
  32. package/src/lib/Menu/panelmenu/panelmenu.module.ts +0 -9
  33. package/src/lib/Menu/panelmenu/panelmenu.scss +0 -177
  34. package/src/lib/Menu/panelmenu/panelmenu.spec.ts +0 -18
  35. package/src/lib/Menu/panelmenu/panelmenu.ts +0 -134
  36. package/src/lib/Menu/sidebar/sidebar.html +0 -85
  37. package/src/lib/Menu/sidebar/sidebar.module.ts +0 -9
  38. package/src/lib/Menu/sidebar/sidebar.scss +0 -153
  39. package/src/lib/Menu/sidebar/sidebar.spec.ts +0 -18
  40. package/src/lib/Menu/sidebar/sidebar.ts +0 -64
  41. package/src/lib/Misc/avatar/avatar.html +0 -44
  42. package/src/lib/Misc/avatar/avatar.module.ts +0 -9
  43. package/src/lib/Misc/avatar/avatar.scss +0 -167
  44. package/src/lib/Misc/avatar/avatar.spec.ts +0 -18
  45. package/src/lib/Misc/avatar/avatar.ts +0 -93
  46. package/src/lib/Panel/card/card.html +0 -58
  47. package/src/lib/Panel/card/card.module.ts +0 -9
  48. package/src/lib/Panel/card/card.scss +0 -290
  49. package/src/lib/Panel/card/card.spec.ts +0 -18
  50. package/src/lib/Panel/card/card.ts +0 -126
  51. package/src/lib/Panel/tabs/tab/tab.spec.ts +0 -18
  52. package/src/lib/Panel/tabs/tab/tab.ts +0 -12
  53. package/src/lib/Panel/tabs/tabs.html +0 -26
  54. package/src/lib/Panel/tabs/tabs.module.ts +0 -10
  55. package/src/lib/Panel/tabs/tabs.scss +0 -58
  56. package/src/lib/Panel/tabs/tabs.spec.ts +0 -18
  57. package/src/lib/Panel/tabs/tabs.ts +0 -57
  58. package/src/lib/ng-magary.spec.ts +0 -18
  59. package/src/lib/ng-magary.ts +0 -43
  60. package/src/public-api.ts +0 -5
  61. package/tsconfig.lib.json +0 -22
  62. package/tsconfig.lib.prod.json +0 -11
  63. package/tsconfig.spec.json +0 -14
package/README.md CHANGED
@@ -1,213 +1,63 @@
1
- # NgMagary 🎨
2
-
3
- [![npm version](https://badge.fury.io/js/ng-magary.svg)](https://badge.fury.io/js/ng-magary)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
- [![Demo](https://img.shields.io/badge/Demo-Live-brightgreen.svg)](https://your-demo-url.pages.dev)
6
-
7
- > ⚠️ **Alpha Release** - This library is under active development. APIs may change in future versions.
8
-
9
- NgMagary is a modern and elegant Angular component library, designed to provide reusable and easy-to-use UI components for your Angular projects.
10
-
11
- ## πŸš€ Live Demo
12
-
13
- **[View Live Demo β†’](https://livedemomagary.pages.dev/components/Button)**
14
-
15
- Explore all components in action with interactive examples and code snippets.
16
-
17
- ## 🎯 Angular Compatibility
18
-
19
- NgMagary is **optimized for Angular 20+**, but it's also **compatible with previous versions**:
20
-
21
- - βœ… **Angular 20+** (Recommended - Full support)
22
- - βœ… **Angular 15+** (Compatible - Using traditional modules)
23
- - βœ… **Angular 14+** (Compatible - Using traditional modules)
24
-
25
- > **Note**: For versions prior to Angular 15, all components are available as traditional modules, ensuring seamless compatibility.
26
-
27
- ## πŸš€ Installation
28
-
29
- ```bash
30
- npm install ng-magary
31
- ```
32
-
33
- ### Dependencies by Angular Version
34
-
35
- #### For Angular 20+ (Recommended)
36
- ```bash
37
- npm install @angular/common@^20.1.0 @angular/core@^20.1.0 @fortawesome/fontawesome-free@^7.0.0
38
- ```
39
-
40
- #### For Angular 15-19
41
- ```bash
42
- npm install @angular/common@^15.0.0 @angular/core@^15.0.0 @fortawesome/fontawesome-free@^6.0.0
43
- ```
44
-
45
- #### For Angular 14
46
- ```bash
47
- npm install @angular/common@^14.0.0 @angular/core@^14.0.0 @fortawesome/fontawesome-free@^6.0.0
48
- ```
49
-
50
- > **πŸ’‘ Tip**: NgMagary automatically adjusts its features based on the Angular version you're using, maintaining backward compatibility.
51
-
52
- ## πŸ“¦ Available Components
53
-
54
- ### πŸ”˜ Button
55
- - **Button**: Customizable button component
56
- - **Speed Dial**: Floating action button with expandable actions
57
-
58
- ### πŸ“ Form
59
- - **Input**: Enhanced text input field
60
- - **Cascade Select**: Cascading selector for hierarchical data
61
-
62
- ### πŸ“‹ Menu
63
- - **Panel Menu**: Expandable panel menu
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.