@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.
Files changed (75) hide show
  1. package/CHANGELOG.md +149 -142
  2. package/LICENSE +21 -21
  3. package/README.md +297 -297
  4. package/bundles/ssv-ngx.ux.umd.js +1154 -1154
  5. package/bundles/ssv-ngx.ux.umd.js.map +1 -1
  6. package/bundles/ssv-ngx.ux.umd.min.js +1 -1
  7. package/bundles/ssv-ngx.ux.umd.min.js.map +1 -1
  8. package/config.d.ts +7 -7
  9. package/esm2015/config.js +7 -7
  10. package/esm2015/index.js +5 -5
  11. package/esm2015/internal/internal.model.js +2 -2
  12. package/esm2015/module.js +50 -50
  13. package/esm2015/platform/window.js +28 -28
  14. package/esm2015/ssv-ngx.ux.js +7 -7
  15. package/esm2015/version.js +2 -2
  16. package/esm2015/viewport/index.js +9 -9
  17. package/esm2015/viewport/viewport-data/index.js +4 -4
  18. package/esm2015/viewport/viewport-data/viewport-data-matcher.js +108 -108
  19. package/esm2015/viewport/viewport-data/viewport-data.pipe.js +43 -43
  20. package/esm2015/viewport/viewport-data/viewport-data.service.js +38 -38
  21. package/esm2015/viewport/viewport-data/viewport-data.utils.js +100 -100
  22. package/esm2015/viewport/viewport-matcher-var.directive.js +64 -64
  23. package/esm2015/viewport/viewport-matcher.directive.js +134 -134
  24. package/esm2015/viewport/viewport-server-size.service.js +38 -38
  25. package/esm2015/viewport/viewport.const.js +18 -18
  26. package/esm2015/viewport/viewport.model.js +31 -31
  27. package/esm2015/viewport/viewport.service.js +69 -69
  28. package/esm2015/viewport/viewport.util.js +117 -117
  29. package/esm2020/config.mjs +7 -0
  30. package/esm2020/index.mjs +5 -0
  31. package/esm2020/internal/internal.model.mjs +2 -0
  32. package/esm2020/module.mjs +65 -0
  33. package/esm2020/platform/window.mjs +30 -0
  34. package/esm2020/ssv-ngx.ux.mjs +5 -0
  35. package/esm2020/version.mjs +2 -0
  36. package/esm2020/viewport/index.mjs +9 -0
  37. package/esm2020/viewport/viewport-data/index.mjs +4 -0
  38. package/esm2020/viewport/viewport-data/viewport-data-matcher.mjs +108 -0
  39. package/esm2020/viewport/viewport-data/viewport-data.pipe.mjs +43 -0
  40. package/esm2020/viewport/viewport-data/viewport-data.service.mjs +37 -0
  41. package/esm2020/viewport/viewport-data/viewport-data.utils.mjs +100 -0
  42. package/esm2020/viewport/viewport-matcher-var.directive.mjs +63 -0
  43. package/esm2020/viewport/viewport-matcher.directive.mjs +131 -0
  44. package/esm2020/viewport/viewport-server-size.service.mjs +43 -0
  45. package/esm2020/viewport/viewport.const.mjs +18 -0
  46. package/esm2020/viewport/viewport.model.mjs +31 -0
  47. package/esm2020/viewport/viewport.service.mjs +67 -0
  48. package/esm2020/viewport/viewport.util.mjs +117 -0
  49. package/fesm2015/ssv-ngx.ux.js +770 -770
  50. package/fesm2015/ssv-ngx.ux.js.map +1 -1
  51. package/fesm2015/ssv-ngx.ux.mjs +829 -0
  52. package/fesm2015/ssv-ngx.ux.mjs.map +1 -0
  53. package/fesm2020/ssv-ngx.ux.mjs +823 -0
  54. package/fesm2020/ssv-ngx.ux.mjs.map +1 -0
  55. package/index.d.ts +4 -4
  56. package/internal/internal.model.d.ts +9 -9
  57. package/module.d.ts +19 -12
  58. package/package.json +21 -9
  59. package/platform/window.d.ts +13 -10
  60. package/ssv-ngx.ux.d.ts +6 -6
  61. package/ssv-ngx.ux.metadata.json +1 -1
  62. package/version.d.ts +1 -1
  63. package/viewport/index.d.ts +8 -8
  64. package/viewport/viewport-data/index.d.ts +3 -3
  65. package/viewport/viewport-data/viewport-data-matcher.d.ts +32 -32
  66. package/viewport/viewport-data/viewport-data.pipe.d.ts +18 -15
  67. package/viewport/viewport-data/viewport-data.service.d.ts +20 -17
  68. package/viewport/viewport-data/viewport-data.utils.d.ts +21 -21
  69. package/viewport/viewport-matcher-var.directive.d.ts +25 -22
  70. package/viewport/viewport-matcher.directive.d.ts +33 -30
  71. package/viewport/viewport-server-size.service.d.ts +12 -9
  72. package/viewport/viewport.const.d.ts +5 -5
  73. package/viewport/viewport.model.d.ts +57 -57
  74. package/viewport/viewport.service.d.ts +37 -34
  75. 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.0](https://github.com/sketch7/ngx.ux/compare/1.3.0...1.4.0) (2020-11-25)
15
-
16
- ### Features
17
-
18
- - **viewport:** implement `ssvViewportMatcherVar` directive
19
-
20
- ## [1.3.0](https://github.com/sketch7/ngx.ux/compare/1.2.2...1.3.0) (2020-11-11)
21
-
22
- ### Features
23
-
24
- - **viewport:** implement viewport data - `ViewportDataService`, `ssvViewportData` pipe (see doc for more info)
25
- - **viewport:** change `ViewportService.sizeTypeMap` - now maps by type (id) as well
26
- - **viewport:** add `ViewportService.sizeTypeSnapshot`
27
-
28
- ### Refactor
29
-
30
- - **module:** refactor main module config
31
-
32
- ## [1.2.2](https://github.com/sketch7/ngx.ux/compare/1.2.1...1.2.2) (2020-10-30)
33
-
34
- ### Features
35
-
36
- - **viewport:** add `size$` to `ViewportService`
37
-
38
- ### Bug Fixes
39
-
40
- - **viewport:** throw error when invalid size type is used in matcher
41
-
42
- ## [1.2.1](https://github.com/sketch7/ngx.ux/compare/1.2.0...1.2.1) (2020-10-28)
43
-
44
- ### Bug Fixes
45
-
46
- - **build:** down version several dependencies packages in order to support angular 8 (and possibly less)
47
- - **deps:** revert dependency on tslib `^1.10.0`
48
-
49
- ## [1.2.0](https://github.com/sketch7/ngx.ux/compare/1.1.1...1.2.0) (2020-10-27)
50
-
51
- ### Features
52
-
53
- - **viewport:** implement configurable breakpoints (thanks to contrib [@joseph118](https://github.com/joseph118))
54
- - **viewport:** add util method `generateViewportSizeType` to generate a representation of `ViewportSizeType`
55
- - **deps:** now depends on tslib `^1.10.0`
56
-
57
- ### Refactor
58
-
59
- - **all:** minor refactoring
60
-
61
- ### Chore
62
-
63
- - **deps:** update dev dependencies
64
- - **ci:** update node version
65
- - **lint:** migrate from tslint to eslint
66
-
67
- ## [1.1.1](https://github.com/sketch7/ngx.ux/compare/1.1.0...1.1.1) (2020-05-29)
68
-
69
- ### Bug Fixes
70
-
71
- - **viewport:** use `documentElement.clientWidth` to check viewport width on Safari only
72
- - **viewport:** `getViewportSize` not being called on SSR
73
-
74
- ## [1.1.0](https://github.com/sketch7/ngx.ux/compare/1.0.0...1.1.0) (2019-08-22)
75
-
76
- ### Features
77
-
78
- - **viewport:** add additional viewport breakpoint size `xxlarge1 >=1920`
79
-
80
- ## [1.0.0](https://github.com/sketch7/ngx.ux/compare/0.2.0...1.0.0) (2019-06-11)
81
-
82
- ### Chore
83
-
84
- *No new fixes/features in this release*
85
-
86
- - **deps:** update dev dependencies
87
- - **ci:** update node version
88
-
89
- ## [0.2.0](https://github.com/sketch7/ngx.ux/compare/0.1.5...0.2.0) (2019-05-20)
90
-
91
- - **viewport:** width now includes scrollbar to be more inline with css media queries e.g. `window.innerWidth` instead of `documentElement.clientWidth` (same for height)
92
- - **viewport:** resize now emits more frequently, not only after stopping resizing for a duration of time e.g. use `auditTime` instead of `debounceTime`
93
-
94
-
95
- ### BREAKING CHANGES
96
-
97
- - **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)
98
-
99
-
100
- ## [0.1.5](https://github.com/sketch7/ngx.ux/compare/0.1.4...0.1.5) (2018-02-26)
101
-
102
- ### Features
103
-
104
- - **viewport:** implemented `calculateItemsPerRow` in service
105
-
106
-
107
- ## [0.1.4](https://github.com/sketch7/ngx.ux/compare/0.1.3...0.1.4) (2018-02-21)
108
-
109
- ### Chore
110
-
111
- update tooling
112
-
113
-
114
- ## [0.1.3](https://github.com/sketch7/ngx.ux/compare/0.1.2...0.1.3) (2018-01-31)
115
-
116
- ### Bug Fixes
117
-
118
- - **viewport:** fix `sizeType$` was returning the initial `sizeType` on subscribe until resizing instead of the last value
119
-
120
-
121
- ## [0.1.2](https://github.com/sketch7/ngx.ux/compare/0.1.1...0.1.2) (2018-11-27)
122
-
123
- ### Bug Fixes
124
-
125
- - **viewport:** fix `ssvViewportMatcher` when used on `ng-container` was trying to add cssClass and throwing an error
126
-
127
-
128
- ## [0.1.1](https://github.com/sketch7/ngx.ux/compare/0.1.0...0.1.1) (2018-11-26)
129
-
130
- ### Bug Fixes
131
-
132
- - **viewport:** fix when using OnPush with `ssvViewportMatcher`
133
-
134
-
135
- ## [0.1.0](https://github.com/sketch7/ngx.ux) (2018-11-23)
136
-
137
- Initial release
138
-
139
- ### Features
140
-
141
- - **viewport:** viewport service implementation
142
- - **viewport:** viewport size matcher implementation
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.