primevue 3.32.0 → 3.32.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/accordion/Accordion.d.ts +2 -2
- package/accordiontab/AccordionTab.d.ts +4 -3
- package/autocomplete/AutoComplete.d.ts +17 -7
- package/autocomplete/AutoComplete.vue +2 -2
- package/autocomplete/autocomplete.cjs.js +3 -2
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +3 -2
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +3 -2
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +2 -2
- package/avatargroup/AvatarGroup.d.ts +2 -2
- package/badge/Badge.d.ts +2 -2
- package/badgedirective/BadgeDirective.d.ts +2 -1
- package/basecomponent/BaseComponent.vue +67 -12
- package/basecomponent/basecomponent.cjs.js +76 -22
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +76 -22
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +76 -22
- package/basecomponent/basecomponent.min.js +1 -1
- package/basedirective/basedirective.cjs.js +47 -7
- package/basedirective/basedirective.cjs.min.js +1 -1
- package/basedirective/basedirective.esm.js +47 -7
- package/basedirective/basedirective.esm.min.js +1 -1
- package/basedirective/basedirective.js +47 -7
- package/basedirective/basedirective.min.js +1 -1
- package/baseicon/BaseIcon.vue +44 -32
- package/baseicon/baseicon.cjs.js +19 -30
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +19 -30
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +20 -32
- package/baseicon/baseicon.min.js +1 -1
- package/blockui/BlockUI.d.ts +2 -2
- package/breadcrumb/Breadcrumb.d.ts +2 -2
- package/button/Button.d.ts +2 -2
- package/button/Button.vue +2 -2
- package/button/button.cjs.js +2 -2
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +2 -2
- package/button/button.esm.min.js +1 -1
- package/button/button.js +2 -2
- package/button/button.min.js +1 -1
- package/calendar/Calendar.d.ts +30 -6
- package/calendar/Calendar.vue +9 -8
- package/calendar/calendar.cjs.js +19 -10
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +19 -10
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +19 -10
- package/calendar/calendar.min.js +1 -1
- package/card/Card.d.ts +2 -2
- package/carousel/Carousel.d.ts +2 -2
- package/carousel/Carousel.vue +2 -1
- package/carousel/carousel.cjs.js +4 -3
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +4 -3
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +4 -3
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/CascadeSelect.d.ts +2 -2
- package/chart/Chart.d.ts +2 -2
- package/checkbox/Checkbox.d.ts +2 -2
- package/chip/Chip.d.ts +6 -4
- package/chips/Chips.d.ts +13 -4
- package/chips/Chips.vue +1 -1
- package/chips/chips.cjs.js +1 -0
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +1 -0
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +1 -0
- package/chips/chips.min.js +1 -1
- package/colorpicker/ColorPicker.d.ts +2 -2
- package/colorpicker/ColorPicker.vue +1 -40
- package/colorpicker/colorpicker.cjs.js +8 -47
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +8 -47
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +8 -47
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/Column.d.ts +13 -10
- package/columngroup/ColumnGroup.d.ts +2 -2
- package/config/PrimeVue.d.ts +2 -2
- package/confirmdialog/ConfirmDialog.d.ts +3 -2
- package/confirmpopup/ConfirmPopup.d.ts +3 -2
- package/contextmenu/ContextMenu.d.ts +3 -2
- package/core/core.js +551 -489
- package/core/core.min.js +10 -10
- package/datatable/BodyCell.vue +2 -0
- package/datatable/DataTable.d.ts +4 -2
- package/datatable/DataTable.vue +45 -15
- package/datatable/TableBody.vue +1 -1
- package/datatable/datatable.cjs.js +119 -74
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +119 -74
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +119 -74
- package/datatable/datatable.min.js +1 -1
- package/dataview/DataView.d.ts +2 -2
- package/dataview/DataView.vue +2 -1
- package/dataview/dataview.cjs.js +4 -3
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +4 -3
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +4 -3
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +2 -2
- package/deferredcontent/DeferredContent.d.ts +2 -2
- package/dialog/Dialog.d.ts +13 -3
- package/dialog/Dialog.vue +10 -7
- package/dialog/dialog.cjs.js +13 -7
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +14 -8
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +13 -7
- package/dialog/dialog.min.js +1 -1
- package/divider/Divider.d.ts +2 -2
- package/dock/Dock.d.ts +2 -2
- package/dropdown/Dropdown.d.ts +21 -10
- package/dropdown/Dropdown.vue +9 -0
- package/dropdown/dropdown.cjs.js +8 -0
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +8 -0
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +8 -0
- package/dropdown/dropdown.min.js +1 -1
- package/editor/BaseEditor.vue +8 -6
- package/editor/Editor.d.ts +2 -2
- package/editor/editor.cjs.js +8 -6
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +8 -6
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +8 -6
- package/editor/editor.min.js +1 -1
- package/fieldset/Fieldset.d.ts +2 -2
- package/fileupload/FileUpload.d.ts +12 -7
- package/fileupload/FileUpload.vue +4 -0
- package/fileupload/fileupload.cjs.js +4 -0
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +4 -0
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +5 -2
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/FocusTrap.d.ts +2 -1
- package/galleria/Galleria.d.ts +2 -2
- package/galleria/GalleriaItem.vue +2 -2
- package/galleria/GalleriaThumbnails.vue +5 -1
- package/galleria/galleria.cjs.js +16 -7
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +16 -7
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +16 -7
- package/galleria/galleria.min.js +1 -1
- package/image/Image.d.ts +6 -4
- package/image/Image.vue +8 -6
- package/image/image.cjs.js +18 -5
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +19 -6
- package/image/image.esm.min.js +1 -1
- package/image/image.js +18 -5
- package/image/image.min.js +1 -1
- package/inlinemessage/InlineMessage.d.ts +2 -2
- package/inplace/Inplace.d.ts +2 -2
- package/inputmask/InputMask.d.ts +2 -2
- package/inputnumber/InputNumber.d.ts +2 -2
- package/inputnumber/InputNumber.vue +1 -0
- package/inputnumber/inputnumber.cjs.js +1 -0
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +1 -0
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +1 -0
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/InputSwitch.d.ts +2 -2
- package/inputtext/InputText.d.ts +2 -2
- package/knob/Knob.d.ts +2 -2
- package/listbox/Listbox.d.ts +11 -5
- package/megamenu/MegaMenu.d.ts +3 -2
- package/menu/Menu.d.ts +2 -2
- package/menubar/Menubar.d.ts +3 -2
- package/message/BaseMessage.vue +5 -0
- package/message/Message.d.ts +4 -2
- package/message/message.cjs.js +1 -1
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +1 -1
- package/message/message.esm.min.js +1 -1
- package/message/message.js +1 -1
- package/message/message.min.js +1 -1
- package/multiselect/MultiSelect.d.ts +16 -6
- package/multiselect/MultiSelect.vue +1 -1
- package/multiselect/multiselect.cjs.js +1 -0
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +1 -0
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +1 -0
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/OrderList.d.ts +2 -2
- package/organizationchart/OrganizationChart.d.ts +2 -2
- package/overlaypanel/OverlayPanel.d.ts +2 -2
- package/package.json +9 -4
- package/paginator/Paginator.d.ts +2 -2
- package/panel/Panel.d.ts +3 -2
- package/panelmenu/PanelMenu.d.ts +3 -2
- package/passthrough/index.cjs.js +16 -60
- package/passthrough/index.cjs.min.js +1 -1
- package/passthrough/index.d.ts +0 -9
- package/passthrough/index.esm.js +16 -60
- package/passthrough/index.esm.min.js +1 -1
- package/passthrough/index.js +18 -59
- package/passthrough/index.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +365 -359
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.d.ts +1 -2
- package/passthrough/tailwind/index.esm.js +365 -359
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +365 -359
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/Password.d.ts +6 -4
- package/password/Password.vue +1 -0
- package/password/password.cjs.js +2 -1
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +2 -1
- package/password/password.esm.min.js +1 -1
- package/password/password.js +2 -1
- package/password/password.min.js +1 -1
- package/picklist/PickList.d.ts +2 -2
- package/picklist/PickList.vue +9 -7
- package/picklist/picklist.cjs.js +27 -9
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +27 -9
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +27 -9
- package/picklist/picklist.min.js +1 -1
- package/progressbar/ProgressBar.d.ts +2 -2
- package/progressspinner/ProgressSpinner.d.ts +2 -2
- package/radiobutton/RadioButton.d.ts +2 -2
- package/rating/Rating.d.ts +3 -2
- package/resources/themes/arya-blue/theme.css +4 -4
- package/resources/themes/arya-green/theme.css +4 -4
- package/resources/themes/arya-orange/theme.css +4 -4
- package/resources/themes/arya-purple/theme.css +4 -4
- package/resources/themes/bootstrap4-dark-blue/theme.css +8 -11
- package/resources/themes/bootstrap4-dark-purple/theme.css +8 -11
- package/resources/themes/bootstrap4-light-blue/theme.css +8 -11
- package/resources/themes/bootstrap4-light-purple/theme.css +8 -11
- package/resources/themes/fluent-light/theme.css +4 -4
- package/resources/themes/lara-dark-blue/theme.css +4 -4
- package/resources/themes/lara-dark-indigo/theme.css +4 -4
- package/resources/themes/lara-dark-purple/theme.css +4 -4
- package/resources/themes/lara-dark-teal/theme.css +4 -4
- package/resources/themes/lara-light-blue/theme.css +4 -4
- package/resources/themes/lara-light-indigo/theme.css +4 -4
- package/resources/themes/lara-light-purple/theme.css +4 -4
- package/resources/themes/lara-light-teal/theme.css +4 -4
- package/resources/themes/luna-amber/theme.css +4 -4
- package/resources/themes/luna-blue/theme.css +4 -4
- package/resources/themes/luna-green/theme.css +4 -4
- package/resources/themes/luna-pink/theme.css +4 -4
- package/resources/themes/md-dark-deeppurple/theme.css +4 -4
- package/resources/themes/md-dark-indigo/theme.css +4 -4
- package/resources/themes/md-light-deeppurple/theme.css +4 -4
- package/resources/themes/md-light-indigo/theme.css +4 -4
- package/resources/themes/mdc-dark-deeppurple/theme.css +4 -4
- package/resources/themes/mdc-dark-indigo/theme.css +4 -4
- package/resources/themes/mdc-light-deeppurple/theme.css +4 -4
- package/resources/themes/mdc-light-indigo/theme.css +4 -4
- package/resources/themes/mira/theme.css +4 -4
- package/resources/themes/nano/theme.css +4 -4
- package/resources/themes/nova/theme.css +4 -4
- package/resources/themes/nova-accent/theme.css +4 -4
- package/resources/themes/nova-alt/theme.css +4 -4
- package/resources/themes/nova-vue/theme.css +4 -4
- package/resources/themes/rhea/theme.css +4 -4
- package/resources/themes/saga-blue/theme.css +4 -4
- package/resources/themes/saga-green/theme.css +4 -4
- package/resources/themes/saga-orange/theme.css +4 -4
- package/resources/themes/saga-purple/theme.css +4 -4
- package/resources/themes/soho-dark/theme.css +4 -4
- package/resources/themes/soho-light/theme.css +4 -4
- package/resources/themes/tailwind-light/theme.css +4 -4
- package/resources/themes/vela-blue/theme.css +4 -4
- package/resources/themes/vela-green/theme.css +4 -4
- package/resources/themes/vela-orange/theme.css +4 -4
- package/resources/themes/vela-purple/theme.css +4 -4
- package/resources/themes/viva-dark/theme.css +4 -4
- package/resources/themes/viva-light/theme.css +4 -4
- package/ripple/Ripple.d.ts +2 -1
- package/scrollpanel/ScrollPanel.d.ts +2 -2
- package/scrolltop/ScrollTop.d.ts +2 -2
- package/selectbutton/SelectButton.d.ts +6 -2
- package/selectbutton/SelectButton.vue +2 -1
- package/selectbutton/selectbutton.cjs.js +2 -1
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +2 -1
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +2 -1
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/Sidebar.d.ts +10 -4
- package/sidebar/Sidebar.vue +2 -2
- package/sidebar/sidebar.cjs.js +4 -2
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +5 -3
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +4 -2
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/Skeleton.d.ts +2 -2
- package/slider/Slider.d.ts +2 -2
- package/speeddial/SpeedDial.d.ts +9 -7
- package/speeddial/SpeedDial.vue +1 -1
- package/speeddial/speeddial.cjs.js +1 -1
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +1 -1
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +1 -1
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/SplitButton.d.ts +4 -2
- package/splitter/Splitter.d.ts +2 -2
- package/splitterpanel/SplitterPanel.d.ts +2 -2
- package/steps/Steps.d.ts +2 -2
- package/styleclass/StyleClass.d.ts +2 -1
- package/tabmenu/TabMenu.d.ts +2 -2
- package/tabpanel/TabPanel.d.ts +2 -2
- package/tabview/TabView.d.ts +2 -2
- package/tag/Tag.d.ts +2 -2
- package/terminal/Terminal.d.ts +2 -2
- package/textarea/Textarea.d.ts +2 -2
- package/tieredmenu/TieredMenu.d.ts +3 -2
- package/timeline/Timeline.d.ts +2 -2
- package/toast/BaseToast.vue +2 -0
- package/toast/Toast.d.ts +16 -4
- package/toast/toast.cjs.js +1 -1
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +1 -1
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +1 -1
- package/toast/toast.min.js +1 -1
- package/togglebutton/ToggleButton.d.ts +3 -2
- package/toolbar/Toolbar.d.ts +2 -2
- package/tooltip/Tooltip.d.ts +2 -1
- package/tree/Tree.d.ts +6 -2
- package/treeselect/TreeSelect.d.ts +3 -2
- package/treetable/TreeTable.d.ts +3 -2
- package/treetable/TreeTable.vue +4 -2
- package/treetable/treetable.cjs.js +6 -5
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +6 -5
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +6 -5
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/TriStateCheckbox.d.ts +5 -2
- package/ts-helpers.d.ts +2 -0
- package/virtualscroller/VirtualScroller.d.ts +8 -6
- package/web-types.json +1 -1
package/baseicon/baseicon.esm.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { useStyle } from 'primevue/usestyle';
|
|
1
2
|
import { ObjectUtils } from 'primevue/utils';
|
|
2
3
|
|
|
4
|
+
var styles = "\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n";
|
|
5
|
+
var _useStyle = useStyle(styles, {
|
|
6
|
+
name: 'baseicon',
|
|
7
|
+
manual: true
|
|
8
|
+
}),
|
|
9
|
+
loadStyle = _useStyle.load;
|
|
3
10
|
var script = {
|
|
4
11
|
name: 'BaseIcon',
|
|
5
12
|
props: {
|
|
@@ -12,6 +19,12 @@ var script = {
|
|
|
12
19
|
"default": false
|
|
13
20
|
}
|
|
14
21
|
},
|
|
22
|
+
beforeMount: function beforeMount() {
|
|
23
|
+
var _this$$config;
|
|
24
|
+
loadStyle(undefined, {
|
|
25
|
+
nonce: (_this$$config = this.$config) === null || _this$$config === void 0 || (_this$$config = _this$$config.csp) === null || _this$$config === void 0 ? void 0 : _this$$config.nonce
|
|
26
|
+
});
|
|
27
|
+
},
|
|
15
28
|
methods: {
|
|
16
29
|
pti: function pti() {
|
|
17
30
|
var isLabelEmpty = ObjectUtils.isEmpty(this.label);
|
|
@@ -24,37 +37,13 @@ var script = {
|
|
|
24
37
|
'aria-hidden': isLabelEmpty
|
|
25
38
|
};
|
|
26
39
|
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var insertAt = ref.insertAt;
|
|
33
|
-
|
|
34
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
35
|
-
|
|
36
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
37
|
-
var style = document.createElement('style');
|
|
38
|
-
style.type = 'text/css';
|
|
39
|
-
|
|
40
|
-
if (insertAt === 'top') {
|
|
41
|
-
if (head.firstChild) {
|
|
42
|
-
head.insertBefore(style, head.firstChild);
|
|
43
|
-
} else {
|
|
44
|
-
head.appendChild(style);
|
|
40
|
+
},
|
|
41
|
+
computed: {
|
|
42
|
+
$config: function $config() {
|
|
43
|
+
var _this$$primevue;
|
|
44
|
+
return (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.config;
|
|
45
45
|
}
|
|
46
|
-
} else {
|
|
47
|
-
head.appendChild(style);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
if (style.styleSheet) {
|
|
51
|
-
style.styleSheet.cssText = css;
|
|
52
|
-
} else {
|
|
53
|
-
style.appendChild(document.createTextNode(css));
|
|
54
46
|
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
var css_248z = "\n.p-icon {\n display: inline-block;\n}\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n@-webkit-keyframes p-icon-spin {\n0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n}\n}\n@keyframes p-icon-spin {\n0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n}\n}\n";
|
|
58
|
-
styleInject(css_248z);
|
|
47
|
+
};
|
|
59
48
|
|
|
60
49
|
export { script as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useStyle as n}from"primevue/usestyle";import{ObjectUtils as i}from"primevue/utils";var e=n("\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n",{name:"baseicon",manual:!0}).load,o={name:"BaseIcon",props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},beforeMount:function(){var n;e(void 0,{nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce})},methods:{pti:function(){var n=i.isEmpty(this.label);return{class:["p-icon",{"p-icon-spin":this.spin}],role:n?void 0:"img","aria-label":n?void 0:this.label,"aria-hidden":n}}},computed:{$config:function(){var n;return null===(n=this.$primevue)||void 0===n?void 0:n.config}}};export{o as default};
|
package/baseicon/baseicon.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.baseicon = (function (utils) {
|
|
2
|
+
this.primevue.baseicon = (function (usestyle, utils) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
+
var styles = "\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n";
|
|
6
|
+
var _useStyle = usestyle.useStyle(styles, {
|
|
7
|
+
name: 'baseicon',
|
|
8
|
+
manual: true
|
|
9
|
+
}),
|
|
10
|
+
loadStyle = _useStyle.load;
|
|
5
11
|
var script = {
|
|
6
12
|
name: 'BaseIcon',
|
|
7
13
|
props: {
|
|
@@ -14,6 +20,12 @@ this.primevue.baseicon = (function (utils) {
|
|
|
14
20
|
"default": false
|
|
15
21
|
}
|
|
16
22
|
},
|
|
23
|
+
beforeMount: function beforeMount() {
|
|
24
|
+
var _this$$config;
|
|
25
|
+
loadStyle(undefined, {
|
|
26
|
+
nonce: (_this$$config = this.$config) === null || _this$$config === void 0 || (_this$$config = _this$$config.csp) === null || _this$$config === void 0 ? void 0 : _this$$config.nonce
|
|
27
|
+
});
|
|
28
|
+
},
|
|
17
29
|
methods: {
|
|
18
30
|
pti: function pti() {
|
|
19
31
|
var isLabelEmpty = utils.ObjectUtils.isEmpty(this.label);
|
|
@@ -26,39 +38,15 @@ this.primevue.baseicon = (function (utils) {
|
|
|
26
38
|
'aria-hidden': isLabelEmpty
|
|
27
39
|
};
|
|
28
40
|
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var insertAt = ref.insertAt;
|
|
35
|
-
|
|
36
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
37
|
-
|
|
38
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
39
|
-
var style = document.createElement('style');
|
|
40
|
-
style.type = 'text/css';
|
|
41
|
-
|
|
42
|
-
if (insertAt === 'top') {
|
|
43
|
-
if (head.firstChild) {
|
|
44
|
-
head.insertBefore(style, head.firstChild);
|
|
45
|
-
} else {
|
|
46
|
-
head.appendChild(style);
|
|
41
|
+
},
|
|
42
|
+
computed: {
|
|
43
|
+
$config: function $config() {
|
|
44
|
+
var _this$$primevue;
|
|
45
|
+
return (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.config;
|
|
47
46
|
}
|
|
48
|
-
} else {
|
|
49
|
-
head.appendChild(style);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (style.styleSheet) {
|
|
53
|
-
style.styleSheet.cssText = css;
|
|
54
|
-
} else {
|
|
55
|
-
style.appendChild(document.createTextNode(css));
|
|
56
47
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
var css_248z = "\n.p-icon {\n display: inline-block;\n}\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n@-webkit-keyframes p-icon-spin {\n0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n}\n}\n@keyframes p-icon-spin {\n0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n}\n100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n}\n}\n";
|
|
60
|
-
styleInject(css_248z);
|
|
48
|
+
};
|
|
61
49
|
|
|
62
50
|
return script;
|
|
63
51
|
|
|
64
|
-
})(primevue.utils);
|
|
52
|
+
})(primevue.usestyle, primevue.utils);
|
package/baseicon/baseicon.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.baseicon=function(
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.baseicon=function(n,i){"use strict";var e=n.useStyle("\n.p-icon {\n display: inline-block;\n}\n\n.p-icon-spin {\n -webkit-animation: p-icon-spin 2s infinite linear;\n animation: p-icon-spin 2s infinite linear;\n}\n\n@-webkit-keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n\n@keyframes p-icon-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n transform: rotate(359deg);\n }\n}\n",{name:"baseicon",manual:!0}).load;return{name:"BaseIcon",props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},beforeMount:function(){var n;e(void 0,{nonce:null===(n=this.$config)||void 0===n||null===(n=n.csp)||void 0===n?void 0:n.nonce})},methods:{pti:function(){var n=i.ObjectUtils.isEmpty(this.label);return{class:["p-icon",{"p-icon-spin":this.spin}],role:n?void 0:"img","aria-label":n?void 0:this.label,"aria-hidden":n}}},computed:{$config:function(){var n;return null===(n=this.$primevue)||void 0===n?void 0:n.config}}}}(primevue.usestyle,primevue.utils);
|
package/blockui/BlockUI.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
12
|
+
import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
|
|
13
13
|
|
|
14
14
|
export declare type BlockUIPassThroughOptionType = BlockUIPassThroughAttributes | ((options: BlockUIPassThroughMethodOptions) => BlockUIPassThroughAttributes | string) | string | null | undefined;
|
|
15
15
|
|
|
@@ -88,7 +88,7 @@ export interface BlockUIProps {
|
|
|
88
88
|
* Used to pass attributes to DOM elements inside the component.
|
|
89
89
|
* @type {BlockUIPassThroughOptions}
|
|
90
90
|
*/
|
|
91
|
-
pt?: BlockUIPassThroughOptions
|
|
91
|
+
pt?: PTOptions<BlockUIPassThroughOptions>;
|
|
92
92
|
/**
|
|
93
93
|
* When enabled, it removes component related styles in the core.
|
|
94
94
|
* @defaultValue false
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
12
|
import { MenuItem } from '../menuitem';
|
|
13
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
13
|
+
import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
|
|
14
14
|
|
|
15
15
|
export declare type BreadcrumbPassThroughOptionType = BreadcrumbPassThroughAttributes | ((options: BreadcrumbPassThroughMethodOptions) => BreadcrumbPassThroughAttributes | string) | string | null | undefined;
|
|
16
16
|
|
|
@@ -117,7 +117,7 @@ export interface BreadcrumbProps {
|
|
|
117
117
|
* Used to pass attributes to DOM elements inside the component.
|
|
118
118
|
* @type {BreadcrumbPassThroughOptions}
|
|
119
119
|
*/
|
|
120
|
-
pt?: BreadcrumbPassThroughOptions
|
|
120
|
+
pt?: PTOptions<BreadcrumbPassThroughOptions>;
|
|
121
121
|
/**
|
|
122
122
|
* When enabled, it removes component related styles in the core.
|
|
123
123
|
* @defaultValue false
|
package/button/Button.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { ButtonHTMLAttributes, VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
12
|
+
import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
|
|
13
13
|
|
|
14
14
|
export declare type ButtonPassThroughOptionType = ButtonPassThroughAttributes | ((options: ButtonPassThroughMethodOptions) => ButtonPassThroughAttributes | string) | string | null | undefined;
|
|
15
15
|
|
|
@@ -150,7 +150,7 @@ export interface ButtonProps extends ButtonHTMLAttributes {
|
|
|
150
150
|
* Used to pass attributes to DOM elements inside the component.
|
|
151
151
|
* @type {ButtonPassThroughOptions}
|
|
152
152
|
*/
|
|
153
|
-
pt?: ButtonPassThroughOptions
|
|
153
|
+
pt?: PTOptions<ButtonPassThroughOptions>;
|
|
154
154
|
/**
|
|
155
155
|
* When enabled, it removes component related styles in the core.
|
|
156
156
|
* @defaultValue false
|
package/button/Button.vue
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<span v-if="loadingIcon" :class="[cx('loadingIcon'), cx('icon'), loadingIcon]" v-bind="ptm('loadingIcon')" />
|
|
6
6
|
<SpinnerIcon v-else :class="[cx('loadingIcon'), cx('icon')]" spin v-bind="ptm('loadingIcon')" />
|
|
7
7
|
</slot>
|
|
8
|
-
<slot v-else name="icon" :class="cx('icon')">
|
|
9
|
-
<span v-if="icon" :class="[cx('icon'), icon]" v-bind="ptm('icon')"></span>
|
|
8
|
+
<slot v-else name="icon" :class="[cx('icon')]">
|
|
9
|
+
<span v-if="icon" :class="[cx('icon'), icon, iconClass]" v-bind="ptm('icon')"></span>
|
|
10
10
|
</slot>
|
|
11
11
|
<span :class="cx('label')" v-bind="ptm('label')">{{ label || ' ' }}</span>
|
|
12
12
|
<Badge v-if="badge" :value="badge" :class="badgeClass" :unstyled="unstyled" v-bind="ptm('badge')"></Badge>
|
package/button/button.cjs.js
CHANGED
|
@@ -187,11 +187,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
187
187
|
}, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
|
|
188
188
|
}) : vue.renderSlot(_ctx.$slots, "icon", {
|
|
189
189
|
key: 1,
|
|
190
|
-
"class": vue.normalizeClass(_ctx.cx('icon'))
|
|
190
|
+
"class": vue.normalizeClass([_ctx.cx('icon')])
|
|
191
191
|
}, function () {
|
|
192
192
|
return [_ctx.icon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
193
193
|
key: 0,
|
|
194
|
-
"class": [_ctx.cx('icon'), _ctx.icon]
|
|
194
|
+
"class": [_ctx.cx('icon'), _ctx.icon, _ctx.iconClass]
|
|
195
195
|
}, _ctx.ptm('icon')), null, 16)) : vue.createCommentVNode("", true)];
|
|
196
196
|
}), vue.createElementVNode("span", vue.mergeProps({
|
|
197
197
|
"class": _ctx.cx('label')
|
package/button/button.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("primevue/badge"),t=require("primevue/icons/spinner"),n=require("primevue/ripple"),o=require("primevue/basecomponent"),l=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e),r=i(t),s=i(n);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=d(e,"string");return"symbol"===u(t)?t:String(t)}function d(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={name:"Button",extends:{name:"BaseButton",extends:i(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},css:{classes:{root:function(e){var t,n=e.instance,o=e.props;return["p-button p-component",(t={"p-button-icon-only":n.hasIcon&&!o.label&&!o.badge,"p-button-vertical":("top"===o.iconPos||"bottom"===o.iconPos)&&o.label,"p-disabled":n.$attrs.disabled||""===n.$attrs.disabled||o.loading,"p-button-loading":o.loading,"p-button-loading-label-only":o.loading&&!n.hasIcon&&o.label,"p-button-link":o.link},c(t,"p-button-".concat(o.severity),o.severity),c(t,"p-button-raised",o.raised),c(t,"p-button-rounded",o.rounded),c(t,"p-button-text",o.text),c(t,"p-button-outlined",o.outlined),c(t,"p-button-sm","small"===o.size),c(t,"p-button-lg","large"===o.size),c(t,"p-button-plain",o.plain),t)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var t=e.props;return["p-button-icon",{"p-button-icon-left":"left"===t.iconPos&&t.label,"p-button-icon-right":"right"===t.iconPos&&t.label,"p-button-icon-top":"top"===t.iconPos&&t.label,"p-button-icon-bottom":"bottom"===t.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){var t,n;return this.ptm(e,{parent:{props:null===(t=this.$parent)||void 0===t?void 0:t.$props,state:null===(n=this.$parent)||void 0===n?void 0:n.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:r.default,Badge:a.default},directives:{ripple:s.default}},f=["aria-label","disabled","data-pc-severity"];b.render=function(e,t,n,o,i,a){var r=l.resolveComponent("SpinnerIcon"),s=l.resolveComponent("Badge"),u=l.resolveDirective("ripple");return l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({class:e.cx("root"),type:"button","aria-label":a.defaultAriaLabel,disabled:a.disabled},a.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[l.renderSlot(e.$slots,"default",{},(function(){return[e.loading?l.renderSlot(e.$slots,"loadingicon",{key:0,class:l.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(l.openBlock(),l.createBlock(r,l.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):l.renderSlot(e.$slots,"icon",{key:1,class:l.normalizeClass(e.cx("icon"))},(function(){return[e.icon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):l.createCommentVNode("",!0)]})),l.createElementVNode("span",l.mergeProps({class:e.cx("label")},e.ptm("label")),l.toDisplayString(e.label||" "),17),e.badge?(l.openBlock(),l.createBlock(s,l.mergeProps({key:2,value:e.badge,class:e.badgeClass,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","unstyled"])):l.createCommentVNode("",!0)]}))],16,f)),[[u]])},module.exports=b;
|
|
1
|
+
"use strict";var e=require("primevue/badge"),t=require("primevue/icons/spinner"),n=require("primevue/ripple"),o=require("primevue/basecomponent"),l=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e),r=i(t),s=i(n);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=d(e,"string");return"symbol"===u(t)?t:String(t)}function d(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={name:"Button",extends:{name:"BaseButton",extends:i(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},css:{classes:{root:function(e){var t,n=e.instance,o=e.props;return["p-button p-component",(t={"p-button-icon-only":n.hasIcon&&!o.label&&!o.badge,"p-button-vertical":("top"===o.iconPos||"bottom"===o.iconPos)&&o.label,"p-disabled":n.$attrs.disabled||""===n.$attrs.disabled||o.loading,"p-button-loading":o.loading,"p-button-loading-label-only":o.loading&&!n.hasIcon&&o.label,"p-button-link":o.link},c(t,"p-button-".concat(o.severity),o.severity),c(t,"p-button-raised",o.raised),c(t,"p-button-rounded",o.rounded),c(t,"p-button-text",o.text),c(t,"p-button-outlined",o.outlined),c(t,"p-button-sm","small"===o.size),c(t,"p-button-lg","large"===o.size),c(t,"p-button-plain",o.plain),t)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var t=e.props;return["p-button-icon",{"p-button-icon-left":"left"===t.iconPos&&t.label,"p-button-icon-right":"right"===t.iconPos&&t.label,"p-button-icon-top":"top"===t.iconPos&&t.label,"p-button-icon-bottom":"bottom"===t.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){var t,n;return this.ptm(e,{parent:{props:null===(t=this.$parent)||void 0===t?void 0:t.$props,state:null===(n=this.$parent)||void 0===n?void 0:n.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:r.default,Badge:a.default},directives:{ripple:s.default}},f=["aria-label","disabled","data-pc-severity"];b.render=function(e,t,n,o,i,a){var r=l.resolveComponent("SpinnerIcon"),s=l.resolveComponent("Badge"),u=l.resolveDirective("ripple");return l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({class:e.cx("root"),type:"button","aria-label":a.defaultAriaLabel,disabled:a.disabled},a.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[l.renderSlot(e.$slots,"default",{},(function(){return[e.loading?l.renderSlot(e.$slots,"loadingicon",{key:0,class:l.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(l.openBlock(),l.createBlock(r,l.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):l.renderSlot(e.$slots,"icon",{key:1,class:l.normalizeClass([e.cx("icon")])},(function(){return[e.icon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):l.createCommentVNode("",!0)]})),l.createElementVNode("span",l.mergeProps({class:e.cx("label")},e.ptm("label")),l.toDisplayString(e.label||" "),17),e.badge?(l.openBlock(),l.createBlock(s,l.mergeProps({key:2,value:e.badge,class:e.badgeClass,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","unstyled"])):l.createCommentVNode("",!0)]}))],16,f)),[[u]])},module.exports=b;
|
package/button/button.esm.js
CHANGED
|
@@ -178,11 +178,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
178
178
|
}, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
|
|
179
179
|
}) : renderSlot(_ctx.$slots, "icon", {
|
|
180
180
|
key: 1,
|
|
181
|
-
"class": normalizeClass(_ctx.cx('icon'))
|
|
181
|
+
"class": normalizeClass([_ctx.cx('icon')])
|
|
182
182
|
}, function () {
|
|
183
183
|
return [_ctx.icon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
184
184
|
key: 0,
|
|
185
|
-
"class": [_ctx.cx('icon'), _ctx.icon]
|
|
185
|
+
"class": [_ctx.cx('icon'), _ctx.icon, _ctx.iconClass]
|
|
186
186
|
}, _ctx.ptm('icon')), null, 16)) : createCommentVNode("", true)];
|
|
187
187
|
}), createElementVNode("span", mergeProps({
|
|
188
188
|
"class": _ctx.cx('label')
|
package/button/button.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"primevue/badge";import n from"primevue/icons/spinner";import e from"primevue/ripple";import o from"primevue/basecomponent";import{resolveComponent as l,resolveDirective as i,withDirectives as a,openBlock as r,createElementBlock as s,mergeProps as u,renderSlot as p,normalizeClass as
|
|
1
|
+
import t from"primevue/badge";import n from"primevue/icons/spinner";import e from"primevue/ripple";import o from"primevue/basecomponent";import{resolveComponent as l,resolveDirective as i,withDirectives as a,openBlock as r,createElementBlock as s,mergeProps as u,renderSlot as p,normalizeClass as c,createBlock as d,createCommentVNode as b,createElementVNode as f,toDisplayString as g}from"vue";function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function m(t,n,e){return(n=v(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function v(t){var n=h(t,"string");return"symbol"===y(n)?n:String(n)}function h(t,n){if("object"!==y(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,n||"default");if("object"!==y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}var S={name:"Button",extends:{name:"BaseButton",extends:o,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},css:{classes:{root:function(t){var n,e=t.instance,o=t.props;return["p-button p-component",(n={"p-button-icon-only":e.hasIcon&&!o.label&&!o.badge,"p-button-vertical":("top"===o.iconPos||"bottom"===o.iconPos)&&o.label,"p-disabled":e.$attrs.disabled||""===e.$attrs.disabled||o.loading,"p-button-loading":o.loading,"p-button-loading-label-only":o.loading&&!e.hasIcon&&o.label,"p-button-link":o.link},m(n,"p-button-".concat(o.severity),o.severity),m(n,"p-button-raised",o.raised),m(n,"p-button-rounded",o.rounded),m(n,"p-button-text",o.text),m(n,"p-button-outlined",o.outlined),m(n,"p-button-sm","small"===o.size),m(n,"p-button-lg","large"===o.size),m(n,"p-button-plain",o.plain),n)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(t){var n=t.props;return["p-button-icon",{"p-button-icon-left":"left"===n.iconPos&&n.label,"p-button-icon-right":"right"===n.iconPos&&n.label,"p-button-icon-top":"top"===n.iconPos&&n.label,"p-button-icon-bottom":"bottom"===n.iconPos&&n.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(t){var n,e;return this.ptm(t,{parent:{props:null===(n=this.$parent)||void 0===n?void 0:n.$props,state:null===(e=this.$parent)||void 0===e?void 0:e.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:n,Badge:t},directives:{ripple:e}},x=["aria-label","disabled","data-pc-severity"];S.render=function(t,n,e,o,y,m){var v=l("SpinnerIcon"),h=l("Badge"),S=i("ripple");return a((r(),s("button",u({class:t.cx("root"),type:"button","aria-label":m.defaultAriaLabel,disabled:m.disabled},m.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":t.severity}),[p(t.$slots,"default",{},(function(){return[t.loading?p(t.$slots,"loadingicon",{key:0,class:c([t.cx("loadingIcon"),t.cx("icon")])},(function(){return[t.loadingIcon?(r(),s("span",u({key:0,class:[t.cx("loadingIcon"),t.cx("icon"),t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(r(),d(v,u({key:1,class:[t.cx("loadingIcon"),t.cx("icon")],spin:""},t.ptm("loadingIcon")),null,16,["class"]))]})):p(t.$slots,"icon",{key:1,class:c([t.cx("icon")])},(function(){return[t.icon?(r(),s("span",u({key:0,class:[t.cx("icon"),t.icon,t.iconClass]},t.ptm("icon")),null,16)):b("",!0)]})),f("span",u({class:t.cx("label")},t.ptm("label")),g(t.label||" "),17),t.badge?(r(),d(h,u({key:2,value:t.badge,class:t.badgeClass,unstyled:t.unstyled},t.ptm("badge")),null,16,["value","class","unstyled"])):b("",!0)]}))],16,x)),[[S]])};export{S as default};
|
package/button/button.js
CHANGED
|
@@ -183,11 +183,11 @@ this.primevue.button = (function (Badge, SpinnerIcon, Ripple, BaseComponent, vue
|
|
|
183
183
|
}, _ctx.ptm('loadingIcon')), null, 16, ["class"]))];
|
|
184
184
|
}) : vue.renderSlot(_ctx.$slots, "icon", {
|
|
185
185
|
key: 1,
|
|
186
|
-
"class": vue.normalizeClass(_ctx.cx('icon'))
|
|
186
|
+
"class": vue.normalizeClass([_ctx.cx('icon')])
|
|
187
187
|
}, function () {
|
|
188
188
|
return [_ctx.icon ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
189
189
|
key: 0,
|
|
190
|
-
"class": [_ctx.cx('icon'), _ctx.icon]
|
|
190
|
+
"class": [_ctx.cx('icon'), _ctx.icon, _ctx.iconClass]
|
|
191
191
|
}, _ctx.ptm('icon')), null, 16)) : vue.createCommentVNode("", true)];
|
|
192
192
|
}), vue.createElementVNode("span", vue.mergeProps({
|
|
193
193
|
"class": _ctx.cx('label')
|
package/button/button.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primevue=this.primevue||{},this.primevue.button=function(e,t,n,o,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e),r=i(t),s=i(n);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=d(e,"string");return"symbol"===u(t)?t:String(t)}function d(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={name:"Button",extends:{name:"BaseButton",extends:i(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},css:{classes:{root:function(e){var t,n=e.instance,o=e.props;return["p-button p-component",(t={"p-button-icon-only":n.hasIcon&&!o.label&&!o.badge,"p-button-vertical":("top"===o.iconPos||"bottom"===o.iconPos)&&o.label,"p-disabled":n.$attrs.disabled||""===n.$attrs.disabled||o.loading,"p-button-loading":o.loading,"p-button-loading-label-only":o.loading&&!n.hasIcon&&o.label,"p-button-link":o.link},c(t,"p-button-".concat(o.severity),o.severity),c(t,"p-button-raised",o.raised),c(t,"p-button-rounded",o.rounded),c(t,"p-button-text",o.text),c(t,"p-button-outlined",o.outlined),c(t,"p-button-sm","small"===o.size),c(t,"p-button-lg","large"===o.size),c(t,"p-button-plain",o.plain),t)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var t=e.props;return["p-button-icon",{"p-button-icon-left":"left"===t.iconPos&&t.label,"p-button-icon-right":"right"===t.iconPos&&t.label,"p-button-icon-top":"top"===t.iconPos&&t.label,"p-button-icon-bottom":"bottom"===t.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){var t,n;return this.ptm(e,{parent:{props:null===(t=this.$parent)||void 0===t?void 0:t.$props,state:null===(n=this.$parent)||void 0===n?void 0:n.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:r.default,Badge:a.default},directives:{ripple:s.default}},f=["aria-label","disabled","data-pc-severity"];return b.render=function(e,t,n,o,i,a){var r=l.resolveComponent("SpinnerIcon"),s=l.resolveComponent("Badge"),u=l.resolveDirective("ripple");return l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({class:e.cx("root"),type:"button","aria-label":a.defaultAriaLabel,disabled:a.disabled},a.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[l.renderSlot(e.$slots,"default",{},(function(){return[e.loading?l.renderSlot(e.$slots,"loadingicon",{key:0,class:l.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(l.openBlock(),l.createBlock(r,l.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):l.renderSlot(e.$slots,"icon",{key:1,class:l.normalizeClass(e.cx("icon"))},(function(){return[e.icon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("icon"),e.icon]},e.ptm("icon")),null,16)):l.createCommentVNode("",!0)]})),l.createElementVNode("span",l.mergeProps({class:e.cx("label")},e.ptm("label")),l.toDisplayString(e.label||" "),17),e.badge?(l.openBlock(),l.createBlock(s,l.mergeProps({key:2,value:e.badge,class:e.badgeClass,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","unstyled"])):l.createCommentVNode("",!0)]}))],16,f)),[[u]])},b}(primevue.badge,primevue.icons.spinner,primevue.ripple,primevue.basecomponent,Vue);
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.button=function(e,t,n,o,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(e),r=i(t),s=i(n);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=d(e,"string");return"symbol"===u(t)?t:String(t)}function d(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={name:"Button",extends:{name:"BaseButton",extends:i(o).default,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},css:{classes:{root:function(e){var t,n=e.instance,o=e.props;return["p-button p-component",(t={"p-button-icon-only":n.hasIcon&&!o.label&&!o.badge,"p-button-vertical":("top"===o.iconPos||"bottom"===o.iconPos)&&o.label,"p-disabled":n.$attrs.disabled||""===n.$attrs.disabled||o.loading,"p-button-loading":o.loading,"p-button-loading-label-only":o.loading&&!n.hasIcon&&o.label,"p-button-link":o.link},c(t,"p-button-".concat(o.severity),o.severity),c(t,"p-button-raised",o.raised),c(t,"p-button-rounded",o.rounded),c(t,"p-button-text",o.text),c(t,"p-button-outlined",o.outlined),c(t,"p-button-sm","small"===o.size),c(t,"p-button-lg","large"===o.size),c(t,"p-button-plain",o.plain),t)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var t=e.props;return["p-button-icon",{"p-button-icon-left":"left"===t.iconPos&&t.label,"p-button-icon-right":"right"===t.iconPos&&t.label,"p-button-icon-top":"top"===t.iconPos&&t.label,"p-button-icon-bottom":"bottom"===t.iconPos&&t.label}]},label:"p-button-label"}},provide:function(){return{$parentInstance:this}}},methods:{getPTOptions:function(e){var t,n;return this.ptm(e,{parent:{props:null===(t=this.$parent)||void 0===t?void 0:t.$props,state:null===(n=this.$parent)||void 0===n?void 0:n.$data},context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||""===this.$attrs.disabled||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs["aria-label"]},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:r.default,Badge:a.default},directives:{ripple:s.default}},f=["aria-label","disabled","data-pc-severity"];return b.render=function(e,t,n,o,i,a){var r=l.resolveComponent("SpinnerIcon"),s=l.resolveComponent("Badge"),u=l.resolveDirective("ripple");return l.withDirectives((l.openBlock(),l.createElementBlock("button",l.mergeProps({class:e.cx("root"),type:"button","aria-label":a.defaultAriaLabel,disabled:a.disabled},a.getPTOptions("root"),{"data-pc-name":"button","data-pc-severity":e.severity}),[l.renderSlot(e.$slots,"default",{},(function(){return[e.loading?l.renderSlot(e.$slots,"loadingicon",{key:0,class:l.normalizeClass([e.cx("loadingIcon"),e.cx("icon")])},(function(){return[e.loadingIcon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("loadingIcon"),e.cx("icon"),e.loadingIcon]},e.ptm("loadingIcon")),null,16)):(l.openBlock(),l.createBlock(r,l.mergeProps({key:1,class:[e.cx("loadingIcon"),e.cx("icon")],spin:""},e.ptm("loadingIcon")),null,16,["class"]))]})):l.renderSlot(e.$slots,"icon",{key:1,class:l.normalizeClass([e.cx("icon")])},(function(){return[e.icon?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:0,class:[e.cx("icon"),e.icon,e.iconClass]},e.ptm("icon")),null,16)):l.createCommentVNode("",!0)]})),l.createElementVNode("span",l.mergeProps({class:e.cx("label")},e.ptm("label")),l.toDisplayString(e.label||" "),17),e.badge?(l.openBlock(),l.createBlock(s,l.mergeProps({key:2,value:e.badge,class:e.badgeClass,unstyled:e.unstyled},e.ptm("badge")),null,16,["value","class","unstyled"])):l.createCommentVNode("",!0)]}))],16,f)),[[u]])},b}(primevue.badge,primevue.icons.spinner,primevue.ripple,primevue.basecomponent,Vue);
|
package/calendar/Calendar.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue';
|
|
11
11
|
import { ComponentHooks } from '../basecomponent';
|
|
12
12
|
import { ButtonPassThroughOptionType } from '../button';
|
|
13
|
-
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
|
13
|
+
import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
|
|
14
14
|
|
|
15
15
|
export declare type CalendarPassThroughOptionType = CalendarPassThroughAttributes | ((options: CalendarPassThroughMethodOptions) => CalendarPassThroughAttributes | string) | string | null | undefined;
|
|
16
16
|
|
|
@@ -691,7 +691,7 @@ export interface CalendarProps {
|
|
|
691
691
|
* Used to pass attributes to DOM elements inside the component.
|
|
692
692
|
* @type {CalendarPassThroughOptions}
|
|
693
693
|
*/
|
|
694
|
-
pt?: CalendarPassThroughOptions
|
|
694
|
+
pt?: PTOptions<CalendarPassThroughOptions>;
|
|
695
695
|
/**
|
|
696
696
|
* When enabled, it removes component related styles in the core.
|
|
697
697
|
* @defaultValue false
|
|
@@ -735,20 +735,44 @@ export interface CalendarSlots {
|
|
|
735
735
|
dropdownicon(): VNode[];
|
|
736
736
|
/**
|
|
737
737
|
* Custom previous icon template.
|
|
738
|
+
* @param {Object} scope - previous icon slot's params.
|
|
738
739
|
*/
|
|
739
|
-
previousicon(
|
|
740
|
+
previousicon(scope: {
|
|
741
|
+
/**
|
|
742
|
+
* Style class of the dropdown icon
|
|
743
|
+
*/
|
|
744
|
+
class: any;
|
|
745
|
+
}): VNode[];
|
|
740
746
|
/**
|
|
741
747
|
* Custom next icon template.
|
|
748
|
+
* @param {Object} scope - next icon slot's params.
|
|
742
749
|
*/
|
|
743
|
-
nexticon(
|
|
750
|
+
nexticon(scope: {
|
|
751
|
+
/**
|
|
752
|
+
* Style class of the dropdown icon
|
|
753
|
+
*/
|
|
754
|
+
class: any;
|
|
755
|
+
}): VNode[];
|
|
744
756
|
/**
|
|
745
757
|
* Custom increment icon template.
|
|
758
|
+
* @param {Object} scope - increment icon slot's params.
|
|
746
759
|
*/
|
|
747
|
-
incrementicon(
|
|
760
|
+
incrementicon(scope: {
|
|
761
|
+
/**
|
|
762
|
+
* Style class of the dropdown icon
|
|
763
|
+
*/
|
|
764
|
+
class: any;
|
|
765
|
+
}): VNode[];
|
|
748
766
|
/**
|
|
749
767
|
* Custom decrement icon template.
|
|
768
|
+
* @param {Object} scope - decrement icon slot's params.
|
|
750
769
|
*/
|
|
751
|
-
decrementicon(
|
|
770
|
+
decrementicon(scope: {
|
|
771
|
+
/**
|
|
772
|
+
* Style class of the dropdown icon
|
|
773
|
+
*/
|
|
774
|
+
class: any;
|
|
775
|
+
}): VNode[];
|
|
752
776
|
}
|
|
753
777
|
|
|
754
778
|
/**
|
package/calendar/Calendar.vue
CHANGED
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
:aria-label="currentView === 'year' ? $primevue.config.locale.prevDecade : currentView === 'month' ? $primevue.config.locale.prevYear : $primevue.config.locale.prevMonth"
|
|
81
81
|
v-bind="ptm('previousButton')"
|
|
82
82
|
>
|
|
83
|
-
<slot name="previousicon">
|
|
83
|
+
<slot name="previousicon" :class="cx('previousIcon')">
|
|
84
84
|
<component :is="previousIcon ? 'span' : 'ChevronLeftIcon'" :class="[cx('previousIcon'), previousIcon]" v-bind="ptm('previousIcon')" />
|
|
85
85
|
</slot>
|
|
86
86
|
</button>
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
:aria-label="currentView === 'year' ? $primevue.config.locale.nextDecade : currentView === 'month' ? $primevue.config.locale.nextYear : $primevue.config.locale.nextMonth"
|
|
126
126
|
v-bind="ptm('nextButton')"
|
|
127
127
|
>
|
|
128
|
-
<slot name="nexticon">
|
|
128
|
+
<slot name="nexticon" :class="cx('nextIcon')">
|
|
129
129
|
<component :is="nextIcon ? 'span' : 'ChevronRightIcon'" :class="[cx('nextIcon'), nextIcon]" v-bind="ptm('nextIcon')" />
|
|
130
130
|
</slot>
|
|
131
131
|
</button>
|
|
@@ -392,13 +392,13 @@
|
|
|
392
392
|
</div>
|
|
393
393
|
<div v-if="hourFormat == '12'" :class="cx('ampmPicker')" v-bind="ptm('ampmPicker')">
|
|
394
394
|
<button v-ripple :class="cx('incrementButton')" :aria-label="$primevue.config.locale.am" @click="toggleAMPM($event)" type="button" :disabled="disabled" v-bind="ptm('incrementButton')">
|
|
395
|
-
<slot name="incrementicon">
|
|
395
|
+
<slot name="incrementicon" :class="cx('incrementIcon')">
|
|
396
396
|
<component :is="incrementIcon ? 'span' : 'ChevronUpIcon'" :class="cx('incrementIcon')" v-bind="ptm('incrementIcon')" />
|
|
397
397
|
</slot>
|
|
398
398
|
</button>
|
|
399
399
|
<span v-bind="ptm('ampm')">{{ pm ? $primevue.config.locale.pm : $primevue.config.locale.am }}</span>
|
|
400
400
|
<button v-ripple :class="cx('decrementButton')" :aria-label="$primevue.config.locale.pm" @click="toggleAMPM($event)" type="button" :disabled="disabled" v-bind="ptm('decrementButton')">
|
|
401
|
-
<slot name="decrementicon">
|
|
401
|
+
<slot name="decrementicon" :class="cx('decrementIcon')">
|
|
402
402
|
<component :is="decrementIcon ? 'span' : 'ChevronDownIcon'" :class="cx('decrementIcon')" v-bind="ptm('decrementIcon')" />
|
|
403
403
|
</slot>
|
|
404
404
|
</button>
|
|
@@ -1416,7 +1416,7 @@ export default {
|
|
|
1416
1416
|
},
|
|
1417
1417
|
incrementHour(event) {
|
|
1418
1418
|
let prevHour = this.currentHour;
|
|
1419
|
-
let newHour = this.currentHour + this.stepHour;
|
|
1419
|
+
let newHour = this.currentHour + Number(this.stepHour);
|
|
1420
1420
|
let newPM = this.pm;
|
|
1421
1421
|
|
|
1422
1422
|
if (this.hourFormat == '24') newHour = newHour >= 24 ? newHour - 24 : newHour;
|
|
@@ -1458,7 +1458,7 @@ export default {
|
|
|
1458
1458
|
event.preventDefault();
|
|
1459
1459
|
},
|
|
1460
1460
|
incrementMinute(event) {
|
|
1461
|
-
let newMinute = this.currentMinute + this.stepMinute;
|
|
1461
|
+
let newMinute = this.currentMinute + Number(this.stepMinute);
|
|
1462
1462
|
|
|
1463
1463
|
if (this.validateTime(this.currentHour, newMinute, this.currentSecond, this.pm)) {
|
|
1464
1464
|
this.currentMinute = newMinute > 59 ? newMinute - 60 : newMinute;
|
|
@@ -1478,7 +1478,7 @@ export default {
|
|
|
1478
1478
|
event.preventDefault();
|
|
1479
1479
|
},
|
|
1480
1480
|
incrementSecond(event) {
|
|
1481
|
-
let newSecond = this.currentSecond + this.stepSecond;
|
|
1481
|
+
let newSecond = this.currentSecond + Number(this.stepSecond);
|
|
1482
1482
|
|
|
1483
1483
|
if (this.validateTime(this.currentHour, this.currentMinute, newSecond, this.pm)) {
|
|
1484
1484
|
this.currentSecond = newSecond > 59 ? newSecond - 60 : newSecond;
|
|
@@ -2589,7 +2589,8 @@ export default {
|
|
|
2589
2589
|
let innerHTML = '';
|
|
2590
2590
|
|
|
2591
2591
|
if (this.responsiveOptions) {
|
|
2592
|
-
|
|
2592
|
+
const comparer = new Intl.Collator(undefined, { numeric: true }).compare;
|
|
2593
|
+
let responsiveOptions = [...this.responsiveOptions].filter((o) => !!(o.breakpoint && o.numMonths)).sort((o1, o2) => -1 * comparer(o1.breakpoint, o2.breakpoint));
|
|
2593
2594
|
|
|
2594
2595
|
for (let i = 0; i < responsiveOptions.length; i++) {
|
|
2595
2596
|
let { breakpoint, numMonths } = responsiveOptions[i];
|
package/calendar/calendar.cjs.js
CHANGED
|
@@ -1281,7 +1281,7 @@ var script = {
|
|
|
1281
1281
|
},
|
|
1282
1282
|
incrementHour: function incrementHour(event) {
|
|
1283
1283
|
var prevHour = this.currentHour;
|
|
1284
|
-
var newHour = this.currentHour + this.stepHour;
|
|
1284
|
+
var newHour = this.currentHour + Number(this.stepHour);
|
|
1285
1285
|
var newPM = this.pm;
|
|
1286
1286
|
if (this.hourFormat == '24') newHour = newHour >= 24 ? newHour - 24 : newHour;else if (this.hourFormat == '12') {
|
|
1287
1287
|
// Before the AM/PM break, now after
|
|
@@ -1313,7 +1313,7 @@ var script = {
|
|
|
1313
1313
|
event.preventDefault();
|
|
1314
1314
|
},
|
|
1315
1315
|
incrementMinute: function incrementMinute(event) {
|
|
1316
|
-
var newMinute = this.currentMinute + this.stepMinute;
|
|
1316
|
+
var newMinute = this.currentMinute + Number(this.stepMinute);
|
|
1317
1317
|
if (this.validateTime(this.currentHour, newMinute, this.currentSecond, this.pm)) {
|
|
1318
1318
|
this.currentMinute = newMinute > 59 ? newMinute - 60 : newMinute;
|
|
1319
1319
|
}
|
|
@@ -1328,7 +1328,7 @@ var script = {
|
|
|
1328
1328
|
event.preventDefault();
|
|
1329
1329
|
},
|
|
1330
1330
|
incrementSecond: function incrementSecond(event) {
|
|
1331
|
-
var newSecond = this.currentSecond + this.stepSecond;
|
|
1331
|
+
var newSecond = this.currentSecond + Number(this.stepSecond);
|
|
1332
1332
|
if (this.validateTime(this.currentHour, this.currentMinute, newSecond, this.pm)) {
|
|
1333
1333
|
this.currentSecond = newSecond > 59 ? newSecond - 60 : newSecond;
|
|
1334
1334
|
}
|
|
@@ -2338,12 +2338,13 @@ var script = {
|
|
|
2338
2338
|
}
|
|
2339
2339
|
var innerHTML = '';
|
|
2340
2340
|
if (this.responsiveOptions) {
|
|
2341
|
+
var comparer = new Intl.Collator(undefined, {
|
|
2342
|
+
numeric: true
|
|
2343
|
+
}).compare;
|
|
2341
2344
|
var responsiveOptions = _toConsumableArray(this.responsiveOptions).filter(function (o) {
|
|
2342
2345
|
return !!(o.breakpoint && o.numMonths);
|
|
2343
2346
|
}).sort(function (o1, o2) {
|
|
2344
|
-
return -1 * o1.breakpoint
|
|
2345
|
-
numeric: true
|
|
2346
|
-
});
|
|
2347
|
+
return -1 * comparer(o1.breakpoint, o2.breakpoint);
|
|
2347
2348
|
});
|
|
2348
2349
|
for (var i = 0; i < responsiveOptions.length; i++) {
|
|
2349
2350
|
var _responsiveOptions$i = responsiveOptions[i],
|
|
@@ -2758,7 +2759,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2758
2759
|
}),
|
|
2759
2760
|
disabled: _ctx.disabled,
|
|
2760
2761
|
"aria-label": $data.currentView === 'year' ? _ctx.$primevue.config.locale.prevDecade : $data.currentView === 'month' ? _ctx.$primevue.config.locale.prevYear : _ctx.$primevue.config.locale.prevMonth
|
|
2761
|
-
}, _ctx.ptm('previousButton')), [vue.renderSlot(_ctx.$slots, "previousicon", {
|
|
2762
|
+
}, _ctx.ptm('previousButton')), [vue.renderSlot(_ctx.$slots, "previousicon", {
|
|
2763
|
+
"class": vue.normalizeClass(_ctx.cx('previousIcon'))
|
|
2764
|
+
}, function () {
|
|
2762
2765
|
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.previousIcon ? 'span' : 'ChevronLeftIcon'), vue.mergeProps({
|
|
2763
2766
|
"class": [_ctx.cx('previousIcon'), _ctx.previousIcon]
|
|
2764
2767
|
}, _ctx.ptm('previousIcon')), null, 16, ["class"]))];
|
|
@@ -2808,7 +2811,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2808
2811
|
}),
|
|
2809
2812
|
disabled: _ctx.disabled,
|
|
2810
2813
|
"aria-label": $data.currentView === 'year' ? _ctx.$primevue.config.locale.nextDecade : $data.currentView === 'month' ? _ctx.$primevue.config.locale.nextYear : _ctx.$primevue.config.locale.nextMonth
|
|
2811
|
-
}, _ctx.ptm('nextButton')), [vue.renderSlot(_ctx.$slots, "nexticon", {
|
|
2814
|
+
}, _ctx.ptm('nextButton')), [vue.renderSlot(_ctx.$slots, "nexticon", {
|
|
2815
|
+
"class": vue.normalizeClass(_ctx.cx('nextIcon'))
|
|
2816
|
+
}, function () {
|
|
2812
2817
|
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.nextIcon ? 'span' : 'ChevronRightIcon'), vue.mergeProps({
|
|
2813
2818
|
"class": [_ctx.cx('nextIcon'), _ctx.nextIcon]
|
|
2814
2819
|
}, _ctx.ptm('nextIcon')), null, 16, ["class"]))];
|
|
@@ -3181,7 +3186,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3181
3186
|
}),
|
|
3182
3187
|
type: "button",
|
|
3183
3188
|
disabled: _ctx.disabled
|
|
3184
|
-
}, _ctx.ptm('incrementButton')), [vue.renderSlot(_ctx.$slots, "incrementicon", {
|
|
3189
|
+
}, _ctx.ptm('incrementButton')), [vue.renderSlot(_ctx.$slots, "incrementicon", {
|
|
3190
|
+
"class": vue.normalizeClass(_ctx.cx('incrementIcon'))
|
|
3191
|
+
}, function () {
|
|
3185
3192
|
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.incrementIcon ? 'span' : 'ChevronUpIcon'), vue.mergeProps({
|
|
3186
3193
|
"class": _ctx.cx('incrementIcon')
|
|
3187
3194
|
}, _ctx.ptm('incrementIcon')), null, 16, ["class"]))];
|
|
@@ -3193,7 +3200,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3193
3200
|
}),
|
|
3194
3201
|
type: "button",
|
|
3195
3202
|
disabled: _ctx.disabled
|
|
3196
|
-
}, _ctx.ptm('decrementButton')), [vue.renderSlot(_ctx.$slots, "decrementicon", {
|
|
3203
|
+
}, _ctx.ptm('decrementButton')), [vue.renderSlot(_ctx.$slots, "decrementicon", {
|
|
3204
|
+
"class": vue.normalizeClass(_ctx.cx('decrementIcon'))
|
|
3205
|
+
}, function () {
|
|
3197
3206
|
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.decrementIcon ? 'span' : 'ChevronDownIcon'), vue.mergeProps({
|
|
3198
3207
|
"class": _ctx.cx('decrementIcon')
|
|
3199
3208
|
}, _ctx.ptm('decrementIcon')), null, 16, ["class"]))];
|