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.
- package/README.md +63 -271
- package/fesm2022/cloud-ide-element.mjs +614 -618
- package/fesm2022/cloud-ide-element.mjs.map +1 -1
- package/index.d.ts +1362 -3
- package/package.json +4 -31
- package/esm2022/cloud-ide-element.mjs +0 -5
- package/esm2022/lib/components/confirmation-modal/confirmation-modal.component.mjs +0 -182
- package/esm2022/lib/components/data-grid/data-grid.component.mjs +0 -1363
- package/esm2022/lib/components/data-grid/data-grid.types.mjs +0 -37
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +0 -396
- package/esm2022/lib/components/global-notifications/global-notifications.component.mjs +0 -30
- package/esm2022/lib/components/json-editor/json-editor.component.mjs +0 -521
- package/esm2022/lib/components/skeleton-loader/skeleton-loader.component.mjs +0 -33
- package/esm2022/lib/components/toast-notification/toast-notification.component.mjs +0 -152
- package/esm2022/lib/elements/button/cide-ele-button.component.mjs +0 -249
- package/esm2022/lib/elements/file-input/file-input.component.mjs +0 -83
- package/esm2022/lib/elements/icon/icon.component.mjs +0 -26
- package/esm2022/lib/elements/input/input.component.mjs +0 -467
- package/esm2022/lib/elements/select/select.component.mjs +0 -471
- package/esm2022/lib/elements/spinner/spinner.component.mjs +0 -32
- package/esm2022/lib/elements/tab/cide-ele-tab.component.mjs +0 -74
- package/esm2022/lib/elements/textarea/textarea.component.mjs +0 -157
- package/esm2022/lib/services/confirmation.service.mjs +0 -151
- package/esm2022/lib/services/dropdown-manager.service.mjs +0 -93
- package/esm2022/lib/services/notification.service.mjs +0 -196
- package/esm2022/lib/utils/directives/resizer/resizer.directive.mjs +0 -231
- package/esm2022/lib/utils/directives/tooltip/tooltip.directive.mjs +0 -294
- package/esm2022/lib/utils/pipes/capitalize/capitalize.pipe.mjs +0 -38
- package/esm2022/lib/utils/services/elements/elements.service.mjs +0 -39
- package/esm2022/public-api.mjs +0 -31
- package/lib/components/confirmation-modal/confirmation-modal.component.d.ts +0 -16
- package/lib/components/data-grid/data-grid.component.d.ts +0 -244
- package/lib/components/data-grid/data-grid.types.d.ts +0 -146
- package/lib/components/dropdown/dropdown.component.d.ts +0 -75
- package/lib/components/global-notifications/global-notifications.component.d.ts +0 -5
- package/lib/components/json-editor/json-editor.component.d.ts +0 -116
- package/lib/components/skeleton-loader/skeleton-loader.component.d.ts +0 -11
- package/lib/components/toast-notification/toast-notification.component.d.ts +0 -13
- package/lib/elements/button/cide-ele-button.component.d.ts +0 -85
- package/lib/elements/file-input/file-input.component.d.ts +0 -25
- package/lib/elements/icon/icon.component.d.ts +0 -9
- package/lib/elements/input/input.component.d.ts +0 -182
- package/lib/elements/select/select.component.d.ts +0 -91
- package/lib/elements/spinner/spinner.component.d.ts +0 -19
- package/lib/elements/tab/cide-ele-tab.component.d.ts +0 -26
- package/lib/elements/textarea/textarea.component.d.ts +0 -47
- package/lib/services/confirmation.service.d.ts +0 -65
- package/lib/services/dropdown-manager.service.d.ts +0 -22
- package/lib/services/notification.service.d.ts +0 -81
- package/lib/utils/directives/resizer/resizer.directive.d.ts +0 -44
- package/lib/utils/directives/tooltip/tooltip.directive.d.ts +0 -43
- package/lib/utils/pipes/capitalize/capitalize.pipe.d.ts +0 -7
- package/lib/utils/services/elements/elements.service.d.ts +0 -12
- package/public-api.d.ts +0 -22
package/README.md
CHANGED
|
@@ -1,271 +1,63 @@
|
|
|
1
|
-
#
|
|
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
|
-
|
|
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.
|