primevue 4.0.3 → 4.0.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.
- package/accordion/BaseAccordion.vue +1 -1
- package/accordion/index.d.ts +1 -1
- package/accordion/index.mjs +1 -1
- package/accordion/index.mjs.map +1 -1
- package/accordioncontent/BaseAccordionContent.vue +1 -1
- package/accordioncontent/index.d.ts +2 -2
- package/accordioncontent/index.mjs +1 -1
- package/accordioncontent/index.mjs.map +1 -1
- package/accordionheader/BaseAccordionHeader.vue +1 -1
- package/accordionheader/index.d.ts +2 -2
- package/accordionheader/index.mjs +1 -1
- package/accordionheader/index.mjs.map +1 -1
- package/accordionpanel/BaseAccordionPanel.vue +2 -2
- package/accordionpanel/index.d.ts +3 -3
- package/accordionpanel/index.mjs +2 -2
- package/accordionpanel/index.mjs.map +1 -1
- package/button/BaseButton.vue +1 -1
- package/button/index.d.ts +2 -2
- package/button/index.mjs +1 -1
- package/button/index.mjs.map +1 -1
- package/carousel/Carousel.vue +18 -8
- package/carousel/index.d.ts +19 -0
- package/carousel/index.mjs +17 -7
- package/carousel/index.mjs.map +1 -1
- package/chart/index.d.ts +1 -1
- package/config/index.d.ts +32 -0
- package/confirmpopup/ConfirmPopup.vue +8 -2
- package/confirmpopup/index.mjs +6 -2
- package/confirmpopup/index.mjs.map +1 -1
- package/confirmpopup/style/index.mjs +1 -1
- package/confirmpopup/style/index.mjs.map +1 -1
- package/contextmenu/ContextMenu.vue +1 -1
- package/contextmenu/ContextMenuSub.vue +4 -4
- package/contextmenu/index.mjs +2 -3
- package/contextmenu/index.mjs.map +1 -1
- package/datatable/index.d.ts +1 -1
- package/datepicker/DatePicker.vue +9 -7
- package/datepicker/index.mjs +13 -12
- package/datepicker/index.mjs.map +1 -1
- package/datepicker/style/index.mjs +1 -1
- package/datepicker/style/index.mjs.map +1 -1
- package/dialog/Dialog.vue +16 -6
- package/dialog/index.mjs +21 -7
- package/dialog/index.mjs.map +1 -1
- package/drawer/BaseDrawer.vue +0 -9
- package/drawer/Drawer.vue +11 -2
- package/drawer/index.mjs +12 -11
- package/drawer/index.mjs.map +1 -1
- package/fieldset/Fieldset.vue +1 -1
- package/fieldset/index.d.ts +8 -0
- package/fieldset/index.mjs +3 -2
- package/fieldset/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +7 -6
- package/fileupload/index.mjs +7 -14
- package/fileupload/index.mjs.map +1 -1
- package/image/style/index.mjs +1 -1
- package/image/style/index.mjs.map +1 -1
- package/inputmask/BaseInputMask.vue +8 -0
- package/inputmask/InputMask.vue +10 -3
- package/inputmask/index.d.ts +8 -0
- package/inputmask/index.mjs +18 -3
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/style/index.mjs +1 -1
- package/inputnumber/style/index.mjs.map +1 -1
- package/inputotp/InputOtp.vue +5 -0
- package/inputotp/index.mjs +4 -0
- package/inputotp/index.mjs.map +1 -1
- package/megamenu/MegaMenuSub.vue +3 -3
- package/megamenu/index.mjs +1 -2
- package/megamenu/index.mjs.map +1 -1
- package/menu/Menuitem.vue +2 -2
- package/menu/index.mjs +1 -2
- package/menu/index.mjs.map +1 -1
- package/menubar/MenubarSub.vue +14 -8
- package/menubar/index.mjs +17 -13
- package/menubar/index.mjs.map +1 -1
- package/package.json +3 -3
- package/panelmenu/PanelMenuSub.vue +3 -3
- package/panelmenu/index.mjs +1 -2
- package/panelmenu/index.mjs.map +1 -1
- package/popover/style/index.mjs +1 -1
- package/popover/style/index.mjs.map +1 -1
- package/scrolltop/style/index.mjs +1 -1
- package/scrolltop/style/index.mjs.map +1 -1
- package/select/Select.vue +1 -0
- package/select/index.mjs +1 -0
- package/select/index.mjs.map +1 -1
- package/speeddial/SpeedDial.vue +0 -1
- package/speeddial/index.mjs +1 -2
- package/speeddial/index.mjs.map +1 -1
- package/step/BaseStep.vue +1 -1
- package/step/index.d.ts +2 -2
- package/step/index.mjs +1 -1
- package/step/index.mjs.map +1 -1
- package/stepitem/BaseStepItem.vue +1 -1
- package/stepitem/index.mjs +1 -1
- package/stepitem/index.mjs.map +1 -1
- package/steplist/BaseStepList.vue +0 -6
- package/steplist/index.d.ts +0 -4
- package/steplist/index.mjs +0 -6
- package/steplist/index.mjs.map +1 -1
- package/steppanel/BaseStepPanel.vue +1 -1
- package/steppanel/index.d.ts +3 -3
- package/steppanel/index.mjs +1 -1
- package/steppanel/index.mjs.map +1 -1
- package/steppanels/BaseStepPanels.vue +0 -6
- package/steppanels/index.d.ts +0 -4
- package/steppanels/index.mjs +0 -6
- package/steppanels/index.mjs.map +1 -1
- package/tab/BaseTab.vue +2 -2
- package/tab/index.d.ts +3 -3
- package/tab/index.mjs +2 -2
- package/tab/index.mjs.map +1 -1
- package/tabpanel/BaseTabPanel.vue +2 -2
- package/tabpanel/index.d.ts +3 -3
- package/tabpanel/index.mjs +2 -2
- package/tabpanel/index.mjs.map +1 -1
- package/tabs/BaseTabs.vue +1 -1
- package/tabs/index.d.ts +1 -1
- package/tabs/index.mjs +1 -1
- package/tabs/index.mjs.map +1 -1
- package/tieredmenu/TieredMenuSub.vue +4 -4
- package/tieredmenu/index.mjs +1 -2
- package/tieredmenu/index.mjs.map +1 -1
- package/tree/TreeNode.vue +5 -3
- package/tree/index.mjs +5 -4
- package/tree/index.mjs.map +1 -1
- package/treenode/index.d.ts +1 -1
- package/umd/primevue.min.js +1 -1
- package/web-types.json +1 -1
- package/stepperpanel/BaseStepperPanel.vue +0 -19
- package/stepperpanel/StepperPanel.vue +0 -15
- package/stepperpanel/index.d.ts +0 -290
- package/stepperpanel/index.mjs +0 -35
- package/stepperpanel/index.mjs.map +0 -1
- package/stepperpanel/package.json +0 -11
- package/stepperpanel/style/index.d.ts +0 -14
- package/stepperpanel/style/index.mjs +0 -8
- package/stepperpanel/style/index.mjs.map +0 -1
- package/stepperpanel/style/package.json +0 -6
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@keydown="onKeyDown"
|
|
33
33
|
:pt="ptm('pcInput')"
|
|
34
34
|
/>
|
|
35
|
-
<slot v-if="showIcon && iconDisplay === 'button'" name="dropdownbutton">
|
|
35
|
+
<slot v-if="showIcon && iconDisplay === 'button' && !inline" name="dropdownbutton">
|
|
36
36
|
<button
|
|
37
37
|
:class="cx('dropdown')"
|
|
38
38
|
:disabled="disabled"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</slot>
|
|
50
50
|
</button>
|
|
51
51
|
</slot>
|
|
52
|
-
<template v-else-if="showIcon && iconDisplay === 'input'">
|
|
52
|
+
<template v-else-if="showIcon && iconDisplay === 'input' && !inline">
|
|
53
53
|
<span v-if="$slots.inputicon || showIcon" :class="cx('inputIconContainer')" v-bind="ptm('inputIconContainer')">
|
|
54
54
|
<slot name="inputicon" :class="cx('inputIcon')" :clickCallback="onButtonClick">
|
|
55
55
|
<component :is="icon ? 'i' : 'CalendarIcon'" :class="[icon, cx('inputIcon')]" @click="onButtonClick" v-bind="ptm('inputicon')" />
|
|
@@ -750,7 +750,7 @@ export default {
|
|
|
750
750
|
|
|
751
751
|
return start === year || end === year || (start < year && end > year);
|
|
752
752
|
} else {
|
|
753
|
-
return
|
|
753
|
+
return this.modelValue.getFullYear() === year;
|
|
754
754
|
}
|
|
755
755
|
},
|
|
756
756
|
isDateEquals(value, dateMeta) {
|
|
@@ -1735,7 +1735,7 @@ export default {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
} else if (value.every((v) => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false))) {
|
|
1737
1737
|
if (this.isRangeSelection()) {
|
|
1738
|
-
isValid = value.length > 1 && value[1]
|
|
1738
|
+
isValid = value.length > 1 && value[1] >= value[0];
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
1741
|
|
|
@@ -2516,7 +2516,7 @@ export default {
|
|
|
2516
2516
|
cell = findSingle(this.overlay, 'span[data-p-selected="true"]');
|
|
2517
2517
|
|
|
2518
2518
|
if (!cell) {
|
|
2519
|
-
let todayCell = findSingle(this.overlay, 'td
|
|
2519
|
+
let todayCell = findSingle(this.overlay, 'td[data-p-today="true"] span:not([data-p-disabled="true"]):not([data-p-ink="true"])');
|
|
2520
2520
|
|
|
2521
2521
|
if (todayCell) cell = todayCell;
|
|
2522
2522
|
else cell = findSingle(this.overlay, '.p-datepicker-calendar td span:not([data-p-disabled="true"]):not([data-p-ink="true"])');
|
|
@@ -2645,6 +2645,8 @@ export default {
|
|
|
2645
2645
|
/* NoOp */
|
|
2646
2646
|
}
|
|
2647
2647
|
}
|
|
2648
|
+
|
|
2649
|
+
this.$emit('keydown', event);
|
|
2648
2650
|
}
|
|
2649
2651
|
},
|
|
2650
2652
|
overlayRef(el) {
|
|
@@ -2708,14 +2710,14 @@ export default {
|
|
|
2708
2710
|
for (let i = 0; i < responsiveOptions.length; i++) {
|
|
2709
2711
|
let { breakpoint, numMonths } = responsiveOptions[i];
|
|
2710
2712
|
let styles = `
|
|
2711
|
-
.p-datepicker[${this.attributeSelector}] .p-datepicker-
|
|
2713
|
+
.p-datepicker-panel[${this.attributeSelector}] .p-datepicker-calendar:nth-child(${numMonths}) .p-datepicker-next-button {
|
|
2712
2714
|
display: inline-flex;
|
|
2713
2715
|
}
|
|
2714
2716
|
`;
|
|
2715
2717
|
|
|
2716
2718
|
for (let j = numMonths; j < this.numberOfMonths; j++) {
|
|
2717
2719
|
styles += `
|
|
2718
|
-
.p-datepicker[${this.attributeSelector}] .p-datepicker-
|
|
2720
|
+
.p-datepicker-panel[${this.attributeSelector}] .p-datepicker-calendar:nth-child(${j + 1}) {
|
|
2719
2721
|
display: none;
|
|
2720
2722
|
}
|
|
2721
2723
|
`;
|
package/datepicker/index.mjs
CHANGED
|
@@ -493,7 +493,7 @@ var script = {
|
|
|
493
493
|
var end = this.modelValue[1] ? this.modelValue[1].getFullYear() : null;
|
|
494
494
|
return start === year || end === year || start < year && end > year;
|
|
495
495
|
} else {
|
|
496
|
-
return
|
|
496
|
+
return this.modelValue.getFullYear() === year;
|
|
497
497
|
}
|
|
498
498
|
},
|
|
499
499
|
isDateEquals: function isDateEquals(value, dateMeta) {
|
|
@@ -1410,7 +1410,7 @@ var script = {
|
|
|
1410
1410
|
return _this11.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
|
|
1411
1411
|
})) {
|
|
1412
1412
|
if (this.isRangeSelection()) {
|
|
1413
|
-
isValid = value.length > 1 && value[1]
|
|
1413
|
+
isValid = value.length > 1 && value[1] >= value[0];
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
1416
|
return isValid;
|
|
@@ -2114,7 +2114,7 @@ var script = {
|
|
|
2114
2114
|
} else {
|
|
2115
2115
|
cell = findSingle(this.overlay, 'span[data-p-selected="true"]');
|
|
2116
2116
|
if (!cell) {
|
|
2117
|
-
var todayCell = findSingle(this.overlay, 'td
|
|
2117
|
+
var todayCell = findSingle(this.overlay, 'td[data-p-today="true"] span:not([data-p-disabled="true"]):not([data-p-ink="true"])');
|
|
2118
2118
|
if (todayCell) cell = todayCell;else cell = findSingle(this.overlay, '.p-datepicker-calendar td span:not([data-p-disabled="true"]):not([data-p-ink="true"])');
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
@@ -2165,10 +2165,10 @@ var script = {
|
|
|
2165
2165
|
try {
|
|
2166
2166
|
this.selectionStart = this.input.selectionStart;
|
|
2167
2167
|
this.selectionEnd = this.input.selectionEnd;
|
|
2168
|
-
var
|
|
2169
|
-
if (this.isValidSelection(
|
|
2168
|
+
var value = this.parseValue(event.target.value);
|
|
2169
|
+
if (this.isValidSelection(value)) {
|
|
2170
2170
|
this.typeUpdate = true;
|
|
2171
|
-
this.updateModel(
|
|
2171
|
+
this.updateModel(value);
|
|
2172
2172
|
}
|
|
2173
2173
|
} catch (err) {
|
|
2174
2174
|
/* NoOp */
|
|
@@ -2218,14 +2218,15 @@ var script = {
|
|
|
2218
2218
|
var _event$target$value;
|
|
2219
2219
|
if (this.manualInput && event.target.value !== null && ((_event$target$value = event.target.value) === null || _event$target$value === void 0 ? void 0 : _event$target$value.trim()) !== '') {
|
|
2220
2220
|
try {
|
|
2221
|
-
var
|
|
2222
|
-
if (this.isValidSelection(
|
|
2221
|
+
var value = this.parseValue(event.target.value);
|
|
2222
|
+
if (this.isValidSelection(value)) {
|
|
2223
2223
|
this.overlayVisible = false;
|
|
2224
2224
|
}
|
|
2225
2225
|
} catch (err) {
|
|
2226
2226
|
/* NoOp */
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
+
this.$emit('keydown', event);
|
|
2229
2230
|
}
|
|
2230
2231
|
},
|
|
2231
2232
|
overlayRef: function overlayRef(el) {
|
|
@@ -2288,9 +2289,9 @@ var script = {
|
|
|
2288
2289
|
var _responsiveOptions$i = responsiveOptions[i],
|
|
2289
2290
|
breakpoint = _responsiveOptions$i.breakpoint,
|
|
2290
2291
|
numMonths = _responsiveOptions$i.numMonths;
|
|
2291
|
-
var styles = "\n .p-datepicker[".concat(this.attributeSelector, "] .p-datepicker-
|
|
2292
|
+
var styles = "\n .p-datepicker-panel[".concat(this.attributeSelector, "] .p-datepicker-calendar:nth-child(").concat(numMonths, ") .p-datepicker-next-button {\n display: inline-flex;\n }\n ");
|
|
2292
2293
|
for (var j = numMonths; j < this.numberOfMonths; j++) {
|
|
2293
|
-
styles += "\n .p-datepicker[".concat(this.attributeSelector, "] .p-datepicker-
|
|
2294
|
+
styles += "\n .p-datepicker-panel[".concat(this.attributeSelector, "] .p-datepicker-calendar:nth-child(").concat(j + 1, ") {\n display: none;\n }\n ");
|
|
2294
2295
|
}
|
|
2295
2296
|
innerHTML += "\n @media screen and (max-width: ".concat(breakpoint, ") {\n ").concat(styles, "\n }\n ");
|
|
2296
2297
|
}
|
|
@@ -2582,7 +2583,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2582
2583
|
onBlur: $options.onBlur,
|
|
2583
2584
|
onKeydown: $options.onKeyDown,
|
|
2584
2585
|
pt: _ctx.ptm('pcInput')
|
|
2585
|
-
}, null, 8, ["id", "class", "style", "value", "placeholder", "name", "invalid", "variant", "fluid", "unstyled", "aria-expanded", "aria-controls", "aria-labelledby", "aria-label", "disabled", "readonly", "onInput", "onClick", "onFocus", "onBlur", "onKeydown", "pt"])) : createCommentVNode("", true), _ctx.showIcon && _ctx.iconDisplay === 'button' ? renderSlot(_ctx.$slots, "dropdownbutton", {
|
|
2586
|
+
}, null, 8, ["id", "class", "style", "value", "placeholder", "name", "invalid", "variant", "fluid", "unstyled", "aria-expanded", "aria-controls", "aria-labelledby", "aria-label", "disabled", "readonly", "onInput", "onClick", "onFocus", "onBlur", "onKeydown", "pt"])) : createCommentVNode("", true), _ctx.showIcon && _ctx.iconDisplay === 'button' && !_ctx.inline ? renderSlot(_ctx.$slots, "dropdownbutton", {
|
|
2586
2587
|
key: 1
|
|
2587
2588
|
}, function () {
|
|
2588
2589
|
return [createElementVNode("button", mergeProps({
|
|
@@ -2603,7 +2604,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2603
2604
|
"class": _ctx.icon
|
|
2604
2605
|
}, _ctx.ptm('dropdownIcon')), null, 16, ["class"]))];
|
|
2605
2606
|
})], 16, _hoisted_2)];
|
|
2606
|
-
}) : _ctx.showIcon && _ctx.iconDisplay === 'input' ? (openBlock(), createElementBlock(Fragment, {
|
|
2607
|
+
}) : _ctx.showIcon && _ctx.iconDisplay === 'input' && !_ctx.inline ? (openBlock(), createElementBlock(Fragment, {
|
|
2607
2608
|
key: 2
|
|
2608
2609
|
}, [_ctx.$slots.inputicon || _ctx.showIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
2609
2610
|
key: 0,
|