primevue
Version:
PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc
57 lines (54 loc) • 1.9 kB
JavaScript
import { style } from '@primeuix/styles/treeselect';
import BaseStyle from '@primevue/core/base/style';
var inlineStyles = {
root: function root(_ref) {
var props = _ref.props;
return {
position: props.appendTo === 'self' ? 'relative' : undefined
};
}
};
var classes = {
root: function root(_ref2) {
var instance = _ref2.instance,
props = _ref2.props;
return ['p-treeselect p-component p-inputwrapper', {
'p-treeselect-display-chip': props.display === 'chip',
'p-disabled': props.disabled,
'p-invalid': instance.$invalid,
'p-focus': instance.focused,
'p-variant-filled': instance.$variant === 'filled',
'p-inputwrapper-filled': instance.$filled,
'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
'p-treeselect-open': instance.overlayVisible,
'p-treeselect-fluid': instance.$fluid,
'p-treeselect-sm p-inputfield-sm': props.size === 'small',
'p-treeselect-lg p-inputfield-lg': props.size === 'large'
}];
},
labelContainer: 'p-treeselect-label-container',
label: function label(_ref3) {
var instance = _ref3.instance,
props = _ref3.props;
return ['p-treeselect-label', {
'p-placeholder': instance.label === props.placeholder,
'p-treeselect-label-empty': !props.placeholder && instance.emptyValue
}];
},
clearIcon: 'p-treeselect-clear-icon',
chip: 'p-treeselect-chip-item',
pcChip: 'p-treeselect-chip',
dropdown: 'p-treeselect-dropdown',
dropdownIcon: 'p-treeselect-dropdown-icon',
panel: 'p-treeselect-overlay p-component',
treeContainer: 'p-treeselect-tree-container',
emptyMessage: 'p-treeselect-empty-message'
};
var TreeSelectStyle = BaseStyle.extend({
name: 'treeselect',
style: style,
classes: classes,
inlineStyles: inlineStyles
});
export { TreeSelectStyle as default };
//# sourceMappingURL=index.mjs.map