Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tagging): query tagging and send session param #1631

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
c6b28e5
feat(x-installer): update to vue3 and adapt x-installer (#1572)
victorcg88 Jul 23, 2024
a485dea
feat: make internal demo app functional (#1574)
diegopf Jul 24, 2024
1877da6
refactor(components): remove warnings first batch (#1575)
victorcg88 Jul 26, 2024
4b57f19
fix(list-components): fix list components, migrate infinite-scroll di…
joseacabaneros Jul 26, 2024
71c08db
refactor(v-deep): replace by :deep() (#1577)
victorcg88 Jul 30, 2024
46ff08b
test(vue-jest): update vue-jest dependency (#1581)
victorcg88 Jul 31, 2024
7875ff5
refactor(render-function): clear void calls (#1580)
victorcg88 Jul 31, 2024
b936ae5
fix(infinite-scroll): getting xBus from XPlugin instead useXBus
joseacabaneros Aug 5, 2024
f915731
refactor(animation-factory): fix Vue3 breaking changes (#1579)
victorcg88 Aug 5, 2024
059eecc
refactor: get rid of NoElement component and useNoElementRender compo…
joseacabaneros Aug 6, 2024
875a6e2
refactor(base-switch): migrate component to vue3 (#1588)
victorcg88 Aug 6, 2024
335c370
test(auto-progress-bar): fix test after Vue3 update (#1582)
victorcg88 Aug 7, 2024
35968eb
refactor(base-switch): decommission of value prop (#1589)
victorcg88 Aug 9, 2024
5d4dec8
test(components): fix tests after Vue3 update BATCH 1
victorcg88 Aug 9, 2024
40f6f66
Merge branch 'main' into vue3-update-rc
diegopf Aug 13, 2024
7ec2b97
fix: adjust to new vue render function API (#1596)
diegopf Aug 14, 2024
e64e3cb
fix(search): replace results state to append new results instead of p…
joseacabaneros Aug 14, 2024
f9e716a
test(components) fix tests after vue3 update (#1599)
albertjcuac Aug 19, 2024
79e136f
refactor(staggered-fade-and-slide): use Vue native staggered transiti…
victorcg88 Aug 19, 2024
f6350c0
merge main branch
diegopf Aug 21, 2024
ed587b1
build: adjust rollup production build for Vue3 (#1603)
joseacabaneros Aug 27, 2024
fe6fffb
fix build for x-tailwindcss
diegopf Aug 27, 2024
b3cc3f5
fix(layout): avoid shared CSS classes between layouts with scoped (#1…
joseacabaneros Aug 30, 2024
aff3151
ci(linter): fix linter issues to pass the CI (#1606)
joseacabaneros Sep 3, 2024
9320c57
feat: bump vue18n version (#1604)
diegopf Sep 3, 2024
b98a31e
feat(rollup): update replace config to align CSS injector with Vue 3 …
joseacabaneros Sep 5, 2024
eb7d377
feat: bump packages versions (#1611)
diegopf Sep 5, 2024
ada9f4a
Merge branch 'main' into vue3-update-rc
diegopf Sep 5, 2024
701cfef
chore(release): publish
Sep 5, 2024
0f4bb97
test: adjust test to vue3 (#1608)
lauramargar Sep 13, 2024
7778704
Merge remote-tracking branch 'origin/main' into vue3-update-rc
joseacabaneros Sep 16, 2024
82a6e27
fix(history-queries-switch)!: migrate value to modelValue (#1618)
victorcg88 Sep 23, 2024
45fbfc3
Fix Vue3 unit tests (#1615)
joseacabaneros Sep 24, 2024
0f35e7c
test: active and fix linter for tests (#1616)
joseacabaneros Sep 24, 2024
f81add6
test(e2e): fix e2e tests (#1617)
joseacabaneros Sep 24, 2024
5a419b2
test(e2e-components): rewrite all e2e sheet components to accomplish …
joseacabaneros Sep 25, 2024
bc8374d
chore(release): publish
Sep 25, 2024
ad970ae
fix(scroll): scroll direction inconsistency (#1629)
victorcg88 Oct 3, 2024
56dc022
chore(release): publish
Oct 4, 2024
1a7006c
fix(tagging): query tagging and send session param
lauramargar Oct 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

**/tests/e2e/videos/
**/tests/e2e/screenshots/
**/tests/e2e/downloads/

# local env files
.env.local
Expand Down
17 changes: 17 additions & 0 deletions packages/_vue3-migration-test/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@
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.51](https://github.com/empathyco/x/compare/vue3-migration-test@1.0.0-alpha.50...vue3-migration-test@1.0.0-alpha.51) (2024-09-05)


### Bug Fixes

* **list-components:** fix list components, migrate infinite-scroll directive and deprecated layouts (#1576) ([4b57f19](https://github.com/empathyco/x/commit/4b57f19be601220a4dc6874dc1d5efa8fdbcf991))


### Code Refactoring

* **animation-factory:** fix Vue3 breaking changes (#1579) ([f915731](https://github.com/empathyco/x/commit/f915731cc8ea662a2066fee054f47885ee2154a9))
* **base-switch:** decommission of value prop (#1589) ([35968eb](https://github.com/empathyco/x/commit/35968ebb69634984e867b03221d373efe4af96c8))
* **base-switch:** migrate component to vue3 (#1588) ([875a6e2](https://github.com/empathyco/x/commit/875a6e2638885498396db362753550857ec8d7e2))
* **staggered-fade-and-slide:** use Vue native staggered transition (#1578) ([79e136f](https://github.com/empathyco/x/commit/79e136f04b0b75ddea77c464b8f5ea0ed6602eb1))



## [1.0.0-alpha.50](https://github.com/empathyco/x/compare/vue3-migration-test@1.0.0-alpha.49...vue3-migration-test@1.0.0-alpha.50) (2024-07-23)


Expand Down
2 changes: 1 addition & 1 deletion packages/_vue3-migration-test/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue3-migration-test",
"private": "true",
"version": "1.0.0-alpha.50",
"version": "1.0.0-alpha.51",
"scripts": {
"dev": "vite",
"preview": "vite preview",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export { default as TestCrossFade } from './test-cross-fade.vue';
export { default as TestFade } from './test-fade.vue';
export { default as TestFadeAndSlide } from './test-fade-and-slide.vue';
export { default as TestAnimationFactory } from './test-animation-factory.vue';
export { default as TestStaggeredFadeAndSlide } from './test-staggered-fade-and-slide.vue';
Original file line number Diff line number Diff line change
@@ -1,35 +1,5 @@
<template>
<div class="animate-modal">
<p>
BREAKING Vue3: `h()` hyperscript doesn't support rendering `'transition'` using strings.
Instead, replace it by `Transition` component of Vue 3 itself `import { Transition } from
'vue'`.
<br />
<a href="https://github.com/vuejs/core/issues/826#issuecomment-598207464">
https://github.com/vuejs/core/issues/826#issuecomment-598207464
</a>
<br />
<a href="https://github.com/vuejs/test-utils/issues/471#issuecomment-804477181">
https://github.com/vuejs/test-utils/issues/471#issuecomment-804477181
</a>
</p>
<p>
BREAKING Vue3: Review Transition Class Change. Replace instances of `.v-enter` to
`.v-enter-from` Replace instances of `.v-leave` to `.v-leave-from`.
<br />
<a href="https://v3-migration.vuejs.org/breaking-changes/transition.html">
https://v3-migration.vuejs.org/breaking-changes/transition.html
</a>
</p>
<p>
BREAKING Vue3: VNodes now have a flat props structure.
<br />
<a
href="https://v3-migration.vuejs.org/breaking-changes/render-function-api.html#vnode-props-format"
>
https://v3-migration.vuejs.org/breaking-changes/render-function-api.html#vnode-props-format
</a>
</p>
<button @click="openWithClipPath">Open modal with CLIP PATH animation</button>
<button @click="openWithScale">Open modal with SCALE animation</button>
<button @click="openWithTranslate">Open modal with TRANSLATE animation</button>
Expand All @@ -49,34 +19,37 @@
</template>

<script setup lang="ts">
import { ref, shallowRef } from 'vue';
import { nextTick, ref, shallowRef } from 'vue';
import BaseModal from '../../../../x-components/src/components/modals/base-modal.vue';
import { animateClipPath } from '../../../../x-components/src/components/animations/animate-clip-path/animate-clip-path.factory';
import { animateScale } from '../../../../x-components/src/components/animations/animate-scale/animate-scale.factory';
import { animateTranslate } from '../../../../x-components/src/components/animations/animate-translate/animate-translate.factory';

const clipPathAnimation = animateClipPath('bottom');
const clipPathAnimation = animateClipPath('left');
const scaleAnimation = animateScale('bottom');
const translateAnimation = animateTranslate('bottom');
const translateAnimation = animateTranslate('right');

const currentAnimation = shallowRef(clipPathAnimation);
const currentAnimation = shallowRef(scaleAnimation);
const open = ref(false);

/** Open modal with ClipPath animation. */
function openWithClipPath() {
async function openWithClipPath() {
currentAnimation.value = clipPathAnimation;
await nextTick();
open.value = true;
}

/** Open modal with Scale animation. */
function openWithScale() {
async function openWithScale() {
currentAnimation.value = scaleAnimation;
await nextTick();
open.value = true;
}

/** Open modal with Translate animation. */
function openWithTranslate() {
async function openWithTranslate() {
currentAnimation.value = translateAnimation;
await nextTick();
open.value = true;
}
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<template>
<h1>Dinamic content:</h1>
<button @click="insert">Insert at random index</button>
<button @click="reset">Reset</button>

<StaggeredFadeAndSlide :stagger="500">
<li v-for="item in items" :key="item.id">
{{ item.id }} - {{ item.name }}
<button @click="remove(item)">x</button>
</li>
</StaggeredFadeAndSlide>

<br />
<h1>Animation as prop</h1>
<BaseSuggestions :suggestions="suggestions" :animation="StaggeredFadeAndSlide" :stagger="50">
<template #default="{ suggestion }">
<span>{{ suggestion.query }}</span>
</template>
</BaseSuggestions>

<br />
<h1>Static content:</h1>
<StaggeredFadeAndSlide :stagger="50">
<li key="1">Element to animate</li>
<li key="2">Element to animate</li>
<li key="3">Element to animate</li>
</StaggeredFadeAndSlide>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import StaggeredFadeAndSlide from '../../../../x-components/src/components/animations/staggered-fade-and-slide.vue';
import BaseSuggestions from '../../../../x-components/src/components/suggestions/base-suggestions.vue';
import {
getQuerySuggestionsStub,
createResultStub,
getResultsStub
} from '../../../../x-components/src/__stubs__';
const suggestions = getQuerySuggestionsStub('chip', 5);
const getInitialItems = () => getResultsStub(5);
const items = ref(getInitialItems());
let id = items.value.length + 1;
/**
* Insert a new item at a random index.
*/
function insert() {
const i = Math.round(Math.random() * items.value.length);
items.value.splice(i, 0, createResultStub(`Product ${id++}`));
}
/**
* Reset the list of items.
*/
function reset() {
items.value = getInitialItems();
id = items.value.length + 1;
}
/**
* Remove an item from the list.
*
* @param item - The item to remove.
*/
function remove(item: any) {
const i = items.value.indexOf(item);
if (i > -1) {
items.value.splice(i, 1);
}
}
</script>
2 changes: 1 addition & 1 deletion packages/_vue3-migration-test/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ 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';
export { default as TestHighlight } from './test-highlight.vue';
export { default as TestBaseResultImages } from './result/test-base-result-images.vue';
Expand All @@ -20,3 +19,4 @@ export { default as TestTagging } from './tagging/test-tagging.vue';
export { default as TestRenderlessExtraParam } from './extra-params/test-renderless-extra-param.vue';
export { default as TestIcons } from './icons/test-icons.vue';
export { default as TestDisplayEmitter } from './test-display-emitter.vue';
export { default as TestBaseSwitch } from './test-base-switch.vue';
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template>
<p>Using props and events:</p>
<BaseSwitch @change="value = !value" :modelValue="value" />
{{ value }}
<br />
<p>Using the `v-model` directive:</p>
<BaseSwitch v-model="value2" />
{{ value2 }}
</template>

<script setup lang="ts">
import { ref } from 'vue';

import BaseSwitch from '../../../x-components/src/components/base-switch.vue';

const value = ref(true);
const value2 = ref(true);
</script>

This file was deleted.

20 changes: 13 additions & 7 deletions packages/_vue3-migration-test/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
TestSearchBox,
TestBaseVariableColumnGrid,
TestEmpathize,
TestUseLayouts,
TestSlidingPanel,
TestBaseSuggestions,
TestHighlight,
Expand Down Expand Up @@ -50,7 +49,9 @@ import {
TestRenderlessExtraParam,
TestAnimationFactory,
TestIcons,
TestDisplayEmitter
TestDisplayEmitter,
TestBaseSwitch,
TestStaggeredFadeAndSlide
} from './';

const routes = [
Expand Down Expand Up @@ -174,11 +175,6 @@ const routes = [
name: 'BaseVariableColumnGrid',
component: TestBaseVariableColumnGrid
},
{
path: '/test-use-layouts',
name: 'UseLayouts',
component: TestUseLayouts
},
{
path: '/base-suggestions',
name: 'BaseSuggestions',
Expand Down Expand Up @@ -308,6 +304,16 @@ const routes = [
path: '/display-emitter',
name: 'DisplayEmitter',
component: TestDisplayEmitter
},
{
path: '/base-switch',
name: 'BaseSwitch',
component: TestBaseSwitch
},
{
path: '/staggered-fade-and-slide',
name: 'StaggeredFadeAndSlide',
component: TestStaggeredFadeAndSlide
}
];

Expand Down
16 changes: 16 additions & 0 deletions packages/x-archetype-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.0.0-alpha.1](https://github.com/empathyco/x/compare/@empathyco/x-archetype-utils@1.1.0-alpha.2...@empathyco/x-archetype-utils@2.0.0-alpha.1) (2024-09-05)


### ⚠ BREAKING CHANGES

* @empathyco/x-components v6 and @empathyco/x-archetype-utils v2 are only compatible with Vue 3 and if you are looking for the Vue 2 versions, take look at the main brach.
* @empathyco/x-archetype-utils is only compatible with vue 3

### Features

* bump packages versions (#1611) ([eb7d377](https://github.com/empathyco/x/commit/eb7d377f0da3d09b78bc964de90529326889eb62))
* bump vue18n version (#1604) ([9320c57](https://github.com/empathyco/x/commit/9320c57bd1aa2ff01fea8133238dc8fb809484c0))
* **rollup:** update replace config to align CSS injector with Vue 3 (#1607) ([b98a31e](https://github.com/empathyco/x/commit/b98a31e488b788bab0a2fede87739e4cc9d1df57))



## [1.1.0-alpha.2](https://github.com/empathyco/x/compare/@empathyco/x-archetype-utils@1.1.0-alpha.1...@empathyco/x-archetype-utils@1.1.0-alpha.2) (2024-02-08)


Expand Down
12 changes: 6 additions & 6 deletions packages/x-archetype-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@empathyco/x-archetype-utils",
"version": "1.1.0-alpha.2",
"version": "2.0.0-alpha.1",
"description": "Utilities for x-archetype",
"author": "Empathy Systems Corporation S.L.",
"license": "Apache-2.0",
Expand Down Expand Up @@ -39,12 +39,12 @@
"@empathyco/x-deep-merge": "^2.0.3-alpha.1",
"@empathyco/x-utils": "workspace:^1.0.3-alpha.1",
"tslib": "~2.6.0",
"vue-i18n": "~8.28.2"
"vue-i18n": "~9.14.0"
},
"devDependencies": {
"@types/jest": "~27.5.0",
"@types/node": "~18.19.0",
"@vue/test-utils": "~1.0.3",
"@vue/test-utils": "~2.4.6",
"jest": "~27.5.0",
"rimraf": "~3.0.2",
"rollup": "~4.9.1",
Expand All @@ -53,11 +53,11 @@
"rollup-plugin-typescript2": "~0.36.0",
"ts-jest": "~27.1.0",
"typescript": "~4.9.4",
"vue": "~2.7.14"
"vue": "~3.4.31"
},
"peerDependencies": {
"vue": "^2.7.0",
"vue-i18n": "^8.0.0"
"vue": "^3.4.31",
"vue-i18n": "^9.14.0"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 7 additions & 1 deletion packages/x-archetype-utils/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ export default {
}),
typescript({
clean: true,
useTsconfigDeclarationDir: true
useTsconfigDeclarationDir: true,
tsconfigOverride: {
exclude: [
'node_modules',
'**/__tests__/**',
]
}
})
]
};
Loading
Loading