UNPKG

@nextcloud/vue

Version:
18 lines (17 loc) 767 B
import "../assets/index26.css"; import { n as r } from "../chunks/_plugin-vue2_normalizer-5b4c43a4.mjs"; const i = { name: "NcAppNavigationIconBullet", props: { color: { type: String, required: !0, validator(t) { return /^#?([0-9A-F]{3}){1,2}$/i.test(t); } } }, emits: ["click"], computed: { formattedColor() { return this.color.startsWith("#") ? this.color : "#" + this.color; } }, methods: { onClick(t) { this.$emit("click", t); } } }; var l = function() { var t = this, o = t._self._c; return o("div", { staticClass: "app-navigation-entry__icon-bullet", on: { click: t.onClick } }, [o("div", { style: { backgroundColor: t.formattedColor } })]); }, c = [], e = r(i, l, c, !1, null, "91580127", null, null); const a = e.exports; export { a as default };