primevue 4.2.3 → 4.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/carousel/Carousel.vue +5 -2
  2. package/carousel/index.mjs +5 -2
  3. package/carousel/index.mjs.map +1 -1
  4. package/chip/Chip.vue +1 -1
  5. package/chip/index.mjs +0 -1
  6. package/chip/index.mjs.map +1 -1
  7. package/datatable/DataTable.vue +1 -1
  8. package/datatable/index.mjs +1 -1
  9. package/datatable/index.mjs.map +1 -1
  10. package/datepicker/DatePicker.vue +3 -2
  11. package/datepicker/index.mjs +4 -3
  12. package/datepicker/index.mjs.map +1 -1
  13. package/fileupload/FileUpload.vue +1 -1
  14. package/fileupload/index.mjs +1 -1
  15. package/fileupload/index.mjs.map +1 -1
  16. package/galleria/GalleriaItem.vue +3 -3
  17. package/galleria/index.d.ts +8 -0
  18. package/galleria/index.mjs +6 -4
  19. package/galleria/index.mjs.map +1 -1
  20. package/imagecompare/ImageCompare.vue +1 -1
  21. package/imagecompare/index.mjs +5 -2
  22. package/imagecompare/index.mjs.map +1 -1
  23. package/inputmask/InputMask.vue +1 -0
  24. package/inputmask/index.mjs +1 -0
  25. package/inputmask/index.mjs.map +1 -1
  26. package/inputnumber/InputNumber.vue +11 -2
  27. package/inputnumber/index.mjs +9 -2
  28. package/inputnumber/index.mjs.map +1 -1
  29. package/inputtext/index.d.ts +2 -2
  30. package/knob/index.d.ts +1 -1
  31. package/multiselect/style/index.mjs +1 -1
  32. package/multiselect/style/index.mjs.map +1 -1
  33. package/package.json +3 -3
  34. package/password/index.d.ts +1 -1
  35. package/scrolltop/ScrollTop.vue +1 -1
  36. package/scrolltop/index.mjs +1 -1
  37. package/scrolltop/index.mjs.map +1 -1
  38. package/select/style/index.mjs +1 -1
  39. package/select/style/index.mjs.map +1 -1
  40. package/selectbutton/SelectButton.vue +1 -0
  41. package/selectbutton/index.mjs +2 -1
  42. package/selectbutton/index.mjs.map +1 -1
  43. package/slider/style/index.mjs +1 -1
  44. package/slider/style/index.mjs.map +1 -1
  45. package/tablist/TabList.vue +20 -9
  46. package/tablist/index.mjs +20 -12
  47. package/tablist/index.mjs.map +1 -1
  48. package/textarea/index.d.ts +2 -2
  49. package/toggleswitch/style/index.mjs +1 -1
  50. package/toggleswitch/style/index.mjs.map +1 -1
  51. package/treetable/BodyCell.vue +1 -0
  52. package/treetable/TreeTableRow.vue +1 -1
  53. package/treetable/index.mjs +3 -2
  54. package/treetable/index.mjs.map +1 -1
  55. package/umd/primevue.min.js +1 -1
  56. package/virtualscroller/VirtualScroller.vue +1 -1
  57. package/virtualscroller/index.mjs +1 -1
  58. package/virtualscroller/index.mjs.map +1 -1
  59. package/web-types.json +1 -1
@@ -10,7 +10,7 @@
10
10
  import type { DefineComponent, DesignToken, EmitFn, Nullable, PassThrough } from '@primevue/core';
11
11
  import type { ComponentHooks } from '@primevue/core/basecomponent';
12
12
  import type { PassThroughOptions } from 'primevue/passthrough';
13
- import 'vue';
13
+ import { InputHTMLAttributes } from 'vue';
14
14
 
15
15
  export declare type InputTextPassThroughOptionType<T = any> = InputTextPassThroughAttributes | ((options: InputTextPassThroughMethodOptions<T>) => InputTextPassThroughAttributes | string) | string | null | undefined;
16
16
 
