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
76 lines (73 loc) • 2.71 kB
JavaScript
import { style } from '@primeuix/styles/multiselect';
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-multiselect p-component p-inputwrapper', {
'p-multiselect-display-chip': props.display === 'chip',
'p-disabled': props.disabled,
'p-invalid': instance.$invalid,
'p-variant-filled': instance.$variant === 'filled',
'p-focus': instance.focused,
'p-inputwrapper-filled': instance.$filled,
'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
'p-multiselect-open': instance.overlayVisible,
'p-multiselect-fluid': instance.$fluid,
'p-multiselect-sm p-inputfield-sm': props.size === 'small',
'p-multiselect-lg p-inputfield-lg': props.size === 'large'
}];
},
labelContainer: 'p-multiselect-label-container',
label: function label(_ref3) {
var instance = _ref3.instance,
props = _ref3.props;
return ['p-multiselect-label', {
'p-placeholder': instance.label === props.placeholder,
'p-multiselect-label-empty': !props.placeholder && !instance.$filled
}];
},
clearIcon: 'p-multiselect-clear-icon',
chipItem: 'p-multiselect-chip-item',
pcChip: 'p-multiselect-chip',
chipIcon: 'p-multiselect-chip-icon',
dropdown: 'p-multiselect-dropdown',
loadingIcon: 'p-multiselect-loading-icon',
dropdownIcon: 'p-multiselect-dropdown-icon',
overlay: 'p-multiselect-overlay p-component',
header: 'p-multiselect-header',
pcFilterContainer: 'p-multiselect-filter-container',
pcFilter: 'p-multiselect-filter',
listContainer: 'p-multiselect-list-container',
list: 'p-multiselect-list',
optionGroup: 'p-multiselect-option-group',
option: function option(_ref4) {
var instance = _ref4.instance,
_option = _ref4.option,
index = _ref4.index,
getItemOptions = _ref4.getItemOptions,
props = _ref4.props;
return ['p-multiselect-option', {
'p-multiselect-option-selected': instance.isSelected(_option) && props.highlightOnSelect,
'p-focus': instance.focusedOptionIndex === instance.getOptionIndex(index, getItemOptions),
'p-disabled': instance.isOptionDisabled(_option)
}];
},
emptyMessage: 'p-multiselect-empty-message'
};
var MultiSelectStyle = BaseStyle.extend({
name: 'multiselect',
style: style,
classes: classes,
inlineStyles: inlineStyles
});
export { MultiSelectStyle as default };
//# sourceMappingURL=index.mjs.map