primevue 4.3.3 → 4.3.4
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 +1 -1
- package/accordionheader/index.d.ts +6 -1
- package/accordionheader/index.mjs +1 -1
- package/accordionheader/index.mjs.map +1 -1
- package/autocomplete/AutoComplete.vue +4 -1
- package/autocomplete/index.d.ts +4 -0
- package/autocomplete/index.mjs +30 -27
- package/autocomplete/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +3 -0
- package/cascadeselect/CascadeSelectSub.vue +1 -1
- package/cascadeselect/index.mjs +21 -18
- package/cascadeselect/index.mjs.map +1 -1
- package/colorpicker/ColorPicker.vue +4 -0
- package/colorpicker/index.mjs +4 -0
- package/colorpicker/index.mjs.map +1 -1
- package/confirmationoptions/index.d.ts +1 -1
- package/confirmdialog/index.d.ts +4 -0
- package/contextmenu/index.mjs +12 -12
- package/contextmenu/index.mjs.map +1 -1
- package/datatable/ColumnFilter.vue +2 -2
- package/datatable/index.d.ts +2 -2
- package/datatable/index.mjs +12 -12
- package/datatable/index.mjs.map +1 -1
- package/datatable/style/index.mjs +4 -4
- package/datatable/style/index.mjs.map +1 -1
- package/dataview/index.d.ts +5 -5
- package/datepicker/DatePicker.vue +10 -3
- package/datepicker/index.mjs +69 -59
- package/datepicker/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +2 -3
- package/fileupload/index.mjs +6 -8
- package/fileupload/index.mjs.map +1 -1
- package/image/Image.vue +1 -1
- package/image/index.mjs +1 -1
- package/image/index.mjs.map +1 -1
- package/inputmask/InputMask.vue +3 -3
- package/inputmask/index.d.ts +3 -3
- package/inputmask/index.mjs +3 -3
- package/inputmask/index.mjs.map +1 -1
- package/inputnumber/InputNumber.vue +1 -1
- package/inputnumber/index.mjs +2 -2
- package/inputnumber/index.mjs.map +1 -1
- package/inputtext/index.d.ts +2 -1
- package/listbox/Listbox.vue +1 -0
- package/listbox/index.mjs +27 -26
- package/listbox/index.mjs.map +1 -1
- package/megamenu/index.d.ts +1 -1
- package/megamenu/index.mjs +11 -11
- package/megamenu/index.mjs.map +1 -1
- package/menu/Menu.vue +4 -4
- package/menu/index.d.ts +3 -12
- package/menu/index.mjs +4 -4
- package/menu/index.mjs.map +1 -1
- package/menubar/index.mjs +16 -16
- package/menubar/index.mjs.map +1 -1
- package/metergroup/index.d.ts +1 -1
- package/multiselect/MultiSelect.vue +4 -1
- package/multiselect/index.d.ts +1 -1
- package/multiselect/index.mjs +51 -48
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/OrganizationChartNode.vue +1 -1
- package/organizationchart/index.mjs.map +1 -1
- package/organizationchart/style/index.mjs +11 -6
- package/organizationchart/style/index.mjs.map +1 -1
- package/package.json +6 -6
- package/panel/Panel.vue +2 -2
- package/panel/index.mjs +2 -2
- package/panel/index.mjs.map +1 -1
- package/panelmenu/index.mjs +3 -3
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +7 -3
- package/password/index.d.ts +1 -1
- package/password/index.mjs +14 -8
- package/password/index.mjs.map +1 -1
- package/select/Select.vue +20 -1
- package/select/index.mjs +53 -35
- package/select/index.mjs.map +1 -1
- package/selectbutton/index.d.ts +0 -24
- package/splitter/Splitter.vue +1 -1
- package/splitter/index.d.ts +1 -1
- package/splitter/index.mjs +0 -1
- package/splitter/index.mjs.map +1 -1
- package/splitter/style/index.mjs +1 -13
- package/splitter/style/index.mjs.map +1 -1
- package/step/Step.vue +2 -2
- package/step/index.mjs +2 -2
- package/step/index.mjs.map +1 -1
- package/steppanel/StepPanel.vue +2 -2
- package/steppanel/index.mjs +2 -2
- package/steppanel/index.mjs.map +1 -1
- package/textarea/index.d.ts +2 -1
- package/tieredmenu/index.mjs +12 -12
- package/tieredmenu/index.mjs.map +1 -1
- package/tooltip/index.mjs +25 -14
- package/tooltip/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +3 -0
- package/treeselect/index.mjs +3 -0
- package/treeselect/index.mjs.map +1 -1
- package/umd/primevue.min.js +12213 -1
- package/virtualscroller/index.mjs +18 -18
- package/virtualscroller/index.mjs.map +1 -1
- package/web-types.json +1 -1
package/inputtext/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
import type { DefineComponent, DesignToken, EmitFn, HintedString, Nullable, PassThrough } from '@primevue/core';
|
|
11
11
|
import type { ComponentHooks } from '@primevue/core/basecomponent';
|
|
12
12
|
import type { PassThroughOptions } from 'primevue/passthrough';
|
|
13
|
+
import { InputHTMLAttributes } from 'vue';
|
|
13
14
|
|
|
14
15
|
export declare type InputTextPassThroughOptionType<T = any> = InputTextPassThroughAttributes | ((options: InputTextPassThroughMethodOptions<T>) => InputTextPassThroughAttributes | string) | string | null | undefined;
|
|
15
16
|
|
|
@@ -81,7 +82,7 @@ export interface InputTextContext {
|
|
|
81
82
|
/**
|
|
82
83
|
* Defines valid properties in InputText component.
|
|
83
84
|
*/
|
|
84
|
-
export interface InputTextProps {
|
|
85
|
+
export interface InputTextProps extends Omit<InputHTMLAttributes, 'size'> {
|
|
85
86
|
/**
|
|
86
87
|
* Value of the component.
|
|
87
88
|
*/
|
package/listbox/Listbox.vue
CHANGED
|
@@ -240,6 +240,7 @@ export default {
|
|
|
240
240
|
this.focused = true;
|
|
241
241
|
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
|
|
242
242
|
this.autoUpdateModel();
|
|
243
|
+
this.scrollInView(this.focusedOptionIndex);
|
|
243
244
|
this.$emit('focus', event);
|
|
244
245
|
},
|
|
245
246
|
onListBlur(event) {
|
package/listbox/index.mjs
CHANGED
|
@@ -221,6 +221,7 @@ var script = {
|
|
|
221
221
|
this.focused = true;
|
|
222
222
|
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
|
|
223
223
|
this.autoUpdateModel();
|
|
224
|
+
this.scrollInView(this.focusedOptionIndex);
|
|
224
225
|
this.$emit('focus', event);
|
|
225
226
|
},
|
|
226
227
|
onListBlur: function onListBlur(event) {
|
|
@@ -565,28 +566,28 @@ var script = {
|
|
|
565
566
|
return -1;
|
|
566
567
|
},
|
|
567
568
|
findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex() {
|
|
568
|
-
var
|
|
569
|
+
var _this0 = this;
|
|
569
570
|
return this.$filled ? this.visibleOptions.findIndex(function (option) {
|
|
570
|
-
return
|
|
571
|
+
return _this0.isValidSelectedOption(option);
|
|
571
572
|
}) : -1;
|
|
572
573
|
},
|
|
573
574
|
findLastSelectedOptionIndex: function findLastSelectedOptionIndex() {
|
|
574
|
-
var
|
|
575
|
+
var _this1 = this;
|
|
575
576
|
return this.$filled ? findLastIndex(this.visibleOptions, function (option) {
|
|
576
|
-
return
|
|
577
|
+
return _this1.isValidSelectedOption(option);
|
|
577
578
|
}) : -1;
|
|
578
579
|
},
|
|
579
580
|
findNextSelectedOptionIndex: function findNextSelectedOptionIndex(index) {
|
|
580
|
-
var
|
|
581
|
+
var _this10 = this;
|
|
581
582
|
var matchedOptionIndex = this.$filled && index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
|
|
582
|
-
return
|
|
583
|
+
return _this10.isValidSelectedOption(option);
|
|
583
584
|
}) : -1;
|
|
584
585
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : -1;
|
|
585
586
|
},
|
|
586
587
|
findPrevSelectedOptionIndex: function findPrevSelectedOptionIndex(index) {
|
|
587
|
-
var
|
|
588
|
+
var _this11 = this;
|
|
588
589
|
var matchedOptionIndex = this.$filled && index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {
|
|
589
|
-
return
|
|
590
|
+
return _this11.isValidSelectedOption(option);
|
|
590
591
|
}) : -1;
|
|
591
592
|
return matchedOptionIndex > -1 ? matchedOptionIndex : -1;
|
|
592
593
|
},
|
|
@@ -613,20 +614,20 @@ var script = {
|
|
|
613
614
|
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
614
615
|
},
|
|
615
616
|
searchOptions: function searchOptions(event, _char) {
|
|
616
|
-
var
|
|
617
|
+
var _this12 = this;
|
|
617
618
|
this.searchValue = (this.searchValue || '') + _char;
|
|
618
619
|
var optionIndex = -1;
|
|
619
620
|
if (isNotEmpty(this.searchValue)) {
|
|
620
621
|
if (this.focusedOptionIndex !== -1) {
|
|
621
622
|
optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function (option) {
|
|
622
|
-
return
|
|
623
|
+
return _this12.isOptionMatched(option);
|
|
623
624
|
});
|
|
624
625
|
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function (option) {
|
|
625
|
-
return
|
|
626
|
+
return _this12.isOptionMatched(option);
|
|
626
627
|
}) : optionIndex + this.focusedOptionIndex;
|
|
627
628
|
} else {
|
|
628
629
|
optionIndex = this.visibleOptions.findIndex(function (option) {
|
|
629
|
-
return
|
|
630
|
+
return _this12.isOptionMatched(option);
|
|
630
631
|
});
|
|
631
632
|
}
|
|
632
633
|
if (optionIndex === -1 && this.focusedOptionIndex === -1) {
|
|
@@ -640,14 +641,14 @@ var script = {
|
|
|
640
641
|
clearTimeout(this.searchTimeout);
|
|
641
642
|
}
|
|
642
643
|
this.searchTimeout = setTimeout(function () {
|
|
643
|
-
|
|
644
|
-
|
|
644
|
+
_this12.searchValue = '';
|
|
645
|
+
_this12.searchTimeout = null;
|
|
645
646
|
}, 500);
|
|
646
647
|
},
|
|
647
648
|
removeOption: function removeOption(option) {
|
|
648
|
-
var
|
|
649
|
+
var _this13 = this;
|
|
649
650
|
return this.d_value.filter(function (val) {
|
|
650
|
-
return !equals(val,
|
|
651
|
+
return !equals(val, _this13.getOptionValue(option), _this13.equalityKey);
|
|
651
652
|
});
|
|
652
653
|
},
|
|
653
654
|
changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
|
|
@@ -660,19 +661,19 @@ var script = {
|
|
|
660
661
|
}
|
|
661
662
|
},
|
|
662
663
|
scrollInView: function scrollInView() {
|
|
663
|
-
var
|
|
664
|
+
var _this14 = this;
|
|
664
665
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
665
666
|
this.$nextTick(function () {
|
|
666
|
-
var id = index !== -1 ? "".concat(
|
|
667
|
-
var element = findSingle(
|
|
667
|
+
var id = index !== -1 ? "".concat(_this14.$id, "_").concat(index) : _this14.focusedOptionId;
|
|
668
|
+
var element = findSingle(_this14.list, "li[id=\"".concat(id, "\"]"));
|
|
668
669
|
if (element) {
|
|
669
670
|
element.scrollIntoView && element.scrollIntoView({
|
|
670
671
|
block: 'nearest',
|
|
671
672
|
inline: 'nearest',
|
|
672
673
|
behavior: 'smooth'
|
|
673
674
|
});
|
|
674
|
-
} else if (!
|
|
675
|
-
|
|
675
|
+
} else if (!_this14.virtualScrollerDisabled) {
|
|
676
|
+
_this14.virtualScroller && _this14.virtualScroller.scrollToIndex(index !== -1 ? index : _this14.focusedOptionIndex);
|
|
676
677
|
}
|
|
677
678
|
});
|
|
678
679
|
},
|
|
@@ -702,11 +703,11 @@ var script = {
|
|
|
702
703
|
return this.filterValue ? FilterService.filter(this.options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale) : this.options;
|
|
703
704
|
},
|
|
704
705
|
optionsListGroup: function optionsListGroup() {
|
|
705
|
-
var
|
|
706
|
+
var _this15 = this;
|
|
706
707
|
var filteredOptions = [];
|
|
707
708
|
(this.options || []).forEach(function (optionGroup) {
|
|
708
|
-
var optionGroupChildren =
|
|
709
|
-
var filteredChildren =
|
|
709
|
+
var optionGroupChildren = _this15.getOptionGroupChildren(optionGroup) || [];
|
|
710
|
+
var filteredChildren = _this15.filterValue ? FilterService.filter(optionGroupChildren, _this15.searchFields, _this15.filterValue, _this15.filterMatchMode, _this15.filterLocale) : optionGroupChildren;
|
|
710
711
|
if (filteredChildren !== null && filteredChildren !== void 0 && filteredChildren.length) {
|
|
711
712
|
filteredOptions.push.apply(filteredOptions, [{
|
|
712
713
|
optionGroup: optionGroup,
|
|
@@ -754,9 +755,9 @@ var script = {
|
|
|
754
755
|
return this.focusedOptionIndex !== -1 ? "".concat(this.$id, "_").concat(this.focusedOptionIndex) : null;
|
|
755
756
|
},
|
|
756
757
|
ariaSetSize: function ariaSetSize() {
|
|
757
|
-
var
|
|
758
|
+
var _this16 = this;
|
|
758
759
|
return this.visibleOptions.filter(function (option) {
|
|
759
|
-
return !
|
|
760
|
+
return !_this16.isOptionGroup(option);
|
|
760
761
|
}).length;
|
|
761
762
|
},
|
|
762
763
|
virtualScrollerDisabled: function virtualScrollerDisabled() {
|