-
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-4142-migrate-base-suggestions-to-co…
…mposition-api # Conflicts: # packages/_vue3-migration-test/src/router.ts
- Loading branch information
Showing
25 changed files
with
651 additions
and
567 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,25 @@ | |
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.16](https://github.com/empathyco/x/compare/[email protected]@1.0.0-alpha.16) (2024-05-28) | ||
|
||
|
||
### Features | ||
|
||
* **base-modal:** migrate base-modal component and side effects (#1479) ([610ec16](https://github.com/empathyco/x/commit/610ec16e20b10a344936b2914c61085e22a09dfd)) | ||
* **sliding-panel:** migrate sliding-panel component to composition API (#1485) ([bf9e1a3](https://github.com/empathyco/x/commit/bf9e1a38364a23402562a19ce8095452da5f02d7)) | ||
|
||
|
||
|
||
## [1.0.0-alpha.15](https://github.com/empathyco/x/compare/[email protected]@1.0.0-alpha.15) (2024-05-28) | ||
|
||
|
||
### Code Refactoring | ||
|
||
* migrate `BaseVariableColumnGrid` to Composition API (#1482) ([b7e292a](https://github.com/empathyco/x/commit/b7e292ae55560f557dd7db3cfbceed993c7b318e)) | ||
|
||
|
||
|
||
## [1.0.0-alpha.14](https://github.com/empathyco/x/compare/[email protected]@1.0.0-alpha.14) (2024-05-28) | ||
|
||
|
||
|
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
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,7 +1,10 @@ | ||
export * from './animations'; | ||
export { default as TestBaseColumnPickerDropdown } from './column-picker/test-base-column-picker-dropdown.vue'; | ||
export { default as TestBaseColumnPickerList } from './column-picker/test-base-column-picker-list.vue'; | ||
export { default as TestBaseModal } from './modals/test-base-modal.vue'; | ||
export { default as TestBaseDropdown } from './test-base-dropdown.vue'; | ||
export { default as TestBaseEventButton } from './test-base-event-button.vue'; | ||
export { default as TestBaseVariableColumnGrid } from './test-base-variable-column-grid.vue'; | ||
export { default as TestSlidingPanel } from './test-sliding-panel.vue'; | ||
export { default as TestUseLayouts } from './test-use-layouts.vue'; | ||
export { default as TestBaseSuggestions } from './suggestions/test-base-suggestions.vue'; |
44 changes: 44 additions & 0 deletions
44
packages/_vue3-migration-test/src/components/modals/test-base-modal.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,44 @@ | ||
<template> | ||
<div class="base-modal"> | ||
<button @click="open = true">Open modal</button> | ||
<BaseModal | ||
@click:overlay="open = false" | ||
@focusin:body="open = false" | ||
:open="open" | ||
:focusOnOpen="true" | ||
referenceSelector=".header" | ||
:animation="Fade" | ||
:overlayAnimation="Fade" | ||
contentClass="content" | ||
overlayClass="overlay" | ||
> | ||
<h1>Hello</h1> | ||
<p>The modal is working</p> | ||
<button @click="open = false">Close modal</button> | ||
</BaseModal> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
import BaseModal from '../../../../x-components/src/components/modals/base-modal.vue'; | ||
import Fade from '../../../../x-components/src/components/animations/fade.vue'; | ||
const open = ref(false); | ||
</script> | ||
|
||
<style> | ||
.base-modal { | ||
.content { | ||
background: white; | ||
margin: auto; | ||
width: 50%; | ||
border: 3px solid green; | ||
padding: 10px; | ||
} | ||
.overlay { | ||
background-color: red; | ||
} | ||
} | ||
</style> |
30 changes: 30 additions & 0 deletions
30
packages/_vue3-migration-test/src/components/test-base-variable-column-grid.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,30 @@ | ||
<template> | ||
<button @click="setColumns" class="column-picker-selector"> | ||
<span class="column-picker-selector__text">{{ columnsToRender }} columns</span> | ||
</button> | ||
<button @click="resetColumns" class="column-picker-reset"> | ||
<span>reset columns</span> | ||
</button> | ||
<ResultsList> | ||
<BaseVariableColumnGrid :columns="columnsToRender"> | ||
<template #result="{ item: result }"> | ||
{{ result.id }} | ||
</template> | ||
</BaseVariableColumnGrid> | ||
</ResultsList> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
import ResultsList from '../../../x-components/src/x-modules/search/components/results-list.vue'; | ||
import BaseVariableColumnGrid from '../../../x-components/src/components/base-variable-column-grid.vue'; | ||
const columnsToRender = ref(2); | ||
const setColumns = () => (columnsToRender.value = columnsToRender.value + 1); | ||
const resetColumns = () => (columnsToRender.value = 2); | ||
</script> | ||
|
||
<style> | ||
.column-picker-reset { | ||
margin-left: 4px; | ||
} | ||
</style> |
16 changes: 16 additions & 0 deletions
16
packages/_vue3-migration-test/src/components/test-sliding-panel.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,16 @@ | ||
<template> | ||
<SlidingPanel style="width: 300px"> | ||
<span v-for="item in items" :key="item">Item {{ item }}</span> | ||
</SlidingPanel> | ||
<button @click="updateItems">Update items</button> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from 'vue'; | ||
import SlidingPanel from '../../../x-components/src/components/sliding-panel.vue'; | ||
const items = ref<number[]>([]); | ||
const updateItems = () => (items.value = [...Array(Math.floor(Math.random() * 100)).keys()]); | ||
updateItems(); | ||
</script> |
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,34 @@ | |
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.23](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2024-05-28) | ||
|
||
|
||
### Features | ||
|
||
* **base-modal:** migrate base-modal component and side effects (#1479) ([610ec16](https://github.com/empathyco/x/commit/610ec16e20b10a344936b2914c61085e22a09dfd)) | ||
* **sliding-panel:** migrate sliding-panel component to composition API (#1485) ([bf9e1a3](https://github.com/empathyco/x/commit/bf9e1a38364a23402562a19ce8095452da5f02d7)) | ||
|
||
|
||
|
||
## [5.0.0-alpha.22](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2024-05-28) | ||
|
||
|
||
### Code Refactoring | ||
|
||
* migrate `BaseVariableColumnGrid` to Composition API (#1482) ([b7e292a](https://github.com/empathyco/x/commit/b7e292ae55560f557dd7db3cfbceed993c7b318e)) | ||
|
||
|
||
|
||
## [5.0.0-alpha.21](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2024-05-28) | ||
|
||
|
||
### Features | ||
|
||
* replace extra divs with `NoElement` (#1484) ([cc7042e](https://github.com/empathyco/x/commit/cc7042e5f144f2abc9eb39e3834c8a153795f558)) | ||
|
||
|
||
|
||
## [5.0.0-alpha.20](https://github.com/empathyco/x/compare/@empathyco/[email protected]...@empathyco/[email protected]) (2024-05-28) | ||
|
||
|
||
|
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 |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
&--leave-to, | ||
&--enter { | ||
opacity: 0; | ||
opacity: 0 !important; | ||
} | ||
} | ||
</style> | ||
|
Oops, something went wrong.