@@ -82,7 +82,7 @@ export interface InputTextContext {
82
82
  /**
83
83
  * Defines valid properties in InputText component.
84
84
  */
85
- export interface InputTextProps {
85
+ export interface InputTextProps extends Omit<InputHTMLAttributes, 'size'> {
86
86
  /**
87
87
  * Value of the component.
88
88
  */
package/knob/index.d.ts CHANGED
@@ -191,7 +191,7 @@ export interface KnobProps {
191
191
  * Template string of the value.
192
192
  * @defaultValue '{value}'
193
193
  */
194
- valueTemplate?: (val: number) => string | string | undefined;
194
+ valueTemplate?: ((val: number) => string) | string | undefined;
195
195
  /**
196
196
  * Index of the element in tabbing order.
197
197
  * @defaultValue 0
@@ -2,7 +2,7 @@ import BaseStyle from '@primevue/core/base/style';
2
2
 
3
3
  var theme = function theme(_ref) {
4
4
  var dt = _ref.dt;
5
- return "\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n background: ".concat(dt('multiselect.background'), ";\n border: 1px solid ").concat(dt('multiselect.border.color'), ";\n transition: background ").concat(dt('multiselect.transition.duration'), ", color ").concat(dt('multiselect.transition.duration'), ", border-color ").concat(dt('multiselect.transition.duration'), ", outline-color ").concat(dt('multiselect.transition.duration'), ", box-shadow ").concat(dt('multiselect.transition.duration'), ";\n border-radius: ").concat(dt('multiselect.border.radius'), ";\n outline-color: transparent;\n box-shadow: ").concat(dt('multiselect.shadow'), ";\n}\n\n.p-multiselect:not(.p-disabled):hover {\n border-color: ").concat(dt('multiselect.hover.border.color'), ";\n}\n\n.p-multiselect:not(.p-disabled).p-focus {\n border-color: ").concat(dt('multiselect.focus.border.color'), ";\n box-shadow: ").concat(dt('multiselect.focus.ring.shadow'), ";\n outline: ").concat(dt('multiselect.focus.ring.width'), " ").concat(dt('multiselect.focus.ring.style'), " ").concat(dt('multiselect.focus.ring.color'), ";\n outline-offset: ").concat(dt('multiselect.focus.ring.offset'), ";\n}\n\n.p-multiselect.p-variant-filled {\n background: ").concat(dt('multiselect.filled.background'), ";\n}\n\n.p-multiselect.p-variant-filled:not(.p-disabled):hover {\n background: ").concat(dt('multiselect.filled.hover.background'), ";\n}\n\n.p-multiselect.p-variant-filled.p-focus {\n background: ").concat(dt('multiselect.filled.focus.background'), ";\n}\n\n.p-multiselect.p-invalid {\n border-color: ").concat(dt('multiselect.invalid.border.color'), ";\n}\n\n.p-multiselect.p-disabled {\n opacity: 1;\n background: ").concat(dt('multiselect.disabled.background'), ";\n}\n\n.p-multiselect-dropdown {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n color: ").concat(dt('multiselect.dropdown.color'), ";\n width: ").concat(dt('multiselect.dropdown.width'), ";\n border-start-end-radius: ").concat(dt('multiselect.border.radius'), ";\n border-end-end-radius: ").concat(dt('multiselect.border.radius'), ";\n}\n\n.p-multiselect-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n color: ").concat(dt('multiselect.clear.icon.color'), ";\n inset-inline-end: ").concat(dt('multiselect.dropdown.width'), ";\n}\n\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n\n.p-multiselect-label {\n display: flex;\n align-items: center;\n gap: calc(").concat(dt('multiselect.padding.y'), " / 2);\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: ").concat(dt('multiselect.padding.y'), " ").concat(dt('multiselect.padding.x'), ";\n color: ").concat(dt('multiselect.color'), ";\n}\n\n.p-multiselect-label.p-placeholder {\n color: ").concat(dt('multiselect.placeholder.color'), ";\n}\n\n.p-multiselect.p-invalid .p-multiselect-label.p-placeholder {\n color: ").concat(dt('multiselect.invalid.placeholder.color'), ";\n}\n\n.p-multiselect.p-disabled .p-multiselect-label {\n color: ").concat(dt('multiselect.disabled.color'), ";\n}\n\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-multiselect .p-multiselect-overlay {\n min-width: 100%;\n}\n\n.p-multiselect-overlay {\n position: absolute;\n top: 0;\n left: 0;\n background: ").concat(dt('multiselect.overlay.background'), ";\n color: ").concat(dt('multiselect.overlay.color'), ";\n border: 1px solid ").concat(dt('multiselect.overlay.border.color'), ";\n border-radius: ").concat(dt('multiselect.overlay.border.radius'), ";\n box-shadow: ").concat(dt('multiselect.overlay.shadow'), ";\n}\n\n.p-multiselect-header {\n display: flex;\n align-items: center;\n padding: ").concat(dt('multiselect.list.header.padding'), ";\n}\n\n.p-multiselect-header .p-checkbox {\n margin-inline-end: ").concat(dt('multiselect.option.gap'), ";\n}\n\n.p-multiselect-filter-container {\n flex: 1 1 auto;\n}\n\n.p-multiselect-filter {\n width: 100%;\n}\n\n.p-multiselect-list-container {\n overflow: auto;\n}\n\n.p-multiselect-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n padding: ").concat(dt('multiselect.list.padding'), ";\n display: flex;\n flex-direction: column;\n gap: ").concat(dt('multiselect.list.gap'), ";\n}\n\n.p-multiselect-option {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n display: flex;\n align-items: center;\n gap: ").concat(dt('multiselect.option.gap'), ";\n padding: ").concat(dt('multiselect.option.padding'), ";\n border: 0 none;\n color: ").concat(dt('multiselect.option.color'), ";\n background: transparent;\n transition: background ").concat(dt('multiselect.transition.duration'), ", color ").concat(dt('multiselect.transition.duration'), ", border-color ").concat(dt('multiselect.transition.duration'), ", box-shadow ").concat(dt('multiselect.transition.duration'), ", outline-color ").concat(dt('multiselect.transition.duration'), ";\n border-radius: ").concat(dt('multiselect.option.border.radius'), ";\n}\n\n.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {\n background: ").concat(dt('multiselect.option.focus.background'), ";\n color: ").concat(dt('multiselect.option.focus.color'), ";\n}\n\n.p-multiselect-option.p-multiselect-option-selected {\n background: ").concat(dt('multiselect.option.selected.background'), ";\n color: ").concat(dt('multiselect.option.selected.color'), ";\n}\n\n.p-multiselect-option.p-multiselect-option-selected.p-focus {\n background: ").concat(dt('multiselect.option.selected.focus.background'), ";\n color: ").concat(dt('multiselect.option.selected.focus.color'), ";\n}\n\n.p-multiselect-option-group {\n cursor: auto;\n margin: 0;\n padding: ").concat(dt('multiselect.option.group.padding'), ";\n background: ").concat(dt('multiselect.option.group.background'), ";\n color: ").concat(dt('multiselect.option.group.color'), ";\n font-weight: ").concat(dt('multiselect.option.group.font.weight'), ";\n}\n\n.p-multiselect-empty-message {\n padding: ").concat(dt('multiselect.empty.message.padding'), ";\n}\n\n.p-multiselect-label .p-chip {\n padding-block-start: calc(").concat(dt('multiselect.padding.y'), " / 2);\n padding-block-end: calc(").concat(dt('multiselect.padding.y'), " / 2);\n border-radius: ").concat(dt('multiselect.chip.border.radius'), ";\n}\n\n.p-multiselect-label:has(.p-chip) {\n padding: calc(").concat(dt('multiselect.padding.y'), " / 2) calc(").concat(dt('multiselect.padding.x'), " / 2);\n}\n\n.p-multiselect-fluid {\n display: flex;\n}\n\n.p-multiselect-sm .p-multiselect-label {\n font-size: ").concat(dt('multiselect.sm.font.size'), ";\n padding-block: ").concat(dt('multiselect.sm.padding.y'), ";\n padding-inline: ").concat(dt('multiselect.sm.padding.x'), ";\n}\n\n.p-multiselect-sm .p-multiselect-dropdown .p-icon {\n font-size: ").concat(dt('multiselect.sm.font.size'), ";\n width: ").concat(dt('multiselect.sm.font.size'), ";\n height: ").concat(dt('multiselect.sm.font.size'), ";\n}\n\n.p-multiselect-lg .p-multiselect-label {\n font-size: ").concat(dt('multiselect.lg.font.size'), ";\n padding-block: ").concat(dt('multiselect.lg.padding.y'), ";\n padding-inline: ").concat(dt('multiselect.lg.padding.x'), ";\n}\n\n.p-multiselect-lg .p-multiselect-dropdown .p-icon {\n font-size: ").concat(dt('multiselect.lg.font.size'), ";\n width: ").concat(dt('multiselect.lg.font.size'), ";\n height: ").concat(dt('multiselect.lg.font.size'), ";\n}\n");
5
+ return "\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n background: ".concat(dt('multiselect.background'), ";\n border: 1px solid ").concat(dt('multiselect.border.color'), ";\n transition: background ").concat(dt('multiselect.transition.duration'), ", color ").concat(dt('multiselect.transition.duration'), ", border-color ").concat(dt('multiselect.transition.duration'), ", outline-color ").concat(dt('multiselect.transition.duration'), ", box-shadow ").concat(dt('multiselect.transition.duration'), ";\n border-radius: ").concat(dt('multiselect.border.radius'), ";\n outline-color: transparent;\n box-shadow: ").concat(dt('multiselect.shadow'), ";\n}\n\n.p-multiselect:not(.p-disabled):hover {\n border-color: ").concat(dt('multiselect.hover.border.color'), ";\n}\n\n.p-multiselect:not(.p-disabled).p-focus {\n border-color: ").concat(dt('multiselect.focus.border.color'), ";\n box-shadow: ").concat(dt('multiselect.focus.ring.shadow'), ";\n outline: ").concat(dt('multiselect.focus.ring.width'), " ").concat(dt('multiselect.focus.ring.style'), " ").concat(dt('multiselect.focus.ring.color'), ";\n outline-offset: ").concat(dt('multiselect.focus.ring.offset'), ";\n}\n\n.p-multiselect.p-variant-filled {\n background: ").concat(dt('multiselect.filled.background'), ";\n}\n\n.p-multiselect.p-variant-filled:not(.p-disabled):hover {\n background: ").concat(dt('multiselect.filled.hover.background'), ";\n}\n\n.p-multiselect.p-variant-filled.p-focus {\n background: ").concat(dt('multiselect.filled.focus.background'), ";\n}\n\n.p-multiselect.p-invalid {\n border-color: ").concat(dt('multiselect.invalid.border.color'), ";\n}\n\n.p-multiselect.p-disabled {\n opacity: 1;\n background: ").concat(dt('multiselect.disabled.background'), ";\n}\n\n.p-multiselect-dropdown {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n color: ").concat(dt('multiselect.dropdown.color'), ";\n width: ").concat(dt('multiselect.dropdown.width'), ";\n border-start-end-radius: ").concat(dt('multiselect.border.radius'), ";\n border-end-end-radius: ").concat(dt('multiselect.border.radius'), ";\n}\n\n.p-multiselect-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n color: ").concat(dt('multiselect.clear.icon.color'), ";\n inset-inline-end: ").concat(dt('multiselect.dropdown.width'), ";\n}\n\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n\n.p-multiselect-label {\n display: flex;\n align-items: center;\n gap: calc(").concat(dt('multiselect.padding.y'), " / 2);\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: ").concat(dt('multiselect.padding.y'), " ").concat(dt('multiselect.padding.x'), ";\n color: ").concat(dt('multiselect.color'), ";\n}\n\n.p-multiselect-label.p-placeholder {\n color: ").concat(dt('multiselect.placeholder.color'), ";\n}\n\n.p-multiselect.p-invalid .p-multiselect-label.p-placeholder {\n color: ").concat(dt('multiselect.invalid.placeholder.color'), ";\n}\n\n.p-multiselect.p-disabled .p-multiselect-label {\n color: ").concat(dt('multiselect.disabled.color'), ";\n}\n\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-multiselect .p-multiselect-overlay {\n min-width: 100%;\n}\n\n.p-multiselect-overlay {\n position: absolute;\n top: 0;\n left: 0;\n background: ").concat(dt('multiselect.overlay.background'), ";\n color: ").concat(dt('multiselect.overlay.color'), ";\n border: 1px solid ").concat(dt('multiselect.overlay.border.color'), ";\n border-radius: ").concat(dt('multiselect.overlay.border.radius'), ";\n box-shadow: ").concat(dt('multiselect.overlay.shadow'), ";\n}\n\n.p-multiselect-header {\n display: flex;\n align-items: center;\n padding: ").concat(dt('multiselect.list.header.padding'), ";\n}\n\n.p-multiselect-header .p-checkbox {\n margin-inline-end: ").concat(dt('multiselect.option.gap'), ";\n}\n\n.p-multiselect-filter-container {\n flex: 1 1 auto;\n}\n\n.p-multiselect-filter {\n width: 100%;\n}\n\n.p-multiselect-list-container {\n overflow: auto;\n}\n\n.p-multiselect-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n padding: ").concat(dt('multiselect.list.padding'), ";\n display: flex;\n flex-direction: column;\n gap: ").concat(dt('multiselect.list.gap'), ";\n}\n\n.p-multiselect-option {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n display: flex;\n align-items: center;\n gap: ").concat(dt('multiselect.option.gap'), ";\n padding: ").concat(dt('multiselect.option.padding'), ";\n border: 0 none;\n color: ").concat(dt('multiselect.option.color'), ";\n background: transparent;\n transition: background ").concat(dt('multiselect.transition.duration'), ", color ").concat(dt('multiselect.transition.duration'), ", border-color ").concat(dt('multiselect.transition.duration'), ", box-shadow ").concat(dt('multiselect.transition.duration'), ", outline-color ").concat(dt('multiselect.transition.duration'), ";\n border-radius: ").concat(dt('multiselect.option.border.radius'), ";\n}\n\n.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {\n background: ").concat(dt('multiselect.option.focus.background'), ";\n color: ").concat(dt('multiselect.option.focus.color'), ";\n}\n\n.p-multiselect-option.p-multiselect-option-selected {\n background: ").concat(dt('multiselect.option.selected.background'), ";\n color: ").concat(dt('multiselect.option.selected.color'), ";\n}\n\n.p-multiselect-option.p-multiselect-option-selected.p-focus {\n background: ").concat(dt('multiselect.option.selected.focus.background'), ";\n color: ").concat(dt('multiselect.option.selected.focus.color'), ";\n}\n\n.p-multiselect-option-group {\n cursor: auto;\n margin: 0;\n padding: ").concat(dt('multiselect.option.group.padding'), ";\n background: ").concat(dt('multiselect.option.group.background'), ";\n color: ").concat(dt('multiselect.option.group.color'), ";\n font-weight: ").concat(dt('multiselect.option.group.font.weight'), ";\n}\n\n.p-multiselect-empty-message {\n padding: ").concat(dt('multiselect.empty.message.padding'), ";\n}\n\n.p-multiselect-label .p-chip {\n padding-block-start: calc(").concat(dt('multiselect.padding.y'), " / 2);\n padding-block-end: calc(").concat(dt('multiselect.padding.y'), " / 2);\n border-radius: ").concat(dt('multiselect.chip.border.radius'), ";\n}\n\n.p-multiselect-label:has(.p-chip) {\n padding: calc(").concat(dt('multiselect.padding.y'), " / 2) calc(").concat(dt('multiselect.padding.x'), " / 2);\n}\n\n.p-multiselect-fluid {\n display: flex;\n width: 100%;\n}\n\n.p-multiselect-sm .p-multiselect-label {\n font-size: ").concat(dt('multiselect.sm.font.size'), ";\n padding-block: ").concat(dt('multiselect.sm.padding.y'), ";\n padding-inline: ").concat(dt('multiselect.sm.padding.x'), ";\n}\n\n.p-multiselect-sm .p-multiselect-dropdown .p-icon {\n font-size: ").concat(dt('multiselect.sm.font.size'), ";\n width: ").concat(dt('multiselect.sm.font.size'), ";\n height: ").concat(dt('multiselect.sm.font.size'), ";\n}\n\n.p-multiselect-lg .p-multiselect-label {\n font-size: ").concat(dt('multiselect.lg.font.size'), ";\n padding-block: ").concat(dt('multiselect.lg.padding.y'), ";\n padding-inline: ").concat(dt('multiselect.lg.padding.x'), ";\n}\n\n.p-multiselect-lg .p-multiselect-dropdown .p-icon {\n font-size: ").concat(dt('multiselect.lg.font.size'), ";\n width: ").concat(dt('multiselect.lg.font.size'), ";\n height: ").concat(dt('multiselect.lg.font.size'), ";\n}\n");
6
6
  };
7
7
  var inlineStyles = {
8
8
  root: function root(_ref2) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../src/multiselect/style/MultiSelectStyle.js"],"sourcesContent":["import BaseStyle from '@primevue/core/base/style';\n\nconst theme = ({ dt }) => `\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n background: ${dt('multiselect.background')};\n border: 1px solid ${dt('multiselect.border.color')};\n transition: background ${dt('multiselect.transition.duration')}, color ${dt('multiselect.transition.duration')}, border-color ${dt('multiselect.transition.duration')}, outline-color ${dt('multiselect.transition.duration')}, box-shadow ${dt(\n 'multiselect.transition.duration'\n)};\n border-radius: ${dt('multiselect.border.radius')};\n outline-color: transparent;\n box-shadow: ${dt('multiselect.shadow')};\n}\n\n.p-multiselect:not(.p-disabled):hover {\n border-color: ${dt('multiselect.hover.border.color')};\n}\n\n.p-multiselect:not(.p-disabled).p-focus {\n border-color: ${dt('multiselect.focus.border.color')};\n box-shadow: ${dt('multiselect.focus.ring.shadow')};\n outline: ${dt('multiselect.focus.ring.width')} ${dt('multiselect.focus.ring.style')} ${dt('multiselect.focus.ring.color')};\n outline-offset: ${dt('multiselect.focus.ring.offset')};\n}\n\n.p-multiselect.p-variant-filled {\n background: ${dt('multiselect.filled.background')};\n}\n\n.p-multiselect.p-variant-filled:not(.p-disabled):hover {\n background: ${dt('multiselect.filled.hover.background')};\n}\n\n.p-multiselect.p-variant-filled.p-focus {\n background: ${dt('multiselect.filled.focus.background')};\n}\n\n.p-multiselect.p-invalid {\n border-color: ${dt('multiselect.invalid.border.color')};\n}\n\n.p-multiselect.p-disabled {\n opacity: 1;\n background: ${dt('multiselect.disabled.background')};\n}\n\n.p-multiselect-dropdown {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n color: ${dt('multiselect.dropdown.color')};\n width: ${dt('multiselect.dropdown.width')};\n border-start-end-radius: ${dt('multiselect.border.radius')};\n border-end-end-radius: ${dt('multiselect.border.radius')};\n}\n\n.p-multiselect-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n color: ${dt('multiselect.clear.icon.color')};\n inset-inline-end: ${dt('multiselect.dropdown.width')};\n}\n\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n\n.p-multiselect-label {\n display: flex;\n align-items: center;\n gap: calc(${dt('multiselect.padding.y')} / 2);\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: ${dt('multiselect.padding.y')} ${dt('multiselect.padding.x')};\n color: ${dt('multiselect.color')};\n}\n\n.p-multiselect-label.p-placeholder {\n color: ${dt('multiselect.placeholder.color')};\n}\n\n.p-multiselect.p-invalid .p-multiselect-label.p-placeholder {\n color: ${dt('multiselect.invalid.placeholder.color')};\n}\n\n.p-multiselect.p-disabled .p-multiselect-label {\n color: ${dt('multiselect.disabled.color')};\n}\n\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-multiselect .p-multiselect-overlay {\n min-width: 100%;\n}\n\n.p-multiselect-overlay {\n position: absolute;\n top: 0;\n left: 0;\n background: ${dt('multiselect.overlay.background')};\n color: ${dt('multiselect.overlay.color')};\n border: 1px solid ${dt('multiselect.overlay.border.color')};\n border-radius: ${dt('multiselect.overlay.border.radius')};\n box-shadow: ${dt('multiselect.overlay.shadow')};\n}\n\n.p-multiselect-header {\n display: flex;\n align-items: center;\n padding: ${dt('multiselect.list.header.padding')};\n}\n\n.p-multiselect-header .p-checkbox {\n margin-inline-end: ${dt('multiselect.option.gap')};\n}\n\n.p-multiselect-filter-container {\n flex: 1 1 auto;\n}\n\n.p-multiselect-filter {\n width: 100%;\n}\n\n.p-multiselect-list-container {\n overflow: auto;\n}\n\n.p-multiselect-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n padding: ${dt('multiselect.list.padding')};\n display: flex;\n flex-direction: column;\n gap: ${dt('multiselect.list.gap')};\n}\n\n.p-multiselect-option {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n display: flex;\n align-items: center;\n gap: ${dt('multiselect.option.gap')};\n padding: ${dt('multiselect.option.padding')};\n border: 0 none;\n color: ${dt('multiselect.option.color')};\n background: transparent;\n transition: background ${dt('multiselect.transition.duration')}, color ${dt('multiselect.transition.duration')}, border-color ${dt('multiselect.transition.duration')}, box-shadow ${dt('multiselect.transition.duration')}, outline-color ${dt(\n 'multiselect.transition.duration'\n)};\n border-radius: ${dt('multiselect.option.border.radius')};\n}\n\n.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {\n background: ${dt('multiselect.option.focus.background')};\n color: ${dt('multiselect.option.focus.color')};\n}\n\n.p-multiselect-option.p-multiselect-option-selected {\n background: ${dt('multiselect.option.selected.background')};\n color: ${dt('multiselect.option.selected.color')};\n}\n\n.p-multiselect-option.p-multiselect-option-selected.p-focus {\n background: ${dt('multiselect.option.selected.focus.background')};\n color: ${dt('multiselect.option.selected.focus.color')};\n}\n\n.p-multiselect-option-group {\n cursor: auto;\n margin: 0;\n padding: ${dt('multiselect.option.group.padding')};\n background: ${dt('multiselect.option.group.background')};\n color: ${dt('multiselect.option.group.color')};\n font-weight: ${dt('multiselect.option.group.font.weight')};\n}\n\n.p-multiselect-empty-message {\n padding: ${dt('multiselect.empty.message.padding')};\n}\n\n.p-multiselect-label .p-chip {\n padding-block-start: calc(${dt('multiselect.padding.y')} / 2);\n padding-block-end: calc(${dt('multiselect.padding.y')} / 2);\n border-radius: ${dt('multiselect.chip.border.radius')};\n}\n\n.p-multiselect-label:has(.p-chip) {\n padding: calc(${dt('multiselect.padding.y')} / 2) calc(${dt('multiselect.padding.x')} / 2);\n}\n\n.p-multiselect-fluid {\n display: flex;\n}\n\n.p-multiselect-sm .p-multiselect-label {\n font-size: ${dt('multiselect.sm.font.size')};\n padding-block: ${dt('multiselect.sm.padding.y')};\n padding-inline: ${dt('multiselect.sm.padding.x')};\n}\n\n.p-multiselect-sm .p-multiselect-dropdown .p-icon {\n font-size: ${dt('multiselect.sm.font.size')};\n width: ${dt('multiselect.sm.font.size')};\n height: ${dt('multiselect.sm.font.size')};\n}\n\n.p-multiselect-lg .p-multiselect-label {\n font-size: ${dt('multiselect.lg.font.size')};\n padding-block: ${dt('multiselect.lg.padding.y')};\n padding-inline: ${dt('multiselect.lg.padding.x')};\n}\n\n.p-multiselect-lg .p-multiselect-dropdown .p-icon {\n font-size: ${dt('multiselect.lg.font.size')};\n width: ${dt('multiselect.lg.font.size')};\n height: ${dt('multiselect.lg.font.size')};\n}\n`;\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 && (!props.modelValue || props.modelValue.length === 0)\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 theme,\n classes,\n inlineStyles\n});\n"],"names":["theme","_ref","dt","concat","inlineStyles","root","_ref2","props","position","appendTo","undefined","classes","_ref3","instance","display","disabled","$invalid","$variant","focused","$filled","overlayVisible","$fluid","size","labelContainer","label","_ref4","placeholder","modelValue","length","clearIcon","chipItem","pcChip","chipIcon","dropdown","loadingIcon","dropdownIcon","overlay","header","pcFilterContainer","pcFilter","listContainer","list","optionGroup","option","_ref5","index","getItemOptions","isSelected","highlightOnSelect","focusedOptionIndex","getOptionIndex","isOptionDisabled","emptyMessage","BaseStyle","extend","name"],"mappings":";;AAEA,IAAMA,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,EAAE,GAAAD,IAAA,CAAFC,EAAE;AAAA,EAAA,OAAA,wIAAA,CAAAC,MAAA,CAMDD,EAAE,CAAC,wBAAwB,CAAC,EAAAC,2BAAAA,CAAAA,CAAAA,MAAA,CACtBD,EAAE,CAAC,0BAA0B,CAAC,EAAAC,gCAAAA,CAAAA,CAAAA,MAAA,CACzBD,EAAE,CAAC,iCAAiC,CAAC,EAAA,UAAA,CAAA,CAAAC,MAAA,CAAWD,EAAE,CAAC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AC5D,sBAAsB,EACtB;MACI,+BAA+B,EAAEM,QAAQ,CAACkC,UAAU,CAACJ,OAAM,CAAC,IAAIpC,KAAK,CAACyC,iBAAiB;AACvF,MAAA,SAAS,EAAEnC,QAAQ,CAACoC,kBAAkB,KAAKpC,QAAQ,CAACqC,cAAc,CAACL,KAAK,EAAEC,cAAc,CAAC;AACzF,MAAA,YAAY,EAAEjC,QAAQ,CAACsC,gBAAgB,CAACR,OAAM;AAClD,KAAC,CACJ;AAAA,GAAA;AACDS,EAAAA,YAAY,EAAE;AAClB,CAAC;AAED,uBAAeC,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE,aAAa;AACnBvD,EAAAA,KAAK,EAALA,KAAK;AACLW,EAAAA,OAAO,EAAPA,OAAO;AACPP,EAAAA,YAAY,EAAZA;AACJ,CAAC,CAAC;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../src/multiselect/style/MultiSelectStyle.js"],"sourcesContent":["import BaseStyle from '@primevue/core/base/style';\n\nconst theme = ({ dt }) => `\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n background: ${dt('multiselect.background')};\n border: 1px solid ${dt('multiselect.border.color')};\n transition: background ${dt('multiselect.transition.duration')}, color ${dt('multiselect.transition.duration')}, border-color ${dt('multiselect.transition.duration')}, outline-color ${dt('multiselect.transition.duration')}, box-shadow ${dt(\n 'multiselect.transition.duration'\n)};\n border-radius: ${dt('multiselect.border.radius')};\n outline-color: transparent;\n box-shadow: ${dt('multiselect.shadow')};\n}\n\n.p-multiselect:not(.p-disabled):hover {\n border-color: ${dt('multiselect.hover.border.color')};\n}\n\n.p-multiselect:not(.p-disabled).p-focus {\n border-color: ${dt('multiselect.focus.border.color')};\n box-shadow: ${dt('multiselect.focus.ring.shadow')};\n outline: ${dt('multiselect.focus.ring.width')} ${dt('multiselect.focus.ring.style')} ${dt('multiselect.focus.ring.color')};\n outline-offset: ${dt('multiselect.focus.ring.offset')};\n}\n\n.p-multiselect.p-variant-filled {\n background: ${dt('multiselect.filled.background')};\n}\n\n.p-multiselect.p-variant-filled:not(.p-disabled):hover {\n background: ${dt('multiselect.filled.hover.background')};\n}\n\n.p-multiselect.p-variant-filled.p-focus {\n background: ${dt('multiselect.filled.focus.background')};\n}\n\n.p-multiselect.p-invalid {\n border-color: ${dt('multiselect.invalid.border.color')};\n}\n\n.p-multiselect.p-disabled {\n opacity: 1;\n background: ${dt('multiselect.disabled.background')};\n}\n\n.p-multiselect-dropdown {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n color: ${dt('multiselect.dropdown.color')};\n width: ${dt('multiselect.dropdown.width')};\n border-start-end-radius: ${dt('multiselect.border.radius')};\n border-end-end-radius: ${dt('multiselect.border.radius')};\n}\n\n.p-multiselect-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n color: ${dt('multiselect.clear.icon.color')};\n inset-inline-end: ${dt('multiselect.dropdown.width')};\n}\n\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n\n.p-multiselect-label {\n display: flex;\n align-items: center;\n gap: calc(${dt('multiselect.padding.y')} / 2);\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: ${dt('multiselect.padding.y')} ${dt('multiselect.padding.x')};\n color: ${dt('multiselect.color')};\n}\n\n.p-multiselect-label.p-placeholder {\n color: ${dt('multiselect.placeholder.color')};\n}\n\n.p-multiselect.p-invalid .p-multiselect-label.p-placeholder {\n color: ${dt('multiselect.invalid.placeholder.color')};\n}\n\n.p-multiselect.p-disabled .p-multiselect-label {\n color: ${dt('multiselect.disabled.color')};\n}\n\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-multiselect .p-multiselect-overlay {\n min-width: 100%;\n}\n\n.p-multiselect-overlay {\n position: absolute;\n top: 0;\n left: 0;\n background: ${dt('multiselect.overlay.background')};\n color: ${dt('multiselect.overlay.color')};\n border: 1px solid ${dt('multiselect.overlay.border.color')};\n border-radius: ${dt('multiselect.overlay.border.radius')};\n box-shadow: ${dt('multiselect.overlay.shadow')};\n}\n\n.p-multiselect-header {\n display: flex;\n align-items: center;\n padding: ${dt('multiselect.list.header.padding')};\n}\n\n.p-multiselect-header .p-checkbox {\n margin-inline-end: ${dt('multiselect.option.gap')};\n}\n\n.p-multiselect-filter-container {\n flex: 1 1 auto;\n}\n\n.p-multiselect-filter {\n width: 100%;\n}\n\n.p-multiselect-list-container {\n overflow: auto;\n}\n\n.p-multiselect-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n padding: ${dt('multiselect.list.padding')};\n display: flex;\n flex-direction: column;\n gap: ${dt('multiselect.list.gap')};\n}\n\n.p-multiselect-option {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n display: flex;\n align-items: center;\n gap: ${dt('multiselect.option.gap')};\n padding: ${dt('multiselect.option.padding')};\n border: 0 none;\n color: ${dt('multiselect.option.color')};\n background: transparent;\n transition: background ${dt('multiselect.transition.duration')}, color ${dt('multiselect.transition.duration')}, border-color ${dt('multiselect.transition.duration')}, box-shadow ${dt('multiselect.transition.duration')}, outline-color ${dt(\n 'multiselect.transition.duration'\n)};\n border-radius: ${dt('multiselect.option.border.radius')};\n}\n\n.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {\n background: ${dt('multiselect.option.focus.background')};\n color: ${dt('multiselect.option.focus.color')};\n}\n\n.p-multiselect-option.p-multiselect-option-selected {\n background: ${dt('multiselect.option.selected.background')};\n color: ${dt('multiselect.option.selected.color')};\n}\n\n.p-multiselect-option.p-multiselect-option-selected.p-focus {\n background: ${dt('multiselect.option.selected.focus.background')};\n color: ${dt('multiselect.option.selected.focus.color')};\n}\n\n.p-multiselect-option-group {\n cursor: auto;\n margin: 0;\n padding: ${dt('multiselect.option.group.padding')};\n background: ${dt('multiselect.option.group.background')};\n color: ${dt('multiselect.option.group.color')};\n font-weight: ${dt('multiselect.option.group.font.weight')};\n}\n\n.p-multiselect-empty-message {\n padding: ${dt('multiselect.empty.message.padding')};\n}\n\n.p-multiselect-label .p-chip {\n padding-block-start: calc(${dt('multiselect.padding.y')} / 2);\n padding-block-end: calc(${dt('multiselect.padding.y')} / 2);\n border-radius: ${dt('multiselect.chip.border.radius')};\n}\n\n.p-multiselect-label:has(.p-chip) {\n padding: calc(${dt('multiselect.padding.y')} / 2) calc(${dt('multiselect.padding.x')} / 2);\n}\n\n.p-multiselect-fluid {\n display: flex;\n width: 100%;\n}\n\n.p-multiselect-sm .p-multiselect-label {\n font-size: ${dt('multiselect.sm.font.size')};\n padding-block: ${dt('multiselect.sm.padding.y')};\n padding-inline: ${dt('multiselect.sm.padding.x')};\n}\n\n.p-multiselect-sm .p-multiselect-dropdown .p-icon {\n font-size: ${dt('multiselect.sm.font.size')};\n width: ${dt('multiselect.sm.font.size')};\n height: ${dt('multiselect.sm.font.size')};\n}\n\n.p-multiselect-lg .p-multiselect-label {\n font-size: ${dt('multiselect.lg.font.size')};\n padding-block: ${dt('multiselect.lg.padding.y')};\n padding-inline: ${dt('multiselect.lg.padding.x')};\n}\n\n.p-multiselect-lg .p-multiselect-dropdown .p-icon {\n font-size: ${dt('multiselect.lg.font.size')};\n width: ${dt('multiselect.lg.font.size')};\n height: ${dt('multiselect.lg.font.size')};\n}\n`;\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 && (!props.modelValue || props.modelValue.length === 0)\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 theme,\n classes,\n inlineStyles\n});\n"],"names":["theme","_ref","dt","concat","inlineStyles","root","_ref2","props","position","appendTo","undefined","classes","_ref3","instance","display","disabled","$invalid","$variant","focused","$filled","overlayVisible","$fluid","size","labelContainer","label","_ref4","placeholder","modelValue","length","clearIcon","chipItem","pcChip","chipIcon","dropdown","loadingIcon","dropdownIcon","overlay","header","pcFilterContainer","pcFilter","listContainer","list","optionGroup","option","_ref5","index","getItemOptions","isSelected","highlightOnSelect","focusedOptionIndex","getOptionIndex","isOptionDisabled","emptyMessage","BaseStyle","extend","name"],"mappings":";;AAEA,IAAMA,KAAK,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AA,IAAI,EAAE,oBAAoB;AAC1BC,EAAAA,WAAW,EAAE,4BAA4B;AACzCC,EAAAA,MAAM,EAAE,SAARA,MAAMA,CAAAC,KAAA,EAAA;AAAA,IAAA,IAAK/B,QAAQ,GAAA+B,KAAA,CAAR/B,QAAQ;MAAE8B,OAAM,GAAAC,KAAA,CAAND,MAAM;MAAEE,KAAK,GAAAD,KAAA,CAALC,KAAK;MAAEC,cAAc,GAAAF,KAAA,CAAdE,cAAc;MAAEvC,KAAK,GAAAqC,KAAA,CAALrC,KAAK;IAAA,OAAO,CAC5D,sBAAsB,EACtB;MACI,+BAA+B,EAAEM,QAAQ,CAACkC,UAAU,CAACJ,OAAM,CAAC,IAAIpC,KAAK,CAACyC,iBAAiB;AACvF,MAAA,SAAS,EAAEnC,QAAQ,CAACoC,kBAAkB,KAAKpC,QAAQ,CAACqC,cAAc,CAACL,KAAK,EAAEC,cAAc,CAAC;AACzF,MAAA,YAAY,EAAEjC,QAAQ,CAACsC,gBAAgB,CAACR,OAAM;AAClD,KAAC,CACJ;AAAA,GAAA;AACDS,EAAAA,YAAY,EAAE;AAClB,CAAC;AAED,uBAAeC,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE,aAAa;AACnBvD,EAAAA,KAAK,EAALA,KAAK;AACLW,EAAAA,OAAO,EAAPA,OAAO;AACPP,EAAAA,YAAY,EAAZA;AACJ,CAAC,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primevue",
3
- "version": "4.2.3",
3
+ "version": "4.2.5",
4
4
  "author": "PrimeTek Informatics",
5
5
  "description": "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 PrimeBlock, which has 370+ ready to use UI blocks to build spectacular applications in no time.",
6
6
  "homepage": "https://primevue.org/",
@@ -59,8 +59,8 @@
59
59
  "dependencies": {
60
60
  "@primeuix/styled": "^0.3.2",
61
61
  "@primeuix/utils": "^0.3.2",
62
- "@primevue/core": "4.2.3",
63
- "@primevue/icons": "4.2.3"
62
+ "@primevue/core": "4.2.5",
63
+ "@primevue/icons": "4.2.5"
64
64
  },
65
65
  "engines": {
66
66
  "node": ">=12.11.0"
@@ -169,7 +169,7 @@ export interface PasswordMeterStateOptions {
169
169
  /**
170
170
  * Defines valid properties in Password component.
171
171
  */
172
- export interface PasswordProps {
172
+ export interface PasswordProps extends Omit<InputHTMLAttributes, 'size'> {
173
173
  /**
174
174
  * Value of the component.
175
175
  */
@@ -3,7 +3,7 @@
3
3
  <Button v-if="visible" :ref="containerRef" :class="cx('root')" @click="onClick" :aria-label="scrollTopAriaLabel" :unstyled="unstyled" v-bind="buttonProps" :pt="pt">
4
4
  <template #icon="slotProps">
5
5
  <slot name="icon" :class="cx('icon')">
6
- <component :is="icon ? 'span' : 'ChevronUpIcon'" :class="[cx('icon'), icon, slotProps.class]" v-bind="ptmi('root')['icon']" />
6
+ <component :is="icon ? 'span' : 'ChevronUpIcon'" :class="[cx('icon'), icon, slotProps.class]" v-bind="ptm('icon')" />
7
7
  </slot>
8
8
  </template>
9
9
  </Button>
@@ -148,7 +148,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
148
148
  }, function () {
149
149
  return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ? 'span' : 'ChevronUpIcon'), mergeProps({
150
150
  "class": [_ctx.cx('icon'), _ctx.icon, slotProps["class"]]
151
- }, _ctx.ptmi('root')['icon']), null, 16, ["class"]))];
151
+ }, _ctx.ptm('icon')), null, 16, ["class"]))];
152
152
  })];
