@ssv/ngx.ux 2.0.2-dev.7 → 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 -0
  2. package/LICENSE +21 -21
  3. package/README.md +297 -297
  4. package/bundles/ssv-ngx.ux.umd.js +1219 -0
  5. package/bundles/ssv-ngx.ux.umd.js.map +1 -0
  6. package/bundles/ssv-ngx.ux.umd.min.js +16 -0
  7. package/bundles/ssv-ngx.ux.umd.min.js.map +1 -0
  8. package/config.d.ts +7 -7
  9. package/esm2015/config.js +7 -0
  10. package/esm2015/index.js +5 -0
  11. package/esm2015/internal/internal.model.js +2 -0
  12. package/esm2015/module.js +50 -0
  13. package/esm2015/platform/window.js +28 -0
  14. package/esm2015/ssv-ngx.ux.js +7 -0
  15. package/esm2015/version.js +2 -0
  16. package/esm2015/viewport/index.js +9 -0
  17. package/esm2015/viewport/viewport-data/index.js +4 -0
  18. package/esm2015/viewport/viewport-data/viewport-data-matcher.js +108 -0
  19. package/esm2015/viewport/viewport-data/viewport-data.pipe.js +43 -0
  20. package/esm2015/viewport/viewport-data/viewport-data.service.js +38 -0
  21. package/esm2015/viewport/viewport-data/viewport-data.utils.js +100 -0
  22. package/esm2015/viewport/viewport-matcher-var.directive.js +64 -0
  23. package/esm2015/viewport/viewport-matcher.directive.js +134 -0
  24. package/esm2015/viewport/viewport-server-size.service.js +38 -0
  25. package/esm2015/viewport/viewport.const.js +18 -0
  26. package/esm2015/viewport/viewport.model.js +31 -0
  27. package/esm2015/viewport/viewport.service.js +69 -0
  28. package/esm2015/viewport/viewport.util.js +117 -0
  29. package/esm2020/config.mjs +7 -7
  30. package/esm2020/index.mjs +5 -5
  31. package/esm2020/internal/internal.model.mjs +2 -2
  32. package/esm2020/module.mjs +65 -65
  33. package/esm2020/platform/window.mjs +30 -30
  34. package/esm2020/ssv-ngx.ux.mjs +4 -4
  35. package/esm2020/version.mjs +2 -2
  36. package/esm2020/viewport/index.mjs +9 -9
  37. package/esm2020/viewport/viewport-data/index.mjs +4 -4
  38. package/esm2020/viewport/viewport-data/viewport-data-matcher.mjs +108 -108
  39. package/esm2020/viewport/viewport-data/viewport-data.pipe.mjs +43 -43
  40. package/esm2020/viewport/viewport-data/viewport-data.service.mjs +37 -37
  41. package/esm2020/viewport/viewport-data/viewport-data.utils.mjs +100 -100
  42. package/esm2020/viewport/viewport-matcher-var.directive.mjs +63 -63
  43. package/esm2020/viewport/viewport-matcher.directive.mjs +131 -131
  44. package/esm2020/viewport/viewport-server-size.service.mjs +43 -43
  45. package/esm2020/viewport/viewport.const.mjs +18 -18
  46. package/esm2020/viewport/viewport.model.mjs +31 -31
  47. package/esm2020/viewport/viewport.service.mjs +67 -66
  48. package/esm2020/viewport/viewport.util.mjs +117 -117
  49. package/fesm2015/ssv-ngx.ux.js +807 -0
  50. package/fesm2015/ssv-ngx.ux.js.map +1 -0
  51. package/fesm2015/ssv-ngx.ux.mjs +790 -789
  52. package/fesm2015/ssv-ngx.ux.mjs.map +1 -1
  53. package/fesm2020/ssv-ngx.ux.mjs +784 -783
  54. package/fesm2020/ssv-ngx.ux.mjs.map +1 -1
  55. package/index.d.ts +4 -4
  56. package/internal/internal.model.d.ts +9 -9
  57. package/module.d.ts +19 -19
  58. package/package.json +1 -1
  59. package/platform/window.d.ts +13 -13
  60. package/ssv-ngx.ux.d.ts +6 -0
  61. package/ssv-ngx.ux.metadata.json +1 -0
  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 -18
  67. package/viewport/viewport-data/viewport-data.service.d.ts +20 -20
  68. package/viewport/viewport-data/viewport-data.utils.d.ts +21 -21
  69. package/viewport/viewport-matcher-var.directive.d.ts +25 -25
  70. package/viewport/viewport-matcher.directive.d.ts +33 -33
  71. package/viewport/viewport-server-size.service.d.ts +12 -12
  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 -37
  75. package/viewport/viewport.util.d.ts +25 -25
package/CHANGELOG.md ADDED
@@ -0,0 +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.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.