primevue 4.3.3 → 4.3.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/index.mjs +4 -2
- package/accordion/index.mjs.map +1 -1
- 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 +38 -31
- package/autocomplete/index.mjs.map +1 -1
- package/breadcrumb/index.mjs +4 -2
- package/breadcrumb/index.mjs.map +1 -1
- package/carousel/index.mjs +10 -5
- package/carousel/index.mjs.map +1 -1
- package/cascadeselect/CascadeSelect.vue +3 -0
- package/cascadeselect/CascadeSelectSub.vue +1 -1
- package/cascadeselect/index.mjs +31 -23
- 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 +28 -20
- package/contextmenu/index.mjs.map +1 -1
- package/datatable/ColumnFilter.vue +2 -2
- package/datatable/DataTable.vue +7 -3
- package/datatable/index.d.ts +2 -2
- package/datatable/index.mjs +48 -40
- 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 +123 -84
- package/datepicker/index.mjs.map +1 -1
- package/dock/index.mjs +8 -4
- package/dock/index.mjs.map +1 -1
- package/dynamicdialog/index.mjs +6 -3
- package/dynamicdialog/index.mjs.map +1 -1
- package/fileupload/FileUpload.vue +2 -3
- package/fileupload/index.mjs +20 -15
- package/fileupload/index.mjs.map +1 -1
- package/floatlabel/index.d.ts +1 -1
- package/galleria/index.mjs +8 -4
- package/galleria/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/inputchips/index.mjs +2 -1
- package/inputchips/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 +35 -30
- package/listbox/index.mjs.map +1 -1
- package/megamenu/index.d.ts +1 -1
- package/megamenu/index.mjs +33 -22
- package/megamenu/index.mjs.map +1 -1
- package/menu/Menu.vue +4 -4
- package/menu/index.d.ts +3 -12
- package/menu/index.mjs +10 -7
- package/menu/index.mjs.map +1 -1
- package/menubar/index.mjs +30 -23
- package/menubar/index.mjs.map +1 -1
- package/metergroup/index.d.ts +1 -1
- package/metergroup/index.mjs +10 -5
- package/metergroup/index.mjs.map +1 -1
- package/multiselect/MultiSelect.vue +4 -1
- package/multiselect/index.d.ts +1 -1
- package/multiselect/index.mjs +59 -52
- package/multiselect/index.mjs.map +1 -1
- package/organizationchart/OrganizationChartNode.vue +1 -1
- package/organizationchart/index.mjs +6 -3
- 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/paginator/index.mjs +10 -4
- package/paginator/index.mjs.map +1 -1
- package/panel/Panel.vue +2 -2
- package/panel/index.mjs +2 -2
- package/panel/index.mjs.map +1 -1
- package/panelmenu/index.mjs +45 -24
- package/panelmenu/index.mjs.map +1 -1
- package/password/Password.vue +8 -3
- package/password/index.d.ts +1 -1
- package/password/index.mjs +18 -9
- package/password/index.mjs.map +1 -1
- package/rating/index.mjs +10 -5
- package/rating/index.mjs.map +1 -1
- package/select/Select.vue +21 -3
- package/select/index.mjs +66 -42
- package/select/index.mjs.map +1 -1
- package/selectbutton/index.d.ts +0 -24
- package/speeddial/index.mjs +6 -3
- package/speeddial/index.mjs.map +1 -1
- package/splitter/Splitter.vue +2 -2
- package/splitter/index.d.ts +1 -1
- package/splitter/index.mjs +5 -3
- 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/steps/index.mjs +8 -4
- package/steps/index.mjs.map +1 -1
- package/tabmenu/index.mjs +8 -2
- package/tabmenu/index.mjs.map +1 -1
- package/tabview/index.mjs +8 -4
- package/tabview/index.mjs.map +1 -1
- package/terminal/index.mjs +8 -4
- package/terminal/index.mjs.map +1 -1
- package/textarea/index.d.ts +2 -1
- package/tieredmenu/index.mjs +30 -21
- package/tieredmenu/index.mjs.map +1 -1
- package/timeline/index.mjs +12 -6
- package/timeline/index.mjs.map +1 -1
- package/toast/ToastMessage.vue +1 -1
- package/toast/index.mjs +1 -1
- package/toast/index.mjs.map +1 -1
- package/toggleswitch/style/index.d.ts +1 -5
- package/tooltip/index.mjs +25 -14
- package/tooltip/index.mjs.map +1 -1
- package/treeselect/TreeSelect.vue +3 -0
- package/treeselect/index.mjs +5 -1
- package/treeselect/index.mjs.map +1 -1
- package/treetable/index.mjs +2 -1
- package/treetable/index.mjs.map +1 -1
- package/umd/primevue.min.js +12213 -1
- package/virtualscroller/VirtualScroller.vue +4 -1
- package/virtualscroller/index.mjs +21 -19
- package/virtualscroller/index.mjs.map +1 -1
- package/web-types.json +1 -1
package/cascadeselect/index.mjs
CHANGED
|
@@ -166,7 +166,7 @@ var script$1 = {
|
|
|
166
166
|
selectId: String,
|
|
167
167
|
focusedOptionId: String,
|
|
168
168
|
options: Array,
|
|
169
|
-
optionLabel: String,
|
|
169
|
+
optionLabel: String | Function,
|
|
170
170
|
optionValue: String,
|
|
171
171
|
optionDisabled: null,
|
|
172
172
|
optionGroupIcon: String,
|
|
@@ -285,7 +285,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
285
285
|
"aria-expanded": $options.isOptionGroup(processedOption) ? $options.isOptionActive(processedOption) : undefined,
|
|
286
286
|
"aria-level": $props.level + 1,
|
|
287
287
|
"aria-setsize": $props.options.length,
|
|
288
|
-
"aria-posinset": index + 1
|
|
288
|
+
"aria-posinset": index + 1
|
|
289
|
+
}, {
|
|
289
290
|
ref_for: true
|
|
290
291
|
}, $options.getPTOptions(processedOption, index, 'option'), {
|
|
291
292
|
"data-p-option-group": $options.isOptionGroup(processedOption),
|
|
@@ -302,7 +303,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
302
303
|
},
|
|
303
304
|
onMousemove: function onMousemove($event) {
|
|
304
305
|
return $options.onOptionMouseMove($event, processedOption);
|
|
305
|
-
}
|
|
306
|
+
}
|
|
307
|
+
}, {
|
|
306
308
|
ref_for: true
|
|
307
309
|
}, $options.getPTOptions(processedOption, index, 'optionContent')), [$props.templates['option'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['option']), {
|
|
308
310
|
key: 0,
|
|
@@ -310,7 +312,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
310
312
|
selected: $options.isOptionGroup(processedOption) ? false : $options.isOptionSelected(processedOption)
|
|
311
313
|
}, null, 8, ["option", "selected"])) : (openBlock(), createElementBlock("span", mergeProps({
|
|
312
314
|
key: 1,
|
|
313
|
-
"class": _ctx.cx('optionText')
|
|
315
|
+
"class": _ctx.cx('optionText')
|
|
316
|
+
}, {
|
|
314
317
|
ref_for: true
|
|
315
318
|
}, $options.getPTOptions(processedOption, index, 'optionText')), toDisplayString($options.getOptionLabelToRender(processedOption)), 17)), $options.isOptionGroup(processedOption) ? (openBlock(), createElementBlock("span", {
|
|
316
319
|
key: 2,
|
|
@@ -321,12 +324,14 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
321
324
|
}, null, 8, ["class"])) : $props.optionGroupIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
322
325
|
key: 1,
|
|
323
326
|
"class": [_ctx.cx('groupIcon'), $props.optionGroupIcon],
|
|
324
|
-
"aria-hidden": "true"
|
|
327
|
+
"aria-hidden": "true"
|
|
328
|
+
}, {
|
|
325
329
|
ref_for: true
|
|
326
330
|
}, $options.getPTOptions(processedOption, index, 'groupIcon')), null, 16)) : (openBlock(), createBlock(_component_AngleRightIcon, mergeProps({
|
|
327
331
|
key: 2,
|
|
328
332
|
"class": _ctx.cx('groupIcon'),
|
|
329
|
-
"aria-hidden": "true"
|
|
333
|
+
"aria-hidden": "true"
|
|
334
|
+
}, {
|
|
330
335
|
ref_for: true
|
|
331
336
|
}, $options.getPTOptions(processedOption, index, 'groupIcon')), null, 16, ["class"]))], 2)) : createCommentVNode("", true)], 16, _hoisted_2)), [[_directive_ripple]]), $options.isOptionGroup(processedOption) && $options.isOptionActive(processedOption) ? (openBlock(), createBlock(_component_CascadeSelectSub, {
|
|
332
337
|
key: 0,
|
|
@@ -828,6 +833,9 @@ var script = {
|
|
|
828
833
|
});
|
|
829
834
|
this.alignOverlay();
|
|
830
835
|
this.scrollInView();
|
|
836
|
+
|
|
837
|
+
// Issue: #7508
|
|
838
|
+
this.$attrSelector && el.setAttribute(this.$attrSelector, '');
|
|
831
839
|
},
|
|
832
840
|
onOverlayAfterEnter: function onOverlayAfterEnter() {
|
|
833
841
|
this.bindOutsideClickListener();
|
|
@@ -958,16 +966,16 @@ var script = {
|
|
|
958
966
|
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
959
967
|
},
|
|
960
968
|
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
961
|
-
var
|
|
969
|
+
var _this0 = this;
|
|
962
970
|
var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (processedOption) {
|
|
963
|
-
return
|
|
971
|
+
return _this0.isValidOption(processedOption);
|
|
964
972
|
}) : -1;
|
|
965
973
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
966
974
|
},
|
|
967
975
|
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
968
|
-
var
|
|
976
|
+
var _this1 = this;
|
|
969
977
|
return this.visibleOptions.findIndex(function (processedOption) {
|
|
970
|
-
return
|
|
978
|
+
return _this1.isValidSelectedOption(processedOption);
|
|
971
979
|
});
|
|
972
980
|
},
|
|
973
981
|
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
@@ -996,21 +1004,21 @@ var script = {
|
|
|
996
1004
|
}
|
|
997
1005
|
},
|
|
998
1006
|
searchOptions: function searchOptions(event, _char) {
|
|
999
|
-
var
|
|
1007
|
+
var _this10 = this;
|
|
1000
1008
|
this.searchValue = (this.searchValue || '') + _char;
|
|
1001
1009
|
var optionIndex = -1;
|
|
1002
1010
|
var matched = false;
|
|
1003
1011
|
if (isNotEmpty(this.searchValue)) {
|
|
1004
1012
|
if (this.focusedOptionInfo.index !== -1) {
|
|
1005
1013
|
optionIndex = this.visibleOptions.slice(this.focusedOptionInfo.index).findIndex(function (processedOption) {
|
|
1006
|
-
return
|
|
1014
|
+
return _this10.isOptionMatched(processedOption);
|
|
1007
1015
|
});
|
|
1008
1016
|
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionInfo.index).findIndex(function (processedOption) {
|
|
1009
|
-
return
|
|
1017
|
+
return _this10.isOptionMatched(processedOption);
|
|
1010
1018
|
}) : optionIndex + this.focusedOptionInfo.index;
|
|
1011
1019
|
} else {
|
|
1012
1020
|
optionIndex = this.visibleOptions.findIndex(function (processedOption) {
|
|
1013
|
-
return
|
|
1021
|
+
return _this10.isOptionMatched(processedOption);
|
|
1014
1022
|
});
|
|
1015
1023
|
}
|
|
1016
1024
|
if (optionIndex !== -1) {
|
|
@@ -1027,8 +1035,8 @@ var script = {
|
|
|
1027
1035
|
clearTimeout(this.searchTimeout);
|
|
1028
1036
|
}
|
|
1029
1037
|
this.searchTimeout = setTimeout(function () {
|
|
1030
|
-
|
|
1031
|
-
|
|
1038
|
+
_this10.searchValue = '';
|
|
1039
|
+
_this10.searchTimeout = null;
|
|
1032
1040
|
}, 500);
|
|
1033
1041
|
return matched;
|
|
1034
1042
|
},
|
|
@@ -1054,11 +1062,11 @@ var script = {
|
|
|
1054
1062
|
}
|
|
1055
1063
|
},
|
|
1056
1064
|
scrollInView: function scrollInView() {
|
|
1057
|
-
var
|
|
1065
|
+
var _this11 = this;
|
|
1058
1066
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
1059
1067
|
this.$nextTick(function () {
|
|
1060
|
-
var id = index !== -1 ? "".concat(
|
|
1061
|
-
var element = findSingle(
|
|
1068
|
+
var id = index !== -1 ? "".concat(_this11.$id, "_").concat(index) : _this11.focusedOptionId;
|
|
1069
|
+
var element = findSingle(_this11.list, "li[id=\"".concat(id, "\"]"));
|
|
1062
1070
|
if (element) {
|
|
1063
1071
|
element.scrollIntoView && element.scrollIntoView({
|
|
1064
1072
|
block: 'nearest',
|
|
@@ -1089,7 +1097,7 @@ var script = {
|
|
|
1089
1097
|
});
|
|
1090
1098
|
},
|
|
1091
1099
|
createProcessedOptions: function createProcessedOptions(options) {
|
|
1092
|
-
var
|
|
1100
|
+
var _this12 = this;
|
|
1093
1101
|
var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
1094
1102
|
var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1095
1103
|
var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
@@ -1104,7 +1112,7 @@ var script = {
|
|
|
1104
1112
|
parent: parent,
|
|
1105
1113
|
parentKey: parentKey
|
|
1106
1114
|
};
|
|
1107
|
-
newOption['children'] =
|
|
1115
|
+
newOption['children'] = _this12.createProcessedOptions(_this12.getOptionGroupChildren(option, level), level + 1, newOption, key);
|
|
1108
1116
|
processedOptions.push(newOption);
|
|
1109
1117
|
});
|
|
1110
1118
|
return processedOptions;
|
|
@@ -1131,9 +1139,9 @@ var script = {
|
|
|
1131
1139
|
return this.createProcessedOptions(this.options || []);
|
|
1132
1140
|
},
|
|
1133
1141
|
visibleOptions: function visibleOptions() {
|
|
1134
|
-
var
|
|
1142
|
+
var _this13 = this;
|
|
1135
1143
|
var processedOption = this.activeOptionPath && this.activeOptionPath.find(function (p) {
|
|
1136
|
-
return p.key ===
|
|
1144
|
+
return p.key === _this13.focusedOptionInfo.parentKey;
|
|
1137
1145
|
});
|
|
1138
1146
|
return processedOption ? processedOption.children : this.processedOptions;
|
|
1139
1147
|
},
|