@ruc-lib/knob 3.1.1 → 4.0.0

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 CHANGED
@@ -13,47 +13,72 @@ npm install @uxpractice/ruc-lib
13
13
 
14
14
  ### Install Individual Component
15
15
 
16
- If you only need the Knob component
16
+ If you only need the Knob component:
17
+
18
+ **For Angular 15:**
17
19
  ```bash
18
- npm install @ruc-lib/knob
20
+ npm install @ruc-lib/knob@3.2.0 @angular/material@^15.0.0 @angular/cdk@^15.0.0
19
21
  ```
20
22
 
23
+ **For Angular 16:**
24
+ ```bash
25
+ npm install @ruc-lib/knob@3.2.0 @angular/material@^16.0.0 @angular/cdk@^16.0.0
26
+ ```
21
27
 
22
- # Version Compatibility
28
+ **For Angular 17:**
29
+ ```bash
30
+ npm install @ruc-lib/knob@4.0.0 @angular/material@^17.0.0 @angular/cdk@^17.0.0
31
+ ```
23
32
 
24
- Please ensure you install the correct version of `@ruc-lib/knob` based on your Angular version.
25
-
26
- | Angular Version | Compatible `@ruc-lib/knob` Version |
27
- |--------------------|------------------------------------------------------|
28
- | 15.x.x | `npm install @ruc-lib/knob@^3.0.0` |
29
- | 16.x.x | `npm install @ruc-lib/knob@^3.0.0` |
33
+ **For Angular 18:**
34
+ ```bash
35
+ npm install @ruc-lib/knob@4.0.0 @angular/material@^18.0.0 @angular/cdk@^18.0.0
36
+ ```
37
+
38
+ **For Angular 19:**
39
+ ```bash
40
+ npm install @ruc-lib/knob@4.0.0 @angular/material@^19.0.0 @angular/cdk@^19.0.0
41
+ ```
30
42
 
43
+ **For Angular 20:**
44
+ ```bash
45
+ npm install @ruc-lib/knob@4.0.0
46
+ ```
47
+
48
+ > **Note:** When installing in Angular 15-19 apps, you must specify the matching `@angular/material` and `@angular/cdk` versions to avoid peer dependency conflicts. Angular 20 will automatically use the correct versions.
49
+
50
+ ### 📦 Version Compatibility
51
+
52
+ | Angular Version | Compatible `@ruc-lib/knob` Version |
53
+ |--------------------|----------------------------------------|
54
+ | 15.x.x | `npm install @ruc-lib/knob@^3.2.0` |
55
+ | 16.x.x | `npm install @ruc-lib/knob@^3.2.0` |
56
+ | 17.x.x | `npm install @ruc-lib/knob@^4.0.0` |
57
+ | 18.x.x | `npm install @ruc-lib/knob@^4.0.0` |
58
+ | 19.x.x | `npm install @ruc-lib/knob@^4.0.0` |
59
+ | 20.x.x | `npm install @ruc-lib/knob@^4.0.0` |
31
60
 
32
61
  ## Usage
33
- ### 1. Import the Module
34
- In your Angular module file (e.g., `app.module.ts`), import the `RuclibKnobModule`:
62
+ ### 1. Import the Component
63
+ In your Angular component file (e.g., `app.component.ts`), import the `RuclibKnobComponent`:
35
64
 
36
65
  ```typescript
66
+ import { Component } from '@angular/core';
67
+
37
68
  // For Complete Library
38
- import { RuclibKnobModule } from '@uxpractice/ruc-lib/knob';
69
+ import { RuclibKnobComponent } from '@uxpractice/ruc-lib/knob';
39
70
 
40
71
  // For Individual Package
41
- import { RuclibKnobModule } from '@ruc-lib/knob';
42
-
43
- import { AppComponent } from './app.component';
44
- import { NgModule } from '@angular/core';
45
- import { BrowserModule } from '@angular/platform-browser';
46
-
47
- @NgModule({
48
- declarations: [AppComponent],
49
- imports: [
50
- BrowserModule,
51
- RuclibKnobModule
52
- ],
53
- providers: [],
54
- bootstrap: [AppComponent]
72
+ import { RuclibKnobComponent } from '@ruc-lib/knob';
73
+
74
+ @Component({
75
+ selector: 'app-root',
76
+ imports: [RuclibKnobComponent],
77
+ templateUrl: './app.component.html',
55
78
  })
56
- export class AppModule {}
79
+ export class AppComponent {
80
+ // Component code here
81
+ }
57
82
  ```
58
83
 
59
84
  ### 2. Use the Component