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

feat(maz-ui): MazDataTable - new component #829

Merged
merged 4 commits into from
Dec 24, 2023
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
11 changes: 9 additions & 2 deletions packages/docs/docs/.vitepress/configs/components.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ export const components = {
items: [
{ text: 'MazBtn', link: '/components/maz-btn' },
{ text: 'MazCheckbox', link: '/components/maz-checkbox' },
{ text: 'MazDropzone', link: '/components/maz-dropzone' },
{ text: 'MazInput', link: '/components/maz-input' },
{ text: 'MazInputCode', link: '/components/maz-input-code' },
{ text: 'MazInputNumber', link: '/components/maz-input-number' },
{ text: 'MazInputPrice', link: '/components/maz-input-price' },
{ text: 'MazInputTags', link: '/components/maz-input-tags' },
{ text: 'MazPicker', link: '/components/maz-picker' },
{ text: 'MazPhoneNumberInput', link: '/components/maz-phone-number-input' },
{ text: 'MazRadio', link: '/components/maz-radio' },
{ text: 'MazRadioButtons', link: '/components/maz-radio-buttons' },
Expand All @@ -23,6 +21,14 @@ export const components = {
{ text: 'MazTextarea', link: '/components/maz-textarea' },
]
},
{
text: 'Data',
items: [
{ text: 'MazDropzone', link: '/components/maz-dropzone' },
{ text: 'MazPicker', link: '/components/maz-picker' },
{ text: 'MazTable (data-table)', link: '/components/maz-table' },
]
},
{
text: 'UI',
items: [
Expand All @@ -43,6 +49,7 @@ export const components = {
{ text: 'MazGallery', link: '/components/maz-gallery' },
{ text: 'MazIcon', link: '/components/maz-icon' },
{ text: 'MazLazyImg', link: '/components/maz-lazy-img' },
{ text: 'MazLoadingBar', link: '/components/maz-loading-bar' },
{ text: 'MazPullToRefresh', link: '/components/maz-pull-to-refresh' },
{ text: 'MazStepper', link: '/components/maz-stepper' },
{ text: 'MazSpinner', link: '/components/maz-spinner' },
Expand Down
145 changes: 145 additions & 0 deletions packages/docs/docs/components/competitions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
export const competitions = [
{
id: '0262672d-7c7a-4d30-866e-edb88b5a5336',
name: 'UEFA Champions League',
code: 'CL',
type: 'CUP',
areaName: 'Europe',
matchday: 6,
logoUrl: 'https://crests.football-data.org/CL.png',
groups: 1,
index: 1,
},
{
id: '08d15e97-a319-4772-9b82-f1877369b40f',
name: 'Premier League',
code: 'PL',
type: 'LEAGUE',
areaName: 'England',
matchday: 18,
logoUrl: 'https://crests.football-data.org/PL.png',
groups: 1,
index: 2,
},
{
id: '17e62396-bbcb-42f5-acff-caed11534976',
name: 'Serie A',
code: 'SA',
type: 'LEAGUE',
areaName: 'Italy',
matchday: 17,
logoUrl: 'https://crests.football-data.org/SA.png',
groups: 0,
index: 3,
},
{
id: '3726264e-ba3a-4a9f-b4a4-8fc33e12747c',
name: 'FIFA World Cup',
code: 'WC',
type: 'CUP',
areaName: 'World',
matchday: 8,
logoUrl: 'https://crests.football-data.org/qatar.png',
groups: 1,
index: 4,
},
{
id: '555dc3f4-e592-46af-b634-59f07a201f2e',
name: 'Primeira Liga',
code: 'PPL',
type: 'LEAGUE',
areaName: 'Portugal',
matchday: 15,
logoUrl: 'https://crests.football-data.org/PPL.png',
groups: 0,
index: 5,
},
{
id: '59bbdfa0-86d8-4a74-b701-435747c55a42',
name: 'Primera Division',
code: 'PD',
type: 'LEAGUE',
areaName: 'Spain',
matchday: 18,
logoUrl: 'https://crests.football-data.org/PD.png',
groups: 1,
index: 6,
},
{
id: '6ae53332-3d27-4781-912d-d9c4e69657f9',
name: 'Ligue 1',
code: 'FL1',
type: 'LEAGUE',
areaName: 'France',
matchday: 17,
logoUrl: 'https://crests.football-data.org/FL1.png',
groups: 4,
index: 7,
},
{
id: '747c79ee-89c8-436a-b0ea-53f05f180007',
name: 'European Championship',
code: 'EC',
type: 'CUP',
areaName: 'Europe',
matchday: 1,
logoUrl: 'https://crests.football-data.org/EUR.svg',
groups: 1,
index: 8,
},
{
id: '7a32d897-6b22-4212-8ffe-049ae912c346',
name: 'Eredivisie',
code: 'DED',
type: 'LEAGUE',
areaName: 'Netherlands',
matchday: 18,
logoUrl: 'https://crests.football-data.org/ED.png',
groups: 0,
index: 9,
},
{
id: 'ab57e2dc-272c-45e6-b13e-57617a13b753',
name: 'Championship',
code: 'ELC',
type: 'LEAGUE',
areaName: 'England',
matchday: 23,
logoUrl: 'https://crests.football-data.org/ELC.png',
groups: 0,
index: 10,
},
{
id: 'b84e3295-7315-46c7-b979-6d9d784e5460',
name: 'Campeonato Brasileiro Série A',
code: 'BSA',
type: 'LEAGUE',
areaName: 'Brazil',
matchday: 38,
logoUrl: 'https://crests.football-data.org/764.svg',
groups: 0,
index: 11,
},
{
id: 'cafad3ce-1783-4652-9248-4bcad024dd98',
name: 'Copa Libertadores',
code: 'CLI',
type: 'CUP',
areaName: 'South America',
matchday: 11,
logoUrl: 'https://crests.football-data.org/CLI.svg',
groups: 0,
index: 12,
},
{
id: 'ed945bea-9a58-450a-8d62-7baa7722b5e7',
name: 'Bundesliga',
code: 'BL1',
type: 'LEAGUE',
areaName: 'Germany',
matchday: 16,
logoUrl: 'https://crests.football-data.org/BL1.png',
groups: 0,
index: 13,
},
]
26 changes: 26 additions & 0 deletions packages/docs/docs/components/maz-loading-bar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: MazLoadingBar
description: MazLoadingBar is a standalone component
---

# {{ $frontmatter.title }}

{{ $frontmatter.description }}

<!--@include: ./../.vitepress/mixins/getting-started.md-->

## Basic usage

<MazLoadingBar color="secondary" />

```vue
<template>
<MazLoadingBar color="secondary" />
</template>
<script lang="ts" setup>
import MazLoadingBar from 'maz-ui/components/MazLoadingBar'
</script>
```

<!--@include: ./../.vitepress/generated-docs/maz-loading-bar.doc.md-->
Loading