primevue 4.3.0 → 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/confirmpopup/ConfirmPopup.vue +2 -2
- package/confirmpopup/index.mjs +2 -2
- package/confirmpopup/index.mjs.map +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 -3
- package/datepicker/index.d.ts +6 -6
- package/datepicker/index.mjs +21 -24
- 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 +28 -6
- package/inputnumber/index.d.ts +6 -6
- package/inputnumber/index.mjs +43 -19
- 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';
|
|
@@ -623,7 +624,8 @@ var script = {
|
|
|
623
624
|
return false;
|
|
624
625
|
},
|
|
625
626
|
isDecimalSign: function isDecimalSign(_char3) {
|
|
626
|
-
|
|
627
|
+
var _this$locale;
|
|
628
|
+
if ((_this$locale = this.locale) !== null && _this$locale !== void 0 && _this$locale.includes('fr') && ['.', ','].includes(_char3) || this._decimal.test(_char3)) {
|
|
627
629
|
this._decimal.lastIndex = 0;
|
|
628
630
|
return true;
|
|
629
631
|
}
|
|
@@ -1018,6 +1020,13 @@ var script = {
|
|
|
1018
1020
|
},
|
|
1019
1021
|
getFormatter: function getFormatter() {
|
|
1020
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));
|
|
1021
1030
|
}
|
|
1022
1031
|
},
|
|
1023
1032
|
components: {
|
|
@@ -1027,15 +1036,19 @@ var script = {
|
|
|
1027
1036
|
}
|
|
1028
1037
|
};
|
|
1029
1038
|
|
|
1030
|
-
var _hoisted_1 = ["
|
|
1031
|
-
var _hoisted_2 = ["
|
|
1032
|
-
var _hoisted_3 = ["disabled"];
|
|
1033
|
-
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"];
|
|
1034
1045
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1035
1046
|
var _component_InputText = resolveComponent("InputText");
|
|
1036
1047
|
return openBlock(), createElementBlock("span", mergeProps({
|
|
1037
1048
|
"class": _ctx.cx('root')
|
|
1038
|
-
}, _ctx.ptmi('root')
|
|
1049
|
+
}, _ctx.ptmi('root'), {
|
|
1050
|
+
"data-p": $options.dataP
|
|
1051
|
+
}), [createVNode(_component_InputText, {
|
|
1039
1052
|
ref: "input",
|
|
1040
1053
|
id: _ctx.inputId,
|
|
1041
1054
|
name: _ctx.$formName,
|
|
@@ -1063,11 +1076,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1063
1076
|
onFocus: $options.onInputFocus,
|
|
1064
1077
|
onBlur: $options.onInputBlur,
|
|
1065
1078
|
pt: _ctx.ptm('pcInputText'),
|
|
1066
|
-
unstyled: _ctx.unstyled
|
|
1067
|
-
|
|
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({
|
|
1068
1082
|
key: 0,
|
|
1069
1083
|
"class": _ctx.cx('buttonGroup')
|
|
1070
|
-
}, _ctx.ptm('buttonGroup')
|
|
1084
|
+
}, _ctx.ptm('buttonGroup'), {
|
|
1085
|
+
"data-p": $options.dataP
|
|
1086
|
+
}), [renderSlot(_ctx.$slots, "incrementbutton", {
|
|
1071
1087
|
listeners: $options.upButtonListeners
|
|
1072
1088
|
}, function () {
|
|
1073
1089
|
return [createElementVNode("button", mergeProps({
|
|
@@ -1077,13 +1093,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1077
1093
|
tabindex: -1,
|
|
1078
1094
|
"aria-hidden": "true",
|
|
1079
1095
|
type: "button"
|
|
1080
|
-
}, _ctx.ptm('incrementButton')
|
|
1096
|
+
}, _ctx.ptm('incrementButton'), {
|
|
1097
|
+
"data-p": $options.dataP
|
|
1098
|
+
}), [renderSlot(_ctx.$slots, _ctx.$slots.incrementicon ? 'incrementicon' : 'incrementbuttonicon', {}, function () {
|
|
1081
1099
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementIcon || _ctx.incrementButtonIcon ? 'span' : 'AngleUpIcon'), mergeProps({
|
|
1082
1100
|
"class": [_ctx.incrementIcon, _ctx.incrementButtonIcon]
|
|
1083
1101
|
}, _ctx.ptm('incrementIcon'), {
|
|
1084
1102
|
"data-pc-section": "incrementicon"
|
|
1085
1103
|
}), null, 16, ["class"]))];
|
|
1086
|
-
})], 16,
|
|
1104
|
+
})], 16, _hoisted_3)];
|
|
1087
1105
|
}), renderSlot(_ctx.$slots, "decrementbutton", {
|
|
1088
1106
|
listeners: $options.downButtonListeners
|
|
1089
1107
|
}, function () {
|
|
@@ -1094,14 +1112,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1094
1112
|
tabindex: -1,
|
|
1095
1113
|
"aria-hidden": "true",
|
|
1096
1114
|
type: "button"
|
|
1097
|
-
}, _ctx.ptm('decrementButton')
|
|
1115
|
+
}, _ctx.ptm('decrementButton'), {
|
|
1116
|
+
"data-p": $options.dataP
|
|
1117
|
+
}), [renderSlot(_ctx.$slots, _ctx.$slots.decrementicon ? 'decrementicon' : 'decrementbuttonicon', {}, function () {
|
|
1098
1118
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementIcon || _ctx.decrementButtonIcon ? 'span' : 'AngleDownIcon'), mergeProps({
|
|
1099
1119
|
"class": [_ctx.decrementIcon, _ctx.decrementButtonIcon]
|
|
1100
1120
|
}, _ctx.ptm('decrementIcon'), {
|
|
1101
1121
|
"data-pc-section": "decrementicon"
|
|
1102
1122
|
}), null, 16, ["class"]))];
|
|
1103
|
-
})], 16,
|
|
1104
|
-
})], 16)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "incrementbutton", {
|
|
1123
|
+
})], 16, _hoisted_4)];
|
|
1124
|
+
})], 16, _hoisted_2)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "incrementbutton", {
|
|
1105
1125
|
listeners: $options.upButtonListeners
|
|
1106
1126
|
}, function () {
|
|
1107
1127
|
return [_ctx.showButtons && _ctx.buttonLayout !== 'stacked' ? (openBlock(), createElementBlock("button", mergeProps({
|
|
@@ -1112,13 +1132,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1112
1132
|
tabindex: -1,
|
|
1113
1133
|
"aria-hidden": "true",
|
|
1114
1134
|
type: "button"
|
|
1115
|
-
}, _ctx.ptm('incrementButton')
|
|
1135
|
+
}, _ctx.ptm('incrementButton'), {
|
|
1136
|
+
"data-p": $options.dataP
|
|
1137
|
+
}), [renderSlot(_ctx.$slots, _ctx.$slots.incrementicon ? 'incrementicon' : 'incrementbuttonicon', {}, function () {
|
|
1116
1138
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.incrementIcon || _ctx.incrementButtonIcon ? 'span' : 'AngleUpIcon'), mergeProps({
|
|
1117
1139
|
"class": [_ctx.incrementIcon, _ctx.incrementButtonIcon]
|
|
1118
1140
|
}, _ctx.ptm('incrementIcon'), {
|
|
1119
1141
|
"data-pc-section": "incrementicon"
|
|
1120
1142
|
}), null, 16, ["class"]))];
|
|
1121
|
-
})], 16,
|
|
1143
|
+
})], 16, _hoisted_5)) : createCommentVNode("", true)];
|
|
1122
1144
|
}), renderSlot(_ctx.$slots, "decrementbutton", {
|
|
1123
1145
|
listeners: $options.downButtonListeners
|
|
1124
1146
|
}, function () {
|
|
@@ -1130,14 +1152,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1130
1152
|
tabindex: -1,
|
|
1131
1153
|
"aria-hidden": "true",
|
|
1132
1154
|
type: "button"
|
|
1133
|
-
}, _ctx.ptm('decrementButton')
|
|
1155
|
+
}, _ctx.ptm('decrementButton'), {
|
|
1156
|
+
"data-p": $options.dataP
|
|
1157
|
+
}), [renderSlot(_ctx.$slots, _ctx.$slots.decrementicon ? 'decrementicon' : 'decrementbuttonicon', {}, function () {
|
|
1134
1158
|
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.decrementIcon || _ctx.decrementButtonIcon ? 'span' : 'AngleDownIcon'), mergeProps({
|
|
1135
1159
|
"class": [_ctx.decrementIcon, _ctx.decrementButtonIcon]
|
|
1136
1160
|
}, _ctx.ptm('decrementIcon'), {
|
|
1137
1161
|
"data-pc-section": "decrementicon"
|
|
1138
1162
|
}), null, 16, ["class"]))];
|
|
1139
|
-
})], 16,
|
|
1140
|
-
})], 16);
|
|
1163
|
+
})], 16, _hoisted_6)) : createCommentVNode("", true)];
|
|
1164
|
+
})], 16, _hoisted_1);
|
|
1141
1165
|
}
|
|
1142
1166
|
|
|
1143
1167
|
script.render = render;
|