From 39dde31291a4cdebaedc3dd573b794ca7000e4a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A8re=20Pique?= Date: Wed, 2 Oct 2024 12:14:40 +0200 Subject: [PATCH] feat: add DsfrDataTableV2 and DsfrTabsV2.vue --- .talismanrc | 6 + packages/shared/src/components/DsfrTabsV2.vue | 175 ++++++++++++ .../src/components/Table/DsfrDataTableV2.vue | 270 ++++++++++++++++++ packages/shared/src/components/index.js | 2 + packages/shared/src/type.ts | 7 + 5 files changed, 460 insertions(+) create mode 100644 packages/shared/src/components/DsfrTabsV2.vue create mode 100644 packages/shared/src/components/Table/DsfrDataTableV2.vue create mode 100644 packages/shared/src/type.ts diff --git a/.talismanrc b/.talismanrc index 51a0faafb..f4e4dee3a 100644 --- a/.talismanrc +++ b/.talismanrc @@ -249,8 +249,14 @@ fileignoreconfig: checksum: e064a2ee73c2ecb4da219f78c7458302383d264330cc7bf645239519f906f64f - filename: packages/shared/src/components/Chat.vue checksum: f2dbbf72bf098c7abd2c3aee230d220f5a5a106952883c0e116eb49f4f9d4db7 +- filename: packages/shared/src/components/DsfrTabsV2.vue + checksum: 960c18a7ad76a91c74e5535240ae6ac4f87bb8aff10155096cd35afe5609cff8 - filename: packages/shared/src/components/PasswordInput.vue checksum: af4fe62dc455e943fcfacaa6ee0495e1ab20f9ed2094ad70c457b7a27ab46759 +- filename: packages/shared/src/components/Table/DsfrDataTableV2.vue + checksum: 1fb894ebadcc064a8aa847e72ef0eb4c39a35646bb54a78bbcf9c80f72506774 +- filename: packages/shared/src/type.ts + checksum: 8c75e8784ded25a61d6e14cd682bfe67e4ecdde5a6582fb83035fcae39a87b98 - filename: pg/scripts/01-init.sql checksum: 20dd5b8d36b1b0517fe185d30003af7866ef5678eed4e7571a6d9797ec3b2a46 - filename: pg/scripts/02/02-1-geo-init.sql diff --git a/packages/shared/src/components/DsfrTabsV2.vue b/packages/shared/src/components/DsfrTabsV2.vue new file mode 100644 index 000000000..e8ef2294d --- /dev/null +++ b/packages/shared/src/components/DsfrTabsV2.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/packages/shared/src/components/Table/DsfrDataTableV2.vue b/packages/shared/src/components/Table/DsfrDataTableV2.vue new file mode 100644 index 000000000..916d0774a --- /dev/null +++ b/packages/shared/src/components/Table/DsfrDataTableV2.vue @@ -0,0 +1,270 @@ + + + + + diff --git a/packages/shared/src/components/index.js b/packages/shared/src/components/index.js index 5cf8fbca1..91ac55dbe 100644 --- a/packages/shared/src/components/index.js +++ b/packages/shared/src/components/index.js @@ -1,5 +1,6 @@ import FileUpload from "./FileUpload.vue"; import Chat from "./Chat.vue"; +import DsfrDataTableV2 from "./Table/DsfrDataTableV2.vue"; import TableWithBackendPagination from "./Table/TableWithBackendPagination.vue"; import ValidationModal from "./ValidationModal.vue"; import EigStatusBadge from "./eig/EigStatusBadge.vue"; @@ -16,6 +17,7 @@ import MessageEtat from "./messages/MessageEtat.vue"; export { FileUpload, Chat, + DsfrDataTableV2, TableWithBackendPagination, ValidationModal, EigStatusBadge, diff --git a/packages/shared/src/type.ts b/packages/shared/src/type.ts new file mode 100644 index 000000000..4cf0777f7 --- /dev/null +++ b/packages/shared/src/type.ts @@ -0,0 +1,7 @@ +import type { + NestedKeys as ImportedNestedKeys, + Titles as ImportedTitles, +} from "./components/Table/DsfrDataTableV2.vue"; + +export type NestedKeys = ImportedNestedKeys; +export type Titles = ImportedTitles;