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.02 kB
{"version":3,"file":"index.mjs","sources":["../../../src/select/style/SelectStyle.js"],"sourcesContent":["import { style } from '@primeuix/styles/select';\nimport BaseStyle from '@primevue/core/base/style';\n\nconst classes = {\n root: ({ instance, props, state }) => [\n 'p-select p-component p-inputwrapper',\n {\n 'p-disabled': props.disabled,\n 'p-invalid': instance.$invalid,\n 'p-variant-filled': instance.$variant === 'filled',\n 'p-focus': state.focused,\n 'p-inputwrapper-filled': instance.$filled,\n 'p-inputwrapper-focus': state.focused || state.overlayVisible,\n 'p-select-open': state.overlayVisible,\n 'p-select-fluid': instance.$fluid,\n 'p-select-sm p-inputfield-sm': props.size === 'small',\n 'p-select-lg p-inputfield-lg': props.size === 'large'\n }\n ],\n label: ({ instance, props }) => [\n 'p-select-label',\n {\n 'p-placeholder': !props.editable && instance.label === props.placeholder,\n 'p-select-label-empty': !props.editable && !instance.$slots['value'] && (instance.label === 'p-emptylabel' || instance.label.length === 0)\n }\n ],\n clearIcon: 'p-select-clear-icon',\n dropdown: 'p-select-dropdown',\n loadingicon: 'p-select-loading-icon',\n dropdownIcon: 'p-select-dropdown-icon',\n overlay: 'p-select-overlay p-component',\n header: 'p-select-header',\n pcFilter: 'p-select-filter',\n listContainer: 'p-select-list-container',\n list: 'p-select-list',\n optionGroup: 'p-select-option-group',\n optionGroupLabel: 'p-select-option-group-label',\n option: ({ instance, props, state, option, focusedOption }) => [\n 'p-select-option',\n {\n 'p-select-option-selected': instance.isSelected(option) && props.highlightOnSelect,\n 'p-focus': state.focusedOptionIndex === focusedOption,\n 'p-disabled': instance.isOptionDisabled(option)\n }\n ],\n optionLabel: 'p-select-option-label',\n optionCheckIcon: 'p-select-option-check-icon',\n optionBlankIcon: 'p-select-option-blank-icon',\n emptyMessage: 'p-select-empty-message'\n};\n\nexport default BaseStyle.extend({\n name: 'select',\n style,\n classes\n});\n"],"names":["classes","root","_ref","instance","props","state","disabled","$invalid","$variant","focused","$filled","overlayVisible","$fluid","size","label","_ref2","editable","placeholder","$slots","length","clearIcon","dropdown","loadingicon","dropdownIcon","overlay","header","pcFilter","listContainer","list","optionGroup","optionGroupLabel","option","_ref3","focusedOption","isSelected","highlightOnSelect","focusedOptionIndex","isOptionDisabled","optionLabel","optionCheckIcon","optionBlankIcon","emptyMessage","BaseStyle","extend","name","style"],"mappings":";;;AAGA,IAAMA,OAAO,GAAG;AACZC,EAAAA,IAAI,EAAE,SAANA,IAAIA,CAAAC,IAAA,EAAA;AAAA,IAAA,IAAKC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;MAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;MAAEC,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAA,OAAO,CAClC,qCAAqC,EACrC;MACI,YAAY,EAAED,KAAK,CAACE,QAAQ;MAC5B,WAAW,EAAEH,QAAQ,CAACI,QAAQ;AAC9B,MAAA,kBAAkB,EAAEJ,QAAQ,CAACK,QAAQ,KAAK,QAAQ;MAClD,SAAS,EAAEH,KAAK,CAACI,OAAO;MACxB,uBAAuB,EAAEN,QAAQ,CAACO,OAAO;AACzC,MAAA,sBAAsB,EAAEL,KAAK,CAACI,OAAO,IAAIJ,KAAK,CAACM,cAAc;MAC7D,eAAe,EAAEN,KAAK,CAACM,cAAc;MACrC,gBAAgB,EAAER,QAAQ,CAACS,MAAM;AACjC,MAAA,6BAA6B,EAAER,KAAK,CAACS,IAAI,KAAK,OAAO;AACrD,MAAA,6BAA6B,EAAET,KAAK,CAACS,IAAI,KAAK;AAClD,KAAC,CACJ;AAAA,GAAA;AACDC,EAAAA,KAAK,EAAE,SAAPA,KAAKA,CAAAC,KAAA,EAAA;AAAA,IAAA,IAAKZ,QAAQ,GAAAY,KAAA,CAARZ,QAAQ;MAAEC,KAAK,GAAAW,KAAA,CAALX,KAAK;I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