diff --git a/components/calendar/PreviewCard.vue b/components/calendar/PreviewCard.vue index 5c16733..281facd 100644 --- a/components/calendar/PreviewCard.vue +++ b/components/calendar/PreviewCard.vue @@ -1,5 +1,5 @@ diff --git a/components/calendar/dialog/Update.vue b/components/calendar/dialog/Update.vue new file mode 100644 index 0000000..4132e47 --- /dev/null +++ b/components/calendar/dialog/Update.vue @@ -0,0 +1,49 @@ + + + + + e.preventDefault()"> + + + {{ world?.name }} + — + + {{ calendarSkeletonName }} + + + {{ $t('entity.calendar.updateDialog.title') }} + + + + + + + + + + + + diff --git a/components/calendar/form/Create.vue b/components/calendar/form/Create.vue index f570051..fa7c625 100644 --- a/components/calendar/form/Create.vue +++ b/components/calendar/form/Create.vue @@ -2,7 +2,7 @@ import type { Calendar } from "~/models/CalendarConfig"; import { PhAlarm, PhCalendarDots, PhCircleNotch, PhWrench } from "@phosphor-icons/vue"; -const defaultSkeleton: Calendar = { name: "", today: { day: 1, month: 0, year: 0 }, months: [], events: [], state: "draft" } +const defaultSkeleton: Calendar = { name: "", today: { day: 1, month: 0, year: 0 }, months: [], events: [], state: "draft", color: "white" } const calendarSkeleton = ref({ ...defaultSkeleton }) onMounted(() => { @@ -79,25 +79,25 @@ function handleFormCancel() { - {{ $t('entity.calendar.createDialog.tabs.general.title') }} + {{ $t('entity.calendar.actionDialog.tabs.general.title') }} - {{ $t('entity.calendar.createDialog.tabs.months.title') }} + {{ $t('entity.calendar.actionDialog.tabs.months.title') }} - {{ $t('entity.calendar.createDialog.tabs.today.title') }} + {{ $t('entity.calendar.actionDialog.tabs.today.title') }} - + + + + + {{ $t('ui.contentState.label') }} + + + + + + + + {{ $t('ui.colors.label') }} + + + + diff --git a/components/calendar/form/Update.vue b/components/calendar/form/Update.vue new file mode 100644 index 0000000..dc5d74e --- /dev/null +++ b/components/calendar/form/Update.vue @@ -0,0 +1,147 @@ + + + + + + + + + + + + {{ $t('entity.calendar.actionDialog.tabs.general.title') }} + + + + + + + + + + {{ $t('ui.contentState.label') }} + + + + + + + + {{ $t('ui.colors.label') }} + + + + + + + + + + + + diff --git a/components/global/AddCard.vue b/components/global/AddCard.vue index 7b716c0..835b4aa 100644 --- a/components/global/AddCard.vue +++ b/components/global/AddCard.vue @@ -6,7 +6,7 @@ const emit = defineEmits(["on-click"]) diff --git a/components/global/input/Color.vue b/components/global/input/Color.vue index 75448ec..871b22c 100644 --- a/components/global/input/Color.vue +++ b/components/global/input/Color.vue @@ -2,12 +2,16 @@ import { cn } from "@/lib/utils"; import { type RPGColor, rpgColors } from "~/models/Color"; +defineProps<{ + id: string +}>(); + const model = defineModel({ default: "white" }); - + +import { contentStates, type ContentState } from "~/models/Entity"; + +defineProps<{ + id: string +}>(); + +const model = defineModel({ default: "draft" }); + + + + + + + + + + + {{ $t(`ui.contentState.${state}`) }} + + + + + diff --git a/components/ui/label/Label.vue b/components/ui/label/Label.vue index a2eb35f..67650ca 100644 --- a/components/ui/label/Label.vue +++ b/components/ui/label/Label.vue @@ -17,7 +17,7 @@ const delegatedProps = computed(() => { v-bind="delegatedProps" :class=" cn( - 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70', + 'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer', props.class, ) " diff --git a/components/world/PreviewCard.vue b/components/world/PreviewCard.vue index 91c2c3d..7bdada2 100644 --- a/components/world/PreviewCard.vue +++ b/components/world/PreviewCard.vue @@ -1,5 +1,5 @@