153
153
  }),
154
154
  _: 3
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/scrolltop/BaseScrollTop.vue","../../src/scrolltop/ScrollTop.vue","../../src/scrolltop/ScrollTop.vue?vue&type=template&id=518a85ae&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ScrollTopStyle from 'primevue/scrolltop/style';\n\nexport default {\n name: 'BaseScrollTop',\n extends: BaseComponent,\n props: {\n target: {\n type: String,\n default: 'window'\n },\n threshold: {\n type: Number,\n default: 400\n },\n icon: {\n type: String,\n default: undefined\n },\n behavior: {\n type: String,\n default: 'smooth'\n },\n buttonProps: {\n type: Object,\n default: () => {\n return { rounded: true };\n }\n }\n },\n style: ScrollTopStyle,\n provide() {\n return {\n $pcScrollTop: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <transition name=\"p-scrolltop\" appear @enter=\"onEnter\" @after-leave=\"onAfterLeave\" v-bind=\"ptm('transition')\">\n <Button v-if=\"visible\" :ref=\"containerRef\" :class=\"cx('root')\" @click=\"onClick\" :aria-label=\"scrollTopAriaLabel\" :unstyled=\"unstyled\" v-bind=\"buttonProps\" :pt=\"pt\">\n <template #icon=\"slotProps\">\n <slot name=\"icon\" :class=\"cx('icon')\">\n <component :is=\"icon ? 'span' : 'ChevronUpIcon'\" :class=\"[cx('icon'), icon, slotProps.class]\" v-bind=\"ptmi('root')['icon']\" />\n </slot>\n </template>\n </Button>\n </transition>\n</template>\n\n<script>\nimport { getWindowScrollTop } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport ChevronUpIcon from '@primevue/icons/chevronup';\nimport Button from 'primevue/button';\nimport BaseScrollTop from './BaseScrollTop.vue';\n\nexport default {\n name: 'ScrollTop',\n extends: BaseScrollTop,\n inheritAttrs: false,\n scrollListener: null,\n container: null,\n data() {\n return {\n visible: false\n };\n },\n mounted() {\n if (this.target === 'window') this.bindDocumentScrollListener();\n else if (this.target === 'parent') this.bindParentScrollListener();\n },\n beforeUnmount() {\n if (this.target === 'window') this.unbindDocumentScrollListener();\n else if (this.target === 'parent') this.unbindParentScrollListener();\n\n if (this.container) {\n ZIndex.clear(this.container);\n this.overlay = null;\n }\n },\n methods: {\n onClick() {\n let scrollElement = this.target === 'window' ? window : this.$el.parentElement;\n\n scrollElement.scroll({\n top: 0,\n behavior: this.behavior\n });\n },\n checkVisibility(scrollY) {\n if (scrollY > this.threshold) this.visible = true;\n else this.visible = false;\n },\n bindParentScrollListener() {\n this.scrollListener = () => {\n this.checkVisibility(this.$el.parentElement.scrollTop);\n };\n\n this.$el.parentElement.addEventListener('scroll', this.scrollListener);\n },\n bindDocumentScrollListener() {\n this.scrollListener = () => {\n this.checkVisibility(getWindowScrollTop());\n };\n\n window.addEventListener('scroll', this.scrollListener);\n },\n unbindParentScrollListener() {\n if (this.scrollListener) {\n this.$el.parentElement.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n },\n unbindDocumentScrollListener() {\n if (this.scrollListener) {\n window.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n },\n onEnter(el) {\n ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);\n },\n onAfterLeave(el) {\n ZIndex.clear(el);\n },\n containerRef(el) {\n this.container = el ? el.$el : undefined;\n }\n },\n computed: {\n scrollTopAriaLabel() {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.scrollTop : undefined;\n }\n },\n components: {\n ChevronUpIcon,\n Button\n }\n};\n</script>\n","<template>\n <transition name=\"p-scrolltop\" appear @enter=\"onEnter\" @after-leave=\"onAfterLeave\" v-bind=\"ptm('transition')\">\n <Button v-if=\"visible\" :ref=\"containerRef\" :class=\"cx('root')\" @click=\"onClick\" :aria-label=\"scrollTopAriaLabel\" :unstyled=\"unstyled\" v-bind=\"buttonProps\" :pt=\"pt\">\n <template #icon=\"slotProps\">\n <slot name=\"icon\" :class=\"cx('icon')\">\n <component :is=\"icon ? 'span' : 'ChevronUpIcon'\" :class=\"[cx('icon'), icon, slotProps.class]\" v-bind=\"ptmi('root')['icon']\" />\n </slot>\n </template>\n </Button>\n </transition>\n</template>\n\n<script>\nimport { getWindowScrollTop } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport ChevronUpIcon from '@primevue/icons/chevronup';\nimport Button from 'primevue/button';\nimport BaseScrollTop from './BaseScrollTop.vue';\n\nexport default {\n name: 'ScrollTop',\n extends: BaseScrollTop,\n inheritAttrs: false,\n scrollListener: null,\n container: null,\n data() {\n return {\n visible: false\n };\n },\n mounted() {\n if (this.target === 'window') this.bindDocumentScrollListener();\n else if (this.target === 'parent') this.bindParentScrollListener();\n },\n beforeUnmount() {\n if (this.target === 'window') this.unbindDocumentScrollListener();\n else if (this.target === 'parent') this.unbindParentScrollListener();\n\n if (this.container) {\n ZIndex.clear(this.container);\n this.overlay = null;\n }\n },\n methods: {\n onClick() {\n let scrollElement = this.target === 'window' ? window : this.$el.parentElement;\n\n scrollElement.scroll({\n top: 0,\n behavior: this.behavior\n });\n },\n checkVisibility(scrollY) {\n if (scrollY > this.threshold) this.visible = true;\n else this.visible = false;\n },\n bindParentScrollListener() {\n this.scrollListener = () => {\n this.checkVisibility(this.$el.parentElement.scrollTop);\n };\n\n this.$el.parentElement.addEventListener('scroll', this.scrollListener);\n },\n bindDocumentScrollListener() {\n this.scrollListener = () => {\n this.checkVisibility(getWindowScrollTop());\n };\n\n window.addEventListener('scroll', this.scrollListener);\n },\n unbindParentScrollListener() {\n if (this.scrollListener) {\n this.$el.parentElement.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n },\n unbindDocumentScrollListener() {\n if (this.scrollListener) {\n window.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n },\n onEnter(el) {\n ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);\n },\n onAfterLeave(el) {\n ZIndex.clear(el);\n },\n containerRef(el) {\n this.container = el ? el.$el : undefined;\n }\n },\n computed: {\n scrollTopAriaLabel() {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.scrollTop : undefined;\n }\n },\n components: {\n ChevronUpIcon,\n Button\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","target","type","String","threshold","Number","icon","undefined","behavior","buttonProps","Object","default","rounded","style","ScrollTopStyle","provide","$pcScrollTop","$parentInstance","BaseScrollTop","inheritAttrs","scrollListener","container","data","visible","mounted","bindDocumentScrollListener","bindParentScrollListener","beforeUnmount","unbindDocumentScrollListener","unbindParentScrollListener","ZIndex","clear","overlay","methods","onClick","scrollElement","window","$el","parentElement","scroll","top","checkVisibility","scrollY","_this","scrollTop","addEventListener","_this2","getWindowScrollTop","removeEventListener","onEnter","el","set","$primevue","config","zIndex","onAfterLeave","containerRef","computed","scrollTopAriaLabel","locale","aria","components","ChevronUpIcon","Button","_openBlock","_createBlock","_Transition","_mergeProps","appear","$options","_ctx","ptm","$data","_component_Button","ref","cx","unstyled","pt","_withCtx","slotProps","_renderSlot","$slots","_resolveDynamicComponent","ptmi"],"mappings":";;;;;;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,eAAe;AACrB,EAAA,SAAA,EAASC,aAAa;AACtBC,EAAAA,KAAK,EAAE;AACHC,IAAAA,MAAM,EAAE;AACJC,MAAAA,IAAI,EAAEC,MAAM;MACZ,SAAS,EAAA;KACZ;AACDC,IAAAA,SAAS,EAAE;AACPF,MAAAA,IAAI,EAAEG,MAAM;MACZ,SAAS,EAAA;KACZ;AACDC,IAAAA,IAAI,EAAE;AACFJ,MAAAA,IAAI,EAAEC,MAAM;MACZ,SAASI,EAAAA;KACZ;AACDC,IAAAA,QAAQ,EAAE;AACNN,MAAAA,IAAI,EAAEC,MAAM;MACZ,SAAS,EAAA;KACZ;AACDM,IAAAA,WAAW,EAAE;AACTP,MAAAA,IAAI,EAAEQ,MAAM;MACZ,SAAS,EAAA,SAATC,QAAOA,GAAQ;QACX,OAAO;AAAEC,UAAAA,OAAO,EAAE;SAAM;AAC5B;AACJ;GACH;AACDC,EAAAA,KAAK,EAAEC,cAAc;EACrBC,OAAO,EAAA,SAAPA,OAAOA,GAAG;IACN,OAAO;AACHC,MAAAA,YAAY,EAAE,IAAI;AAClBC,MAAAA,eAAe,EAAE;KACpB;AACL;AACJ,CAAC;;ACnBD,aAAe;AACXnB,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;SAAUN,IAAW,CAAA7D,WAAA,EAAA;QAAGoE,EAAE,EAAEP,IAAE,CAAAO;AAAA,OAAA,CAAA,EAAA;AACnJvE,QAAAA,IAAI,EAAAwE,OAAA,CACX,UAEMC,SAHgB,EAAA;UAAA,OAAA,CACtBC,UAEM,CAAAV,IAAA,CAAAW,MAAA,EAAA,MAAA,EAAA;AAFa,YAAA,OAAA,iBAAOX,IAAE,CAAAK,EAAA,CAAA,MAAA,CAAA;aAA5B,YAAA;AAAA,YAAA,OAEM,eADFV,WAA6H,CAAAiB,uBAAA,CAA7GZ,IAAK,CAAAhE,IAAA,GAAA,MAAA,GAAA,eAAA,CAAA,EAArB6D,UAA6H,CAAA;AAA3E,cAAA,OAAA,GAAQG,IAAE,CAAAK,EAAA,CAAA,MAAA,CAAA,EAAUL,SAAI,EAAES,SAAS,CAAM,OAAA,CAAA;eAAWT,IAAI,CAAAa,IAAA,CAAA,MAAA,CAAA,CAAA,MAAA,CAAA,CAAA,EAAA,IAAA,EAAA,EAAA,EAAA,CAAA,OAAA,CAAA,CAAA;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../src/scrolltop/BaseScrollTop.vue","../../src/scrolltop/ScrollTop.vue","../../src/scrolltop/ScrollTop.vue?vue&type=template&id=2776720c&lang.js"],"sourcesContent":["<script>\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ScrollTopStyle from 'primevue/scrolltop/style';\n\nexport default {\n name: 'BaseScrollTop',\n extends: BaseComponent,\n props: {\n target: {\n type: String,\n default: 'window'\n },\n threshold: {\n type: Number,\n default: 400\n },\n icon: {\n type: String,\n default: undefined\n },\n behavior: {\n type: String,\n default: 'smooth'\n },\n buttonProps: {\n type: Object,\n default: () => {\n return { rounded: true };\n }\n }\n },\n style: ScrollTopStyle,\n provide() {\n return {\n $pcScrollTop: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <transition name=\"p-scrolltop\" appear @enter=\"onEnter\" @after-leave=\"onAfterLeave\" v-bind=\"ptm('transition')\">\n <Button v-if=\"visible\" :ref=\"containerRef\" :class=\"cx('root')\" @click=\"onClick\" :aria-label=\"scrollTopAriaLabel\" :unstyled=\"unstyled\" v-bind=\"buttonProps\" :pt=\"pt\">\n <template #icon=\"slotProps\">\n <slot name=\"icon\" :class=\"cx('icon')\">\n <component :is=\"icon ? 'span' : 'ChevronUpIcon'\" :class=\"[cx('icon'), icon, slotProps.class]\" v-bind=\"ptm('icon')\" />\n </slot>\n </template>\n </Button>\n </transition>\n</template>\n\n<script>\nimport { getWindowScrollTop } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport ChevronUpIcon from '@primevue/icons/chevronup';\nimport Button from 'primevue/button';\nimport BaseScrollTop from './BaseScrollTop.vue';\n\nexport default {\n name: 'ScrollTop',\n extends: BaseScrollTop,\n inheritAttrs: false,\n scrollListener: null,\n container: null,\n data() {\n return {\n visible: false\n };\n },\n mounted() {\n if (this.target === 'window') this.bindDocumentScrollListener();\n else if (this.target === 'parent') this.bindParentScrollListener();\n },\n beforeUnmount() {\n if (this.target === 'window') this.unbindDocumentScrollListener();\n else if (this.target === 'parent') this.unbindParentScrollListener();\n\n if (this.container) {\n ZIndex.clear(this.container);\n this.overlay = null;\n }\n },\n methods: {\n onClick() {\n let scrollElement = this.target === 'window' ? window : this.$el.parentElement;\n\n scrollElement.scroll({\n top: 0,\n behavior: this.behavior\n });\n },\n checkVisibility(scrollY) {\n if (scrollY > this.threshold) this.visible = true;\n else this.visible = false;\n },\n bindParentScrollListener() {\n this.scrollListener = () => {\n this.checkVisibility(this.$el.parentElement.scrollTop);\n };\n\n this.$el.parentElement.addEventListener('scroll', this.scrollListener);\n },\n bindDocumentScrollListener() {\n this.scrollListener = () => {\n this.checkVisibility(getWindowScrollTop());\n };\n\n window.addEventListener('scroll', this.scrollListener);\n },\n unbindParentScrollListener() {\n if (this.scrollListener) {\n this.$el.parentElement.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n },\n unbindDocumentScrollListener() {\n if (this.scrollListener) {\n window.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n },\n onEnter(el) {\n ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);\n },\n onAfterLeave(el) {\n ZIndex.clear(el);\n },\n containerRef(el) {\n this.container = el ? el.$el : undefined;\n }\n },\n computed: {\n scrollTopAriaLabel() {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.scrollTop : undefined;\n }\n },\n components: {\n ChevronUpIcon,\n Button\n }\n};\n</script>\n","<template>\n <transition name=\"p-scrolltop\" appear @enter=\"onEnter\" @after-leave=\"onAfterLeave\" v-bind=\"ptm('transition')\">\n <Button v-if=\"visible\" :ref=\"containerRef\" :class=\"cx('root')\" @click=\"onClick\" :aria-label=\"scrollTopAriaLabel\" :unstyled=\"unstyled\" v-bind=\"buttonProps\" :pt=\"pt\">\n <template #icon=\"slotProps\">\n <slot name=\"icon\" :class=\"cx('icon')\">\n <component :is=\"icon ? 'span' : 'ChevronUpIcon'\" :class=\"[cx('icon'), icon, slotProps.class]\" v-bind=\"ptm('icon')\" />\n </slot>\n </template>\n </Button>\n </transition>\n</template>\n\n<script>\nimport { getWindowScrollTop } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport ChevronUpIcon from '@primevue/icons/chevronup';\nimport Button from 'primevue/button';\nimport BaseScrollTop from './BaseScrollTop.vue';\n\nexport default {\n name: 'ScrollTop',\n extends: BaseScrollTop,\n inheritAttrs: false,\n scrollListener: null,\n container: null,\n data() {\n return {\n visible: false\n };\n },\n mounted() {\n if (this.target === 'window') this.bindDocumentScrollListener();\n else if (this.target === 'parent') this.bindParentScrollListener();\n },\n beforeUnmount() {\n if (this.target === 'window') this.unbindDocumentScrollListener();\n else if (this.target === 'parent') this.unbindParentScrollListener();\n\n if (this.container) {\n ZIndex.clear(this.container);\n this.overlay = null;\n }\n },\n methods: {\n onClick() {\n let scrollElement = this.target === 'window' ? window : this.$el.parentElement;\n\n scrollElement.scroll({\n top: 0,\n behavior: this.behavior\n });\n },\n checkVisibility(scrollY) {\n if (scrollY > this.threshold) this.visible = true;\n else this.visible = false;\n },\n bindParentScrollListener() {\n this.scrollListener = () => {\n this.checkVisibility(this.$el.parentElement.scrollTop);\n };\n\n this.$el.parentElement.addEventListener('scroll', this.scrollListener);\n },\n bindDocumentScrollListener() {\n this.scrollListener = () => {\n this.checkVisibility(getWindowScrollTop());\n };\n\n window.addEventListener('scroll', this.scrollListener);\n },\n unbindParentScrollListener() {\n if (this.scrollListener) {\n this.$el.parentElement.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n },\n unbindDocumentScrollListener() {\n if (this.scrollListener) {\n window.removeEventListener('scroll', this.scrollListener);\n this.scrollListener = null;\n }\n },\n onEnter(el) {\n ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);\n },\n onAfterLeave(el) {\n ZIndex.clear(el);\n },\n containerRef(el) {\n this.container = el ? el.$el : undefined;\n }\n },\n computed: {\n scrollTopAriaLabel() {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.scrollTop : undefined;\n }\n },\n components: {\n ChevronUpIcon,\n Button\n }\n};\n</script>\n"],"names":["name","BaseComponent","props","target","type","String","threshold","Number","icon","undefined","behavior","buttonProps","Object","default","rounded","style","ScrollTopStyle","provide","$pcScrollTop","$parentInstance","BaseScrollTop","inheritAttrs","scrollListener","container","data","visible","mounted","bindDocumentScrollListener","bindParentScrollListener","beforeUnmount","unbindDocumentScrollListener","unbindParentScrollListener","ZIndex","clear","overlay","methods","onClick","scrollElement","window","$el","parentElement","scroll","top","checkVisibility","scrollY","_this","scrollTop","addEventListener","_this2","getWindowScrollTop","removeEventListener","onEnter","el","set","$primevue","config","zIndex","onAfterLeave","containerRef","computed","scrollTopAriaLabel","locale","aria","components","ChevronUpIcon","Button","_openBlock","_createBlock","_Transition","_mergeProps","appear","$options","_ctx","ptm","$data","_component_Button","ref","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AA,GAAA,eAAA,CAAA,EAAnB6D,UAAoH,CAAA;AAAlE,cAAA,OAAA,GAAQG,IAAE,CAAAK,EAAA,CAAA,MAAA,CAAA,EAAUL,SAAI,EAAES,SAAS,CAAM,OAAA,CAAA;eAAWT,IAAG,CAAAC,GAAA,CAAA,MAAA,CAAA,CAAA,EAAA,IAAA,EAAA,EAAA,EAAA,CAAA,OAAA,CAAA,CAAA;;;;;;;;;;;;;;"}
@@ -2,7 +2,7 @@ import BaseStyle from '@primevue/core/base/style';
2
2
 
3
3
  var theme = function theme(_ref) {
4
4
  var dt = _ref.dt;
5
- return "\n.p-select {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n background: ".concat(dt('select.background'), ";\n border: 1px solid ").concat(dt('select.border.color'), ";\n transition: background ").concat(dt('select.transition.duration'), ", color ").concat(dt('select.transition.duration'), ", border-color ").concat(dt('select.transition.duration'), ",\n outline-color ").concat(dt('select.transition.duration'), ", box-shadow ").concat(dt('select.transition.duration'), ";\n border-radius: ").concat(dt('select.border.radius'), ";\n outline-color: transparent;\n box-shadow: ").concat(dt('select.shadow'), ";\n}\n\n.p-select:not(.p-disabled):hover {\n border-color: ").concat(dt('select.hover.border.color'), ";\n}\n\n.p-select:not(.p-disabled).p-focus {\n border-color: ").concat(dt('select.focus.border.color'), ";\n box-shadow: ").concat(dt('select.focus.ring.shadow'), ";\n outline: ").concat(dt('select.focus.ring.width'), " ").concat(dt('select.focus.ring.style'), " ").concat(dt('select.focus.ring.color'), ";\n outline-offset: ").concat(dt('select.focus.ring.offset'), ";\n}\n\n.p-select.p-variant-filled {\n background: ").concat(dt('select.filled.background'), ";\n}\n\n.p-select.p-variant-filled:not(.p-disabled):hover {\n background: ").concat(dt('select.filled.hover.background'), ";\n}\n\n.p-select.p-variant-filled:not(.p-disabled).p-focus {\n background: ").concat(dt('select.filled.focus.background'), ";\n}\n\n.p-select.p-invalid {\n border-color: ").concat(dt('select.invalid.border.color'), ";\n}\n\n.p-select.p-disabled {\n opacity: 1;\n background: ").concat(dt('select.disabled.background'), ";\n}\n\n.p-select-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n color: ").concat(dt('select.clear.icon.color'), ";\n inset-inline-end: ").concat(dt('select.dropdown.width'), ";\n}\n\n.p-select-dropdown {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n color: ").concat(dt('select.dropdown.color'), ";\n width: ").concat(dt('select.dropdown.width'), ";\n border-start-end-radius: ").concat(dt('select.border.radius'), ";\n border-end-end-radius: ").concat(dt('select.border.radius'), ";\n}\n\n.p-select-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n padding: ").concat(dt('select.padding.y'), " ").concat(dt('select.padding.x'), ";\n text-overflow: ellipsis;\n cursor: pointer;\n color: ").concat(dt('select.color'), ";\n background: transparent;\n border: 0 none;\n outline: 0 none;\n}\n\n.p-select-label.p-placeholder {\n color: ").concat(dt('select.placeholder.color'), ";\n}\n\n.p-select.p-invalid .p-select-label.p-placeholder {\n color: ").concat(dt('select.invalid.placeholder.color'), ";\n}\n\n.p-select:has(.p-select-clear-icon) .p-select-label {\n padding-inline-end: calc(1rem + ").concat(dt('select.padding.x'), ");\n}\n\n.p-select.p-disabled .p-select-label {\n color: ").concat(dt('select.disabled.color'), ";\n}\n\n.p-select-label-empty {\n overflow: hidden;\n opacity: 0;\n}\n\ninput.p-select-label {\n cursor: default;\n}\n\n.p-select .p-select-overlay {\n min-width: 100%;\n}\n\n.p-select-overlay {\n position: absolute;\n top: 0;\n left: 0;\n background: ").concat(dt('select.overlay.background'), ";\n color: ").concat(dt('select.overlay.color'), ";\n border: 1px solid ").concat(dt('select.overlay.border.color'), ";\n border-radius: ").concat(dt('select.overlay.border.radius'), ";\n box-shadow: ").concat(dt('select.overlay.shadow'), ";\n}\n\n.p-select-header {\n padding: ").concat(dt('select.list.header.padding'), ";\n}\n\n.p-select-filter {\n width: 100%;\n}\n\n.p-select-list-container {\n overflow: auto;\n}\n\n.p-select-option-group {\n cursor: auto;\n margin: 0;\n padding: ").concat(dt('select.option.group.padding'), ";\n background: ").concat(dt('select.option.group.background'), ";\n color: ").concat(dt('select.option.group.color'), ";\n font-weight: ").concat(dt('select.option.group.font.weight'), ";\n}\n\n.p-select-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n padding: ").concat(dt('select.list.padding'), ";\n gap: ").concat(dt('select.list.gap'), ";\n display: flex;\n flex-direction: column;\n}\n\n.p-select-option {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n display: flex;\n align-items: center;\n padding: ").concat(dt('select.option.padding'), ";\n border: 0 none;\n color: ").concat(dt('select.option.color'), ";\n background: transparent;\n transition: background ").concat(dt('select.transition.duration'), ", color ").concat(dt('select.transition.duration'), ", border-color ").concat(dt('select.transition.duration'), ",\n box-shadow ").concat(dt('select.transition.duration'), ", outline-color ").concat(dt('select.transition.duration'), ";\n border-radius: ").concat(dt('select.option.border.radius'), ";\n}\n\n.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\n background: ").concat(dt('select.option.focus.background'), ";\n color: ").concat(dt('select.option.focus.color'), ";\n}\n\n.p-select-option.p-select-option-selected {\n background: ").concat(dt('select.option.selected.background'), ";\n color: ").concat(dt('select.option.selected.color'), ";\n}\n\n.p-select-option.p-select-option-selected.p-focus {\n background: ").concat(dt('select.option.selected.focus.background'), ";\n color: ").concat(dt('select.option.selected.focus.color'), ";\n}\n\n.p-select-option-check-icon {\n position: relative;\n margin-inline-start: ").concat(dt('select.checkmark.gutter.start'), ";\n margin-inline-end: ").concat(dt('select.checkmark.gutter.end'), ";\n color: ").concat(dt('select.checkmark.color'), ";\n}\n\n.p-select-empty-message {\n padding: ").concat(dt('select.empty.message.padding'), ";\n}\n\n.p-select-fluid {\n display: flex;\n}\n\n.p-select-sm .p-select-label {\n font-size: ").concat(dt('select.sm.font.size'), ";\n padding-block: ").concat(dt('select.sm.padding.y'), ";\n padding-inline: ").concat(dt('select.sm.padding.x'), ";\n}\n\n.p-select-sm .p-select-dropdown .p-icon {\n font-size: ").concat(dt('select.sm.font.size'), ";\n width: ").concat(dt('select.sm.font.size'), ";\n height: ").concat(dt('select.sm.font.size'), ";\n}\n\n.p-select-lg .p-select-label {\n font-size: ").concat(dt('select.lg.font.size'), ";\n padding-block: ").concat(dt('select.lg.padding.y'), ";\n padding-inline: ").concat(dt('select.lg.padding.x'), ";\n}\n\n.p-select-lg .p-select-dropdown .p-icon {\n font-size: ").concat(dt('select.lg.font.size'), ";\n width: ").concat(dt('select.lg.font.size'), ";\n height: ").concat(dt('select.lg.font.size'), ";\n}\n");
5
+ return "\n.p-select {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n background: ".concat(dt('select.background'), ";\n border: 1px solid ").concat(dt('select.border.color'), ";\n transition: background ").concat(dt('select.transition.duration'), ", color ").concat(dt('select.transition.duration'), ", border-color ").concat(dt('select.transition.duration'), ",\n outline-color ").concat(dt('select.transition.duration'), ", box-shadow ").concat(dt('select.transition.duration'), ";\n border-radius: ").concat(dt('select.border.radius'), ";\n outline-color: transparent;\n box-shadow: ").concat(dt('select.shadow'), ";\n}\n\n.p-select:not(.p-disabled):hover {\n border-color: ").concat(dt('select.hover.border.color'), ";\n}\n\n.p-select:not(.p-disabled).p-focus {\n border-color: ").concat(dt('select.focus.border.color'), ";\n box-shadow: ").concat(dt('select.focus.ring.shadow'), ";\n outline: ").concat(dt('select.focus.ring.width'), " ").concat(dt('select.focus.ring.style'), " ").concat(dt('select.focus.ring.color'), ";\n outline-offset: ").concat(dt('select.focus.ring.offset'), ";\n}\n\n.p-select.p-variant-filled {\n background: ").concat(dt('select.filled.background'), ";\n}\n\n.p-select.p-variant-filled:not(.p-disabled):hover {\n background: ").concat(dt('select.filled.hover.background'), ";\n}\n\n.p-select.p-variant-filled:not(.p-disabled).p-focus {\n background: ").concat(dt('select.filled.focus.background'), ";\n}\n\n.p-select.p-invalid {\n border-color: ").concat(dt('select.invalid.border.color'), ";\n}\n\n.p-select.p-disabled {\n opacity: 1;\n background: ").concat(dt('select.disabled.background'), ";\n}\n\n.p-select-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n color: ").concat(dt('select.clear.icon.color'), ";\n inset-inline-end: ").concat(dt('select.dropdown.width'), ";\n}\n\n.p-select-dropdown {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n color: ").concat(dt('select.dropdown.color'), ";\n width: ").concat(dt('select.dropdown.width'), ";\n border-start-end-radius: ").concat(dt('select.border.radius'), ";\n border-end-end-radius: ").concat(dt('select.border.radius'), ";\n}\n\n.p-select-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n padding: ").concat(dt('select.padding.y'), " ").concat(dt('select.padding.x'), ";\n text-overflow: ellipsis;\n cursor: pointer;\n color: ").concat(dt('select.color'), ";\n background: transparent;\n border: 0 none;\n outline: 0 none;\n}\n\n.p-select-label.p-placeholder {\n color: ").concat(dt('select.placeholder.color'), ";\n}\n\n.p-select.p-invalid .p-select-label.p-placeholder {\n color: ").concat(dt('select.invalid.placeholder.color'), ";\n}\n\n.p-select:has(.p-select-clear-icon) .p-select-label {\n padding-inline-end: calc(1rem + ").concat(dt('select.padding.x'), ");\n}\n\n.p-select.p-disabled .p-select-label {\n color: ").concat(dt('select.disabled.color'), ";\n}\n\n.p-select-label-empty {\n overflow: hidden;\n opacity: 0;\n}\n\ninput.p-select-label {\n cursor: default;\n}\n\n.p-select .p-select-overlay {\n min-width: 100%;\n}\n\n.p-select-overlay {\n position: absolute;\n top: 0;\n left: 0;\n background: ").concat(dt('select.overlay.background'), ";\n color: ").concat(dt('select.overlay.color'), ";\n border: 1px solid ").concat(dt('select.overlay.border.color'), ";\n border-radius: ").concat(dt('select.overlay.border.radius'), ";\n box-shadow: ").concat(dt('select.overlay.shadow'), ";\n}\n\n.p-select-header {\n padding: ").concat(dt('select.list.header.padding'), ";\n}\n\n.p-select-filter {\n width: 100%;\n}\n\n.p-select-list-container {\n overflow: auto;\n}\n\n.p-select-option-group {\n cursor: auto;\n margin: 0;\n padding: ").concat(dt('select.option.group.padding'), ";\n background: ").concat(dt('select.option.group.background'), ";\n color: ").concat(dt('select.option.group.color'), ";\n font-weight: ").concat(dt('select.option.group.font.weight'), ";\n}\n\n.p-select-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n padding: ").concat(dt('select.list.padding'), ";\n gap: ").concat(dt('select.list.gap'), ";\n display: flex;\n flex-direction: column;\n}\n\n.p-select-option {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n display: flex;\n align-items: center;\n padding: ").concat(dt('select.option.padding'), ";\n border: 0 none;\n color: ").concat(dt('select.option.color'), ";\n background: transparent;\n transition: background ").concat(dt('select.transition.duration'), ", color ").concat(dt('select.transition.duration'), ", border-color ").concat(dt('select.transition.duration'), ",\n box-shadow ").concat(dt('select.transition.duration'), ", outline-color ").concat(dt('select.transition.duration'), ";\n border-radius: ").concat(dt('select.option.border.radius'), ";\n}\n\n.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\n background: ").concat(dt('select.option.focus.background'), ";\n color: ").concat(dt('select.option.focus.color'), ";\n}\n\n.p-select-option.p-select-option-selected {\n background: ").concat(dt('select.option.selected.background'), ";\n color: ").concat(dt('select.option.selected.color'), ";\n}\n\n.p-select-option.p-select-option-selected.p-focus {\n background: ").concat(dt('select.option.selected.focus.background'), ";\n color: ").concat(dt('select.option.selected.focus.color'), ";\n}\n\n.p-select-option-check-icon {\n position: relative;\n margin-inline-start: ").concat(dt('select.checkmark.gutter.start'), ";\n margin-inline-end: ").concat(dt('select.checkmark.gutter.end'), ";\n color: ").concat(dt('select.checkmark.color'), ";\n}\n\n.p-select-empty-message {\n padding: ").concat(dt('select.empty.message.padding'), ";\n}\n\n.p-select-fluid {\n display: flex;\n width: 100%;\n}\n\n.p-select-sm .p-select-label {\n font-size: ").concat(dt('select.sm.font.size'), ";\n padding-block: ").concat(dt('select.sm.padding.y'), ";\n padding-inline: ").concat(dt('select.sm.padding.x'), ";\n}\n\n.p-select-sm .p-select-dropdown .p-icon {\n font-size: ").concat(dt('select.sm.font.size'), ";\n width: ").concat(dt('select.sm.font.size'), ";\n height: ").concat(dt('select.sm.font.size'), ";\n}\n\n.p-select-lg .p-select-label {\n font-size: ").concat(dt('select.lg.font.size'), ";\n padding-block: ").concat(dt('select.lg.padding.y'), ";\n padding-inline: ").concat(dt('select.lg.padding.x'), ";\n}\n\n.p-select-lg .p-select-dropdown .p-icon {\n font-size: ").concat(dt('select.lg.font.size'), ";\n width: ").concat(dt('select.lg.font.size'), ";\n height: ").concat(dt('select.lg.font.size'), ";\n}\n");
6
6
  };
7
7
  var classes = {
8
8
  root: function root(_ref2) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../src/select/style/SelectStyle.js"],"sourcesContent":["import BaseStyle from '@primevue/core/base/style';\n\nconst theme = ({ dt }) => `\n.p-select {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n background: ${dt('select.background')};\n border: 1px solid ${dt('select.border.color')};\n transition: background ${dt('select.transition.duration')}, color ${dt('select.transition.duration')}, border-color ${dt('select.transition.duration')},\n outline-color ${dt('select.transition.duration')}, box-shadow ${dt('select.transition.duration')};\n border-radius: ${dt('select.border.radius')};\n outline-color: transparent;\n box-shadow: ${dt('select.shadow')};\n}\n\n.p-select:not(.p-disabled):hover {\n border-color: ${dt('select.hover.border.color')};\n}\n\n.p-select:not(.p-disabled).p-focus {\n border-color: ${dt('select.focus.border.color')};\n box-shadow: ${dt('select.focus.ring.shadow')};\n outline: ${dt('select.focus.ring.width')} ${dt('select.focus.ring.style')} ${dt('select.focus.ring.color')};\n outline-offset: ${dt('select.focus.ring.offset')};\n}\n\n.p-select.p-variant-filled {\n background: ${dt('select.filled.background')};\n}\n\n.p-select.p-variant-filled:not(.p-disabled):hover {\n background: ${dt('select.filled.hover.background')};\n}\n\n.p-select.p-variant-filled:not(.p-disabled).p-focus {\n background: ${dt('select.filled.focus.background')};\n}\n\n.p-select.p-invalid {\n border-color: ${dt('select.invalid.border.color')};\n}\n\n.p-select.p-disabled {\n opacity: 1;\n background: ${dt('select.disabled.background')};\n}\n\n.p-select-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n color: ${dt('select.clear.icon.color')};\n inset-inline-end: ${dt('select.dropdown.width')};\n}\n\n.p-select-dropdown {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n color: ${dt('select.dropdown.color')};\n width: ${dt('select.dropdown.width')};\n border-start-end-radius: ${dt('select.border.radius')};\n border-end-end-radius: ${dt('select.border.radius')};\n}\n\n.p-select-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n padding: ${dt('select.padding.y')} ${dt('select.padding.x')};\n text-overflow: ellipsis;\n cursor: pointer;\n color: ${dt('select.color')};\n background: transparent;\n border: 0 none;\n outline: 0 none;\n}\n\n.p-select-label.p-placeholder {\n color: ${dt('select.placeholder.color')};\n}\n\n.p-select.p-invalid .p-select-label.p-placeholder {\n color: ${dt('select.invalid.placeholder.color')};\n}\n\n.p-select:has(.p-select-clear-icon) .p-select-label {\n padding-inline-end: calc(1rem + ${dt('select.padding.x')});\n}\n\n.p-select.p-disabled .p-select-label {\n color: ${dt('select.disabled.color')};\n}\n\n.p-select-label-empty {\n overflow: hidden;\n opacity: 0;\n}\n\ninput.p-select-label {\n cursor: default;\n}\n\n.p-select .p-select-overlay {\n min-width: 100%;\n}\n\n.p-select-overlay {\n position: absolute;\n top: 0;\n left: 0;\n background: ${dt('select.overlay.background')};\n color: ${dt('select.overlay.color')};\n border: 1px solid ${dt('select.overlay.border.color')};\n border-radius: ${dt('select.overlay.border.radius')};\n box-shadow: ${dt('select.overlay.shadow')};\n}\n\n.p-select-header {\n padding: ${dt('select.list.header.padding')};\n}\n\n.p-select-filter {\n width: 100%;\n}\n\n.p-select-list-container {\n overflow: auto;\n}\n\n.p-select-option-group {\n cursor: auto;\n margin: 0;\n padding: ${dt('select.option.group.padding')};\n background: ${dt('select.option.group.background')};\n color: ${dt('select.option.group.color')};\n font-weight: ${dt('select.option.group.font.weight')};\n}\n\n.p-select-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n padding: ${dt('select.list.padding')};\n gap: ${dt('select.list.gap')};\n display: flex;\n flex-direction: column;\n}\n\n.p-select-option {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n display: flex;\n align-items: center;\n padding: ${dt('select.option.padding')};\n border: 0 none;\n color: ${dt('select.option.color')};\n background: transparent;\n transition: background ${dt('select.transition.duration')}, color ${dt('select.transition.duration')}, border-color ${dt('select.transition.duration')},\n box-shadow ${dt('select.transition.duration')}, outline-color ${dt('select.transition.duration')};\n border-radius: ${dt('select.option.border.radius')};\n}\n\n.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\n background: ${dt('select.option.focus.background')};\n color: ${dt('select.option.focus.color')};\n}\n\n.p-select-option.p-select-option-selected {\n background: ${dt('select.option.selected.background')};\n color: ${dt('select.option.selected.color')};\n}\n\n.p-select-option.p-select-option-selected.p-focus {\n background: ${dt('select.option.selected.focus.background')};\n color: ${dt('select.option.selected.focus.color')};\n}\n\n.p-select-option-check-icon {\n position: relative;\n margin-inline-start: ${dt('select.checkmark.gutter.start')};\n margin-inline-end: ${dt('select.checkmark.gutter.end')};\n color: ${dt('select.checkmark.color')};\n}\n\n.p-select-empty-message {\n padding: ${dt('select.empty.message.padding')};\n}\n\n.p-select-fluid {\n display: flex;\n}\n\n.p-select-sm .p-select-label {\n font-size: ${dt('select.sm.font.size')};\n padding-block: ${dt('select.sm.padding.y')};\n padding-inline: ${dt('select.sm.padding.x')};\n}\n\n.p-select-sm .p-select-dropdown .p-icon {\n font-size: ${dt('select.sm.font.size')};\n width: ${dt('select.sm.font.size')};\n height: ${dt('select.sm.font.size')};\n}\n\n.p-select-lg .p-select-label {\n font-size: ${dt('select.lg.font.size')};\n padding-block: ${dt('select.lg.padding.y')};\n padding-inline: ${dt('select.lg.padding.x')};\n}\n\n.p-select-lg .p-select-dropdown .p-icon {\n font-size: ${dt('select.lg.font.size')};\n width: ${dt('select.lg.font.size')};\n height: ${dt('select.lg.font.size')};\n}\n`;\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 theme,\n classes\n});\n"],"names":["theme","_ref","dt","concat","classes","root","_ref2","instance","props","state","disabled","$invalid","$variant","focused","$filled","overlayVisible","$fluid","size","label","_ref3","editable","placeholder","$slots","length","clearIcon","dropdown","loadingicon","dropdownIcon","overlay","header","pcFilter","listContainer","list","optionGroup","optionGroupLabel","option","_ref4","focusedOption","isSelected","highlightOnSelect","focusedOptionIndex","isOptionDisabled","optionLabel","optionCheckIcon","optionBlankIcon","emptyMessage","BaseStyle","extend","name"],"mappings":";;AAEA,IAAMA,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,EAAE,GAAAD,IAAA,CAAFC,EAAE;AAAA,EAAA,OAAA,mIAAA,CAAAC,MAAA,CAMDD,EAAE,CAAC,mBAAmB,CAAC,EAAAC,2BAAAA,CAAAA,CAAAA,MAAA,CACjBD,EAAE,CAAC,qBAAqB,CAAC,EAAA,gCAAA,CAAA,CAAAC,MAAA,CACpBD,EAAE,CAAC,4BAA4B,CAAC,EAAAC,UAAAA,CAAAA,CAAAA,MAAA,CAAWD,EAAE,CAAC,4BAA4B,CAAC,EAAA,iBAAA,CAAA,CAAAC,MAAA,CAAkBD,EAAE,CAAC,4BAA4B,CAAC,EAAA,2BAAA,CAAA,CAAAC,MAAA,CAClID,EAAE,CAAC,4BAA4B,CAAC,EAAAC,eAAAA,CAAAA,CAAAA,MAAA,CAAgBD,EAAE,CAAC,4BAA4B,CAAC,EAAA,wBAAA,CAAA,CAAAC,MAAA,CACnFD,EAAE,CAAC,sBAAsB,CAAC,EAAAC,sDAAAA,CAAAA,CAAAA,MAAA,CAE7BD,EAAE,CAAC,eAAe,CAAC,EAAAC,gEAAAA,CAAAA,CAAAA,MAAA,CAIjBD,EAAE,CAAC,2BAA2B,CAAC,EAAA,kEAAA,CAAA,CAAAC,MAAA,CAI/BD,EAAE,CAAC,2BAA2B,CA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AR7B,QAAQ;MAAEC,KAAK,GAAA4B,KAAA,CAAL5B,KAAK;MAAEC,KAAK,GAAA2B,KAAA,CAAL3B,KAAK;MAAE0B,OAAM,GAAAC,KAAA,CAAND,MAAM;MAAEE,aAAa,GAAAD,KAAA,CAAbC,aAAa;IAAA,OAAO,CAC3D,iBAAiB,EACjB;MACI,0BAA0B,EAAE9B,QAAQ,CAAC+B,UAAU,CAACH,OAAM,CAAC,IAAI3B,KAAK,CAAC+B,iBAAiB;AAClF,MAAA,SAAS,EAAE9B,KAAK,CAAC+B,kBAAkB,KAAKH,aAAa;AACrD,MAAA,YAAY,EAAE9B,QAAQ,CAACkC,gBAAgB,CAACN,OAAM;AAClD,KAAC,CACJ;AAAA,GAAA;AACDO,EAAAA,WAAW,EAAE,uBAAuB;AACpCC,EAAAA,eAAe,EAAE,4BAA4B;AAC7CC,EAAAA,eAAe,EAAE,4BAA4B;AAC7CC,EAAAA,YAAY,EAAE;AAClB,CAAC;AAED,kBAAeC,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE,QAAQ;AACdhD,EAAAA,KAAK,EAALA,KAAK;AACLI,EAAAA,OAAO,EAAPA;AACJ,CAAC,CAAC;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../src/select/style/SelectStyle.js"],"sourcesContent":["import BaseStyle from '@primevue/core/base/style';\n\nconst theme = ({ dt }) => `\n.p-select {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n background: ${dt('select.background')};\n border: 1px solid ${dt('select.border.color')};\n transition: background ${dt('select.transition.duration')}, color ${dt('select.transition.duration')}, border-color ${dt('select.transition.duration')},\n outline-color ${dt('select.transition.duration')}, box-shadow ${dt('select.transition.duration')};\n border-radius: ${dt('select.border.radius')};\n outline-color: transparent;\n box-shadow: ${dt('select.shadow')};\n}\n\n.p-select:not(.p-disabled):hover {\n border-color: ${dt('select.hover.border.color')};\n}\n\n.p-select:not(.p-disabled).p-focus {\n border-color: ${dt('select.focus.border.color')};\n box-shadow: ${dt('select.focus.ring.shadow')};\n outline: ${dt('select.focus.ring.width')} ${dt('select.focus.ring.style')} ${dt('select.focus.ring.color')};\n outline-offset: ${dt('select.focus.ring.offset')};\n}\n\n.p-select.p-variant-filled {\n background: ${dt('select.filled.background')};\n}\n\n.p-select.p-variant-filled:not(.p-disabled):hover {\n background: ${dt('select.filled.hover.background')};\n}\n\n.p-select.p-variant-filled:not(.p-disabled).p-focus {\n background: ${dt('select.filled.focus.background')};\n}\n\n.p-select.p-invalid {\n border-color: ${dt('select.invalid.border.color')};\n}\n\n.p-select.p-disabled {\n opacity: 1;\n background: ${dt('select.disabled.background')};\n}\n\n.p-select-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n color: ${dt('select.clear.icon.color')};\n inset-inline-end: ${dt('select.dropdown.width')};\n}\n\n.p-select-dropdown {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n color: ${dt('select.dropdown.color')};\n width: ${dt('select.dropdown.width')};\n border-start-end-radius: ${dt('select.border.radius')};\n border-end-end-radius: ${dt('select.border.radius')};\n}\n\n.p-select-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n padding: ${dt('select.padding.y')} ${dt('select.padding.x')};\n text-overflow: ellipsis;\n cursor: pointer;\n color: ${dt('select.color')};\n background: transparent;\n border: 0 none;\n outline: 0 none;\n}\n\n.p-select-label.p-placeholder {\n color: ${dt('select.placeholder.color')};\n}\n\n.p-select.p-invalid .p-select-label.p-placeholder {\n color: ${dt('select.invalid.placeholder.color')};\n}\n\n.p-select:has(.p-select-clear-icon) .p-select-label {\n padding-inline-end: calc(1rem + ${dt('select.padding.x')});\n}\n\n.p-select.p-disabled .p-select-label {\n color: ${dt('select.disabled.color')};\n}\n\n.p-select-label-empty {\n overflow: hidden;\n opacity: 0;\n}\n\ninput.p-select-label {\n cursor: default;\n}\n\n.p-select .p-select-overlay {\n min-width: 100%;\n}\n\n.p-select-overlay {\n position: absolute;\n top: 0;\n left: 0;\n background: ${dt('select.overlay.background')};\n color: ${dt('select.overlay.color')};\n border: 1px solid ${dt('select.overlay.border.color')};\n border-radius: ${dt('select.overlay.border.radius')};\n box-shadow: ${dt('select.overlay.shadow')};\n}\n\n.p-select-header {\n padding: ${dt('select.list.header.padding')};\n}\n\n.p-select-filter {\n width: 100%;\n}\n\n.p-select-list-container {\n overflow: auto;\n}\n\n.p-select-option-group {\n cursor: auto;\n margin: 0;\n padding: ${dt('select.option.group.padding')};\n background: ${dt('select.option.group.background')};\n color: ${dt('select.option.group.color')};\n font-weight: ${dt('select.option.group.font.weight')};\n}\n\n.p-select-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n padding: ${dt('select.list.padding')};\n gap: ${dt('select.list.gap')};\n display: flex;\n flex-direction: column;\n}\n\n.p-select-option {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n display: flex;\n align-items: center;\n padding: ${dt('select.option.padding')};\n border: 0 none;\n color: ${dt('select.option.color')};\n background: transparent;\n transition: background ${dt('select.transition.duration')}, color ${dt('select.transition.duration')}, border-color ${dt('select.transition.duration')},\n box-shadow ${dt('select.transition.duration')}, outline-color ${dt('select.transition.duration')};\n border-radius: ${dt('select.option.border.radius')};\n}\n\n.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\n background: ${dt('select.option.focus.background')};\n color: ${dt('select.option.focus.color')};\n}\n\n.p-select-option.p-select-option-selected {\n background: ${dt('select.option.selected.background')};\n color: ${dt('select.option.selected.color')};\n}\n\n.p-select-option.p-select-option-selected.p-focus {\n background: ${dt('select.option.selected.focus.background')};\n color: ${dt('select.option.selected.focus.color')};\n}\n\n.p-select-option-check-icon {\n position: relative;\n margin-inline-start: ${dt('select.checkmark.gutter.start')};\n margin-inline-end: ${dt('select.checkmark.gutter.end')};\n color: ${dt('select.checkmark.color')};\n}\n\n.p-select-empty-message {\n padding: ${dt('select.empty.message.padding')};\n}\n\n.p-select-fluid {\n display: flex;\n width: 100%;\n}\n\n.p-select-sm .p-select-label {\n font-size: ${dt('select.sm.font.size')};\n padding-block: ${dt('select.sm.padding.y')};\n padding-inline: ${dt('select.sm.padding.x')};\n}\n\n.p-select-sm .p-select-dropdown .p-icon {\n font-size: ${dt('select.sm.font.size')};\n width: ${dt('select.sm.font.size')};\n height: ${dt('select.sm.font.size')};\n}\n\n.p-select-lg .p-select-label {\n font-size: ${dt('select.lg.font.size')};\n padding-block: ${dt('select.lg.padding.y')};\n padding-inline: ${dt('select.lg.padding.x')};\n}\n\n.p-select-lg .p-select-dropdown .p-icon {\n font-size: ${dt('select.lg.font.size')};\n width: ${dt('select.lg.font.size')};\n height: ${dt('select.lg.font.size')};\n}\n`;\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 theme,\n classes\n});\n"],"names":["theme","_ref","dt","concat","classes","root","_ref2","instance","props","state","disabled","$invalid","$variant","focused","$filled","overlayVisible","$fluid","size","label","_ref3","editable","placeholder","$slots","length","clearIcon","dropdown","loadingicon","dropdownIcon","overlay","header","pcFilter","listContainer","list","optionGroup","optionGroupLabel","option","_ref4","focusedOption","isSelected","highlightOnSelect","focusedOptionIndex","isOptionDisabled","optionLabel","optionCheckIcon","optionBlankIcon","emptyMessage","BaseStyle","extend","name"],"mappings":";;AAEA,IAAMA,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,EAAE,GAAAD,IAAA,CAAFC,EAAE;AAAA,EAAA,OAAA,mIAAA,CAAAC,MAAA,CAMDD,EAAE,CAAC,mBAAmB,CAAC,EAAAC,2BAAAA,CAAAA,CAAAA,MAAA,CACjBD,EAAE,CAAC,qBAAqB,CAAC,EAAA,gCAAA,CAAA,CAAAC,MAAA,CACpBD,EAAE,CAAC,4BAA4B,CAAC,EAAAC,UAAAA,CAAAA,CAAAA,MAAA,CAAWD,EAAE,CAAC,4BAA4B,CAAC,EAAA,iBAAA,CAAA,CAAAC,MAAA,CAAkBD,EAAE,CAAC,4BAA4B,CAAC,EAAA,2BAAA,CAAA,CAAAC,MAAA,CAClID,EAAE,CAAC,4BAA4B,CAAC,EAAAC,eAAAA,CAAAA,CAAAA,MAAA,CAAgBD,EAAE,CAAC,4BAA4B,CAAC,EAAA,wBAAA,CAAA,CAAAC,MAAA,CACnFD,EAAE,CAAC,sBAAsB,C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xCC,EAAAA,IAAI,EAAE,eAAe;AACrBC,EAAAA,WAAW,EAAE,uBAAuB;AACpCC,EAAAA,gBAAgB,EAAE,6BAA6B;AAC/CC,EAAAA,MAAM,EAAE,SAARA,MAAMA,CAAAC,KAAA,EAAA;AAAA,IAAA,IAAK7B,QAAQ,GAAA6B,KAAA,CAAR7B,QAAQ;MAAEC,KAAK,GAAA4B,KAAA,CAAL5B,KAAK;MAAEC,KAAK,GAAA2B,KAAA,CAAL3B,KAAK;MAAE0B,OAAM,GAAAC,KAAA,CAAND,MAAM;MAAEE,aAAa,GAAAD,KAAA,CAAbC,aAAa;IAAA,OAAO,CAC3D,iBAAiB,EACjB;MACI,0BAA0B,EAAE9B,QAAQ,CAAC+B,UAAU,CAACH,OAAM,CAAC,IAAI3B,KAAK,CAAC+B,iBAAiB;AAClF,MAAA,SAAS,EAAE9B,KAAK,CAAC+B,kBAAkB,KAAKH,aAAa;AACrD,MAAA,YAAY,EAAE9B,QAAQ,CAACkC,gBAAgB,CAACN,OAAM;AAClD,KAAC,CACJ;AAAA,GAAA;AACDO,EAAAA,WAAW,EAAE,uBAAuB;AACpCC,EAAAA,eAAe,EAAE,4BAA4B;AAC7CC,EAAAA,eAAe,EAAE,4BAA4B;AAC7CC,EAAAA,YAAY,EAAE;AAClB,CAAC;AAED,kBAAeC,SAAS,CAACC,MAAM,CAAC;AAC5BC,EAAAA,IAAI,EAAE,QAAQ;AACdhD,EAAAA,KAAK,EAALA,KAAK;AACLI,EAAAA,OAAO,EAAPA;AACJ,CAAC,CAAC;;;;"}
