primevue 4.3.1 → 4.3.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/accordionheader/AccordionHeader.vue +8 -2
- package/accordionheader/index.mjs +8 -1
- package/accordionheader/index.mjs.map +1 -1
- package/autocomplete/AutoComplete.vue +16 -6
- package/autocomplete/index.d.ts +3 -3
- package/autocomplete/index.mjs +17 -4
- package/autocomplete/index.mjs.map +1 -1
- package/avatar/Avatar.vue +13 -4
- package/avatar/index.d.ts +3 -3
- package/avatar/index.mjs +26 -6
- package/avatar/index.mjs.map +1 -1
- package/badge/Badge.vue +13 -2
- package/badge/index.d.ts +1 -1
- package/badge/index.mjs +18 -3
- package/badge/index.mjs.map +1 -1
- package/blockui/BlockUI.vue +15 -4
- package/blockui/index.mjs +13 -4
- package/blockui/index.mjs.map +1 -1
- package/button/Button.vue +30 -3
- package/button/index.d.ts +3 -7
- package/button/index.mjs +28 -9
- package/button/index.mjs.map +1 -1
- package/cascadeselect/index.d.ts +2 -2
- package/checkbox/Checkbox.vue +14 -4
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.mjs +27 -6
- package/checkbox/index.mjs.map +1 -1
- package/chip/Chip.vue +9 -1
- package/chip/index.mjs +12 -2
- package/chip/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +10 -2
- package/colorpicker/index.d.ts +1 -1
- package/colorpicker/index.mjs +9 -2
- package/colorpicker/index.mjs.map +1 -1
- package/column/index.d.ts +3 -3
- package/columngroup/index.d.ts +2 -2
- package/confirmationoptions/index.d.ts +1 -1
- package/datatable/BodyCell.vue +3 -1
- package/datatable/BodyRow.vue +2 -0
- package/datatable/index.d.ts +10 -10
- package/datatable/index.mjs +7 -2
- package/datatable/index.mjs.map +1 -1
- package/dataview/index.d.ts +3 -3
- package/datepicker/DatePicker.vue +1 -1
- package/datepicker/index.d.ts +6 -6
- package/datepicker/index.mjs +1 -1
- package/datepicker/index.mjs.map +1 -1
- package/dialog/Dialog.vue +48 -39
- package/dialog/index.d.ts +26 -1
- package/dialog/index.mjs +73 -50
- package/dialog/index.mjs.map +1 -1
- package/divider/Divider.vue +13 -3
- package/divider/index.d.ts +4 -4
- package/divider/index.mjs +18 -5
- package/divider/index.mjs.map +1 -1
- package/dock/index.d.ts +4 -4
- package/drawer/index.d.ts +2 -2
- package/fieldset/Fieldset.vue +8 -2
- package/fieldset/index.mjs +20 -10
- package/fieldset/index.mjs.map +1 -1
- package/fileupload/index.d.ts +2 -2
- package/floatlabel/index.d.ts +2 -2
- package/galleria/GalleriaItem.vue +8 -9
- package/galleria/index.d.ts +3 -3
- package/galleria/index.mjs +8 -8
- package/galleria/index.mjs.map +1 -1
- package/inputchips/index.d.ts +2 -2
- package/inputmask/InputMask.vue +15 -1
- package/inputmask/index.d.ts +3 -3
- package/inputmask/index.mjs +12 -1
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/InputNumber.vue +27 -5
- package/inputnumber/index.d.ts +6 -6
- package/inputnumber/index.mjs +41 -18
- package/inputnumber/index.mjs.map +1 -1
- package/inputotp/index.d.ts +3 -3
- package/inputtext/InputText.vue +10 -1
- package/inputtext/index.d.ts +3 -3
- package/inputtext/index.mjs +14 -1
- package/inputtext/index.mjs.map +1 -1
- package/knob/Knob.vue +1 -1
- package/knob/index.mjs +1 -1
- package/knob/index.mjs.map +1 -1
- package/megamenu/index.d.ts +2 -2
- package/message/Message.vue +16 -7
- package/message/index.d.ts +2 -2
- package/message/index.mjs +35 -13
- package/message/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +5 -1
- package/multiselect/index.d.ts +3 -3
- package/multiselect/index.mjs +4 -1
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/index.d.ts +2 -2
- package/overlaybadge/index.d.ts +1 -1
- package/package.json +3 -3
- package/panel/Panel.vue +29 -22
- package/panel/index.d.ts +22 -2
- package/panel/index.mjs +55 -31
- package/panel/index.mjs.map +1 -1
- package/password/index.d.ts +2 -2
- package/popover/Popover.vue +2 -2
- package/popover/index.mjs +2 -2
- package/popover/index.mjs.map +1 -1
- package/progressbar/ProgressBar.vue +11 -4
- package/progressbar/index.mjs +24 -6
- package/progressbar/index.mjs.map +1 -1
- package/radiobutton/RadioButton.vue +13 -3
- package/radiobutton/index.d.ts +3 -3
- package/radiobutton/index.mjs +24 -4
- package/radiobutton/index.mjs.map +1 -1
- package/rating/Rating.vue +19 -2
- package/rating/index.mjs +28 -7
- package/rating/index.mjs.map +1 -1
- package/scrolltop/index.d.ts +2 -2
- package/select/Select.vue +8 -4
- package/select/index.d.ts +2 -2
- package/select/index.mjs +9 -5
- package/select/index.mjs.map +1 -1
- package/selectbutton/SelectButton.vue +26 -9
- package/selectbutton/index.d.ts +2 -2
- package/selectbutton/index.mjs +30 -10
- package/selectbutton/index.mjs.map +1 -1
- package/skeleton/Skeleton.vue +7 -1
- package/skeleton/index.d.ts +3 -3
- package/skeleton/index.mjs +12 -1
- package/skeleton/index.mjs.map +1 -1
- package/slider/Slider.vue +11 -2
- package/slider/index.d.ts +2 -2
- package/slider/index.mjs +27 -8
- package/slider/index.mjs.map +1 -1
- package/speeddial/index.d.ts +5 -5
- package/splitbutton/index.d.ts +1 -1
- package/splitter/index.d.ts +3 -3
- package/stepper/index.d.ts +4 -0
- package/tab/Tab.vue +8 -2
- package/tab/index.mjs +9 -1
- package/tab/index.mjs.map +1 -1
- package/tablist/TabList.vue +10 -2
- package/tablist/index.mjs +20 -8
- package/tablist/index.mjs.map +1 -1
- package/tag/Tag.vue +11 -2
- package/tag/index.mjs +17 -3
- package/tag/index.mjs.map +1 -1
- package/textarea/Textarea.vue +10 -1
- package/textarea/index.d.ts +3 -3
- package/textarea/index.mjs +14 -1
- package/textarea/index.mjs.map +1 -1
- package/timeline/Timeline.vue +16 -7
- package/timeline/index.d.ts +3 -3
- package/timeline/index.mjs +42 -11
- package/timeline/index.mjs.map +1 -1
- package/toast/Toast.vue +10 -1
- package/toast/ToastMessage.vue +29 -19
- package/toast/index.d.ts +2 -2
- package/toast/index.mjs +77 -38
- package/toast/index.mjs.map +1 -1
- package/togglebutton/ToggleButton.vue +10 -1
- package/togglebutton/index.d.ts +3 -3
- package/togglebutton/index.mjs +19 -4
- package/togglebutton/index.mjs.map +1 -1
- package/toggleswitch/ToggleSwitch.vue +11 -3
- package/toggleswitch/index.mjs +20 -5
- package/toggleswitch/index.mjs.map +1 -1
- package/tooltip/index.mjs +0 -6
- package/tooltip/index.mjs.map +1 -1
- package/tree/index.d.ts +3 -3
- package/treeselect/index.d.ts +6 -6
- package/treetable/index.d.ts +7 -7
- package/treetable/style/index.mjs +2 -3
- package/treetable/style/index.mjs.map +1 -1
- package/umd/primevue.min.js +1 -1
- package/virtualscroller/index.d.ts +2 -2
- package/web-types.json +1 -1
package/inputnumber/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cn } from '@primeuix/utils';
|
|
1
2
|
import { clearSelection, getSelection } from '@primeuix/utils/dom';
|
|
2
3
|
import { isNotEmpty } from '@primeuix/utils/object';
|
|
3
4
|
import AngleDownIcon from '@primevue/icons/angledown';
|
|
@@ -1019,6 +1020,13 @@ var script = {
|
|
|
1019
1020
|
},
|
|
1020
1021
|
getFormatter: function getFormatter() {
|
|
1021
1022
|
return this.numberFormat;
|
|
1023
|
+
},
|
|
1024
|
+
dataP: function dataP() {
|
|
1025
|
+
return cn(_defineProperty(_defineProperty({
|
|
1026
|
+
invalid: this.$invalid,
|
|
1027
|
+
fluid: this.$fluid,
|
|
1028
|
+
filled: this.$variant === 'filled'
|
|
1029
|
+
}, this.size, this.size), this.buttonLayout, this.showButtons && this.buttonLayout));
|
|
1022
1030
|
}
|
|
1023
1031
|
},
|
|
1024
1032
|
components: {
|
|
@@ -1028,15 +1036,19 @@ var script = {
|
|
|
1028
1036
|
}
|
|
1029
1037
|
};
|
|
1030
1038
|
|
|
1031
|
-
var _hoisted_1 = ["
|
|
1032
|
-
var _hoisted_2 = ["
|
|
1033
|
-
var _hoisted_3 = ["disabled"];
|
|
1034
|
-
var _hoisted_4 = ["disabled"];
|
|
1039
|
+
var _hoisted_1 = ["data-p"];
|
|
1040
|
+
var _hoisted_2 = ["data-p"];
|
|
1041
|
+
var _hoisted_3 = ["disabled", "data-p"];
|
|
1042
|
+
var _hoisted_4 = ["disabled", "data-p"];
|
|
1043
|
+
var _hoisted_5 = ["disabled", "data-p"];
|
|
1044
|
+
var _hoisted_6 = ["disabled", "data-p"];
|
|
1035
1045
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1036
1046
|
var _component_InputText = resolveComponent("InputText");
|
|
1037
1047
|
return openBlock(), createElementBlock("span", mergeProps({
|
|
1038
1048
|
"class": _ctx.cx('root')
|
|
1039
|
-
}, _ctx.ptmi('root')
|
|
1049
|
+
}, _ctx.ptmi('root'), {
|
|
1050
|
+
"data-p": $options.dataP
|
|
1051
|
+
}), [createVNode(_component_InputText, {
|
|
1040
1052
|
ref: "input",
|
|
1041
1053
|
id: _ctx.inputId,
|
|
1042
1054
|
name: _ctx.$formName,
|
|
@@ -1064,11 +1076,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1064
1076
|
onFocus: $options.onInputFocus,
|
|
1065
1077
|
onBlur: $options.onInputBlur,
|
|
1066
1078
|
pt: _ctx.ptm('pcInputText'),
|
|
1067
|
-
unstyled: _ctx.unstyled
|
|
1068
|
-
|
|
1079
|
+
unstyled: _ctx.unstyled,
|
|
1080
|
+
"data-p": $options.dataP
|
|
1081
|
+
}, null, 8, ["id", "name", "class", "style", "value", "aria-valuemin", "aria-valuemax", "aria-valuenow", "inputmode", "disabled", "readonly", "placeholder", "aria-labelledby", "aria-label", "size", "invalid", "variant", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur", "pt", "unstyled", "data-p"]), _ctx.showButtons && _ctx.buttonLayout === 'stacked' ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1069
1082
|
key: 0,
|
|
1070
1083
|
"class": _ctx.cx('buttonGroup')
|
|
1071
|
-
}, _ctx.ptm('buttonGroup')
|
|
1084
|
+
}, _ctx.ptm('buttonGroup'), {
|
|
1085
|
+
"data-p": $options.dataP
|
|
1086
|
+
}), [renderSlot(_ctx.$slots, "incrementbutton", {
|
|
1072
1087
|
listeners: $options.upButtonListeners
|
|
1073
1088
|
}, function () {
|
|
1074
1089
|
return [createElementVNode("button", mergeProps({
|
|
@@ -1078,13 +1093,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1078
1093
|
tabindex: -1,
|
|
1079
1094
|
"aria-hidden": "true",
|
|
1080
1095
|
type: "button"
|
|
1081
|
-
}, _ctx.ptm('incrementButton')
|
|
1096
|
+
}, _ctx.ptm('incrementButton'), {
|
|
1097
|
+
"data-p": $options.dataP
|
|
1098
|
+
}), [renderSlot(_ctx.$slots, _ctx.$slots.incrementicon ? 'incrementicon' : 'incrementbuttonicon', {}, function () {
|
|
1082
1099
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementIcon || _ctx.incrementButtonIcon ? 'span' : 'AngleUpIcon'), mergeProps({
|
|
1083
1100
|
"class": [_ctx.incrementIcon, _ctx.incrementButtonIcon]
|
|
1084
1101
|
}, _ctx.ptm('incrementIcon'), {
|
|
1085
1102
|
"data-pc-section": "incrementicon"
|
|
1086
1103
|
}), null, 16, ["class"]))];
|
|
1087
|
-
})], 16,
|
|
1104
|
+
})], 16, _hoisted_3)];
|
|
1088
1105
|
}), renderSlot(_ctx.$slots, "decrementbutton", {
|
|
1089
1106
|
listeners: $options.downButtonListeners
|
|
1090
1107
|
}, function () {
|
|
@@ -1095,14 +1112,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1095
1112
|
tabindex: -1,
|
|
1096
1113
|
"aria-hidden": "true",
|
|
1097
1114
|
type: "button"
|
|
1098
|
-
}, _ctx.ptm('decrementButton')
|
|
1115
|
+
}, _ctx.ptm('decrementButton'), {
|
|
1116
|
+
"data-p": $options.dataP
|
|
1117
|
+
}), [renderSlot(_ctx.$slots, _ctx.$slots.decrementicon ? 'decrementicon' : 'decrementbuttonicon', {}, function () {
|
|
1099
1118
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementIcon || _ctx.decrementButtonIcon ? 'span' : 'AngleDownIcon'), mergeProps({
|
|
1100
1119
|
"class": [_ctx.decrementIcon, _ctx.decrementButtonIcon]
|
|
1101
1120
|
}, _ctx.ptm('decrementIcon'), {
|
|
1102
1121
|
"data-pc-section": "decrementicon"
|
|
1103
1122
|
}), null, 16, ["class"]))];
|
|
1104
|
-
})], 16,
|
|
1105
|
-
})], 16)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "incrementbutton", {
|
|
1123
|
+
})], 16, _hoisted_4)];
|
|
1124
|
+
})], 16, _hoisted_2)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "incrementbutton", {
|
|
1106
1125
|
listeners: $options.upButtonListeners
|
|
1107
1126
|
}, function () {
|
|
1108
1127
|
return [_ctx.showButtons && _ctx.buttonLayout !== 'stacked' ? (openBlock(), createElementBlock("button", mergeProps({
|
|
@@ -1113,13 +1132,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1113
1132
|
tabindex: -1,
|
|
1114
1133
|
"aria-hidden": "true",
|
|
1115
1134
|
type: "button"
|
|
1116
|
-
}, _ctx.ptm('incrementButton')
|
|
1135
|
+
}, _ctx.ptm('incrementButton'), {
|
|
1136
|
+
"data-p": $options.dataP
|
|
1137
|
+
}), [renderSlot(_ctx.$slots, _ctx.$slots.incrementicon ? 'incrementicon' : 'incrementbuttonicon', {}, function () {
|
|
1117
1138
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementIcon || _ctx.incrementButtonIcon ? 'span' : 'AngleUpIcon'), mergeProps({
|
|
1118
1139
|
"class": [_ctx.incrementIcon, _ctx.incrementButtonIcon]
|
|
1119
1140
|
}, _ctx.ptm('incrementIcon'), {
|
|
1120
1141
|
"data-pc-section": "incrementicon"
|
|
1121
1142
|
}), null, 16, ["class"]))];
|
|
1122
|
-
})], 16,
|
|
1143
|
+
})], 16, _hoisted_5)) : createCommentVNode("", true)];
|
|
1123
1144
|
}), renderSlot(_ctx.$slots, "decrementbutton", {
|
|
1124
1145
|
listeners: $options.downButtonListeners
|
|
1125
1146
|
}, function () {
|
|
@@ -1131,14 +1152,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1131
1152
|
tabindex: -1,
|
|
1132
1153
|
"aria-hidden": "true",
|
|
1133
1154
|
type: "button"
|
|
1134
|
-
}, _ctx.ptm('decrementButton')
|
|
1155
|
+
}, _ctx.ptm('decrementButton'), {
|
|
1156
|
+
"data-p": $options.dataP
|
|
1157
|
+
}), [renderSlot(_ctx.$slots, _ctx.$slots.decrementicon ? 'decrementicon' : 'decrementbuttonicon', {}, function () {
|
|
1135
1158
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementIcon || _ctx.decrementButtonIcon ? 'span' : 'AngleDownIcon'), mergeProps({
|
|
1136
1159
|
"class": [_ctx.decrementIcon, _ctx.decrementButtonIcon]
|
|
1137
1160
|
}, _ctx.ptm('decrementIcon'), {
|
|
1138
1161
|
"data-pc-section": "decrementicon"
|
|
1139
1162
|
}), null, 16, ["class"]))];
|
|
1140
|
-
})], 16,
|
|
1141
|
-
})], 16);
|
|
1163
|
+
})], 16, _hoisted_6)) : createCommentVNode("", true)];
|
|
1164
|
+
})], 16, _hoisted_1);
|
|
1142
1165
|
}
|
|
1143
1166
|
|
|
1144
1167
|
script.render = render;
|