From 2be720f5c842192f5c35d633c66d91320417af4b Mon Sep 17 00:00:00 2001 From: Tomi Virkki Date: Thu, 22 Aug 2024 12:46:23 +0300 Subject: [PATCH 1/8] feat: add basic dashboard section structure --- dev/dashboard-layout.html | 17 +-- packages/dashboard/src/title-controller.d.ts | 10 +- packages/dashboard/src/title-controller.js | 24 ++-- .../src/vaadin-dashboard-section.d.ts | 30 +++++ .../dashboard/src/vaadin-dashboard-section.js | 109 ++++++++++++++++++ .../dashboard/src/vaadin-dashboard-widget.js | 2 +- .../dashboard/test/dashboard-layout.test.ts | 102 +++++++++++++++- .../dashboard/test/dashboard-section.test.ts | 102 ++++++++++++++++ packages/dashboard/test/helpers.ts | 44 +++++-- .../dashboard/test/typings/dashboard.types.ts | 13 +++ .../lumo/vaadin-dashboard-section-styles.js | 0 .../theme/lumo/vaadin-dashboard-section.js | 2 + .../vaadin-dashboard-section-styles.js | 0 .../material/vaadin-dashboard-section.js | 2 + .../dashboard/vaadin-dashboard-section.d.ts | 1 + .../dashboard/vaadin-dashboard-section.js | 3 + 16 files changed, 422 insertions(+), 39 deletions(-) create mode 100644 packages/dashboard/src/vaadin-dashboard-section.d.ts create mode 100644 packages/dashboard/src/vaadin-dashboard-section.js create mode 100644 packages/dashboard/test/dashboard-section.test.ts create mode 100644 packages/dashboard/theme/lumo/vaadin-dashboard-section-styles.js create mode 100644 packages/dashboard/theme/lumo/vaadin-dashboard-section.js create mode 100644 packages/dashboard/theme/material/vaadin-dashboard-section-styles.js create mode 100644 packages/dashboard/theme/material/vaadin-dashboard-section.js create mode 100644 packages/dashboard/vaadin-dashboard-section.d.ts create mode 100644 packages/dashboard/vaadin-dashboard-section.js diff --git a/dev/dashboard-layout.html b/dev/dashboard-layout.html index 34289c167e..c02fbc7f75 100644 --- a/dev/dashboard-layout.html +++ b/dev/dashboard-layout.html @@ -10,6 +10,7 @@