primevue 3.28.0 → 3.29.0
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/README.md +3 -3
- package/autocomplete/AutoComplete.d.ts +153 -1
- package/autocomplete/AutoComplete.vue +46 -17
- package/autocomplete/autocomplete.cjs.js +80 -74
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +80 -75
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +81 -76
- package/autocomplete/autocomplete.min.js +1 -1
- package/basecomponent/BaseComponent.vue +19 -5
- package/basecomponent/basecomponent.cjs.js +19 -5
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +19 -5
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +20 -7
- package/basecomponent/basecomponent.min.js +1 -1
- package/calendar/Calendar.d.ts +269 -0
- package/calendar/Calendar.vue +75 -59
- package/calendar/calendar.cjs.js +223 -259
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +223 -260
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +224 -261
- package/calendar/calendar.min.js +1 -1
- package/carousel/Carousel.d.ts +154 -0
- package/carousel/Carousel.vue +27 -14
- package/carousel/carousel.cjs.js +64 -65
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +64 -66
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +65 -67
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +133 -0
- package/cascadeselect/CascadeSelect.vue +15 -12
- package/cascadeselect/CascadeSelectSub.vue +7 -3
- package/cascadeselect/cascadeselect.cjs.js +63 -66
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +63 -67
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +64 -68
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/Checkbox.d.ts +60 -0
- package/checkbox/Checkbox.vue +7 -5
- package/checkbox/checkbox.cjs.js +17 -15
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +17 -16
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +18 -17
- package/checkbox/checkbox.min.js +1 -1
- package/chips/Chips.d.ts +80 -0
- package/chips/Chips.vue +9 -5
- package/chips/chips.cjs.js +23 -24
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +23 -25
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +24 -26
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +76 -0
- package/colorpicker/ColorPicker.vue +11 -9
- package/colorpicker/colorpicker.cjs.js +28 -27
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +28 -28
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +29 -29
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +303 -2
- package/column/Column.vue +3 -0
- package/column/column.cjs.js +7 -0
- package/column/column.cjs.min.js +1 -1
- package/column/column.esm.js +3 -0
- package/column/column.esm.min.js +1 -1
- package/column/column.js +7 -2
- package/column/column.min.js +1 -1
- package/columngroup/ColumnGroup.d.ts +34 -0
- package/columngroup/ColumnGroup.vue +3 -0
- package/columngroup/columngroup.cjs.js +7 -0
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +3 -0
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +7 -2
- package/columngroup/columngroup.min.js +1 -1
- package/config/PrimeVue.d.ts +163 -2
- package/confirmdialog/ConfirmDialog.d.ts +14 -7
- package/contextmenu/ContextMenu.d.ts +1 -1
- package/core/core.js +448 -331
- package/core/core.min.js +9 -9
- package/datatable/BodyCell.vue +29 -13
- package/datatable/ColumnFilter.vue +49 -20
- package/datatable/DataTable.d.ts +188 -1
- package/datatable/DataTable.vue +25 -14
- package/datatable/FooterCell.vue +15 -1
- package/datatable/HeaderCell.vue +31 -6
- package/datatable/HeaderCheckbox.vue +35 -5
- package/datatable/RowCheckbox.vue +36 -5
- package/datatable/RowRadioButton.vue +26 -6
- package/datatable/TableBody.vue +41 -11
- package/datatable/TableFooter.vue +31 -5
- package/datatable/TableHeader.vue +53 -6
- package/datatable/datatable.cjs.js +559 -376
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +559 -377
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +560 -378
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +72 -0
- package/dataview/DataView.vue +13 -8
- package/dataview/dataview.cjs.js +33 -37
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +33 -38
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +33 -38
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +65 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +7 -5
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +19 -17
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +19 -18
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +20 -19
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
- package/dialog/Dialog.d.ts +6 -4
- package/dialog/Dialog.vue +2 -3
- package/dialog/dialog.cjs.js +4 -5
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +4 -5
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +4 -5
- package/dialog/dialog.min.js +1 -1
- package/dropdown/Dropdown.d.ts +162 -1
- package/dropdown/Dropdown.vue +44 -25
- package/dropdown/dropdown.cjs.js +97 -93
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +97 -94
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +98 -95
- package/dropdown/dropdown.min.js +1 -1
- package/editor/Editor.d.ts +67 -0
- package/editor/Editor.vue +35 -33
- package/editor/editor.cjs.js +88 -73
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +85 -74
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +89 -75
- package/editor/editor.min.js +1 -1
- package/fileupload/FileUpload.d.ts +23 -23
- package/fileupload/FileUpload.vue +3 -3
- package/fileupload/fileupload.cjs.js +4 -4
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +4 -4
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +4 -4
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/Galleria.d.ts +196 -0
- package/galleria/Galleria.vue +5 -3
- package/galleria/GalleriaContent.vue +10 -6
- package/galleria/GalleriaItem.vue +12 -9
- package/galleria/GalleriaThumbnails.vue +46 -9
- package/galleria/galleria.cjs.js +106 -104
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +106 -105
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +107 -106
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +170 -0
- package/image/Image.vue +49 -21
- package/image/image.cjs.js +94 -59
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +94 -60
- package/image/image.esm.min.js +1 -1
- package/image/image.js +95 -61
- package/image/image.min.js +1 -1
- package/inputmask/InputMask.d.ts +25 -0
- package/inputmask/InputMask.vue +3 -1
- package/inputmask/inputmask.cjs.js +9 -3
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +6 -4
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +10 -5
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/InputNumber.d.ts +69 -0
- package/inputnumber/InputNumber.vue +13 -11
- package/inputnumber/inputnumber.cjs.js +19 -28
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +19 -29
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +20 -30
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +51 -0
- package/inputswitch/InputSwitch.vue +7 -4
- package/inputswitch/inputswitch.cjs.js +15 -11
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +12 -12
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +16 -13
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/InputText.d.ts +25 -0
- package/inputtext/InputText.vue +4 -1
- package/inputtext/inputtext.cjs.js +9 -3
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +6 -4
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +10 -5
- package/inputtext/inputtext.min.js +1 -1
- package/knob/Knob.d.ts +78 -0
- package/knob/Knob.vue +8 -4
- package/knob/knob.cjs.js +17 -13
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +14 -14
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +18 -15
- package/knob/knob.min.js +1 -1
- package/listbox/Listbox.d.ts +137 -1
- package/listbox/Listbox.vue +28 -15
- package/listbox/listbox.cjs.js +83 -78
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +83 -79
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +84 -80
- package/listbox/listbox.min.js +1 -1
- package/megamenu/MegaMenu.d.ts +5 -5
- package/menu/Menu.d.ts +4 -4
- package/menubar/Menubar.d.ts +1 -1
- package/multiselect/MultiSelect.d.ts +223 -1
- package/multiselect/MultiSelect.vue +72 -41
- package/multiselect/multiselect.cjs.js +156 -151
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +156 -152
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +157 -153
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +94 -0
- package/orderlist/OrderList.vue +38 -18
- package/orderlist/orderlist.cjs.js +50 -36
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +50 -37
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +51 -38
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/OrganizationChart.d.ts +129 -0
- package/organizationchart/OrganizationChart.vue +14 -2
- package/organizationchart/OrganizationChartNode.vue +37 -16
- package/organizationchart/organizationchart.cjs.js +77 -61
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +77 -62
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +78 -63
- package/organizationchart/organizationchart.min.js +1 -1
- package/package.json +1 -1
- package/paginator/CurrentPageReport.vue +5 -1
- package/paginator/FirstPageLink.vue +13 -2
- package/paginator/JumpToPageDropdown.vue +3 -1
- package/paginator/JumpToPageInput.vue +3 -1
- package/paginator/LastPageLink.vue +13 -2
- package/paginator/NextPageLink.vue +13 -2
- package/paginator/PageLinks.vue +12 -2
- package/paginator/Paginator.d.ts +133 -0
- package/paginator/Paginator.vue +23 -12
- package/paginator/PrevPageLink.vue +13 -2
- package/paginator/RowsPerPageDropdown.vue +3 -1
- package/paginator/paginator.cjs.js +135 -76
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +135 -77
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +136 -78
- package/paginator/paginator.min.js +1 -1
- package/panelmenu/PanelMenu.d.ts +4 -8
- package/password/Password.d.ts +104 -0
- package/password/Password.vue +11 -9
- package/password/password.cjs.js +26 -28
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +26 -29
- package/password/password.esm.min.js +1 -1
- package/password/password.js +27 -30
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +160 -0
- package/picklist/PickList.vue +46 -34
- package/picklist/picklist.cjs.js +111 -85
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +111 -86
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +112 -87
- package/picklist/picklist.min.js +1 -1
- package/radiobutton/RadioButton.d.ts +55 -0
- package/radiobutton/RadioButton.vue +7 -5
- package/radiobutton/radiobutton.cjs.js +19 -16
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +16 -17
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +20 -18
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/Rating.d.ts +96 -0
- package/rating/Rating.vue +32 -9
- package/rating/rating.cjs.js +41 -34
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +41 -35
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +42 -36
- package/rating/rating.min.js +1 -1
- package/row/Row.d.ts +29 -0
- package/row/Row.vue +3 -0
- package/row/row.cjs.js +7 -0
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +3 -0
- package/row/row.esm.min.js +1 -1
- package/row/row.js +7 -2
- package/row/row.min.js +1 -1
- package/selectbutton/SelectButton.d.ts +68 -0
- package/selectbutton/SelectButton.vue +13 -2
- package/selectbutton/selectbutton.cjs.js +20 -10
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +20 -11
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +21 -12
- package/selectbutton/selectbutton.min.js +1 -1
- package/slider/Slider.d.ts +48 -0
- package/slider/Slider.vue +7 -2
- package/slider/slider.cjs.js +22 -16
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +19 -17
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +23 -18
- package/slider/slider.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +0 -4
- package/splitbutton/SplitButton.vue +2 -2
- package/splitbutton/splitbutton.cjs.js +7 -6
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +7 -6
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +7 -6
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/Splitter.d.ts +3 -3
- package/textarea/Textarea.d.ts +32 -0
- package/textarea/Textarea.vue +4 -1
- package/textarea/textarea.cjs.js +9 -3
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +6 -4
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +10 -5
- package/textarea/textarea.min.js +1 -1
- package/timeline/Timeline.d.ts +49 -0
- package/timeline/Timeline.vue +9 -7
- package/timeline/timeline.cjs.js +19 -21
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +16 -22
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +20 -23
- package/timeline/timeline.min.js +1 -1
- package/toast/Toast.d.ts +4 -0
- package/toast/Toast.vue +1 -1
- package/toast/toast.cjs.js +3 -3
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +3 -3
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +3 -3
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +59 -0
- package/togglebutton/ToggleButton.vue +7 -5
- package/togglebutton/togglebutton.cjs.js +15 -14
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +15 -15
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +16 -16
- package/togglebutton/togglebutton.min.js +1 -1
- package/tooltip/Tooltip.d.ts +10 -0
- package/tooltip/tooltip.cjs.js +51 -9
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +52 -10
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +51 -9
- package/tooltip/tooltip.min.js +1 -1
- package/tree/Tree.d.ts +137 -0
- package/tree/Tree.vue +12 -9
- package/tree/TreeNode.vue +23 -10
- package/tree/tree.cjs.js +85 -79
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +85 -80
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +86 -81
- package/tree/tree.min.js +1 -1
- package/treeselect/TreeSelect.d.ts +103 -1
- package/treeselect/TreeSelect.vue +15 -12
- package/treeselect/treeselect.cjs.js +37 -39
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +37 -40
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +38 -41
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BodyCell.vue +38 -10
- package/treetable/FooterCell.vue +15 -1
- package/treetable/HeaderCell.vue +28 -5
- package/treetable/TreeTable.d.ts +162 -0
- package/treetable/TreeTable.vue +25 -19
- package/treetable/TreeTableRow.vue +5 -0
- package/treetable/treetable.cjs.js +205 -158
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +205 -159
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +206 -160
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +93 -0
- package/tristatecheckbox/TriStateCheckbox.vue +19 -8
- package/tristatecheckbox/tristatecheckbox.cjs.js +31 -22
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +31 -23
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +32 -24
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/ts-helpers.d.ts +3 -1
- package/vetur-attributes.json +180 -0
- package/vetur-tags.json +94 -39
- package/virtualscroller/VirtualScroller.d.ts +97 -0
- package/virtualscroller/VirtualScroller.vue +7 -5
- package/virtualscroller/virtualscroller.cjs.js +22 -19
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +22 -20
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +23 -21
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +467 -3
- package/datatable/TableLoadingBody.vue +0 -25
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ObjectUtils } from 'primevue/utils';
|
|
2
|
+
import { mergeProps } from 'vue';
|
|
2
3
|
|
|
3
4
|
var script = {
|
|
4
5
|
name: 'BaseComponent',
|
|
@@ -9,17 +10,22 @@ var script = {
|
|
|
9
10
|
}
|
|
10
11
|
},
|
|
11
12
|
methods: {
|
|
12
|
-
|
|
13
|
+
getOption(obj = {}, key = '') {
|
|
13
14
|
const fKey = ObjectUtils.convertToFlatCase(key);
|
|
14
15
|
|
|
15
16
|
return obj[Object.keys(obj).find((k) => ObjectUtils.convertToFlatCase(k) === fKey) || ''];
|
|
16
17
|
},
|
|
17
18
|
getPTValue(obj = {}, key = '', params = {}) {
|
|
18
|
-
const self = ObjectUtils.getItemValue(this.
|
|
19
|
-
const
|
|
20
|
-
const
|
|
19
|
+
const self = ObjectUtils.getItemValue(this.getOption(obj, key), params);
|
|
20
|
+
const globalPT = ObjectUtils.getItemValue(this.getOption(this.defaultPT, key), params);
|
|
21
|
+
const merged = mergeProps(self, globalPT);
|
|
21
22
|
|
|
22
|
-
return
|
|
23
|
+
return merged;
|
|
24
|
+
/*
|
|
25
|
+
* @todo: The 'class' option in self can always be more powerful to style the component easily.
|
|
26
|
+
*
|
|
27
|
+
* return self && self['class'] ? { ...merged, ...{ class: self['class'] } } : merged;
|
|
28
|
+
*/
|
|
23
29
|
},
|
|
24
30
|
ptm(key = '', params = {}) {
|
|
25
31
|
return this.getPTValue(this.pt, key, { props: this.$props, state: this.$data, ...params });
|
|
@@ -27,6 +33,14 @@ var script = {
|
|
|
27
33
|
ptmo(obj = {}, key = '', params = {}) {
|
|
28
34
|
return this.getPTValue(obj, key, params);
|
|
29
35
|
}
|
|
36
|
+
},
|
|
37
|
+
computed: {
|
|
38
|
+
defaultPT() {
|
|
39
|
+
return ObjectUtils.getItemValue(this.getOption(this.$primevue.config.pt, this.$.type.name), this.defaultsParams);
|
|
40
|
+
},
|
|
41
|
+
defaultsParams() {
|
|
42
|
+
return { instance: this.$ };
|
|
43
|
+
}
|
|
30
44
|
}
|
|
31
45
|
};
|
|
32
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ObjectUtils as t}from"primevue/utils";var
|
|
1
|
+
import{ObjectUtils as t}from"primevue/utils";import{mergeProps as e}from"vue";var s={name:"BaseComponent",props:{pt:{type:Object,default:void 0}},methods:{getOption(e={},s=""){const a=t.convertToFlatCase(s);return e[Object.keys(e).find((e=>t.convertToFlatCase(e)===a))||""]},getPTValue(s={},a="",r={}){const i=t.getItemValue(this.getOption(s,a),r),o=t.getItemValue(this.getOption(this.defaultPT,a),r);return e(i,o)},ptm(t="",e={}){return this.getPTValue(this.pt,t,{props:this.$props,state:this.$data,...e})},ptmo(t={},e="",s={}){return this.getPTValue(t,e,s)}},computed:{defaultPT(){return t.getItemValue(this.getOption(this.$primevue.config.pt,this.$.type.name),this.defaultsParams)},defaultsParams(){return{instance:this.$}}}};export{s as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.basecomponent = (function (utils) {
|
|
2
|
+
this.primevue.basecomponent = (function (utils, vue) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
var script = {
|
|
@@ -11,17 +11,22 @@ this.primevue.basecomponent = (function (utils) {
|
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
methods: {
|
|
14
|
-
|
|
14
|
+
getOption(obj = {}, key = '') {
|
|
15
15
|
const fKey = utils.ObjectUtils.convertToFlatCase(key);
|
|
16
16
|
|
|
17
17
|
return obj[Object.keys(obj).find((k) => utils.ObjectUtils.convertToFlatCase(k) === fKey) || ''];
|
|
18
18
|
},
|
|
19
19
|
getPTValue(obj = {}, key = '', params = {}) {
|
|
20
|
-
const self = utils.ObjectUtils.getItemValue(this.
|
|
21
|
-
const
|
|
22
|
-
const
|
|
20
|
+
const self = utils.ObjectUtils.getItemValue(this.getOption(obj, key), params);
|
|
21
|
+
const globalPT = utils.ObjectUtils.getItemValue(this.getOption(this.defaultPT, key), params);
|
|
22
|
+
const merged = vue.mergeProps(self, globalPT);
|
|
23
23
|
|
|
24
|
-
return
|
|
24
|
+
return merged;
|
|
25
|
+
/*
|
|
26
|
+
* @todo: The 'class' option in self can always be more powerful to style the component easily.
|
|
27
|
+
*
|
|
28
|
+
* return self && self['class'] ? { ...merged, ...{ class: self['class'] } } : merged;
|
|
29
|
+
*/
|
|
25
30
|
},
|
|
26
31
|
ptm(key = '', params = {}) {
|
|
27
32
|
return this.getPTValue(this.pt, key, { props: this.$props, state: this.$data, ...params });
|
|
@@ -29,9 +34,17 @@ this.primevue.basecomponent = (function (utils) {
|
|
|
29
34
|
ptmo(obj = {}, key = '', params = {}) {
|
|
30
35
|
return this.getPTValue(obj, key, params);
|
|
31
36
|
}
|
|
37
|
+
},
|
|
38
|
+
computed: {
|
|
39
|
+
defaultPT() {
|
|
40
|
+
return utils.ObjectUtils.getItemValue(this.getOption(this.$primevue.config.pt, this.$.type.name), this.defaultsParams);
|
|
41
|
+
},
|
|
42
|
+
defaultsParams() {
|
|
43
|
+
return { instance: this.$ };
|
|
44
|
+
}
|
|
32
45
|
}
|
|
33
46
|
};
|
|
34
47
|
|
|
35
48
|
return script;
|
|
36
49
|
|
|
37
|
-
})(primevue.utils);
|
|
50
|
+
})(primevue.utils, Vue);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.basecomponent=function(t){"use strict";return{name:"BaseComponent",props:{pt:{type:Object,default:void 0}},methods:{
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.basecomponent=function(t,e){"use strict";return{name:"BaseComponent",props:{pt:{type:Object,default:void 0}},methods:{getOption(e={},s=""){const i=t.ObjectUtils.convertToFlatCase(s);return e[Object.keys(e).find((e=>t.ObjectUtils.convertToFlatCase(e)===i))||""]},getPTValue(s={},i="",r={}){const u=t.ObjectUtils.getItemValue(this.getOption(s,i),r),a=t.ObjectUtils.getItemValue(this.getOption(this.defaultPT,i),r);return e.mergeProps(u,a)},ptm(t="",e={}){return this.getPTValue(this.pt,t,{props:this.$props,state:this.$data,...e})},ptmo(t={},e="",s={}){return this.getPTValue(t,e,s)}},computed:{defaultPT(){return t.ObjectUtils.getItemValue(this.getOption(this.$primevue.config.pt,this.$.type.name),this.defaultsParams)},defaultsParams(){return{instance:this.$}}}}}(primevue.utils,Vue);
|
package/calendar/Calendar.d.ts
CHANGED
|
@@ -8,8 +8,19 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
|
|
11
|
+
import { ButtonPassThroughOptionType } from '../button';
|
|
11
12
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
12
13
|
|
|
14
|
+
export declare type CalendarPassThroughOptionType = CalendarPassThroughAttributes | ((options: CalendarPassThroughMethodOptions) => CalendarPassThroughAttributes) | null | undefined;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Custom passthrough(pt) option method.
|
|
18
|
+
*/
|
|
19
|
+
export interface CalendarPassThroughMethodOptions {
|
|
20
|
+
props: CalendarProps;
|
|
21
|
+
state: CalendarState;
|
|
22
|
+
}
|
|
23
|
+
|
|
13
24
|
/**
|
|
14
25
|
* Custom Calendar responsive options metadata.
|
|
15
26
|
*/
|
|
@@ -69,6 +80,259 @@ export interface CalendarBlurEvent {
|
|
|
69
80
|
value: string;
|
|
70
81
|
}
|
|
71
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Custom passthrough(pt) options.
|
|
85
|
+
* @see {@link CalendarProps.pt}
|
|
86
|
+
*/
|
|
87
|
+
export interface CalendarPassThroughOptions {
|
|
88
|
+
/**
|
|
89
|
+
* Uses to pass attributes to the root's DOM element.
|
|
90
|
+
*/
|
|
91
|
+
root?: CalendarPassThroughOptionType;
|
|
92
|
+
/**
|
|
93
|
+
* Uses to pass attributes to the input's DOM element.
|
|
94
|
+
*/
|
|
95
|
+
input?: CalendarPassThroughOptionType;
|
|
96
|
+
/**
|
|
97
|
+
* Uses to pass attributes to the Button component.
|
|
98
|
+
* @see {@link ButtonPassThroughOptionType}
|
|
99
|
+
*/
|
|
100
|
+
dropdownButton?: ButtonPassThroughOptionType;
|
|
101
|
+
/**
|
|
102
|
+
* Uses to pass attributes to the panel's DOM element.
|
|
103
|
+
*/
|
|
104
|
+
panel?: CalendarPassThroughOptionType;
|
|
105
|
+
/**
|
|
106
|
+
* Uses to pass attributes to the group container's DOM element.
|
|
107
|
+
*/
|
|
108
|
+
groupContainer?: CalendarPassThroughOptionType;
|
|
109
|
+
/**
|
|
110
|
+
* Uses to pass attributes to the group's DOM element.
|
|
111
|
+
*/
|
|
112
|
+
group?: CalendarPassThroughOptionType;
|
|
113
|
+
/**
|
|
114
|
+
* Uses to pass attributes to the header's DOM element.
|
|
115
|
+
*/
|
|
116
|
+
header?: CalendarPassThroughOptionType;
|
|
117
|
+
/**
|
|
118
|
+
* Uses to pass attributes to the Button component.
|
|
119
|
+
* @see {@link ButtonPassThroughOptionType}
|
|
120
|
+
*/
|
|
121
|
+
previousButton?: ButtonPassThroughOptionType;
|
|
122
|
+
/**
|
|
123
|
+
* Uses to pass attributes to the title's DOM element.
|
|
124
|
+
*/
|
|
125
|
+
title?: CalendarPassThroughOptionType;
|
|
126
|
+
/**
|
|
127
|
+
* Uses to pass attributes to the month title's DOM element.
|
|
128
|
+
*/
|
|
129
|
+
monthTitle?: CalendarPassThroughOptionType;
|
|
130
|
+
/**
|
|
131
|
+
* Uses to pass attributes to the year title's DOM element.
|
|
132
|
+
*/
|
|
133
|
+
yearTitle?: CalendarPassThroughOptionType;
|
|
134
|
+
/**
|
|
135
|
+
* Uses to pass attributes to the decade title's DOM element.
|
|
136
|
+
*/
|
|
137
|
+
decadeTitle?: CalendarPassThroughOptionType;
|
|
138
|
+
/**
|
|
139
|
+
* Uses to pass attributes to the Button component.
|
|
140
|
+
* @see {@link ButtonPassThroughOptionType}
|
|
141
|
+
*/
|
|
142
|
+
nextButton?: ButtonPassThroughOptionType;
|
|
143
|
+
/**
|
|
144
|
+
* Uses to pass attributes to the container's DOM element.
|
|
145
|
+
*/
|
|
146
|
+
container?: CalendarPassThroughOptionType;
|
|
147
|
+
/**
|
|
148
|
+
* Uses to pass attributes to the table's DOM element.
|
|
149
|
+
*/
|
|
150
|
+
table?: CalendarPassThroughOptionType;
|
|
151
|
+
/**
|
|
152
|
+
* Uses to pass attributes to the table header's DOM element.
|
|
153
|
+
*/
|
|
154
|
+
tableHeader?: CalendarPassThroughOptionType;
|
|
155
|
+
/**
|
|
156
|
+
* Uses to pass attributes to the table header row's DOM element.
|
|
157
|
+
*/
|
|
158
|
+
tableHeaderRow?: CalendarPassThroughOptionType;
|
|
159
|
+
/**
|
|
160
|
+
* Uses to pass attributes to the table header cell's DOM element.
|
|
161
|
+
*/
|
|
162
|
+
tableHeaderCell?: CalendarPassThroughOptionType;
|
|
163
|
+
/**
|
|
164
|
+
* Uses to pass attributes to the week label's DOM element.
|
|
165
|
+
*/
|
|
166
|
+
weekLabel?: CalendarPassThroughOptionType;
|
|
167
|
+
/**
|
|
168
|
+
* Uses to pass attributes to the week day's DOM element.
|
|
169
|
+
*/
|
|
170
|
+
weekDay?: CalendarPassThroughOptionType;
|
|
171
|
+
/**
|
|
172
|
+
* Uses to pass attributes to the table body's DOM element.
|
|
173
|
+
*/
|
|
174
|
+
tableBody?: CalendarPassThroughOptionType;
|
|
175
|
+
/**
|
|
176
|
+
* Uses to pass attributes to the table body row's DOM element.
|
|
177
|
+
*/
|
|
178
|
+
tableBodyRow?: CalendarPassThroughOptionType;
|
|
179
|
+
/**
|
|
180
|
+
* Uses to pass attributes to the week number's DOM element.
|
|
181
|
+
*/
|
|
182
|
+
weekNumber?: CalendarPassThroughOptionType;
|
|
183
|
+
/**
|
|
184
|
+
* Uses to pass attributes to the week label container's DOM element.
|
|
185
|
+
*/
|
|
186
|
+
weekLabelContainer?: CalendarPassThroughOptionType;
|
|
187
|
+
/**
|
|
188
|
+
* Uses to pass attributes to the day's DOM element.
|
|
189
|
+
*/
|
|
190
|
+
day?: CalendarPassThroughOptionType;
|
|
191
|
+
/**
|
|
192
|
+
* Uses to pass attributes to the day label's DOM element.
|
|
193
|
+
*/
|
|
194
|
+
dayLabel?: CalendarPassThroughOptionType;
|
|
195
|
+
/**
|
|
196
|
+
* Uses to pass attributes to the aria selected day's DOM element.
|
|
197
|
+
*/
|
|
198
|
+
ariaSelectedDay?: CalendarPassThroughOptionType;
|
|
199
|
+
/**
|
|
200
|
+
* Uses to pass attributes to the month picker's DOM element.
|
|
201
|
+
*/
|
|
202
|
+
monthPicker?: CalendarPassThroughOptionType;
|
|
203
|
+
/**
|
|
204
|
+
* Uses to pass attributes to the month's DOM element.
|
|
205
|
+
*/
|
|
206
|
+
month?: CalendarPassThroughOptionType;
|
|
207
|
+
/**
|
|
208
|
+
* Uses to pass attributes to the aria month's DOM element.
|
|
209
|
+
*/
|
|
210
|
+
ariaMonth?: CalendarPassThroughOptionType;
|
|
211
|
+
/**
|
|
212
|
+
* Uses to pass attributes to the year picker's DOM element.
|
|
213
|
+
*/
|
|
214
|
+
yearPicker?: CalendarPassThroughOptionType;
|
|
215
|
+
/**
|
|
216
|
+
* Uses to pass attributes to the year's DOM element.
|
|
217
|
+
*/
|
|
218
|
+
year?: CalendarPassThroughOptionType;
|
|
219
|
+
/**
|
|
220
|
+
* Uses to pass attributes to the aria year's DOM element.
|
|
221
|
+
*/
|
|
222
|
+
ariaYear?: CalendarPassThroughOptionType;
|
|
223
|
+
/**
|
|
224
|
+
* Uses to pass attributes to the time picker's DOM element.
|
|
225
|
+
*/
|
|
226
|
+
timePicker?: CalendarPassThroughOptionType;
|
|
227
|
+
/**
|
|
228
|
+
* Uses to pass attributes to the hour picker's DOM element.
|
|
229
|
+
*/
|
|
230
|
+
hourPicker?: CalendarPassThroughOptionType;
|
|
231
|
+
/**
|
|
232
|
+
* Uses to pass attributes to the hour's DOM element.
|
|
233
|
+
*/
|
|
234
|
+
hour?: CalendarPassThroughOptionType;
|
|
235
|
+
/**
|
|
236
|
+
* Uses to pass attributes to the separatorc ontainer's DOM element.
|
|
237
|
+
*/
|
|
238
|
+
separatorContainer?: CalendarPassThroughOptionType;
|
|
239
|
+
/**
|
|
240
|
+
* Uses to pass attributes to the separator's DOM element.
|
|
241
|
+
*/
|
|
242
|
+
separator?: CalendarPassThroughOptionType;
|
|
243
|
+
/**
|
|
244
|
+
* Uses to pass attributes to the minute picker's DOM element.
|
|
245
|
+
*/
|
|
246
|
+
minutePicker?: CalendarPassThroughOptionType;
|
|
247
|
+
/**
|
|
248
|
+
* Uses to pass attributes to the minute's DOM element.
|
|
249
|
+
*/
|
|
250
|
+
minute?: CalendarPassThroughOptionType;
|
|
251
|
+
/**
|
|
252
|
+
* Uses to pass attributes to the second picker's DOM element.
|
|
253
|
+
*/
|
|
254
|
+
secondPicker?: CalendarPassThroughOptionType;
|
|
255
|
+
/**
|
|
256
|
+
* Uses to pass attributes to the second's DOM element.
|
|
257
|
+
*/
|
|
258
|
+
second?: CalendarPassThroughOptionType;
|
|
259
|
+
/**
|
|
260
|
+
* Uses to pass attributes to the ampm picker's DOM element.
|
|
261
|
+
*/
|
|
262
|
+
ampmPicker?: CalendarPassThroughOptionType;
|
|
263
|
+
/**
|
|
264
|
+
* Uses to pass attributes to the ampm's DOM element.
|
|
265
|
+
*/
|
|
266
|
+
ampm?: CalendarPassThroughOptionType;
|
|
267
|
+
/**
|
|
268
|
+
* Uses to pass attributes to the buttonbar's DOM element.
|
|
269
|
+
*/
|
|
270
|
+
buttonbar?: CalendarPassThroughOptionType;
|
|
271
|
+
/**
|
|
272
|
+
* Uses to pass attributes to the Button component.
|
|
273
|
+
* @see {@link ButtonPassThroughOptionType}
|
|
274
|
+
*/
|
|
275
|
+
todayButton?: ButtonPassThroughOptionType;
|
|
276
|
+
/**
|
|
277
|
+
* Uses to pass attributes to the Button component.
|
|
278
|
+
* @see {@link ButtonPassThroughOptionType}
|
|
279
|
+
*/
|
|
280
|
+
clearButton?: ButtonPassThroughOptionType;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Custom passthrough attributes for each DOM elements
|
|
285
|
+
*/
|
|
286
|
+
export interface CalendarPassThroughAttributes {
|
|
287
|
+
[key: string]: any;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Defines current inline state in Calendar component.
|
|
292
|
+
*/
|
|
293
|
+
export interface CalendarState {
|
|
294
|
+
/**
|
|
295
|
+
* Current month as a number.
|
|
296
|
+
*/
|
|
297
|
+
currentMonth: number;
|
|
298
|
+
/**
|
|
299
|
+
* Current year as a number.
|
|
300
|
+
*/
|
|
301
|
+
currentYear: number;
|
|
302
|
+
/**
|
|
303
|
+
* Current hour as a number.
|
|
304
|
+
*/
|
|
305
|
+
currentHour: number;
|
|
306
|
+
/**
|
|
307
|
+
* Current minute as a number.
|
|
308
|
+
*/
|
|
309
|
+
currentMinute: number;
|
|
310
|
+
/**
|
|
311
|
+
* Current second as a number.
|
|
312
|
+
*/
|
|
313
|
+
currentSecond: number;
|
|
314
|
+
/**
|
|
315
|
+
* Current pm state as a boolean.
|
|
316
|
+
* @defaultValue false
|
|
317
|
+
*/
|
|
318
|
+
pm: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* Current focused state as a boolean.
|
|
321
|
+
* @defaultValue false
|
|
322
|
+
*/
|
|
323
|
+
focused: boolean;
|
|
324
|
+
/**
|
|
325
|
+
* Current overlay visible state as a boolean.
|
|
326
|
+
* @defaultValue false
|
|
327
|
+
*/
|
|
328
|
+
overlayVisible: boolean;
|
|
329
|
+
/**
|
|
330
|
+
* Current view state as a string.
|
|
331
|
+
* @defaultValue 'date'
|
|
332
|
+
*/
|
|
333
|
+
currentView: string;
|
|
334
|
+
}
|
|
335
|
+
|
|
72
336
|
/**
|
|
73
337
|
* Defines valid properties in Calendar component.
|
|
74
338
|
*/
|
|
@@ -336,6 +600,11 @@ export interface CalendarProps {
|
|
|
336
600
|
* Establishes a string value that labels the component.
|
|
337
601
|
*/
|
|
338
602
|
'aria-label'?: string | undefined;
|
|
603
|
+
/**
|
|
604
|
+
* Uses to pass attributes to DOM elements inside the component.
|
|
605
|
+
* @type {CalendarPassThroughOptions}
|
|
606
|
+
*/
|
|
607
|
+
pt?: CalendarPassThroughOptions;
|
|
339
608
|
}
|
|
340
609
|
|
|
341
610
|
/**
|