primevue 4.0.1 → 4.0.2

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 (122) hide show
  1. package/autocomplete/AutoComplete.vue +10 -3
  2. package/autocomplete/BaseAutoComplete.vue +1 -1
  3. package/autocomplete/index.d.ts +2 -2
  4. package/autocomplete/index.mjs +12 -3
  5. package/autocomplete/index.mjs.map +1 -1
  6. package/autocomplete/style/index.mjs +1 -1
  7. package/autocomplete/style/index.mjs.map +1 -1
  8. package/button/BaseButton.vue +1 -1
  9. package/button/Button.vue +7 -0
  10. package/button/index.d.ts +2 -2
  11. package/button/index.mjs +10 -1
  12. package/button/index.mjs.map +1 -1
  13. package/button/style/index.mjs +1 -1
  14. package/button/style/index.mjs.map +1 -1
  15. package/cascadeselect/BaseCascadeSelect.vue +1 -1
  16. package/cascadeselect/CascadeSelect.vue +6 -0
  17. package/cascadeselect/index.d.ts +2 -2
  18. package/cascadeselect/index.mjs +9 -1
  19. package/cascadeselect/index.mjs.map +1 -1
  20. package/cascadeselect/style/index.mjs +1 -1
  21. package/cascadeselect/style/index.mjs.map +1 -1
  22. package/colorpicker/ColorPicker.vue +1 -1
  23. package/colorpicker/index.d.ts +4 -0
  24. package/colorpicker/index.mjs +2 -1
  25. package/colorpicker/index.mjs.map +1 -1
  26. package/confirmdialog/ConfirmDialog.vue +4 -7
  27. package/confirmdialog/index.mjs +6 -12
  28. package/confirmdialog/index.mjs.map +1 -1
  29. package/confirmpopup/ConfirmPopup.vue +7 -10
  30. package/confirmpopup/index.mjs +8 -14
  31. package/confirmpopup/index.mjs.map +1 -1
  32. package/datatable/HeaderCheckbox.vue +1 -1
  33. package/datatable/index.mjs +1 -1
  34. package/datatable/index.mjs.map +1 -1
  35. package/datepicker/BaseDatePicker.vue +1 -1
  36. package/datepicker/DatePicker.vue +8 -1
  37. package/datepicker/index.d.ts +2 -2
  38. package/datepicker/index.mjs +12 -3
  39. package/datepicker/index.mjs.map +1 -1
  40. package/datepicker/style/index.mjs +4 -3
  41. package/datepicker/style/index.mjs.map +1 -1
  42. package/floatlabel/index.d.ts +1 -1
  43. package/fluid/BaseFluid.vue +16 -0
  44. package/fluid/Fluid.vue +15 -0
  45. package/fluid/index.d.ts +130 -0
  46. package/fluid/index.mjs +32 -0
  47. package/fluid/index.mjs.map +1 -0
  48. package/fluid/package.json +11 -0
  49. package/fluid/style/index.d.ts +19 -0
  50. package/fluid/style/index.mjs +12 -0
  51. package/fluid/style/index.mjs.map +1 -0
  52. package/fluid/style/package.json +6 -0
  53. package/inputgroup/BaseInputGroup.vue +1 -1
  54. package/inputgroup/InputGroup.vue +10 -1
  55. package/inputgroup/index.d.ts +2 -2
  56. package/inputgroup/index.mjs +13 -2
  57. package/inputgroup/index.mjs.map +1 -1
  58. package/inputgroup/style/index.mjs +2 -2
  59. package/inputgroup/style/index.mjs.map +1 -1
  60. package/inputmask/index.d.ts +2 -2
  61. package/inputnumber/BaseInputNumber.vue +1 -1
  62. package/inputnumber/InputNumber.vue +8 -2
  63. package/inputnumber/index.d.ts +2 -2
  64. package/inputnumber/index.mjs +10 -2
  65. package/inputnumber/index.mjs.map +1 -1
  66. package/inputnumber/style/index.mjs +1 -1
  67. package/inputnumber/style/index.mjs.map +1 -1
  68. package/inputtext/BaseInputText.vue +1 -1
  69. package/inputtext/InputText.vue +7 -0
  70. package/inputtext/index.d.ts +2 -2
  71. package/inputtext/index.mjs +10 -1
  72. package/inputtext/index.mjs.map +1 -1
  73. package/inputtext/style/index.mjs +1 -1
  74. package/inputtext/style/index.mjs.map +1 -1
  75. package/multiselect/BaseMultiSelect.vue +1 -1
  76. package/multiselect/MultiSelect.vue +7 -1
  77. package/multiselect/index.d.ts +2 -2
  78. package/multiselect/index.mjs +10 -2
  79. package/multiselect/index.mjs.map +1 -1
  80. package/multiselect/style/index.mjs +1 -1
  81. package/multiselect/style/index.mjs.map +1 -1
  82. package/package.json +3 -3
  83. package/password/BasePassword.vue +1 -1
  84. package/password/Password.vue +7 -0
  85. package/password/index.d.ts +2 -2
  86. package/password/index.mjs +10 -1
  87. package/password/index.mjs.map +1 -1
  88. package/password/style/index.mjs +2 -3
  89. package/password/style/index.mjs.map +1 -1
  90. package/select/BaseSelect.vue +1 -1
  91. package/select/Select.vue +7 -1
  92. package/select/index.d.ts +2 -2
  93. package/select/index.mjs +10 -2
  94. package/select/index.mjs.map +1 -1
  95. package/select/style/index.mjs +1 -1
  96. package/select/style/index.mjs.map +1 -1
  97. package/splitbutton/BaseSplitButton.vue +1 -1
  98. package/splitbutton/SplitButton.vue +7 -0
  99. package/splitbutton/index.d.ts +2 -2
  100. package/splitbutton/index.mjs +10 -1
  101. package/splitbutton/index.mjs.map +1 -1
  102. package/splitbutton/style/index.mjs +3 -2
  103. package/splitbutton/style/index.mjs.map +1 -1
  104. package/textarea/BaseTextarea.vue +1 -1
  105. package/textarea/Textarea.vue +7 -0
  106. package/textarea/index.d.ts +2 -2
  107. package/textarea/index.mjs +10 -1
  108. package/textarea/index.mjs.map +1 -1
  109. package/textarea/style/index.mjs +1 -1
  110. package/textarea/style/index.mjs.map +1 -1
  111. package/toast/Toast.vue +2 -1
  112. package/toast/index.mjs +3 -2
  113. package/toast/index.mjs.map +1 -1
  114. package/treeselect/BaseTreeSelect.vue +1 -1
  115. package/treeselect/TreeSelect.vue +9 -2
  116. package/treeselect/index.d.ts +2 -2
  117. package/treeselect/index.mjs +11 -2
  118. package/treeselect/index.mjs.map +1 -1
  119. package/treeselect/style/index.mjs +1 -1
  120. package/treeselect/style/index.mjs.map +1 -1
  121. package/umd/primevue.min.js +1 -1
  122. package/web-types.json +1 -1
