-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
workflowRun
version of form elements
- This drastically changes the styling of `FormElement`s as they have badges (or full colored headers) along with title sections, indicating current status of a step. Each step is in a card like style. - The variant for what type of `FormData` option it currently is has text now, letting the user clearly know whether they are selecting a single dataset, multiple etc. - After a "browse section" in the `FormData` component, we have a tabs section which shows the users the current selected file(s), as well as providing options for uploading/creating collections etc in other tabs.
- Loading branch information
1 parent
d3c5f1b
commit f77b387
Showing
12 changed files
with
591 additions
and
201 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
49 changes: 49 additions & 0 deletions
49
client/src/components/Form/Elements/FormData/FormDataExtensions.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,49 @@ | ||
<script setup lang="ts"> | ||
import { faCaretDown, faCaretUp } from "@fortawesome/free-solid-svg-icons"; | ||
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; | ||
import { BButton, BCollapse, BTooltip } from "bootstrap-vue"; | ||
import { computed } from "vue"; | ||
import { orList } from "@/utils/strings"; | ||
const props = defineProps<{ | ||
extensions: string[]; | ||
formatsButtonId: string; | ||
formatsVisible: boolean; | ||
}>(); | ||
const emit = defineEmits<{ | ||
(e: "update:formats-visible", formatsVisible: boolean): void; | ||
}>(); | ||
/** Computed toggle that handles opening and closing the modal */ | ||
const localFormatsVisible = computed({ | ||
get: () => props.formatsVisible, | ||
set: (value: boolean) => { | ||
// emit("update:show-modal", value); | ||
emit("update:formats-visible", value); | ||
}, | ||
}); | ||
</script> | ||
<template> | ||
<div> | ||
<BButton | ||
:id="props.formatsButtonId" | ||
class="ui-link d-flex align-items-center text-nowrap flex-gapx-1" | ||
@click="localFormatsVisible = !localFormatsVisible"> | ||
<span v-localize>accepted formats</span> | ||
<FontAwesomeIcon v-if="formatsVisible" :icon="faCaretUp" /> | ||
<FontAwesomeIcon v-else :icon="faCaretDown" /> | ||
</BButton> | ||
<BCollapse v-model="localFormatsVisible"> | ||
<ul class="pl-3 m-0"> | ||
<li v-for="extension in props.extensions" :key="extension">{{ extension }}</li> | ||
</ul> | ||
</BCollapse> | ||
<BTooltip :target="props.formatsButtonId" noninteractive placement="bottom" triggers="hover"> | ||
<div class="form-data-props.extensions-tooltip"> | ||
<span>{{ orList([...props.extensions]) }}</span> | ||
</div> | ||
</BTooltip> | ||
</div> | ||
</template> |
Oops, something went wrong.