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

Kt standard table wip #1029

Draft
wants to merge 44 commits into
base: new-kt-table
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e336992
WIP
Isokaeder Oct 21, 2024
f1079cf
WIP
Isokaeder Oct 21, 2024
ea93786
WIP
Isokaeder Oct 22, 2024
9ef6dbd
WIP
Isokaeder Oct 22, 2024
6079082
WIP
Isokaeder Oct 23, 2024
8827c2f
WIP
Isokaeder Oct 23, 2024
4939c0c
WIP
Isokaeder Oct 23, 2024
c67192c
WIP
Isokaeder Oct 25, 2024
a0d1d53
WIP
Isokaeder Oct 25, 2024
e70a1cd
WIP
FlorianWendelborn Oct 25, 2024
3180fcf
WIP
Isokaeder Oct 28, 2024
3910cec
WIP
Isokaeder Oct 28, 2024
4f4121f
WIP
Isokaeder Oct 29, 2024
ef8c837
WIP
Isokaeder Oct 29, 2024
b67a6b1
WIP
Isokaeder Oct 29, 2024
1df4936
WIP
Isokaeder Oct 29, 2024
bd11eea
WIP
Isokaeder Oct 30, 2024
4831a17
WIP
Isokaeder Oct 30, 2024
8d27baa
WIP
Isokaeder Oct 30, 2024
8a1a1d2
WIP
Isokaeder Oct 31, 2024
21f6f7a
WIP
Isokaeder Oct 31, 2024
f5d5b49
WIP
Isokaeder Nov 4, 2024
5fbed18
WIP (empty and loading state)
Isokaeder Nov 7, 2024
5e50350
wip
Isokaeder Nov 7, 2024
8dace4f
WIP
Isokaeder Nov 13, 2024
b866e1b
wip
Isokaeder Nov 15, 2024
30a86c9
feat(kt-table): add pagination support and ordering getter
santiagoballadares Nov 18, 2024
4cd65be
wip
santiagoballadares Nov 4, 2024
6c4bc73
chore(k-table): merge kt-table and kt-standard-table directories
santiagoballadares Nov 19, 2024
4062ef9
fix prettier/eslint
Isokaeder Nov 19, 2024
89ff4c8
chore(kt-standard-table): cleanup some comments, rename extraFilterLa…
santiagoballadares Nov 19, 2024
670207a
chore(kt-standard-table): rename slots
santiagoballadares Nov 19, 2024
6454505
chore(kt-standard-table): add applied filters to fetchData payload, a…
santiagoballadares Nov 19, 2024
ab7c51d
Merge pull request #1018 from 3YOURMIND/kt-standard-table-cherrypick
Isokaeder Nov 20, 2024
0f7d9a0
render only filters with valid value, do not show boolean filter with…
santiagoballadares Nov 20, 2024
2380f04
allow inline filters, rename isPopupFilter
santiagoballadares Nov 20, 2024
fd537a8
fix lodash imports
santiagoballadares Nov 22, 2024
08f717c
Merge pull request #1021 from 3YOURMIND/kt-standard-table-inline-filters
Isokaeder Nov 25, 2024
7e4a367
add filter operation
santiagoballadares Nov 22, 2024
8852225
add boolean props, add table slot, remove pageIndex and pageSize even…
santiagoballadares Nov 25, 2024
818f8ef
Merge pull request #1025 from 3YOURMIND/kt-standard-table-add-boolean…
Isokaeder Nov 26, 2024
1f5ab28
update props types
santiagoballadares Nov 29, 2024
75d38e8
add global filter
santiagoballadares Dec 2, 2024
cfcdb3c
add column filters
santiagoballadares Dec 2, 2024
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
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import yocoPackageJSON from './packages/yoco/package.json' assert { type: 'json'
const trustedDependencies = new Set([
'@metatypes/typography',
'@metatypes/units',
'@tanstack/table-core',
'filesize',
'zod',
])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import { computed, defineComponent, ref } from 'vue'

export default defineComponent({
name: 'CodePreview',
name: 'CodePreviewLegacy',
props: {
vueSlotLabel: { default: 'Kotti-UI', type: String },
styleSlotLabel: { default: 'Kotti-Style', type: String },
Expand Down
4 changes: 4 additions & 0 deletions packages/documentation/data/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import {
KtNavbar,
KtPagination,
KtPopover,
KtStandardTable,
KtTable,
KtTableLegacy,
KtTag,
KtToaster,
Expand Down Expand Up @@ -173,6 +175,8 @@ export const menu: Array<Section> = [
makeComponentMenuItem(KtModal),
makeComponentMenuItem(KtPagination),
makeComponentMenuItem(KtPopover),
makeComponentMenuItem(KtStandardTable),
makeComponentMenuItem(KtTable),
makeComponentMenuItem(KtTableLegacy),
makeComponentMenuItem(KtTag),
makeComponentMenuItem(KtToaster),
Expand Down
162 changes: 162 additions & 0 deletions packages/documentation/pages/usage/components/data/standard-table.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
export const todos = [
{
completed: true,
dueDate: '2025-01-20',
effort: 2,
id: 1,
priority: 'Medium',
tag: 'tag-1',
todo: 'Watch a classic movie',
userId: 68,
},
{
completed: false,
dueDate: '2025-02-20',
effort: 8,
id: 2,
priority: 'Medium',
tag: 'tag-1',
todo: 'Contribute code or a monetary donation to an open-source software project',
userId: 69,
},
{
completed: false,
dueDate: '2025-01-10',
effort: 0.5,
id: 3,
priority: 'Medium',
tag: 'tag-3',
todo: 'Invite some friends over for a game night',
userId: 104,
},
{
completed: true,
dueDate: '2025-03-20',
effort: 0.5,
id: 4,
priority: 'Medium',
tag: 'tag-2',
todo: "Text a friend you haven't talked to in a long time",
userId: 2,
},
{
completed: true,
dueDate: '2025-01-20',
effort: 2,
id: 5,
priority: 'High',
tag: 'tag-2',
todo: "Plan a vacation you've always wanted to take",
userId: 162,
},
{
completed: false,
dueDate: '2025-04-20',
effort: 1,
id: 6,
priority: 'Low',
tag: 'tag-1',
todo: 'Clean out car',
userId: 71,
},
{
completed: true,
dueDate: '2025-01-01',
effort: 2,
id: 7,
priority: 'Low',
tag: 'tag-1',
todo: 'Create a cookbook with favorite recipes',
userId: 53,
},
{
completed: false,
dueDate: '2025-02-28',
effort: 4,
id: 8,
priority: 'Medium',
tag: 'tag-1',
todo: 'Create a compost pile',
userId: 13,
},
{
completed: true,
dueDate: '2025-02-01',
effort: 1,
id: 9,
priority: 'Medium',
tag: 'tag-1',
todo: 'Take a hike at a local park',
userId: 37,
},
{
completed: true,
dueDate: '2025-03-20',
effort: 4,
id: 10,
priority: 'Medium',
tag: 'tag-2',
todo: 'Take a class at local community center that interests you',
userId: 65,
},
{
completed: true,
dueDate: '2025-10-20',
effort: 2,
id: 11,
priority: 'Low',
tag: 'tag-3',
todo: 'Research a topic interested in',
userId: 130,
},
{
completed: false,
dueDate: '2025-03-01',
effort: 4,
id: 12,
priority: 'High',
tag: 'tag-1',
todo: 'Plan a trip to another country',
userId: 140,
},
{
completed: false,
dueDate: '2025-06-01',
effort: 40,
id: 13,
priority: 'High',
tag: 'tag-2',
todo: 'Improve touch typing',
userId: 178,
},
{
completed: false,
dueDate: '2025-11-20',
effort: 30,
id: 14,
priority: 'Low',
tag: 'tag-1',
todo: 'Learn Express.js',
userId: 194,
},
{
completed: false,
dueDate: '2025-12-20',
effort: 20,
id: 15,
priority: 'Low',
tag: 'tag-3',
todo: 'Learn calligraphy',
userId: 80,
},
{
completed: true,
dueDate: '2025-01-10',
effort: 10,
id: 16,
priority: 'Medium',
tag: 'tag-1',
todo: 'Go to the gym',
userId: 142,
},
]
8 changes: 4 additions & 4 deletions packages/documentation/pages/usage/components/drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ You can also customize the width of drawer by setting both `defaultWidth` and `e

When the `disallowCloseOutside` flag is set, it prevents the user from accidentally closing the drawer by clicking outside of the drawer.

<CodePreview>
<CodePreviewLegacy>

<div slot="vue">

Expand Down Expand Up @@ -124,7 +124,7 @@ When the `disallowCloseOutside` flag is set, it prevents the user from accidenta

</div>

</CodePreview>
</CodePreviewLegacy>

## Usage

Expand All @@ -143,14 +143,14 @@ import { defineComponent } from 'vue'

import { KtDrawer } from '@3yourmind/kotti-ui'

import CodePreview from '~/components/CodePreview.vue'
import CodePreviewLegacy from '~/components/CodePreviewLegacy.vue'
import ComponentInfo from '~/components/ComponentInfo.vue'

export default defineComponent({
name: 'DocumentationPageUsageComponentsDrawer',
components: {
ComponentInfo,
CodePreview,
CodePreviewLegacy,
},
data() {
return {
Expand Down
Loading
Loading