Skip to content

FOUR-20593: Implement FE test related to the filters #7908

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

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="tw-float-right tw-absolute tw-right-4 tw-top-0" />
<div id="filters" class="tw-float-right tw-absolute tw-right-4 tw-top-0" />
</template>

<script setup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<Badge
v-for="(item, index) in data"
:key="item.fieldName"
:id="`badge-${item.fieldName.replace(/\s+/g, '-')}`"
class="tw-text-xs tw-bg-gray-100"
color="gray">
<span>
Expand Down
1 change: 1 addition & 0 deletions resources/jscomposition/system/table/FilterableTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
v-for="(column, index) in columns"
#[`theader-filter-${column.field}`]>
<FilterColumn
:id="column.field"
v-if="column.filter"
:key="`default-${index}-${hasFilter(index,column)}`"
:filter="column.filter"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<template>
<div class="tw-flex tw-space-x-2 tw-justify-end tw-font-semibold">
<OutlineButton
id="cancel-btn"
class="!tw-py-2"
@click="$emit('cancel')">
<span>{{ $t("Cancel") }}</span>
</OutlineButton>

<OutlineButton
id="clear-btn"
class="!tw-py-2"
@click="$emit('clear')">
<span>{{ $t("Clear") }}</span>
</OutlineButton>

<OutlineButton
id="apply-btn"
class="!tw-py-2 tw-bg-gray-500 tw-text-white hover:tw-bg-gray-700"
@click="$emit('apply')">
<span>{{ $t("Apply") }}</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<div class="tw-flex tw-justify-center tw-text-gray-500 tw-text-xs">
<div
id="sort-asc"
class="tw-space-x-2 tw-inline-flex tw-items-center
tw-rounded-l-md tw-px-3 tw-py-2 tw-ring-1 tw-ring-inset
tw-ring-gray-300 hover:tw-bg-gray-100 focus:tw-z-10"
Expand All @@ -11,6 +12,7 @@
</div>

<div
id="sort-desc"
class="tw-space-x-2 -tw-ml-px tw-inline-flex tw-items-center
tw-rounded-r-md tw-px-3 tw-py-2 tw-ring-1 tw-ring-inset tw-ring-gray-300
hover:tw-bg-gray-100 focus:tw-z-10"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
:config="config"
placeholder="Type value"
class="tw-flex-1"
id="filter-value"
@change="onChangeValue" />
</div>
</template>
Expand Down
Loading