@nextcloud/vue
Version:
Nextcloud vue components
17 lines (16 loc) • 1.53 kB
JavaScript
import "../assets/index37.css";
import { A as n } from "../chunks/actionText-6c35d3fc.mjs";
import { n as s } from "../chunks/_plugin-vue2_normalizer-5b4c43a4.mjs";
const o = { name: "NcActionButton", mixins: [n], props: { disabled: { type: Boolean, default: !1 }, ariaHidden: { type: Boolean, default: null } }, computed: { isFocusable() {
return !this.disabled;
} } };
var i = function() {
var t = this, a = t._self._c;
return a("li", { staticClass: "action", class: { "action--disabled": t.disabled }, attrs: { role: "presentation" } }, [a("button", { staticClass: "action-button", class: { focusable: t.isFocusable }, attrs: { "aria-label": t.ariaLabel, title: t.title, role: "menuitem", type: "button" }, on: { click: t.onClick } }, [t._t("icon", function() {
return [a("span", { staticClass: "action-button__icon", class: [t.isIconUrl ? "action-button__icon--url" : t.icon], style: { backgroundImage: t.isIconUrl ? `url(${t.icon})` : null }, attrs: { "aria-hidden": t.ariaHidden } })];
}), t.name ? a("p", [a("strong", { staticClass: "action-button__name" }, [t._v(" " + t._s(t.name) + " ")]), a("br"), a("span", { staticClass: "action-button__longtext", domProps: { textContent: t._s(t.text) } })]) : t.isLongText ? a("p", { staticClass: "action-button__longtext", domProps: { textContent: t._s(t.text) } }) : a("span", { staticClass: "action-button__text" }, [t._v(t._s(t.text))]), t._e()], 2)]);
}, e = [], l = s(o, i, e, !1, null, "7ad61f44", null, null);
const d = l.exports;
export {
d as default
};