@ruc-lib/knob 3.2.0 → 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 +50 -25
- package/fesm2022/ruc-lib-knob.mjs +595 -0
- package/fesm2022/ruc-lib-knob.mjs.map +1 -0
- package/index.d.ts +436 -3
- package/package.json +12 -23
- package/esm2020/index.mjs +0 -4
- package/esm2020/lib/ruclib-knob/ruclib-knob.component.mjs +0 -544
- package/esm2020/lib/ruclib-knob.module.mjs +0 -37
- package/esm2020/models/knob-config.model.mjs +0 -33
- package/esm2020/models/knob.interface.mjs +0 -3
- package/esm2020/ruc-lib-knob.mjs +0 -5
- package/fesm2015/ruc-lib-knob.mjs +0 -622
- package/fesm2015/ruc-lib-knob.mjs.map +0 -1
- package/fesm2020/ruc-lib-knob.mjs +0 -618
- package/fesm2020/ruc-lib-knob.mjs.map +0 -1
- package/lib/ruclib-knob/ruclib-knob.component.d.ts +0 -275
- package/lib/ruclib-knob.module.d.ts +0 -11
- package/models/knob-config.model.d.ts +0 -32
- package/models/knob.interface.d.ts +0 -157
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
|
-
|
|
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
|
+
```
|
|
32
|
+
|
|
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
|
+
```
|
|
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
|
|
23
51
|
|
|
24
|
-
Please ensure you install the correct version of `@ruc-lib/knob` based on your Angular version.
|
|
25
|
-
|
|
26
52
|
| Angular Version | Compatible `@ruc-lib/knob` Version |
|
|
27
|
-
|
|
53
|
+
|--------------------|----------------------------------------|
|
|
28
54
|
| 15.x.x | `npm install @ruc-lib/knob@^3.2.0` |
|
|
29
55
|
| 16.x.x | `npm install @ruc-lib/knob@^3.2.0` |
|
|
30
|
-
|
|
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
|
|
34
|
-
In your Angular
|
|
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 {
|
|
69
|
+
import { RuclibKnobComponent } from '@uxpractice/ruc-lib/knob';
|
|
39
70
|
|
|
40
71
|
// For Individual Package
|
|
41
|
-
import {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
|
79
|
+
export class AppComponent {
|
|
80
|
+
// Component code here
|
|
81
|
+
}
|
|
57
82
|
```
|
|
58
83
|
|
|
59
84
|
### 2. Use the Component
|