@gitlab/ui
Version:
GitLab UI Components
69 lines (58 loc) • 1.56 kB
JavaScript
import { intersperse } from '../../../utils/data_utils';
import { splitAfterSymbols } from '../../../utils/string_utils';
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
var script = {
functional: true,
props: {
text: {
type: String,
required: true
},
symbols: {
type: Array,
required: false,
default: function _default() {
return ['/'];
}
}
},
render: function render(createElement, _ref) {
var props = _ref.props;
var symbols = props.symbols,
text = props.text;
var textParts = splitAfterSymbols(symbols, text !== null && text !== void 0 ? text : '');
var content = intersperse(function () {
return createElement('wbr');
}, textParts);
return createElement('span', {
class: 'text-break'
}, content);
}
};
/* script */
const __vue_script__ = script;
/* template */
/* style */
const __vue_inject_styles__ = undefined;
/* scoped */
const __vue_scope_id__ = undefined;
/* module identifier */
const __vue_module_identifier__ = undefined;
/* functional template */
const __vue_is_functional_template__ = undefined;
/* style inject */
/* style inject SSR */
/* style inject shadow dom */
const __vue_component__ = __vue_normalize__(
{},
__vue_inject_styles__,
__vue_script__,
__vue_scope_id__,
__vue_is_functional_template__,
__vue_module_identifier__,
false,
undefined,
undefined,
undefined
);
export default __vue_component__;