UNPKG

@progress/kendo-vue-grid

Version:
44 lines (43 loc) 1.13 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 } from "vue"; import { kendoThemeMaps as t, getDefaultSlots as a } from "@progress/kendo-vue-common"; const l = /* @__PURE__ */ e({ name: "GridToolbar", props: { size: { type: String, default: "medium", validator: function(r) { return ["small", "medium"].includes(r); } } }, computed: { wrapperClass() { const { size: r } = this.$props; return { "k-toolbar": !0, "k-grid-toolbar": !0, [`k-toolbar-${t.sizeMap[r] || r}`]: r }; } }, render() { const r = a(this); return o("div", { class: this.wrapperClass, role: "toolbar" }, [r]); } }); export { l as GridToolbar };