mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): update expressions display (#4171)
* N8n 4673 expressions res1 (#4149) * hide hints if necessary * refactor out parameter input * refactor param input in creds * remove any * add expression result before * update case * add types * fix spacing * update types * update expr * update parameter input * update param input * update param input * remove import * fix typo * update value * fix drop for rl * add state to track hovering item * add hover behavior to resolve values * update index * fix run selector bug * add run item to eval expr * add paired item mappings * fix rec bug * Fix for loops * handle pinned data * add missing pinned * fix bug * support parent * add input * map back from output * clean up * fix output bug * fix branching bug * update preview * only if expr * fix output * fix expr eval for outputs * add default hover state * fix hover state * fix branching * hide hint if expr * remove duplicate logic * update style * allow opening expr in demo * update expr * update row hover * update param name * clean up * update hovering state * update default output * fix duplicate import * update hover behavior * update package lock * fix pinned data case * address case when no input
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<n8n-text size="xsmall" color="text-base" v-if="hint">
|
||||
<div ref="hint" v-html="hint"></div>
|
||||
</n8n-text>
|
||||
</div>
|
||||
<n8n-text size="small" color="text-base" tag="div" v-if="hint">
|
||||
<div ref="hint" :class="{[$style.hint]: true, [$style.highlight]: highlight}" v-html="hint"></div>
|
||||
</n8n-text>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -11,7 +9,14 @@ import Vue from "vue";
|
||||
|
||||
export default Vue.extend({
|
||||
name: 'InputHint',
|
||||
props: ['hint'],
|
||||
props: {
|
||||
hint: {
|
||||
type: String,
|
||||
},
|
||||
highlight: {
|
||||
type: Boolean,
|
||||
},
|
||||
},
|
||||
mounted(){
|
||||
if(this.$refs.hint){
|
||||
(this.$refs.hint as Element).querySelectorAll('a').forEach(a => a.target = "_blank");
|
||||
@@ -20,3 +25,17 @@ export default Vue.extend({
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<style lang="scss" module>
|
||||
.hint {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
color: var(--color-secondary);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user