UNPKG

@progress/kendo-vue-dateinputs

Version:
42 lines (41 loc) 1.14 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { defineComponent as i, createVNode as l } from "vue"; import { getDefaultSlots as o } from "@progress/kendo-vue-common"; const n = /* @__PURE__ */ i({ props: { id: String, value: Number, className: String }, emits: { click: null }, /** * @return * Returns a `<td />` element with the [`value`]({% slug api_dateinputs_calendarweekcellprops %}#toc-value) as a child. */ render() { const e = o(this); return l("td", { onClick: this.handleClick, id: this.$props.id }, [this.$props.value !== void 0 ? this.$props.value : e]); }, methods: { handleClick(e) { const { value: t } = this.$props; this.$emit("click", t, e); } } }); export { n as CalendarWeekCell };