@nextcloud/vue
Version:
Nextcloud vue components
21 lines (20 loc) • 1.78 kB
JavaScript
import "../assets/index29.css";
import { A as a } from "../chunks/actionText-6c35d3fc.mjs";
import { n as i } from "../chunks/_plugin-vue2_normalizer-5b4c43a4.mjs";
const l = { name: "NcActionLink", mixins: [a], props: { href: { type: String, default: "#", required: !0, validator: (t) => {
try {
return new URL(t);
} catch {
return t.startsWith("#") || t.startsWith("/");
}
} }, download: { type: String, default: null }, target: { type: String, default: "_self", validator: (t) => t && (!t.startsWith("_") || ["_blank", "_self", "_parent", "_top"].indexOf(t) > -1) }, title: { type: String, default: null }, ariaHidden: { type: Boolean, default: null } } };
var e = function() {
var t = this, n = t._self._c;
return n("li", { staticClass: "action" }, [n("a", { staticClass: "action-link focusable", attrs: { download: t.download, href: t.href, "aria-label": t.ariaLabel, target: t.target, title: t.title, rel: "nofollow noreferrer noopener", role: "menuitem" }, on: { click: t.onClick } }, [t._t("icon", function() {
return [n("span", { staticClass: "action-link__icon", class: [t.isIconUrl ? "action-link__icon--url" : t.icon], style: { backgroundImage: t.isIconUrl ? `url(${t.icon})` : null }, attrs: { "aria-hidden": t.ariaHidden } })];
}), t.name ? n("p", [n("strong", { staticClass: "action-link__name" }, [t._v(" " + t._s(t.name) + " ")]), n("br"), n("span", { staticClass: "action-link__longtext", domProps: { textContent: t._s(t.text) } })]) : t.isLongText ? n("p", { staticClass: "action-link__longtext", domProps: { textContent: t._s(t.text) } }) : n("span", { staticClass: "action-link__text" }, [t._v(t._s(t.text))]), t._e()], 2)]);
}, o = [], r = i(l, e, o, !1, null, "50c84140", null, null);
const d = r.exports;
export {
d as default
};