@@ -10,6 +10,7 @@
10
10
  :value="inputValue"
11
11
  :placeholder="placeholder"
12
12
  :tabindex="!disabled ? tabindex : -1"
13
+ :fluid="hasFluid"
13
14
  :disabled="disabled"
14
15
  :invalid="invalid"
15
16
  :variant="variant"
@@ -180,10 +181,10 @@
180
181
  </template>
181
182
 
182
183
  <script>
183
- import { ConnectedOverlayScrollHandler, UniqueComponentId } from '@primevue/core/utils';
184
- import { focus, addStyle, relativePosition, getOuterWidth, absolutePosition, isTouchDevice, findSingle } from '@primeuix/utils/dom';
185
- import { resolveFieldData, isEmpty, isNotEmpty, equals, findLastIndex } from '@primeuix/utils/object';
184
+ import { absolutePosition, addStyle, findSingle, focus, getOuterWidth, isTouchDevice, relativePosition } from '@primeuix/utils/dom';
185
+ import { equals, findLastIndex, isEmpty, isNotEmpty, resolveFieldData } from '@primeuix/utils/object';
186
186
  import { ZIndex } from '@primeuix/utils/zindex';
187
+ import { ConnectedOverlayScrollHandler, UniqueComponentId } from '@primevue/core/utils';
187
188
  import ChevronDownIcon from '@primevue/icons/chevrondown';
188
189
  import SpinnerIcon from '@primevue/icons/spinner';
189
190
  import Chip from 'primevue/chip';
