2023-09-29 15:56:13 +07:00
|
|
|
<script setup lang="ts">
|
2023-11-21 15:59:14 +07:00
|
|
|
import { ref, watch, onMounted } from "vue";
|
|
|
|
|
import FullCalendar from "@fullcalendar/vue3";
|
|
|
|
|
import dayGridPlugin from "@fullcalendar/daygrid";
|
|
|
|
|
import type { CalendarOptions } from "@fullcalendar/core";
|
|
|
|
|
import timeGridPlugin from "@fullcalendar/timegrid";
|
|
|
|
|
import interactionPlugin from "@fullcalendar/interaction";
|
|
|
|
|
import allLocales from "@fullcalendar/core/locales-all";
|
|
|
|
|
import listPlugin from "@fullcalendar/list";
|
|
|
|
|
import { useCounterMixin } from "@/stores/mixin";
|
|
|
|
|
import type { DataDateMonthObject } from "@/modules/05_leave/interface/request/Calendar.ts";
|
2023-11-13 14:36:34 +07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Option ของปฏิทิน
|
|
|
|
|
*/
|
2023-11-21 15:59:14 +07:00
|
|
|
const fullCalendar = ref<any>(); //ref calendar
|
2023-10-27 10:54:49 +07:00
|
|
|
const calendarOptions = ref<CalendarOptions>({
|
2023-11-21 15:59:14 +07:00
|
|
|
plugins: [
|
|
|
|
|
dayGridPlugin,
|
|
|
|
|
timeGridPlugin,
|
|
|
|
|
interactionPlugin, // needed for dateClick
|
|
|
|
|
listPlugin,
|
|
|
|
|
],
|
|
|
|
|
// buttonText: {
|
|
|
|
|
// listYear: "รายการ",
|
|
|
|
|
// dayGridMonth: "ปฏิทิน",
|
|
|
|
|
// test: "เพิ่มวันหยุด",
|
|
|
|
|
// },
|
|
|
|
|
headerToolbar: false,
|
|
|
|
|
initialView: "dayGridMonth",
|
|
|
|
|
initialEvents: [], // alternatively, use the `events` setting to fetch from a feed
|
|
|
|
|
selectable: true,
|
|
|
|
|
dayMaxEvents: true,
|
|
|
|
|
weekends: true,
|
|
|
|
|
locale: "th",
|
|
|
|
|
locales: allLocales,
|
|
|
|
|
expandRows: true,
|
|
|
|
|
nowIndicator: true,
|
|
|
|
|
height: "100%",
|
|
|
|
|
eventColor: "#fff",
|
|
|
|
|
eventTextColor: "#4A5568",
|
|
|
|
|
eventBorderColor: "#50a5fc",
|
|
|
|
|
displayEventTime: false,
|
|
|
|
|
editable: true,
|
|
|
|
|
events: [
|
|
|
|
|
{
|
|
|
|
|
groupId: "2",
|
|
|
|
|
title: "ลาป่วย",
|
|
|
|
|
start: "2023-11-24",
|
|
|
|
|
end: "2023-11-25",
|
|
|
|
|
allDay: true,
|
|
|
|
|
color: "#4CAF4F",
|
|
|
|
|
textColor: "white",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
groupId: "4",
|
|
|
|
|
title: "ลากิจ",
|
|
|
|
|
start: "2023-11-15",
|
|
|
|
|
allDay: true,
|
|
|
|
|
color: "#4CAF4F",
|
|
|
|
|
textColor: "white",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
groupId: "4",
|
|
|
|
|
title: "นางสาวสมศรี ใจดี (ลากิจ)",
|
|
|
|
|
start: "2023-11-21",
|
|
|
|
|
end: "2023-11-23",
|
|
|
|
|
allDay: true,
|
|
|
|
|
color: "#ddd",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
groupId: "4",
|
|
|
|
|
title: "นายสมชาย สุขใจ",
|
|
|
|
|
start: "2023-11-21",
|
|
|
|
|
allDay: true,
|
|
|
|
|
color: "#ddd",
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
});
|
2023-10-27 10:54:49 +07:00
|
|
|
|
2023-11-13 14:36:34 +07:00
|
|
|
/**
|
|
|
|
|
* ตัวแปรทั้งหมด
|
|
|
|
|
*/
|
2023-11-21 15:59:14 +07:00
|
|
|
const modalCancel = ref(false);
|
|
|
|
|
const title = ref("");
|
|
|
|
|
const location = ref("บ้าน");
|
|
|
|
|
const subject = ref("ลาป่วย");
|
|
|
|
|
const dateStart = ref("20 ส.ค. 2566");
|
|
|
|
|
const dateEnd = ref("21 ส.ค. 2566");
|
|
|
|
|
const numDate = ref("20");
|
|
|
|
|
const place = ref("บ้าน");
|
|
|
|
|
const phone = ref("000-00000000");
|
|
|
|
|
const reason = ref("ยกเลิกการลา");
|
|
|
|
|
const model = ref(null);
|
|
|
|
|
const modeCancel = ref(true);
|
|
|
|
|
|
|
|
|
|
const dateMonth = ref<DataDateMonthObject>({
|
|
|
|
|
month: new Date().getMonth(),
|
|
|
|
|
year: new Date().getFullYear(),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const dateYear = ref<number>(new Date().getFullYear());
|
|
|
|
|
const emit = defineEmits(["update:dateYear"]);
|
|
|
|
|
const mixin = useCounterMixin(); //เรียกฟังก์ชันกลาง
|
|
|
|
|
const { monthYear2Thai } = mixin;
|
2023-11-03 14:53:02 +07:00
|
|
|
/**
|
2023-11-21 15:59:14 +07:00
|
|
|
* แปลง ปีและเดือนเป็นภาษาไทย
|
|
|
|
|
* @param val datepicker แบบเลือกปีและเดือน
|
2023-11-03 14:53:02 +07:00
|
|
|
*/
|
2023-11-21 15:59:14 +07:00
|
|
|
const monthYearThai = (val: DataDateMonthObject) => {
|
|
|
|
|
if (val == null) return "";
|
|
|
|
|
else return monthYear2Thai(val.month, val.year);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const updateMonth = async (e: DataDateMonthObject) => {
|
|
|
|
|
// console.log(dateMonth.value);
|
|
|
|
|
if (e != null) {
|
|
|
|
|
dateYear.value = e.year;
|
|
|
|
|
emit("update:dateYear", e.year);
|
|
|
|
|
const calen = fullCalendar.value.getApi();
|
|
|
|
|
const date = new Date(dateMonth.value.year, dateMonth.value.month);
|
|
|
|
|
calen.gotoDate(date);
|
|
|
|
|
}
|
|
|
|
|
};
|
2023-11-13 14:36:34 +07:00
|
|
|
|
|
|
|
|
/**
|
2023-11-13 17:05:29 +07:00
|
|
|
* ฟังก์ชั่นยกเลิก model
|
2023-11-13 14:36:34 +07:00
|
|
|
* @param text
|
|
|
|
|
*/
|
2023-09-29 15:56:13 +07:00
|
|
|
const cancel = async (text: string) => {
|
2023-11-21 15:59:14 +07:00
|
|
|
title.value = text;
|
|
|
|
|
modalCancel.value = true;
|
|
|
|
|
modeCancel.value = true;
|
|
|
|
|
};
|
2023-11-13 14:36:34 +07:00
|
|
|
/**
|
2023-11-13 17:05:29 +07:00
|
|
|
* ฟังก์ชั่นเปิด model
|
2023-11-13 14:36:34 +07:00
|
|
|
* @param text
|
|
|
|
|
*/
|
2023-09-29 15:56:13 +07:00
|
|
|
const view = async (text: string) => {
|
2023-11-21 15:59:14 +07:00
|
|
|
title.value = text;
|
|
|
|
|
modalCancel.value = true;
|
|
|
|
|
modeCancel.value = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// filter calendar left
|
|
|
|
|
const filterLists = ref<any[]>([
|
|
|
|
|
{
|
|
|
|
|
id: "x1",
|
|
|
|
|
name: "นางสาววารุณี แต้มคู",
|
|
|
|
|
color: "green",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "x2",
|
|
|
|
|
name: "นางสาวสมศรี ใจดี",
|
|
|
|
|
color: "grey",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "x3",
|
|
|
|
|
name: "นายสมชาย สุขใจ",
|
|
|
|
|
color: "grey",
|
|
|
|
|
},
|
|
|
|
|
]);
|
|
|
|
|
const filterVal = ref(["x1"]);
|
2023-09-27 15:49:15 +07:00
|
|
|
</script>
|
2023-11-21 15:59:14 +07:00
|
|
|
|
2023-11-13 14:36:34 +07:00
|
|
|
<template>
|
2023-11-21 15:59:14 +07:00
|
|
|
<div class="row">
|
|
|
|
|
<!-- Filter ตามคนและประเภทการลา -->
|
|
|
|
|
<div class="col-sm-12 col-md-3 q-mt-sm q-pr-sm">
|
|
|
|
|
<q-card class="col-12">
|
|
|
|
|
<div class="q-gutter-sm">
|
|
|
|
|
<q-list bordered class="rounded-borders">
|
|
|
|
|
<!-- <q-item-label header>User</q-item-label> -->
|
|
|
|
|
<q-item
|
|
|
|
|
v-for="(item, i) in filterLists"
|
|
|
|
|
:key="i"
|
|
|
|
|
tag="label"
|
|
|
|
|
v-ripple
|
|
|
|
|
>
|
|
|
|
|
<q-checkbox
|
|
|
|
|
size="sm"
|
|
|
|
|
v-model="filterVal"
|
|
|
|
|
:val="item.id"
|
|
|
|
|
:color="item.color"
|
|
|
|
|
/>
|
|
|
|
|
<q-item-section>
|
|
|
|
|
<q-item-label>{{ item.name }}</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- show value filterVal -->
|
|
|
|
|
<!-- <div class="q-px-sm q-mt-sm">
|
|
|
|
|
Your selection is: <strong>{{ filterVal }}</strong>
|
|
|
|
|
</div> -->
|
|
|
|
|
</q-card>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-12 col-md-9">
|
|
|
|
|
<div class="q-mt-sm">
|
|
|
|
|
<div class="row col-12 q-gutter-sm">
|
|
|
|
|
<div class="demo-app-main">
|
|
|
|
|
<q-card bordered flat class="q-pa-sm col-12 row bg-grey-1 shadow-0">
|
|
|
|
|
<div class="items-center col-12 row q-col-gutter-sm">
|
|
|
|
|
<!-- filter เลือกเดือนปี -->
|
|
|
|
|
<datepicker
|
|
|
|
|
v-model="dateMonth"
|
|
|
|
|
:locale="'th'"
|
|
|
|
|
autoApply
|
|
|
|
|
month-picker
|
|
|
|
|
:enableTimePicker="false"
|
|
|
|
|
@update:modelValue="updateMonth"
|
|
|
|
|
>
|
|
|
|
|
<template #year="{ year }">{{ year + 543 }}</template>
|
|
|
|
|
<template #year-overlay-value="{ value }">{{
|
|
|
|
|
parseInt(value + 543)
|
|
|
|
|
}}</template>
|
|
|
|
|
<template #trigger>
|
|
|
|
|
<q-input
|
|
|
|
|
:model-value="monthYearThai(dateMonth)"
|
|
|
|
|
dense
|
|
|
|
|
outlined
|
|
|
|
|
bg-color="white"
|
|
|
|
|
style="width: 130px"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon
|
|
|
|
|
name="event"
|
|
|
|
|
class="cursor-pointer"
|
|
|
|
|
style="color: var(--q-primary)"
|
|
|
|
|
>
|
|
|
|
|
</q-icon>
|
|
|
|
|
</template>
|
|
|
|
|
</q-input>
|
|
|
|
|
</template>
|
|
|
|
|
</datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
</q-card>
|
|
|
|
|
|
|
|
|
|
<div class="main-content">
|
|
|
|
|
<FullCalendar
|
|
|
|
|
ref="fullCalendar"
|
|
|
|
|
class="demo-app-calendar"
|
|
|
|
|
:options="calendarOptions"
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:eventContent="arg">
|
|
|
|
|
<div
|
|
|
|
|
class="row col-12 items-center no-wrap"
|
|
|
|
|
:style="`background: + ${arg.event.color}`"
|
|
|
|
|
>
|
|
|
|
|
<!-- <b>{{ arg.timeText }}</b> -->
|
|
|
|
|
<div
|
|
|
|
|
class="textHover col-10"
|
|
|
|
|
@click="view(arg.event.title)"
|
|
|
|
|
>
|
|
|
|
|
{{ arg.event.title }}
|
|
|
|
|
</div>
|
|
|
|
|
<q-btn
|
|
|
|
|
dense
|
|
|
|
|
v-if="arg.event.groupId == 1"
|
|
|
|
|
icon="mdi-close"
|
|
|
|
|
flat
|
|
|
|
|
round
|
|
|
|
|
size="8px"
|
|
|
|
|
@click="cancel(arg.event.title)"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</FullCalendar>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row q-col-gutter-lg justify-end">
|
|
|
|
|
<div class="items-center row">
|
|
|
|
|
<q-icon
|
|
|
|
|
size="10px"
|
|
|
|
|
color="green-7"
|
|
|
|
|
name="mdi-circle"
|
|
|
|
|
class="q-mr-sm"
|
|
|
|
|
/>
|
|
|
|
|
<span class="text-caption text-grey-8">การลาของฉัน</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items-center row">
|
|
|
|
|
<q-icon
|
|
|
|
|
size="10px"
|
|
|
|
|
color="grey-6"
|
|
|
|
|
name="mdi-circle"
|
|
|
|
|
class="q-mr-sm"
|
|
|
|
|
/>
|
|
|
|
|
<span class="text-caption text-grey-8">การลาของบุคคลอื่น</span>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class="items-center row">
|
2023-11-13 14:36:34 +07:00
|
|
|
<q-icon size="10px" color="light-blue-14" name="mdi-circle" class="q-mr-sm" />
|
|
|
|
|
<span class="text-caption text-grey-8">สถานะอยู่ระหว่างดำเนินการ</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="items-center row">
|
|
|
|
|
<q-icon size="10px" color="orange" name="mdi-circle" class="q-mr-sm" />
|
|
|
|
|
<span class="text-caption text-grey-8">สถานะใหม่</span>
|
2023-11-21 15:59:14 +07:00
|
|
|
</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- modal ดูรายละเอียด -->
|
|
|
|
|
<q-dialog v-model="modalCancel" persistent>
|
|
|
|
|
<q-card :style="modeCancel == true ? 'min-width: 50%;' : 'min-width:30%'">
|
|
|
|
|
<q-card-section class="row items-center q-pa-sm">
|
|
|
|
|
<div v-if="modeCancel == false" class="text-bold q-pl-sm">
|
|
|
|
|
รายละเอียดของ{{ title }}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else class="text-bold q-pl-sm">ขอยกเลิก{{ title }}</div>
|
|
|
|
|
<q-space />
|
|
|
|
|
<q-btn
|
|
|
|
|
icon="close"
|
|
|
|
|
unelevated
|
|
|
|
|
round
|
|
|
|
|
dense
|
|
|
|
|
v-close-popup
|
|
|
|
|
style="color: #ff8080; background-color: #ffdede"
|
|
|
|
|
/>
|
|
|
|
|
</q-card-section>
|
|
|
|
|
<q-separator />
|
|
|
|
|
<q-card-section class="q-p-md row q-gutter-y-md">
|
|
|
|
|
<div flat :class="modeCancel == true ? 'col-xs-6 col-sm-6' : 'col-12'">
|
|
|
|
|
<div class="col-12 q-col-gutter-sm row items-center">
|
|
|
|
|
<div class="col-6 text-grey-7">เขียนที่</div>
|
|
|
|
|
<div class="col-6 text-black">{{ location }}</div>
|
|
|
|
|
<div class="col-6 text-grey-7">เรื่องและเหตุผลการลา</div>
|
|
|
|
|
<div class="col-6 text-black">{{ subject }}</div>
|
|
|
|
|
<div class="col-6 text-grey-7">วัน เดือน ปีเริ่มต้น</div>
|
|
|
|
|
<div class="col-6 text-black">{{ dateStart }}</div>
|
|
|
|
|
<div class="col-6 text-grey-7">วัน เดือน ปีสิ้นสุด</div>
|
|
|
|
|
<div class="col-6 text-black">{{ dateEnd }}</div>
|
|
|
|
|
<div class="col-6 text-grey-7">จำนวนวันที่ลา</div>
|
|
|
|
|
<div class="col-6 text-black">{{ numDate }}</div>
|
|
|
|
|
<div class="col-6 text-grey-7">สถานที่ติดต่อขณะลา</div>
|
|
|
|
|
<div class="col-6 text-black">{{ place }}</div>
|
|
|
|
|
<div class="col-6 text-grey-7">หมายเลขโทรศัพท์</div>
|
|
|
|
|
<div class="col-6 text-black">{{ phone }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div flat class="col-xs-6 col-sm-6" v-if="modeCancel == true">
|
|
|
|
|
<q-input
|
|
|
|
|
v-model="reason"
|
|
|
|
|
type="textarea"
|
|
|
|
|
label="กรอกเหตุผล"
|
|
|
|
|
outlined
|
|
|
|
|
dense
|
|
|
|
|
/>
|
|
|
|
|
<q-file
|
|
|
|
|
outlined
|
|
|
|
|
v-model="model"
|
|
|
|
|
label="เลือกไฟล์เอกสารหลักฐาน"
|
|
|
|
|
class="q-mt-md"
|
|
|
|
|
use-chips
|
|
|
|
|
dense
|
|
|
|
|
>
|
|
|
|
|
<template v-slot:prepend>
|
|
|
|
|
<q-icon name="attach_file" />
|
|
|
|
|
</template>
|
|
|
|
|
</q-file>
|
|
|
|
|
</div>
|
|
|
|
|
</q-card-section>
|
|
|
|
|
<q-separator />
|
|
|
|
|
<q-card-section
|
|
|
|
|
class="row items-center q-pa-sm"
|
|
|
|
|
v-if="modeCancel == true"
|
|
|
|
|
>
|
|
|
|
|
<q-space />
|
|
|
|
|
<q-btn
|
|
|
|
|
label="ยืนยัน"
|
|
|
|
|
unelevated
|
|
|
|
|
color="secondary"
|
|
|
|
|
dense
|
|
|
|
|
class="q-px-md"
|
|
|
|
|
v-close-popup
|
|
|
|
|
/>
|
|
|
|
|
</q-card-section>
|
|
|
|
|
</q-card>
|
|
|
|
|
</q-dialog>
|
2023-11-13 14:36:34 +07:00
|
|
|
</template>
|
2023-09-27 15:49:15 +07:00
|
|
|
|
|
|
|
|
<style scope lang="scss">
|
|
|
|
|
.main-content {
|
2023-11-21 15:59:14 +07:00
|
|
|
height: 70vh;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.padding-content {
|
2023-11-21 15:59:14 +07:00
|
|
|
padding: 10px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.demo-app-main {
|
2023-11-21 15:59:14 +07:00
|
|
|
flex-grow: 1;
|
|
|
|
|
/* padding: 3em; */
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc {
|
2023-11-21 15:59:14 +07:00
|
|
|
/* the calendar root */
|
|
|
|
|
max-width: 1100px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
background-color: white;
|
|
|
|
|
border-radius: 10px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-day-today {
|
2023-11-21 15:59:14 +07:00
|
|
|
background-color: #f8f8f8 !important;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-day-today .fc-daygrid-day-number {
|
2023-11-21 15:59:14 +07:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
/* border: 2px solid #17a259; */
|
|
|
|
|
/* border-radius: 50%;
|
2023-09-27 15:49:15 +07:00
|
|
|
height: 25px;
|
|
|
|
|
width: 25px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: white !important;
|
|
|
|
|
background: #17a259; */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-day-today .fc-daygrid-day-frame {
|
2023-11-21 15:59:14 +07:00
|
|
|
padding: 5%;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc .fc-button-group > .fc-button {
|
2023-11-21 15:59:14 +07:00
|
|
|
color: black;
|
|
|
|
|
background-color: #fafafa;
|
|
|
|
|
border: none;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc .fc-button-group > .fc-button:active {
|
2023-11-21 15:59:14 +07:00
|
|
|
color: white;
|
|
|
|
|
background-color: #22a15e;
|
|
|
|
|
border: none;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc .fc-button-group > .fc-button.fc-button-active {
|
2023-11-21 15:59:14 +07:00
|
|
|
color: white;
|
|
|
|
|
background-color: #22a15e;
|
|
|
|
|
border: none;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-header-toolbar {
|
2023-11-21 15:59:14 +07:00
|
|
|
background-color: white;
|
|
|
|
|
padding: 0px 10px 0px 10px;
|
|
|
|
|
border-radius: 10px 10px 0px 0px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc .fc-scrollgrid-liquid > thead {
|
2023-11-21 15:59:14 +07:00
|
|
|
background-color: white;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dp-custom-cell {
|
2023-11-21 15:59:14 +07:00
|
|
|
border-radius: 50%;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dp__today {
|
2023-11-21 15:59:14 +07:00
|
|
|
border: 1px solid var(--q-primary);
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dp__range_end,
|
|
|
|
|
.dp__range_start,
|
|
|
|
|
.dp__active_date {
|
2023-11-21 15:59:14 +07:00
|
|
|
background: var(--q-primary);
|
|
|
|
|
color: var(--dp-primary-text-color);
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__label {
|
2023-11-21 15:59:14 +07:00
|
|
|
padding-left: 5px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__messages {
|
2023-11-21 15:59:14 +07:00
|
|
|
padding-left: 20px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__native {
|
2023-11-21 15:59:14 +07:00
|
|
|
padding-left: 5px;
|
|
|
|
|
color: var(--q-primary) !important;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__prepend {
|
2023-11-21 15:59:14 +07:00
|
|
|
padding-left: 6px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__append {
|
2023-11-21 15:59:14 +07:00
|
|
|
padding-right: 6px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__after {
|
2023-11-21 15:59:14 +07:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-weight: 500;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc .fc-popover {
|
2023-11-21 15:59:14 +07:00
|
|
|
z-index: 6000;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-direction-ltr .fc-daygrid-event.fc-event-end,
|
|
|
|
|
.fc-direction-rtl .fc-daygrid-event.fc-event-start {
|
2023-11-21 15:59:14 +07:00
|
|
|
cursor: pointer;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.subName {
|
2023-11-21 15:59:14 +07:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-weight: 500;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.subInput {
|
2023-11-21 15:59:14 +07:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-event {
|
2023-11-21 15:59:14 +07:00
|
|
|
overflow: hidden;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
font-weight: 500;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-event-main {
|
2023-11-21 15:59:14 +07:00
|
|
|
text-align: left;
|
|
|
|
|
padding: 0px 5px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-direction-ltr .fc-daygrid-event.fc-event-end,
|
|
|
|
|
.fc-direction-rtl .fc-daygrid-event.fc-event-start {
|
2023-11-21 15:59:14 +07:00
|
|
|
padding-left: 0px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
2023-10-27 10:54:49 +07:00
|
|
|
.fc-theme-standard td,
|
|
|
|
|
.fc-theme-standard th {
|
2023-11-21 15:59:14 +07:00
|
|
|
border: 1px solid #ebe9f1;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
2023-09-29 15:56:13 +07:00
|
|
|
|
2023-10-27 10:54:49 +07:00
|
|
|
.textHover:hover {
|
2023-11-21 15:59:14 +07:00
|
|
|
color: var(--q-primary);
|
2023-09-29 15:56:13 +07:00
|
|
|
}
|
2023-09-27 15:49:15 +07:00
|
|
|
</style>
|