rm-range-slider 5.0.0 → 6.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.
Files changed (3) hide show
  1. package/LICENSE +35 -35
  2. package/README.md +84 -83
  3. package/package.json +63 -63
package/LICENSE CHANGED
@@ -1,36 +1,36 @@
1
- MIT License
2
-
3
-
4
- Copyright (c) 2024 Rajat Malik
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
-
8
- of this software and associated documentation files (the "Software"), to deal
9
-
10
- in the Software without restriction, including without limitation the rights
11
-
12
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
-
14
- copies of the Software, and to permit persons to whom the Software is
15
-
16
- furnished to do so, subject to the following conditions:
17
-
18
-
19
- The above copyright notice and this permission notice shall be included in all
20
-
21
- copies or substantial portions of the Software.
22
-
23
-
24
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
-
26
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
-
28
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
-
30
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
-
32
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
-
34
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
-
1
+ MIT License
2
+
3
+
4
+ Copyright (c) 2024 Rajat Malik
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+
8
+ of this software and associated documentation files (the "Software"), to deal
9
+
10
+ in the Software without restriction, including without limitation the rights
11
+
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+
14
+ copies of the Software, and to permit persons to whom the Software is
15
+
16
+ furnished to do so, subject to the following conditions:
17
+
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+
21
+ copies or substantial portions of the Software.
22
+
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+
26
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+
28
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+
30
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+
32
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
33
+
34
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
+
36
36
  SOFTWARE.
