@ssv/ngx.ux 2.0.1-dev198 → 2.0.2
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/CHANGELOG.md +149 -142
- package/LICENSE +21 -21
- package/README.md +297 -297
- package/bundles/ssv-ngx.ux.umd.js +1154 -1154
- package/bundles/ssv-ngx.ux.umd.js.map +1 -1
- package/bundles/ssv-ngx.ux.umd.min.js +1 -1
- package/bundles/ssv-ngx.ux.umd.min.js.map +1 -1
- package/config.d.ts +7 -7
- package/esm2015/config.js +7 -7
- package/esm2015/index.js +5 -5
- package/esm2015/internal/internal.model.js +2 -2
- package/esm2015/module.js +50 -50
- package/esm2015/platform/window.js +28 -28
- package/esm2015/ssv-ngx.ux.js +7 -7
- package/esm2015/version.js +2 -2
- package/esm2015/viewport/index.js +9 -9
- package/esm2015/viewport/viewport-data/index.js +4 -4
- package/esm2015/viewport/viewport-data/viewport-data-matcher.js +108 -108
- package/esm2015/viewport/viewport-data/viewport-data.pipe.js +43 -43
- package/esm2015/viewport/viewport-data/viewport-data.service.js +38 -38
- package/esm2015/viewport/viewport-data/viewport-data.utils.js +100 -100
- package/esm2015/viewport/viewport-matcher-var.directive.js +64 -64
- package/esm2015/viewport/viewport-matcher.directive.js +134 -134
- package/esm2015/viewport/viewport-server-size.service.js +38 -38
- package/esm2015/viewport/viewport.const.js +18 -18
- package/esm2015/viewport/viewport.model.js +31 -31
- package/esm2015/viewport/viewport.service.js +69 -69
- package/esm2015/viewport/viewport.util.js +117 -117
- package/esm2020/config.mjs +7 -0
- package/esm2020/index.mjs +5 -0
- package/esm2020/internal/internal.model.mjs +2 -0
- package/esm2020/module.mjs +65 -0
- package/esm2020/platform/window.mjs +30 -0
- package/esm2020/ssv-ngx.ux.mjs +5 -0
- package/esm2020/version.mjs +2 -0
- package/esm2020/viewport/index.mjs +9 -0
- package/esm2020/viewport/viewport-data/index.mjs +4 -0
- package/esm2020/viewport/viewport-data/viewport-data-matcher.mjs +108 -0
- package/esm2020/viewport/viewport-data/viewport-data.pipe.mjs +43 -0
- package/esm2020/viewport/viewport-data/viewport-data.service.mjs +37 -0
- package/esm2020/viewport/viewport-data/viewport-data.utils.mjs +100 -0
- package/esm2020/viewport/viewport-matcher-var.directive.mjs +63 -0
- package/esm2020/viewport/viewport-matcher.directive.mjs +131 -0
- package/esm2020/viewport/viewport-server-size.service.mjs +43 -0
- package/esm2020/viewport/viewport.const.mjs +18 -0
- package/esm2020/viewport/viewport.model.mjs +31 -0
- package/esm2020/viewport/viewport.service.mjs +67 -0
- package/esm2020/viewport/viewport.util.mjs +117 -0
- package/fesm2015/ssv-ngx.ux.js +770 -770
- package/fesm2015/ssv-ngx.ux.js.map +1 -1
- package/fesm2015/ssv-ngx.ux.mjs +829 -0
- package/fesm2015/ssv-ngx.ux.mjs.map +1 -0
- package/fesm2020/ssv-ngx.ux.mjs +823 -0
- package/fesm2020/ssv-ngx.ux.mjs.map +1 -0
- package/index.d.ts +4 -4
- package/internal/internal.model.d.ts +9 -9
- package/module.d.ts +19 -12
- package/package.json +21 -9
- package/platform/window.d.ts +13 -10
- package/ssv-ngx.ux.d.ts +6 -6
- package/ssv-ngx.ux.metadata.json +1 -1
- package/version.d.ts +1 -1
- package/viewport/index.d.ts +8 -8
- package/viewport/viewport-data/index.d.ts +3 -3
- package/viewport/viewport-data/viewport-data-matcher.d.ts +32 -32
- package/viewport/viewport-data/viewport-data.pipe.d.ts +18 -15
- package/viewport/viewport-data/viewport-data.service.d.ts +20 -17
- package/viewport/viewport-data/viewport-data.utils.d.ts +21 -21
- package/viewport/viewport-matcher-var.directive.d.ts +25 -22
- package/viewport/viewport-matcher.directive.d.ts +33 -30
- package/viewport/viewport-server-size.service.d.ts +12 -9
- package/viewport/viewport.const.d.ts +5 -5
- package/viewport/viewport.model.d.ts +57 -57
- package/viewport/viewport.service.d.ts +37 -34
- package/viewport/viewport.util.d.ts +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,142 +1,149 @@
|
|
|
1
|
-
## [2.0.0](https://github.com/sketch7/ngx.ux/compare/1.2.2...2.0.0) (2020-xx-xx)
|
|
2
|
-
|
|
3
|
-
### Features
|
|
4
|
-
|
|
5
|
-
- **deps:** update dependencies to support Angular v10
|
|
6
|
-
- **deps:** add dependency on `tslib: ^2.0.0`
|
|
7
|
-
|
|
8
|
-
### BREAKING CHANGES
|
|
9
|
-
|
|
10
|
-
- **viewport:** make several utils/models internal only
|
|
11
|
-
- **viewport:** change `ViewportSizeType` and `UX_VIEWPORT_DEFAULT_BREAKPOINTS` has been changed (see readme)
|
|
12
|
-
- **viewport:** remove `ViewportService.calculateItemsPerRow` function
|
|
13
|
-
|
|
14
|
-
## [1.4.
|
|
15
|
-
|
|
16
|
-
### Features
|
|
17
|
-
|
|
18
|
-
- **viewport:**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
- **viewport:**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- **
|
|
48
|
-
|
|
49
|
-
## [1.2.
|
|
50
|
-
|
|
51
|
-
###
|
|
52
|
-
|
|
53
|
-
- **
|
|
54
|
-
- **
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
- **
|
|
72
|
-
- **
|
|
73
|
-
|
|
74
|
-
## [1.1.
|
|
75
|
-
|
|
76
|
-
###
|
|
77
|
-
|
|
78
|
-
- **viewport:**
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
###
|
|
103
|
-
|
|
104
|
-
- **viewport:**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
## [0.1.
|
|
108
|
-
|
|
109
|
-
###
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
## [0.1.
|
|
115
|
-
|
|
116
|
-
###
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
## [0.1.
|
|
122
|
-
|
|
123
|
-
### Bug Fixes
|
|
124
|
-
|
|
125
|
-
- **viewport:** fix `
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
## [0.1.
|
|
129
|
-
|
|
130
|
-
### Bug Fixes
|
|
131
|
-
|
|
132
|
-
- **viewport:** fix when
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
## [0.1.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
1
|
+
## [2.0.0](https://github.com/sketch7/ngx.ux/compare/1.2.2...2.0.0) (2020-xx-xx)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **deps:** update dependencies to support Angular v10
|
|
6
|
+
- **deps:** add dependency on `tslib: ^2.0.0`
|
|
7
|
+
|
|
8
|
+
### BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
- **viewport:** make several utils/models internal only
|
|
11
|
+
- **viewport:** change `ViewportSizeType` and `UX_VIEWPORT_DEFAULT_BREAKPOINTS` has been changed (see readme)
|
|
12
|
+
- **viewport:** remove `ViewportService.calculateItemsPerRow` function
|
|
13
|
+
|
|
14
|
+
## [1.4.1](https://github.com/sketch7/ngx.ux/compare/1.4.0...1.4.1) (2023-04-13)
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
- **viewport:** `ViewportService` - add `resizeSnap$`, `sizeTypeSnap$`, `sizeSnap$` which are unthrottled
|
|
19
|
+
- **viewport:** `ViewportDataService ` `get$` add option to `throttle`
|
|
20
|
+
|
|
21
|
+
## [1.4.0](https://github.com/sketch7/ngx.ux/compare/1.3.0...1.4.0) (2020-11-25)
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
- **viewport:** implement `ssvViewportMatcherVar` directive
|
|
26
|
+
|
|
27
|
+
## [1.3.0](https://github.com/sketch7/ngx.ux/compare/1.2.2...1.3.0) (2020-11-11)
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
- **viewport:** implement viewport data - `ViewportDataService`, `ssvViewportData` pipe (see doc for more info)
|
|
32
|
+
- **viewport:** change `ViewportService.sizeTypeMap` - now maps by type (id) as well
|
|
33
|
+
- **viewport:** add `ViewportService.sizeTypeSnapshot`
|
|
34
|
+
|
|
35
|
+
### Refactor
|
|
36
|
+
|
|
37
|
+
- **module:** refactor main module config
|
|
38
|
+
|
|
39
|
+
## [1.2.2](https://github.com/sketch7/ngx.ux/compare/1.2.1...1.2.2) (2020-10-30)
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
- **viewport:** add `size$` to `ViewportService`
|
|
44
|
+
|
|
45
|
+
### Bug Fixes
|
|
46
|
+
|
|
47
|
+
- **viewport:** throw error when invalid size type is used in matcher
|
|
48
|
+
|
|
49
|
+
## [1.2.1](https://github.com/sketch7/ngx.ux/compare/1.2.0...1.2.1) (2020-10-28)
|
|
50
|
+
|
|
51
|
+
### Bug Fixes
|
|
52
|
+
|
|
53
|
+
- **build:** down version several dependencies packages in order to support angular 8 (and possibly less)
|
|
54
|
+
- **deps:** revert dependency on tslib `^1.10.0`
|
|
55
|
+
|
|
56
|
+
## [1.2.0](https://github.com/sketch7/ngx.ux/compare/1.1.1...1.2.0) (2020-10-27)
|
|
57
|
+
|
|
58
|
+
### Features
|
|
59
|
+
|
|
60
|
+
- **viewport:** implement configurable breakpoints (thanks to contrib [@joseph118](https://github.com/joseph118))
|
|
61
|
+
- **viewport:** add util method `generateViewportSizeType` to generate a representation of `ViewportSizeType`
|
|
62
|
+
- **deps:** now depends on tslib `^1.10.0`
|
|
63
|
+
|
|
64
|
+
### Refactor
|
|
65
|
+
|
|
66
|
+
- **all:** minor refactoring
|
|
67
|
+
|
|
68
|
+
### Chore
|
|
69
|
+
|
|
70
|
+
- **deps:** update dev dependencies
|
|
71
|
+
- **ci:** update node version
|
|
72
|
+
- **lint:** migrate from tslint to eslint
|
|
73
|
+
|
|
74
|
+
## [1.1.1](https://github.com/sketch7/ngx.ux/compare/1.1.0...1.1.1) (2020-05-29)
|
|
75
|
+
|
|
76
|
+
### Bug Fixes
|
|
77
|
+
|
|
78
|
+
- **viewport:** use `documentElement.clientWidth` to check viewport width on Safari only
|
|
79
|
+
- **viewport:** `getViewportSize` not being called on SSR
|
|
80
|
+
|
|
81
|
+
## [1.1.0](https://github.com/sketch7/ngx.ux/compare/1.0.0...1.1.0) (2019-08-22)
|
|
82
|
+
|
|
83
|
+
### Features
|
|
84
|
+
|
|
85
|
+
- **viewport:** add additional viewport breakpoint size `xxlarge1 >=1920`
|
|
86
|
+
|
|
87
|
+
## [1.0.0](https://github.com/sketch7/ngx.ux/compare/0.2.0...1.0.0) (2019-06-11)
|
|
88
|
+
|
|
89
|
+
### Chore
|
|
90
|
+
|
|
91
|
+
*No new fixes/features in this release*
|
|
92
|
+
|
|
93
|
+
- **deps:** update dev dependencies
|
|
94
|
+
- **ci:** update node version
|
|
95
|
+
|
|
96
|
+
## [0.2.0](https://github.com/sketch7/ngx.ux/compare/0.1.5...0.2.0) (2019-05-20)
|
|
97
|
+
|
|
98
|
+
- **viewport:** width now includes scrollbar to be more inline with css media queries e.g. `window.innerWidth` instead of `documentElement.clientWidth` (same for height)
|
|
99
|
+
- **viewport:** resize now emits more frequently, not only after stopping resizing for a duration of time e.g. use `auditTime` instead of `debounceTime`
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### BREAKING CHANGES
|
|
103
|
+
|
|
104
|
+
- **viewport:** viewport size matching (including viewport matcher) size ranges now change according to the viewport size instead of the viewport container (e.g. scrollbar size is included)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## [0.1.5](https://github.com/sketch7/ngx.ux/compare/0.1.4...0.1.5) (2018-02-26)
|
|
108
|
+
|
|
109
|
+
### Features
|
|
110
|
+
|
|
111
|
+
- **viewport:** implemented `calculateItemsPerRow` in service
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## [0.1.4](https://github.com/sketch7/ngx.ux/compare/0.1.3...0.1.4) (2018-02-21)
|
|
115
|
+
|
|
116
|
+
### Chore
|
|
117
|
+
|
|
118
|
+
update tooling
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## [0.1.3](https://github.com/sketch7/ngx.ux/compare/0.1.2...0.1.3) (2018-01-31)
|
|
122
|
+
|
|
123
|
+
### Bug Fixes
|
|
124
|
+
|
|
125
|
+
- **viewport:** fix `sizeType$` was returning the initial `sizeType` on subscribe until resizing instead of the last value
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
## [0.1.2](https://github.com/sketch7/ngx.ux/compare/0.1.1...0.1.2) (2018-11-27)
|
|
129
|
+
|
|
130
|
+
### Bug Fixes
|
|
131
|
+
|
|
132
|
+
- **viewport:** fix `ssvViewportMatcher` when used on `ng-container` was trying to add cssClass and throwing an error
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
## [0.1.1](https://github.com/sketch7/ngx.ux/compare/0.1.0...0.1.1) (2018-11-26)
|
|
136
|
+
|
|
137
|
+
### Bug Fixes
|
|
138
|
+
|
|
139
|
+
- **viewport:** fix when using OnPush with `ssvViewportMatcher`
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## [0.1.0](https://github.com/sketch7/ngx.ux) (2018-11-23)
|
|
143
|
+
|
|
144
|
+
Initial release
|
|
145
|
+
|
|
146
|
+
### Features
|
|
147
|
+
|
|
148
|
+
- **viewport:** viewport service implementation
|
|
149
|
+
- **viewport:** viewport size matcher implementation
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2016
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|