Skip to content

Commit

Permalink
feat(statstable): added reworked table component from yaki ui (#1516)
Browse files Browse the repository at this point in the history
* feat(statstable): added reworked table component from yaki ui

* feat(statstable): erase conflict remains
  • Loading branch information
Graeimh authored Jun 24, 2024
1 parent dd3b0b5 commit 8d3bca3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion yaki_admin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions yaki_admin/src/models/dataTable.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export enum textDirection {
left = "left",
right = "right",
center = "center",
justify = "justify",
}
12 changes: 10 additions & 2 deletions yaki_admin/src/ui/views/StatisticsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
import PageContentHeader from "@/ui/components/PageContentHeader.vue";
import PageContentLayout from "@/ui/layouts/PageContentLayout.vue";
import buttonPrimary from "@/ui/components/buttons/ButtonPrimary.vue";
import PreviewTable from "@/ui/components/PreviewTable.vue";
import InputDropdown from "@yaki_ui/yaki_ui_web_components/components/vue/InputDropdown.vue";
import PreviewTable from "@yaki_ui/yaki_ui_web_components/components/vue/PreviewTable.vue";
import { statisticsService } from "@/services/statistics.service";
import { useSelectedRoleStore } from "@/stores/selectedRole";
Expand All @@ -13,6 +14,7 @@ import { useRoleStore } from "@/stores/roleStore";
import { TeamType } from "@/models/team.type";
import { STATISTICTYPE } from "@/constants/statisticType.enum";
import { useI18n } from "vue-i18n";
import { textDirection } from "@/models/dataTable.type";
const i18n = useI18n();
Expand Down Expand Up @@ -195,7 +197,13 @@ const onSelectPeriodEnd = (e: Event) => {
/>
</section>
<section>
<PreviewTable :statisticsArray="statisticsPreview" />
<PreviewTable
:statisticsArray="statisticsPreview"
:rows-per-page="10"
:text-align-headers="[textDirection.center]"
:text-align-content="[textDirection.left]"
:is-page-change-enabled="true"
/>
</section>
</main>
</template>
Expand Down

0 comments on commit 8d3bca3

Please sign in to comment.