cloud-ide-element 1.0.2 → 1.0.5

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 (54) hide show
  1. package/README.md +63 -271
  2. package/fesm2022/cloud-ide-element.mjs +614 -618
  3. package/fesm2022/cloud-ide-element.mjs.map +1 -1
  4. package/index.d.ts +1362 -3
  5. package/package.json +4 -31
  6. package/esm2022/cloud-ide-element.mjs +0 -5
  7. package/esm2022/lib/components/confirmation-modal/confirmation-modal.component.mjs +0 -182
  8. package/esm2022/lib/components/data-grid/data-grid.component.mjs +0 -1363
  9. package/esm2022/lib/components/data-grid/data-grid.types.mjs +0 -37
  10. package/esm2022/lib/components/dropdown/dropdown.component.mjs +0 -396
  11. package/esm2022/lib/components/global-notifications/global-notifications.component.mjs +0 -30
  12. package/esm2022/lib/components/json-editor/json-editor.component.mjs +0 -521
  13. package/esm2022/lib/components/skeleton-loader/skeleton-loader.component.mjs +0 -33
  14. package/esm2022/lib/components/toast-notification/toast-notification.component.mjs +0 -152
  15. package/esm2022/lib/elements/button/cide-ele-button.component.mjs +0 -249
  16. package/esm2022/lib/elements/file-input/file-input.component.mjs +0 -83
  17. package/esm2022/lib/elements/icon/icon.component.mjs +0 -26
  18. package/esm2022/lib/elements/input/input.component.mjs +0 -467
  19. package/esm2022/lib/elements/select/select.component.mjs +0 -471
  20. package/esm2022/lib/elements/spinner/spinner.component.mjs +0 -32
  21. package/esm2022/lib/elements/tab/cide-ele-tab.component.mjs +0 -74
  22. package/esm2022/lib/elements/textarea/textarea.component.mjs +0 -157
  23. package/esm2022/lib/services/confirmation.service.mjs +0 -151
  24. package/esm2022/lib/services/dropdown-manager.service.mjs +0 -93
  25. package/esm2022/lib/services/notification.service.mjs +0 -196
  26. package/esm2022/lib/utils/directives/resizer/resizer.directive.mjs +0 -231
  27. package/esm2022/lib/utils/directives/tooltip/tooltip.directive.mjs +0 -294
  28. package/esm2022/lib/utils/pipes/capitalize/capitalize.pipe.mjs +0 -38
  29. package/esm2022/lib/utils/services/elements/elements.service.mjs +0 -39
  30. package/esm2022/public-api.mjs +0 -31
  31. package/lib/components/confirmation-modal/confirmation-modal.component.d.ts +0 -16
  32. package/lib/components/data-grid/data-grid.component.d.ts +0 -244
  33. package/lib/components/data-grid/data-grid.types.d.ts +0 -146
  34. package/lib/components/dropdown/dropdown.component.d.ts +0 -75
  35. package/lib/components/global-notifications/global-notifications.component.d.ts +0 -5
  36. package/lib/components/json-editor/json-editor.component.d.ts +0 -116
  37. package/lib/components/skeleton-loader/skeleton-loader.component.d.ts +0 -11
  38. package/lib/components/toast-notification/toast-notification.component.d.ts +0 -13
  39. package/lib/elements/button/cide-ele-button.component.d.ts +0 -85
  40. package/lib/elements/file-input/file-input.component.d.ts +0 -25
  41. package/lib/elements/icon/icon.component.d.ts +0 -9
  42. package/lib/elements/input/input.component.d.ts +0 -182
  43. package/lib/elements/select/select.component.d.ts +0 -91
  44. package/lib/elements/spinner/spinner.component.d.ts +0 -19
  45. package/lib/elements/tab/cide-ele-tab.component.d.ts +0 -26
  46. package/lib/elements/textarea/textarea.component.d.ts +0 -47
  47. package/lib/services/confirmation.service.d.ts +0 -65
  48. package/lib/services/dropdown-manager.service.d.ts +0 -22
  49. package/lib/services/notification.service.d.ts +0 -81
  50. package/lib/utils/directives/resizer/resizer.directive.d.ts +0 -44
  51. package/lib/utils/directives/tooltip/tooltip.directive.d.ts +0 -43
  52. package/lib/utils/pipes/capitalize/capitalize.pipe.d.ts +0 -7
  53. package/lib/utils/services/elements/elements.service.d.ts +0 -12
  54. package/public-api.d.ts +0 -22
