2023-09-29 15:56:13 +07:00
|
|
|
<script setup lang="ts">
|
2023-12-14 10:32:35 +07:00
|
|
|
import { ref, onMounted, watch } from "vue";
|
2023-12-07 14:25:13 +07:00
|
|
|
import { useQuasar } from "quasar";
|
|
|
|
|
import keycloak from "@/plugins/keycloak";
|
|
|
|
|
import http from "@/plugins/http";
|
|
|
|
|
import config from "@/app.config";
|
2023-11-30 13:36:01 +07:00
|
|
|
|
|
|
|
|
/**import calendar*/
|
2023-12-07 14:25:13 +07:00
|
|
|
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";
|
|
|
|
|
|
2023-12-08 10:08:18 +07:00
|
|
|
/** import type*/
|
2023-12-07 14:25:13 +07:00
|
|
|
import type { DataDateMonthObject } from "@/modules/05_leave/interface/request/Calendar.ts";
|
2023-12-08 10:08:18 +07:00
|
|
|
import type {
|
|
|
|
|
DataCalendar,
|
|
|
|
|
LeaveType,
|
|
|
|
|
} from "@/modules/05_leave/interface/response/leave";
|
2023-12-07 14:25:13 +07:00
|
|
|
|
2023-12-08 10:08:18 +07:00
|
|
|
/** import componest*/
|
2023-12-14 13:09:33 +07:00
|
|
|
import DialogDetail from "@/modules/05_leave/components/DialogDetail.vue";
|
2023-12-07 14:25:13 +07:00
|
|
|
|
2023-12-08 10:08:18 +07:00
|
|
|
/** import stort*/
|
2023-12-07 14:25:13 +07:00
|
|
|
import { useCounterMixin } from "@/stores/mixin";
|
|
|
|
|
|
|
|
|
|
const mixin = useCounterMixin();
|
|
|
|
|
const { showLoader, hideLoader, messageError, date2Thai, monthYear2Thai } =
|
|
|
|
|
mixin;
|
|
|
|
|
|
|
|
|
|
const $q = useQuasar();
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(["update:dateYear"]);
|
2023-11-30 13:36:01 +07:00
|
|
|
|
2023-12-07 14:25:13 +07:00
|
|
|
const fullName = ref<string>("");
|
2023-12-08 10:08:18 +07:00
|
|
|
const mainData = ref<DataCalendar[]>([]);
|
2023-11-30 13:36:01 +07:00
|
|
|
|
2023-12-14 10:32:35 +07:00
|
|
|
const keycloakId = ref<string>(
|
|
|
|
|
keycloak.tokenParsed ? keycloak.tokenParsed.sub!.toString() : ""
|
|
|
|
|
);
|
|
|
|
|
|
2023-11-13 14:36:34 +07:00
|
|
|
/**
|
|
|
|
|
* Option ของปฏิทิน
|
|
|
|
|
*/
|
2023-12-07 14:25:13 +07:00
|
|
|
const fullCalendar = ref<any>(); //ref calendar
|
2023-10-27 10:54:49 +07:00
|
|
|
const calendarOptions = ref<CalendarOptions>({
|
2023-12-07 14:25:13 +07:00
|
|
|
plugins: [
|
|
|
|
|
dayGridPlugin,
|
|
|
|
|
timeGridPlugin,
|
|
|
|
|
interactionPlugin, // needed for dateClick
|
|
|
|
|
listPlugin,
|
|
|
|
|
],
|
|
|
|
|
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: "#4CAF4F",
|
|
|
|
|
eventTextColor: "#fff",
|
|
|
|
|
eventBorderColor: "#50a5fc",
|
|
|
|
|
displayEventTime: false,
|
|
|
|
|
editable: true,
|
2023-12-08 10:08:18 +07:00
|
|
|
events: [],
|
2023-12-07 14:25:13 +07:00
|
|
|
});
|
2023-10-27 10:54:49 +07:00
|
|
|
|
2023-11-21 15:59:14 +07:00
|
|
|
const dateMonth = ref<DataDateMonthObject>({
|
2023-12-07 14:25:13 +07:00
|
|
|
month: new Date().getMonth(),
|
|
|
|
|
year: new Date().getFullYear(),
|
|
|
|
|
});
|
2023-11-21 15:59:14 +07:00
|
|
|
|
2023-12-08 10:08:18 +07:00
|
|
|
/** function เรียกข้อมูล calendar*/
|
2023-12-07 14:25:13 +07:00
|
|
|
async function fetchDataCalendar() {
|
2023-12-08 10:08:18 +07:00
|
|
|
showLoader();
|
2023-12-07 14:25:13 +07:00
|
|
|
await http
|
|
|
|
|
.post(config.API.leaveCalendar(), {
|
|
|
|
|
year: dateMonth.value.year,
|
|
|
|
|
})
|
|
|
|
|
.then((res) => {
|
|
|
|
|
mainData.value = res.data.result;
|
|
|
|
|
|
|
|
|
|
const double_name = [
|
2023-12-14 10:32:35 +07:00
|
|
|
...new Set(mainData.value.map((item: DataCalendar) => item.keycloakId)),
|
2023-12-07 14:25:13 +07:00
|
|
|
];
|
2023-12-14 10:32:35 +07:00
|
|
|
filterLists.value = [];
|
2023-12-07 14:25:13 +07:00
|
|
|
for (let i = 1; i <= double_name.length; i++) {
|
|
|
|
|
const name = double_name[i - 1];
|
|
|
|
|
const filterName = {
|
|
|
|
|
id: name,
|
2023-12-14 10:32:35 +07:00
|
|
|
name: convertKeycloakId(name),
|
|
|
|
|
color: name === keycloakId.value ? "green" : "grey",
|
2023-12-07 14:25:13 +07:00
|
|
|
};
|
2023-12-14 10:32:35 +07:00
|
|
|
|
2023-12-07 14:25:13 +07:00
|
|
|
filterLists.value.push(filterName);
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-25 15:43:26 +07:00
|
|
|
if (filterVal.value.length !== 0) {
|
|
|
|
|
const data = mainData.value.filter(
|
|
|
|
|
(e: any) => e.keycloakId === keycloakId.value
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const event = data
|
|
|
|
|
.filter((x: any) => x.status != "REJECT" && x.status != "DELETE")
|
|
|
|
|
.map((e: DataCalendar) => ({
|
|
|
|
|
id: e.id,
|
|
|
|
|
title: `${e.fullName} (${e.leaveTypeName})`,
|
|
|
|
|
start: e.leaveStartDate,
|
|
|
|
|
end: new Date(
|
|
|
|
|
new Date(e.leaveEndDate).setHours(23, 59, 59)
|
|
|
|
|
).toISOString(),
|
|
|
|
|
allDay: e.leaveStartDate === e.leaveEndDate ? true : false,
|
|
|
|
|
color: e.keycloakId === keycloakId.value ? "#DCEDC8" : "#CFD8DC",
|
|
|
|
|
textColor: "black",
|
|
|
|
|
}));
|
|
|
|
|
calendarOptions.value.events = event;
|
|
|
|
|
}
|
2023-12-07 14:25:13 +07:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
messageError($q, err);
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
hideLoader();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-14 10:32:35 +07:00
|
|
|
function convertKeycloakId(id: any) {
|
|
|
|
|
const filterName = mainData.value.find((e: any) => e.keycloakId === id);
|
|
|
|
|
return filterName?.fullName;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-08 10:08:18 +07:00
|
|
|
const leaveType = ref<LeaveType[]>([]);
|
|
|
|
|
/** function เรียกประเภทการลา */
|
2023-12-07 14:25:13 +07:00
|
|
|
async function fectOptionType() {
|
|
|
|
|
await http
|
|
|
|
|
.get(config.API.leaveType())
|
|
|
|
|
.then(async (res) => {
|
|
|
|
|
leaveType.value = res.data.result;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
messageError($q, err);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
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-30 13:36:01 +07:00
|
|
|
function monthYearThai(val: DataDateMonthObject) {
|
2023-12-07 14:25:13 +07:00
|
|
|
if (val == null) return "";
|
|
|
|
|
else return monthYear2Thai(val.month, val.year);
|
2023-11-30 13:36:01 +07:00
|
|
|
}
|
2023-11-21 15:59:14 +07:00
|
|
|
|
2023-12-08 10:08:18 +07:00
|
|
|
/** function อัปเดท Calendar */
|
2023-12-07 14:25:13 +07:00
|
|
|
async function updateMonth() {
|
|
|
|
|
await fetchDataCalendar();
|
|
|
|
|
const calen = fullCalendar.value.getApi();
|
|
|
|
|
const date = new Date(dateMonth.value.year, dateMonth.value.month);
|
|
|
|
|
calen.gotoDate(date);
|
2023-11-30 13:36:01 +07:00
|
|
|
}
|
2023-11-13 14:36:34 +07:00
|
|
|
|
2023-12-07 14:25:13 +07:00
|
|
|
const modal = ref<boolean>(false);
|
|
|
|
|
const leaveId = ref<string>("");
|
2023-12-08 10:08:18 +07:00
|
|
|
|
2023-11-13 14:36:34 +07:00
|
|
|
/**
|
2023-12-08 10:08:18 +07:00
|
|
|
* function openPopupDateail
|
|
|
|
|
* @param id การลา
|
2023-11-13 14:36:34 +07:00
|
|
|
*/
|
2023-12-07 14:25:13 +07:00
|
|
|
async function onCilckview(id: string) {
|
|
|
|
|
modal.value = true;
|
|
|
|
|
leaveId.value = id;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-08 10:08:18 +07:00
|
|
|
/** function closePopup*/
|
2023-12-07 14:25:13 +07:00
|
|
|
async function onClickClose() {
|
|
|
|
|
modal.value = false;
|
2023-11-30 13:36:01 +07:00
|
|
|
}
|
2023-11-21 15:59:14 +07:00
|
|
|
|
2023-12-08 10:08:18 +07:00
|
|
|
/** filter calendar left */
|
2023-12-14 10:32:35 +07:00
|
|
|
const filterLists = ref<any>([]);
|
|
|
|
|
const filterVal = ref<any>([]);
|
2023-12-07 14:25:13 +07:00
|
|
|
|
|
|
|
|
watch(
|
|
|
|
|
() => filterVal.value,
|
|
|
|
|
() => {
|
|
|
|
|
const eventData = filterVal.value.map((item: any) => {
|
|
|
|
|
return mainData.value
|
2023-12-25 15:43:26 +07:00
|
|
|
.filter(
|
|
|
|
|
(e: DataCalendar) =>
|
|
|
|
|
e.keycloakId === item &&
|
|
|
|
|
e.status != "REJECT" &&
|
|
|
|
|
e.status != "DELETE"
|
|
|
|
|
)
|
2023-12-08 10:08:18 +07:00
|
|
|
.map((e) => ({
|
2023-12-07 14:25:13 +07:00
|
|
|
id: e.id,
|
2023-12-08 10:08:18 +07:00
|
|
|
title: `${e.fullName} (${e.leaveTypeName})`,
|
2023-12-07 14:25:13 +07:00
|
|
|
start: e.leaveStartDate,
|
2023-12-25 15:43:26 +07:00
|
|
|
end: new Date(
|
|
|
|
|
new Date(e.leaveEndDate).setHours(23, 59, 59)
|
|
|
|
|
).toISOString(),
|
|
|
|
|
allDay: e.leaveStartDate === e.leaveEndDate ? true : false,
|
2023-12-14 10:32:35 +07:00
|
|
|
color: e.keycloakId === keycloakId.value ? "#DCEDC8" : "#CFD8DC",
|
|
|
|
|
textColor: "black",
|
2023-12-07 14:25:13 +07:00
|
|
|
}));
|
|
|
|
|
});
|
2023-12-14 10:32:35 +07:00
|
|
|
const allEventData = [].concat(...eventData);
|
|
|
|
|
calendarOptions.value.events = allEventData;
|
2023-12-07 14:25:13 +07:00
|
|
|
}
|
|
|
|
|
);
|
2023-11-30 13:36:01 +07:00
|
|
|
|
|
|
|
|
onMounted(async () => {
|
2023-12-14 10:32:35 +07:00
|
|
|
filterVal.value.push(keycloakId.value);
|
|
|
|
|
|
2023-12-07 14:25:13 +07:00
|
|
|
await fetchDataCalendar();
|
|
|
|
|
await fectOptionType();
|
|
|
|
|
});
|
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-12-07 14:25:13 +07:00
|
|
|
<div class="row">
|
2023-12-18 14:22:02 +07:00
|
|
|
<div class="col-sm-12 col-md-3 q-mt-sm q-pr-sm row">
|
2023-12-20 16:39:14 +07:00
|
|
|
<q-card class="col-12" flat bordered>
|
2023-12-18 14:22:02 +07:00
|
|
|
<div class="q-gutter-sm col-12">
|
|
|
|
|
<q-list class="rounded-borders q-pt-sm" dense>
|
2023-12-07 14:25:13 +07:00
|
|
|
<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>
|
|
|
|
|
</q-card>
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-12-18 14:22:02 +07:00
|
|
|
<div class="col-sm-12 col-md-9 row">
|
|
|
|
|
<div class="q-mt-sm col-12">
|
2023-12-07 14:25:13 +07:00
|
|
|
<div class="row col-12 q-gutter-sm">
|
|
|
|
|
<div class="demo-app-main">
|
2023-12-20 16:39:14 +07:00
|
|
|
<q-card
|
|
|
|
|
bordered
|
|
|
|
|
flat
|
|
|
|
|
class="q-pa-sm q-mb-sm col-12 row bg-grey-1 shadow-0"
|
|
|
|
|
>
|
2023-12-07 14:25:13 +07:00
|
|
|
<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}`"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="textHover col-10"
|
|
|
|
|
@click="onCilckview(arg.event.id)"
|
|
|
|
|
>
|
|
|
|
|
{{ arg.event.title }}
|
|
|
|
|
</div>
|
|
|
|
|
</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>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<DialogDetail
|
|
|
|
|
:modal="modal"
|
|
|
|
|
:leaveId="leaveId"
|
|
|
|
|
:onClickClose="onClickClose"
|
|
|
|
|
:leaveType="leaveType"
|
|
|
|
|
/>
|
2023-11-13 14:36:34 +07:00
|
|
|
</template>
|
2023-09-27 15:49:15 +07:00
|
|
|
|
|
|
|
|
<style scope lang="scss">
|
|
|
|
|
.main-content {
|
2023-12-07 14:25:13 +07:00
|
|
|
height: 70vh;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.padding-content {
|
2023-12-07 14:25:13 +07:00
|
|
|
padding: 10px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.demo-app-main {
|
2023-12-07 14:25:13 +07:00
|
|
|
flex-grow: 1;
|
|
|
|
|
/* padding: 3em; */
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc {
|
2023-12-07 14:25:13 +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-12-07 14:25:13 +07:00
|
|
|
background-color: #f8f8f8 !important;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-day-today .fc-daygrid-day-number {
|
2023-12-07 14:25:13 +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-12-07 14:25:13 +07:00
|
|
|
padding: 5%;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc .fc-button-group > .fc-button {
|
2023-12-07 14:25:13 +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-12-07 14:25:13 +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-12-07 14:25:13 +07:00
|
|
|
color: white;
|
|
|
|
|
background-color: #22a15e;
|
|
|
|
|
border: none;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-header-toolbar {
|
2023-12-07 14:25:13 +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-12-07 14:25:13 +07:00
|
|
|
background-color: white;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dp-custom-cell {
|
2023-12-07 14:25:13 +07:00
|
|
|
border-radius: 50%;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dp__today {
|
2023-12-07 14:25:13 +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-12-07 14:25:13 +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-12-07 14:25:13 +07:00
|
|
|
padding-left: 5px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__messages {
|
2023-12-07 14:25:13 +07:00
|
|
|
padding-left: 20px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__native {
|
2023-12-07 14:25:13 +07:00
|
|
|
padding-left: 5px;
|
|
|
|
|
color: var(--q-primary) !important;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__prepend {
|
2023-12-07 14:25:13 +07:00
|
|
|
padding-left: 6px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__append {
|
2023-12-07 14:25:13 +07:00
|
|
|
padding-right: 6px;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.datepicker .q-field__after {
|
2023-12-07 14:25:13 +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-12-07 14:25:13 +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-12-07 14:25:13 +07:00
|
|
|
cursor: pointer;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.subName {
|
2023-12-07 14:25:13 +07:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-weight: 500;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.subInput {
|
2023-12-07 14:25:13 +07:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-event {
|
2023-12-07 14:25:13 +07:00
|
|
|
overflow: hidden;
|
|
|
|
|
border-color: transparent !important;
|
|
|
|
|
font-weight: 500;
|
2023-09-27 15:49:15 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fc-event-main {
|
2023-12-07 14:25:13 +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-12-07 14:25:13 +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-12-07 14:25:13 +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-12-27 14:36:04 +07:00
|
|
|
color: var(--q-primary);
|
2023-09-29 15:56:13 +07:00
|
|
|
}
|
2023-09-27 15:49:15 +07:00
|
|
|
</style>
|