-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/EMP-4077-migrate-x-modules-search-box-t…
…o-composition-api # Conflicts: # packages/_vue3-migration-test/src/router.ts
- Loading branch information
Showing
19 changed files
with
470 additions
and
1,617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,19 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [1.0.0-alpha.10](https://github.com/empathyco/x/compare/[email protected]@1.0.0-alpha.10) (2024-05-17) | ||
|
||
|
||
### ⚠ BREAKING CHANGES | ||
|
||
* **scroll:** `WindowScroll' component will no longer be available and has been removed. | ||
|
||
### Features | ||
|
||
* **scroll:** replace `ScrollMixin` by `UseScroll` composable (#1473) ([26244cd](https://github.com/empathyco/x/commit/26244cdc8ced863918f0ceb8138ca89bf6792461)) | ||
|
||
|
||
|
||
## [1.0.0-alpha.9](https://github.com/empathyco/x/compare/[email protected]@1.0.0-alpha.9) (2024-05-15) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { default as TestScroll } from './test-scroll.vue'; | ||
export { default as TestBaseScroll } from './test-base-scroll.vue'; | ||
export * from './x-module'; |
56 changes: 56 additions & 0 deletions
56
packages/_vue3-migration-test/src/x-modules/scroll/test-base-scroll.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<template> | ||
<BaseScroll | ||
@scroll="onScroll" | ||
@scroll:direction-change="onScrollDirectionChange" | ||
@scroll:at-start="onScrollAtStart" | ||
@scroll:almost-at-end="onScrollAlmostAtEnd" | ||
@scroll:at-end="onScrollAtEnd" | ||
> | ||
<ul> | ||
<li v-for="item in items" :key="item.id">base-scroll-{{ item.id }}</li> | ||
</ul> | ||
</BaseScroll> | ||
<table> | ||
<tr> | ||
<td>Position</td> | ||
<td>Direction</td> | ||
<td>At start</td> | ||
<td>Almost at end</td> | ||
<td>At end</td> | ||
</tr> | ||
<tr style="font-weight: bold"> | ||
<td>{{ scroll }}</td> | ||
<td>{{ scrollDirection }}</td> | ||
<td>{{ isScrollAtStart }}</td> | ||
<td>{{ isScrollAlmostAtEnd }}</td> | ||
<td>{{ isScrollAtEnd }}</td> | ||
</tr> | ||
</table> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
import BaseScroll from '../../../../x-components/src/components/scroll/base-scroll.vue'; | ||
import { ScrollDirection } from '../../../../x-components/src/components/scroll/scroll.types'; | ||
const items = Array.from({ length: 24 }, (_, index) => ({ id: `item-${index}` })); | ||
const scroll = ref(0); | ||
const scrollDirection = ref<ScrollDirection>('UP'); | ||
const isScrollAtStart = ref(false); | ||
const isScrollAlmostAtEnd = ref(false); | ||
const isScrollAtEnd = ref(false); | ||
const onScroll = (pos: number) => (scroll.value = pos); | ||
const onScrollDirectionChange = (dir: ScrollDirection) => (scrollDirection.value = dir); | ||
const onScrollAtStart = (is: boolean) => (isScrollAtStart.value = is); | ||
const onScrollAlmostAtEnd = (is: boolean) => (isScrollAlmostAtEnd.value = is); | ||
const onScrollAtEnd = (is: boolean) => (isScrollAtEnd.value = is); | ||
</script> | ||
|
||
<style> | ||
/* Inheritance of `design-system-deprecated` */ | ||
.x-base-scroll { | ||
overflow: auto; | ||
height: 100px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,19 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [5.0.0-alpha.13](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2024-05-17) | ||
|
||
|
||
### ⚠ BREAKING CHANGES | ||
|
||
* **scroll:** `WindowScroll' component will no longer be available and has been removed. | ||
|
||
### Features | ||
|
||
* **scroll:** replace `ScrollMixin` by `UseScroll` composable (#1473) ([26244cd](https://github.com/empathyco/x/commit/26244cdc8ced863918f0ceb8138ca89bf6792461)) | ||
|
||
|
||
|
||
## [5.0.0-alpha.12](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2024-05-15) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 85 additions & 6 deletions
91
packages/x-components/src/components/scroll/base-scroll.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { default as BaseScroll } from './base-scroll.vue'; | ||
export { default as ScrollMixin } from './scroll.mixin'; | ||
export * from './scroll.types'; | ||
export * from './use-scroll'; |
Oops, something went wrong.