@@ -199,6 +200,9 @@ export default {
199
200
  extends: BaseAutoComplete,
200
201
  inheritAttrs: false,
201
202
  emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'option-select', 'option-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
203
+ inject: {
204
+ $pcFluid: { default: null }
205
+ },
202
206
  outsideClickListener: null,
203
207
  resizeListener: null,
204
208
  scrollHandler: null,
@@ -973,6 +977,9 @@ export default {
973
977
  },
974
978
  panelId() {
975
979
  return this.id + '_panel';
980
+ },
981
+ hasFluid() {
982
+ return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;
976
983
  }
977
984
  },
978
985
  components: {
@@ -181,7 +181,7 @@ export default {
181
181
  },
182
182
  fluid: {
183
183
  type: Boolean,
184
- default: false
184
+ default: null
185
185
  }
186
186
  },
187
187
  style: AutoCompleteStyle,
@@ -503,9 +503,9 @@ export interface AutoCompleteProps {
503
503
  tabindex?: number | string | undefined;
504
504
  /**
505
505
  * Spans 100% width of the container when enabled.
506
- * @defaultValue false
506
+ * @defaultValue null
507
507
  */
508
- fluid?: boolean;
508
+ fluid?: boolean | undefined;
509
509
  /**
510
510
  * Defines a string value that labels an interactive element.
511
511
  */
@@ -1,7 +1,7 @@
1
- import { UniqueComponentId, ConnectedOverlayScrollHandler } from '@primevue/core/utils';
2
1
  import { focus, addStyle, relativePosition, getOuterWidth, absolutePosition, isTouchDevice, findSingle } from '@primeuix/utils/dom';
3
2
  import { resolveFieldData, isEmpty, isNotEmpty, equals, findLastIndex } from '@primeuix/utils/object';
4
3
  import { ZIndex } from '@primeuix/utils/zindex';
4
+ import { UniqueComponentId, ConnectedOverlayScrollHandler } from '@primevue/core/utils';
5
5
  import ChevronDownIcon from '@primevue/icons/chevrondown';
6
6
  import SpinnerIcon from '@primevue/icons/spinner';
7
7
  import Chip from 'primevue/chip';
@@ -193,7 +193,7 @@ var script$1 = {
193
193
  },
194
194
  fluid: {
195
195
  type: Boolean,
196
- "default": false
196
+ "default": null
197
197
  }
198
198
  },
199
199
  style: AutoCompleteStyle,
@@ -217,6 +217,11 @@ var script = {
217
217
  "extends": script$1,
218
218
  inheritAttrs: false,
219
219
  emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'option-select', 'option-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
220
+ inject: {
221
+ $pcFluid: {
222
+ "default": null
223
+ }
224
+ },
220
225
  outsideClickListener: null,
221
226
  resizeListener: null,
222
227
  scrollHandler: null,
@@ -973,6 +978,9 @@ var script = {
973
978
  },
974
979
  panelId: function panelId() {
975
980
  return this.id + '_panel';
981
+ },
982
+ hasFluid: function hasFluid() {
983
+ return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;
976
984
  }
977
985
  },
978
986
  components: {
@@ -1026,6 +1034,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1026
1034
  value: $options.inputValue,
1027
1035
  placeholder: _ctx.placeholder,
1028
1036
  tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
1037
+ fluid: $options.hasFluid,
1029
1038
  disabled: _ctx.disabled,
1030
1039
  invalid: _ctx.invalid,
1031
1040
  variant: _ctx.variant,
@@ -1045,7 +1054,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1045
1054
  onChange: $options.onChange,
1046
1055
  unstyled: _ctx.unstyled,
1047
1056
  pt: _ctx.ptm('pcInput')
1048
- }, null, 8, ["id", "class", "style", "value", "placeholder", "tabindex", "disabled", "invalid", "variant", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "onFocus", "onBlur", "onKeydown", "onInput", "onChange", "unstyled", "pt"])) : createCommentVNode("", true), _ctx.multiple ? (openBlock(), createElementBlock("ul", mergeProps({
1057
+ }, null, 8, ["id", "class", "style", "value", "placeholder", "tabindex", "fluid", "disabled", "invalid", "variant", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "onFocus", "onBlur", "onKeydown", "onInput", "onChange", "unstyled", "pt"])) : createCommentVNode("", true), _ctx.multiple ? (openBlock(), createElementBlock("ul", mergeProps({
1049
1058
  key: 1,
1050
1059
  ref: "multiContainer",
1051
1060
  "class": _ctx.cx('inputMultiple'),