@lynx-js/web-elements 0.5.0 → 0.5.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 +15 -0
- package/README.md +20 -24
- package/package.json +2 -2
- package/src/XList/x-list.css +14 -0
- package/src/common-css/linear.css +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @lynx-js/web-elements
|
|
2
2
|
|
|
3
|
+
## 0.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: When list with list-type: flow, scrolltoupper, scrolltolower were specified, there was a blank block. ([#379](https://github.com/lynx-family/lynx-stack/pull/379))
|
|
8
|
+
|
|
9
|
+
- fix: do not show scroll bar ([#406](https://github.com/lynx-family/lynx-stack/pull/406))
|
|
10
|
+
|
|
11
|
+
## 0.5.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`082ad97`](https://github.com/lynx-family/lynx-stack/commit/082ad97510c212aa00a9395044bb6fc39a82940a)]:
|
|
16
|
+
- @lynx-js/web-elements-reactive@0.2.1
|
|
17
|
+
|
|
3
18
|
## 0.5.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -4,33 +4,29 @@ It provides the custom-element implementation of Lynx Elements in Web.
|
|
|
4
4
|
|
|
5
5
|
So far, support compared to Lynx Elements on the client:
|
|
6
6
|
|
|
7
|
-
| Elements | Whether support | Details
|
|
8
|
-
| -------------- | --------------- |
|
|
9
|
-
| Elements | |
|
|
10
|
-
| canvas | ❌ | No
|
|
11
|
-
| image | ✅ | Full Support
|
|
12
|
-
| list | ✅ |
|
|
13
|
-
| scroll-view | ✅ | Full Support
|
|
14
|
-
| text | ✅ | Full Support
|
|
15
|
-
| view | ✅ | Full Support
|
|
16
|
-
| X-Elements | |
|
|
17
|
-
| svg | ✅ | Full Support
|
|
18
|
-
| x-blur-view | ✅ | Full Support
|
|
19
|
-
| x-input | ✅ | Full Support
|
|
20
|
-
| x-textarea | ✅ | Full Support
|
|
21
|
-
| x-swiper | ✅ | Full Support
|
|
22
|
-
| x-viewpager-ng | ✅ | Full Support
|
|
23
|
-
| x-foldview-ng | ✅ | Full Support
|
|
24
|
-
| x-refresh-view | ✅ | Full Support
|
|
25
|
-
| x-overlay-ng | ✅ | Full Support
|
|
26
|
-
| x-audio-tt | ✅ | Full Support
|
|
7
|
+
| Elements | Whether support | Details |
|
|
8
|
+
| -------------- | --------------- | ------------------------------------------------------------------------------ |
|
|
9
|
+
| Elements | | |
|
|
10
|
+
| canvas | ❌ | No |
|
|
11
|
+
| image | ✅ | Full Support |
|
|
12
|
+
| list | ✅ | list-type with single and flow are available, and waterfall is being supported |
|
|
13
|
+
| scroll-view | ✅ | Full Support |
|
|
14
|
+
| text | ✅ | Full Support |
|
|
15
|
+
| view | ✅ | Full Support |
|
|
16
|
+
| X-Elements | | |
|
|
17
|
+
| svg | ✅ | Full Support |
|
|
18
|
+
| x-blur-view | ✅ | Full Support |
|
|
19
|
+
| x-input | ✅ | Full Support |
|
|
20
|
+
| x-textarea | ✅ | Full Support |
|
|
21
|
+
| x-swiper | ✅ | Full Support |
|
|
22
|
+
| x-viewpager-ng | ✅ | Full Support |
|
|
23
|
+
| x-foldview-ng | ✅ | Full Support |
|
|
24
|
+
| x-refresh-view | ✅ | Full Support |
|
|
25
|
+
| x-overlay-ng | ✅ | Full Support |
|
|
26
|
+
| x-audio-tt | ✅ | Full Support |
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
29
|
|
|
30
|
-
Normally, you don't need to import `@lynx-js/web-elements` directly, because the `@lynx-js/web-core` has included it.
|
|
31
|
-
|
|
32
|
-
But if you want to use it separately, you can import it like this:
|
|
33
|
-
|
|
34
30
|
```javascript
|
|
35
31
|
import '@lynx-js/web-elements/all';
|
|
36
32
|
import '@lynx-js/web-elements/index.css';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-elements",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"**/*.css"
|
|
101
101
|
],
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@lynx-js/web-elements-reactive": "0.2.
|
|
103
|
+
"@lynx-js/web-elements-reactive": "0.2.1"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"tslib": "^2.8.1"
|
package/src/XList/x-list.css
CHANGED
|
@@ -191,3 +191,17 @@ x-list[list-type="flow"][scroll-orientation="horizontal"]
|
|
|
191
191
|
grid-row-start: 1;
|
|
192
192
|
grid-row-end: calc(var(--list-item-span-count) + 1);
|
|
193
193
|
}
|
|
194
|
+
|
|
195
|
+
x-list[list-type="flow"][x-enable-scrolltoupper-event]::part(upper-threshold-observer),
|
|
196
|
+
x-list[list-type="flow"][x-enable-scrolltoupperedge-event]::part(upper-threshold-observer),
|
|
197
|
+
x-list[list-type="flow"][x-enable-scrolltolower-event]::part(lower-threshold-observer),
|
|
198
|
+
x-list[list-type="flow"][x-enable-scrolltoloweredge-event]::part(lower-threshold-observer) {
|
|
199
|
+
grid-column: 1 / calc(var(--list-item-span-count) + 1);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
x-list[list-type="flow"][scroll-orientation="horizontal"][x-enable-scrolltoupper-event]::part(upper-threshold-observer),
|
|
203
|
+
x-list[list-type="flow"][scroll-orientation="horizontal"][x-enable-scrolltoupperedge-event]::part(upper-threshold-observer),
|
|
204
|
+
x-list[list-type="flow"][scroll-orientation="horizontal"][x-enable-scrolltolower-event]::part(lower-threshold-observer),
|
|
205
|
+
x-list[list-type="flow"][scroll-orientation="horizontal"][x-enable-scrolltoloweredge-event]::part(lower-threshold-observer) {
|
|
206
|
+
grid-row: 1 / calc(var(--list-item-span-count) + 1);
|
|
207
|
+
}
|