primevue 3.14.0 → 3.15.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/accordion/Accordion.d.ts +90 -0
- package/accordion/Accordion.vue +169 -0
- package/accordion/accordion.cjs.js +227 -0
- package/accordion/accordion.cjs.min.js +1 -0
- package/accordion/accordion.esm.js +225 -0
- package/accordion/accordion.esm.min.js +1 -0
- package/accordion/accordion.js +228 -0
- package/accordion/accordion.min.js +1 -0
- package/accordion/package.json +9 -0
- package/accordiontab/AccordionTab.d.ts +45 -0
- package/accordiontab/AccordionTab.vue +13 -0
- package/accordiontab/accordiontab.cjs.js +19 -0
- package/accordiontab/accordiontab.cjs.min.js +1 -0
- package/accordiontab/accordiontab.esm.js +17 -0
- package/accordiontab/accordiontab.esm.min.js +1 -0
- package/accordiontab/accordiontab.js +21 -0
- package/accordiontab/accordiontab.min.js +1 -0
- package/accordiontab/package.json +9 -0
- package/api/Api.d.ts +303 -0
- package/api/api.cjs.js +518 -0
- package/api/api.cjs.min.js +1 -0
- package/api/api.esm.js +510 -0
- package/api/api.esm.min.js +1 -0
- package/api/api.js +522 -0
- package/api/api.min.js +1 -0
- package/api/package.json +6 -0
- package/autocomplete/AutoComplete.d.ts +303 -0
- package/autocomplete/AutoComplete.vue +736 -0
- package/autocomplete/autocomplete.cjs.js +837 -0
- package/autocomplete/autocomplete.cjs.min.js +1 -0
- package/autocomplete/autocomplete.esm.js +827 -0
- package/autocomplete/autocomplete.esm.min.js +1 -0
- package/autocomplete/autocomplete.js +833 -0
- package/autocomplete/autocomplete.min.js +1 -0
- package/autocomplete/package.json +9 -0
- package/avatar/Avatar.d.ts +66 -0
- package/avatar/Avatar.vue +87 -0
- package/avatar/avatar.cjs.js +110 -0
- package/avatar/avatar.cjs.min.js +1 -0
- package/avatar/avatar.esm.js +108 -0
- package/avatar/avatar.esm.min.js +1 -0
- package/avatar/avatar.js +112 -0
- package/avatar/avatar.min.js +1 -0
- package/avatar/package.json +9 -0
- package/avatargroup/AvatarGroup.d.ts +33 -0
- package/avatargroup/AvatarGroup.vue +22 -0
- package/avatargroup/avatargroup.cjs.js +49 -0
- package/avatargroup/avatargroup.cjs.min.js +1 -0
- package/avatargroup/avatargroup.esm.js +47 -0
- package/avatargroup/avatargroup.esm.min.js +1 -0
- package/avatargroup/avatargroup.js +51 -0
- package/avatargroup/avatargroup.min.js +1 -0
- package/avatargroup/package.json +9 -0
- package/badge/Badge.d.ts +52 -0
- package/badge/Badge.vue +33 -0
- package/badge/badge.cjs.js +43 -0
- package/badge/badge.cjs.min.js +1 -0
- package/badge/badge.esm.js +41 -0
- package/badge/badge.esm.min.js +1 -0
- package/badge/badge.js +45 -0
- package/badge/badge.min.js +1 -0
- package/badge/package.json +9 -0
- package/badgedirective/BadgeDirective.d.ts +5 -0
- package/badgedirective/badgedirective.cjs.js +58 -0
- package/badgedirective/badgedirective.cjs.min.js +1 -0
- package/badgedirective/badgedirective.esm.js +56 -0
- package/badgedirective/badgedirective.esm.min.js +1 -0
- package/badgedirective/badgedirective.js +60 -0
- package/badgedirective/badgedirective.min.js +1 -0
- package/badgedirective/package.json +6 -0
- package/blockui/BlockUI.d.ts +60 -0
- package/blockui/BlockUI.vue +110 -0
- package/blockui/blockui.cjs.js +126 -0
- package/blockui/blockui.cjs.min.js +1 -0
- package/blockui/blockui.esm.js +124 -0
- package/blockui/blockui.esm.min.js +1 -0
- package/blockui/blockui.js +127 -0
- package/blockui/blockui.min.js +1 -0
- package/blockui/package.json +9 -0
- package/breadcrumb/Breadcrumb.d.ts +58 -0
- package/breadcrumb/Breadcrumb.vue +63 -0
- package/breadcrumb/BreadcrumbItem.vue +65 -0
- package/breadcrumb/breadcrumb.cjs.js +214 -0
- package/breadcrumb/breadcrumb.cjs.min.js +1 -0
- package/breadcrumb/breadcrumb.esm.js +212 -0
- package/breadcrumb/breadcrumb.esm.min.js +1 -0
- package/breadcrumb/breadcrumb.js +216 -0
- package/breadcrumb/breadcrumb.min.js +1 -0
- package/breadcrumb/package.json +10 -0
- package/button/Button.d.ts +74 -0
- package/button/Button.vue +81 -0
- package/button/button.cjs.js +116 -0
- package/button/button.cjs.min.js +1 -0
- package/button/button.esm.js +110 -0
- package/button/button.esm.min.js +1 -0
- package/button/button.js +117 -0
- package/button/button.min.js +1 -0
- package/button/package.json +9 -0
- package/calendar/Calendar.d.ts +361 -0
- package/calendar/Calendar.vue +2670 -0
- package/calendar/calendar.cjs.js +2921 -0
- package/calendar/calendar.cjs.min.js +1 -0
- package/calendar/calendar.esm.js +2912 -0
- package/calendar/calendar.esm.min.js +1 -0
- package/calendar/calendar.js +2918 -0
- package/calendar/calendar.min.js +1 -0
- package/calendar/package.json +9 -0
- package/card/Card.d.ts +50 -0
- package/card/Card.vue +29 -0
- package/card/card.cjs.js +91 -0
- package/card/card.cjs.min.js +1 -0
- package/card/card.esm.js +89 -0
- package/card/card.esm.min.js +1 -0
- package/card/card.js +93 -0
- package/card/card.min.js +1 -0
- package/card/package.json +9 -0
- package/carousel/Carousel.d.ts +130 -0
- package/carousel/Carousel.vue +574 -0
- package/carousel/carousel.cjs.js +630 -0
- package/carousel/carousel.cjs.min.js +1 -0
- package/carousel/carousel.esm.js +624 -0
- package/carousel/carousel.esm.min.js +1 -0
- package/carousel/carousel.js +630 -0
- package/carousel/carousel.min.js +1 -0
- package/carousel/package.json +9 -0
- package/cascadeselect/CascadeSelect.d.ts +184 -0
- package/cascadeselect/CascadeSelect.vue +426 -0
- package/cascadeselect/CascadeSelectSub.vue +182 -0
- package/cascadeselect/cascadeselect.cjs.js +668 -0
- package/cascadeselect/cascadeselect.cjs.min.js +1 -0
- package/cascadeselect/cascadeselect.esm.js +660 -0
- package/cascadeselect/cascadeselect.esm.min.js +1 -0
- package/cascadeselect/cascadeselect.js +666 -0
- package/cascadeselect/cascadeselect.min.js +1 -0
- package/cascadeselect/package.json +9 -0
- package/chart/Chart.d.ts +109 -0
- package/chart/Chart.vue +113 -0
- package/chart/chart.cjs.js +169 -0
- package/chart/chart.cjs.min.js +1 -0
- package/chart/chart.esm.js +149 -0
- package/chart/chart.esm.min.js +1 -0
- package/chart/chart.js +153 -0
- package/chart/chart.min.js +1 -0
- package/chart/package.json +9 -0
- package/checkbox/Checkbox.d.ts +77 -0
- package/checkbox/Checkbox.vue +77 -0
- package/checkbox/checkbox.cjs.js +105 -0
- package/checkbox/checkbox.cjs.min.js +1 -0
- package/checkbox/checkbox.esm.js +103 -0
- package/checkbox/checkbox.esm.min.js +1 -0
- package/checkbox/checkbox.js +106 -0
- package/checkbox/checkbox.min.js +1 -0
- package/checkbox/package.json +9 -0
- package/chip/Chip.d.ts +60 -0
- package/chip/Chip.vue +88 -0
- package/chip/chip.cjs.js +129 -0
- package/chip/chip.cjs.min.js +1 -0
- package/chip/chip.esm.js +127 -0
- package/chip/chip.esm.min.js +1 -0
- package/chip/chip.js +131 -0
- package/chip/chip.min.js +1 -0
- package/chip/package.json +9 -0
- package/chips/Chips.d.ts +100 -0
- package/chips/Chips.vue +204 -0
- package/chips/chips.cjs.js +220 -0
- package/chips/chips.cjs.min.js +1 -0
- package/chips/chips.esm.js +218 -0
- package/chips/chips.esm.min.js +1 -0
- package/chips/chips.js +222 -0
- package/chips/chips.min.js +1 -0
- package/chips/package.json +9 -0
- package/colorpicker/ColorPicker.d.ts +112 -0
- package/colorpicker/ColorPicker.vue +674 -0
- package/colorpicker/colorpicker.cjs.js +679 -0
- package/colorpicker/colorpicker.cjs.min.js +1 -0
- package/colorpicker/colorpicker.esm.js +672 -0
- package/colorpicker/colorpicker.esm.min.js +1 -0
- package/colorpicker/colorpicker.js +678 -0
- package/colorpicker/colorpicker.min.js +1 -0
- package/colorpicker/package.json +9 -0
- package/column/Column.d.ts +484 -0
- package/column/Column.vue +182 -0
- package/column/column.cjs.js +184 -0
- package/column/column.cjs.min.js +1 -0
- package/column/column.esm.js +182 -0
- package/column/column.esm.min.js +1 -0
- package/column/column.js +188 -0
- package/column/column.min.js +1 -0
- package/column/package.json +9 -0
- package/columngroup/ColumnGroup.d.ts +35 -0
- package/columngroup/ColumnGroup.vue +14 -0
- package/columngroup/columngroup.cjs.js +16 -0
- package/columngroup/columngroup.cjs.min.js +1 -0
- package/columngroup/columngroup.esm.js +14 -0
- package/columngroup/columngroup.esm.min.js +1 -0
- package/columngroup/columngroup.js +20 -0
- package/columngroup/columngroup.min.js +1 -0
- package/columngroup/package.json +9 -0
- package/config/PrimeVue.d.ts +72 -0
- package/config/config.cjs.js +109 -0
- package/config/config.cjs.min.js +1 -0
- package/config/config.esm.js +104 -0
- package/config/config.esm.min.js +1 -0
- package/config/config.js +112 -0
- package/config/config.min.js +1 -0
- package/config/package.json +6 -0
- package/confirmationeventbus/confirmationeventbus.cjs.js +7 -0
- package/confirmationeventbus/confirmationeventbus.cjs.min.js +1 -0
- package/confirmationeventbus/confirmationeventbus.esm.js +5 -0
- package/confirmationeventbus/confirmationeventbus.esm.min.js +1 -0
- package/confirmationeventbus/confirmationeventbus.js +9 -0
- package/confirmationeventbus/confirmationeventbus.min.js +1 -0
- package/confirmationeventbus/package.json +5 -0
- package/confirmationoptions/ConfirmationOptions.d.ts +70 -0
- package/confirmationoptions/package.json +3 -0
- package/confirmationservice/ConfirmationService.d.ts +29 -0
- package/confirmationservice/confirmationservice.cjs.js +25 -0
- package/confirmationservice/confirmationservice.cjs.min.js +1 -0
- package/confirmationservice/confirmationservice.esm.js +19 -0
- package/confirmationservice/confirmationservice.esm.min.js +1 -0
- package/confirmationservice/confirmationservice.js +26 -0
- package/confirmationservice/confirmationservice.min.js +1 -0
- package/confirmationservice/package.json +6 -0
- package/confirmdialog/ConfirmDialog.d.ts +62 -0
- package/confirmdialog/ConfirmDialog.vue +120 -0
- package/confirmdialog/confirmdialog.cjs.js +161 -0
- package/confirmdialog/confirmdialog.cjs.min.js +1 -0
- package/confirmdialog/confirmdialog.esm.js +153 -0
- package/confirmdialog/confirmdialog.esm.min.js +1 -0
- package/confirmdialog/confirmdialog.js +160 -0
- package/confirmdialog/confirmdialog.min.js +1 -0
- package/confirmdialog/package.json +9 -0
- package/confirmpopup/ConfirmPopup.d.ts +47 -0
- package/confirmpopup/ConfirmPopup.vue +301 -0
- package/confirmpopup/confirmpopup.cjs.js +317 -0
- package/confirmpopup/confirmpopup.cjs.min.js +1 -0
- package/confirmpopup/confirmpopup.esm.js +308 -0
- package/confirmpopup/confirmpopup.esm.min.js +1 -0
- package/confirmpopup/confirmpopup.js +314 -0
- package/confirmpopup/confirmpopup.min.js +1 -0
- package/confirmpopup/package.json +9 -0
- package/contextmenu/ContextMenu.d.ts +98 -0
- package/contextmenu/ContextMenu.vue +264 -0
- package/contextmenu/ContextMenuSub.vue +165 -0
- package/contextmenu/contextmenu.cjs.js +535 -0
- package/contextmenu/contextmenu.cjs.min.js +1 -0
- package/contextmenu/contextmenu.esm.js +528 -0
- package/contextmenu/contextmenu.esm.min.js +1 -0
- package/contextmenu/contextmenu.js +534 -0
- package/contextmenu/contextmenu.min.js +1 -0
- package/contextmenu/package.json +9 -0
- package/core/core.js +8281 -0
- package/core/core.min.js +52 -0
- package/datatable/BodyCell.vue +408 -0
- package/datatable/ColumnFilter.vue +522 -0
- package/datatable/DataTable.d.ts +1076 -0
- package/datatable/DataTable.vue +2238 -0
- package/datatable/FooterCell.vue +75 -0
- package/datatable/HeaderCell.vue +249 -0
- package/datatable/HeaderCheckbox.vue +41 -0
- package/datatable/RowCheckbox.vue +42 -0
- package/datatable/RowRadioButton.vue +42 -0
- package/datatable/TableBody.vue +526 -0
- package/datatable/TableFooter.vue +93 -0
- package/datatable/TableHeader.vue +177 -0
- package/datatable/TableLoadingBody.vue +25 -0
- package/datatable/datatable.cjs.js +5035 -0
- package/datatable/datatable.cjs.min.js +1 -0
- package/datatable/datatable.esm.js +5023 -0
- package/datatable/datatable.esm.min.js +1 -0
- package/datatable/datatable.js +5028 -0
- package/datatable/datatable.min.js +1 -0
- package/datatable/package.json +9 -0
- package/dataview/DataView.d.ts +212 -0
- package/dataview/DataView.vue +230 -0
- package/dataview/dataview.cjs.js +328 -0
- package/dataview/dataview.cjs.min.js +1 -0
- package/dataview/dataview.esm.js +322 -0
- package/dataview/dataview.esm.min.js +1 -0
- package/dataview/dataview.js +328 -0
- package/dataview/dataview.min.js +1 -0
- package/dataview/package.json +9 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +39 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +39 -0
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +59 -0
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -0
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +57 -0
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -0
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +61 -0
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -0
- package/dataviewlayoutoptions/package.json +9 -0
- package/deferredcontent/DeferredContent.d.ts +38 -0
- package/deferredcontent/DeferredContent.vue +62 -0
- package/deferredcontent/deferredcontent.cjs.js +72 -0
- package/deferredcontent/deferredcontent.cjs.min.js +1 -0
- package/deferredcontent/deferredcontent.esm.js +70 -0
- package/deferredcontent/deferredcontent.esm.min.js +1 -0
- package/deferredcontent/deferredcontent.js +74 -0
- package/deferredcontent/deferredcontent.min.js +1 -0
- package/deferredcontent/package.json +9 -0
- package/dialog/Dialog.d.ts +200 -0
- package/dialog/Dialog.vue +600 -0
- package/dialog/dialog.cjs.js +547 -0
- package/dialog/dialog.cjs.min.js +1 -0
- package/dialog/dialog.esm.js +540 -0
- package/dialog/dialog.esm.min.js +1 -0
- package/dialog/dialog.js +546 -0
- package/dialog/dialog.min.js +1 -0
- package/dialog/package.json +9 -0
- package/dialogservice/DialogService.d.ts +27 -0
- package/dialogservice/dialogservice.cjs.js +36 -0
- package/dialogservice/dialogservice.cjs.min.js +1 -0
- package/dialogservice/dialogservice.esm.js +30 -0
- package/dialogservice/dialogservice.esm.min.js +1 -0
- package/dialogservice/dialogservice.js +36 -0
- package/dialogservice/dialogservice.min.js +1 -0
- package/dialogservice/package.json +6 -0
- package/divider/Divider.d.ts +61 -0
- package/divider/Divider.vue +126 -0
- package/divider/divider.cjs.js +85 -0
- package/divider/divider.cjs.min.js +1 -0
- package/divider/divider.esm.js +83 -0
- package/divider/divider.esm.min.js +1 -0
- package/divider/divider.js +87 -0
- package/divider/divider.min.js +1 -0
- package/divider/package.json +9 -0
- package/dock/Dock.d.ts +105 -0
- package/dock/Dock.vue +143 -0
- package/dock/DockSub.vue +104 -0
- package/dock/dock.cjs.js +251 -0
- package/dock/dock.cjs.min.js +1 -0
- package/dock/dock.esm.js +244 -0
- package/dock/dock.esm.min.js +1 -0
- package/dock/dock.js +251 -0
- package/dock/dock.min.js +1 -0
- package/dock/package.json +9 -0
- package/dropdown/Dropdown.d.ts +362 -0
- package/dropdown/Dropdown.vue +836 -0
- package/dropdown/dropdown.cjs.js +959 -0
- package/dropdown/dropdown.cjs.min.js +1 -0
- package/dropdown/dropdown.esm.js +950 -0
- package/dropdown/dropdown.esm.min.js +1 -0
- package/dropdown/dropdown.js +955 -0
- package/dropdown/dropdown.min.js +1 -0
- package/dropdown/package.json +9 -0
- package/dynamicdialog/DynamicDialog.d.ts +26 -0
- package/dynamicdialog/DynamicDialog.vue +75 -0
- package/dynamicdialog/dynamicdialog.cjs.js +117 -0
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -0
- package/dynamicdialog/dynamicdialog.esm.js +110 -0
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -0
- package/dynamicdialog/dynamicdialog.js +116 -0
- package/dynamicdialog/dynamicdialog.min.js +1 -0
- package/dynamicdialog/package.json +9 -0
- package/dynamicdialogeventbus/dynamicdialogeventbus.cjs.js +7 -0
- package/dynamicdialogeventbus/dynamicdialogeventbus.cjs.min.js +1 -0
- package/dynamicdialogeventbus/dynamicdialogeventbus.esm.js +5 -0
- package/dynamicdialogeventbus/dynamicdialogeventbus.esm.min.js +1 -0
- package/dynamicdialogeventbus/dynamicdialogeventbus.js +9 -0
- package/dynamicdialogeventbus/dynamicdialogeventbus.min.js +1 -0
- package/dynamicdialogeventbus/package.json +5 -0
- package/dynamicdialogoptions/DynamicDialogOptions.d.ts +73 -0
- package/dynamicdialogoptions/package.json +3 -0
- package/editor/Editor.d.ts +87 -0
- package/editor/Editor.vue +1065 -0
- package/editor/editor.cjs.js +166 -0
- package/editor/editor.cjs.min.js +1 -0
- package/editor/editor.esm.js +160 -0
- package/editor/editor.esm.min.js +1 -0
- package/editor/editor.js +167 -0
- package/editor/editor.min.js +1 -0
- package/editor/package.json +9 -0
- package/fieldset/Fieldset.d.ts +71 -0
- package/fieldset/Fieldset.vue +94 -0
- package/fieldset/fieldset.cjs.js +150 -0
- package/fieldset/fieldset.cjs.min.js +1 -0
- package/fieldset/fieldset.esm.js +144 -0
- package/fieldset/fieldset.esm.min.js +1 -0
- package/fieldset/fieldset.js +150 -0
- package/fieldset/fieldset.min.js +1 -0
- package/fieldset/package.json +9 -0
- package/fileupload/FileUpload.d.ts +274 -0
- package/fileupload/FileUpload.vue +529 -0
- package/fileupload/fileupload.cjs.js +669 -0
- package/fileupload/fileupload.cjs.min.js +1 -0
- package/fileupload/fileupload.esm.js +660 -0
- package/fileupload/fileupload.esm.min.js +1 -0
- package/fileupload/fileupload.js +666 -0
- package/fileupload/fileupload.min.js +1 -0
- package/fileupload/package.json +9 -0
- package/fullcalendar/FullCalendar.d.ts +36 -0
- package/fullcalendar/FullCalendar.vue +64 -0
- package/fullcalendar/fullcalendar.cjs.js +66 -0
- package/fullcalendar/fullcalendar.cjs.min.js +1 -0
- package/fullcalendar/fullcalendar.esm.js +64 -0
- package/fullcalendar/fullcalendar.esm.min.js +1 -0
- package/fullcalendar/fullcalendar.js +66 -0
- package/fullcalendar/fullcalendar.min.js +1 -0
- package/fullcalendar/package.json +9 -0
- package/galleria/Galleria.d.ts +210 -0
- package/galleria/Galleria.vue +465 -0
- package/galleria/GalleriaContent.vue +117 -0
- package/galleria/GalleriaItem.vue +160 -0
- package/galleria/GalleriaItemSlot.vue +52 -0
- package/galleria/GalleriaThumbnails.vue +413 -0
- package/galleria/galleria.cjs.js +1181 -0
- package/galleria/galleria.cjs.min.js +1 -0
- package/galleria/galleria.esm.js +1174 -0
- package/galleria/galleria.esm.min.js +1 -0
- package/galleria/galleria.js +1180 -0
- package/galleria/galleria.min.js +1 -0
- package/galleria/package.json +9 -0
- package/image/Image.d.ts +65 -0
- package/image/Image.vue +226 -0
- package/image/image.cjs.js +276 -0
- package/image/image.cjs.min.js +1 -0
- package/image/image.esm.js +270 -0
- package/image/image.esm.min.js +1 -0
- package/image/image.js +276 -0
- package/image/image.min.js +1 -0
- package/image/package.json +9 -0
- package/inlinemessage/InlineMessage.d.ts +42 -0
- package/inlinemessage/InlineMessage.vue +62 -0
- package/inlinemessage/inlinemessage.cjs.js +92 -0
- package/inlinemessage/inlinemessage.cjs.min.js +1 -0
- package/inlinemessage/inlinemessage.esm.js +90 -0
- package/inlinemessage/inlinemessage.esm.min.js +1 -0
- package/inlinemessage/inlinemessage.js +94 -0
- package/inlinemessage/inlinemessage.min.js +1 -0
- package/inlinemessage/package.json +9 -0
- package/inplace/Inplace.d.ts +65 -0
- package/inplace/Inplace.vue +91 -0
- package/inplace/inplace.cjs.js +133 -0
- package/inplace/inplace.cjs.min.js +1 -0
- package/inplace/inplace.esm.js +127 -0
- package/inplace/inplace.esm.min.js +1 -0
- package/inplace/inplace.js +134 -0
- package/inplace/inplace.min.js +1 -0
- package/inplace/package.json +9 -0
- package/inputmask/InputMask.d.ts +80 -0
- package/inputmask/InputMask.vue +491 -0
- package/inputmask/inputmask.cjs.js +502 -0
- package/inputmask/inputmask.cjs.min.js +1 -0
- package/inputmask/inputmask.esm.js +500 -0
- package/inputmask/inputmask.esm.min.js +1 -0
- package/inputmask/inputmask.js +503 -0
- package/inputmask/inputmask.min.js +1 -0
- package/inputmask/package.json +9 -0
- package/inputnumber/InputNumber.d.ts +212 -0
- package/inputnumber/InputNumber.vue +1106 -0
- package/inputnumber/inputnumber.cjs.js +1094 -0
- package/inputnumber/inputnumber.cjs.min.js +1 -0
- package/inputnumber/inputnumber.esm.js +1087 -0
- package/inputnumber/inputnumber.esm.min.js +1 -0
- package/inputnumber/inputnumber.js +1094 -0
- package/inputnumber/inputnumber.min.js +1 -0
- package/inputnumber/package.json +9 -0
- package/inputswitch/InputSwitch.d.ts +69 -0
- package/inputswitch/InputSwitch.vue +94 -0
- package/inputswitch/inputswitch.cjs.js +125 -0
- package/inputswitch/inputswitch.cjs.min.js +1 -0
- package/inputswitch/inputswitch.esm.js +123 -0
- package/inputswitch/inputswitch.esm.min.js +1 -0
- package/inputswitch/inputswitch.js +127 -0
- package/inputswitch/inputswitch.min.js +1 -0
- package/inputswitch/package.json +9 -0
- package/inputtext/InputText.d.ts +39 -0
- package/inputtext/InputText.vue +24 -0
- package/inputtext/inputtext.cjs.js +36 -0
- package/inputtext/inputtext.cjs.min.js +1 -0
- package/inputtext/inputtext.esm.js +34 -0
- package/inputtext/inputtext.esm.min.js +1 -0
- package/inputtext/inputtext.js +38 -0
- package/inputtext/inputtext.min.js +1 -0
- package/inputtext/package.json +9 -0
- package/knob/Knob.d.ts +97 -0
- package/knob/Knob.vue +232 -0
- package/knob/knob.cjs.js +281 -0
- package/knob/knob.cjs.min.js +1 -0
- package/knob/knob.esm.js +279 -0
- package/knob/knob.esm.min.js +1 -0
- package/knob/knob.js +283 -0
- package/knob/knob.min.js +1 -0
- package/knob/package.json +9 -0
- package/listbox/Listbox.d.ts +265 -0
- package/listbox/Listbox.vue +372 -0
- package/listbox/listbox.cjs.js +483 -0
- package/listbox/listbox.cjs.min.js +1 -0
- package/listbox/listbox.esm.js +476 -0
- package/listbox/listbox.esm.min.js +1 -0
- package/listbox/listbox.js +481 -0
- package/listbox/listbox.min.js +1 -0
- package/listbox/package.json +9 -0
- package/megamenu/MegaMenu.d.ts +70 -0
- package/megamenu/MegaMenu.vue +431 -0
- package/megamenu/megamenu.cjs.js +543 -0
- package/megamenu/megamenu.cjs.min.js +1 -0
- package/megamenu/megamenu.esm.js +537 -0
- package/megamenu/megamenu.esm.min.js +1 -0
- package/megamenu/megamenu.js +543 -0
- package/megamenu/megamenu.min.js +1 -0
- package/megamenu/package.json +9 -0
- package/menu/Menu.d.ts +94 -0
- package/menu/Menu.vue +255 -0
- package/menu/Menuitem.vue +65 -0
- package/menu/menu.cjs.js +454 -0
- package/menu/menu.cjs.min.js +1 -0
- package/menu/menu.esm.js +446 -0
- package/menu/menu.esm.min.js +1 -0
- package/menu/menu.js +452 -0
- package/menu/menu.min.js +1 -0
- package/menu/package.json +9 -0
- package/menubar/Menubar.d.ts +62 -0
- package/menubar/Menubar.vue +164 -0
- package/menubar/MenubarSub.vue +306 -0
- package/menubar/menubar.cjs.js +544 -0
- package/menubar/menubar.cjs.min.js +1 -0
- package/menubar/menubar.esm.js +538 -0
- package/menubar/menubar.esm.min.js +1 -0
- package/menubar/menubar.js +544 -0
- package/menubar/menubar.min.js +1 -0
- package/menubar/package.json +9 -0
- package/menuitem/MenuItem.d.ts +82 -0
- package/menuitem/package.json +3 -0
- package/message/Message.d.ts +65 -0
- package/message/Message.vue +127 -0
- package/message/message.cjs.js +149 -0
- package/message/message.cjs.min.js +1 -0
- package/message/message.esm.js +143 -0
- package/message/message.esm.min.js +1 -0
- package/message/message.js +150 -0
- package/message/message.min.js +1 -0
- package/message/package.json +9 -0
- package/multiselect/MultiSelect.d.ts +395 -0
- package/multiselect/MultiSelect.vue +869 -0
- package/multiselect/multiselect.cjs.js +1006 -0
- package/multiselect/multiselect.cjs.min.js +1 -0
- package/multiselect/multiselect.esm.js +997 -0
- package/multiselect/multiselect.esm.min.js +1 -0
- package/multiselect/multiselect.js +1002 -0
- package/multiselect/multiselect.min.js +1 -0
- package/multiselect/package.json +9 -0
- package/orderlist/OrderList.d.ts +139 -0
- package/orderlist/OrderList.vue +415 -0
- package/orderlist/orderlist.cjs.js +463 -0
- package/orderlist/orderlist.cjs.min.js +1 -0
- package/orderlist/orderlist.esm.js +456 -0
- package/orderlist/orderlist.esm.min.js +1 -0
- package/orderlist/orderlist.js +462 -0
- package/orderlist/orderlist.min.js +1 -0
- package/orderlist/package.json +9 -0
- package/organizationchart/OrganizationChart.d.ts +146 -0
- package/organizationchart/OrganizationChart.vue +145 -0
- package/organizationchart/OrganizationChartNode.vue +123 -0
- package/organizationchart/organizationchart.cjs.js +318 -0
- package/organizationchart/organizationchart.cjs.min.js +1 -0
- package/organizationchart/organizationchart.esm.js +316 -0
- package/organizationchart/organizationchart.esm.min.js +1 -0
- package/organizationchart/organizationchart.js +319 -0
- package/organizationchart/organizationchart.min.js +1 -0
- package/organizationchart/package.json +9 -0
- package/overlayeventbus/overlayeventbus.cjs.js +7 -0
- package/overlayeventbus/overlayeventbus.cjs.min.js +1 -0
- package/overlayeventbus/overlayeventbus.esm.js +5 -0
- package/overlayeventbus/overlayeventbus.esm.min.js +1 -0
- package/overlayeventbus/overlayeventbus.js +9 -0
- package/overlayeventbus/overlayeventbus.min.js +1 -0
- package/overlayeventbus/package.json +5 -0
- package/overlaypanel/OverlayPanel.d.ts +120 -0
- package/overlaypanel/OverlayPanel.vue +349 -0
- package/overlaypanel/overlaypanel.cjs.js +357 -0
- package/overlaypanel/overlaypanel.cjs.min.js +1 -0
- package/overlaypanel/overlaypanel.esm.js +349 -0
- package/overlaypanel/overlaypanel.esm.min.js +1 -0
- package/overlaypanel/overlaypanel.js +355 -0
- package/overlaypanel/overlaypanel.min.js +1 -0
- package/overlaypanel/package.json +9 -0
- package/package.json +31 -71
- package/paginator/CurrentPageReport.vue +52 -0
- package/paginator/FirstPageLink.vue +23 -0
- package/paginator/JumpToPageDropdown.vue +36 -0
- package/paginator/JumpToPageInput.vue +26 -0
- package/paginator/LastPageLink.vue +23 -0
- package/paginator/NextPageLink.vue +23 -0
- package/paginator/PageLinks.vue +30 -0
- package/paginator/Paginator.d.ts +140 -0
- package/paginator/Paginator.vue +252 -0
- package/paginator/PrevPageLink.vue +23 -0
- package/paginator/RowsPerPageDropdown.vue +38 -0
- package/paginator/package.json +9 -0
- package/paginator/paginator.cjs.js +685 -0
- package/paginator/paginator.cjs.min.js +1 -0
- package/paginator/paginator.esm.js +677 -0
- package/paginator/paginator.esm.min.js +1 -0
- package/paginator/paginator.js +684 -0
- package/paginator/paginator.min.js +1 -0
- package/panel/Panel.d.ts +75 -0
- package/panel/Panel.vue +91 -0
- package/panel/package.json +9 -0
- package/panel/panel.cjs.js +148 -0
- package/panel/panel.cjs.min.js +1 -0
- package/panel/panel.esm.js +142 -0
- package/panel/panel.esm.min.js +1 -0
- package/panel/panel.js +148 -0
- package/panel/panel.min.js +1 -0
- package/panelmenu/PanelMenu.d.ts +67 -0
- package/panelmenu/PanelMenu.vue +183 -0
- package/panelmenu/PanelMenuSub.vue +121 -0
- package/panelmenu/package.json +9 -0
- package/panelmenu/panelmenu.cjs.js +470 -0
- package/panelmenu/panelmenu.cjs.min.js +1 -0
- package/panelmenu/panelmenu.esm.js +468 -0
- package/panelmenu/panelmenu.esm.min.js +1 -0
- package/panelmenu/panelmenu.js +471 -0
- package/panelmenu/panelmenu.min.js +1 -0
- package/password/Password.d.ts +124 -0
- package/password/Password.vue +336 -0
- package/password/package.json +9 -0
- package/password/password.cjs.js +392 -0
- package/password/password.cjs.min.js +1 -0
- package/password/password.esm.js +384 -0
- package/password/password.esm.min.js +1 -0
- package/password/password.js +390 -0
- package/password/password.min.js +1 -0
- package/picklist/PickList.d.ts +213 -0
- package/picklist/PickList.vue +617 -0
- package/picklist/package.json +9 -0
- package/picklist/picklist.cjs.js +736 -0
- package/picklist/picklist.cjs.min.js +1 -0
- package/picklist/picklist.esm.js +729 -0
- package/picklist/picklist.esm.min.js +1 -0
- package/picklist/picklist.js +735 -0
- package/picklist/picklist.min.js +1 -0
- package/portal/Portal.d.ts +36 -0
- package/portal/Portal.vue +41 -0
- package/portal/package.json +9 -0
- package/portal/portal.cjs.js +48 -0
- package/portal/portal.cjs.min.js +1 -0
- package/portal/portal.esm.js +46 -0
- package/portal/portal.esm.min.js +1 -0
- package/portal/portal.js +49 -0
- package/portal/portal.min.js +1 -0
- package/progressbar/ProgressBar.d.ts +51 -0
- package/progressbar/ProgressBar.vue +154 -0
- package/progressbar/package.json +9 -0
- package/progressbar/progressbar.cjs.js +121 -0
- package/progressbar/progressbar.cjs.min.js +1 -0
- package/progressbar/progressbar.esm.js +119 -0
- package/progressbar/progressbar.esm.min.js +1 -0
- package/progressbar/progressbar.js +123 -0
- package/progressbar/progressbar.min.js +1 -0
- package/progressspinner/ProgressSpinner.d.ts +44 -0
- package/progressspinner/ProgressSpinner.vue +109 -0
- package/progressspinner/package.json +9 -0
- package/progressspinner/progressspinner.cjs.js +89 -0
- package/progressspinner/progressspinner.cjs.min.js +1 -0
- package/progressspinner/progressspinner.esm.js +87 -0
- package/progressspinner/progressspinner.esm.min.js +1 -0
- package/progressspinner/progressspinner.js +91 -0
- package/progressspinner/progressspinner.min.js +1 -0
- package/radiobutton/RadioButton.d.ts +60 -0
- package/radiobutton/RadioButton.vue +58 -0
- package/radiobutton/package.json +9 -0
- package/radiobutton/radiobutton.cjs.js +86 -0
- package/radiobutton/radiobutton.cjs.min.js +1 -0
- package/radiobutton/radiobutton.esm.js +84 -0
- package/radiobutton/radiobutton.esm.min.js +1 -0
- package/radiobutton/radiobutton.js +87 -0
- package/radiobutton/radiobutton.min.js +1 -0
- package/rating/Rating.d.ts +72 -0
- package/rating/Rating.vue +79 -0
- package/rating/package.json +9 -0
- package/rating/rating.cjs.js +124 -0
- package/rating/rating.cjs.min.js +1 -0
- package/rating/rating.esm.js +122 -0
- package/rating/rating.esm.min.js +1 -0
- package/rating/rating.js +126 -0
- package/rating/rating.min.js +1 -0
- package/resources/images/color.png +0 -0
- package/resources/images/hue.png +0 -0
- package/resources/primevue.css +493 -0
- package/resources/primevue.min.css +1 -0
- package/resources/themes/arya-blue/theme.css +5687 -0
- package/resources/themes/arya-green/theme.css +5687 -0
- package/resources/themes/arya-orange/theme.css +5687 -0
- package/resources/themes/arya-purple/theme.css +5687 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +5694 -0
- package/resources/themes/bootstrap4-dark-purple/theme.css +5694 -0
- package/resources/themes/bootstrap4-light-blue/theme.css +5694 -0
- package/resources/themes/bootstrap4-light-purple/theme.css +5694 -0
- package/resources/themes/fluent-light/theme.css +5821 -0
- package/resources/themes/lara-dark-blue/theme.css +5668 -0
- package/resources/themes/lara-dark-indigo/theme.css +5668 -0
- package/resources/themes/lara-dark-purple/theme.css +5668 -0
- package/resources/themes/lara-dark-teal/theme.css +5668 -0
- package/resources/themes/lara-light-blue/theme.css +5668 -0
- package/resources/themes/lara-light-indigo/theme.css +5668 -0
- package/resources/themes/lara-light-purple/theme.css +5668 -0
- package/resources/themes/lara-light-teal/theme.css +5668 -0
- package/resources/themes/luna-amber/theme.css +5633 -0
- package/resources/themes/luna-blue/theme.css +5633 -0
- package/resources/themes/luna-green/theme.css +5633 -0
- package/resources/themes/luna-pink/theme.css +5633 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-dark-deeppurple/theme.css +7215 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-dark-indigo/theme.css +7215 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-light-deeppurple/theme.css +7215 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/md-light-indigo/theme.css +7215 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-dark-deeppurple/theme.css +7215 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-dark-indigo/theme.css +7215 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-light-deeppurple/theme.css +7215 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/mdc-light-indigo/theme.css +7215 -0
- package/resources/themes/nova/theme.css +5647 -0
- package/resources/themes/nova-accent/theme.css +5657 -0
- package/resources/themes/nova-alt/theme.css +5659 -0
- package/resources/themes/nova-vue/theme.css +5647 -0
- package/resources/themes/rhea/theme.css +5635 -0
- package/resources/themes/saga-blue/theme.css +5684 -0
- package/resources/themes/saga-green/theme.css +5684 -0
- package/resources/themes/saga-orange/theme.css +5684 -0
- package/resources/themes/saga-purple/theme.css +5684 -0
- package/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/tailwind-light/theme.css +5787 -0
- package/resources/themes/vela-blue/theme.css +5687 -0
- package/resources/themes/vela-green/theme.css +5687 -0
- package/resources/themes/vela-orange/theme.css +5687 -0
- package/resources/themes/vela-purple/theme.css +5687 -0
- package/ripple/Ripple.d.ts +5 -0
- package/ripple/package.json +6 -0
- package/ripple/ripple.cjs.js +78 -0
- package/ripple/ripple.cjs.min.js +1 -0
- package/ripple/ripple.esm.js +76 -0
- package/ripple/ripple.esm.min.js +1 -0
- package/ripple/ripple.js +80 -0
- package/ripple/ripple.min.js +1 -0
- package/row/Row.d.ts +29 -0
- package/row/Row.vue +8 -0
- package/row/package.json +9 -0
- package/row/row.cjs.js +10 -0
- package/row/row.cjs.min.js +1 -0
- package/row/row.esm.js +8 -0
- package/row/row.esm.min.js +1 -0
- package/row/row.js +14 -0
- package/row/row.min.js +1 -0
- package/scrollpanel/ScrollPanel.d.ts +34 -0
- package/scrollpanel/ScrollPanel.vue +264 -0
- package/scrollpanel/package.json +9 -0
- package/scrollpanel/scrollpanel.cjs.js +262 -0
- package/scrollpanel/scrollpanel.cjs.min.js +1 -0
- package/scrollpanel/scrollpanel.esm.js +260 -0
- package/scrollpanel/scrollpanel.esm.min.js +1 -0
- package/scrollpanel/scrollpanel.js +263 -0
- package/scrollpanel/scrollpanel.min.js +1 -0
- package/scrolltop/ScrollTop.d.ts +52 -0
- package/scrolltop/ScrollTop.vue +150 -0
- package/scrolltop/package.json +9 -0
- package/scrolltop/scrolltop.cjs.js +168 -0
- package/scrolltop/scrolltop.cjs.min.js +1 -0
- package/scrolltop/scrolltop.esm.js +166 -0
- package/scrolltop/scrolltop.esm.min.js +1 -0
- package/scrolltop/scrolltop.js +169 -0
- package/scrolltop/scrolltop.min.js +1 -0
- package/selectbutton/SelectButton.d.ts +117 -0
- package/selectbutton/SelectButton.vue +114 -0
- package/selectbutton/package.json +9 -0
- package/selectbutton/selectbutton.cjs.js +150 -0
- package/selectbutton/selectbutton.cjs.min.js +1 -0
- package/selectbutton/selectbutton.esm.js +144 -0
- package/selectbutton/selectbutton.esm.min.js +1 -0
- package/selectbutton/selectbutton.js +150 -0
- package/selectbutton/selectbutton.min.js +1 -0
- package/sidebar/Sidebar.d.ts +93 -0
- package/sidebar/Sidebar.vue +307 -0
- package/sidebar/package.json +9 -0
- package/sidebar/sidebar.cjs.js +259 -0
- package/sidebar/sidebar.cjs.min.js +1 -0
- package/sidebar/sidebar.esm.js +252 -0
- package/sidebar/sidebar.esm.min.js +1 -0
- package/sidebar/sidebar.js +258 -0
- package/sidebar/sidebar.min.js +1 -0
- package/skeleton/Skeleton.d.ts +63 -0
- package/skeleton/Skeleton.vue +85 -0
- package/skeleton/package.json +9 -0
- package/skeleton/skeleton.cjs.js +88 -0
- package/skeleton/skeleton.cjs.min.js +1 -0
- package/skeleton/skeleton.esm.js +86 -0
- package/skeleton/skeleton.esm.min.js +1 -0
- package/skeleton/skeleton.js +90 -0
- package/skeleton/skeleton.min.js +1 -0
- package/slider/Slider.d.ts +95 -0
- package/slider/Slider.vue +376 -0
- package/slider/package.json +9 -0
- package/slider/slider.cjs.js +425 -0
- package/slider/slider.cjs.min.js +1 -0
- package/slider/slider.esm.js +423 -0
- package/slider/slider.esm.min.js +1 -0
- package/slider/slider.js +426 -0
- package/slider/slider.min.js +1 -0
- package/speeddial/SpeedDial.d.ts +176 -0
- package/speeddial/SpeedDial.vue +382 -0
- package/speeddial/package.json +9 -0
- package/speeddial/speeddial.cjs.js +360 -0
- package/speeddial/speeddial.cjs.min.js +1 -0
- package/speeddial/speeddial.esm.js +352 -0
- package/speeddial/speeddial.esm.min.js +1 -0
- package/speeddial/speeddial.js +358 -0
- package/speeddial/speeddial.min.js +1 -0
- package/splitbutton/SplitButton.d.ts +82 -0
- package/splitbutton/SplitButton.vue +104 -0
- package/splitbutton/package.json +9 -0
- package/splitbutton/splitbutton.cjs.js +138 -0
- package/splitbutton/splitbutton.cjs.min.js +1 -0
- package/splitbutton/splitbutton.esm.js +131 -0
- package/splitbutton/splitbutton.esm.min.js +1 -0
- package/splitbutton/splitbutton.js +137 -0
- package/splitbutton/splitbutton.min.js +1 -0
- package/splitter/Splitter.d.ts +79 -0
- package/splitter/Splitter.vue +315 -0
- package/splitter/package.json +9 -0
- package/splitter/splitter.cjs.js +303 -0
- package/splitter/splitter.cjs.min.js +1 -0
- package/splitter/splitter.esm.js +301 -0
- package/splitter/splitter.esm.min.js +1 -0
- package/splitter/splitter.js +304 -0
- package/splitter/splitter.min.js +1 -0
- package/splitterpanel/SplitterPanel.d.ts +42 -0
- package/splitterpanel/SplitterPanel.vue +31 -0
- package/splitterpanel/package.json +9 -0
- package/splitterpanel/splitterpanel.cjs.js +40 -0
- package/splitterpanel/splitterpanel.cjs.min.js +1 -0
- package/splitterpanel/splitterpanel.esm.js +38 -0
- package/splitterpanel/splitterpanel.esm.min.js +1 -0
- package/splitterpanel/splitterpanel.js +42 -0
- package/splitterpanel/splitterpanel.min.js +1 -0
- package/steps/Steps.d.ts +59 -0
- package/steps/Steps.vue +150 -0
- package/steps/package.json +9 -0
- package/steps/steps.cjs.js +183 -0
- package/steps/steps.cjs.min.js +1 -0
- package/steps/steps.esm.js +181 -0
- package/steps/steps.esm.min.js +1 -0
- package/steps/steps.js +184 -0
- package/steps/steps.min.js +1 -0
- package/styleclass/StyleClass.d.ts +5 -0
- package/styleclass/package.json +6 -0
- package/styleclass/styleclass.cjs.js +179 -0
- package/styleclass/styleclass.cjs.min.js +1 -0
- package/styleclass/styleclass.esm.js +177 -0
- package/styleclass/styleclass.esm.min.js +1 -0
- package/styleclass/styleclass.js +181 -0
- package/styleclass/styleclass.min.js +1 -0
- package/tabmenu/TabMenu.d.ts +71 -0
- package/tabmenu/TabMenu.vue +191 -0
- package/tabmenu/package.json +9 -0
- package/tabmenu/tabmenu.cjs.js +263 -0
- package/tabmenu/tabmenu.cjs.min.js +1 -0
- package/tabmenu/tabmenu.esm.js +257 -0
- package/tabmenu/tabmenu.esm.min.js +1 -0
- package/tabmenu/tabmenu.js +263 -0
- package/tabmenu/tabmenu.min.js +1 -0
- package/tabpanel/TabPanel.d.ts +46 -0
- package/tabpanel/TabPanel.vue +13 -0
- package/tabpanel/package.json +9 -0
- package/tabpanel/tabpanel.cjs.js +19 -0
- package/tabpanel/tabpanel.cjs.min.js +1 -0
- package/tabpanel/tabpanel.esm.js +17 -0
- package/tabpanel/tabpanel.esm.min.js +1 -0
- package/tabpanel/tabpanel.js +21 -0
- package/tabpanel/tabpanel.min.js +1 -0
- package/tabview/TabView.d.ts +81 -0
- package/tabview/TabView.vue +252 -0
- package/tabview/package.json +9 -0
- package/tabview/tabview.cjs.js +300 -0
- package/tabview/tabview.cjs.min.js +1 -0
- package/tabview/tabview.esm.js +294 -0
- package/tabview/tabview.esm.min.js +1 -0
- package/tabview/tabview.js +300 -0
- package/tabview/tabview.min.js +1 -0
- package/tag/Tag.d.ts +53 -0
- package/tag/Tag.vue +52 -0
- package/tag/package.json +9 -0
- package/tag/tag.cjs.js +77 -0
- package/tag/tag.cjs.min.js +1 -0
- package/tag/tag.esm.js +75 -0
- package/tag/tag.esm.min.js +1 -0
- package/tag/tag.js +79 -0
- package/tag/tag.min.js +1 -0
- package/terminal/Terminal.d.ts +41 -0
- package/terminal/Terminal.vue +90 -0
- package/terminal/package.json +9 -0
- package/terminal/terminal.cjs.js +130 -0
- package/terminal/terminal.cjs.min.js +1 -0
- package/terminal/terminal.esm.js +124 -0
- package/terminal/terminal.esm.min.js +1 -0
- package/terminal/terminal.js +131 -0
- package/terminal/terminal.min.js +1 -0
- package/terminalservice/TerminalService.d.ts +11 -0
- package/terminalservice/package.json +6 -0
- package/terminalservice/terminalservice.cjs.js +7 -0
- package/terminalservice/terminalservice.cjs.min.js +1 -0
- package/terminalservice/terminalservice.esm.js +5 -0
- package/terminalservice/terminalservice.esm.min.js +1 -0
- package/terminalservice/terminalservice.js +9 -0
- package/terminalservice/terminalservice.min.js +1 -0
- package/textarea/Textarea.d.ts +43 -0
- package/textarea/Textarea.vue +63 -0
- package/textarea/package.json +9 -0
- package/textarea/textarea.cjs.js +95 -0
- package/textarea/textarea.cjs.min.js +1 -0
- package/textarea/textarea.esm.js +93 -0
- package/textarea/textarea.esm.min.js +1 -0
- package/textarea/textarea.js +97 -0
- package/textarea/textarea.min.js +1 -0
- package/tieredmenu/TieredMenu.d.ts +97 -0
- package/tieredmenu/TieredMenu.vue +244 -0
- package/tieredmenu/TieredMenuSub.vue +251 -0
- package/tieredmenu/package.json +9 -0
- package/tieredmenu/tieredmenu.cjs.js +599 -0
- package/tieredmenu/tieredmenu.cjs.min.js +1 -0
- package/tieredmenu/tieredmenu.esm.js +591 -0
- package/tieredmenu/tieredmenu.esm.min.js +1 -0
- package/tieredmenu/tieredmenu.js +597 -0
- package/tieredmenu/tieredmenu.min.js +1 -0
- package/timeline/Timeline.d.ts +104 -0
- package/timeline/Timeline.vue +167 -0
- package/timeline/package.json +9 -0
- package/timeline/timeline.cjs.js +113 -0
- package/timeline/timeline.cjs.min.js +1 -0
- package/timeline/timeline.esm.js +111 -0
- package/timeline/timeline.esm.min.js +1 -0
- package/timeline/timeline.js +114 -0
- package/timeline/timeline.min.js +1 -0
- package/toast/Toast.d.ts +126 -0
- package/toast/Toast.vue +257 -0
- package/toast/ToastMessage.vue +77 -0
- package/toast/package.json +9 -0
- package/toast/toast.cjs.js +332 -0
- package/toast/toast.cjs.min.js +1 -0
- package/toast/toast.esm.js +324 -0
- package/toast/toast.esm.min.js +1 -0
- package/toast/toast.js +330 -0
- package/toast/toast.min.js +1 -0
- package/toasteventbus/package.json +5 -0
- package/toasteventbus/toasteventbus.cjs.js +7 -0
- package/toasteventbus/toasteventbus.cjs.min.js +1 -0
- package/toasteventbus/toasteventbus.esm.js +5 -0
- package/toasteventbus/toasteventbus.esm.min.js +1 -0
- package/toasteventbus/toasteventbus.js +9 -0
- package/toasteventbus/toasteventbus.min.js +1 -0
- package/toastservice/ToastService.d.ts +34 -0
- package/toastservice/package.json +6 -0
- package/toastservice/toastservice.cjs.js +28 -0
- package/toastservice/toastservice.cjs.min.js +1 -0
- package/toastservice/toastservice.esm.js +22 -0
- package/toastservice/toastservice.esm.min.js +1 -0
- package/toastservice/toastservice.js +29 -0
- package/toastservice/toastservice.min.js +1 -0
- package/togglebutton/ToggleButton.d.ts +69 -0
- package/togglebutton/ToggleButton.vue +66 -0
- package/togglebutton/package.json +9 -0
- package/togglebutton/togglebutton.cjs.js +93 -0
- package/togglebutton/togglebutton.cjs.min.js +1 -0
- package/togglebutton/togglebutton.esm.js +87 -0
- package/togglebutton/togglebutton.esm.min.js +1 -0
- package/togglebutton/togglebutton.js +94 -0
- package/togglebutton/togglebutton.min.js +1 -0
- package/toolbar/Toolbar.d.ts +38 -0
- package/toolbar/Toolbar.vue +31 -0
- package/toolbar/package.json +9 -0
- package/toolbar/toolbar.cjs.js +59 -0
- package/toolbar/toolbar.cjs.min.js +1 -0
- package/toolbar/toolbar.esm.js +57 -0
- package/toolbar/toolbar.esm.min.js +1 -0
- package/toolbar/toolbar.js +61 -0
- package/toolbar/toolbar.min.js +1 -0
- package/tooltip/Tooltip.d.ts +5 -0
- package/tooltip/package.json +6 -0
- package/tooltip/tooltip.cjs.js +347 -0
- package/tooltip/tooltip.cjs.min.js +1 -0
- package/tooltip/tooltip.esm.js +345 -0
- package/tooltip/tooltip.esm.min.js +1 -0
- package/tooltip/tooltip.js +349 -0
- package/tooltip/tooltip.min.js +1 -0
- package/tree/Tree.d.ts +199 -0
- package/tree/Tree.vue +372 -0
- package/tree/TreeNode.vue +298 -0
- package/tree/package.json +9 -0
- package/tree/tree.cjs.js +725 -0
- package/tree/tree.cjs.min.js +1 -0
- package/tree/tree.esm.js +719 -0
- package/tree/tree.esm.min.js +1 -0
- package/tree/tree.js +725 -0
- package/tree/tree.min.js +1 -0
- package/treeselect/TreeSelect.d.ts +215 -0
- package/treeselect/TreeSelect.vue +488 -0
- package/treeselect/package.json +9 -0
- package/treeselect/treeselect.cjs.js +555 -0
- package/treeselect/treeselect.cjs.min.js +1 -0
- package/treeselect/treeselect.esm.js +546 -0
- package/treeselect/treeselect.esm.min.js +1 -0
- package/treeselect/treeselect.js +552 -0
- package/treeselect/treeselect.min.js +1 -0
- package/treetable/BodyCell.vue +156 -0
- package/treetable/FooterCell.vue +74 -0
- package/treetable/HeaderCell.vue +177 -0
- package/treetable/TreeTable.d.ts +467 -0
- package/treetable/TreeTable.vue +1079 -0
- package/treetable/TreeTableRow.vue +256 -0
- package/treetable/package.json +9 -0
- package/treetable/treetable.cjs.js +1879 -0
- package/treetable/treetable.cjs.min.js +1 -0
- package/treetable/treetable.esm.js +1872 -0
- package/treetable/treetable.esm.min.js +1 -0
- package/treetable/treetable.js +1877 -0
- package/treetable/treetable.min.js +1 -0
- package/tristatecheckbox/TriStateCheckbox.d.ts +46 -0
- package/tristatecheckbox/TriStateCheckbox.vue +83 -0
- package/tristatecheckbox/package.json +9 -0
- package/tristatecheckbox/tristatecheckbox.cjs.js +111 -0
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -0
- package/tristatecheckbox/tristatecheckbox.esm.js +109 -0
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -0
- package/tristatecheckbox/tristatecheckbox.js +113 -0
- package/tristatecheckbox/tristatecheckbox.min.js +1 -0
- package/ts-helpers.d.ts +28 -0
- package/useconfirm/UseConfirm.d.ts +6 -0
- package/useconfirm/package.json +6 -0
- package/useconfirm/useconfirm.cjs.js +19 -0
- package/useconfirm/useconfirm.cjs.min.js +1 -0
- package/useconfirm/useconfirm.esm.js +14 -0
- package/useconfirm/useconfirm.esm.min.js +1 -0
- package/useconfirm/useconfirm.js +23 -0
- package/useconfirm/useconfirm.min.js +1 -0
- package/usedialog/UseDialog.d.ts +5 -0
- package/usedialog/package.json +6 -0
- package/usedialog/usedialog.cjs.js +19 -0
- package/usedialog/usedialog.cjs.min.js +1 -0
- package/usedialog/usedialog.esm.js +14 -0
- package/usedialog/usedialog.esm.min.js +1 -0
- package/usedialog/usedialog.js +23 -0
- package/usedialog/usedialog.min.js +1 -0
- package/usetoast/UseToast.d.ts +3 -0
- package/usetoast/package.json +6 -0
- package/usetoast/usetoast.cjs.js +19 -0
- package/usetoast/usetoast.cjs.min.js +1 -0
- package/usetoast/usetoast.esm.js +14 -0
- package/usetoast/usetoast.esm.min.js +1 -0
- package/usetoast/usetoast.js +23 -0
- package/usetoast/usetoast.min.js +1 -0
- package/utils/Utils.d.ts +84 -0
- package/utils/package.json +6 -0
- package/utils/utils.cjs.js +884 -0
- package/utils/utils.cjs.min.js +1 -0
- package/utils/utils.esm.js +875 -0
- package/utils/utils.esm.min.js +1 -0
- package/utils/utils.js +890 -0
- package/utils/utils.min.js +1 -0
- package/vetur-attributes.json +3166 -0
- package/vetur-tags.json +1208 -0
- package/virtualscroller/VirtualScroller.d.ts +315 -0
- package/virtualscroller/VirtualScroller.vue +616 -0
- package/virtualscroller/package.json +9 -0
- package/virtualscroller/virtualscroller.cjs.js +656 -0
- package/virtualscroller/virtualscroller.cjs.min.js +1 -0
- package/virtualscroller/virtualscroller.esm.js +654 -0
- package/virtualscroller/virtualscroller.esm.min.js +1 -0
- package/virtualscroller/virtualscroller.js +658 -0
- package/virtualscroller/virtualscroller.min.js +1 -0
- package/web-types.json +13021 -0
- package/.editorconfig +0 -13
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -98
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -39
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -5
- package/CHANGELOG.md +0 -2236
- package/api-generator/build-api.js +0 -164
- package/api-generator/components/accordion.js +0 -76
- package/api-generator/components/accordiontab.js +0 -22
- package/api-generator/components/autocomplete.js +0 -246
- package/api-generator/components/avatar.js +0 -48
- package/api-generator/components/avatargroup.js +0 -7
- package/api-generator/components/badge.js +0 -28
- package/api-generator/components/badgedirective.js +0 -26
- package/api-generator/components/blockui.js +0 -46
- package/api-generator/components/breadcrumb.js +0 -36
- package/api-generator/components/button.js +0 -52
- package/api-generator/components/calendar.js +0 -403
- package/api-generator/components/card.js +0 -30
- package/api-generator/components/carousel.js +0 -98
- package/api-generator/components/cascadeselect.js +0 -174
- package/api-generator/components/chart.js +0 -92
- package/api-generator/components/checkbox.js +0 -68
- package/api-generator/components/chip.js +0 -55
- package/api-generator/components/chips.js +0 -96
- package/api-generator/components/colorpicker.js +0 -104
- package/api-generator/components/column.js +0 -298
- package/api-generator/components/columngroup.js +0 -7
- package/api-generator/components/confirmdialog.js +0 -22
- package/api-generator/components/confirmpopup.js +0 -24
- package/api-generator/components/contextmenu.js +0 -54
- package/api-generator/components/datatable.js +0 -1161
- package/api-generator/components/dataview.js +0 -168
- package/api-generator/components/dataviewlayoutoptions.js +0 -7
- package/api-generator/components/deferredcontent.js +0 -21
- package/api-generator/components/dialog.js +0 -203
- package/api-generator/components/divider.js +0 -28
- package/api-generator/components/dock.js +0 -58
- package/api-generator/components/dropdown.js +0 -301
- package/api-generator/components/dynamicdialog.js +0 -15
- package/api-generator/components/editor.js +0 -94
- package/api-generator/components/fieldset.js +0 -57
- package/api-generator/components/fileupload.js +0 -293
- package/api-generator/components/fullcalendar.js +0 -22
- package/api-generator/components/galleria.js +0 -182
- package/api-generator/components/image.js +0 -40
- package/api-generator/components/inlinemessage.js +0 -17
- package/api-generator/components/inplace.js +0 -66
- package/api-generator/components/inputmask.js +0 -40
- package/api-generator/components/inputnumber.js +0 -219
- package/api-generator/components/inputswitch.js +0 -56
- package/api-generator/components/inputtext.js +0 -16
- package/api-generator/components/knob.js +0 -103
- package/api-generator/components/listbox.js +0 -202
- package/api-generator/components/megamenu.js +0 -44
- package/api-generator/components/menu.js +0 -66
- package/api-generator/components/menubar.js +0 -38
- package/api-generator/components/message.js +0 -55
- package/api-generator/components/multiselect.js +0 -318
- package/api-generator/components/orderlist.js +0 -120
- package/api-generator/components/organizationchart.js +0 -88
- package/api-generator/components/overlaypanel.js +0 -64
- package/api-generator/components/paginator.js +0 -100
- package/api-generator/components/panel.js +0 -60
- package/api-generator/components/panelmenu.js +0 -36
- package/api-generator/components/password.js +0 -128
- package/api-generator/components/picklist.js +0 -208
- package/api-generator/components/portal.js +0 -28
- package/api-generator/components/progressbar.js +0 -28
- package/api-generator/components/progressspinner.js +0 -28
- package/api-generator/components/radiobutton.js +0 -60
- package/api-generator/components/rating.js +0 -60
- package/api-generator/components/ripple.js +0 -7
- package/api-generator/components/row.js +0 -7
- package/api-generator/components/scrollpanel.js +0 -6
- package/api-generator/components/scrolltop.js +0 -34
- package/api-generator/components/selectbutton.js +0 -114
- package/api-generator/components/sidebar.js +0 -78
- package/api-generator/components/skeleton.js +0 -46
- package/api-generator/components/slider.js +0 -89
- package/api-generator/components/speeddial.js +0 -153
- package/api-generator/components/splitbutton.js +0 -73
- package/api-generator/components/splitter.js +0 -54
- package/api-generator/components/splitterpanel.js +0 -23
- package/api-generator/components/steps.js +0 -42
- package/api-generator/components/styleclass.js +0 -7
- package/api-generator/components/tabmenu.js +0 -56
- package/api-generator/components/tabpanel.js +0 -59
- package/api-generator/components/tabview.js +0 -28
- package/api-generator/components/tag.js +0 -34
- package/api-generator/components/terminal.js +0 -22
- package/api-generator/components/textarea.js +0 -22
- package/api-generator/components/tieredmenu.js +0 -54
- package/api-generator/components/timeline.js +0 -54
- package/api-generator/components/toast.js +0 -48
- package/api-generator/components/togglebutton.js +0 -61
- package/api-generator/components/toolbar.js +0 -18
- package/api-generator/components/tooltip.js +0 -34
- package/api-generator/components/tree.js +0 -136
- package/api-generator/components/treeselect.js +0 -193
- package/api-generator/components/treetable.js +0 -473
- package/api-generator/components/tristatecheckbox.js +0 -28
- package/api-generator/components/virtualscroller.js +0 -169
- package/build-meta.js +0 -17
- package/gulpfile.js +0 -37
- package/jest.config.js +0 -35
- package/package-build.json +0 -32
- package/rollup.config.js +0 -200
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
this.primevue = this.primevue || {};
|
|
2
|
+
this.primevue.inputmask = (function (utils, vue) {
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
var script = {
|
|
6
|
+
name: 'InputMask',
|
|
7
|
+
emits: ['update:modelValue', 'focus', 'blur', 'keydown', 'complete', 'keypress', 'paste'],
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: null,
|
|
10
|
+
slotChar: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: '_'
|
|
13
|
+
},
|
|
14
|
+
mask: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: null
|
|
17
|
+
},
|
|
18
|
+
autoClear: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: true
|
|
21
|
+
},
|
|
22
|
+
unmask: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
methods: {
|
|
28
|
+
onInput(event) {
|
|
29
|
+
if (this.androidChrome)
|
|
30
|
+
this.handleAndroidInput(event);
|
|
31
|
+
else
|
|
32
|
+
this.handleInputChange(event);
|
|
33
|
+
|
|
34
|
+
this.$emit('update:modelValue', event.target.value);
|
|
35
|
+
},
|
|
36
|
+
onFocus(event) {
|
|
37
|
+
if (this.$attrs.readonly) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
this.focus = true;
|
|
42
|
+
|
|
43
|
+
clearTimeout(this.caretTimeoutId);
|
|
44
|
+
let pos;
|
|
45
|
+
|
|
46
|
+
this.focusText = this.$el.value;
|
|
47
|
+
|
|
48
|
+
pos = this.checkVal();
|
|
49
|
+
|
|
50
|
+
this.caretTimeoutId = setTimeout(() => {
|
|
51
|
+
if (this.$el !== document.activeElement) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this.writeBuffer();
|
|
55
|
+
if (pos === this.mask.replace("?", "").length) {
|
|
56
|
+
this.caret(0, pos);
|
|
57
|
+
} else {
|
|
58
|
+
this.caret(pos);
|
|
59
|
+
}
|
|
60
|
+
}, 10);
|
|
61
|
+
|
|
62
|
+
this.$emit('focus', event);
|
|
63
|
+
},
|
|
64
|
+
onBlur(event) {
|
|
65
|
+
this.focus = false;
|
|
66
|
+
this.checkVal();
|
|
67
|
+
this.updateModel(event);
|
|
68
|
+
|
|
69
|
+
if (this.$el.value !== this.focusText) {
|
|
70
|
+
let e = document.createEvent('HTMLEvents');
|
|
71
|
+
e.initEvent('change', true, false);
|
|
72
|
+
this.$el.dispatchEvent(e);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
this.$emit('blur', event);
|
|
76
|
+
},
|
|
77
|
+
onKeyDown(event) {
|
|
78
|
+
if (this.$attrs.readonly) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
let k = event.which || event.keyCode,
|
|
83
|
+
pos,
|
|
84
|
+
begin,
|
|
85
|
+
end;
|
|
86
|
+
let iPhone = /iphone/i.test(utils.DomHandler.getUserAgent());
|
|
87
|
+
this.oldVal = this.$el.value;
|
|
88
|
+
|
|
89
|
+
//backspace, delete, and escape get special treatment
|
|
90
|
+
if (k === 8 || k === 46 || (iPhone && k === 127)) {
|
|
91
|
+
pos = this.caret();
|
|
92
|
+
begin = pos.begin;
|
|
93
|
+
end = pos.end;
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
if (end - begin === 0) {
|
|
97
|
+
begin = k !== 46 ? this.seekPrev(begin) : (end = this.seekNext(begin - 1));
|
|
98
|
+
end = k === 46 ? this.seekNext(end) : end;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
this.clearBuffer(begin, end);
|
|
102
|
+
this.shiftL(begin, end - 1);
|
|
103
|
+
this.updateModel(event);
|
|
104
|
+
|
|
105
|
+
event.preventDefault();
|
|
106
|
+
} else if (k === 13) { // enter
|
|
107
|
+
this.$el.blur();
|
|
108
|
+
this.updateModel(event);
|
|
109
|
+
} else if (k === 27) { // escape
|
|
110
|
+
this.$el.value = this.focusText;
|
|
111
|
+
this.caret(0, this.checkVal());
|
|
112
|
+
this.updateModel(event);
|
|
113
|
+
event.preventDefault();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
this.$emit('keydown', event);
|
|
117
|
+
},
|
|
118
|
+
onKeyPress(event) {
|
|
119
|
+
if (this.$attrs.readonly) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
var k = event.which || event.keyCode,
|
|
124
|
+
pos = this.caret(),
|
|
125
|
+
p,
|
|
126
|
+
c,
|
|
127
|
+
next,
|
|
128
|
+
completed;
|
|
129
|
+
|
|
130
|
+
if (event.ctrlKey || event.altKey || event.metaKey || k < 32) {//Ignore
|
|
131
|
+
return;
|
|
132
|
+
} else if (k && k !== 13) {
|
|
133
|
+
if (pos.end - pos.begin !== 0) {
|
|
134
|
+
this.clearBuffer(pos.begin, pos.end);
|
|
135
|
+
this.shiftL(pos.begin, pos.end - 1);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
p = this.seekNext(pos.begin - 1);
|
|
139
|
+
if (p < this.len) {
|
|
140
|
+
c = String.fromCharCode(k);
|
|
141
|
+
if (this.tests[p].test(c)) {
|
|
142
|
+
this.shiftR(p);
|
|
143
|
+
|
|
144
|
+
this.buffer[p] = c;
|
|
145
|
+
this.writeBuffer();
|
|
146
|
+
next = this.seekNext(p);
|
|
147
|
+
|
|
148
|
+
if (/android/i.test(utils.DomHandler.getUserAgent())) {
|
|
149
|
+
//Path for CSP Violation on FireFox OS 1.1
|
|
150
|
+
let proxy = () => {
|
|
151
|
+
this.caret(next);
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
setTimeout(proxy, 0);
|
|
155
|
+
} else {
|
|
156
|
+
this.caret(next);
|
|
157
|
+
}
|
|
158
|
+
if (pos.begin <= this.lastRequiredNonMaskPos) {
|
|
159
|
+
completed = this.isCompleted();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
event.preventDefault();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
this.updateModel(event);
|
|
167
|
+
|
|
168
|
+
if (completed) {
|
|
169
|
+
this.$emit('complete', event);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
this.$emit('keypress', event);
|
|
173
|
+
},
|
|
174
|
+
onPaste(event) {
|
|
175
|
+
this.handleInputChange(event);
|
|
176
|
+
|
|
177
|
+
this.$emit('paste', event);
|
|
178
|
+
},
|
|
179
|
+
caret(first, last) {
|
|
180
|
+
let range, begin, end;
|
|
181
|
+
|
|
182
|
+
if (!this.$el.offsetParent || this.$el !== document.activeElement) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (typeof first === 'number') {
|
|
187
|
+
begin = first;
|
|
188
|
+
end = (typeof last === 'number') ? last : begin;
|
|
189
|
+
if (this.$el.setSelectionRange) {
|
|
190
|
+
this.$el.setSelectionRange(begin, end);
|
|
191
|
+
}
|
|
192
|
+
else if (this.$el['createTextRange']) {
|
|
193
|
+
range = this.$el['createTextRange']();
|
|
194
|
+
range.collapse(true);
|
|
195
|
+
range.moveEnd('character', end);
|
|
196
|
+
range.moveStart('character', begin);
|
|
197
|
+
range.select();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
if (this.$el.setSelectionRange) {
|
|
202
|
+
begin = this.$el.selectionStart;
|
|
203
|
+
end = this.$el.selectionEnd;
|
|
204
|
+
}
|
|
205
|
+
else if (document['selection'] && document['selection'].createRange) {
|
|
206
|
+
range = document['selection'].createRange();
|
|
207
|
+
begin = 0 - range.duplicate().moveStart('character', -100000);
|
|
208
|
+
end = begin + range.text.length;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return { begin: begin, end: end };
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
isCompleted() {
|
|
215
|
+
for (let i = this.firstNonMaskPos; i <= this.lastRequiredNonMaskPos; i++) {
|
|
216
|
+
if (this.tests[i] && this.buffer[i] === this.getPlaceholder(i)) {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
return true;
|
|
222
|
+
},
|
|
223
|
+
getPlaceholder(i) {
|
|
224
|
+
if (i < this.slotChar.length) {
|
|
225
|
+
return this.slotChar.charAt(i);
|
|
226
|
+
}
|
|
227
|
+
return this.slotChar.charAt(0);
|
|
228
|
+
},
|
|
229
|
+
seekNext(pos) {
|
|
230
|
+
while (++pos < this.len && !this.tests[pos]);
|
|
231
|
+
return pos;
|
|
232
|
+
},
|
|
233
|
+
seekPrev(pos) {
|
|
234
|
+
while (--pos >= 0 && !this.tests[pos]);
|
|
235
|
+
return pos;
|
|
236
|
+
},
|
|
237
|
+
shiftL(begin, end) {
|
|
238
|
+
let i, j;
|
|
239
|
+
|
|
240
|
+
if (begin < 0) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
for (i = begin, j = this.seekNext(end); i < this.len; i++) {
|
|
245
|
+
if (this.tests[i]) {
|
|
246
|
+
if (j < this.len && this.tests[i].test(this.buffer[j])) {
|
|
247
|
+
this.buffer[i] = this.buffer[j];
|
|
248
|
+
this.buffer[j] = this.getPlaceholder(j);
|
|
249
|
+
} else {
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
j = this.seekNext(j);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
this.writeBuffer();
|
|
257
|
+
this.caret(Math.max(this.firstNonMaskPos, begin));
|
|
258
|
+
},
|
|
259
|
+
shiftR(pos) {
|
|
260
|
+
let i, c, j, t;
|
|
261
|
+
|
|
262
|
+
for (i = pos, c = this.getPlaceholder(pos); i < this.len; i++) {
|
|
263
|
+
if (this.tests[i]) {
|
|
264
|
+
j = this.seekNext(i);
|
|
265
|
+
t = this.buffer[i];
|
|
266
|
+
this.buffer[i] = c;
|
|
267
|
+
if (j < this.len && this.tests[j].test(t)) {
|
|
268
|
+
c = t;
|
|
269
|
+
} else {
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
handleAndroidInput(event) {
|
|
276
|
+
var curVal = this.$el.value;
|
|
277
|
+
var pos = this.caret();
|
|
278
|
+
if (this.oldVal && this.oldVal.length && this.oldVal.length > curVal.length) {
|
|
279
|
+
// a deletion or backspace happened
|
|
280
|
+
this.checkVal(true);
|
|
281
|
+
while (pos.begin > 0 && !this.tests[pos.begin - 1])
|
|
282
|
+
pos.begin--;
|
|
283
|
+
if (pos.begin === 0) {
|
|
284
|
+
while (pos.begin < this.firstNonMaskPos && !this.tests[pos.begin])
|
|
285
|
+
pos.begin++;
|
|
286
|
+
}
|
|
287
|
+
this.caret(pos.begin, pos.begin);
|
|
288
|
+
} else {
|
|
289
|
+
this.checkVal(true);
|
|
290
|
+
while (pos.begin < this.len && !this.tests[pos.begin])
|
|
291
|
+
pos.begin++;
|
|
292
|
+
|
|
293
|
+
this.caret(pos.begin, pos.begin);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if (this.isCompleted()) {
|
|
297
|
+
this.$emit('complete', event);
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
clearBuffer(start, end) {
|
|
301
|
+
let i;
|
|
302
|
+
for (i = start; i < end && i < this.len; i++) {
|
|
303
|
+
if (this.tests[i]) {
|
|
304
|
+
this.buffer[i] = this.getPlaceholder(i);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
writeBuffer() {
|
|
309
|
+
this.$el.value = this.buffer.join('');
|
|
310
|
+
},
|
|
311
|
+
checkVal(allow) {
|
|
312
|
+
this.isValueChecked = true;
|
|
313
|
+
//try to place characters where they belong
|
|
314
|
+
let test = this.$el.value,
|
|
315
|
+
lastMatch = -1,
|
|
316
|
+
i,
|
|
317
|
+
c,
|
|
318
|
+
pos;
|
|
319
|
+
|
|
320
|
+
for (i = 0, pos = 0; i < this.len; i++) {
|
|
321
|
+
if (this.tests[i]) {
|
|
322
|
+
this.buffer[i] = this.getPlaceholder(i);
|
|
323
|
+
while (pos++ < test.length) {
|
|
324
|
+
c = test.charAt(pos - 1);
|
|
325
|
+
if (this.tests[i].test(c)) {
|
|
326
|
+
this.buffer[i] = c;
|
|
327
|
+
lastMatch = i;
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
if (pos > test.length) {
|
|
332
|
+
this.clearBuffer(i + 1, this.len);
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
} else {
|
|
336
|
+
if (this.buffer[i] === test.charAt(pos)) {
|
|
337
|
+
pos++;
|
|
338
|
+
}
|
|
339
|
+
if (i < this.partialPosition) {
|
|
340
|
+
lastMatch = i;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
if (allow) {
|
|
345
|
+
this.writeBuffer();
|
|
346
|
+
} else if (lastMatch + 1 < this.partialPosition) {
|
|
347
|
+
if (this.autoClear || this.buffer.join('') === this.defaultBuffer) {
|
|
348
|
+
// Invalid value. Remove it and replace it with the
|
|
349
|
+
// mask, which is the default behavior.
|
|
350
|
+
if (this.$el.value) this.$el.value = '';
|
|
351
|
+
this.clearBuffer(0, this.len);
|
|
352
|
+
} else {
|
|
353
|
+
// Invalid value, but we opt to show the value to the
|
|
354
|
+
// user and allow them to correct their mistake.
|
|
355
|
+
this.writeBuffer();
|
|
356
|
+
}
|
|
357
|
+
} else {
|
|
358
|
+
this.writeBuffer();
|
|
359
|
+
this.$el.value = this.$el.value.substring(0, lastMatch + 1);
|
|
360
|
+
}
|
|
361
|
+
return (this.partialPosition ? i : this.firstNonMaskPos);
|
|
362
|
+
},
|
|
363
|
+
handleInputChange(event) {
|
|
364
|
+
if (this.$attrs.readonly) {
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
var pos = this.checkVal(true);
|
|
369
|
+
this.caret(pos);
|
|
370
|
+
this.updateModel(event);
|
|
371
|
+
|
|
372
|
+
if (this.isCompleted()) {
|
|
373
|
+
this.$emit('complete', event);
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
getUnmaskedValue() {
|
|
377
|
+
let unmaskedBuffer = [];
|
|
378
|
+
for (let i = 0; i < this.buffer.length; i++) {
|
|
379
|
+
let c = this.buffer[i];
|
|
380
|
+
if (this.tests[i] && c !== this.getPlaceholder(i)) {
|
|
381
|
+
unmaskedBuffer.push(c);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
return unmaskedBuffer.join('');
|
|
386
|
+
},
|
|
387
|
+
updateModel(e) {
|
|
388
|
+
let val = this.unmask ? this.getUnmaskedValue() : e.target.value;
|
|
389
|
+
this.$emit('update:modelValue', (this.defaultBuffer !== val) ? val : '');
|
|
390
|
+
},
|
|
391
|
+
updateValue(updateModel = true) {
|
|
392
|
+
if (this.$el) {
|
|
393
|
+
if (this.modelValue == null) {
|
|
394
|
+
this.$el.value = '';
|
|
395
|
+
updateModel && this.$emit('update:modelValue', '');
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
this.$el.value = this.modelValue;
|
|
399
|
+
this.checkVal();
|
|
400
|
+
|
|
401
|
+
setTimeout(() => {
|
|
402
|
+
if (this.$el) {
|
|
403
|
+
this.writeBuffer();
|
|
404
|
+
this.checkVal();
|
|
405
|
+
|
|
406
|
+
if (updateModel) {
|
|
407
|
+
let val = this.unmask ? this.getUnmaskedValue() : this.$el.value;
|
|
408
|
+
this.$emit('update:modelValue', (this.defaultBuffer !== val) ? val : '');
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}, 10);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
this.focusText = this.$el.value;
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
isValueUpdated() {
|
|
418
|
+
return this.unmask ?
|
|
419
|
+
(this.modelValue != this.getUnmaskedValue()) :
|
|
420
|
+
(this.defaultBuffer !== this.$el.value && this.$el.value !== this.modelValue);
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
mounted() {
|
|
424
|
+
this.tests = [];
|
|
425
|
+
this.partialPosition = this.mask.length;
|
|
426
|
+
this.len = this.mask.length;
|
|
427
|
+
this.firstNonMaskPos = null;
|
|
428
|
+
this.defs = {
|
|
429
|
+
'9': '[0-9]',
|
|
430
|
+
'a': '[A-Za-z]',
|
|
431
|
+
'*': '[A-Za-z0-9]'
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
let ua = utils.DomHandler.getUserAgent();
|
|
435
|
+
this.androidChrome = /chrome/i.test(ua) && /android/i.test(ua);
|
|
436
|
+
|
|
437
|
+
let maskTokens = this.mask.split('');
|
|
438
|
+
for (let i = 0; i < maskTokens.length; i++) {
|
|
439
|
+
let c = maskTokens[i];
|
|
440
|
+
if (c === '?') {
|
|
441
|
+
this.len--;
|
|
442
|
+
this.partialPosition = i;
|
|
443
|
+
}
|
|
444
|
+
else if (this.defs[c]) {
|
|
445
|
+
this.tests.push(new RegExp(this.defs[c]));
|
|
446
|
+
if (this.firstNonMaskPos === null) {
|
|
447
|
+
this.firstNonMaskPos = this.tests.length - 1;
|
|
448
|
+
}
|
|
449
|
+
if (i < this.partialPosition) {
|
|
450
|
+
this.lastRequiredNonMaskPos = this.tests.length - 1;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
this.tests.push(null);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
this.buffer = [];
|
|
459
|
+
for (let i = 0; i < maskTokens.length; i++) {
|
|
460
|
+
let c = maskTokens[i];
|
|
461
|
+
if (c !== '?') {
|
|
462
|
+
if (this.defs[c])
|
|
463
|
+
this.buffer.push(this.getPlaceholder(i));
|
|
464
|
+
else
|
|
465
|
+
this.buffer.push(c);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
this.defaultBuffer = this.buffer.join('');
|
|
469
|
+
this.updateValue(false);
|
|
470
|
+
},
|
|
471
|
+
updated() {
|
|
472
|
+
if (this.isValueUpdated()) {
|
|
473
|
+
this.updateValue();
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
computed: {
|
|
477
|
+
filled() {
|
|
478
|
+
return (this.modelValue != null && this.modelValue.toString().length > 0)
|
|
479
|
+
},
|
|
480
|
+
inputClass() {
|
|
481
|
+
return ['p-inputmask p-inputtext p-component', {
|
|
482
|
+
'p-filled': this.filled
|
|
483
|
+
}];
|
|
484
|
+
},
|
|
485
|
+
}
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
489
|
+
return (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({ class: $options.inputClass }, _ctx.$attrs, {
|
|
490
|
+
onInput: _cache[0] || (_cache[0] = (...args) => ($options.onInput && $options.onInput(...args))),
|
|
491
|
+
onFocus: _cache[1] || (_cache[1] = (...args) => ($options.onFocus && $options.onFocus(...args))),
|
|
492
|
+
onBlur: _cache[2] || (_cache[2] = (...args) => ($options.onBlur && $options.onBlur(...args))),
|
|
493
|
+
onKeydown: _cache[3] || (_cache[3] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
|
|
494
|
+
onKeypress: _cache[4] || (_cache[4] = (...args) => ($options.onKeyPress && $options.onKeyPress(...args))),
|
|
495
|
+
onPaste: _cache[5] || (_cache[5] = (...args) => ($options.onPaste && $options.onPaste(...args)))
|
|
496
|
+
}), null, 16))
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
script.render = render;
|
|
500
|
+
|
|
501
|
+
return script;
|
|
502
|
+
|
|
503
|
+
})(primevue.utils, Vue);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
this.primevue=this.primevue||{},this.primevue.inputmask=function(e,t){"use strict";var s={name:"InputMask",emits:["update:modelValue","focus","blur","keydown","complete","keypress","paste"],props:{modelValue:null,slotChar:{type:String,default:"_"},mask:{type:String,default:null},autoClear:{type:Boolean,default:!0},unmask:{type:Boolean,default:!1}},methods:{onInput(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.$emit("update:modelValue",e.target.value)},onFocus(e){if(this.$attrs.readonly)return;let t;this.focus=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.$el.value,t=this.checkVal(),this.caretTimeoutId=setTimeout((()=>{this.$el===document.activeElement&&(this.writeBuffer(),t===this.mask.replace("?","").length?this.caret(0,t):this.caret(t))}),10),this.$emit("focus",e)},onBlur(e){if(this.focus=!1,this.checkVal(),this.updateModel(e),this.$el.value!==this.focusText){let e=document.createEvent("HTMLEvents");e.initEvent("change",!0,!1),this.$el.dispatchEvent(e)}this.$emit("blur",e)},onKeyDown(t){if(this.$attrs.readonly)return;let s,i,h,l=t.which||t.keyCode,a=/iphone/i.test(e.DomHandler.getUserAgent());this.oldVal=this.$el.value,8===l||46===l||a&&127===l?(s=this.caret(),i=s.begin,h=s.end,h-i==0&&(i=46!==l?this.seekPrev(i):h=this.seekNext(i-1),h=46===l?this.seekNext(h):h),this.clearBuffer(i,h),this.shiftL(i,h-1),this.updateModel(t),t.preventDefault()):13===l?(this.$el.blur(),this.updateModel(t)):27===l&&(this.$el.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(t),t.preventDefault()),this.$emit("keydown",t)},onKeyPress(t){if(!this.$attrs.readonly){var s,i,h,l,a=t.which||t.keyCode,r=this.caret();if(!(t.ctrlKey||t.altKey||t.metaKey||a<32)){if(a&&13!==a){if(r.end-r.begin!=0&&(this.clearBuffer(r.begin,r.end),this.shiftL(r.begin,r.end-1)),(s=this.seekNext(r.begin-1))<this.len&&(i=String.fromCharCode(a),this.tests[s].test(i))){if(this.shiftR(s),this.buffer[s]=i,this.writeBuffer(),h=this.seekNext(s),/android/i.test(e.DomHandler.getUserAgent())){setTimeout((()=>{this.caret(h)}),0)}else this.caret(h);r.begin<=this.lastRequiredNonMaskPos&&(l=this.isCompleted())}t.preventDefault()}this.updateModel(t),l&&this.$emit("complete",t),this.$emit("keypress",t)}}},onPaste(e){this.handleInputChange(e),this.$emit("paste",e)},caret(e,t){let s,i,h;if(this.$el.offsetParent&&this.$el===document.activeElement)return"number"!=typeof e?(this.$el.setSelectionRange?(i=this.$el.selectionStart,h=this.$el.selectionEnd):document.selection&&document.selection.createRange&&(s=document.selection.createRange(),i=0-s.duplicate().moveStart("character",-1e5),h=i+s.text.length),{begin:i,end:h}):(i=e,h="number"==typeof t?t:i,void(this.$el.setSelectionRange?this.$el.setSelectionRange(i,h):this.$el.createTextRange&&(s=this.$el.createTextRange(),s.collapse(!0),s.moveEnd("character",h),s.moveStart("character",i),s.select())))},isCompleted(){for(let e=this.firstNonMaskPos;e<=this.lastRequiredNonMaskPos;e++)if(this.tests[e]&&this.buffer[e]===this.getPlaceholder(e))return!1;return!0},getPlaceholder(e){return e<this.slotChar.length?this.slotChar.charAt(e):this.slotChar.charAt(0)},seekNext(e){for(;++e<this.len&&!this.tests[e];);return e},seekPrev(e){for(;--e>=0&&!this.tests[e];);return e},shiftL(e,t){let s,i;if(!(e<0)){for(s=e,i=this.seekNext(t);s<this.len;s++)if(this.tests[s]){if(!(i<this.len&&this.tests[s].test(this.buffer[i])))break;this.buffer[s]=this.buffer[i],this.buffer[i]=this.getPlaceholder(i),i=this.seekNext(i)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},shiftR(e){let t,s,i,h;for(t=e,s=this.getPlaceholder(e);t<this.len;t++)if(this.tests[t]){if(i=this.seekNext(t),h=this.buffer[t],this.buffer[t]=s,!(i<this.len&&this.tests[i].test(h)))break;s=h}},handleAndroidInput(e){var t=this.$el.value,s=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>t.length){for(this.checkVal(!0);s.begin>0&&!this.tests[s.begin-1];)s.begin--;if(0===s.begin)for(;s.begin<this.firstNonMaskPos&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}else{for(this.checkVal(!0);s.begin<this.len&&!this.tests[s.begin];)s.begin++;this.caret(s.begin,s.begin)}this.isCompleted()&&this.$emit("complete",e)},clearBuffer(e,t){let s;for(s=e;s<t&&s<this.len;s++)this.tests[s]&&(this.buffer[s]=this.getPlaceholder(s))},writeBuffer(){this.$el.value=this.buffer.join("")},checkVal(e){this.isValueChecked=!0;let t,s,i,h=this.$el.value,l=-1;for(t=0,i=0;t<this.len;t++)if(this.tests[t]){for(this.buffer[t]=this.getPlaceholder(t);i++<h.length;)if(s=h.charAt(i-1),this.tests[t].test(s)){this.buffer[t]=s,l=t;break}if(i>h.length){this.clearBuffer(t+1,this.len);break}}else this.buffer[t]===h.charAt(i)&&i++,t<this.partialPosition&&(l=t);return e?this.writeBuffer():l+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.$el.value&&(this.$el.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.$el.value=this.$el.value.substring(0,l+1)),this.partialPosition?t:this.firstNonMaskPos},handleInputChange(e){if(!this.$attrs.readonly){var t=this.checkVal(!0);this.caret(t),this.updateModel(e),this.isCompleted()&&this.$emit("complete",e)}},getUnmaskedValue(){let e=[];for(let t=0;t<this.buffer.length;t++){let s=this.buffer[t];this.tests[t]&&s!==this.getPlaceholder(t)&&e.push(s)}return e.join("")},updateModel(e){let t=this.unmask?this.getUnmaskedValue():e.target.value;this.$emit("update:modelValue",this.defaultBuffer!==t?t:"")},updateValue(e=!0){this.$el&&(null==this.modelValue?(this.$el.value="",e&&this.$emit("update:modelValue","")):(this.$el.value=this.modelValue,this.checkVal(),setTimeout((()=>{if(this.$el&&(this.writeBuffer(),this.checkVal(),e)){let e=this.unmask?this.getUnmaskedValue():this.$el.value;this.$emit("update:modelValue",this.defaultBuffer!==e?e:"")}}),10)),this.focusText=this.$el.value)},isValueUpdated(){return this.unmask?this.modelValue!=this.getUnmaskedValue():this.defaultBuffer!==this.$el.value&&this.$el.value!==this.modelValue}},mounted(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};let t=e.DomHandler.getUserAgent();this.androidChrome=/chrome/i.test(t)&&/android/i.test(t);let s=this.mask.split("");for(let e=0;e<s.length;e++){let t=s[e];"?"===t?(this.len--,this.partialPosition=e):this.defs[t]?(this.tests.push(new RegExp(this.defs[t])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),e<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(let e=0;e<s.length;e++){let t=s[e];"?"!==t&&(this.defs[t]?this.buffer.push(this.getPlaceholder(e)):this.buffer.push(t))}this.defaultBuffer=this.buffer.join(""),this.updateValue(!1)},updated(){this.isValueUpdated()&&this.updateValue()},computed:{filled(){return null!=this.modelValue&&this.modelValue.toString().length>0},inputClass(){return["p-inputmask p-inputtext p-component",{"p-filled":this.filled}]}}};return s.render=function(e,s,i,h,l,a){return t.openBlock(),t.createElementBlock("input",t.mergeProps({class:a.inputClass},e.$attrs,{onInput:s[0]||(s[0]=(...e)=>a.onInput&&a.onInput(...e)),onFocus:s[1]||(s[1]=(...e)=>a.onFocus&&a.onFocus(...e)),onBlur:s[2]||(s[2]=(...e)=>a.onBlur&&a.onBlur(...e)),onKeydown:s[3]||(s[3]=(...e)=>a.onKeyDown&&a.onKeyDown(...e)),onKeypress:s[4]||(s[4]=(...e)=>a.onKeyPress&&a.onKeyPress(...e)),onPaste:s[5]||(s[5]=(...e)=>a.onPaste&&a.onPaste(...e))}),null,16)},s}(primevue.utils,Vue);
|