UNPKG

@nextcloud/vue

Version:
63 lines (62 loc) 2.32 kB
import '../assets/NcEmptyContent-CLjlZ-UT.css'; import { defineComponent, createElementBlock, openBlock, unref, createCommentVNode, renderSlot, createTextVNode, toDisplayString } from "vue"; import { c as createElementId } from "./createElementId-DhjFt1I9.mjs"; import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.mjs"; const _hoisted_1 = ["aria-labelledby"]; const _hoisted_2 = { key: 0, class: "empty-content__icon", "aria-hidden": "true" }; const _hoisted_3 = ["id"]; const _hoisted_4 = { key: 2, class: "empty-content__description" }; const _hoisted_5 = { key: 3, class: "empty-content__action" }; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "NcEmptyContent", props: { description: { default: "" }, name: { default: "" } }, setup(__props) { const nameId = createElementId(); return (_ctx, _cache) => { return openBlock(), createElementBlock("div", { "aria-labelledby": unref(nameId), class: "empty-content", role: "note" }, [ _ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2, [ renderSlot(_ctx.$slots, "icon", {}, void 0, true) ])) : createCommentVNode("", true), _ctx.name !== "" || _ctx.$slots.name ? (openBlock(), createElementBlock("div", { key: 1, id: unref(nameId), class: "empty-content__name" }, [ renderSlot(_ctx.$slots, "name", {}, () => [ createTextVNode(toDisplayString(_ctx.name), 1) ], true) ], 8, _hoisted_3)) : createCommentVNode("", true), _ctx.description !== "" || _ctx.$slots.description ? (openBlock(), createElementBlock("p", _hoisted_4, [ renderSlot(_ctx.$slots, "description", {}, () => [ createTextVNode(toDisplayString(_ctx.description), 1) ], true) ])) : createCommentVNode("", true), _ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5, [ renderSlot(_ctx.$slots, "action", {}, void 0, true) ])) : createCommentVNode("", true) ], 8, _hoisted_1); }; } }); const NcEmptyContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b101d636"]]); export { NcEmptyContent as N }; //# sourceMappingURL=NcEmptyContent-B8-90BSI.mjs.map