@nextcloud/vue
Version:
Nextcloud vue components
20 lines (19 loc) • 1.46 kB
JavaScript
import "../assets/index5.css";
import { t as s } from "../chunks/l10n-9a5a6afc.mjs";
import i from "vue-material-design-icons/HelpCircle.vue";
import { n } from "../chunks/_plugin-vue2_normalizer-5b4c43a4.mjs";
const r = { name: "NcSettingsSection", components: { HelpCircle: i }, props: { name: { type: String, required: !0 }, description: { type: String, default: "" }, docUrl: { type: String, default: "" }, limitWidth: { type: Boolean, default: !0 } }, data() {
return { docNameTranslated: s("External documentation for {name}", { name: this.name }) };
}, computed: { hasDescription() {
return this.description.length > 0;
}, hasDocUrl() {
return this.docUrl.length > 0;
} } };
var a = function() {
var t = this, e = t._self._c;
return e("div", { staticClass: "settings-section", class: { "settings-section--limit-width": t.limitWidth } }, [e("h2", { staticClass: "settings-section__name" }, [t._v(" " + t._s(t.name) + " "), t.hasDocUrl ? e("a", { staticClass: "settings-section__info", attrs: { href: t.docUrl, role: "note", "aria-label": t.docNameTranslated, title: t.docNameTranslated, target: "_blank", rel: "noreferrer nofollow" } }, [e("HelpCircle", { attrs: { size: 20 } })], 1) : t._e()]), t.hasDescription ? e("p", { staticClass: "settings-section__desc" }, [t._v(" " + t._s(t.description) + " ")]) : t._e(), t._t("default")], 2);
}, o = [], l = n(r, a, o, !1, null, "feb2306f", null, null);
const f = l.exports;
export {
f as default
};