-
Notifications
You must be signed in to change notification settings - Fork 1
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
[4.x] - IndexTable novo componente de listagem de itens #398
Merged
Merged
Changes from 27 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
1dd837d
feat: add IndexTable
Merieli 2ed49a2
Merge branch 'release/hub' of github.com:uxshop/design-system into fe…
Merieli acb6236
refactor: adjust format of enum
Merieli 6ddf761
feat: update index table
Merieli 20aaccf
docs: add stories of Table
Merieli f990a30
feat: add IndexTableList
Merieli 2fa2308
feat: add cells
Merieli 856c833
feat: define select in table
Merieli 2a2e6b6
feat: add formCheckbox in IndexTable
Merieli 1693e43
feat: prepare IndexTableList to slots
Merieli 278d35f
refactor: remove unnecessary imports
Merieli 4fce50c
docs: change storybook to IndexTable
Merieli 1d0bd81
feat: adjust storybook and styles of buttons IndexTable
Merieli a6495d1
style: adjust indexTable to mobile sizes
Merieli ebe00f0
style: change styles for footer and top of indexTable
Merieli 0faebc3
style: add tags to indexTable
Merieli 126c427
feat: adjusts of IndexTable
Merieli f57643f
docs: add documentation filterTabWithoutItems in IndexTable
Merieli 1c39fbf
feat: change acessibility of index-table
Merieli 89ab294
feat: adjusts in IndextTable
Merieli fa5dec4
style: apply prettier in IndexTable and fix PlatformSelect
Merieli 4a4df2a
refactor: fix prettier in files
Merieli a9ecbfe
refactor: change style of message and update prettierignore
Merieli 236ac7c
feat: add tests, separe parts of IndexTable change configs of prettie…
Merieli 244b2b1
refactor: change local of docs
Merieli 3c77e2b
refactor: clear example of App.vue
Merieli 7318d81
docs: change introduction of IndexTable
Merieli ce2f38d
refactor: adjusts for indextable
Merieli 342c4a6
refactor: add prop in completeIndexTable and adjusts of class
Merieli 6784af3
feat: add FeedbackMessage component and change IndexTable
Merieli 3058f02
refactor: change emits of IndexTable
Merieli 9511202
refactor: change actions of emptyMessage
Merieli 33589eb
refactor: remove unnescessary object
Merieli eb42998
refactor: generate simulation of action in FeedbackMessage
Merieli a2c8578
fix: change props in test of useIndexTableList
Merieli bc392dd
refactor: change imports of vue
Merieli 21c4eb1
build: update package-lock with typescript range
Merieli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Files | ||
*.md | ||
*.mdx | ||
|
||
# Folders | ||
.husky/* | ||
.vscode/* | ||
|
||
*.yml |
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ const preview: Preview = { | |
schema, | ||
brand, | ||
}, | ||
tags: ['autodocs'], | ||
}; | ||
|
||
export default preview; |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"Vue.volar", | ||
"Vue.volar", | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"EditorConfig.EditorConfig" | ||
] | ||
"EditorConfig.EditorConfig", | ||
"Tobermory.es6-string-html" | ||
] | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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,45 @@ | ||
import type { Meta, StoryObj } from '@storybook/vue3'; | ||
import Table from './Table.vue'; | ||
import TableBody from './TableBody.vue'; | ||
import TableCell from './TableCell.vue'; | ||
import TableHeadCell from './TableHeadCell.vue'; | ||
import TableRow from './TableRow.vue'; | ||
|
||
const meta: Meta<typeof Table> = { | ||
title: 'Components/Table', | ||
component: Table, | ||
render: (args) => ({ | ||
components: { Table, TableHeadCell, TableBody, TableRow, TableCell }, | ||
setup() { | ||
const products = [ | ||
{ id: 1, name: 'Product 1', price: '$10' }, | ||
{ id: 2, name: 'Product 2', price: '$20' }, | ||
{ id: 3, name: 'Product 3', price: '$30' }, | ||
]; | ||
return { args, products }; | ||
}, | ||
template: ` | ||
<Table v-bind="args"> | ||
<template #header> | ||
<TableHeadCell>ID</TableHeadCell> | ||
<TableHeadCell>Name</TableHeadCell> | ||
<TableHeadCell>Price</TableHeadCell> | ||
</template> | ||
<TableBody> | ||
<TableRow v-for="product in products" :key="product.id"> | ||
<TableCell>{{ product.id }}</TableCell> | ||
<TableCell>{{ product.name }}</TableCell> | ||
<TableCell>{{ product.price }}</TableCell> | ||
</TableRow> | ||
</TableBody> | ||
</Table> | ||
`, | ||
}), | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const minimum: Story = { | ||
args: {}, | ||
}; |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Qual o problema estava acontecendo para fixar a versão do Typescript? Isso pode gerar problema em outros projetos que usam versões mais recentes da dependência, não?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Temos um problema com a versão 5.7 do TS, segue abaixo a issue:
vuejs/language-tools#5018
Vamos validar de talvez travar um intervalo até a versão 5.6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validando foi possível travar até a versão 5.7.0 o que foi feito no momento, futuramente em outra alteração do DS vamos validar a possibilidade de eliminar a trava de versão máxima.