package/README.md CHANGED
@@ -1,271 +1,63 @@
1
- # cloud-ide-element
2
-
3
- [![npm version](https://badge.fury.io/js/cloud-ide-element.svg)](https://badge.fury.io/js/cloud-ide-element)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
- [![Angular](https://img.shields.io/badge/Angular-18+-red.svg)](https://angular.io/)
6
- [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue.svg)](https://www.typescriptlang.org/)
7
-
8
- A comprehensive Angular UI component library built for modern web applications. Featuring responsive design, TypeScript support, and Angular 18+ compatibility with signals and standalone components.
9
-
10
- ## Features
11
-
12
- - 🎨 **Modern Design** - Clean, responsive components with Tailwind CSS
13
- - 🔧 **TypeScript** - Full type safety and IntelliSense support
14
- - 📱 **Responsive** - Mobile-first design approach
15
- - ⚡ **Angular 18+** - Built with latest Angular features (signals, control flow)
16
- - 🧩 **Standalone** - Tree-shakable standalone components
17
- - 🎯 **Accessible** - WCAG compliant components
18
- - 🔥 **Performance** - Optimized for production use
19
-
20
- ## 📦 Installation
21
-
22
- ```bash
23
- npm install cloud-ide-element
24
- ```
25
-
26
- ## 🚀 Quick Start
27
-
28
- ### Import Components
29
-
30
- ```typescript
31
- import {
32
- CideEleButtonComponent,
33
- CideEleInputComponent,
34
- CideEleTabComponent,
35
- CideEleDataGridComponent
36
- } from 'cloud-ide-element';
37
-
38
- @Component({
39
- standalone: true,
40
- imports: [
41
- CideEleButtonComponent,
42
- CideEleInputComponent,
43
- CideEleTabComponent,
44
- CideEleDataGridComponent
45
- ],
46
- template: `
47
- <cide-ele-button variant="primary" size="md">
48
- Click me!
49
- </cide-ele-button>
50
-
51
- <cide-ele-input
52
- label="Email"
53
- type="email"
54
- placeholder="Enter your email">
55
- </cide-ele-input>
56
-
57
- <cide-ele-tab [tabs]="tabs" (tabChange)="onTabChange($event)"></cide-ele-tab>
58
-
59
- <cide-ele-data-grid [config]="gridConfig"></cide-ele-data-grid>
60
- `
61
- })
62
- export class MyComponent { }
63
- ```
64
-
65
- ### Data Grid Example
66
-
67
- ```typescript
68
- import { Component, signal } from '@angular/core';
69
- import { CideEleDataGridComponent, GridConfiguration } from 'cloud-ide-element';
70
-
71
- @Component({
72
- standalone: true,
73
- imports: [CideEleDataGridComponent],
74
- template: `<cide-ele-data-grid [config]="gridConfig()"></cide-ele-data-grid>`
75
- })
76
- export class UserGridComponent {
77
- gridConfig = signal<GridConfiguration>({
78
- id: 'users',
79
- title: 'User Management',
80
- columns: [
81
- { key: 'name', header: 'Name', type: 'text', searchable: true },
82
- { key: 'email', header: 'Email', type: 'text', searchable: true },
83
- { key: 'isActive', header: 'Status', type: 'boolean' },
84
- {
85
- key: 'actions',
86
- header: 'Actions',
87
- type: 'actions',
88
- actions: [
89
- { key: 'edit', label: 'Edit', variant: 'primary', onClick: 'editUser' }
90
- ]
91
- }
92
- ],
93
- data: [
94
- { id: 1, name: 'John Doe', email: 'john@example.com', isActive: true },
95
- { id: 2, name: 'Jane Smith', email: 'jane@example.com', isActive: false }
96
- ],
97
- pagination: { enabled: true, pageSize: 10 },
98
- search: { enabled: true, placeholder: 'Search users...' }
99
- });
100
- }
101
- ```
102
-
103
- ## 📚 Component Library
104
-
105
- ### 🎯 Basic UI Elements
106
-
107
- | Component | Description | Features |
108
- |-----------|-------------|----------|
109
- | **Button** | Customizable button component | Multiple variants, sizes, loading states |
110
- | **Input** | Form input with validation | Text, email, password, number types |
111
- | **Select** | Dropdown select component | Single/multi-select, searchable options |
112
- | **Textarea** | Multi-line text input | Auto-resize, character counting |
113
- | **Tab** | Navigation tab component | Simple, compact design with variants |
114
- | **Icon** | SVG icon component | Customizable size and color |
115
- | **Spinner** | Loading indicator | Multiple sizes and variants |
116
-
117
- ### 🚀 Advanced Components
118
-
119
- | Component | Description | Key Features |
120
- |-----------|-------------|--------------|
121
- | **Data Grid** | Enterprise-grade data table | Pagination, search, sorting, custom renderers, actions |
122
-
123
- ### 🔧 Utilities
124
-
125
- | Directive | Description | Use Case |
126
- |-----------|-------------|----------|
127
- | **Tooltip** | Hover tooltip directive | Help text and information display |
128
- | **Resizer** | Element resize directive | Draggable resize functionality |
129
-
130
- ## 📖 Documentation
131
-
132
- ### Component Documentation
133
-
134
- - [Button Component](./src/lib/elements/button/README.md) - Buttons, links, and action triggers
135
- - [Input Component](./src/lib/elements/input/README.md) - Form inputs with validation
136
- - [Select Component](./src/lib/elements/select/README.md) - Dropdown selects and multi-selects
137
- - [Textarea Component](./src/lib/elements/textarea/README.md) - Multi-line text areas
138
- - [Tab Component](./src/lib/elements/tab/README.md) - Navigation tabs for content organization
139
- - [Icon Component](./src/lib/elements/icon/README.md) - SVG icons and graphics
140
- - [Spinner Component](./src/lib/elements/spinner/README.md) - Loading states and progress
141
-
142
- ### Advanced Components
143
-
144
- - [**Data Grid Component**](./src/lib/components/data-grid/README.md) - Complete data table solution with advanced features
145
-
146
- ### Directives
147
-
148
- - [Tooltip Directive](./src/lib/utils/directives/tooltip/README.md) - Hover tooltips and help text
149
- - [Resizer Directive](./src/lib/utils/directives/resizer/README.md) - Draggable element resizing
150
-
151
- ## 🎨 Styling & Theming
152
-
153
- This library uses Tailwind CSS for styling. Import the theme variables:
154
-
155
- ```scss
156
- @import 'cloud-ide-element/style';
157
- ```
158
-
159
- ### Custom Theme Variables
160
-
161
- ```scss
162
- // Override default theme variables
163
- :root {
164
- --cide-primary-color: #3b82f6;
165
- --cide-secondary-color: #6b7280;
166
- --cide-border-radius: 6px;
167
- }
168
- ```
169
-
170
- ## 🔧 Configuration
171
-
172
- ### Angular.json Setup
173
-
174
- Add to your `angular.json` styles array:
175
-
176
- ```json
177
- {
178
- "styles": [
179
- "node_modules/cloud-ide-element/lib/assets/css/cide-ele-style.scss"
180
- ]
181
- }
182
- ```
183
-
184
- ### Module Setup (Optional)
185
-
186
- For non-standalone usage:
187
-
188
- ```typescript
189
- import { NgModule } from '@angular/core';
190
- import {
191
- CideEleButtonComponent,
192
- CideEleInputComponent,
193
- CideEleDataGridComponent
194
- } from 'cloud-ide-element';
195
-
196
- @NgModule({
197
- imports: [
198
- CideEleButtonComponent,
199
- CideEleInputComponent,
200
- CideEleDataGridComponent
201
- ],
202
- exports: [
203
- CideEleButtonComponent,
204
- CideEleInputComponent,
205
- CideEleDataGridComponent
206
- ]
207
- })
208
- export class CloudIdeElementModule { }
209
- ```
210
-
211
- ## 🌟 Key Highlights
212
-
213
- ### Data Grid Features
214
- - **📊 Rich Data Display** - Tables with sorting, filtering, and pagination
215
- - **🔍 Advanced Search** - Multi-column search with debouncing
216
- - **⚡ Performance** - Virtual scrolling for large datasets
217
- - **🎨 Custom Rendering** - Custom cell renderers and formatters
218
- - **📱 Responsive** - Mobile-optimized layouts
219
- - **🔧 Action Buttons** - Configurable row actions with conditions
220
-
221
- ### Form Components
222
- - **✅ Validation** - Built-in form validation support
223
- - **♿ Accessibility** - WCAG 2.1 AA compliant
224
- - **🎯 Consistent** - Unified design language across all components
225
- - **🔧 Flexible** - Extensive customization options
226
-
227
- ## 🤝 Contributing
228
-
229
- We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
230
-
231
- ### Development Setup
232
-
233
- ```bash
234
- # Clone the repository
235
- git clone https://github.com/your-org/cloud-ide-element.git
236
-
237
- # Install dependencies
238
- npm install
239
-
240
- # Start development server
241
- ng serve
242
-
243
- # Build the library
244
- ng build cloud-ide-element
245
-
246
- # Run tests
247
- ng test cloud-ide-element
248
- ```
249
-
250
- ## 📄 License
251
-
252
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
253
-
254
- ## 🚀 Roadmap
255
-
256
- - [ ] Tree Table Component
257
- - [ ] Calendar/Date Picker
258
- - [ ] File Upload Component
259
- - [ ] Chart Components
260
- - [ ] Rich Text Editor
261
- - [ ] Dashboard Widgets
262
-
263
- ## 💬 Support
264
-
265
- - 📧 Email: support@cide-lms.com
266
- - 🐛 Issues: [GitHub Issues](https://github.com/your-org/cloud-ide-element/issues)
267
- - 📖 Documentation: [Full Documentation](https://docs.cide-lms.com)
268
-
269
- ---
270
-
271
- Made with ❤️ by the CIDE-LMS Team
1
+ # CloudIdeElement
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 cloud-ide-element
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/cloud-ide-element
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.