package/README.md CHANGED
@@ -1,83 +1,84 @@
1
- # Range-slider
2
-
3
- A highly optimized and fully customizable pure angular component for value range selection.
4
-
5
- The component is not re-rendered while user moves the thumb.
6
- Even if there is a label, only the label component is re-rendered when values are changed.
7
-
8
- RangeSlider uses angular Native's Animated library to transform thumbs / label / selected rail.
9
- These optimizations help to achieve as much native look & feel as possible using only the JS layer.
10
-
11
- ## Installation
12
-
13
- Install rm-range-slider with npm or yarn
14
-
15
- ```bash
16
- npm: npm install --save rm-range-slider
17
- yarn: yarn add rm-range-slider
18
- AND
19
- npm: ng add @angular/material
20
- yarn: yarn add @angular/material
21
- ```
22
-
23
- ## Usage
24
-
25
- Dual Range Slider uses angular hooks, so this component doesn't work with angular below below version 2.
26
-
27
- ```
28
-
29
- <rm-range-slider
30
- min="0"
31
- max="100"
32
- startValue="0"
33
- endValue="10"
34
- (onValueChanged)="onValueChanged($event)"
35
- ></rm-range-slider>
36
-
37
- ```
38
-
39
- 1. Add `RmRangeSliderComponent` to imports array of component decorater meta
40
- 2. Define Function onValueChanged `onValueChanged` in component like this
41
-
42
- ```
43
- import {RmRangeSliderModule} from "rm-range-slider";
44
-
45
- @Component({
46
- imports: [RmRangeSliderComponent],
47
- })
48
- public onValueChanged(currentAmount: MINMAX): void {
49
- console.log(currentAmount);
50
- }
51
-
52
- ```
53
-
54
- ### Version Mapping
55
-
56
- | Slider | Ng |
57
- |--------|------|
58
- | 0.0.1 | 14.x |
59
- | 1.0.0 | 15.x |
60
- | 2.0.0 | 16.x |
61
- | 3.0.0 | 17.x |
62
- | 4.0.0 | 18.x |
63
- | 5.0.0 | 19.x |
64
-
65
- ### Properties
66
-
67
- | Name | Description | Type | Default Value |
68
- |------------------|----------------------------------------------------------------------------------|--------|:------------------------------------------------------------:|
69
- | `min` | Minimum value of slider | number | Initially `min` value will be set `0` if not provided |
70
- | `max` | Maximum value of slider | number | Initially `max` value will be set `100` if not provided |
71
- | `startValue` | deafult value for first slider | number | Initially `startValue` value will be set `0` if not provided |
72
- | `endValue` | deafult value for second slider | number | Initially `endValue` value will be set `10` if not provided |
73
- | `onValueChanged` | On change function `onValueChanged` will send both value min and max to compoent | MINMAX | It do not return any value until changes |
74
-
75
- ## Author services
76
-
77
- Are you interested in this library but lacks features? Write to the author, he can do it for you.
78
-
79
- ## Roadmap
80
-
81
- `rangeColor` - Set color for slider line between both min and max slider's thumnail.
82
- `sliderColor` - Set color for slider line.
83
- `sliderColorRight` - Set color for right side slider line
1
+ # Range-slider
2
+
3
+ A highly optimized and fully customizable pure angular component for value range selection.
4
+
5
+ The component is not re-rendered while user moves the thumb.
6
+ Even if there is a label, only the label component is re-rendered when values are changed.
7
+
8
+ RangeSlider uses angular Native's Animated library to transform thumbs / label / selected rail.
9
+ These optimizations help to achieve as much native look & feel as possible using only the JS layer.
10
+
11
+ ## Installation
12
+
13
+ Install rm-range-slider with npm or yarn
14
+
15
+ ```bash
16
+ npm: npm install --save rm-range-slider
17
+ yarn: yarn add rm-range-slider
18
+ AND
19
+ npm: ng add @angular/material
20
+ yarn: yarn add @angular/material
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ Dual Range Slider uses angular hooks, so this component doesn't work with angular below below version 2.
26
+
27
+ ```
28
+
29
+ <rm-range-slider
30
+ min="0"
31
+ max="100"
32
+ startValue="0"
33
+ endValue="10"
34
+ (onValueChanged)="onValueChanged($event)"
35
+ ></rm-range-slider>
36
+
37
+ ```
38
+
39
+ 1. Add `RmRangeSliderComponent` to imports array of component decorater meta
40
+ 2. Define Function onValueChanged `onValueChanged` in component like this
41
+
42
+ ```
43
+ import {RmRangeSliderModule} from "rm-range-slider";
44
+
45
+ @Component({
46
+ imports: [RmRangeSliderComponent],
47
+ })
48
+ public onValueChanged(currentAmount: MINMAX): void {
49
+ console.log(currentAmount);
50
+ }
51
+
52
+ ```
53
+
54
+ ### Version Mapping
55
+
56
+ | Slider | Ng |
57
+ |--------|------|
58
+ | 0.0.1 | 14.x |
59
+ | 1.0.0 | 15.x |
60
+ | 2.0.0 | 16.x |
61
+ | 3.0.0 | 17.x |
62
+ | 4.0.0 | 18.x |
63
+ | 5.0.0 | 19.x |
64
+ | 6.0.0 | 20.x |
65
+
66
+ ### Properties
67
+
68
+ | Name | Description | Type | Default Value |
69
+ |------------------|----------------------------------------------------------------------------------|--------|:------------------------------------------------------------:|
70
+ | `min` | Minimum value of slider | number | Initially `min` value will be set `0` if not provided |
71
+ | `max` | Maximum value of slider | number | Initially `max` value will be set `100` if not provided |
72
+ | `startValue` | deafult value for first slider | number | Initially `startValue` value will be set `0` if not provided |
73
+ | `endValue` | deafult value for second slider | number | Initially `endValue` value will be set `10` if not provided |
74
+ | `onValueChanged` | On change function `onValueChanged` will send both value min and max to compoent | MINMAX | It do not return any value until changes |
75
+
76
+ ## Author services
77
+
78
+ Are you interested in this library but lacks features? Write to the author, he can do it for you.
79
+
80
+ ## Roadmap
81
+
82
+ `rangeColor` - Set color for slider line between both min and max slider's thumnail.
83
+ `sliderColor` - Set color for slider line.
84
+ `sliderColorRight` - Set color for right side slider line
package/package.json CHANGED
@@ -1,64 +1,64 @@
1
- {
2
- "name": "rm-range-slider",
3
- "version": "5.0.0",
4
- "description": "A highly optimized and fully customizable pure angular component for value range selection.",
5
- "keywords": [
6
- "",
7
- "library",
8
- "angularlibrary",
9
- "ng",
10
- "Angular",
11
- "native",
12
- "angular-native",
13
- "angular-component",
14
- "custom",
15
- "range",
16
- "dual",
17
- "single",
18
- "slider",
19
- "single-slider",
20
- "dual-slider",
21
- "thumbnail",
22
- "security",
23
- "performance"
24
- ],
25
- "author": {
26
- "name": "Rajat Malik",
27
- "email": "mr.rajatmalik@gmail.com",
28
- "url": "https://www.linkedin.com/in/errajatmalik/"
29
- },
30
- "repository": {
31
- "type": "git",
32
- "url": "https://github.com/malikrajat/rm-range-slider"
33
- },
34
- "bugs": {
35
- "url": "https://github.com/malikrajat/rm-range-slider/issues"
36
- },
37
- "files": [
38
- "dist",
39
- "README.md",
40
- "LICENSE"
41
- ],
42
- "peerDependencies": {
43
- "@angular/common": "^19.0.0",
44
- "@angular/core": "^19.0.0",
45
- "@angular/material": "^19.0.0"
46
- },
47
- "dependencies": {
48
- "tslib": "^2.3.0"
49
- },
50
- "sideEffects": false,
51
- "type": "module",
52
- "license": "MIT",
53
- "module": "fesm2022/rm-range-slider.mjs",
54
- "typings": "index.d.ts",
55
- "exports": {
56
- "./package.json": {
57
- "default": "./package.json"
58
- },
59
- ".": {
60
- "types": "./index.d.ts",
61
- "default": "./fesm2022/rm-range-slider.mjs"
62
- }
63
- }
1
+ {
2
+ "name": "rm-range-slider",
3
+ "version": "6.0.0",
4
+ "description": "A highly optimized and fully customizable pure angular component for value range selection.",
5
+ "keywords": [
6
+ "",
7
+ "library",
8
+ "angularlibrary",
9
+ "ng",
10
+ "Angular",
11
+ "native",
12
+ "angular-native",
13
+ "angular-component",
14
+ "custom",
15
+ "range",
16
+ "dual",
17
+ "single",
18
+ "slider",
19
+ "single-slider",
20
+ "dual-slider",
21
+ "thumbnail",
22
+ "security",
23
+ "performance"
24
+ ],
25
+ "author": {
26
+ "name": "Rajat Malik",
27
+ "email": "mr.rajatmalik@gmail.com",
28
+ "url": "https://www.linkedin.com/in/errajatmalik/"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/malikrajat/rm-range-slider"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/malikrajat/rm-range-slider/issues"
36
+ },
37
+ "files": [
38
+ "dist",
39
+ "README.md",
40
+ "LICENSE"
41
+ ],
42
+ "peerDependencies": {
43
+ "@angular/common": "^20.0.0",
44
+ "@angular/core": "^20.0.0",
45
+ "@angular/material": "^20.0.0"
46
+ },
47
+ "dependencies": {
48
+ "tslib": "^2.3.0"
49
+ },
50
+ "sideEffects": false,
51
+ "type": "module",
52
+ "license": "MIT",
53
+ "module": "fesm2022/rm-range-slider.mjs",
54
+ "typings": "index.d.ts",
55
+ "exports": {
56
+ "./package.json": {
57
+ "default": "./package.json"
58
+ },
59
+ ".": {
60
+ "types": "./index.d.ts",
61
+ "default": "./fesm2022/rm-range-slider.mjs"
62
+ }
63
+ }
64
64
  }