UNPKG

@progress/kendo-vue-layout

Version:
41 lines (40 loc) 1.36 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 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 } from "vue"; import { Icon as n } from "@progress/kendo-vue-common"; import { chevronDownIcon as t, chevronLeftIcon as i, chevronRightIcon as c } from "@progress/kendo-svg-icons"; import { getChildrenPosition as s } from "../utils/misc.mjs"; const d = t, m = c, a = i, I = /* @__PURE__ */ e({ name: "KendoMenuItemArrow", props: { itemId: String, dir: String, verticalMenu: Boolean }, render() { return o("span", { class: "k-menu-expand-arrow", "aria-hidden": "true" }, [o(n, { icon: this.getArrowName(), role: "presentation" }, null)]); }, methods: { getArrowName() { const r = s(this.$props.itemId, this.$props.verticalMenu === !0, this.$props.dir === "rtl"); return r === "downward" ? d : r === "rightward" ? m : r === "leftward" ? a : ""; } } }); export { I as MenuItemArrow, d as downArrowIcon, a as leftArrowIcon, m as rightArrowIcon };