UNPKG

@progress/kendo-vue-dateinputs

Version:
51 lines (50 loc) 1.42 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 e, createVNode as o, isVNode as i } from "vue"; import { getDefaultSlots as r } from "@progress/kendo-vue-common"; import { Button as l } from "@progress/kendo-vue-buttons"; function n(t) { return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !i(t); } const m = /* @__PURE__ */ e({ name: "KendoHeaderTitle", emits: { click: null }, props: { id: String, value: String, view: Number }, methods: { handleClick(t) { this.$emit("click", t); } }, /** * @return * Returns a `<button />` element with the [`value`]({% slug api_dateinputs_calendarheadertitleprops %}#toc-value) of the title as a child. */ render() { const t = r(this); return o(l, { role: "link", type: "button", id: this.$props.id, fillMode: "flat", themeColor: "primary", onClick: this.handleClick, tabIndex: 0 }, n(t) ? t : { default: () => [t] }); } }); export { m as CalendarHeaderTitle };