From 8e7b3dc38dbf371a6f9e58fa18ccd5e1d6e9b2cd Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 8 Apr 2024 14:49:17 +0200 Subject: [PATCH] [TASK] Work in Progress --- CHANGELOG.md | 3 + src/components/badge/BadgeStd.vue | 2 +- src/components/control/SelectField.story.vue | 4 +- ...ameField.story.vue => TimeFrame.story.vue} | 14 +- .../{TimeFrameField.vue => TimeFrame.vue} | 14 +- src/components/control/TimeSlots.story.vue | 145 +++++++++++ src/components/control/TimeSlots.vue | 237 ++++++++++++++++++ src/utils/now.ts | 41 ++- 8 files changed, 431 insertions(+), 29 deletions(-) rename src/components/control/{TimeFrameField.story.vue => TimeFrame.story.vue} (61%) rename src/components/control/{TimeFrameField.vue => TimeFrame.vue} (94%) create mode 100644 src/components/control/TimeSlots.story.vue create mode 100644 src/components/control/TimeSlots.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a69b5e..a6e461f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ miru.ink / Changelog - Add: New `escape` property on `DialogStd` component to allow closing the modal using the ESC key. - Add: New wobble animation when trying to close a static modal by an click outside. - Add: `CheckCircle` / `XCircle` lucide icon components. +- Add: `TimeSlots` input control field component, supporting booking a timeslot. - Update: Change the `AvatarGroup` limit class and label when not enough space is available. - Update: `package.json` dependencies. - Update: Decrease height (by lower the padding) on `BadgeStd` component. @@ -26,6 +27,8 @@ miru.ink / Changelog - Update: Apply new 32 / 40 / 56 px height system on `NumberField` control field. - Update: Apply new 32 / 40 / 56 px height system on `PasswordField` control field. - Update: Apply new 32 / 40 / 56 px height system on `SelectField` control field. +- Update: Rename `TimeFrameField` to `TimeFrame`. +- Update: Add `type` option to `now()` utility function to change returning value. - Fix: Add media-query based `max-width` stylings on `DialogStd` to support some space to screen-borders. - Fix: Demo-Icons on histoire stories. - Fix: Minor styling changes on `TooltipStd` component. diff --git a/src/components/badge/BadgeStd.vue b/src/components/badge/BadgeStd.vue index 27defd0..7c5df8f 100644 --- a/src/components/badge/BadgeStd.vue +++ b/src/components/badge/BadgeStd.vue @@ -32,7 +32,7 @@ export interface BadgeProps { /** * The desired color used for this badge. */ - color?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info'; + color?: null | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info'; /** * The desired label text for this badge. diff --git a/src/components/control/SelectField.story.vue b/src/components/control/SelectField.story.vue index f779899..e9bb8a4 100644 --- a/src/components/control/SelectField.story.vue +++ b/src/components/control/SelectField.story.vue @@ -8,8 +8,8 @@
- - + +
diff --git a/src/components/control/TimeFrameField.story.vue b/src/components/control/TimeFrame.story.vue similarity index 61% rename from src/components/control/TimeFrameField.story.vue rename to src/components/control/TimeFrame.story.vue index 606e793..36de1d6 100644 --- a/src/components/control/TimeFrameField.story.vue +++ b/src/components/control/TimeFrame.story.vue @@ -1,22 +1,22 @@