@@ -8,6 +8,7 @@
8
8
  :disabled="disabled || isOptionDisabled(option)"
9
9
  :unstyled="unstyled"
10
10
  :size="size"
11
+ :readonly="!allowEmpty && isSelected(option)"
11
12
  @change="onOptionSelect($event, option, index)"
12
13
  :pt="ptm('pcToggleButton')"
13
14
  >
@@ -142,6 +142,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
142
142
  disabled: _ctx.disabled || $options.isOptionDisabled(option),
143
143
  unstyled: _ctx.unstyled,
144
144
  size: _ctx.size,
145
+ readonly: !_ctx.allowEmpty && $options.isSelected(option),
145
146
  onChange: function onChange($event) {
146
147
  return $options.onOptionSelect($event, option, index);
147
148
  },
@@ -161,7 +162,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
161
162
  })];
162
163
  }),
163
164
  key: "0"
164
- } : undefined]), 1032, ["modelValue", "onLabel", "offLabel", "disabled", "unstyled", "size", "onChange", "pt"]);
165
+ } : undefined]), 1032, ["modelValue", "onLabel", "offLabel", "disabled", "unstyled", "size", "readonly", "onChange", "pt"]);
165
166
  }), 128))], 16, _hoisted_1);
166
167
  }
167
168
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/selectbutton/BaseSelectButton.vue","../../src/selectbutton/SelectButton.vue","../../src/selectbutton/SelectButton.vue?vue&type=template&id=42427211&lang.js"],"sourcesContent":["<script>\nimport BaseEditableHolder from '@primevue/core/baseeditableholder';\nimport SelectButtonStyle from 'primevue/selectbutton/style';\n\nexport default {\n name: 'BaseSelectButton',\n extends: BaseEditableHolder,\n props: {\n options: Array,\n optionLabel: null,\n optionValue: null,\n optionDisabled: null,\n multiple: Boolean,\n allowEmpty: {\n type: Boolean,\n default: true\n },\n dataKey: null,\n ariaLabelledby: {\n type: String,\n default: null\n },\n size: {\n type: String,\n default: null\n }\n },\n style: SelectButtonStyle,\n provide() {\n return {\n $pcSelectButton: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <div :class=\"cx('root')\" role=\"group\" :aria-labelledby=\"ariaLabelledby\" v-bind=\"ptmi('root')\">\n <template v-for=\"(option, index) of options\" :key=\"getOptionRenderKey(option)\">\n <ToggleButton\n :modelValue=\"isSelected(option)\"\n :onLabel=\"getOptionLabel(option)\"\n :offLabel=\"getOptionLabel(option)\"\n :disabled=\"disabled || isOptionDisabled(option)\"\n :unstyled=\"unstyled\"\n :size=\"size\"\n @change=\"onOptionSelect($event, option, index)\"\n :pt=\"ptm('pcToggleButton')\"\n >\n <template v-if=\"$slots.option\" #default>\n <slot name=\"option\" :option=\"option\" :index=\"index\">\n <span v-bind=\"ptm('pcToggleButton')['label']\">{{ getOptionLabel(option) }}</span>\n </slot>\n </template>\n </ToggleButton>\n </template>\n </div>\n</template>\n\n<script>\nimport { equals, resolveFieldData } from '@primeuix/utils/object';\nimport Ripple from 'primevue/ripple';\nimport ToggleButton from 'primevue/togglebutton';\nimport BaseSelectButton from './BaseSelectButton.vue';\n\nexport default {\n name: 'SelectButton',\n extends: BaseSelectButton,\n inheritAttrs: false,\n emits: ['change'],\n methods: {\n getOptionLabel(option) {\n return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option;\n },\n getOptionValue(option) {\n return this.optionValue ? resolveFieldData(option, this.optionValue) : option;\n },\n getOptionRenderKey(option) {\n return this.dataKey ? resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);\n },\n isOptionDisabled(option) {\n return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : false;\n },\n onOptionSelect(event, option, index) {\n if (this.disabled || this.isOptionDisabled(option)) {\n return;\n }\n\n let selected = this.isSelected(option);\n\n if (selected && !this.allowEmpty) {\n return;\n }\n\n let optionValue = this.getOptionValue(option);\n let newValue;\n\n if (this.multiple) {\n if (selected) newValue = this.d_value.filter((val) => !equals(val, optionValue, this.equalityKey));\n else newValue = this.d_value ? [...this.d_value, optionValue] : [optionValue];\n } else {\n newValue = selected ? null : optionValue;\n }\n\n this.writeValue(newValue, event);\n this.$emit('change', { event: event, value: newValue });\n },\n isSelected(option) {\n let selected = false;\n let optionValue = this.getOptionValue(option);\n\n if (this.multiple) {\n if (this.d_value) {\n for (let val of this.d_value) {\n if (equals(val, optionValue, this.equalityKey)) {\n selected = true;\n break;\n }\n }\n }\n } else {\n selected = equals(this.d_value, optionValue, this.equalityKey);\n }\n\n return selected;\n }\n },\n computed: {\n equalityKey() {\n return this.optionValue ? null : this.dataKey;\n }\n },\n directives: {\n ripple: Ripple\n },\n components: {\n ToggleButton\n }\n};\n</script>\n","<template>\n <div :class=\"cx('root')\" role=\"group\" :aria-labelledby=\"ariaLabelledby\" v-bind=\"ptmi('root')\">\n <template v-for=\"(option, index) of options\" :key=\"getOptionRenderKey(option)\">\n <ToggleButton\n :modelValue=\"isSelected(option)\"\n :onLabel=\"getOptionLabel(option)\"\n :offLabel=\"getOptionLabel(option)\"\n :disabled=\"disabled || isOptionDisabled(option)\"\n :unstyled=\"unstyled\"\n :size=\"size\"\n @change=\"onOptionSelect($event, option, index)\"\n :pt=\"ptm('pcToggleButton')\"\n >\n <template v-if=\"$slots.option\" #default>\n <slot name=\"option\" :option=\"option\" :index=\"index\">\n <span v-bind=\"ptm('pcToggleButton')['label']\">{{ getOptionLabel(option) }}</span>\n </slot>\n </template>\n </ToggleButton>\n </template>\n </div>\n</template>\n\n<script>\nimport { equals, resolveFieldData } from '@primeuix/utils/object';\nimport Ripple from 'primevue/ripple';\nimport ToggleButton from 'primevue/togglebutton';\nimport BaseSelectButton from './BaseSelectButton.vue';\n\nexport default {\n name: 'SelectButton',\n extends: BaseSelectButton,\n inheritAttrs: false,\n emits: ['change'],\n methods: {\n getOptionLabel(option) {\n return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option;\n },\n getOptionValue(option) {\n return this.optionValue ? resolveFieldData(option, this.optionValue) : option;\n },\n getOptionRenderKey(option) {\n return this.dataKey ? resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);\n },\n isOptionDisabled(option) {\n return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : false;\n },\n onOptionSelect(event, option, index) {\n if (this.disabled || this.isOptionDisabled(option)) {\n return;\n }\n\n let selected = this.isSelected(option);\n\n if (selected && !this.allowEmpty) {\n return;\n }\n\n let optionValue = this.getOptionValue(option);\n let newValue;\n\n if (this.multiple) {\n if (selected) newValue = this.d_value.filter((val) => !equals(val, optionValue, this.equalityKey));\n else newValue = this.d_value ? [...this.d_value, optionValue] : [optionValue];\n } else {\n newValue = selected ? null : optionValue;\n }\n\n this.writeValue(newValue, event);\n this.$emit('change', { event: event, value: newValue });\n },\n isSelected(option) {\n let selected = false;\n let optionValue = this.getOptionValue(option);\n\n if (this.multiple) {\n if (this.d_value) {\n for (let val of this.d_value) {\n if (equals(val, optionValue, this.equalityKey)) {\n selected = true;\n break;\n }\n }\n }\n } else {\n selected = equals(this.d_value, optionValue, this.equalityKey);\n }\n\n return selected;\n }\n },\n computed: {\n equalityKey() {\n return this.optionValue ? null : this.dataKey;\n }\n },\n directives: {\n ripple: Ripple\n },\n components: {\n ToggleButton\n }\n};\n</script>\n"],"names":["name","BaseEditableHolder","props","options","Array","optionLabel","optionValue","optionDisabled","multiple","Boolean","allowEmpty","type","dataKey","ariaLabelledby","String","size","style","SelectButtonStyle","provide","$pcSelectButton","$parentInstance","BaseSelectButton","inheritAttrs","emits","methods","getOptionLabel","option","resolveFieldData","getOptionValue","getOptionRenderKey","isOptionDisabled","onOptionSelect","event","index","_this","disabled","selected","isSelected","newValue","d_value","filter","val","equals","equalityKey","concat","_toConsumableArray","writeValue","$emit","value","_iterator","_createForOfIteratorHelper","_step","s","n","done","err","e","f","computed","directives","ripple","Ripple","components","ToggleButton","_openBlock","_createElementBlock","_mergeProps","_ctx","cx","role","ptmi","_Fragment","_renderList","_createBlock","_component_ToggleButton","key","$options","modelValue","onLabel","offLabel","unstyled","onChange","$event","pt","ptm","$slots","_renderSlot","_createElementVNode","ref_for","_toDisplayString"],"mappings":";;;;;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,kBAAkB;AACxB,EAAA,SAAA,EAASC,kBAAkB;AAC3BC,EAAAA,KAAK,EAAE;AACHC,IAAAA,OAAO,EAAEC,KAAK;AACdC,IAAAA,WAAW,EAAE,IAAI;AACjBC,IAAAA,WAAW,EAAE,IAAI;AACjBC,IAAAA,cAAc,EAAE,IAAI;AACpBC,IAAAA,QAAQ,EAAEC,OAAO;AACjBC,IAAAA,UAAU,EAAE;AACRC,MAAAA,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A;AAFe3D,UAAAA,MAAM,EAAEA,MAAM;AAAGO,UAAAA,KAAK,EAAEA;WAA7C,YAAA;AAAA,UAAA,OAEM,CADFsD,kBAAA,CAAgF,QAAhFrB,UAAgF,CAAA;AAAAsB,YAAAA,OAAA,EAAA;WAAA,EAAlErB,QAAG,CAAgC,gBAAA,CAAA,CAAA,OAAA,CAAA,CAAA,EAAAsB,eAAA,CAAAb,QAAA,CAAAnD,cAAc,CAACC,MAAM,CAAA,CAAA,EAAA,EAAA,CAAA;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../src/selectbutton/BaseSelectButton.vue","../../src/selectbutton/SelectButton.vue","../../src/selectbutton/SelectButton.vue?vue&type=template&id=5eb80134&lang.js"],"sourcesContent":["<script>\nimport BaseEditableHolder from '@primevue/core/baseeditableholder';\nimport SelectButtonStyle from 'primevue/selectbutton/style';\n\nexport default {\n name: 'BaseSelectButton',\n extends: BaseEditableHolder,\n props: {\n options: Array,\n optionLabel: null,\n optionValue: null,\n optionDisabled: null,\n multiple: Boolean,\n allowEmpty: {\n type: Boolean,\n default: true\n },\n dataKey: null,\n ariaLabelledby: {\n type: String,\n default: null\n },\n size: {\n type: String,\n default: null\n }\n },\n style: SelectButtonStyle,\n provide() {\n return {\n $pcSelectButton: this,\n $parentInstance: this\n };\n }\n};\n</script>\n","<template>\n <div :class=\"cx('root')\" role=\"group\" :aria-labelledby=\"ariaLabelledby\" v-bind=\"ptmi('root')\">\n <template v-for=\"(option, index) of options\" :key=\"getOptionRenderKey(option)\">\n <ToggleButton\n :modelValue=\"isSelected(option)\"\n :onLabel=\"getOptionLabel(option)\"\n :offLabel=\"getOptionLabel(option)\"\n :disabled=\"disabled || isOptionDisabled(option)\"\n :unstyled=\"unstyled\"\n :size=\"size\"\n :readonly=\"!allowEmpty && isSelected(option)\"\n @change=\"onOptionSelect($event, option, index)\"\n :pt=\"ptm('pcToggleButton')\"\n >\n <template v-if=\"$slots.option\" #default>\n <slot name=\"option\" :option=\"option\" :index=\"index\">\n <span v-bind=\"ptm('pcToggleButton')['label']\">{{ getOptionLabel(option) }}</span>\n </slot>\n </template>\n </ToggleButton>\n </template>\n </div>\n</template>\n\n<script>\nimport { equals, resolveFieldData } from '@primeuix/utils/object';\nimport Ripple from 'primevue/ripple';\nimport ToggleButton from 'primevue/togglebutton';\nimport BaseSelectButton from './BaseSelectButton.vue';\n\nexport default {\n name: 'SelectButton',\n extends: BaseSelectButton,\n inheritAttrs: false,\n emits: ['change'],\n methods: {\n getOptionLabel(option) {\n return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option;\n },\n getOptionValue(option) {\n return this.optionValue ? resolveFieldData(option, this.optionValue) : option;\n },\n getOptionRenderKey(option) {\n return this.dataKey ? resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);\n },\n isOptionDisabled(option) {\n return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : false;\n },\n onOptionSelect(event, option, index) {\n if (this.disabled || this.isOptionDisabled(option)) {\n return;\n }\n\n let selected = this.isSelected(option);\n\n if (selected && !this.allowEmpty) {\n return;\n }\n\n let optionValue = this.getOptionValue(option);\n let newValue;\n\n if (this.multiple) {\n if (selected) newValue = this.d_value.filter((val) => !equals(val, optionValue, this.equalityKey));\n else newValue = this.d_value ? [...this.d_value, optionValue] : [optionValue];\n } else {\n newValue = selected ? null : optionValue;\n }\n\n this.writeValue(newValue, event);\n this.$emit('change', { event: event, value: newValue });\n },\n isSelected(option) {\n let selected = false;\n let optionValue = this.getOptionValue(option);\n\n if (this.multiple) {\n if (this.d_value) {\n for (let val of this.d_value) {\n if (equals(val, optionValue, this.equalityKey)) {\n selected = true;\n break;\n }\n }\n }\n } else {\n selected = equals(this.d_value, optionValue, this.equalityKey);\n }\n\n return selected;\n }\n },\n computed: {\n equalityKey() {\n return this.optionValue ? null : this.dataKey;\n }\n },\n directives: {\n ripple: Ripple\n },\n components: {\n ToggleButton\n }\n};\n</script>\n","<template>\n <div :class=\"cx('root')\" role=\"group\" :aria-labelledby=\"ariaLabelledby\" v-bind=\"ptmi('root')\">\n <template v-for=\"(option, index) of options\" :key=\"getOptionRenderKey(option)\">\n <ToggleButton\n :modelValue=\"isSelected(option)\"\n :onLabel=\"getOptionLabel(option)\"\n :offLabel=\"getOptionLabel(option)\"\n :disabled=\"disabled || isOptionDisabled(option)\"\n :unstyled=\"unstyled\"\n :size=\"size\"\n :readonly=\"!allowEmpty && isSelected(option)\"\n @change=\"onOptionSelect($event, option, index)\"\n :pt=\"ptm('pcToggleButton')\"\n >\n <template v-if=\"$slots.option\" #default>\n <slot name=\"option\" :option=\"option\" :index=\"index\">\n <span v-bind=\"ptm('pcToggleButton')['label']\">{{ getOptionLabel(option) }}</span>\n </slot>\n </template>\n </ToggleButton>\n </template>\n </div>\n</template>\n\n<script>\nimport { equals, resolveFieldData } from '@primeuix/utils/object';\nimport Ripple from 'primevue/ripple';\nimport ToggleButton from 'primevue/togglebutton';\nimport BaseSelectButton from './BaseSelectButton.vue';\n\nexport default {\n name: 'SelectButton',\n extends: BaseSelectButton,\n inheritAttrs: false,\n emits: ['change'],\n methods: {\n getOptionLabel(option) {\n return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option;\n },\n getOptionValue(option) {\n return this.optionValue ? resolveFieldData(option, this.optionValue) : option;\n },\n getOptionRenderKey(option) {\n return this.dataKey ? resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);\n },\n isOptionDisabled(option) {\n return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : false;\n },\n onOptionSelect(event, option, index) {\n if (this.disabled || this.isOptionDisabled(option)) {\n return;\n }\n\n let selected = this.isSelected(option);\n\n if (selected && !this.allowEmpty) {\n return;\n }\n\n let optionValue = this.getOptionValue(option);\n let newValue;\n\n if (this.multiple) {\n if (selected) newValue = this.d_value.filter((val) => !equals(val, optionValue, this.equalityKey));\n else newValue = this.d_value ? [...this.d_value, optionValue] : [optionValue];\n } else {\n newValue = selected ? null : optionValue;\n }\n\n this.writeValue(newValue, event);\n this.$emit('change', { event: event, value: newValue });\n },\n isSelected(option) {\n let selected = false;\n let optionValue = this.getOptionValue(option);\n\n if (this.multiple) {\n if (this.d_value) {\n for (let val of this.d_value) {\n if (equals(val, optionValue, this.equalityKey)) {\n selected = true;\n break;\n }\n }\n }\n } else {\n selected = equals(this.d_value, optionValue, this.equalityKey);\n }\n\n return selected;\n }\n },\n computed: {\n equalityKey() {\n return this.optionValue ? null : this.dataKey;\n }\n },\n directives: {\n ripple: Ripple\n },\n components: {\n ToggleButton\n }\n};\n</script>\n"],"names":["name","BaseEditableHolder","props","options","Array","optionLabel","optionValue","optionDisabled","multiple","Boolean","allowEmpty","type","dataKey","ariaLabelledby","String","size","style","SelectButtonStyle","provide","$pcSelectButton","$parentInstance","BaseSelectButton","inheritAttrs","emits","methods","getOptionLabel","option","resolveFieldData","getOptionValue","getOptionRenderKey","isOptionDisabled","onOptionSelect","event","index","_this","disabled","selected","isSelected","newValue","d_value","filter","val","equals","equalityKey","concat","_toConsumableArray","writeValue","$emit","value","_iterator","_createForOfIteratorHelper","_step","s","n","done","err","e","f","computed","directives","ripple","Ripple","components","ToggleButton","_openBlock","_createElementBlock","_mergeProps","_ctx","cx","role","ptmi","_Fragment","_renderList","_createBlock","_component_ToggleButton","key","$options","modelValue","onLabel","offLabel","unstyled","readonly","onChange","$event","pt","ptm","$slots","_renderSlot","_createElementVNode","ref_for","_toDisplayString"],"mappings":";;;;;;;AAIA,eAAe;AACXA,EAAAA,IAAI,EAAE,kBAAkB;AACxB,EAAA,SAAA,EAASC,kBAAkB;AAC3BC,EAAAA,KAAK,EAAE;AACHC,IAAAA,OAAO,EAAEC,KAAK;AACdC,IAAAA,WAAW,EAAE,IAAI;AACjBC,IAAAA,WAAW,EAAE,IAAI;AACjBC,IAAAA,cAAc,EAAE,IAAI;AACpBC,IAAAA,QAAQ,EAAEC,OAAO;AACjBC,IAAAA,UAAU,EAAE;AACRC,MAAAA,IAAI,EAAEF,OAAO;MACb,SAAS,EA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,OAEM,CAFN6D,UAEM,CAAApB,IAAA,CAAAmB,MAAA,EAAA,QAAA,EAAA;AAFe5D,UAAAA,MAAM,EAAEA,MAAM;AAAGO,UAAAA,KAAK,EAAEA;WAA7C,YAAA;AAAA,UAAA,OAEM,CADFuD,kBAAA,CAAgF,QAAhFtB,UAAgF,CAAA;AAAAuB,YAAAA,OAAA,EAAA;WAAA,EAAlEtB,QAAG,CAAgC,gBAAA,CAAA,CAAA,OAAA,CAAA,CAAA,EAAAuB,eAAA,CAAAd,QAAA,CAAAnD,cAAc,CAACC,MAAM,CAAA,CAAA,EAAA,EAAA,CAAA;;;;;;;;;;;;"}
@@ -2,7 +2,7 @@ import BaseStyle from '@primevue/core/base/style';
2
2
 
