ngx-core-components 0.3.11 → 0.3.12

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 (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -436,6 +436,23 @@ This README focuses on the primary Gantt API because it is the largest surface i
436
436
  | `cssClass?` | `string` | Custom CSS class |
437
437
  | `meta?` | `Record<string, unknown>` | Arbitrary data |
438
438
 
439
+ ## Advanced Features
440
+
441
+ ### Draggable Zoom & Area Selection
442
+ The Gantt Chart component supports zooming directly into a specific time range by selecting a window on the timeline.
443
+ - **Enable Feature**: Add `enableDragToZoom: true` in the `config` object or pass `[enableDragToZoom]="true"`.
444
+ - **Keyboard Shortcut**: Hold **Shift** and click-and-drag across the timeline background to draw a glassmorphic zoom selection window.
445
+ - **Area Zoom Mode**: Click the **Area Zoom Mode** button (or call `toggleAreaZoomMode()` programmatically) to change the cursor to a crosshair and drag-select without holding Shift.
446
+ - **Outputs**:
447
+ - `(zoomRangeChange)`: Emitted when a drag-zoom selection completes. Emits `{ start: Date, end: Date }`.
448
+ - `(zoomChange)`: Emitted with the new active `ZoomLevel` (e.g., `ZoomLevel.Hour`, `ZoomLevel.Day`, `ZoomLevel.Week`, `ZoomLevel.Month`, `ZoomLevel.Quarter`, `ZoomLevel.Year`).
449
+ - **Resetting**: Call the public `resetZoom()` method (or trigger via a button) to reset the timeline back to full scale.
450
+
451
+ ### Keyboard Rescheduling & Resizing
452
+ Tasks can be adjusted using only the keyboard:
453
+ - **Rescheduling**: Focus a task bar and use the `ArrowLeft` or `ArrowRight` keys to shift the task start and end dates by 1 unit (1 hour in Hour view, otherwise 1 day).
454
+ - **Resizing**: Focus a task bar and hold `Alt` or `Shift` alongside `ArrowLeft` or `ArrowRight` to extend or shrink the task's duration from the right boundary.
455
+
439
456
  ## Theming
440
457
 
441
458
  Override CSS custom properties on the `ngx-gantt-chart` element:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-core-components",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "Angular component library featuring a full-featured SVG Gantt Chart with drag/resize, dependencies, zoom, tree hierarchy, and theming.",
5
5
  "keywords": [
6
6
  "angular",