@lynx-js/web-elements 0.5.1 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 0.5.1
4
12
 
5
13
  ### Patch 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 | ✅ | Only single layout type is supported, flow and waterfall will be supported later |
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.1",
3
+ "version": "0.5.2",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
+ }
@@ -124,6 +124,11 @@ list-item {
124
124
  min-width: 0;
125
125
  min-height: 0;
126
126
  border-style: solid;
127
+ scrollbar-width: none;
128
+ }
129
+
130
+ x-view::--webkit-scrollbar {
131
+ display: none;
127
132
  }
128
133
 
129
134
  /**