UNPKG

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

1 lines 5.59 kB
{"version":3,"file":"index.mjs","sources":["../../../src/multiselect/style/MultiSelectStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/multiselect';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst inlineStyles = {\n root: ({ props }) => ({ position: props.appendTo === 'self' ? 'relative' : undefined })\n};\n\nconst classes = {\n root: ({ instance, props }) => [\n 'p-multiselect p-component p-inputwrapper',\n {\n 'p-multiselect-display-chip': props.display === 'chip',\n 'p-disabled': props.disabled,\n 'p-invalid': instance.$invalid,\n 'p-variant-filled': instance.$variant === 'filled',\n 'p-focus': instance.focused,\n 'p-inputwrapper-filled': instance.$filled,\n 'p-inputwrapper-focus': instance.focused || instance.overlayVisible,\n 'p-multiselect-open': instance.overlayVisible,\n 'p-multiselect-fluid': instance.$fluid,\n 'p-multiselect-sm p-inputfield-sm': props.size === 'small',\n 'p-multiselect-lg p-inputfield-lg': props.size === 'large'\n }\n ],\n labelContainer: 'p-multiselect-label-container',\n label: ({ instance, props }) => [\n 'p-multiselect-label',\n {\n 'p-placeholder': instance.label === props.placeholder,\n 'p-multiselect-label-empty': !props.placeholder && !instance.$filled\n }\n ],\n clearIcon: 'p-multiselect-clear-icon',\n chipItem: 'p-multiselect-chip-item',\n pcChip: 'p-multiselect-chip',\n chipIcon: 'p-multiselect-chip-icon',\n dropdown: 'p-multiselect-dropdown',\n loadingIcon: 'p-multiselect-loading-icon',\n dropdownIcon: 'p-multiselect-dropdown-icon',\n overlay: 'p-multiselect-overlay p-component',\n header: 'p-multiselect-header',\n pcFilterContainer: 'p-multiselect-filter-container',\n pcFilter: 'p-multiselect-filter',\n listContainer: 'p-multiselect-list-container',\n list: 'p-multiselect-list',\n optionGroup: 'p-multiselect-option-group',\n option: ({ instance, option, index, getItemOptions, props }) => [\n 'p-multiselect-option',\n {\n 'p-multiselect-option-selected': instance.isSelected(option) && props.highlightOnSelect,\n 'p-focus': instance.focusedOptionIndex === instance.getOptionIndex(index, getItemOptions),\n 'p-disabled': instance.isOptionDisabled(option)\n }\n ],\n emptyMessage: 'p-multiselect-empty-message'\n};\n\nexport default BaseStyle.extend({\n name: 'multiselect',\n style,\n classes,\n inlineStyles\n});\n"],"names":["inlineStyles","root","_ref","props","position","appendTo","undefined","classes","_ref2","instance","display","disabled","$invalid","$variant","focused","$filled","overlayVisible","$fluid","size","labelContainer","label","_ref3","placeholder","clearIcon","chipItem","pcChip","chipIcon","dropdown","loadingIcon","dropdownIcon","overlay","header","pcFilterContainer","pcFilter","listContainer","list","optionGroup","option","_ref4","index","getItemOptions","isSelected","highlightOnSelect","focusedOptionIndex","getOptionIndex","isOptionDisabled","emptyMessage","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,YAAY,GAAG;AACjBC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,IAAA,EAAA;AAAA,IAAA,IAAKC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAA,OAAQ;MAAEC,QAAQ,EAAED,KAAK,CAACE,QAAQ,KAAK,MAAM,GAAG,UAAU,GAAGC;KAAW;AAAA;AAC1F,CAAC;AAED,IAAMC,OAAO,GAAG;AACZN,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAO,KAAA,EAAA;AAAA,IAAA,IAAKC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;MAAEN,KAAK,GAAAK,KAAA,CAALL,KAAK;IAAA,OAAO,CAC3B,0CAA0C,EAC1C;AACI,MAAA,4BAA4B,EAAEA,KAAK,CAACO,OAAO,KAAK,MAAM;MACtD,YAAY,EAAEP,KAAK,CAACQ,QAAQ;MAC5B,WAAW,EAAEF,QAAQ,CAACG,QAAQ;AAC9B,MAAA,kBAAkB,EAAEH,QAAQ,CAACI,QAAQ,KAAK,QAAQ;MAClD,SAAS,EAAEJ,QAAQ,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