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.
- package/autocomplete/AutoComplete.vue +10 -3
- package/autocomplete/BaseAutoComplete.vue +1 -1
- package/autocomplete/index.d.ts +2 -2
- package/autocomplete/index.mjs +12 -3
- package/autocomplete/index.mjs.map +1 -1
- package/autocomplete/style/index.mjs +1 -1
- package/autocomplete/style/index.mjs.map +1 -1
- package/button/BaseButton.vue +1 -1
- package/button/Button.vue +7 -0
- package/button/index.d.ts +2 -2
- package/button/index.mjs +10 -1
- package/button/index.mjs.map +1 -1
- package/button/style/index.mjs +1 -1
- package/button/style/index.mjs.map +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +1 -1
- package/cascadeselect/CascadeSelect.vue +6 -0
- package/cascadeselect/index.d.ts +2 -2
- package/cascadeselect/index.mjs +9 -1
- package/cascadeselect/index.mjs.map +1 -1
- package/cascadeselect/style/index.mjs +1 -1
- package/cascadeselect/style/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +1 -1
- package/colorpicker/index.d.ts +4 -0
- package/colorpicker/index.mjs +2 -1
- package/colorpicker/index.mjs.map +1 -1
- package/confirmdialog/ConfirmDialog.vue +4 -7
- package/confirmdialog/index.mjs +6 -12
- package/confirmdialog/index.mjs.map +1 -1
- package/confirmpopup/ConfirmPopup.vue +7 -10
- package/confirmpopup/index.mjs +8 -14
- package/confirmpopup/index.mjs.map +1 -1
- package/datatable/HeaderCheckbox.vue +1 -1
- package/datatable/index.mjs +1 -1
- package/datatable/index.mjs.map +1 -1
- package/datepicker/BaseDatePicker.vue +1 -1
- package/datepicker/DatePicker.vue +8 -1
- package/datepicker/index.d.ts +2 -2
- package/datepicker/index.mjs +12 -3
- package/datepicker/index.mjs.map +1 -1
- package/datepicker/style/index.mjs +4 -3
- package/datepicker/style/index.mjs.map +1 -1
- package/floatlabel/index.d.ts +1 -1
- package/fluid/BaseFluid.vue +16 -0
- package/fluid/Fluid.vue +15 -0
- package/fluid/index.d.ts +130 -0
- package/fluid/index.mjs +32 -0
- package/fluid/index.mjs.map +1 -0
- package/fluid/package.json +11 -0
- package/fluid/style/index.d.ts +19 -0
- package/fluid/style/index.mjs +12 -0
- package/fluid/style/index.mjs.map +1 -0
- package/fluid/style/package.json +6 -0
- package/inputgroup/BaseInputGroup.vue +1 -1
- package/inputgroup/InputGroup.vue +10 -1
- package/inputgroup/index.d.ts +2 -2
- package/inputgroup/index.mjs +13 -2
- package/inputgroup/index.mjs.map +1 -1
- package/inputgroup/style/index.mjs +2 -2
- package/inputgroup/style/index.mjs.map +1 -1
- package/inputmask/index.d.ts +2 -2
- package/inputnumber/BaseInputNumber.vue +1 -1
- package/inputnumber/InputNumber.vue +8 -2
- package/inputnumber/index.d.ts +2 -2
- package/inputnumber/index.mjs +10 -2
- package/inputnumber/index.mjs.map +1 -1
- package/inputnumber/style/index.mjs +1 -1
- package/inputnumber/style/index.mjs.map +1 -1
- package/inputtext/BaseInputText.vue +1 -1
- package/inputtext/InputText.vue +7 -0
- package/inputtext/index.d.ts +2 -2
- package/inputtext/index.mjs +10 -1
- package/inputtext/index.mjs.map +1 -1
- package/inputtext/style/index.mjs +1 -1
- package/inputtext/style/index.mjs.map +1 -1
- package/multiselect/BaseMultiSelect.vue +1 -1
- package/multiselect/MultiSelect.vue +7 -1
- package/multiselect/index.d.ts +2 -2
- package/multiselect/index.mjs +10 -2
- package/multiselect/index.mjs.map +1 -1
- package/multiselect/style/index.mjs +1 -1
- package/multiselect/style/index.mjs.map +1 -1
- package/package.json +3 -3
- package/password/BasePassword.vue +1 -1
- package/password/Password.vue +7 -0
- package/password/index.d.ts +2 -2
- package/password/index.mjs +10 -1
- package/password/index.mjs.map +1 -1
- package/password/style/index.mjs +2 -3
- package/password/style/index.mjs.map +1 -1
- package/select/BaseSelect.vue +1 -1
- package/select/Select.vue +7 -1
- package/select/index.d.ts +2 -2
- package/select/index.mjs +10 -2
- package/select/index.mjs.map +1 -1
- package/select/style/index.mjs +1 -1
- package/select/style/index.mjs.map +1 -1
- package/splitbutton/BaseSplitButton.vue +1 -1
- package/splitbutton/SplitButton.vue +7 -0
- package/splitbutton/index.d.ts +2 -2
- package/splitbutton/index.mjs +10 -1
- package/splitbutton/index.mjs.map +1 -1
- package/splitbutton/style/index.mjs +3 -2
- package/splitbutton/style/index.mjs.map +1 -1
- package/textarea/BaseTextarea.vue +1 -1
- package/textarea/Textarea.vue +7 -0
- package/textarea/index.d.ts +2 -2
- package/textarea/index.mjs +10 -1
- package/textarea/index.mjs.map +1 -1
- package/textarea/style/index.mjs +1 -1
- package/textarea/style/index.mjs.map +1 -1
- package/toast/Toast.vue +2 -1
- package/toast/index.mjs +3 -2
- package/toast/index.mjs.map +1 -1
- package/treeselect/BaseTreeSelect.vue +1 -1
- package/treeselect/TreeSelect.vue +9 -2
- package/treeselect/index.d.ts +2 -2
- package/treeselect/index.mjs +11 -2
- package/treeselect/index.mjs.map +1 -1
- package/treeselect/style/index.mjs +1 -1
- package/treeselect/style/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- 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 {
|
|
184
|
-
import {
|
|
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: {
|
package/autocomplete/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
*/
|
package/autocomplete/index.mjs
CHANGED
|
@@ -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":
|
|
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'),
|