From f568cb8cacdcfc273745606fe117bc6f7ede81b4 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sun, 29 Jan 2023 21:53:37 +0100 Subject: [PATCH] Add Target Charge Plan Visualisation (#5860) --- assets/css/app.css | 5 + assets/js/components/TargetCharge.vue | 90 ++- .../js/components/TargetChargePlan.story.vue | 73 +++ assets/js/components/TargetChargePlan.test.js | 136 ++++ assets/js/components/TargetChargePlan.vue | 283 ++++++++ assets/js/mixins/formatter.js | 5 + cmd/demo.yaml | 3 + histoire.config.js | 1 + i18n/de.toml | 9 + i18n/en.toml | 11 +- package-lock.json | 620 +++++++++++++++++- package.json | 9 +- vitest.config.js | 12 + 13 files changed, 1217 insertions(+), 40 deletions(-) create mode 100644 assets/js/components/TargetChargePlan.story.vue create mode 100644 assets/js/components/TargetChargePlan.test.js create mode 100644 assets/js/components/TargetChargePlan.vue create mode 100644 vitest.config.js diff --git a/assets/css/app.css b/assets/css/app.css index 031cc49e0..4fb8591a3 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -347,3 +347,8 @@ small { .dark .form-switch .form-check-input:checked { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2328293e'/%3e%3c/svg%3e"); } +/* fix desktop safari formatting */ +input::-webkit-datetime-edit { + display: block; + padding: 0; +} diff --git a/assets/js/components/TargetCharge.vue b/assets/js/components/TargetCharge.vue index 9119e4c97..7a58721bd 100644 --- a/assets/js/components/TargetCharge.vue +++ b/assets/js/components/TargetCharge.vue @@ -20,7 +20,7 @@