primevue 3.29.2 → 3.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -9
- package/accordion/Accordion.d.ts +17 -0
- package/accordion/Accordion.vue +38 -92
- package/accordion/BaseAccordion.vue +93 -0
- package/accordion/accordion.cjs.js +340 -330
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.esm.js +339 -329
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +340 -331
- package/accordion/accordion.min.js +1 -1
- package/accordiontab/AccordionTab.d.ts +28 -0
- package/accordiontab/AccordionTab.vue +2 -13
- package/accordiontab/BaseAccordionTab.vue +24 -0
- package/accordiontab/accordiontab.cjs.js +24 -14
- package/accordiontab/accordiontab.cjs.min.js +1 -1
- package/accordiontab/accordiontab.esm.js +24 -14
- package/accordiontab/accordiontab.esm.min.js +1 -1
- package/accordiontab/accordiontab.js +24 -14
- package/accordiontab/accordiontab.min.js +1 -1
- package/api/api.cjs.js +475 -500
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +475 -500
- package/api/api.esm.min.js +1 -1
- package/api/api.js +475 -500
- package/api/api.min.js +1 -1
- package/autocomplete/AutoComplete.d.ts +23 -2
- package/autocomplete/AutoComplete.vue +40 -322
- package/autocomplete/BaseAutoComplete.vue +322 -0
- package/autocomplete/autocomplete.cjs.js +1290 -1237
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.js +1291 -1238
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +1290 -1238
- package/autocomplete/autocomplete.min.js +1 -1
- package/avatar/Avatar.d.ts +14 -0
- package/avatar/Avatar.vue +13 -81
- package/avatar/BaseAvatar.vue +96 -0
- package/avatar/avatar.cjs.js +101 -110
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.esm.js +102 -111
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +102 -112
- package/avatar/avatar.min.js +1 -1
- package/avatargroup/AvatarGroup.d.ts +11 -0
- package/avatargroup/AvatarGroup.vue +3 -14
- package/avatargroup/BaseAvatarGroup.vue +35 -0
- package/avatargroup/avatargroup.cjs.js +31 -35
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.esm.js +31 -35
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +32 -37
- package/avatargroup/avatargroup.min.js +1 -1
- package/badge/Badge.d.ts +12 -0
- package/badge/Badge.vue +3 -38
- package/badge/BaseBadge.vue +86 -0
- package/badge/badge.cjs.js +59 -40
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.esm.js +59 -40
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +60 -42
- package/badge/badge.min.js +1 -1
- package/badgedirective/BadgeDirective.d.ts +43 -1
- package/badgedirective/badgedirective.cjs.js +66 -45
- package/badgedirective/badgedirective.cjs.min.js +1 -1
- package/badgedirective/badgedirective.esm.js +64 -47
- package/badgedirective/badgedirective.esm.min.js +1 -1
- package/badgedirective/badgedirective.js +66 -47
- package/badgedirective/badgedirective.min.js +1 -1
- package/base/base.cjs.js +18 -0
- package/base/base.cjs.min.js +1 -0
- package/base/base.esm.js +13 -0
- package/base/base.esm.min.js +1 -0
- package/base/base.js +22 -0
- package/base/base.min.js +1 -0
- package/base/package.json +5 -0
- package/basecomponent/BaseComponent.d.ts +23 -0
- package/basecomponent/BaseComponent.vue +462 -12
- package/basecomponent/basecomponent.cjs.js +170 -36
- package/basecomponent/basecomponent.cjs.min.js +1 -1
- package/basecomponent/basecomponent.esm.js +170 -36
- package/basecomponent/basecomponent.esm.min.js +1 -1
- package/basecomponent/basecomponent.js +170 -38
- package/basecomponent/basecomponent.min.js +1 -1
- package/basecomponent/package.json +1 -0
- package/basedirective/BaseDirective.d.ts +38 -0
- package/basedirective/basedirective.cjs.js +157 -0
- package/basedirective/basedirective.cjs.min.js +1 -0
- package/basedirective/basedirective.esm.js +155 -0
- package/basedirective/basedirective.esm.min.js +1 -0
- package/basedirective/basedirective.js +157 -0
- package/basedirective/basedirective.min.js +1 -0
- package/basedirective/package.json +6 -0
- package/baseicon/baseicon.cjs.js +22 -26
- package/baseicon/baseicon.cjs.min.js +1 -1
- package/baseicon/baseicon.esm.js +22 -26
- package/baseicon/baseicon.esm.min.js +1 -1
- package/baseicon/baseicon.js +22 -26
- package/baseicon/baseicon.min.js +1 -1
- package/blockui/BaseBlockUI.vue +64 -0
- package/blockui/BlockUI.d.ts +12 -0
- package/blockui/BlockUI.vue +10 -48
- package/blockui/blockui.cjs.js +103 -115
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.esm.js +103 -115
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +103 -116
- package/blockui/blockui.min.js +1 -1
- package/breadcrumb/BaseBreadcrumb.vue +85 -0
- package/breadcrumb/Breadcrumb.d.ts +12 -0
- package/breadcrumb/Breadcrumb.vue +6 -54
- package/breadcrumb/BreadcrumbItem.vue +10 -21
- package/breadcrumb/breadcrumb.cjs.js +198 -219
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +198 -219
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +198 -220
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/BaseButton.vue +115 -0
- package/button/Button.d.ts +24 -0
- package/button/Button.vue +21 -121
- package/button/button.cjs.js +176 -174
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +174 -173
- package/button/button.esm.min.js +1 -1
- package/button/button.js +176 -175
- package/button/button.min.js +1 -1
- package/calendar/BaseCalendar.vue +453 -0
- package/calendar/Calendar.d.ts +24 -12
- package/calendar/Calendar.vue +127 -491
- package/calendar/calendar.cjs.js +3115 -3197
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +3115 -3197
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +3115 -3198
- package/calendar/calendar.min.js +1 -1
- package/card/BaseCard.vue +21 -0
- package/card/Card.d.ts +11 -0
- package/card/Card.vue +9 -9
- package/card/card.cjs.js +40 -41
- package/card/card.cjs.min.js +1 -1
- package/card/card.esm.js +40 -41
- package/card/card.esm.min.js +1 -1
- package/card/card.js +40 -41
- package/card/card.min.js +1 -1
- package/carousel/BaseCarousel.vue +197 -0
- package/carousel/Carousel.d.ts +12 -0
- package/carousel/Carousel.vue +36 -188
- package/carousel/carousel.cjs.js +705 -737
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.esm.js +704 -736
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +705 -738
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/BaseCascadeSelect.vue +257 -0
- package/cascadeselect/CascadeSelect.d.ts +19 -7
- package/cascadeselect/CascadeSelect.vue +18 -242
- package/cascadeselect/CascadeSelectSub.vue +15 -22
- package/cascadeselect/cascadeselect.cjs.js +1143 -1083
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +1143 -1083
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +1143 -1084
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/chart/BaseChart.vue +48 -0
- package/chart/Chart.d.ts +12 -0
- package/chart/Chart.vue +3 -27
- package/chart/chart.cjs.js +144 -135
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.esm.js +144 -135
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +145 -137
- package/chart/chart.min.js +1 -1
- package/checkbox/BaseCheckbox.vue +93 -0
- package/checkbox/Checkbox.d.ts +41 -0
- package/checkbox/Checkbox.vue +16 -74
- package/checkbox/checkbox.cjs.js +201 -140
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.esm.js +201 -140
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +202 -141
- package/checkbox/checkbox.min.js +1 -1
- package/chip/BaseChip.vue +78 -0
- package/chip/Chip.d.ts +12 -0
- package/chip/Chip.vue +7 -63
- package/chip/chip.cjs.js +106 -129
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.esm.js +105 -128
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +106 -130
- package/chip/chip.min.js +1 -1
- package/chips/BaseChips.vue +143 -0
- package/chips/Chips.d.ts +12 -0
- package/chips/Chips.vue +11 -127
- package/chips/chips.cjs.js +368 -344
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.esm.js +368 -344
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +368 -345
- package/chips/chips.min.js +1 -1
- package/colorpicker/BaseColorPicker.vue +89 -0
- package/colorpicker/ColorPicker.d.ts +14 -2
- package/colorpicker/ColorPicker.vue +16 -34
- package/colorpicker/colorpicker.cjs.js +699 -650
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.esm.js +698 -649
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +699 -651
- package/colorpicker/colorpicker.min.js +1 -1
- package/column/BaseColumn.vue +191 -0
- package/column/Column.d.ts +56 -29
- package/column/Column.vue +2 -180
- package/column/column.cjs.js +193 -183
- package/column/column.cjs.min.js +1 -1
- package/column/column.esm.js +193 -183
- package/column/column.esm.min.js +1 -1
- package/column/column.js +193 -183
- package/column/column.min.js +1 -1
- package/columngroup/BaseColumnGroup.vue +19 -0
- package/columngroup/ColumnGroup.d.ts +23 -0
- package/columngroup/ColumnGroup.vue +2 -8
- package/columngroup/columngroup.cjs.js +21 -11
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.esm.js +21 -11
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +21 -11
- package/columngroup/columngroup.min.js +1 -1
- package/config/PrimeVue.d.ts +15 -1
- package/config/config.cjs.js +167 -168
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +167 -168
- package/config/config.esm.min.js +1 -1
- package/config/config.js +167 -168
- package/config/config.min.js +1 -1
- package/confirmationservice/confirmationservice.cjs.js +12 -13
- package/confirmationservice/confirmationservice.cjs.min.js +1 -1
- package/confirmationservice/confirmationservice.esm.js +12 -13
- package/confirmationservice/confirmationservice.esm.min.js +1 -1
- package/confirmationservice/confirmationservice.js +12 -13
- package/confirmationservice/confirmationservice.min.js +1 -1
- package/confirmdialog/BaseConfirmDialog.vue +35 -0
- package/confirmdialog/ConfirmDialog.d.ts +12 -0
- package/confirmdialog/ConfirmDialog.vue +18 -33
- package/confirmdialog/confirmdialog.cjs.js +213 -183
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +213 -183
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +214 -184
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/BaseConfirmPopup.vue +111 -0
- package/confirmpopup/ConfirmPopup.d.ts +12 -0
- package/confirmpopup/ConfirmPopup.vue +21 -109
- package/confirmpopup/confirmpopup.cjs.js +375 -377
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.js +375 -377
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +375 -378
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/contextmenu/BaseContextMenu.vue +133 -0
- package/contextmenu/ContextMenu.d.ts +16 -0
- package/contextmenu/ContextMenu.vue +6 -93
- package/contextmenu/ContextMenuSub.vue +24 -58
- package/contextmenu/contextmenu.cjs.js +989 -951
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +988 -950
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +989 -952
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +12138 -11708
- package/core/core.min.js +76 -70
- package/datatable/BaseDataTable.vue +740 -0
- package/datatable/BodyCell.vue +48 -35
- package/datatable/ColumnFilter.vue +74 -59
- package/datatable/DataTable.d.ts +31 -8
- package/datatable/DataTable.vue +82 -593
- package/datatable/FooterCell.vue +15 -11
- package/datatable/HeaderCell.vue +30 -24
- package/datatable/HeaderCheckbox.vue +8 -7
- package/datatable/RowCheckbox.vue +13 -7
- package/datatable/RowRadioButton.vue +13 -7
- package/datatable/TableBody.vue +24 -35
- package/datatable/TableFooter.vue +20 -9
- package/datatable/TableHeader.vue +32 -21
- package/datatable/datatable.cjs.js +5908 -5739
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +5908 -5739
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +5908 -5740
- package/datatable/datatable.min.js +1 -1
- package/dataview/BaseDataView.vue +100 -0
- package/dataview/DataView.d.ts +16 -0
- package/dataview/DataView.vue +13 -86
- package/dataview/dataview.cjs.js +291 -295
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.esm.js +290 -294
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +292 -296
- package/dataview/dataview.min.js +1 -1
- package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +35 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +12 -0
- package/dataviewlayoutoptions/DataViewLayoutOptions.vue +5 -14
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +91 -75
- package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +90 -74
- package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
- package/dataviewlayoutoptions/dataviewlayoutoptions.js +92 -76
- package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
- package/deferredcontent/DeferredContent.d.ts +12 -0
- package/deferredcontent/deferredcontent.cjs.js +49 -51
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.esm.js +49 -51
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +49 -51
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/dialog/BaseDialog.vue +319 -0
- package/dialog/Dialog.d.ts +12 -0
- package/dialog/Dialog.vue +23 -339
- package/dialog/dialog.cjs.js +591 -603
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.esm.js +590 -602
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +591 -604
- package/dialog/dialog.min.js +1 -1
- package/dialogservice/dialogservice.cjs.js +24 -21
- package/dialogservice/dialogservice.cjs.min.js +1 -1
- package/dialogservice/dialogservice.esm.js +23 -20
- package/dialogservice/dialogservice.esm.min.js +1 -1
- package/dialogservice/dialogservice.js +24 -21
- package/dialogservice/dialogservice.min.js +1 -1
- package/divider/BaseDivider.vue +136 -0
- package/divider/Divider.d.ts +12 -0
- package/divider/Divider.vue +4 -120
- package/divider/divider.cjs.js +64 -74
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.esm.js +64 -74
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +65 -76
- package/divider/divider.min.js +1 -1
- package/dock/BaseDock.vue +185 -0
- package/dock/Dock.d.ts +12 -0
- package/dock/Dock.vue +3 -146
- package/dock/DockSub.vue +19 -39
- package/dock/dock.cjs.js +423 -411
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.esm.js +424 -412
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +424 -413
- package/dock/dock.min.js +1 -1
- package/dropdown/BaseDropdown.vue +313 -0
- package/dropdown/Dropdown.d.ts +17 -1
- package/dropdown/Dropdown.vue +60 -320
- package/dropdown/dropdown.cjs.js +1261 -1226
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.esm.js +1261 -1226
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +1261 -1227
- package/dropdown/dropdown.min.js +1 -1
- package/dynamicdialog/DynamicDialog.d.ts +7 -1
- package/dynamicdialog/DynamicDialog.vue +3 -3
- package/dynamicdialog/dynamicdialog.cjs.js +90 -89
- package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
- package/dynamicdialog/dynamicdialog.esm.js +90 -89
- package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
- package/dynamicdialog/dynamicdialog.js +90 -89
- package/dynamicdialog/dynamicdialog.min.js +1 -1
- package/editor/BaseEditor.vue +996 -0
- package/editor/Editor.d.ts +57 -5
- package/editor/Editor.vue +25 -981
- package/editor/editor.cjs.js +241 -236
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.esm.js +241 -236
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +241 -237
- package/editor/editor.min.js +1 -1
- package/fieldset/BaseFieldset.vue +65 -0
- package/fieldset/Fieldset.d.ts +12 -0
- package/fieldset/Fieldset.vue +9 -39
- package/fieldset/fieldset.cjs.js +150 -140
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.esm.js +149 -139
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +150 -141
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/BaseFileUpload.vue +189 -0
- package/fileupload/FileContent.vue +10 -8
- package/fileupload/FileUpload.d.ts +12 -4
- package/fileupload/FileUpload.vue +29 -190
- package/fileupload/fileupload.cjs.js +817 -790
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.esm.js +817 -790
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +817 -790
- package/fileupload/fileupload.min.js +1 -1
- package/focustrap/FocusTrap.d.ts +44 -0
- package/focustrap/focustrap.cjs.js +116 -102
- package/focustrap/focustrap.cjs.min.js +1 -1
- package/focustrap/focustrap.esm.js +116 -106
- package/focustrap/focustrap.esm.min.js +1 -1
- package/focustrap/focustrap.js +117 -104
- package/focustrap/focustrap.min.js +1 -1
- package/galleria/BaseGalleria.vue +499 -0
- package/galleria/Galleria.d.ts +12 -0
- package/galleria/Galleria.vue +6 -413
- package/galleria/GalleriaContent.vue +8 -22
- package/galleria/GalleriaItem.vue +13 -27
- package/galleria/GalleriaThumbnails.vue +32 -56
- package/galleria/galleria.cjs.js +1164 -1247
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.esm.js +1164 -1247
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +1164 -1248
- package/galleria/galleria.min.js +1 -1
- package/icons/angledoubledown/index.cjs.js +6 -9
- package/icons/angledoubledown/index.cjs.min.js +1 -1
- package/icons/angledoubledown/index.esm.js +6 -9
- package/icons/angledoubledown/index.esm.min.js +1 -1
- package/icons/angledoubledown/index.js +6 -9
- package/icons/angledoubledown/index.min.js +1 -1
- package/icons/angledoubleleft/index.cjs.js +6 -9
- package/icons/angledoubleleft/index.cjs.min.js +1 -1
- package/icons/angledoubleleft/index.esm.js +6 -9
- package/icons/angledoubleleft/index.esm.min.js +1 -1
- package/icons/angledoubleleft/index.js +6 -9
- package/icons/angledoubleleft/index.min.js +1 -1
- package/icons/angledoubleright/index.cjs.js +6 -9
- package/icons/angledoubleright/index.cjs.min.js +1 -1
- package/icons/angledoubleright/index.esm.js +6 -9
- package/icons/angledoubleright/index.esm.min.js +1 -1
- package/icons/angledoubleright/index.js +6 -9
- package/icons/angledoubleright/index.min.js +1 -1
- package/icons/angledoubleup/index.cjs.js +6 -9
- package/icons/angledoubleup/index.cjs.min.js +1 -1
- package/icons/angledoubleup/index.esm.js +6 -9
- package/icons/angledoubleup/index.esm.min.js +1 -1
- package/icons/angledoubleup/index.js +6 -9
- package/icons/angledoubleup/index.min.js +1 -1
- package/icons/angledown/index.cjs.js +6 -9
- package/icons/angledown/index.cjs.min.js +1 -1
- package/icons/angledown/index.esm.js +6 -9
- package/icons/angledown/index.esm.min.js +1 -1
- package/icons/angledown/index.js +6 -9
- package/icons/angledown/index.min.js +1 -1
- package/icons/angleleft/index.cjs.js +6 -9
- package/icons/angleleft/index.cjs.min.js +1 -1
- package/icons/angleleft/index.esm.js +6 -9
- package/icons/angleleft/index.esm.min.js +1 -1
- package/icons/angleleft/index.js +6 -9
- package/icons/angleleft/index.min.js +1 -1
- package/icons/angleright/index.cjs.js +6 -9
- package/icons/angleright/index.cjs.min.js +1 -1
- package/icons/angleright/index.esm.js +6 -9
- package/icons/angleright/index.esm.min.js +1 -1
- package/icons/angleright/index.js +6 -9
- package/icons/angleright/index.min.js +1 -1
- package/icons/angleup/index.cjs.js +6 -9
- package/icons/angleup/index.cjs.min.js +1 -1
- package/icons/angleup/index.esm.js +6 -9
- package/icons/angleup/index.esm.min.js +1 -1
- package/icons/angleup/index.js +6 -9
- package/icons/angleup/index.min.js +1 -1
- package/icons/arrowdown/index.cjs.js +29 -26
- package/icons/arrowdown/index.cjs.min.js +1 -1
- package/icons/arrowdown/index.esm.js +29 -26
- package/icons/arrowdown/index.esm.min.js +1 -1
- package/icons/arrowdown/index.js +30 -28
- package/icons/arrowdown/index.min.js +1 -1
- package/icons/arrowdown/index.vue +10 -3
- package/icons/arrowup/index.cjs.js +29 -26
- package/icons/arrowup/index.cjs.min.js +1 -1
- package/icons/arrowup/index.esm.js +29 -26
- package/icons/arrowup/index.esm.min.js +1 -1
- package/icons/arrowup/index.js +30 -28
- package/icons/arrowup/index.min.js +1 -1
- package/icons/arrowup/index.vue +10 -3
- package/icons/ban/index.cjs.js +27 -24
- package/icons/ban/index.cjs.min.js +1 -1
- package/icons/ban/index.esm.js +27 -24
- package/icons/ban/index.esm.min.js +1 -1
- package/icons/ban/index.js +28 -26
- package/icons/ban/index.min.js +1 -1
- package/icons/ban/index.vue +10 -3
- package/icons/bars/index.cjs.js +6 -9
- package/icons/bars/index.cjs.min.js +1 -1
- package/icons/bars/index.esm.js +6 -9
- package/icons/bars/index.esm.min.js +1 -1
- package/icons/bars/index.js +6 -9
- package/icons/bars/index.min.js +1 -1
- package/icons/calendar/index.cjs.js +6 -9
- package/icons/calendar/index.cjs.min.js +1 -1
- package/icons/calendar/index.esm.js +6 -9
- package/icons/calendar/index.esm.min.js +1 -1
- package/icons/calendar/index.js +6 -9
- package/icons/calendar/index.min.js +1 -1
- package/icons/check/index.cjs.js +6 -9
- package/icons/check/index.cjs.min.js +1 -1
- package/icons/check/index.esm.js +6 -9
- package/icons/check/index.esm.min.js +1 -1
- package/icons/check/index.js +6 -9
- package/icons/check/index.min.js +1 -1
- package/icons/chevrondown/index.cjs.js +6 -9
- package/icons/chevrondown/index.cjs.min.js +1 -1
- package/icons/chevrondown/index.esm.js +6 -9
- package/icons/chevrondown/index.esm.min.js +1 -1
- package/icons/chevrondown/index.js +6 -9
- package/icons/chevrondown/index.min.js +1 -1
- package/icons/chevronleft/index.cjs.js +6 -9
- package/icons/chevronleft/index.cjs.min.js +1 -1
- package/icons/chevronleft/index.esm.js +6 -9
- package/icons/chevronleft/index.esm.min.js +1 -1
- package/icons/chevronleft/index.js +6 -9
- package/icons/chevronleft/index.min.js +1 -1
- package/icons/chevronright/index.cjs.js +6 -9
- package/icons/chevronright/index.cjs.min.js +1 -1
- package/icons/chevronright/index.esm.js +6 -9
- package/icons/chevronright/index.esm.min.js +1 -1
- package/icons/chevronright/index.js +6 -9
- package/icons/chevronright/index.min.js +1 -1
- package/icons/chevronup/index.cjs.js +6 -9
- package/icons/chevronup/index.cjs.min.js +1 -1
- package/icons/chevronup/index.esm.js +6 -9
- package/icons/chevronup/index.esm.min.js +1 -1
- package/icons/chevronup/index.js +6 -9
- package/icons/chevronup/index.min.js +1 -1
- package/icons/exclamationtriangle/index.cjs.js +35 -9
- package/icons/exclamationtriangle/index.cjs.min.js +1 -1
- package/icons/exclamationtriangle/index.esm.js +36 -10
- package/icons/exclamationtriangle/index.esm.min.js +1 -1
- package/icons/exclamationtriangle/index.js +36 -11
- package/icons/exclamationtriangle/index.min.js +1 -1
- package/icons/exclamationtriangle/index.vue +10 -3
- package/icons/eye/index.cjs.js +6 -9
- package/icons/eye/index.cjs.min.js +1 -1
- package/icons/eye/index.esm.js +6 -9
- package/icons/eye/index.esm.min.js +1 -1
- package/icons/eye/index.js +6 -9
- package/icons/eye/index.min.js +1 -1
- package/icons/eyeslash/index.cjs.js +29 -26
- package/icons/eyeslash/index.cjs.min.js +1 -1
- package/icons/eyeslash/index.esm.js +29 -26
- package/icons/eyeslash/index.esm.min.js +1 -1
- package/icons/eyeslash/index.js +30 -28
- package/icons/eyeslash/index.min.js +1 -1
- package/icons/eyeslash/index.vue +10 -3
- package/icons/filter/index.cjs.js +27 -24
- package/icons/filter/index.cjs.min.js +1 -1
- package/icons/filter/index.esm.js +27 -24
- package/icons/filter/index.esm.min.js +1 -1
- package/icons/filter/index.js +28 -26
- package/icons/filter/index.min.js +1 -1
- package/icons/filter/index.vue +10 -3
- package/icons/filterslash/index.cjs.js +29 -26
- package/icons/filterslash/index.cjs.min.js +1 -1
- package/icons/filterslash/index.esm.js +29 -26
- package/icons/filterslash/index.esm.min.js +1 -1
- package/icons/filterslash/index.js +30 -28
- package/icons/filterslash/index.min.js +1 -1
- package/icons/filterslash/index.vue +10 -3
- package/icons/infocircle/index.cjs.js +29 -26
- package/icons/infocircle/index.cjs.min.js +1 -1
- package/icons/infocircle/index.esm.js +29 -26
- package/icons/infocircle/index.esm.min.js +1 -1
- package/icons/infocircle/index.js +30 -28
- package/icons/infocircle/index.min.js +1 -1
- package/icons/infocircle/index.vue +10 -3
- package/icons/minus/index.cjs.js +6 -9
- package/icons/minus/index.cjs.min.js +1 -1
- package/icons/minus/index.esm.js +6 -9
- package/icons/minus/index.esm.min.js +1 -1
- package/icons/minus/index.js +6 -9
- package/icons/minus/index.min.js +1 -1
- package/icons/pencil/index.cjs.js +27 -24
- package/icons/pencil/index.cjs.min.js +1 -1
- package/icons/pencil/index.esm.js +27 -24
- package/icons/pencil/index.esm.min.js +1 -1
- package/icons/pencil/index.js +28 -26
- package/icons/pencil/index.min.js +1 -1
- package/icons/pencil/index.vue +10 -3
- package/icons/plus/index.cjs.js +27 -24
- package/icons/plus/index.cjs.min.js +1 -1
- package/icons/plus/index.esm.js +27 -24
- package/icons/plus/index.esm.min.js +1 -1
- package/icons/plus/index.js +28 -26
- package/icons/plus/index.min.js +1 -1
- package/icons/plus/index.vue +10 -3
- package/icons/refresh/index.cjs.js +29 -26
- package/icons/refresh/index.cjs.min.js +1 -1
- package/icons/refresh/index.esm.js +29 -26
- package/icons/refresh/index.esm.min.js +1 -1
- package/icons/refresh/index.js +30 -28
- package/icons/refresh/index.min.js +1 -1
- package/icons/refresh/index.vue +10 -3
- package/icons/search/index.cjs.js +29 -26
- package/icons/search/index.cjs.min.js +1 -1
- package/icons/search/index.esm.js +29 -26
- package/icons/search/index.esm.min.js +1 -1
- package/icons/search/index.js +30 -28
- package/icons/search/index.min.js +1 -1
- package/icons/search/index.vue +10 -3
- package/icons/searchminus/index.cjs.js +29 -26
- package/icons/searchminus/index.cjs.min.js +1 -1
- package/icons/searchminus/index.esm.js +29 -26
- package/icons/searchminus/index.esm.min.js +1 -1
- package/icons/searchminus/index.js +30 -28
- package/icons/searchminus/index.min.js +1 -1
- package/icons/searchminus/index.vue +10 -3
- package/icons/searchplus/index.cjs.js +29 -26
- package/icons/searchplus/index.cjs.min.js +1 -1
- package/icons/searchplus/index.esm.js +29 -26
- package/icons/searchplus/index.esm.min.js +1 -1
- package/icons/searchplus/index.js +30 -28
- package/icons/searchplus/index.min.js +1 -1
- package/icons/searchplus/index.vue +10 -3
- package/icons/sortalt/index.cjs.js +39 -9
- package/icons/sortalt/index.cjs.min.js +1 -1
- package/icons/sortalt/index.esm.js +40 -10
- package/icons/sortalt/index.esm.min.js +1 -1
- package/icons/sortalt/index.js +40 -11
- package/icons/sortalt/index.min.js +1 -1
- package/icons/sortalt/index.vue +10 -3
- package/icons/sortamountdown/index.cjs.js +24 -9
- package/icons/sortamountdown/index.cjs.min.js +1 -1
- package/icons/sortamountdown/index.esm.js +25 -10
- package/icons/sortamountdown/index.esm.min.js +1 -1
- package/icons/sortamountdown/index.js +25 -11
- package/icons/sortamountdown/index.min.js +1 -1
- package/icons/sortamountdown/index.vue +10 -3
- package/icons/sortamountupalt/index.cjs.js +24 -9
- package/icons/sortamountupalt/index.cjs.min.js +1 -1
- package/icons/sortamountupalt/index.esm.js +25 -10
- package/icons/sortamountupalt/index.esm.min.js +1 -1
- package/icons/sortamountupalt/index.js +25 -11
- package/icons/sortamountupalt/index.min.js +1 -1
- package/icons/sortamountupalt/index.vue +10 -3
- package/icons/spinner/index.cjs.js +27 -24
- package/icons/spinner/index.cjs.min.js +1 -1
- package/icons/spinner/index.esm.js +27 -24
- package/icons/spinner/index.esm.min.js +1 -1
- package/icons/spinner/index.js +28 -26
- package/icons/spinner/index.min.js +1 -1
- package/icons/spinner/index.vue +10 -3
- package/icons/star/index.cjs.js +27 -24
- package/icons/star/index.cjs.min.js +1 -1
- package/icons/star/index.esm.js +27 -24
- package/icons/star/index.esm.min.js +1 -1
- package/icons/star/index.js +28 -26
- package/icons/star/index.min.js +1 -1
- package/icons/star/index.vue +10 -3
- package/icons/starfill/index.cjs.js +27 -24
- package/icons/starfill/index.cjs.min.js +1 -1
- package/icons/starfill/index.esm.js +27 -24
- package/icons/starfill/index.esm.min.js +1 -1
- package/icons/starfill/index.js +28 -26
- package/icons/starfill/index.min.js +1 -1
- package/icons/starfill/index.vue +10 -3
- package/icons/thlarge/index.cjs.js +29 -26
- package/icons/thlarge/index.cjs.min.js +1 -1
- package/icons/thlarge/index.esm.js +29 -26
- package/icons/thlarge/index.esm.min.js +1 -1
- package/icons/thlarge/index.js +30 -28
- package/icons/thlarge/index.min.js +1 -1
- package/icons/thlarge/index.vue +10 -3
- package/icons/times/index.cjs.js +6 -9
- package/icons/times/index.cjs.min.js +1 -1
- package/icons/times/index.esm.js +6 -9
- package/icons/times/index.esm.min.js +1 -1
- package/icons/times/index.js +6 -9
- package/icons/times/index.min.js +1 -1
- package/icons/timescircle/index.cjs.js +29 -26
- package/icons/timescircle/index.cjs.min.js +1 -1
- package/icons/timescircle/index.esm.js +29 -26
- package/icons/timescircle/index.esm.min.js +1 -1
- package/icons/timescircle/index.js +30 -28
- package/icons/timescircle/index.min.js +1 -1
- package/icons/timescircle/index.vue +10 -3
- package/icons/trash/index.cjs.js +29 -26
- package/icons/trash/index.cjs.min.js +1 -1
- package/icons/trash/index.esm.js +29 -26
- package/icons/trash/index.esm.min.js +1 -1
- package/icons/trash/index.js +30 -28
- package/icons/trash/index.min.js +1 -1
- package/icons/trash/index.vue +10 -3
- package/icons/undo/index.cjs.js +29 -26
- package/icons/undo/index.cjs.min.js +1 -1
- package/icons/undo/index.esm.js +29 -26
- package/icons/undo/index.esm.min.js +1 -1
- package/icons/undo/index.js +30 -28
- package/icons/undo/index.min.js +1 -1
- package/icons/undo/index.vue +10 -3
- package/icons/upload/index.cjs.js +29 -26
- package/icons/upload/index.cjs.min.js +1 -1
- package/icons/upload/index.esm.js +29 -26
- package/icons/upload/index.esm.min.js +1 -1
- package/icons/upload/index.js +30 -28
- package/icons/upload/index.min.js +1 -1
- package/icons/upload/index.vue +10 -3
- package/icons/windowmaximize/index.cjs.js +29 -26
- package/icons/windowmaximize/index.cjs.min.js +1 -1
- package/icons/windowmaximize/index.esm.js +29 -26
- package/icons/windowmaximize/index.esm.min.js +1 -1
- package/icons/windowmaximize/index.js +30 -28
- package/icons/windowmaximize/index.min.js +1 -1
- package/icons/windowmaximize/index.vue +10 -3
- package/icons/windowminimize/index.cjs.js +29 -26
- package/icons/windowminimize/index.cjs.min.js +1 -1
- package/icons/windowminimize/index.esm.js +29 -26
- package/icons/windowminimize/index.esm.min.js +1 -1
- package/icons/windowminimize/index.js +30 -28
- package/icons/windowminimize/index.min.js +1 -1
- package/icons/windowminimize/index.vue +10 -3
- package/image/BaseImage.vue +153 -0
- package/image/Image.d.ts +12 -0
- package/image/Image.vue +17 -130
- package/image/image.cjs.js +385 -379
- package/image/image.cjs.min.js +1 -1
- package/image/image.esm.js +385 -379
- package/image/image.esm.min.js +1 -1
- package/image/image.js +385 -380
- package/image/image.min.js +1 -1
- package/inlinemessage/BaseInlineMessage.vue +54 -0
- package/inlinemessage/InlineMessage.d.ts +12 -0
- package/inlinemessage/InlineMessage.vue +5 -36
- package/inlinemessage/inlinemessage.cjs.js +80 -80
- package/inlinemessage/inlinemessage.cjs.min.js +1 -1
- package/inlinemessage/inlinemessage.esm.js +80 -80
- package/inlinemessage/inlinemessage.esm.min.js +1 -1
- package/inlinemessage/inlinemessage.js +81 -82
- package/inlinemessage/inlinemessage.min.js +1 -1
- package/inplace/BaseInplace.vue +72 -0
- package/inplace/Inplace.d.ts +12 -0
- package/inplace/Inplace.vue +6 -58
- package/inplace/inplace.cjs.js +145 -145
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.esm.js +144 -144
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +145 -146
- package/inplace/inplace.min.js +1 -1
- package/inputmask/BaseInputMask.vue +43 -0
- package/inputmask/InputMask.d.ts +11 -0
- package/inputmask/InputMask.vue +3 -34
- package/inputmask/inputmask.cjs.js +464 -519
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.esm.js +464 -519
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +465 -520
- package/inputmask/inputmask.min.js +1 -1
- package/inputnumber/BaseInputNumber.vue +288 -0
- package/inputnumber/InputNumber.d.ts +12 -0
- package/inputnumber/InputNumber.vue +50 -283
- package/inputnumber/inputnumber.cjs.js +1113 -1157
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.js +1112 -1156
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +1113 -1158
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputswitch/BaseInputSwitch.vue +101 -0
- package/inputswitch/InputSwitch.d.ts +17 -0
- package/inputswitch/InputSwitch.vue +6 -83
- package/inputswitch/inputswitch.cjs.js +149 -138
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.esm.js +149 -138
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +150 -140
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputtext/BaseInputText.vue +34 -0
- package/inputtext/InputText.d.ts +15 -0
- package/inputtext/InputText.vue +10 -6
- package/inputtext/inputtext.cjs.js +58 -20
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.esm.js +58 -20
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +58 -20
- package/inputtext/inputtext.min.js +1 -1
- package/knob/BaseKnob.vue +114 -0
- package/knob/Knob.d.ts +12 -0
- package/knob/Knob.vue +6 -101
- package/knob/knob.cjs.js +316 -326
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.esm.js +316 -326
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +317 -328
- package/knob/knob.min.js +1 -1
- package/listbox/BaseListbox.vue +156 -0
- package/listbox/Listbox.d.ts +12 -0
- package/listbox/Listbox.vue +45 -141
- package/listbox/listbox.cjs.js +925 -877
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.js +925 -877
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +925 -878
- package/listbox/listbox.min.js +1 -1
- package/megamenu/BaseMegaMenu.vue +238 -0
- package/megamenu/MegaMenu.d.ts +16 -0
- package/megamenu/MegaMenu.vue +6 -129
- package/megamenu/MegaMenuSub.vue +27 -91
- package/megamenu/megamenu.cjs.js +1028 -979
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +1029 -980
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +1028 -980
- package/megamenu/megamenu.min.js +1 -1
- package/menu/BaseMenu.vue +112 -0
- package/menu/Menu.d.ts +12 -0
- package/menu/Menu.vue +15 -92
- package/menu/Menuitem.vue +22 -27
- package/menu/menu.cjs.js +609 -651
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +608 -650
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +609 -652
- package/menu/menu.min.js +1 -1
- package/menubar/BaseMenubar.vue +155 -0
- package/menubar/Menubar.d.ts +16 -0
- package/menubar/Menubar.vue +11 -110
- package/menubar/MenubarSub.vue +19 -55
- package/menubar/menubar.cjs.js +970 -923
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +970 -923
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +970 -924
- package/menubar/menubar.min.js +1 -1
- package/message/BaseMessage.vue +105 -0
- package/message/Message.d.ts +12 -0
- package/message/Message.vue +10 -89
- package/message/message.cjs.js +150 -154
- package/message/message.cjs.min.js +1 -1
- package/message/message.esm.js +149 -153
- package/message/message.esm.min.js +1 -1
- package/message/message.js +150 -155
- package/message/message.min.js +1 -1
- package/multiselect/BaseMultiSelect.vue +363 -0
- package/multiselect/MultiSelect.d.ts +12 -5
- package/multiselect/MultiSelect.vue +76 -373
- package/multiselect/multiselect.cjs.js +1513 -1449
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +1513 -1449
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +1513 -1450
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/BaseOrderList.vue +146 -0
- package/orderlist/OrderList.d.ts +12 -0
- package/orderlist/OrderList.vue +35 -156
- package/orderlist/orderlist.cjs.js +627 -686
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.esm.js +626 -685
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +627 -687
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/BaseOrganizationChart.vue +111 -0
- package/organizationchart/OrganizationChart.d.ts +12 -0
- package/organizationchart/OrganizationChart.vue +4 -80
- package/organizationchart/OrganizationChartNode.vue +15 -16
- package/organizationchart/organizationchart.cjs.js +315 -313
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +315 -313
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +316 -315
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/BaseOverlayPanel.vue +135 -0
- package/overlaypanel/OverlayPanel.d.ts +12 -0
- package/overlaypanel/OverlayPanel.vue +10 -122
- package/overlaypanel/overlaypanel.cjs.js +352 -374
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +351 -373
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +352 -375
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/BasePaginator.vue +147 -0
- package/paginator/CurrentPageReport.vue +2 -1
- package/paginator/FirstPageLink.vue +3 -12
- package/paginator/JumpToPageDropdown.vue +13 -1
- package/paginator/JumpToPageInput.vue +12 -1
- package/paginator/LastPageLink.vue +3 -12
- package/paginator/NextPageLink.vue +3 -12
- package/paginator/PageLinks.vue +4 -2
- package/paginator/Paginator.d.ts +41 -5
- package/paginator/Paginator.vue +19 -93
- package/paginator/PrevPageLink.vue +3 -12
- package/paginator/RowsPerPageDropdown.vue +13 -1
- package/paginator/paginator.cjs.js +753 -782
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +754 -783
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +753 -783
- package/paginator/paginator.min.js +1 -1
- package/panel/BasePanel.vue +67 -0
- package/panel/Panel.d.ts +12 -0
- package/panel/Panel.vue +11 -45
- package/panel/panel.cjs.js +151 -154
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.esm.js +151 -154
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +151 -155
- package/panel/panel.min.js +1 -1
- package/panelmenu/BasePanelMenu.vue +118 -0
- package/panelmenu/PanelMenu.d.ts +16 -0
- package/panelmenu/PanelMenu.vue +28 -104
- package/panelmenu/PanelMenuList.vue +5 -3
- package/panelmenu/PanelMenuSub.vue +29 -49
- package/panelmenu/panelmenu.cjs.js +1034 -1007
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +1034 -1007
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +1034 -1008
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/BasePassword.vue +180 -0
- package/password/Password.d.ts +16 -0
- package/password/Password.vue +12 -176
- package/password/password.cjs.js +473 -479
- package/password/password.cjs.min.js +1 -1
- package/password/password.esm.js +472 -478
- package/password/password.esm.min.js +1 -1
- package/password/password.js +473 -480
- package/password/password.min.js +1 -1
- package/picklist/BasePickList.vue +167 -0
- package/picklist/PickList.d.ts +14 -2
- package/picklist/PickList.vue +46 -175
- package/picklist/picklist.cjs.js +1060 -1108
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +1059 -1107
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +1060 -1109
- package/picklist/picklist.min.js +1 -1
- package/portal/portal.cjs.js +28 -32
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +28 -32
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +28 -32
- package/portal/portal.min.js +1 -1
- package/progressbar/BaseProgressBar.vue +158 -0
- package/progressbar/ProgressBar.d.ts +12 -0
- package/progressbar/ProgressBar.vue +7 -141
- package/progressbar/progressbar.cjs.js +80 -100
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.esm.js +80 -100
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +81 -102
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/BaseProgressSpinner.vue +68 -0
- package/progressspinner/ProgressSpinner.d.ts +12 -0
- package/progressspinner/ProgressSpinner.vue +5 -47
- package/progressspinner/progressspinner.cjs.js +65 -72
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.esm.js +65 -72
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +66 -74
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/BaseRadioButton.vue +72 -0
- package/radiobutton/RadioButton.d.ts +17 -0
- package/radiobutton/RadioButton.vue +7 -68
- package/radiobutton/radiobutton.cjs.js +145 -106
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.esm.js +145 -106
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +146 -107
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/BaseRating.vue +98 -0
- package/rating/Rating.d.ts +30 -1
- package/rating/Rating.vue +13 -76
- package/rating/rating.cjs.js +238 -206
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.esm.js +238 -206
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +238 -207
- package/rating/rating.min.js +1 -1
- package/resources/primevue.css +3 -521
- package/resources/primevue.min.css +3 -1
- package/ripple/Ripple.d.ts +48 -1
- package/ripple/ripple.cjs.js +102 -82
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +100 -84
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +102 -84
- package/ripple/ripple.min.js +1 -1
- package/row/Row.d.ts +25 -1
- package/row/row.cjs.js +5 -5
- package/row/row.cjs.min.js +1 -1
- package/row/row.esm.js +5 -5
- package/row/row.esm.min.js +1 -1
- package/row/row.js +5 -5
- package/row/row.min.js +1 -1
- package/scrollpanel/BaseScrollPanel.vue +92 -0
- package/scrollpanel/ScrollPanel.d.ts +12 -0
- package/scrollpanel/ScrollPanel.vue +29 -82
- package/scrollpanel/scrollpanel.cjs.js +370 -358
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.esm.js +370 -358
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +370 -359
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/BaseScrollTop.vue +78 -0
- package/scrolltop/ScrollTop.d.ts +12 -0
- package/scrolltop/ScrollTop.vue +5 -61
- package/scrolltop/scrolltop.cjs.js +140 -147
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.esm.js +140 -147
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +140 -148
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/BaseSelectButton.vue +46 -0
- package/selectbutton/SelectButton.d.ts +12 -0
- package/selectbutton/SelectButton.vue +11 -44
- package/selectbutton/selectbutton.cjs.js +241 -209
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +241 -209
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +242 -210
- package/selectbutton/selectbutton.min.js +1 -1
- package/sidebar/BaseSidebar.vue +255 -0
- package/sidebar/Sidebar.d.ts +12 -0
- package/sidebar/Sidebar.vue +10 -251
- package/sidebar/sidebar.cjs.js +316 -329
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.esm.js +315 -328
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +316 -330
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/BaseSkeleton.vue +96 -0
- package/skeleton/Skeleton.d.ts +12 -0
- package/skeleton/Skeleton.vue +3 -74
- package/skeleton/skeleton.cjs.js +81 -75
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.esm.js +81 -75
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +82 -77
- package/skeleton/skeleton.min.js +1 -1
- package/slider/BaseSlider.vue +118 -0
- package/slider/Slider.d.ts +12 -0
- package/slider/Slider.vue +13 -104
- package/slider/slider.cjs.js +411 -400
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +411 -400
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +411 -401
- package/slider/slider.min.js +1 -1
- package/speeddial/BaseSpeedDial.vue +234 -0
- package/speeddial/SpeedDial.d.ts +12 -0
- package/speeddial/SpeedDial.vue +19 -237
- package/speeddial/speeddial.cjs.js +607 -614
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.esm.js +606 -613
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +607 -615
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/BaseSplitButton.vue +149 -0
- package/splitbutton/SplitButton.d.ts +24 -2
- package/splitbutton/SplitButton.vue +17 -135
- package/splitbutton/splitbutton.cjs.js +230 -220
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +230 -220
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +230 -221
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/BaseSplitter.vue +101 -0
- package/splitter/Splitter.d.ts +12 -0
- package/splitter/Splitter.vue +13 -97
- package/splitter/splitter.cjs.js +427 -409
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.esm.js +427 -409
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +427 -410
- package/splitter/splitter.min.js +1 -1
- package/splitterpanel/BaseSplitterPanel.vue +49 -0
- package/splitterpanel/SplitterPanel.d.ts +12 -0
- package/splitterpanel/SplitterPanel.vue +3 -16
- package/splitterpanel/splitterpanel.cjs.js +52 -26
- package/splitterpanel/splitterpanel.cjs.min.js +1 -1
- package/splitterpanel/splitterpanel.esm.js +52 -26
- package/splitterpanel/splitterpanel.esm.min.js +1 -1
- package/splitterpanel/splitterpanel.js +53 -28
- package/splitterpanel/splitterpanel.min.js +1 -1
- package/steps/BaseSteps.vue +112 -0
- package/steps/Steps.d.ts +12 -0
- package/steps/Steps.vue +14 -110
- package/steps/steps.cjs.js +248 -260
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.esm.js +248 -260
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +248 -261
- package/steps/steps.min.js +1 -1
- package/styleclass/StyleClass.d.ts +17 -0
- package/styleclass/styleclass.cjs.js +117 -141
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.esm.js +113 -141
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +117 -142
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/BaseTabMenu.vue +100 -0
- package/tabmenu/TabMenu.d.ts +12 -0
- package/tabmenu/TabMenu.vue +39 -107
- package/tabmenu/tabmenu.cjs.js +365 -394
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.esm.js +364 -393
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +365 -395
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabpanel/BaseTabPanel.vue +19 -0
- package/tabpanel/TabPanel.d.ts +19 -0
- package/tabpanel/TabPanel.vue +3 -13
- package/tabpanel/tabpanel.cjs.js +19 -14
- package/tabpanel/tabpanel.cjs.min.js +1 -1
- package/tabpanel/tabpanel.esm.js +19 -14
- package/tabpanel/tabpanel.esm.min.js +1 -1
- package/tabpanel/tabpanel.js +19 -14
- package/tabpanel/tabpanel.min.js +1 -1
- package/tabview/BaseTabView.vue +159 -0
- package/tabview/TabView.d.ts +16 -0
- package/tabview/TabView.vue +53 -172
- package/tabview/tabview.cjs.js +459 -459
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.esm.js +458 -458
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +459 -460
- package/tabview/tabview.min.js +1 -1
- package/tag/BaseTag.vue +59 -0
- package/tag/Tag.d.ts +12 -0
- package/tag/Tag.vue +6 -47
- package/tag/tag.cjs.js +58 -71
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.esm.js +58 -71
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +59 -73
- package/tag/tag.min.js +1 -1
- package/terminal/BaseTerminal.vue +65 -0
- package/terminal/Terminal.d.ts +12 -0
- package/terminal/Terminal.vue +10 -45
- package/terminal/terminal.cjs.js +112 -107
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.esm.js +111 -106
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +112 -108
- package/terminal/terminal.min.js +1 -1
- package/textarea/BaseTextarea.vue +45 -0
- package/textarea/Textarea.d.ts +12 -0
- package/textarea/Textarea.vue +3 -18
- package/textarea/textarea.cjs.js +80 -79
- package/textarea/textarea.cjs.min.js +1 -1
- package/textarea/textarea.esm.js +80 -79
- package/textarea/textarea.esm.min.js +1 -1
- package/textarea/textarea.js +81 -81
- package/textarea/textarea.min.js +1 -1
- package/tieredmenu/BaseTieredMenu.vue +142 -0
- package/tieredmenu/TieredMenu.d.ts +16 -0
- package/tieredmenu/TieredMenu.vue +5 -105
- package/tieredmenu/TieredMenuSub.vue +23 -50
- package/tieredmenu/tieredmenu.cjs.js +987 -941
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +987 -941
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +987 -942
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/BaseTimeline.vue +155 -0
- package/timeline/Timeline.d.ts +11 -0
- package/timeline/Timeline.vue +9 -139
- package/timeline/timeline.cjs.js +87 -90
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.esm.js +87 -90
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +87 -91
- package/timeline/timeline.min.js +1 -1
- package/toast/BaseToast.vue +181 -0
- package/toast/Toast.d.ts +12 -0
- package/toast/Toast.vue +4 -155
- package/toast/ToastMessage.vue +9 -31
- package/toast/toast.cjs.js +389 -380
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +388 -379
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +389 -381
- package/toast/toast.min.js +1 -1
- package/toastservice/toastservice.cjs.js +15 -16
- package/toastservice/toastservice.cjs.min.js +1 -1
- package/toastservice/toastservice.esm.js +15 -16
- package/toastservice/toastservice.esm.min.js +1 -1
- package/toastservice/toastservice.js +15 -16
- package/toastservice/toastservice.min.js +1 -1
- package/togglebutton/BaseToggleButton.vue +85 -0
- package/togglebutton/ToggleButton.d.ts +12 -0
- package/togglebutton/ToggleButton.vue +7 -77
- package/togglebutton/togglebutton.cjs.js +193 -170
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.esm.js +192 -169
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +194 -171
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/BaseToolbar.vue +55 -0
- package/toolbar/Toolbar.d.ts +12 -0
- package/toolbar/Toolbar.vue +7 -34
- package/toolbar/toolbar.cjs.js +50 -52
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.esm.js +50 -52
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +51 -54
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/Tooltip.d.ts +44 -0
- package/tooltip/tooltip.cjs.js +379 -400
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +379 -404
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +409 -432
- package/tooltip/tooltip.min.js +1 -1
- package/tree/BaseTree.vue +211 -0
- package/tree/Tree.d.ts +32 -10
- package/tree/Tree.vue +13 -173
- package/tree/TreeNode.vue +23 -45
- package/tree/tree.cjs.js +852 -855
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +852 -855
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +852 -856
- package/tree/tree.min.js +1 -1
- package/treeselect/BaseTreeSelect.vue +184 -0
- package/treeselect/TreeSelect.d.ts +19 -2
- package/treeselect/TreeSelect.vue +21 -180
- package/treeselect/treeselect.cjs.js +675 -622
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.esm.js +675 -622
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +675 -623
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/BaseTreeTable.vue +434 -0
- package/treetable/BodyCell.vue +30 -29
- package/treetable/FooterCell.vue +15 -11
- package/treetable/HeaderCell.vue +26 -21
- package/treetable/TreeTable.d.ts +29 -4
- package/treetable/TreeTable.vue +37 -379
- package/treetable/TreeTableRow.vue +9 -11
- package/treetable/treetable.cjs.js +2104 -2129
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.esm.js +2104 -2129
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +2104 -2130
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/BaseTriStateCheckbox.vue +65 -0
- package/tristatecheckbox/TriStateCheckbox.d.ts +33 -6
- package/tristatecheckbox/TriStateCheckbox.vue +12 -49
- package/tristatecheckbox/tristatecheckbox.cjs.js +196 -144
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +196 -144
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +197 -145
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/useconfirm/useconfirm.cjs.js +6 -9
- package/useconfirm/useconfirm.cjs.min.js +1 -1
- package/useconfirm/useconfirm.esm.js +6 -9
- package/useconfirm/useconfirm.esm.min.js +1 -1
- package/useconfirm/useconfirm.js +6 -9
- package/useconfirm/useconfirm.min.js +1 -1
- package/usedialog/usedialog.cjs.js +6 -9
- package/usedialog/usedialog.cjs.min.js +1 -1
- package/usedialog/usedialog.esm.js +6 -9
- package/usedialog/usedialog.esm.min.js +1 -1
- package/usedialog/usedialog.js +6 -9
- package/usedialog/usedialog.min.js +1 -1
- package/usestyle/UseStyle.d.ts +19 -0
- package/usestyle/package.json +6 -0
- package/usestyle/usestyle.cjs.js +73 -0
- package/usestyle/usestyle.cjs.min.js +1 -0
- package/usestyle/usestyle.esm.js +69 -0
- package/usestyle/usestyle.esm.min.js +1 -0
- package/usestyle/usestyle.js +76 -0
- package/usestyle/usestyle.min.js +1 -0
- package/usetoast/usetoast.cjs.js +6 -9
- package/usetoast/usetoast.cjs.min.js +1 -1
- package/usetoast/usetoast.esm.js +6 -9
- package/usetoast/usetoast.esm.min.js +1 -1
- package/usetoast/usetoast.js +6 -9
- package/usetoast/usetoast.min.js +1 -1
- package/utils/Utils.d.ts +12 -1
- package/utils/utils.cjs.js +958 -996
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +958 -996
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +958 -996
- package/utils/utils.min.js +1 -1
- package/vetur-attributes.json +332 -0
- package/vetur-tags.json +168 -80
- package/virtualscroller/BaseVirtualScroller.vue +164 -0
- package/virtualscroller/VirtualScroller.d.ts +22 -5
- package/virtualscroller/VirtualScroller.vue +6 -151
- package/virtualscroller/virtualscroller.cjs.js +865 -800
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.js +864 -799
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +865 -801
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +836 -4
- package/resources/images/color.png +0 -0
- package/resources/images/hue.png +0 -0
|
@@ -1,1209 +1,1165 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var BaseComponent = require('primevue/basecomponent');
|
|
4
3
|
var Button = require('primevue/button');
|
|
5
4
|
var AngleDownIcon = require('primevue/icons/angledown');
|
|
6
5
|
var AngleUpIcon = require('primevue/icons/angleup');
|
|
7
6
|
var InputText = require('primevue/inputtext');
|
|
8
7
|
var utils = require('primevue/utils');
|
|
8
|
+
var BaseComponent = require('primevue/basecomponent');
|
|
9
|
+
var usestyle = require('primevue/usestyle');
|
|
9
10
|
var vue = require('vue');
|
|
10
11
|
|
|
11
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
13
|
|
|
13
|
-
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
14
14
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
15
15
|
var AngleDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleDownIcon);
|
|
16
16
|
var AngleUpIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleUpIcon);
|
|
17
17
|
var InputText__default = /*#__PURE__*/_interopDefaultLegacy(InputText);
|
|
18
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
18
19
|
|
|
20
|
+
var styles = "\n.p-inputnumber {\n display: inline-flex;\n}\n\n.p-inputnumber-button {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n}\n\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label {\n display: none;\n}\n\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n padding: 0;\n}\n\n.p-inputnumber-buttons-stacked .p-inputnumber-input {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-bottom-left-radius: 0;\n padding: 0;\n}\n\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group {\n display: flex;\n flex-direction: column;\n}\n\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button {\n flex: 1 1 auto;\n}\n\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up {\n order: 3;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.p-inputnumber-buttons-horizontal .p-inputnumber-input {\n order: 2;\n border-radius: 0;\n}\n\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down {\n order: 1;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.p-inputnumber-buttons-vertical {\n flex-direction: column;\n}\n\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up {\n order: 1;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n width: 100%;\n}\n\n.p-inputnumber-buttons-vertical .p-inputnumber-input {\n order: 2;\n border-radius: 0;\n text-align: center;\n}\n\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down {\n order: 3;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n width: 100%;\n}\n\n.p-inputnumber-input {\n flex: 1 1 auto;\n}\n\n.p-fluid .p-inputnumber {\n width: 100%;\n}\n\n.p-fluid .p-inputnumber .p-inputnumber-input {\n width: 1%;\n}\n\n.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input {\n width: 100%;\n}\n";
|
|
21
|
+
var classes = {
|
|
22
|
+
root: function root(_ref) {
|
|
23
|
+
var instance = _ref.instance,
|
|
24
|
+
props = _ref.props;
|
|
25
|
+
return ['p-inputnumber p-component p-inputwrapper', {
|
|
26
|
+
'p-inputwrapper-filled': instance.filled,
|
|
27
|
+
'p-inputwrapper-focus': instance.focused,
|
|
28
|
+
'p-inputnumber-buttons-stacked': props.showButtons && props.buttonLayout === 'stacked',
|
|
29
|
+
'p-inputnumber-buttons-horizontal': props.showButtons && props.buttonLayout === 'horizontal',
|
|
30
|
+
'p-inputnumber-buttons-vertical': props.showButtons && props.buttonLayout === 'vertical'
|
|
31
|
+
}];
|
|
32
|
+
},
|
|
33
|
+
input: 'p-inputnumber-input',
|
|
34
|
+
buttonGroup: 'p-inputnumber-button-group',
|
|
35
|
+
incrementButton: function incrementButton(_ref2) {
|
|
36
|
+
var instance = _ref2.instance,
|
|
37
|
+
props = _ref2.props;
|
|
38
|
+
return ['p-inputnumber-button p-inputnumber-button-up', {
|
|
39
|
+
'p-disabled': props.showButtons && props.max !== null && instance.maxBoundry()
|
|
40
|
+
}];
|
|
41
|
+
},
|
|
42
|
+
decrementButton: function decrementButton(_ref3) {
|
|
43
|
+
var instance = _ref3.instance,
|
|
44
|
+
props = _ref3.props;
|
|
45
|
+
return ['p-inputnumber-button p-inputnumber-button-down', {
|
|
46
|
+
'p-disabled': props.showButtons && props.min !== null && instance.minBoundry()
|
|
47
|
+
}];
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var _useStyle = usestyle.useStyle(styles, {
|
|
51
|
+
name: 'inputnumber',
|
|
52
|
+
manual: true
|
|
53
|
+
}),
|
|
54
|
+
loadStyle = _useStyle.load;
|
|
55
|
+
var script$1 = {
|
|
56
|
+
name: 'BaseInputNumber',
|
|
57
|
+
"extends": BaseComponent__default["default"],
|
|
58
|
+
props: {
|
|
59
|
+
modelValue: {
|
|
60
|
+
type: Number,
|
|
61
|
+
"default": null
|
|
62
|
+
},
|
|
63
|
+
format: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
"default": true
|
|
66
|
+
},
|
|
67
|
+
showButtons: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
"default": false
|
|
70
|
+
},
|
|
71
|
+
buttonLayout: {
|
|
72
|
+
type: String,
|
|
73
|
+
"default": 'stacked'
|
|
74
|
+
},
|
|
75
|
+
incrementButtonClass: {
|
|
76
|
+
type: String,
|
|
77
|
+
"default": null
|
|
78
|
+
},
|
|
79
|
+
decrementButtonClass: {
|
|
80
|
+
type: String,
|
|
81
|
+
"default": null
|
|
82
|
+
},
|
|
83
|
+
incrementButtonIcon: {
|
|
84
|
+
type: String,
|
|
85
|
+
"default": undefined
|
|
86
|
+
},
|
|
87
|
+
decrementButtonIcon: {
|
|
88
|
+
type: String,
|
|
89
|
+
"default": undefined
|
|
90
|
+
},
|
|
91
|
+
locale: {
|
|
92
|
+
type: String,
|
|
93
|
+
"default": undefined
|
|
94
|
+
},
|
|
95
|
+
localeMatcher: {
|
|
96
|
+
type: String,
|
|
97
|
+
"default": undefined
|
|
98
|
+
},
|
|
99
|
+
mode: {
|
|
100
|
+
type: String,
|
|
101
|
+
"default": 'decimal'
|
|
102
|
+
},
|
|
103
|
+
prefix: {
|
|
104
|
+
type: String,
|
|
105
|
+
"default": null
|
|
106
|
+
},
|
|
107
|
+
suffix: {
|
|
108
|
+
type: String,
|
|
109
|
+
"default": null
|
|
110
|
+
},
|
|
111
|
+
currency: {
|
|
112
|
+
type: String,
|
|
113
|
+
"default": undefined
|
|
114
|
+
},
|
|
115
|
+
currencyDisplay: {
|
|
116
|
+
type: String,
|
|
117
|
+
"default": undefined
|
|
118
|
+
},
|
|
119
|
+
useGrouping: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
"default": true
|
|
122
|
+
},
|
|
123
|
+
minFractionDigits: {
|
|
124
|
+
type: Number,
|
|
125
|
+
"default": undefined
|
|
126
|
+
},
|
|
127
|
+
maxFractionDigits: {
|
|
128
|
+
type: Number,
|
|
129
|
+
"default": undefined
|
|
130
|
+
},
|
|
131
|
+
min: {
|
|
132
|
+
type: Number,
|
|
133
|
+
"default": null
|
|
134
|
+
},
|
|
135
|
+
max: {
|
|
136
|
+
type: Number,
|
|
137
|
+
"default": null
|
|
138
|
+
},
|
|
139
|
+
step: {
|
|
140
|
+
type: Number,
|
|
141
|
+
"default": 1
|
|
142
|
+
},
|
|
143
|
+
allowEmpty: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
"default": true
|
|
146
|
+
},
|
|
147
|
+
highlightOnFocus: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
"default": false
|
|
150
|
+
},
|
|
151
|
+
readonly: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
"default": false
|
|
154
|
+
},
|
|
155
|
+
disabled: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
"default": false
|
|
158
|
+
},
|
|
159
|
+
placeholder: {
|
|
160
|
+
type: String,
|
|
161
|
+
"default": null
|
|
162
|
+
},
|
|
163
|
+
inputId: {
|
|
164
|
+
type: String,
|
|
165
|
+
"default": null
|
|
166
|
+
},
|
|
167
|
+
inputClass: {
|
|
168
|
+
type: [String, Object],
|
|
169
|
+
"default": null
|
|
170
|
+
},
|
|
171
|
+
inputStyle: {
|
|
172
|
+
type: Object,
|
|
173
|
+
"default": null
|
|
174
|
+
},
|
|
175
|
+
inputProps: {
|
|
176
|
+
type: null,
|
|
177
|
+
"default": null
|
|
178
|
+
},
|
|
179
|
+
incrementButtonProps: {
|
|
180
|
+
type: null,
|
|
181
|
+
"default": null
|
|
182
|
+
},
|
|
183
|
+
decrementButtonProps: {
|
|
184
|
+
type: null,
|
|
185
|
+
"default": null
|
|
186
|
+
},
|
|
187
|
+
'aria-labelledby': {
|
|
188
|
+
type: String,
|
|
189
|
+
"default": null
|
|
190
|
+
},
|
|
191
|
+
'aria-label': {
|
|
192
|
+
type: String,
|
|
193
|
+
"default": null
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
css: {
|
|
197
|
+
classes: classes,
|
|
198
|
+
loadStyle: loadStyle
|
|
199
|
+
},
|
|
200
|
+
provide: function provide() {
|
|
201
|
+
return {
|
|
202
|
+
$parentInstance: this
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
|
|
208
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
209
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
210
|
+
function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
211
|
+
function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
|
|
212
|
+
function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
213
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
214
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
215
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
216
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
217
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
218
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
19
219
|
var script = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
default: null
|
|
47
|
-
},
|
|
48
|
-
incrementButtonIcon: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: undefined
|
|
51
|
-
},
|
|
52
|
-
decrementButtonIcon: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: undefined
|
|
55
|
-
},
|
|
56
|
-
locale: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: undefined
|
|
59
|
-
},
|
|
60
|
-
localeMatcher: {
|
|
61
|
-
type: String,
|
|
62
|
-
default: undefined
|
|
63
|
-
},
|
|
64
|
-
mode: {
|
|
65
|
-
type: String,
|
|
66
|
-
default: 'decimal'
|
|
67
|
-
},
|
|
68
|
-
prefix: {
|
|
69
|
-
type: String,
|
|
70
|
-
default: null
|
|
71
|
-
},
|
|
72
|
-
suffix: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: null
|
|
75
|
-
},
|
|
76
|
-
currency: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: undefined
|
|
79
|
-
},
|
|
80
|
-
currencyDisplay: {
|
|
81
|
-
type: String,
|
|
82
|
-
default: undefined
|
|
83
|
-
},
|
|
84
|
-
useGrouping: {
|
|
85
|
-
type: Boolean,
|
|
86
|
-
default: true
|
|
87
|
-
},
|
|
88
|
-
minFractionDigits: {
|
|
89
|
-
type: Number,
|
|
90
|
-
default: undefined
|
|
91
|
-
},
|
|
92
|
-
maxFractionDigits: {
|
|
93
|
-
type: Number,
|
|
94
|
-
default: undefined
|
|
95
|
-
},
|
|
96
|
-
min: {
|
|
97
|
-
type: Number,
|
|
98
|
-
default: null
|
|
99
|
-
},
|
|
100
|
-
max: {
|
|
101
|
-
type: Number,
|
|
102
|
-
default: null
|
|
103
|
-
},
|
|
104
|
-
step: {
|
|
105
|
-
type: Number,
|
|
106
|
-
default: 1
|
|
107
|
-
},
|
|
108
|
-
allowEmpty: {
|
|
109
|
-
type: Boolean,
|
|
110
|
-
default: true
|
|
111
|
-
},
|
|
112
|
-
highlightOnFocus: {
|
|
113
|
-
type: Boolean,
|
|
114
|
-
default: false
|
|
115
|
-
},
|
|
116
|
-
readonly: {
|
|
117
|
-
type: Boolean,
|
|
118
|
-
default: false
|
|
119
|
-
},
|
|
120
|
-
disabled: {
|
|
121
|
-
type: Boolean,
|
|
122
|
-
default: false
|
|
123
|
-
},
|
|
124
|
-
placeholder: {
|
|
125
|
-
type: String,
|
|
126
|
-
default: null
|
|
127
|
-
},
|
|
128
|
-
inputId: {
|
|
129
|
-
type: String,
|
|
130
|
-
default: null
|
|
131
|
-
},
|
|
132
|
-
inputClass: {
|
|
133
|
-
type: [String, Object],
|
|
134
|
-
default: null
|
|
135
|
-
},
|
|
136
|
-
inputStyle: {
|
|
137
|
-
type: Object,
|
|
138
|
-
default: null
|
|
139
|
-
},
|
|
140
|
-
inputProps: {
|
|
141
|
-
type: null,
|
|
142
|
-
default: null
|
|
143
|
-
},
|
|
144
|
-
incrementButtonProps: {
|
|
145
|
-
type: null,
|
|
146
|
-
default: null
|
|
147
|
-
},
|
|
148
|
-
decrementButtonProps: {
|
|
149
|
-
type: null,
|
|
150
|
-
default: null
|
|
151
|
-
},
|
|
152
|
-
'aria-labelledby': {
|
|
153
|
-
type: String,
|
|
154
|
-
default: null
|
|
155
|
-
},
|
|
156
|
-
'aria-label': {
|
|
157
|
-
type: String,
|
|
158
|
-
default: null
|
|
159
|
-
}
|
|
220
|
+
name: 'InputNumber',
|
|
221
|
+
"extends": script$1,
|
|
222
|
+
emits: ['update:modelValue', 'input', 'focus', 'blur'],
|
|
223
|
+
numberFormat: null,
|
|
224
|
+
_numeral: null,
|
|
225
|
+
_decimal: null,
|
|
226
|
+
_group: null,
|
|
227
|
+
_minusSign: null,
|
|
228
|
+
_currency: null,
|
|
229
|
+
_suffix: null,
|
|
230
|
+
_prefix: null,
|
|
231
|
+
_index: null,
|
|
232
|
+
groupChar: '',
|
|
233
|
+
isSpecialChar: null,
|
|
234
|
+
prefixChar: null,
|
|
235
|
+
suffixChar: null,
|
|
236
|
+
timer: null,
|
|
237
|
+
data: function data() {
|
|
238
|
+
return {
|
|
239
|
+
d_modelValue: this.modelValue,
|
|
240
|
+
focused: false
|
|
241
|
+
};
|
|
242
|
+
},
|
|
243
|
+
watch: {
|
|
244
|
+
modelValue: function modelValue(newValue) {
|
|
245
|
+
this.d_modelValue = newValue;
|
|
160
246
|
},
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
_index: null,
|
|
170
|
-
groupChar: '',
|
|
171
|
-
isSpecialChar: null,
|
|
172
|
-
prefixChar: null,
|
|
173
|
-
suffixChar: null,
|
|
174
|
-
timer: null,
|
|
175
|
-
data() {
|
|
176
|
-
return {
|
|
177
|
-
d_modelValue: this.modelValue,
|
|
178
|
-
focused: false
|
|
179
|
-
};
|
|
180
|
-
},
|
|
181
|
-
watch: {
|
|
182
|
-
modelValue(newValue) {
|
|
183
|
-
this.d_modelValue = newValue;
|
|
184
|
-
},
|
|
185
|
-
locale(newValue, oldValue) {
|
|
186
|
-
this.updateConstructParser(newValue, oldValue);
|
|
187
|
-
},
|
|
188
|
-
localeMatcher(newValue, oldValue) {
|
|
189
|
-
this.updateConstructParser(newValue, oldValue);
|
|
190
|
-
},
|
|
191
|
-
mode(newValue, oldValue) {
|
|
192
|
-
this.updateConstructParser(newValue, oldValue);
|
|
193
|
-
},
|
|
194
|
-
currency(newValue, oldValue) {
|
|
195
|
-
this.updateConstructParser(newValue, oldValue);
|
|
196
|
-
},
|
|
197
|
-
currencyDisplay(newValue, oldValue) {
|
|
198
|
-
this.updateConstructParser(newValue, oldValue);
|
|
199
|
-
},
|
|
200
|
-
useGrouping(newValue, oldValue) {
|
|
201
|
-
this.updateConstructParser(newValue, oldValue);
|
|
202
|
-
},
|
|
203
|
-
minFractionDigits(newValue, oldValue) {
|
|
204
|
-
this.updateConstructParser(newValue, oldValue);
|
|
205
|
-
},
|
|
206
|
-
maxFractionDigits(newValue, oldValue) {
|
|
207
|
-
this.updateConstructParser(newValue, oldValue);
|
|
208
|
-
},
|
|
209
|
-
suffix(newValue, oldValue) {
|
|
210
|
-
this.updateConstructParser(newValue, oldValue);
|
|
211
|
-
},
|
|
212
|
-
prefix(newValue, oldValue) {
|
|
213
|
-
this.updateConstructParser(newValue, oldValue);
|
|
214
|
-
}
|
|
247
|
+
locale: function locale(newValue, oldValue) {
|
|
248
|
+
this.updateConstructParser(newValue, oldValue);
|
|
249
|
+
},
|
|
250
|
+
localeMatcher: function localeMatcher(newValue, oldValue) {
|
|
251
|
+
this.updateConstructParser(newValue, oldValue);
|
|
252
|
+
},
|
|
253
|
+
mode: function mode(newValue, oldValue) {
|
|
254
|
+
this.updateConstructParser(newValue, oldValue);
|
|
215
255
|
},
|
|
216
|
-
|
|
256
|
+
currency: function currency(newValue, oldValue) {
|
|
257
|
+
this.updateConstructParser(newValue, oldValue);
|
|
258
|
+
},
|
|
259
|
+
currencyDisplay: function currencyDisplay(newValue, oldValue) {
|
|
260
|
+
this.updateConstructParser(newValue, oldValue);
|
|
261
|
+
},
|
|
262
|
+
useGrouping: function useGrouping(newValue, oldValue) {
|
|
263
|
+
this.updateConstructParser(newValue, oldValue);
|
|
264
|
+
},
|
|
265
|
+
minFractionDigits: function minFractionDigits(newValue, oldValue) {
|
|
266
|
+
this.updateConstructParser(newValue, oldValue);
|
|
267
|
+
},
|
|
268
|
+
maxFractionDigits: function maxFractionDigits(newValue, oldValue) {
|
|
269
|
+
this.updateConstructParser(newValue, oldValue);
|
|
270
|
+
},
|
|
271
|
+
suffix: function suffix(newValue, oldValue) {
|
|
272
|
+
this.updateConstructParser(newValue, oldValue);
|
|
273
|
+
},
|
|
274
|
+
prefix: function prefix(newValue, oldValue) {
|
|
275
|
+
this.updateConstructParser(newValue, oldValue);
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
created: function created() {
|
|
279
|
+
this.constructParser();
|
|
280
|
+
},
|
|
281
|
+
methods: {
|
|
282
|
+
getOptions: function getOptions() {
|
|
283
|
+
return {
|
|
284
|
+
localeMatcher: this.localeMatcher,
|
|
285
|
+
style: this.mode,
|
|
286
|
+
currency: this.currency,
|
|
287
|
+
currencyDisplay: this.currencyDisplay,
|
|
288
|
+
useGrouping: this.useGrouping,
|
|
289
|
+
minimumFractionDigits: this.minFractionDigits,
|
|
290
|
+
maximumFractionDigits: this.maxFractionDigits
|
|
291
|
+
};
|
|
292
|
+
},
|
|
293
|
+
constructParser: function constructParser() {
|
|
294
|
+
this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
|
|
295
|
+
var numerals = _toConsumableArray(new Intl.NumberFormat(this.locale, {
|
|
296
|
+
useGrouping: false
|
|
297
|
+
}).format(9876543210)).reverse();
|
|
298
|
+
var index = new Map(numerals.map(function (d, i) {
|
|
299
|
+
return [d, i];
|
|
300
|
+
}));
|
|
301
|
+
this._numeral = new RegExp("[".concat(numerals.join(''), "]"), 'g');
|
|
302
|
+
this._group = this.getGroupingExpression();
|
|
303
|
+
this._minusSign = this.getMinusSignExpression();
|
|
304
|
+
this._currency = this.getCurrencyExpression();
|
|
305
|
+
this._decimal = this.getDecimalExpression();
|
|
306
|
+
this._suffix = this.getSuffixExpression();
|
|
307
|
+
this._prefix = this.getPrefixExpression();
|
|
308
|
+
this._index = function (d) {
|
|
309
|
+
return index.get(d);
|
|
310
|
+
};
|
|
311
|
+
},
|
|
312
|
+
updateConstructParser: function updateConstructParser(newValue, oldValue) {
|
|
313
|
+
if (newValue !== oldValue) {
|
|
217
314
|
this.constructParser();
|
|
315
|
+
}
|
|
218
316
|
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
if (!this.disabled) {
|
|
424
|
-
this.clearTimer();
|
|
425
|
-
}
|
|
426
|
-
},
|
|
427
|
-
onDownButtonKeyDown(event) {
|
|
428
|
-
if (event.keyCode === 32 || event.keyCode === 13) {
|
|
429
|
-
this.repeat(event, null, -1);
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
onUserInput() {
|
|
433
|
-
if (this.isSpecialChar) {
|
|
434
|
-
this.$refs.input.$el.value = this.lastValue;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
this.isSpecialChar = false;
|
|
438
|
-
},
|
|
439
|
-
onInputKeyDown(event) {
|
|
440
|
-
if (this.readonly) {
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
this.lastValue = event.target.value;
|
|
445
|
-
|
|
446
|
-
if (event.shiftKey || event.altKey) {
|
|
447
|
-
this.isSpecialChar = true;
|
|
448
|
-
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
let selectionStart = event.target.selectionStart;
|
|
453
|
-
let selectionEnd = event.target.selectionEnd;
|
|
454
|
-
let inputValue = event.target.value;
|
|
455
|
-
let newValueStr = null;
|
|
456
|
-
|
|
457
|
-
if (event.altKey) {
|
|
458
|
-
event.preventDefault();
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
switch (event.code) {
|
|
462
|
-
case 'ArrowUp':
|
|
463
|
-
this.spin(event, 1);
|
|
464
|
-
event.preventDefault();
|
|
465
|
-
break;
|
|
466
|
-
|
|
467
|
-
case 'ArrowDown':
|
|
468
|
-
this.spin(event, -1);
|
|
469
|
-
event.preventDefault();
|
|
470
|
-
break;
|
|
471
|
-
|
|
472
|
-
case 'ArrowLeft':
|
|
473
|
-
if (!this.isNumeralChar(inputValue.charAt(selectionStart - 1))) {
|
|
474
|
-
event.preventDefault();
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
break;
|
|
478
|
-
|
|
479
|
-
case 'ArrowRight':
|
|
480
|
-
if (!this.isNumeralChar(inputValue.charAt(selectionStart))) {
|
|
481
|
-
event.preventDefault();
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
break;
|
|
485
|
-
|
|
486
|
-
case 'Tab':
|
|
487
|
-
case 'Enter':
|
|
488
|
-
newValueStr = this.validateValue(this.parseValue(inputValue));
|
|
489
|
-
this.$refs.input.$el.value = this.formatValue(newValueStr);
|
|
490
|
-
this.$refs.input.$el.setAttribute('aria-valuenow', newValueStr);
|
|
491
|
-
this.updateModel(event, newValueStr);
|
|
492
|
-
break;
|
|
493
|
-
|
|
494
|
-
case 'Backspace': {
|
|
495
|
-
event.preventDefault();
|
|
496
|
-
|
|
497
|
-
if (selectionStart === selectionEnd) {
|
|
498
|
-
const deleteChar = inputValue.charAt(selectionStart - 1);
|
|
499
|
-
const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
|
|
500
|
-
|
|
501
|
-
if (this.isNumeralChar(deleteChar)) {
|
|
502
|
-
const decimalLength = this.getDecimalLength(inputValue);
|
|
503
|
-
|
|
504
|
-
if (this._group.test(deleteChar)) {
|
|
505
|
-
this._group.lastIndex = 0;
|
|
506
|
-
newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
|
|
507
|
-
} else if (this._decimal.test(deleteChar)) {
|
|
508
|
-
this._decimal.lastIndex = 0;
|
|
509
|
-
|
|
510
|
-
if (decimalLength) {
|
|
511
|
-
this.$refs.input.$el.setSelectionRange(selectionStart - 1, selectionStart - 1);
|
|
512
|
-
} else {
|
|
513
|
-
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
514
|
-
}
|
|
515
|
-
} else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
516
|
-
const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
|
|
517
|
-
|
|
518
|
-
newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
|
|
519
|
-
} else if (decimalCharIndexWithoutPrefix === 1) {
|
|
520
|
-
newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);
|
|
521
|
-
newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
|
|
522
|
-
} else {
|
|
523
|
-
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
this.updateValue(event, newValueStr, null, 'delete-single');
|
|
528
|
-
} else {
|
|
529
|
-
newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
|
|
530
|
-
this.updateValue(event, newValueStr, null, 'delete-range');
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
break;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
case 'Delete':
|
|
537
|
-
event.preventDefault();
|
|
538
|
-
|
|
539
|
-
if (selectionStart === selectionEnd) {
|
|
540
|
-
const deleteChar = inputValue.charAt(selectionStart);
|
|
541
|
-
const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
|
|
542
|
-
|
|
543
|
-
if (this.isNumeralChar(deleteChar)) {
|
|
544
|
-
const decimalLength = this.getDecimalLength(inputValue);
|
|
545
|
-
|
|
546
|
-
if (this._group.test(deleteChar)) {
|
|
547
|
-
this._group.lastIndex = 0;
|
|
548
|
-
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
|
|
549
|
-
} else if (this._decimal.test(deleteChar)) {
|
|
550
|
-
this._decimal.lastIndex = 0;
|
|
551
|
-
|
|
552
|
-
if (decimalLength) {
|
|
553
|
-
this.$refs.input.$el.setSelectionRange(selectionStart + 1, selectionStart + 1);
|
|
554
|
-
} else {
|
|
555
|
-
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
556
|
-
}
|
|
557
|
-
} else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
558
|
-
const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
|
|
559
|
-
|
|
560
|
-
newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);
|
|
561
|
-
} else if (decimalCharIndexWithoutPrefix === 1) {
|
|
562
|
-
newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
|
|
563
|
-
newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
|
|
564
|
-
} else {
|
|
565
|
-
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
this.updateValue(event, newValueStr, null, 'delete-back-single');
|
|
570
|
-
} else {
|
|
571
|
-
newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
|
|
572
|
-
this.updateValue(event, newValueStr, null, 'delete-range');
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
break;
|
|
576
|
-
|
|
577
|
-
case 'Home':
|
|
578
|
-
if (this.min) {
|
|
579
|
-
this.updateModel(event, this.min);
|
|
580
|
-
event.preventDefault();
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
break;
|
|
584
|
-
|
|
585
|
-
case 'End':
|
|
586
|
-
if (this.max) {
|
|
587
|
-
this.updateModel(event, this.max);
|
|
588
|
-
event.preventDefault();
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
break;
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
onInputKeyPress(event) {
|
|
595
|
-
if (this.readonly) {
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
|
|
317
|
+
escapeRegExp: function escapeRegExp(text) {
|
|
318
|
+
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
|
319
|
+
},
|
|
320
|
+
getDecimalExpression: function getDecimalExpression() {
|
|
321
|
+
var formatter = new Intl.NumberFormat(this.locale, _objectSpread$1(_objectSpread$1({}, this.getOptions()), {}, {
|
|
322
|
+
useGrouping: false
|
|
323
|
+
}));
|
|
324
|
+
return new RegExp("[".concat(formatter.format(1.1).replace(this._currency, '').trim().replace(this._numeral, ''), "]"), 'g');
|
|
325
|
+
},
|
|
326
|
+
getGroupingExpression: function getGroupingExpression() {
|
|
327
|
+
var formatter = new Intl.NumberFormat(this.locale, {
|
|
328
|
+
useGrouping: true
|
|
329
|
+
});
|
|
330
|
+
this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);
|
|
331
|
+
return new RegExp("[".concat(this.groupChar, "]"), 'g');
|
|
332
|
+
},
|
|
333
|
+
getMinusSignExpression: function getMinusSignExpression() {
|
|
334
|
+
var formatter = new Intl.NumberFormat(this.locale, {
|
|
335
|
+
useGrouping: false
|
|
336
|
+
});
|
|
337
|
+
return new RegExp("[".concat(formatter.format(-1).trim().replace(this._numeral, ''), "]"), 'g');
|
|
338
|
+
},
|
|
339
|
+
getCurrencyExpression: function getCurrencyExpression() {
|
|
340
|
+
if (this.currency) {
|
|
341
|
+
var formatter = new Intl.NumberFormat(this.locale, {
|
|
342
|
+
style: 'currency',
|
|
343
|
+
currency: this.currency,
|
|
344
|
+
currencyDisplay: this.currencyDisplay,
|
|
345
|
+
minimumFractionDigits: 0,
|
|
346
|
+
maximumFractionDigits: 0
|
|
347
|
+
});
|
|
348
|
+
return new RegExp("[".concat(formatter.format(1).replace(/\s/g, '').replace(this._numeral, '').replace(this._group, ''), "]"), 'g');
|
|
349
|
+
}
|
|
350
|
+
return new RegExp("[]", 'g');
|
|
351
|
+
},
|
|
352
|
+
getPrefixExpression: function getPrefixExpression() {
|
|
353
|
+
if (this.prefix) {
|
|
354
|
+
this.prefixChar = this.prefix;
|
|
355
|
+
} else {
|
|
356
|
+
var formatter = new Intl.NumberFormat(this.locale, {
|
|
357
|
+
style: this.mode,
|
|
358
|
+
currency: this.currency,
|
|
359
|
+
currencyDisplay: this.currencyDisplay
|
|
360
|
+
});
|
|
361
|
+
this.prefixChar = formatter.format(1).split('1')[0];
|
|
362
|
+
}
|
|
363
|
+
return new RegExp("".concat(this.escapeRegExp(this.prefixChar || '')), 'g');
|
|
364
|
+
},
|
|
365
|
+
getSuffixExpression: function getSuffixExpression() {
|
|
366
|
+
if (this.suffix) {
|
|
367
|
+
this.suffixChar = this.suffix;
|
|
368
|
+
} else {
|
|
369
|
+
var formatter = new Intl.NumberFormat(this.locale, {
|
|
370
|
+
style: this.mode,
|
|
371
|
+
currency: this.currency,
|
|
372
|
+
currencyDisplay: this.currencyDisplay,
|
|
373
|
+
minimumFractionDigits: 0,
|
|
374
|
+
maximumFractionDigits: 0
|
|
375
|
+
});
|
|
376
|
+
this.suffixChar = formatter.format(1).split('1')[1];
|
|
377
|
+
}
|
|
378
|
+
return new RegExp("".concat(this.escapeRegExp(this.suffixChar || '')), 'g');
|
|
379
|
+
},
|
|
380
|
+
formatValue: function formatValue(value) {
|
|
381
|
+
if (value != null) {
|
|
382
|
+
if (value === '-') {
|
|
383
|
+
// Minus sign
|
|
384
|
+
return value;
|
|
385
|
+
}
|
|
386
|
+
if (this.format) {
|
|
387
|
+
var formatter = new Intl.NumberFormat(this.locale, this.getOptions());
|
|
388
|
+
var formattedValue = formatter.format(value);
|
|
389
|
+
if (this.prefix) {
|
|
390
|
+
formattedValue = this.prefix + formattedValue;
|
|
391
|
+
}
|
|
392
|
+
if (this.suffix) {
|
|
393
|
+
formattedValue = formattedValue + this.suffix;
|
|
394
|
+
}
|
|
395
|
+
return formattedValue;
|
|
396
|
+
}
|
|
397
|
+
return value.toString();
|
|
398
|
+
}
|
|
399
|
+
return '';
|
|
400
|
+
},
|
|
401
|
+
parseValue: function parseValue(text) {
|
|
402
|
+
var filteredText = text.replace(this._suffix, '').replace(this._prefix, '').trim().replace(/\s/g, '').replace(this._currency, '').replace(this._group, '').replace(this._minusSign, '-').replace(this._decimal, '.').replace(this._numeral, this._index);
|
|
403
|
+
if (filteredText) {
|
|
404
|
+
if (filteredText === '-')
|
|
405
|
+
// Minus sign
|
|
406
|
+
return filteredText;
|
|
407
|
+
var parsedValue = +filteredText;
|
|
408
|
+
return isNaN(parsedValue) ? null : parsedValue;
|
|
409
|
+
}
|
|
410
|
+
return null;
|
|
411
|
+
},
|
|
412
|
+
repeat: function repeat(event, interval, dir) {
|
|
413
|
+
var _this = this;
|
|
414
|
+
if (this.readonly) {
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
var i = interval || 500;
|
|
418
|
+
this.clearTimer();
|
|
419
|
+
this.timer = setTimeout(function () {
|
|
420
|
+
_this.repeat(event, 40, dir);
|
|
421
|
+
}, i);
|
|
422
|
+
this.spin(event, dir);
|
|
423
|
+
},
|
|
424
|
+
spin: function spin(event, dir) {
|
|
425
|
+
if (this.$refs.input) {
|
|
426
|
+
var step = this.step * dir;
|
|
427
|
+
var currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
|
|
428
|
+
var newValue = this.validateValue(currentValue + step);
|
|
429
|
+
this.updateInput(newValue, null, 'spin');
|
|
430
|
+
this.updateModel(event, newValue);
|
|
431
|
+
this.handleOnInput(event, currentValue, newValue);
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
onUpButtonMouseDown: function onUpButtonMouseDown(event) {
|
|
435
|
+
if (!this.disabled) {
|
|
436
|
+
this.$refs.input.$el.focus();
|
|
437
|
+
this.repeat(event, null, 1);
|
|
438
|
+
event.preventDefault();
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
onUpButtonMouseUp: function onUpButtonMouseUp() {
|
|
442
|
+
if (!this.disabled) {
|
|
443
|
+
this.clearTimer();
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
onUpButtonMouseLeave: function onUpButtonMouseLeave() {
|
|
447
|
+
if (!this.disabled) {
|
|
448
|
+
this.clearTimer();
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
onUpButtonKeyUp: function onUpButtonKeyUp() {
|
|
452
|
+
if (!this.disabled) {
|
|
453
|
+
this.clearTimer();
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
onUpButtonKeyDown: function onUpButtonKeyDown(event) {
|
|
457
|
+
if (event.keyCode === 32 || event.keyCode === 13) {
|
|
458
|
+
this.repeat(event, null, 1);
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
onDownButtonMouseDown: function onDownButtonMouseDown(event) {
|
|
462
|
+
if (!this.disabled) {
|
|
463
|
+
this.$refs.input.$el.focus();
|
|
464
|
+
this.repeat(event, null, -1);
|
|
465
|
+
event.preventDefault();
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
onDownButtonMouseUp: function onDownButtonMouseUp() {
|
|
469
|
+
if (!this.disabled) {
|
|
470
|
+
this.clearTimer();
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
onDownButtonMouseLeave: function onDownButtonMouseLeave() {
|
|
474
|
+
if (!this.disabled) {
|
|
475
|
+
this.clearTimer();
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
onDownButtonKeyUp: function onDownButtonKeyUp() {
|
|
479
|
+
if (!this.disabled) {
|
|
480
|
+
this.clearTimer();
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
onDownButtonKeyDown: function onDownButtonKeyDown(event) {
|
|
484
|
+
if (event.keyCode === 32 || event.keyCode === 13) {
|
|
485
|
+
this.repeat(event, null, -1);
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
onUserInput: function onUserInput() {
|
|
489
|
+
if (this.isSpecialChar) {
|
|
490
|
+
this.$refs.input.$el.value = this.lastValue;
|
|
491
|
+
}
|
|
492
|
+
this.isSpecialChar = false;
|
|
493
|
+
},
|
|
494
|
+
onInputKeyDown: function onInputKeyDown(event) {
|
|
495
|
+
if (this.readonly) {
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
this.lastValue = event.target.value;
|
|
499
|
+
if (event.shiftKey || event.altKey) {
|
|
500
|
+
this.isSpecialChar = true;
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
var selectionStart = event.target.selectionStart;
|
|
504
|
+
var selectionEnd = event.target.selectionEnd;
|
|
505
|
+
var inputValue = event.target.value;
|
|
506
|
+
var newValueStr = null;
|
|
507
|
+
if (event.altKey) {
|
|
508
|
+
event.preventDefault();
|
|
509
|
+
}
|
|
510
|
+
switch (event.code) {
|
|
511
|
+
case 'ArrowUp':
|
|
512
|
+
this.spin(event, 1);
|
|
513
|
+
event.preventDefault();
|
|
514
|
+
break;
|
|
515
|
+
case 'ArrowDown':
|
|
516
|
+
this.spin(event, -1);
|
|
517
|
+
event.preventDefault();
|
|
518
|
+
break;
|
|
519
|
+
case 'ArrowLeft':
|
|
520
|
+
if (!this.isNumeralChar(inputValue.charAt(selectionStart - 1))) {
|
|
599
521
|
event.preventDefault();
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
if ((48 <= code && code <= 57) || isMinusSign || isDecimalSign) {
|
|
606
|
-
this.insert(event, char, { isDecimalSign, isMinusSign });
|
|
607
|
-
}
|
|
608
|
-
},
|
|
609
|
-
onPaste(event) {
|
|
522
|
+
}
|
|
523
|
+
break;
|
|
524
|
+
case 'ArrowRight':
|
|
525
|
+
if (!this.isNumeralChar(inputValue.charAt(selectionStart))) {
|
|
610
526
|
event.preventDefault();
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
let decimalCharIndex = val.search(this._decimal);
|
|
647
|
-
|
|
648
|
-
this._decimal.lastIndex = 0;
|
|
649
|
-
|
|
650
|
-
const filteredVal = val.replace(this._prefix, '').trim().replace(/\s/g, '').replace(this._currency, '');
|
|
651
|
-
const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
|
|
652
|
-
|
|
653
|
-
this._decimal.lastIndex = 0;
|
|
654
|
-
|
|
655
|
-
return { decimalCharIndex, decimalCharIndexWithoutPrefix };
|
|
656
|
-
},
|
|
657
|
-
getCharIndexes(val) {
|
|
658
|
-
const decimalCharIndex = val.search(this._decimal);
|
|
659
|
-
|
|
660
|
-
this._decimal.lastIndex = 0;
|
|
661
|
-
const minusCharIndex = val.search(this._minusSign);
|
|
662
|
-
|
|
663
|
-
this._minusSign.lastIndex = 0;
|
|
664
|
-
const suffixCharIndex = val.search(this._suffix);
|
|
665
|
-
|
|
666
|
-
this._suffix.lastIndex = 0;
|
|
667
|
-
const currencyCharIndex = val.search(this._currency);
|
|
668
|
-
|
|
669
|
-
this._currency.lastIndex = 0;
|
|
670
|
-
|
|
671
|
-
return { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex };
|
|
672
|
-
},
|
|
673
|
-
insert(event, text, sign = { isDecimalSign: false, isMinusSign: false }) {
|
|
674
|
-
const minusCharIndexOnText = text.search(this._minusSign);
|
|
675
|
-
|
|
676
|
-
this._minusSign.lastIndex = 0;
|
|
677
|
-
|
|
678
|
-
if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
|
|
679
|
-
return;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
const selectionStart = this.$refs.input.$el.selectionStart;
|
|
683
|
-
const selectionEnd = this.$refs.input.$el.selectionEnd;
|
|
684
|
-
let inputValue = this.$refs.input.$el.value.trim();
|
|
685
|
-
const { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex } = this.getCharIndexes(inputValue);
|
|
686
|
-
let newValueStr;
|
|
687
|
-
|
|
688
|
-
if (sign.isMinusSign) {
|
|
689
|
-
if (selectionStart === 0) {
|
|
690
|
-
newValueStr = inputValue;
|
|
691
|
-
|
|
692
|
-
if (minusCharIndex === -1 || selectionEnd !== 0) {
|
|
693
|
-
newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
this.updateValue(event, newValueStr, text, 'insert');
|
|
697
|
-
}
|
|
698
|
-
} else if (sign.isDecimalSign) {
|
|
699
|
-
if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
|
|
700
|
-
this.updateValue(event, inputValue, text, 'insert');
|
|
701
|
-
} else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
|
|
702
|
-
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
703
|
-
this.updateValue(event, newValueStr, text, 'insert');
|
|
704
|
-
} else if (decimalCharIndex === -1 && this.maxFractionDigits) {
|
|
705
|
-
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
706
|
-
this.updateValue(event, newValueStr, text, 'insert');
|
|
707
|
-
}
|
|
708
|
-
} else {
|
|
709
|
-
const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
|
|
710
|
-
const operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
|
|
711
|
-
|
|
712
|
-
if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
713
|
-
if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {
|
|
714
|
-
const charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
|
|
715
|
-
|
|
716
|
-
newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
|
|
717
|
-
this.updateValue(event, newValueStr, text, operation);
|
|
718
|
-
}
|
|
527
|
+
}
|
|
528
|
+
break;
|
|
529
|
+
case 'Tab':
|
|
530
|
+
case 'Enter':
|
|
531
|
+
newValueStr = this.validateValue(this.parseValue(inputValue));
|
|
532
|
+
this.$refs.input.$el.value = this.formatValue(newValueStr);
|
|
533
|
+
this.$refs.input.$el.setAttribute('aria-valuenow', newValueStr);
|
|
534
|
+
this.updateModel(event, newValueStr);
|
|
535
|
+
break;
|
|
536
|
+
case 'Backspace':
|
|
537
|
+
{
|
|
538
|
+
event.preventDefault();
|
|
539
|
+
if (selectionStart === selectionEnd) {
|
|
540
|
+
var deleteChar = inputValue.charAt(selectionStart - 1);
|
|
541
|
+
var _this$getDecimalCharI = this.getDecimalCharIndexes(inputValue),
|
|
542
|
+
decimalCharIndex = _this$getDecimalCharI.decimalCharIndex,
|
|
543
|
+
decimalCharIndexWithoutPrefix = _this$getDecimalCharI.decimalCharIndexWithoutPrefix;
|
|
544
|
+
if (this.isNumeralChar(deleteChar)) {
|
|
545
|
+
var decimalLength = this.getDecimalLength(inputValue);
|
|
546
|
+
if (this._group.test(deleteChar)) {
|
|
547
|
+
this._group.lastIndex = 0;
|
|
548
|
+
newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
|
|
549
|
+
} else if (this._decimal.test(deleteChar)) {
|
|
550
|
+
this._decimal.lastIndex = 0;
|
|
551
|
+
if (decimalLength) {
|
|
552
|
+
this.$refs.input.$el.setSelectionRange(selectionStart - 1, selectionStart - 1);
|
|
553
|
+
} else {
|
|
554
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
555
|
+
}
|
|
556
|
+
} else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
557
|
+
var insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
|
|
558
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
|
|
559
|
+
} else if (decimalCharIndexWithoutPrefix === 1) {
|
|
560
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);
|
|
561
|
+
newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
|
|
719
562
|
} else {
|
|
720
|
-
|
|
721
|
-
this.updateValue(event, newValueStr, text, operation);
|
|
563
|
+
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
722
564
|
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
insertText(value, text, start, end) {
|
|
726
|
-
let textSplit = text === '.' ? text : text.split('.');
|
|
727
|
-
|
|
728
|
-
if (textSplit.length === 2) {
|
|
729
|
-
const decimalCharIndex = value.slice(start, end).search(this._decimal);
|
|
730
|
-
|
|
731
|
-
this._decimal.lastIndex = 0;
|
|
732
|
-
|
|
733
|
-
return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);
|
|
734
|
-
} else if (end - start === value.length) {
|
|
735
|
-
return this.formatValue(text);
|
|
736
|
-
} else if (start === 0) {
|
|
737
|
-
return text + value.slice(end);
|
|
738
|
-
} else if (end === value.length) {
|
|
739
|
-
return value.slice(0, start) + text;
|
|
565
|
+
}
|
|
566
|
+
this.updateValue(event, newValueStr, null, 'delete-single');
|
|
740
567
|
} else {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
},
|
|
744
|
-
deleteRange(value, start, end) {
|
|
745
|
-
let newValueStr;
|
|
746
|
-
|
|
747
|
-
if (end - start === value.length) newValueStr = '';
|
|
748
|
-
else if (start === 0) newValueStr = value.slice(end);
|
|
749
|
-
else if (end === value.length) newValueStr = value.slice(0, start);
|
|
750
|
-
else newValueStr = value.slice(0, start) + value.slice(end);
|
|
751
|
-
|
|
752
|
-
return newValueStr;
|
|
753
|
-
},
|
|
754
|
-
initCursor() {
|
|
755
|
-
let selectionStart = this.$refs.input.$el.selectionStart;
|
|
756
|
-
let inputValue = this.$refs.input.$el.value;
|
|
757
|
-
let valueLength = inputValue.length;
|
|
758
|
-
let index = null;
|
|
759
|
-
|
|
760
|
-
// remove prefix
|
|
761
|
-
let prefixLength = (this.prefixChar || '').length;
|
|
762
|
-
|
|
763
|
-
inputValue = inputValue.replace(this._prefix, '');
|
|
764
|
-
selectionStart = selectionStart - prefixLength;
|
|
765
|
-
|
|
766
|
-
let char = inputValue.charAt(selectionStart);
|
|
767
|
-
|
|
768
|
-
if (this.isNumeralChar(char)) {
|
|
769
|
-
return selectionStart + prefixLength;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
//left
|
|
773
|
-
let i = selectionStart - 1;
|
|
774
|
-
|
|
775
|
-
while (i >= 0) {
|
|
776
|
-
char = inputValue.charAt(i);
|
|
777
|
-
|
|
778
|
-
if (this.isNumeralChar(char)) {
|
|
779
|
-
index = i + prefixLength;
|
|
780
|
-
break;
|
|
781
|
-
} else {
|
|
782
|
-
i--;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
if (index !== null) {
|
|
787
|
-
this.$refs.input.$el.setSelectionRange(index + 1, index + 1);
|
|
788
|
-
} else {
|
|
789
|
-
i = selectionStart;
|
|
790
|
-
|
|
791
|
-
while (i < valueLength) {
|
|
792
|
-
char = inputValue.charAt(i);
|
|
793
|
-
|
|
794
|
-
if (this.isNumeralChar(char)) {
|
|
795
|
-
index = i + prefixLength;
|
|
796
|
-
break;
|
|
797
|
-
} else {
|
|
798
|
-
i++;
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
if (index !== null) {
|
|
803
|
-
this.$refs.input.$el.setSelectionRange(index, index);
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
return index || 0;
|
|
808
|
-
},
|
|
809
|
-
onInputClick() {
|
|
810
|
-
const currentValue = this.$refs.input.$el.value;
|
|
811
|
-
|
|
812
|
-
if (!this.readonly && currentValue !== utils.DomHandler.getSelection()) {
|
|
813
|
-
this.initCursor();
|
|
814
|
-
}
|
|
815
|
-
},
|
|
816
|
-
isNumeralChar(char) {
|
|
817
|
-
if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {
|
|
818
|
-
this.resetRegex();
|
|
819
|
-
|
|
820
|
-
return true;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
return false;
|
|
824
|
-
},
|
|
825
|
-
resetRegex() {
|
|
826
|
-
this._numeral.lastIndex = 0;
|
|
827
|
-
this._decimal.lastIndex = 0;
|
|
828
|
-
this._group.lastIndex = 0;
|
|
829
|
-
this._minusSign.lastIndex = 0;
|
|
830
|
-
},
|
|
831
|
-
updateValue(event, valueStr, insertedValueStr, operation) {
|
|
832
|
-
let currentValue = this.$refs.input.$el.value;
|
|
833
|
-
let newValue = null;
|
|
834
|
-
|
|
835
|
-
if (valueStr != null) {
|
|
836
|
-
newValue = this.parseValue(valueStr);
|
|
837
|
-
newValue = !newValue && !this.allowEmpty ? 0 : newValue;
|
|
838
|
-
this.updateInput(newValue, insertedValueStr, operation, valueStr);
|
|
839
|
-
|
|
840
|
-
this.handleOnInput(event, currentValue, newValue);
|
|
841
|
-
}
|
|
842
|
-
},
|
|
843
|
-
handleOnInput(event, currentValue, newValue) {
|
|
844
|
-
if (this.isValueChanged(currentValue, newValue)) {
|
|
845
|
-
this.$emit('input', { originalEvent: event, value: newValue, formattedValue: currentValue });
|
|
846
|
-
}
|
|
847
|
-
},
|
|
848
|
-
isValueChanged(currentValue, newValue) {
|
|
849
|
-
if (newValue === null && currentValue !== null) {
|
|
850
|
-
return true;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
if (newValue != null) {
|
|
854
|
-
let parsedCurrentValue = typeof currentValue === 'string' ? this.parseValue(currentValue) : currentValue;
|
|
855
|
-
|
|
856
|
-
return newValue !== parsedCurrentValue;
|
|
568
|
+
newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
|
|
569
|
+
this.updateValue(event, newValueStr, null, 'delete-range');
|
|
857
570
|
}
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
return value;
|
|
875
|
-
},
|
|
876
|
-
updateInput(value, insertedValueStr, operation, valueStr) {
|
|
877
|
-
insertedValueStr = insertedValueStr || '';
|
|
878
|
-
|
|
879
|
-
let inputValue = this.$refs.input.$el.value;
|
|
880
|
-
let newValue = this.formatValue(value);
|
|
881
|
-
let currentLength = inputValue.length;
|
|
882
|
-
|
|
883
|
-
if (newValue !== valueStr) {
|
|
884
|
-
newValue = this.concatValues(newValue, valueStr);
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
if (currentLength === 0) {
|
|
888
|
-
this.$refs.input.$el.value = newValue;
|
|
889
|
-
this.$refs.input.$el.setSelectionRange(0, 0);
|
|
890
|
-
const index = this.initCursor();
|
|
891
|
-
const selectionEnd = index + insertedValueStr.length;
|
|
892
|
-
|
|
893
|
-
this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
|
|
894
|
-
} else {
|
|
895
|
-
let selectionStart = this.$refs.input.$el.selectionStart;
|
|
896
|
-
let selectionEnd = this.$refs.input.$el.selectionEnd;
|
|
897
|
-
|
|
898
|
-
this.$refs.input.$el.value = newValue;
|
|
899
|
-
let newLength = newValue.length;
|
|
900
|
-
|
|
901
|
-
if (operation === 'range-insert') {
|
|
902
|
-
const startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
|
|
903
|
-
const startValueStr = startValue !== null ? startValue.toString() : '';
|
|
904
|
-
const startExpr = startValueStr.split('').join(`(${this.groupChar})?`);
|
|
905
|
-
const sRegex = new RegExp(startExpr, 'g');
|
|
906
|
-
|
|
907
|
-
sRegex.test(newValue);
|
|
908
|
-
|
|
909
|
-
const tExpr = insertedValueStr.split('').join(`(${this.groupChar})?`);
|
|
910
|
-
const tRegex = new RegExp(tExpr, 'g');
|
|
911
|
-
|
|
912
|
-
tRegex.test(newValue.slice(sRegex.lastIndex));
|
|
913
|
-
|
|
914
|
-
selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
|
|
915
|
-
this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
|
|
916
|
-
} else if (newLength === currentLength) {
|
|
917
|
-
if (operation === 'insert' || operation === 'delete-back-single') this.$refs.input.$el.setSelectionRange(selectionEnd + 1, selectionEnd + 1);
|
|
918
|
-
else if (operation === 'delete-single') this.$refs.input.$el.setSelectionRange(selectionEnd - 1, selectionEnd - 1);
|
|
919
|
-
else if (operation === 'delete-range' || operation === 'spin') this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
|
|
920
|
-
} else if (operation === 'delete-back-single') {
|
|
921
|
-
let prevChar = inputValue.charAt(selectionEnd - 1);
|
|
922
|
-
let nextChar = inputValue.charAt(selectionEnd);
|
|
923
|
-
let diff = currentLength - newLength;
|
|
924
|
-
let isGroupChar = this._group.test(nextChar);
|
|
925
|
-
|
|
926
|
-
if (isGroupChar && diff === 1) {
|
|
927
|
-
selectionEnd += 1;
|
|
928
|
-
} else if (!isGroupChar && this.isNumeralChar(prevChar)) {
|
|
929
|
-
selectionEnd += -1 * diff + 1;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
this._group.lastIndex = 0;
|
|
933
|
-
this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
|
|
934
|
-
} else if (inputValue === '-' && operation === 'insert') {
|
|
935
|
-
this.$refs.input.$el.setSelectionRange(0, 0);
|
|
936
|
-
const index = this.initCursor();
|
|
937
|
-
const selectionEnd = index + insertedValueStr.length + 1;
|
|
938
|
-
|
|
939
|
-
this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
|
|
940
|
-
} else {
|
|
941
|
-
selectionEnd = selectionEnd + (newLength - currentLength);
|
|
942
|
-
this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
this.$refs.input.$el.setAttribute('aria-valuenow', value);
|
|
947
|
-
},
|
|
948
|
-
concatValues(val1, val2) {
|
|
949
|
-
if (val1 && val2) {
|
|
950
|
-
let decimalCharIndex = val2.search(this._decimal);
|
|
951
|
-
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
case 'Delete':
|
|
574
|
+
event.preventDefault();
|
|
575
|
+
if (selectionStart === selectionEnd) {
|
|
576
|
+
var _deleteChar = inputValue.charAt(selectionStart);
|
|
577
|
+
var _this$getDecimalCharI2 = this.getDecimalCharIndexes(inputValue),
|
|
578
|
+
_decimalCharIndex = _this$getDecimalCharI2.decimalCharIndex,
|
|
579
|
+
_decimalCharIndexWithoutPrefix = _this$getDecimalCharI2.decimalCharIndexWithoutPrefix;
|
|
580
|
+
if (this.isNumeralChar(_deleteChar)) {
|
|
581
|
+
var _decimalLength = this.getDecimalLength(inputValue);
|
|
582
|
+
if (this._group.test(_deleteChar)) {
|
|
583
|
+
this._group.lastIndex = 0;
|
|
584
|
+
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
|
|
585
|
+
} else if (this._decimal.test(_deleteChar)) {
|
|
952
586
|
this._decimal.lastIndex = 0;
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
return val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar;
|
|
587
|
+
if (_decimalLength) {
|
|
588
|
+
this.$refs.input.$el.setSelectionRange(selectionStart + 1, selectionStart + 1);
|
|
956
589
|
} else {
|
|
957
|
-
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
return val1;
|
|
962
|
-
},
|
|
963
|
-
getDecimalLength(value) {
|
|
964
|
-
if (value) {
|
|
965
|
-
const valueSplit = value.split(this._decimal);
|
|
966
|
-
|
|
967
|
-
if (valueSplit.length === 2) {
|
|
968
|
-
return valueSplit[1].replace(this._suffix, '').trim().replace(/\s/g, '').replace(this._currency, '').length;
|
|
590
|
+
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
969
591
|
}
|
|
592
|
+
} else if (_decimalCharIndex > 0 && selectionStart > _decimalCharIndex) {
|
|
593
|
+
var _insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < _decimalLength ? '' : '0';
|
|
594
|
+
newValueStr = inputValue.slice(0, selectionStart) + _insertedText + inputValue.slice(selectionStart + 1);
|
|
595
|
+
} else if (_decimalCharIndexWithoutPrefix === 1) {
|
|
596
|
+
newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
|
|
597
|
+
newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
|
|
598
|
+
} else {
|
|
599
|
+
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
600
|
+
}
|
|
970
601
|
}
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
this.
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
this
|
|
602
|
+
this.updateValue(event, newValueStr, null, 'delete-back-single');
|
|
603
|
+
} else {
|
|
604
|
+
newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
|
|
605
|
+
this.updateValue(event, newValueStr, null, 'delete-range');
|
|
606
|
+
}
|
|
607
|
+
break;
|
|
608
|
+
case 'Home':
|
|
609
|
+
if (this.min) {
|
|
610
|
+
this.updateModel(event, this.min);
|
|
611
|
+
event.preventDefault();
|
|
612
|
+
}
|
|
613
|
+
break;
|
|
614
|
+
case 'End':
|
|
615
|
+
if (this.max) {
|
|
616
|
+
this.updateModel(event, this.max);
|
|
617
|
+
event.preventDefault();
|
|
618
|
+
}
|
|
619
|
+
break;
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
onInputKeyPress: function onInputKeyPress(event) {
|
|
623
|
+
if (this.readonly) {
|
|
624
|
+
return;
|
|
625
|
+
}
|
|
626
|
+
event.preventDefault();
|
|
627
|
+
var code = event.which || event.keyCode;
|
|
628
|
+
var _char = String.fromCharCode(code);
|
|
629
|
+
var isDecimalSign = this.isDecimalSign(_char);
|
|
630
|
+
var isMinusSign = this.isMinusSign(_char);
|
|
631
|
+
if (48 <= code && code <= 57 || isMinusSign || isDecimalSign) {
|
|
632
|
+
this.insert(event, _char, {
|
|
633
|
+
isDecimalSign: isDecimalSign,
|
|
634
|
+
isMinusSign: isMinusSign
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
onPaste: function onPaste(event) {
|
|
639
|
+
event.preventDefault();
|
|
640
|
+
var data = (event.clipboardData || window['clipboardData']).getData('Text');
|
|
641
|
+
if (data) {
|
|
642
|
+
var filteredData = this.parseValue(data);
|
|
643
|
+
if (filteredData != null) {
|
|
644
|
+
this.insert(event, filteredData.toString());
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
allowMinusSign: function allowMinusSign() {
|
|
649
|
+
return this.min === null || this.min < 0;
|
|
650
|
+
},
|
|
651
|
+
isMinusSign: function isMinusSign(_char2) {
|
|
652
|
+
if (this._minusSign.test(_char2) || _char2 === '-') {
|
|
653
|
+
this._minusSign.lastIndex = 0;
|
|
654
|
+
return true;
|
|
655
|
+
}
|
|
656
|
+
return false;
|
|
657
|
+
},
|
|
658
|
+
isDecimalSign: function isDecimalSign(_char3) {
|
|
659
|
+
if (this._decimal.test(_char3)) {
|
|
660
|
+
this._decimal.lastIndex = 0;
|
|
661
|
+
return true;
|
|
662
|
+
}
|
|
663
|
+
return false;
|
|
664
|
+
},
|
|
665
|
+
isDecimalMode: function isDecimalMode() {
|
|
666
|
+
return this.mode === 'decimal';
|
|
667
|
+
},
|
|
668
|
+
getDecimalCharIndexes: function getDecimalCharIndexes(val) {
|
|
669
|
+
var decimalCharIndex = val.search(this._decimal);
|
|
670
|
+
this._decimal.lastIndex = 0;
|
|
671
|
+
var filteredVal = val.replace(this._prefix, '').trim().replace(/\s/g, '').replace(this._currency, '');
|
|
672
|
+
var decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
|
|
673
|
+
this._decimal.lastIndex = 0;
|
|
674
|
+
return {
|
|
675
|
+
decimalCharIndex: decimalCharIndex,
|
|
676
|
+
decimalCharIndexWithoutPrefix: decimalCharIndexWithoutPrefix
|
|
677
|
+
};
|
|
678
|
+
},
|
|
679
|
+
getCharIndexes: function getCharIndexes(val) {
|
|
680
|
+
var decimalCharIndex = val.search(this._decimal);
|
|
681
|
+
this._decimal.lastIndex = 0;
|
|
682
|
+
var minusCharIndex = val.search(this._minusSign);
|
|
683
|
+
this._minusSign.lastIndex = 0;
|
|
684
|
+
var suffixCharIndex = val.search(this._suffix);
|
|
685
|
+
this._suffix.lastIndex = 0;
|
|
686
|
+
var currencyCharIndex = val.search(this._currency);
|
|
687
|
+
this._currency.lastIndex = 0;
|
|
688
|
+
return {
|
|
689
|
+
decimalCharIndex: decimalCharIndex,
|
|
690
|
+
minusCharIndex: minusCharIndex,
|
|
691
|
+
suffixCharIndex: suffixCharIndex,
|
|
692
|
+
currencyCharIndex: currencyCharIndex
|
|
693
|
+
};
|
|
694
|
+
},
|
|
695
|
+
insert: function insert(event, text) {
|
|
696
|
+
var sign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
697
|
+
isDecimalSign: false,
|
|
698
|
+
isMinusSign: false
|
|
699
|
+
};
|
|
700
|
+
var minusCharIndexOnText = text.search(this._minusSign);
|
|
701
|
+
this._minusSign.lastIndex = 0;
|
|
702
|
+
if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
var selectionStart = this.$refs.input.$el.selectionStart;
|
|
706
|
+
var selectionEnd = this.$refs.input.$el.selectionEnd;
|
|
707
|
+
var inputValue = this.$refs.input.$el.value.trim();
|
|
708
|
+
var _this$getCharIndexes = this.getCharIndexes(inputValue),
|
|
709
|
+
decimalCharIndex = _this$getCharIndexes.decimalCharIndex,
|
|
710
|
+
minusCharIndex = _this$getCharIndexes.minusCharIndex,
|
|
711
|
+
suffixCharIndex = _this$getCharIndexes.suffixCharIndex,
|
|
712
|
+
currencyCharIndex = _this$getCharIndexes.currencyCharIndex;
|
|
713
|
+
var newValueStr;
|
|
714
|
+
if (sign.isMinusSign) {
|
|
715
|
+
if (selectionStart === 0) {
|
|
716
|
+
newValueStr = inputValue;
|
|
717
|
+
if (minusCharIndex === -1 || selectionEnd !== 0) {
|
|
718
|
+
newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
|
|
719
|
+
}
|
|
720
|
+
this.updateValue(event, newValueStr, text, 'insert');
|
|
721
|
+
}
|
|
722
|
+
} else if (sign.isDecimalSign) {
|
|
723
|
+
if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
|
|
724
|
+
this.updateValue(event, inputValue, text, 'insert');
|
|
725
|
+
} else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
|
|
726
|
+
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
727
|
+
this.updateValue(event, newValueStr, text, 'insert');
|
|
728
|
+
} else if (decimalCharIndex === -1 && this.maxFractionDigits) {
|
|
729
|
+
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
730
|
+
this.updateValue(event, newValueStr, text, 'insert');
|
|
731
|
+
}
|
|
732
|
+
} else {
|
|
733
|
+
var maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
|
|
734
|
+
var operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
|
|
735
|
+
if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
736
|
+
if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {
|
|
737
|
+
var charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
|
|
738
|
+
newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
|
|
739
|
+
this.updateValue(event, newValueStr, text, operation);
|
|
740
|
+
}
|
|
741
|
+
} else {
|
|
742
|
+
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
743
|
+
this.updateValue(event, newValueStr, text, operation);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
insertText: function insertText(value, text, start, end) {
|
|
748
|
+
var textSplit = text === '.' ? text : text.split('.');
|
|
749
|
+
if (textSplit.length === 2) {
|
|
750
|
+
var decimalCharIndex = value.slice(start, end).search(this._decimal);
|
|
751
|
+
this._decimal.lastIndex = 0;
|
|
752
|
+
return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);
|
|
753
|
+
} else if (end - start === value.length) {
|
|
754
|
+
return this.formatValue(text);
|
|
755
|
+
} else if (start === 0) {
|
|
756
|
+
return text + value.slice(end);
|
|
757
|
+
} else if (end === value.length) {
|
|
758
|
+
return value.slice(0, start) + text;
|
|
759
|
+
} else {
|
|
760
|
+
return value.slice(0, start) + text + value.slice(end);
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
deleteRange: function deleteRange(value, start, end) {
|
|
764
|
+
var newValueStr;
|
|
765
|
+
if (end - start === value.length) newValueStr = '';else if (start === 0) newValueStr = value.slice(end);else if (end === value.length) newValueStr = value.slice(0, start);else newValueStr = value.slice(0, start) + value.slice(end);
|
|
766
|
+
return newValueStr;
|
|
767
|
+
},
|
|
768
|
+
initCursor: function initCursor() {
|
|
769
|
+
var selectionStart = this.$refs.input.$el.selectionStart;
|
|
770
|
+
var inputValue = this.$refs.input.$el.value;
|
|
771
|
+
var valueLength = inputValue.length;
|
|
772
|
+
var index = null;
|
|
773
|
+
|
|
774
|
+
// remove prefix
|
|
775
|
+
var prefixLength = (this.prefixChar || '').length;
|
|
776
|
+
inputValue = inputValue.replace(this._prefix, '');
|
|
777
|
+
selectionStart = selectionStart - prefixLength;
|
|
778
|
+
var _char4 = inputValue.charAt(selectionStart);
|
|
779
|
+
if (this.isNumeralChar(_char4)) {
|
|
780
|
+
return selectionStart + prefixLength;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
//left
|
|
784
|
+
var i = selectionStart - 1;
|
|
785
|
+
while (i >= 0) {
|
|
786
|
+
_char4 = inputValue.charAt(i);
|
|
787
|
+
if (this.isNumeralChar(_char4)) {
|
|
788
|
+
index = i + prefixLength;
|
|
789
|
+
break;
|
|
790
|
+
} else {
|
|
791
|
+
i--;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
if (index !== null) {
|
|
795
|
+
this.$refs.input.$el.setSelectionRange(index + 1, index + 1);
|
|
796
|
+
} else {
|
|
797
|
+
i = selectionStart;
|
|
798
|
+
while (i < valueLength) {
|
|
799
|
+
_char4 = inputValue.charAt(i);
|
|
800
|
+
if (this.isNumeralChar(_char4)) {
|
|
801
|
+
index = i + prefixLength;
|
|
802
|
+
break;
|
|
803
|
+
} else {
|
|
804
|
+
i++;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
if (index !== null) {
|
|
808
|
+
this.$refs.input.$el.setSelectionRange(index, index);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
return index || 0;
|
|
812
|
+
},
|
|
813
|
+
onInputClick: function onInputClick() {
|
|
814
|
+
var currentValue = this.$refs.input.$el.value;
|
|
815
|
+
if (!this.readonly && currentValue !== utils.DomHandler.getSelection()) {
|
|
816
|
+
this.initCursor();
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
isNumeralChar: function isNumeralChar(_char5) {
|
|
820
|
+
if (_char5.length === 1 && (this._numeral.test(_char5) || this._decimal.test(_char5) || this._group.test(_char5) || this._minusSign.test(_char5))) {
|
|
821
|
+
this.resetRegex();
|
|
822
|
+
return true;
|
|
823
|
+
}
|
|
824
|
+
return false;
|
|
825
|
+
},
|
|
826
|
+
resetRegex: function resetRegex() {
|
|
827
|
+
this._numeral.lastIndex = 0;
|
|
828
|
+
this._decimal.lastIndex = 0;
|
|
829
|
+
this._group.lastIndex = 0;
|
|
830
|
+
this._minusSign.lastIndex = 0;
|
|
831
|
+
},
|
|
832
|
+
updateValue: function updateValue(event, valueStr, insertedValueStr, operation) {
|
|
833
|
+
var currentValue = this.$refs.input.$el.value;
|
|
834
|
+
var newValue = null;
|
|
835
|
+
if (valueStr != null) {
|
|
836
|
+
newValue = this.parseValue(valueStr);
|
|
837
|
+
newValue = !newValue && !this.allowEmpty ? 0 : newValue;
|
|
838
|
+
this.updateInput(newValue, insertedValueStr, operation, valueStr);
|
|
839
|
+
this.handleOnInput(event, currentValue, newValue);
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
handleOnInput: function handleOnInput(event, currentValue, newValue) {
|
|
843
|
+
if (this.isValueChanged(currentValue, newValue)) {
|
|
844
|
+
this.$emit('input', {
|
|
845
|
+
originalEvent: event,
|
|
846
|
+
value: newValue,
|
|
847
|
+
formattedValue: currentValue
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
isValueChanged: function isValueChanged(currentValue, newValue) {
|
|
852
|
+
if (newValue === null && currentValue !== null) {
|
|
853
|
+
return true;
|
|
854
|
+
}
|
|
855
|
+
if (newValue != null) {
|
|
856
|
+
var parsedCurrentValue = typeof currentValue === 'string' ? this.parseValue(currentValue) : currentValue;
|
|
857
|
+
return newValue !== parsedCurrentValue;
|
|
858
|
+
}
|
|
859
|
+
return false;
|
|
860
|
+
},
|
|
861
|
+
validateValue: function validateValue(value) {
|
|
862
|
+
if (value === '-' || value == null) {
|
|
863
|
+
return null;
|
|
864
|
+
}
|
|
865
|
+
if (this.min != null && value < this.min) {
|
|
866
|
+
return this.min;
|
|
867
|
+
}
|
|
868
|
+
if (this.max != null && value > this.max) {
|
|
869
|
+
return this.max;
|
|
870
|
+
}
|
|
871
|
+
return value;
|
|
872
|
+
},
|
|
873
|
+
updateInput: function updateInput(value, insertedValueStr, operation, valueStr) {
|
|
874
|
+
insertedValueStr = insertedValueStr || '';
|
|
875
|
+
var inputValue = this.$refs.input.$el.value;
|
|
876
|
+
var newValue = this.formatValue(value);
|
|
877
|
+
var currentLength = inputValue.length;
|
|
878
|
+
if (newValue !== valueStr) {
|
|
879
|
+
newValue = this.concatValues(newValue, valueStr);
|
|
880
|
+
}
|
|
881
|
+
if (currentLength === 0) {
|
|
882
|
+
this.$refs.input.$el.value = newValue;
|
|
883
|
+
this.$refs.input.$el.setSelectionRange(0, 0);
|
|
884
|
+
var index = this.initCursor();
|
|
885
|
+
var selectionEnd = index + insertedValueStr.length;
|
|
886
|
+
this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
|
|
887
|
+
} else {
|
|
888
|
+
var selectionStart = this.$refs.input.$el.selectionStart;
|
|
889
|
+
var _selectionEnd = this.$refs.input.$el.selectionEnd;
|
|
890
|
+
this.$refs.input.$el.value = newValue;
|
|
891
|
+
var newLength = newValue.length;
|
|
892
|
+
if (operation === 'range-insert') {
|
|
893
|
+
var startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
|
|
894
|
+
var startValueStr = startValue !== null ? startValue.toString() : '';
|
|
895
|
+
var startExpr = startValueStr.split('').join("(".concat(this.groupChar, ")?"));
|
|
896
|
+
var sRegex = new RegExp(startExpr, 'g');
|
|
897
|
+
sRegex.test(newValue);
|
|
898
|
+
var tExpr = insertedValueStr.split('').join("(".concat(this.groupChar, ")?"));
|
|
899
|
+
var tRegex = new RegExp(tExpr, 'g');
|
|
900
|
+
tRegex.test(newValue.slice(sRegex.lastIndex));
|
|
901
|
+
_selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
|
|
902
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
|
|
903
|
+
} else if (newLength === currentLength) {
|
|
904
|
+
if (operation === 'insert' || operation === 'delete-back-single') this.$refs.input.$el.setSelectionRange(_selectionEnd + 1, _selectionEnd + 1);else if (operation === 'delete-single') this.$refs.input.$el.setSelectionRange(_selectionEnd - 1, _selectionEnd - 1);else if (operation === 'delete-range' || operation === 'spin') this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
|
|
905
|
+
} else if (operation === 'delete-back-single') {
|
|
906
|
+
var prevChar = inputValue.charAt(_selectionEnd - 1);
|
|
907
|
+
var nextChar = inputValue.charAt(_selectionEnd);
|
|
908
|
+
var diff = currentLength - newLength;
|
|
909
|
+
var isGroupChar = this._group.test(nextChar);
|
|
910
|
+
if (isGroupChar && diff === 1) {
|
|
911
|
+
_selectionEnd += 1;
|
|
912
|
+
} else if (!isGroupChar && this.isNumeralChar(prevChar)) {
|
|
913
|
+
_selectionEnd += -1 * diff + 1;
|
|
914
|
+
}
|
|
915
|
+
this._group.lastIndex = 0;
|
|
916
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
|
|
917
|
+
} else if (inputValue === '-' && operation === 'insert') {
|
|
918
|
+
this.$refs.input.$el.setSelectionRange(0, 0);
|
|
919
|
+
var _index = this.initCursor();
|
|
920
|
+
var _selectionEnd2 = _index + insertedValueStr.length + 1;
|
|
921
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd2, _selectionEnd2);
|
|
922
|
+
} else {
|
|
923
|
+
_selectionEnd = _selectionEnd + (newLength - currentLength);
|
|
924
|
+
this.$refs.input.$el.setSelectionRange(_selectionEnd, _selectionEnd);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
this.$refs.input.$el.setAttribute('aria-valuenow', value);
|
|
928
|
+
},
|
|
929
|
+
concatValues: function concatValues(val1, val2) {
|
|
930
|
+
if (val1 && val2) {
|
|
931
|
+
var decimalCharIndex = val2.search(this._decimal);
|
|
932
|
+
this._decimal.lastIndex = 0;
|
|
933
|
+
if (this.suffixChar) {
|
|
934
|
+
return decimalCharIndex !== -1 ? val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar : val1;
|
|
935
|
+
} else {
|
|
936
|
+
return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
return val1;
|
|
940
|
+
},
|
|
941
|
+
getDecimalLength: function getDecimalLength(value) {
|
|
942
|
+
if (value) {
|
|
943
|
+
var valueSplit = value.split(this._decimal);
|
|
944
|
+
if (valueSplit.length === 2) {
|
|
945
|
+
return valueSplit[1].replace(this._suffix, '').trim().replace(/\s/g, '').replace(this._currency, '').length;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
return 0;
|
|
949
|
+
},
|
|
950
|
+
updateModel: function updateModel(event, value) {
|
|
951
|
+
this.d_modelValue = value;
|
|
952
|
+
this.$emit('update:modelValue', value);
|
|
953
|
+
},
|
|
954
|
+
onInputFocus: function onInputFocus(event) {
|
|
955
|
+
this.focused = true;
|
|
956
|
+
if (!this.disabled && !this.readonly && this.$refs.input.$el.value !== utils.DomHandler.getSelection() && this.highlightOnFocus) {
|
|
957
|
+
event.target.select();
|
|
958
|
+
}
|
|
959
|
+
this.$emit('focus', event);
|
|
960
|
+
},
|
|
961
|
+
onInputBlur: function onInputBlur(event) {
|
|
962
|
+
this.focused = false;
|
|
963
|
+
var input = event.target;
|
|
964
|
+
var newValue = this.validateValue(this.parseValue(input.value));
|
|
965
|
+
this.$emit('blur', {
|
|
966
|
+
originalEvent: event,
|
|
967
|
+
value: input.value
|
|
968
|
+
});
|
|
969
|
+
input.value = this.formatValue(newValue);
|
|
970
|
+
input.setAttribute('aria-valuenow', newValue);
|
|
971
|
+
this.updateModel(event, newValue);
|
|
972
|
+
},
|
|
973
|
+
clearTimer: function clearTimer() {
|
|
974
|
+
if (this.timer) {
|
|
975
|
+
clearInterval(this.timer);
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
maxBoundry: function maxBoundry() {
|
|
979
|
+
return this.d_modelValue >= this.max;
|
|
980
|
+
},
|
|
981
|
+
minBoundry: function minBoundry() {
|
|
982
|
+
return this.d_modelValue <= this.min;
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
computed: {
|
|
986
|
+
filled: function filled() {
|
|
987
|
+
return this.modelValue != null && this.modelValue.toString().length > 0;
|
|
988
|
+
},
|
|
989
|
+
upButtonListeners: function upButtonListeners() {
|
|
990
|
+
var _this2 = this;
|
|
991
|
+
return {
|
|
992
|
+
mousedown: function mousedown(event) {
|
|
993
|
+
return _this2.onUpButtonMouseDown(event);
|
|
986
994
|
},
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
let input = event.target;
|
|
991
|
-
let newValue = this.validateValue(this.parseValue(input.value));
|
|
992
|
-
|
|
993
|
-
this.$emit('blur', { originalEvent: event, value: input.value });
|
|
994
|
-
|
|
995
|
-
input.value = this.formatValue(newValue);
|
|
996
|
-
input.setAttribute('aria-valuenow', newValue);
|
|
997
|
-
this.updateModel(event, newValue);
|
|
995
|
+
mouseup: function mouseup(event) {
|
|
996
|
+
return _this2.onUpButtonMouseUp(event);
|
|
998
997
|
},
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
clearInterval(this.timer);
|
|
1002
|
-
}
|
|
998
|
+
mouseleave: function mouseleave(event) {
|
|
999
|
+
return _this2.onUpButtonMouseLeave(event);
|
|
1003
1000
|
},
|
|
1004
|
-
|
|
1005
|
-
|
|
1001
|
+
keydown: function keydown(event) {
|
|
1002
|
+
return _this2.onUpButtonKeyDown(event);
|
|
1006
1003
|
},
|
|
1007
|
-
|
|
1008
|
-
|
|
1004
|
+
keyup: function keyup(event) {
|
|
1005
|
+
return _this2.onUpButtonKeyUp(event);
|
|
1009
1006
|
}
|
|
1007
|
+
};
|
|
1010
1008
|
},
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
'p-inputwrapper-filled': this.filled,
|
|
1017
|
-
'p-inputwrapper-focus': this.focused,
|
|
1018
|
-
'p-inputnumber-buttons-stacked': this.showButtons && this.buttonLayout === 'stacked',
|
|
1019
|
-
'p-inputnumber-buttons-horizontal': this.showButtons && this.buttonLayout === 'horizontal',
|
|
1020
|
-
'p-inputnumber-buttons-vertical': this.showButtons && this.buttonLayout === 'vertical'
|
|
1021
|
-
}
|
|
1022
|
-
];
|
|
1009
|
+
downButtonListeners: function downButtonListeners() {
|
|
1010
|
+
var _this3 = this;
|
|
1011
|
+
return {
|
|
1012
|
+
mousedown: function mousedown(event) {
|
|
1013
|
+
return _this3.onDownButtonMouseDown(event);
|
|
1023
1014
|
},
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
return [
|
|
1027
|
-
'p-inputnumber-button p-inputnumber-button-up',
|
|
1028
|
-
this.incrementButtonClass,
|
|
1029
|
-
{
|
|
1030
|
-
'p-disabled': this.showButtons && this.max !== null && this.maxBoundry()
|
|
1031
|
-
}
|
|
1032
|
-
];
|
|
1033
|
-
},
|
|
1034
|
-
downButtonClass() {
|
|
1035
|
-
return [
|
|
1036
|
-
'p-inputnumber-button p-inputnumber-button-down',
|
|
1037
|
-
this.decrementButtonClass,
|
|
1038
|
-
{
|
|
1039
|
-
'p-disabled': this.showButtons && this.min !== null && this.minBoundry()
|
|
1040
|
-
}
|
|
1041
|
-
];
|
|
1015
|
+
mouseup: function mouseup(event) {
|
|
1016
|
+
return _this3.onDownButtonMouseUp(event);
|
|
1042
1017
|
},
|
|
1043
|
-
|
|
1044
|
-
|
|
1018
|
+
mouseleave: function mouseleave(event) {
|
|
1019
|
+
return _this3.onDownButtonMouseLeave(event);
|
|
1045
1020
|
},
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
mousedown: (event) => this.onUpButtonMouseDown(event),
|
|
1049
|
-
mouseup: (event) => this.onUpButtonMouseUp(event),
|
|
1050
|
-
mouseleave: (event) => this.onUpButtonMouseLeave(event),
|
|
1051
|
-
keydown: (event) => this.onUpButtonKeyDown(event),
|
|
1052
|
-
keyup: (event) => this.onUpButtonKeyUp(event)
|
|
1053
|
-
};
|
|
1054
|
-
},
|
|
1055
|
-
downButtonListeners() {
|
|
1056
|
-
return {
|
|
1057
|
-
mousedown: (event) => this.onDownButtonMouseDown(event),
|
|
1058
|
-
mouseup: (event) => this.onDownButtonMouseUp(event),
|
|
1059
|
-
mouseleave: (event) => this.onDownButtonMouseLeave(event),
|
|
1060
|
-
keydown: (event) => this.onDownButtonKeyDown(event),
|
|
1061
|
-
keyup: (event) => this.onDownButtonKeyUp(event)
|
|
1062
|
-
};
|
|
1063
|
-
},
|
|
1064
|
-
formattedValue() {
|
|
1065
|
-
const val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
|
|
1066
|
-
|
|
1067
|
-
return this.formatValue(val);
|
|
1021
|
+
keydown: function keydown(event) {
|
|
1022
|
+
return _this3.onDownButtonKeyDown(event);
|
|
1068
1023
|
},
|
|
1069
|
-
|
|
1070
|
-
|
|
1024
|
+
keyup: function keyup(event) {
|
|
1025
|
+
return _this3.onDownButtonKeyUp(event);
|
|
1071
1026
|
}
|
|
1027
|
+
};
|
|
1072
1028
|
},
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1029
|
+
formattedValue: function formattedValue() {
|
|
1030
|
+
var val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
|
|
1031
|
+
return this.formatValue(val);
|
|
1032
|
+
},
|
|
1033
|
+
getFormatter: function getFormatter() {
|
|
1034
|
+
return this.numberFormat;
|
|
1078
1035
|
}
|
|
1036
|
+
},
|
|
1037
|
+
components: {
|
|
1038
|
+
INInputText: InputText__default["default"],
|
|
1039
|
+
INButton: Button__default["default"],
|
|
1040
|
+
AngleUpIcon: AngleUpIcon__default["default"],
|
|
1041
|
+
AngleDownIcon: AngleDownIcon__default["default"]
|
|
1042
|
+
}
|
|
1079
1043
|
};
|
|
1080
1044
|
|
|
1045
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
1046
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1047
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1048
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1049
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
1050
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1081
1051
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
"
|
|
1148
|
-
},
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1052
|
+
var _component_INInputText = vue.resolveComponent("INInputText");
|
|
1053
|
+
var _component_INButton = vue.resolveComponent("INButton");
|
|
1054
|
+
return vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1055
|
+
"class": _ctx.cx('root')
|
|
1056
|
+
}, _ctx.ptm('root'), {
|
|
1057
|
+
"data-pc-name": "inputnumber"
|
|
1058
|
+
}), [vue.createVNode(_component_INInputText, vue.mergeProps({
|
|
1059
|
+
ref: "input",
|
|
1060
|
+
id: _ctx.inputId,
|
|
1061
|
+
role: "spinbutton",
|
|
1062
|
+
"class": [_ctx.cx('input'), _ctx.inputClass],
|
|
1063
|
+
style: _ctx.inputStyle,
|
|
1064
|
+
value: $options.formattedValue,
|
|
1065
|
+
"aria-valuemin": _ctx.min,
|
|
1066
|
+
"aria-valuemax": _ctx.max,
|
|
1067
|
+
"aria-valuenow": _ctx.modelValue,
|
|
1068
|
+
disabled: _ctx.disabled,
|
|
1069
|
+
readonly: _ctx.readonly,
|
|
1070
|
+
placeholder: _ctx.placeholder,
|
|
1071
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
1072
|
+
"aria-label": _ctx.ariaLabel,
|
|
1073
|
+
onInput: $options.onUserInput,
|
|
1074
|
+
onKeydown: $options.onInputKeyDown,
|
|
1075
|
+
onKeypress: $options.onInputKeyPress,
|
|
1076
|
+
onPaste: $options.onPaste,
|
|
1077
|
+
onClick: $options.onInputClick,
|
|
1078
|
+
onFocus: $options.onInputFocus,
|
|
1079
|
+
onBlur: $options.onInputBlur
|
|
1080
|
+
}, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm('input')), {
|
|
1081
|
+
unstyled: _ctx.unstyled,
|
|
1082
|
+
"data-pc-section": "input"
|
|
1083
|
+
}), null, 16, ["id", "class", "style", "value", "aria-valuemin", "aria-valuemax", "aria-valuenow", "disabled", "readonly", "placeholder", "aria-labelledby", "aria-label", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur", "unstyled"]), _ctx.showButtons && _ctx.buttonLayout === 'stacked' ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
|
|
1084
|
+
key: 0,
|
|
1085
|
+
"class": _ctx.cx('buttonGroup')
|
|
1086
|
+
}, _ctx.ptm('buttonGroup')), [vue.createVNode(_component_INButton, vue.mergeProps({
|
|
1087
|
+
"class": [_ctx.cx('incrementButton'), _ctx.incrementButtonClass]
|
|
1088
|
+
}, vue.toHandlers($options.upButtonListeners), {
|
|
1089
|
+
disabled: _ctx.disabled,
|
|
1090
|
+
tabindex: -1,
|
|
1091
|
+
"aria-hidden": "true"
|
|
1092
|
+
}, _objectSpread(_objectSpread({}, _ctx.incrementButtonProps), _ctx.ptm('incrementButton')), {
|
|
1093
|
+
unstyled: _ctx.unstyled,
|
|
1094
|
+
"data-pc-section": "incrementbutton"
|
|
1095
|
+
}), {
|
|
1096
|
+
icon: vue.withCtx(function () {
|
|
1097
|
+
return [vue.renderSlot(_ctx.$slots, "incrementbuttonicon", {}, function () {
|
|
1098
|
+
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.incrementButtonIcon ? 'span' : 'AngleUpIcon'), vue.mergeProps({
|
|
1099
|
+
"class": _ctx.incrementButtonIcon
|
|
1100
|
+
}, _ctx.ptm('incrementButton')['icon']), null, 16, ["class"]))];
|
|
1101
|
+
})];
|
|
1102
|
+
}),
|
|
1103
|
+
_: 3
|
|
1104
|
+
}, 16, ["class", "disabled", "unstyled"]), vue.createVNode(_component_INButton, vue.mergeProps({
|
|
1105
|
+
"class": [_ctx.cx('decrementButton'), _ctx.decrementButtonClass]
|
|
1106
|
+
}, vue.toHandlers($options.downButtonListeners), {
|
|
1107
|
+
disabled: _ctx.disabled,
|
|
1108
|
+
tabindex: -1,
|
|
1109
|
+
"aria-hidden": "true"
|
|
1110
|
+
}, _objectSpread(_objectSpread({}, _ctx.decrementButtonProps), _ctx.ptm('decrementButton')), {
|
|
1111
|
+
unstyled: _ctx.unstyled,
|
|
1112
|
+
"data-pc-section": "decrementbutton"
|
|
1113
|
+
}), {
|
|
1114
|
+
icon: vue.withCtx(function () {
|
|
1115
|
+
return [vue.renderSlot(_ctx.$slots, "decrementbuttonicon", {}, function () {
|
|
1116
|
+
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.decrementButtonIcon ? 'span' : 'AngleDownIcon'), vue.mergeProps({
|
|
1117
|
+
"class": _ctx.decrementButtonIcon
|
|
1118
|
+
}, _ctx.ptm('decrementButton')['icon']), null, 16, ["class"]))];
|
|
1119
|
+
})];
|
|
1120
|
+
}),
|
|
1121
|
+
_: 3
|
|
1122
|
+
}, 16, ["class", "disabled", "unstyled"])], 16)) : vue.createCommentVNode("", true), _ctx.showButtons && _ctx.buttonLayout !== 'stacked' ? (vue.openBlock(), vue.createBlock(_component_INButton, vue.mergeProps({
|
|
1123
|
+
key: 1,
|
|
1124
|
+
"class": [_ctx.cx('incrementButton'), _ctx.incrementButtonClass]
|
|
1125
|
+
}, vue.toHandlers($options.upButtonListeners), {
|
|
1126
|
+
disabled: _ctx.disabled,
|
|
1127
|
+
tabindex: -1,
|
|
1128
|
+
"aria-hidden": "true"
|
|
1129
|
+
}, _objectSpread(_objectSpread({}, _ctx.incrementButtonProps), _ctx.ptm('incrementButton')), {
|
|
1130
|
+
unstyled: _ctx.unstyled,
|
|
1131
|
+
"data-pc-section": "incrementbutton"
|
|
1132
|
+
}), {
|
|
1133
|
+
icon: vue.withCtx(function () {
|
|
1134
|
+
return [vue.renderSlot(_ctx.$slots, "incrementbuttonicon", {}, function () {
|
|
1135
|
+
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.incrementButtonIcon ? 'span' : 'AngleUpIcon'), vue.mergeProps({
|
|
1136
|
+
"class": _ctx.incrementButtonIcon
|
|
1137
|
+
}, _ctx.ptm('incrementButton')['icon']), null, 16, ["class"]))];
|
|
1138
|
+
})];
|
|
1139
|
+
}),
|
|
1140
|
+
_: 3
|
|
1141
|
+
}, 16, ["class", "disabled", "unstyled"])) : vue.createCommentVNode("", true), _ctx.showButtons && _ctx.buttonLayout !== 'stacked' ? (vue.openBlock(), vue.createBlock(_component_INButton, vue.mergeProps({
|
|
1142
|
+
key: 2,
|
|
1143
|
+
"class": [_ctx.cx('decrementButton'), _ctx.decrementButtonClass]
|
|
1144
|
+
}, vue.toHandlers($options.downButtonListeners), {
|
|
1145
|
+
disabled: _ctx.disabled,
|
|
1146
|
+
tabindex: -1,
|
|
1147
|
+
"aria-hidden": "true"
|
|
1148
|
+
}, _objectSpread(_objectSpread({}, _ctx.decrementButtonProps), _ctx.ptm('decrementButton')), {
|
|
1149
|
+
unstyled: _ctx.unstyled,
|
|
1150
|
+
"data-pc-section": "decrementbutton"
|
|
1151
|
+
}), {
|
|
1152
|
+
icon: vue.withCtx(function () {
|
|
1153
|
+
return [vue.renderSlot(_ctx.$slots, "decrementbuttonicon", {}, function () {
|
|
1154
|
+
return [(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.decrementButtonIcon ? 'span' : 'AngleDownIcon'), vue.mergeProps({
|
|
1155
|
+
"class": _ctx.decrementButtonIcon
|
|
1156
|
+
}, _ctx.ptm('decrementButton')['icon']), null, 16, ["class"]))];
|
|
1157
|
+
})];
|
|
1158
|
+
}),
|
|
1159
|
+
_: 3
|
|
1160
|
+
}, 16, ["class", "disabled", "unstyled"])) : vue.createCommentVNode("", true)], 16);
|
|
1175
1161
|
}
|
|
1176
1162
|
|
|
1177
|
-
function styleInject(css, ref) {
|
|
1178
|
-
if ( ref === void 0 ) ref = {};
|
|
1179
|
-
var insertAt = ref.insertAt;
|
|
1180
|
-
|
|
1181
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
1182
|
-
|
|
1183
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
1184
|
-
var style = document.createElement('style');
|
|
1185
|
-
style.type = 'text/css';
|
|
1186
|
-
|
|
1187
|
-
if (insertAt === 'top') {
|
|
1188
|
-
if (head.firstChild) {
|
|
1189
|
-
head.insertBefore(style, head.firstChild);
|
|
1190
|
-
} else {
|
|
1191
|
-
head.appendChild(style);
|
|
1192
|
-
}
|
|
1193
|
-
} else {
|
|
1194
|
-
head.appendChild(style);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
if (style.styleSheet) {
|
|
1198
|
-
style.styleSheet.cssText = css;
|
|
1199
|
-
} else {
|
|
1200
|
-
style.appendChild(document.createTextNode(css));
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
var css_248z = "\n.p-inputnumber {\n display: inline-flex;\n}\n.p-inputnumber-button {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label {\n display: none;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n padding: 0;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-input {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-bottom-left-radius: 0;\n padding: 0;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group {\n display: flex;\n flex-direction: column;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button {\n flex: 1 1 auto;\n}\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up {\n order: 3;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-inputnumber-buttons-horizontal .p-inputnumber-input {\n order: 2;\n border-radius: 0;\n}\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down {\n order: 1;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-inputnumber-buttons-vertical {\n flex-direction: column;\n}\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up {\n order: 1;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n width: 100%;\n}\n.p-inputnumber-buttons-vertical .p-inputnumber-input {\n order: 2;\n border-radius: 0;\n text-align: center;\n}\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down {\n order: 3;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n width: 100%;\n}\n.p-inputnumber-input {\n flex: 1 1 auto;\n}\n.p-fluid .p-inputnumber {\n width: 100%;\n}\n.p-fluid .p-inputnumber .p-inputnumber-input {\n width: 1%;\n}\n.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input {\n width: 100%;\n}\n";
|
|
1205
|
-
styleInject(css_248z);
|
|
1206
|
-
|
|
1207
1163
|
script.render = render;
|
|
1208
1164
|
|
|
1209
1165
|
module.exports = script;
|