@ruc-lib/multi-select 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
@@ -12,45 +12,75 @@ npm install @uxpractice/ruc-lib
12
12
  ```
13
13
 
14
14
  ### Install Individual Component
15
- If you only need the Multi-Select component:
15
+
16
+ If you only need the MultiSelect component:
17
+
18
+ **For Angular 15:**
19
+ ```bash
20
+ npm install @ruc-lib/multi-select@3.2.0 @angular/material@^15.0.0 @angular/cdk@^15.0.0
21
+ ```
22
+
23
+ **For Angular 16:**
24
+ ```bash
25
+ npm install @ruc-lib/multi-select@3.2.0 @angular/material@^16.0.0 @angular/cdk@^16.0.0
26
+ ```
27
+
28
+ **For Angular 17:**
29
+ ```bash
30
+ npm install @ruc-lib/multi-select@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/multi-select@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/multi-select@4.0.0 @angular/material@^19.0.0 @angular/cdk@^19.0.0
41
+ ```
42
+
43
+ **For Angular 20:**
16
44
  ```bash
17
- npm install @ruc-lib/multi-select
45
+ npm install @ruc-lib/multi-select@4.0.0
18
46
  ```
19
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.
20
49
 
21
- # Version Compatibility
50
+ ### 📦 Version Compatibility
22
51
 
23
- Please ensure you install the correct version of `@ruc-lib/multi-select` based on your Angular version.
24
-
25
52
  | Angular Version | Compatible `@ruc-lib/multi-select` Version |
26
53
  |--------------------|------------------------------------------------|
27
- | 15.x.x | `npm install @ruc-lib/multi-select@^3.0.0` |
28
- | 16.x.x | `npm install @ruc-lib/multi-select@^3.0.0` |
54
+ | 15.x.x | `npm install @ruc-lib/multi-select@^3.2.0` |
55
+ | 16.x.x | `npm install @ruc-lib/multi-select@^3.2.0` |
56
+ | 17.x.x | `npm install @ruc-lib/multi-select@^4.0.0` |
57
+ | 18.x.x | `npm install @ruc-lib/multi-select@^4.0.0` |
58
+ | 19.x.x | `npm install @ruc-lib/multi-select@^4.0.0` |
59
+ | 20.x.x | `npm install @ruc-lib/multi-select@^4.0.0` |
29
60
 
30
61
 
31
62
  ## Usage
32
63
 
33
- ### 1. Import the Module
34
- In your Angular module file (e.g., `app.module.ts`), import the `RuclibMultiSelectModule`:
64
+ ### 1. Import the Component
65
+ In your Angular component file (e.g., `app.component.ts`), import the `RuclibMultiSelectComponent`:
35
66
 
36
67
  ```typescript
37
- import { RuclibMultiSelectModule } from '@ruc-lib/multi-select';
38
- import { AppComponent } from './app.component';
39
- import { NgModule } from '@angular/core';
40
- import { BrowserModule } from '@angular/platform-browser';
41
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
42
-
43
- @NgModule({
44
- declarations: [AppComponent],
45
- imports: [
46
- BrowserModule,
47
- BrowserAnimationsModule,
48
- RuclibMultiSelectModule
49
- ],
50
- providers: [],
51
- bootstrap: [AppComponent]
68
+ import { Component } from '@angular/core';
69
+
70
+ // For Complete Library
71
+ import { RuclibMultiSelectComponent } from '@uxpractice/ruc-lib/multi-select';
72
+
73
+ // For Individual Package
74
+ import { RuclibMultiSelectComponent } from '@ruc-lib/multi-select';
75
+
76
+ @Component({
77
+ selector: 'app-root',
78
+ imports: [RuclibMultiSelectComponent],
79
+ templateUrl: './app.component.html',
52
80
  })
53
- export class AppModule {}
81
+ export class AppComponent {
82
+ // Component code here
83
+ }
54
84
  ```
55
85
 
56
86
  ### 2. Use the Component
@@ -178,4 +208,4 @@ Contributions are welcome! Feel free to open issues or pull requests for any enh
178
208
 
179
209
  ## Acknowledgements
180
210
 
181
- Thank you for choosing the Multi Select Component. If you have any feedback or suggestions, please let us know!
211
+ Thank you for choosing the Multi Select Component. If you have any feedback or suggestions, please let us know!