3
3
  var theme = function theme(_ref) {
4
4
  var dt = _ref.dt;
5
- return "\n.p-slider {\n position: relative;\n background: ".concat(dt('slider.track.background'), ";\n border-radius: ").concat(dt('slider.track.border.radius'), ";\n}\n\n.p-slider-handle {\n cursor: grab;\n touch-action: none;\n display: flex;\n justify-content: center;\n align-items: center;\n height: ").concat(dt('slider.handle.height'), ";\n width: ").concat(dt('slider.handle.width'), ";\n background: ").concat(dt('slider.handle.background'), ";\n border-radius: ").concat(dt('slider.handle.border.radius'), ";\n transition: background ").concat(dt('slider.transition.duration'), ", color ").concat(dt('slider.transition.duration'), ", border-color ").concat(dt('slider.transition.duration'), ", box-shadow ").concat(dt('slider.transition.duration'), ", outline-color ").concat(dt('slider.transition.duration'), ";\n outline-color: transparent;\n}\n\n.p-slider-handle::before {\n content: \"\";\n width: ").concat(dt('slider.handle.content.width'), ";\n height: ").concat(dt('slider.handle.content.height'), ";\n display: block;\n background: ").concat(dt('slider.handle.content.background'), ";\n border-radius: ").concat(dt('slider.handle.content.border.radius'), ";\n box-shadow: ").concat(dt('slider.handle.content.shadow'), ";\n transition: background ").concat(dt('slider.transition.duration'), ";\n}\n\n.p-slider:not(.p-disabled) .p-slider-handle:hover {\n background: ").concat(dt('slider.handle.hover.background'), ";\n}\n\n.p-slider:not(.p-disabled) .p-slider-handle:hover::before {\n background: ").concat(dt('slider.handle.content.hover.background'), ";\n}\n\n.p-slider-handle:focus-visible {\n box-shadow: ").concat(dt('slider.handle.focus.ring.shadow'), ";\n outline: ").concat(dt('slider.handle.focus.ring.width'), " ").concat(dt('slider.handle.focus.ring.style'), " ").concat(dt('slider.handle.focus.ring.color'), ";\n outline-offset: ").concat(dt('slider.handle.focus.ring.offset'), ";\n}\n\n.p-slider-range {\n display: block;\n background: ").concat(dt('slider.range.background'), ";\n border-radius: ").concat(dt('slider.border.radius'), ";\n}\n\n.p-slider.p-slider-horizontal {\n height: ").concat(dt('slider.track.size'), ";\n}\n\n.p-slider-horizontal .p-slider-range {\n inset-block-start: 0;\n inset-inline-start: 0;\n height: 100%;\n}\n\n.p-slider-horizontal .p-slider-handle {\n inset-block-start: 50%;\n margin-block-start: calc(-1 * calc(").concat(dt('slider.handle.height'), " / 2));\n margin-inline-start: calc(-1 * calc(").concat(dt('slider.handle.width'), " / 2));\n}\n\n.p-slider-vertical {\n min-height: 100px;\n width: ").concat(dt('slider.track.size'), ";\n}\n\n.p-slider-vertical .p-slider-handle {\n inset-inline-start: 50%;\n margin-inline-start: calc(-1 * calc(").concat(dt('slider.handle.width'), " / 2));\n margin-block-end: calc(-1 * calc(").concat(dt('slider.handle.height'), " / 2));\n}\n\n.p-slider-vertical .p-slider-range {\n inset-block-end: 0;\n inset-inline-start: 0;\n width: 100%;\n}\n");
5
+ return "\n.p-slider {\n position: relative;\n background: ".concat(dt('slider.track.background'), ";\n border-radius: ").concat(dt('slider.track.border.radius'), ";\n}\n\n.p-slider-handle {\n cursor: grab;\n touch-action: none;\n user-select: none;\n display: flex;\n justify-content: center;\n align-items: center;\n height: ").concat(dt('slider.handle.height'), ";\n width: ").concat(dt('slider.handle.width'), ";\n background: ").concat(dt('slider.handle.background'), ";\n border-radius: ").concat(dt('slider.handle.border.radius'), ";\n transition: background ").concat(dt('slider.transition.duration'), ", color ").concat(dt('slider.transition.duration'), ", border-color ").concat(dt('slider.transition.duration'), ", box-shadow ").concat(dt('slider.transition.duration'), ", outline-color ").concat(dt('slider.transition.duration'), ";\n outline-color: transparent;\n}\n\n.p-slider-handle::before {\n content: \"\";\n width: ").concat(dt('slider.handle.content.width'), ";\n height: ").concat(dt('slider.handle.content.height'), ";\n display: block;\n background: ").concat(dt('slider.handle.content.background'), ";\n border-radius: ").concat(dt('slider.handle.content.border.radius'), ";\n box-shadow: ").concat(dt('slider.handle.content.shadow'), ";\n transition: background ").concat(dt('slider.transition.duration'), ";\n}\n\n.p-slider:not(.p-disabled) .p-slider-handle:hover {\n background: ").concat(dt('slider.handle.hover.background'), ";\n}\n\n.p-slider:not(.p-disabled) .p-slider-handle:hover::before {\n background: ").concat(dt('slider.handle.content.hover.background'), ";\n}\n\n.p-slider-handle:focus-visible {\n box-shadow: ").concat(dt('slider.handle.focus.ring.shadow'), ";\n outline: ").concat(dt('slider.handle.focus.ring.width'), " ").concat(dt('slider.handle.focus.ring.style'), " ").concat(dt('slider.handle.focus.ring.color'), ";\n outline-offset: ").concat(dt('slider.handle.focus.ring.offset'), ";\n}\n\n.p-slider-range {\n display: block;\n background: ").concat(dt('slider.range.background'), ";\n border-radius: ").concat(dt('slider.border.radius'), ";\n}\n\n.p-slider.p-slider-horizontal {\n height: ").concat(dt('slider.track.size'), ";\n}\n\n.p-slider-horizontal .p-slider-range {\n inset-block-start: 0;\n inset-inline-start: 0;\n height: 100%;\n}\n\n.p-slider-horizontal .p-slider-handle {\n inset-block-start: 50%;\n margin-block-start: calc(-1 * calc(").concat(dt('slider.handle.height'), " / 2));\n margin-inline-start: calc(-1 * calc(").concat(dt('slider.handle.width'), " / 2));\n}\n\n.p-slider-vertical {\n min-height: 100px;\n width: ").concat(dt('slider.track.size'), ";\n}\n\n.p-slider-vertical .p-slider-handle {\n inset-inline-start: 50%;\n margin-inline-start: calc(-1 * calc(").concat(dt('slider.handle.width'), " / 2));\n margin-block-end: calc(-1 * calc(").concat(dt('slider.handle.height'), " / 2));\n}\n\n.p-slider-vertical .p-slider-range {\n inset-block-end: 0;\n inset-inline-start: 0;\n width: 100%;\n}\n");
6
6
  };
7
7
  var inlineStyles = {
8
8
  handle: {