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
package/orderlist/orderlist.js
CHANGED
|
@@ -1,724 +1,664 @@
|
|
|
1
1
|
this.primevue = this.primevue || {};
|
|
2
|
-
this.primevue.orderlist = (function (
|
|
2
|
+
this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpIcon, AngleDownIcon, AngleUpIcon, Ripple, utils, BaseComponent, usestyle, vue) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
6
6
|
|
|
7
|
-
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
8
7
|
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
9
8
|
var AngleDoubleDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleDoubleDownIcon);
|
|
10
9
|
var AngleDoubleUpIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleDoubleUpIcon);
|
|
11
10
|
var AngleDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleDownIcon);
|
|
12
11
|
var AngleUpIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleUpIcon);
|
|
13
12
|
var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
|
|
13
|
+
var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
|
|
14
|
+
|
|
15
|
+
var styles = "\n.p-orderlist {\n display: flex;\n}\n\n.p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.p-orderlist-list-container {\n flex: 1 1 auto;\n}\n\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n";
|
|
16
|
+
var classes = {
|
|
17
|
+
root: function root(_ref) {
|
|
18
|
+
var props = _ref.props;
|
|
19
|
+
return ['p-orderlist p-component', {
|
|
20
|
+
'p-orderlist-striped': props.stripedRows
|
|
21
|
+
}];
|
|
22
|
+
},
|
|
23
|
+
controls: 'p-orderlist-controls',
|
|
24
|
+
header: 'p-orderlist-header',
|
|
25
|
+
container: 'p-orderlist-list-container',
|
|
26
|
+
list: 'p-orderlist-list',
|
|
27
|
+
item: function item(_ref2) {
|
|
28
|
+
var instance = _ref2.instance,
|
|
29
|
+
_item = _ref2.item,
|
|
30
|
+
id = _ref2.id;
|
|
31
|
+
return ['p-orderlist-item', {
|
|
32
|
+
'p-highlight': instance.isSelected(_item),
|
|
33
|
+
'p-focus': id === instance.focusedOptionId
|
|
34
|
+
}];
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var _useStyle = usestyle.useStyle(styles, {
|
|
38
|
+
name: 'orderlist',
|
|
39
|
+
manual: true
|
|
40
|
+
}),
|
|
41
|
+
loadStyle = _useStyle.load;
|
|
42
|
+
var script$1 = {
|
|
43
|
+
name: 'BaseOrderList',
|
|
44
|
+
"extends": BaseComponent__default["default"],
|
|
45
|
+
props: {
|
|
46
|
+
modelValue: {
|
|
47
|
+
type: Array,
|
|
48
|
+
"default": null
|
|
49
|
+
},
|
|
50
|
+
selection: {
|
|
51
|
+
type: Array,
|
|
52
|
+
"default": null
|
|
53
|
+
},
|
|
54
|
+
dataKey: {
|
|
55
|
+
type: String,
|
|
56
|
+
"default": null
|
|
57
|
+
},
|
|
58
|
+
listStyle: {
|
|
59
|
+
type: null,
|
|
60
|
+
"default": null
|
|
61
|
+
},
|
|
62
|
+
metaKeySelection: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
"default": true
|
|
65
|
+
},
|
|
66
|
+
responsive: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
"default": true
|
|
69
|
+
},
|
|
70
|
+
breakpoint: {
|
|
71
|
+
type: String,
|
|
72
|
+
"default": '960px'
|
|
73
|
+
},
|
|
74
|
+
stripedRows: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
"default": false
|
|
77
|
+
},
|
|
78
|
+
tabindex: {
|
|
79
|
+
type: Number,
|
|
80
|
+
"default": 0
|
|
81
|
+
},
|
|
82
|
+
listProps: {
|
|
83
|
+
type: null,
|
|
84
|
+
"default": null
|
|
85
|
+
},
|
|
86
|
+
moveUpButtonProps: {
|
|
87
|
+
type: null,
|
|
88
|
+
"default": null
|
|
89
|
+
},
|
|
90
|
+
moveTopButtonProps: {
|
|
91
|
+
type: null,
|
|
92
|
+
"default": null
|
|
93
|
+
},
|
|
94
|
+
moveDownButtonProps: {
|
|
95
|
+
type: null,
|
|
96
|
+
"default": null
|
|
97
|
+
},
|
|
98
|
+
moveBottomButtonProps: {
|
|
99
|
+
type: null,
|
|
100
|
+
"default": null
|
|
101
|
+
},
|
|
102
|
+
'aria-labelledby': {
|
|
103
|
+
type: String,
|
|
104
|
+
"default": null
|
|
105
|
+
},
|
|
106
|
+
'aria-label': {
|
|
107
|
+
type: String,
|
|
108
|
+
"default": null
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
css: {
|
|
112
|
+
classes: classes,
|
|
113
|
+
loadStyle: loadStyle
|
|
114
|
+
},
|
|
115
|
+
provide: function provide() {
|
|
116
|
+
return {
|
|
117
|
+
$parentInstance: this
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
};
|
|
14
121
|
|
|
122
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
123
|
+
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."); }
|
|
124
|
+
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); }
|
|
125
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
126
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
127
|
+
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; }
|
|
15
128
|
var script = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
moveUpButtonProps: {
|
|
61
|
-
type: null,
|
|
62
|
-
default: null
|
|
63
|
-
},
|
|
64
|
-
moveTopButtonProps: {
|
|
65
|
-
type: null,
|
|
66
|
-
default: null
|
|
67
|
-
},
|
|
68
|
-
moveDownButtonProps: {
|
|
69
|
-
type: null,
|
|
70
|
-
default: null
|
|
71
|
-
},
|
|
72
|
-
moveBottomButtonProps: {
|
|
73
|
-
type: null,
|
|
74
|
-
default: null
|
|
75
|
-
},
|
|
76
|
-
'aria-labelledby': {
|
|
77
|
-
type: String,
|
|
78
|
-
default: null
|
|
79
|
-
},
|
|
80
|
-
'aria-label': {
|
|
81
|
-
type: String,
|
|
82
|
-
default: null
|
|
129
|
+
name: 'OrderList',
|
|
130
|
+
"extends": script$1,
|
|
131
|
+
emits: ['update:modelValue', 'reorder', 'update:selection', 'selection-change', 'focus', 'blur'],
|
|
132
|
+
itemTouched: false,
|
|
133
|
+
reorderDirection: null,
|
|
134
|
+
styleElement: null,
|
|
135
|
+
list: null,
|
|
136
|
+
data: function data() {
|
|
137
|
+
return {
|
|
138
|
+
id: this.$attrs.id,
|
|
139
|
+
d_selection: this.selection,
|
|
140
|
+
focused: false,
|
|
141
|
+
focusedOptionIndex: -1
|
|
142
|
+
};
|
|
143
|
+
},
|
|
144
|
+
watch: {
|
|
145
|
+
'$attrs.id': function $attrsId(newValue) {
|
|
146
|
+
this.id = newValue || utils.UniqueComponentId();
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
beforeUnmount: function beforeUnmount() {
|
|
150
|
+
this.destroyStyle();
|
|
151
|
+
},
|
|
152
|
+
updated: function updated() {
|
|
153
|
+
if (this.reorderDirection) {
|
|
154
|
+
this.updateListScroll();
|
|
155
|
+
this.reorderDirection = null;
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
mounted: function mounted() {
|
|
159
|
+
this.id = this.id || utils.UniqueComponentId();
|
|
160
|
+
if (this.responsive) {
|
|
161
|
+
this.createStyle();
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
methods: {
|
|
165
|
+
getItemKey: function getItemKey(item, index) {
|
|
166
|
+
return this.dataKey ? utils.ObjectUtils.resolveFieldData(item, this.dataKey) : index;
|
|
167
|
+
},
|
|
168
|
+
getPTOptions: function getPTOptions(item, key) {
|
|
169
|
+
return this.ptm(key, {
|
|
170
|
+
context: {
|
|
171
|
+
active: this.isSelected(item),
|
|
172
|
+
focused: this.id === this.focusedOptionId
|
|
83
173
|
}
|
|
174
|
+
});
|
|
175
|
+
},
|
|
176
|
+
isSelected: function isSelected(item) {
|
|
177
|
+
return utils.ObjectUtils.findIndexInList(item, this.d_selection) != -1;
|
|
178
|
+
},
|
|
179
|
+
onListFocus: function onListFocus(event) {
|
|
180
|
+
var selectedFirstItem = utils.DomHandler.findSingle(this.list, '[data-p-highlight="true"]');
|
|
181
|
+
var findIndex = utils.ObjectUtils.findIndexInList(selectedFirstItem, this.list.children);
|
|
182
|
+
this.focused = true;
|
|
183
|
+
var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
|
|
184
|
+
this.changeFocusedOptionIndex(index);
|
|
185
|
+
this.$emit('focus', event);
|
|
186
|
+
},
|
|
187
|
+
onListBlur: function onListBlur(event) {
|
|
188
|
+
this.focused = false;
|
|
189
|
+
this.focusedOptionIndex = -1;
|
|
190
|
+
this.$emit('blur', event);
|
|
191
|
+
},
|
|
192
|
+
onListKeyDown: function onListKeyDown(event) {
|
|
193
|
+
switch (event.code) {
|
|
194
|
+
case 'ArrowDown':
|
|
195
|
+
this.onArrowDownKey(event);
|
|
196
|
+
break;
|
|
197
|
+
case 'ArrowUp':
|
|
198
|
+
this.onArrowUpKey(event);
|
|
199
|
+
break;
|
|
200
|
+
case 'Home':
|
|
201
|
+
this.onHomeKey(event);
|
|
202
|
+
break;
|
|
203
|
+
case 'End':
|
|
204
|
+
this.onEndKey(event);
|
|
205
|
+
break;
|
|
206
|
+
case 'Enter':
|
|
207
|
+
this.onEnterKey(event);
|
|
208
|
+
break;
|
|
209
|
+
case 'Space':
|
|
210
|
+
this.onSpaceKey(event);
|
|
211
|
+
break;
|
|
212
|
+
case 'KeyA':
|
|
213
|
+
if (event.ctrlKey) {
|
|
214
|
+
this.d_selection = _toConsumableArray(this.modelValue);
|
|
215
|
+
this.$emit('update:selection', this.d_selection);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
onOptionMouseDown: function onOptionMouseDown(index) {
|
|
220
|
+
this.focused = true;
|
|
221
|
+
this.focusedOptionIndex = index;
|
|
222
|
+
},
|
|
223
|
+
onArrowDownKey: function onArrowDownKey(event) {
|
|
224
|
+
var optionIndex = this.findNextOptionIndex(this.focusedOptionIndex);
|
|
225
|
+
this.changeFocusedOptionIndex(optionIndex);
|
|
226
|
+
if (event.shiftKey) {
|
|
227
|
+
this.onEnterKey(event);
|
|
228
|
+
}
|
|
229
|
+
event.preventDefault();
|
|
84
230
|
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
231
|
+
onArrowUpKey: function onArrowUpKey(event) {
|
|
232
|
+
var optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex);
|
|
233
|
+
this.changeFocusedOptionIndex(optionIndex);
|
|
234
|
+
if (event.shiftKey) {
|
|
235
|
+
this.onEnterKey(event);
|
|
236
|
+
}
|
|
237
|
+
event.preventDefault();
|
|
238
|
+
},
|
|
239
|
+
onHomeKey: function onHomeKey(event) {
|
|
240
|
+
if (event.ctrlKey && event.shiftKey) {
|
|
241
|
+
var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
242
|
+
var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
243
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
244
|
+
return item === focusedItem;
|
|
245
|
+
});
|
|
246
|
+
this.d_selection = _toConsumableArray(this.modelValue).slice(0, matchedOptionIndex + 1);
|
|
247
|
+
this.$emit('update:selection', this.d_selection);
|
|
248
|
+
} else {
|
|
249
|
+
this.changeFocusedOptionIndex(0);
|
|
250
|
+
}
|
|
251
|
+
event.preventDefault();
|
|
252
|
+
},
|
|
253
|
+
onEndKey: function onEndKey(event) {
|
|
254
|
+
if (event.ctrlKey && event.shiftKey) {
|
|
255
|
+
var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
256
|
+
var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
257
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
258
|
+
return item === focusedItem;
|
|
259
|
+
});
|
|
260
|
+
this.d_selection = _toConsumableArray(this.modelValue).slice(matchedOptionIndex, items.length);
|
|
261
|
+
this.$emit('update:selection', this.d_selection);
|
|
262
|
+
} else {
|
|
263
|
+
this.changeFocusedOptionIndex(utils.DomHandler.find(this.list, '[data-pc-section="item"]').length - 1);
|
|
264
|
+
}
|
|
265
|
+
event.preventDefault();
|
|
266
|
+
},
|
|
267
|
+
onEnterKey: function onEnterKey(event) {
|
|
268
|
+
var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
269
|
+
var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
270
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
271
|
+
return item === focusedItem;
|
|
272
|
+
});
|
|
273
|
+
this.onItemClick(event, this.modelValue[matchedOptionIndex], matchedOptionIndex);
|
|
274
|
+
event.preventDefault();
|
|
275
|
+
},
|
|
276
|
+
onSpaceKey: function onSpaceKey(event) {
|
|
277
|
+
if (event.shiftKey) {
|
|
278
|
+
var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
279
|
+
var selectedItemIndex = utils.ObjectUtils.findIndexInList(this.d_selection[0], _toConsumableArray(this.modelValue));
|
|
280
|
+
var focusedItem = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
|
|
281
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
|
|
282
|
+
return item === focusedItem;
|
|
283
|
+
});
|
|
284
|
+
this.d_selection = _toConsumableArray(this.modelValue).slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
|
|
285
|
+
this.$emit('update:selection', this.d_selection);
|
|
286
|
+
} else {
|
|
287
|
+
this.onEnterKey(event);
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
findNextOptionIndex: function findNextOptionIndex(index) {
|
|
291
|
+
var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
292
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
|
|
293
|
+
return link.id === index;
|
|
294
|
+
});
|
|
295
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
|
|
296
|
+
},
|
|
297
|
+
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
298
|
+
var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
299
|
+
var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
|
|
300
|
+
return link.id === index;
|
|
301
|
+
});
|
|
302
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
|
|
303
|
+
},
|
|
304
|
+
changeFocusedOptionIndex: function changeFocusedOptionIndex(index) {
|
|
305
|
+
var items = utils.DomHandler.find(this.list, '[data-pc-section="item"]');
|
|
306
|
+
var order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
|
|
307
|
+
this.focusedOptionIndex = items[order] ? items[order].getAttribute('id') : -1;
|
|
308
|
+
this.scrollInView(this.focusedOptionIndex);
|
|
309
|
+
},
|
|
310
|
+
scrollInView: function scrollInView(id) {
|
|
311
|
+
var element = utils.DomHandler.findSingle(this.list, "[data-pc-section=\"item\"][id=\"".concat(id, "\"]"));
|
|
312
|
+
if (element) {
|
|
313
|
+
element.scrollIntoView && element.scrollIntoView({
|
|
314
|
+
block: 'nearest',
|
|
315
|
+
inline: 'start'
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
moveUp: function moveUp(event) {
|
|
320
|
+
if (this.d_selection) {
|
|
321
|
+
var value = _toConsumableArray(this.modelValue);
|
|
322
|
+
for (var i = 0; i < this.d_selection.length; i++) {
|
|
323
|
+
var selectedItem = this.d_selection[i];
|
|
324
|
+
var selectedItemIndex = utils.ObjectUtils.findIndexInList(selectedItem, value);
|
|
325
|
+
if (selectedItemIndex !== 0) {
|
|
326
|
+
var movedItem = value[selectedItemIndex];
|
|
327
|
+
var temp = value[selectedItemIndex - 1];
|
|
328
|
+
value[selectedItemIndex - 1] = movedItem;
|
|
329
|
+
value[selectedItemIndex] = temp;
|
|
330
|
+
} else {
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
100
333
|
}
|
|
334
|
+
this.reorderDirection = 'up';
|
|
335
|
+
this.$emit('update:modelValue', value);
|
|
336
|
+
this.$emit('reorder', {
|
|
337
|
+
originalEvent: event,
|
|
338
|
+
value: value,
|
|
339
|
+
direction: this.reorderDirection
|
|
340
|
+
});
|
|
341
|
+
}
|
|
101
342
|
},
|
|
102
|
-
|
|
103
|
-
|
|
343
|
+
moveTop: function moveTop(event) {
|
|
344
|
+
if (this.d_selection) {
|
|
345
|
+
var value = _toConsumableArray(this.modelValue);
|
|
346
|
+
for (var i = 0; i < this.d_selection.length; i++) {
|
|
347
|
+
var selectedItem = this.d_selection[i];
|
|
348
|
+
var selectedItemIndex = utils.ObjectUtils.findIndexInList(selectedItem, value);
|
|
349
|
+
if (selectedItemIndex !== 0) {
|
|
350
|
+
var movedItem = value.splice(selectedItemIndex, 1)[0];
|
|
351
|
+
value.unshift(movedItem);
|
|
352
|
+
} else {
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
this.reorderDirection = 'top';
|
|
357
|
+
this.$emit('update:modelValue', value);
|
|
358
|
+
this.$emit('reorder', {
|
|
359
|
+
originalEvent: event,
|
|
360
|
+
value: value,
|
|
361
|
+
direction: this.reorderDirection
|
|
362
|
+
});
|
|
363
|
+
}
|
|
104
364
|
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
365
|
+
moveDown: function moveDown(event) {
|
|
366
|
+
if (this.d_selection) {
|
|
367
|
+
var value = _toConsumableArray(this.modelValue);
|
|
368
|
+
for (var i = this.d_selection.length - 1; i >= 0; i--) {
|
|
369
|
+
var selectedItem = this.d_selection[i];
|
|
370
|
+
var selectedItemIndex = utils.ObjectUtils.findIndexInList(selectedItem, value);
|
|
371
|
+
if (selectedItemIndex !== value.length - 1) {
|
|
372
|
+
var movedItem = value[selectedItemIndex];
|
|
373
|
+
var temp = value[selectedItemIndex + 1];
|
|
374
|
+
value[selectedItemIndex + 1] = movedItem;
|
|
375
|
+
value[selectedItemIndex] = temp;
|
|
376
|
+
} else {
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
109
379
|
}
|
|
380
|
+
this.reorderDirection = 'down';
|
|
381
|
+
this.$emit('update:modelValue', value);
|
|
382
|
+
this.$emit('reorder', {
|
|
383
|
+
originalEvent: event,
|
|
384
|
+
value: value,
|
|
385
|
+
direction: this.reorderDirection
|
|
386
|
+
});
|
|
387
|
+
}
|
|
110
388
|
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
389
|
+
moveBottom: function moveBottom(event) {
|
|
390
|
+
if (this.d_selection) {
|
|
391
|
+
var value = _toConsumableArray(this.modelValue);
|
|
392
|
+
for (var i = this.d_selection.length - 1; i >= 0; i--) {
|
|
393
|
+
var selectedItem = this.d_selection[i];
|
|
394
|
+
var selectedItemIndex = utils.ObjectUtils.findIndexInList(selectedItem, value);
|
|
395
|
+
if (selectedItemIndex !== value.length - 1) {
|
|
396
|
+
var movedItem = value.splice(selectedItemIndex, 1)[0];
|
|
397
|
+
value.push(movedItem);
|
|
398
|
+
} else {
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
116
401
|
}
|
|
402
|
+
this.reorderDirection = 'bottom';
|
|
403
|
+
this.$emit('update:modelValue', value);
|
|
404
|
+
this.$emit('reorder', {
|
|
405
|
+
originalEvent: event,
|
|
406
|
+
value: value,
|
|
407
|
+
direction: this.reorderDirection
|
|
408
|
+
});
|
|
409
|
+
}
|
|
117
410
|
},
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
},
|
|
144
|
-
onListBlur(event) {
|
|
145
|
-
this.focused = false;
|
|
146
|
-
this.focusedOptionIndex = -1;
|
|
147
|
-
this.$emit('blur', event);
|
|
148
|
-
},
|
|
149
|
-
onListKeyDown(event) {
|
|
150
|
-
switch (event.code) {
|
|
151
|
-
case 'ArrowDown':
|
|
152
|
-
this.onArrowDownKey(event);
|
|
153
|
-
break;
|
|
154
|
-
|
|
155
|
-
case 'ArrowUp':
|
|
156
|
-
this.onArrowUpKey(event);
|
|
157
|
-
break;
|
|
158
|
-
|
|
159
|
-
case 'Home':
|
|
160
|
-
this.onHomeKey(event);
|
|
161
|
-
break;
|
|
162
|
-
|
|
163
|
-
case 'End':
|
|
164
|
-
this.onEndKey(event);
|
|
165
|
-
break;
|
|
166
|
-
|
|
167
|
-
case 'Enter':
|
|
168
|
-
this.onEnterKey(event);
|
|
169
|
-
break;
|
|
170
|
-
|
|
171
|
-
case 'Space':
|
|
172
|
-
this.onSpaceKey(event);
|
|
173
|
-
break;
|
|
174
|
-
|
|
175
|
-
case 'KeyA':
|
|
176
|
-
if (event.ctrlKey) {
|
|
177
|
-
this.d_selection = [...this.modelValue];
|
|
178
|
-
this.$emit('update:selection', this.d_selection);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
onOptionMouseDown(index) {
|
|
183
|
-
this.focused = true;
|
|
184
|
-
this.focusedOptionIndex = index;
|
|
185
|
-
},
|
|
186
|
-
onArrowDownKey(event) {
|
|
187
|
-
const optionIndex = this.findNextOptionIndex(this.focusedOptionIndex);
|
|
188
|
-
|
|
189
|
-
this.changeFocusedOptionIndex(optionIndex);
|
|
190
|
-
|
|
191
|
-
if (event.shiftKey) {
|
|
192
|
-
this.onEnterKey(event);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
event.preventDefault();
|
|
196
|
-
},
|
|
197
|
-
onArrowUpKey(event) {
|
|
198
|
-
const optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex);
|
|
199
|
-
|
|
200
|
-
this.changeFocusedOptionIndex(optionIndex);
|
|
201
|
-
|
|
202
|
-
if (event.shiftKey) {
|
|
203
|
-
this.onEnterKey(event);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
event.preventDefault();
|
|
207
|
-
},
|
|
208
|
-
onHomeKey(event) {
|
|
209
|
-
if (event.ctrlKey && event.shiftKey) {
|
|
210
|
-
const items = utils.DomHandler.find(this.list, 'li.p-orderlist-item');
|
|
211
|
-
const focusedItem = utils.DomHandler.findSingle(this.list, `li.p-orderlist-item[id=${this.focusedOptionIndex}]`);
|
|
212
|
-
const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
|
|
213
|
-
|
|
214
|
-
this.d_selection = [...this.modelValue].slice(0, matchedOptionIndex + 1);
|
|
215
|
-
this.$emit('update:selection', this.d_selection);
|
|
216
|
-
} else {
|
|
217
|
-
this.changeFocusedOptionIndex(0);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
event.preventDefault();
|
|
221
|
-
},
|
|
222
|
-
onEndKey(event) {
|
|
223
|
-
if (event.ctrlKey && event.shiftKey) {
|
|
224
|
-
const items = utils.DomHandler.find(this.list, 'li.p-orderlist-item');
|
|
225
|
-
const focusedItem = utils.DomHandler.findSingle(this.list, `li.p-orderlist-item[id=${this.focusedOptionIndex}]`);
|
|
226
|
-
const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
|
|
227
|
-
|
|
228
|
-
this.d_selection = [...this.modelValue].slice(matchedOptionIndex, items.length);
|
|
229
|
-
this.$emit('update:selection', this.d_selection);
|
|
230
|
-
} else {
|
|
231
|
-
this.changeFocusedOptionIndex(utils.DomHandler.find(this.list, 'li.p-orderlist-item').length - 1);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
event.preventDefault();
|
|
235
|
-
},
|
|
236
|
-
onEnterKey(event) {
|
|
237
|
-
const items = utils.DomHandler.find(this.list, 'li.p-orderlist-item');
|
|
238
|
-
const focusedItem = utils.DomHandler.findSingle(this.list, `li.p-orderlist-item[id=${this.focusedOptionIndex}]`);
|
|
239
|
-
const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
|
|
240
|
-
|
|
241
|
-
this.onItemClick(event, this.modelValue[matchedOptionIndex], matchedOptionIndex);
|
|
242
|
-
|
|
243
|
-
event.preventDefault();
|
|
244
|
-
},
|
|
245
|
-
onSpaceKey(event) {
|
|
246
|
-
if (event.shiftKey) {
|
|
247
|
-
const items = utils.DomHandler.find(this.list, 'li.p-orderlist-item');
|
|
248
|
-
const selectedItemIndex = utils.ObjectUtils.findIndexInList(this.d_selection[0], [...this.modelValue]);
|
|
249
|
-
const focusedItem = utils.DomHandler.findSingle(this.list, `li.p-orderlist-item[id=${this.focusedOptionIndex}]`);
|
|
250
|
-
const matchedOptionIndex = [...items].findIndex((item) => item === focusedItem);
|
|
251
|
-
|
|
252
|
-
this.d_selection = [...this.modelValue].slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
|
|
253
|
-
this.$emit('update:selection', this.d_selection);
|
|
254
|
-
} else {
|
|
255
|
-
this.onEnterKey(event);
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
findNextOptionIndex(index) {
|
|
259
|
-
const items = utils.DomHandler.find(this.list, 'li.p-orderlist-item');
|
|
260
|
-
const matchedOptionIndex = [...items].findIndex((link) => link.id === index);
|
|
261
|
-
|
|
262
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
|
|
263
|
-
},
|
|
264
|
-
findPrevOptionIndex(index) {
|
|
265
|
-
const items = utils.DomHandler.find(this.list, 'li.p-orderlist-item');
|
|
266
|
-
const matchedOptionIndex = [...items].findIndex((link) => link.id === index);
|
|
267
|
-
|
|
268
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
|
|
269
|
-
},
|
|
270
|
-
changeFocusedOptionIndex(index) {
|
|
271
|
-
const items = utils.DomHandler.find(this.list, 'li.p-orderlist-item');
|
|
272
|
-
|
|
273
|
-
let order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
|
|
274
|
-
|
|
275
|
-
this.focusedOptionIndex = items[order] ? items[order].getAttribute('id') : -1;
|
|
276
|
-
this.scrollInView(this.focusedOptionIndex);
|
|
277
|
-
},
|
|
278
|
-
scrollInView(id) {
|
|
279
|
-
const element = utils.DomHandler.findSingle(this.list, `li[id="${id}"]`);
|
|
280
|
-
|
|
281
|
-
if (element) {
|
|
282
|
-
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
moveUp(event) {
|
|
286
|
-
if (this.d_selection) {
|
|
287
|
-
let value = [...this.modelValue];
|
|
288
|
-
|
|
289
|
-
for (let i = 0; i < this.d_selection.length; i++) {
|
|
290
|
-
let selectedItem = this.d_selection[i];
|
|
291
|
-
let selectedItemIndex = utils.ObjectUtils.findIndexInList(selectedItem, value);
|
|
292
|
-
|
|
293
|
-
if (selectedItemIndex !== 0) {
|
|
294
|
-
let movedItem = value[selectedItemIndex];
|
|
295
|
-
let temp = value[selectedItemIndex - 1];
|
|
296
|
-
|
|
297
|
-
value[selectedItemIndex - 1] = movedItem;
|
|
298
|
-
value[selectedItemIndex] = temp;
|
|
299
|
-
} else {
|
|
300
|
-
break;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
this.reorderDirection = 'up';
|
|
305
|
-
this.$emit('update:modelValue', value);
|
|
306
|
-
this.$emit('reorder', {
|
|
307
|
-
originalEvent: event,
|
|
308
|
-
value: value,
|
|
309
|
-
direction: this.reorderDirection
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
moveTop(event) {
|
|
314
|
-
if (this.d_selection) {
|
|
315
|
-
let value = [...this.modelValue];
|
|
316
|
-
|
|
317
|
-
for (let i = 0; i < this.d_selection.length; i++) {
|
|
318
|
-
let selectedItem = this.d_selection[i];
|
|
319
|
-
let selectedItemIndex = utils.ObjectUtils.findIndexInList(selectedItem, value);
|
|
320
|
-
|
|
321
|
-
if (selectedItemIndex !== 0) {
|
|
322
|
-
let movedItem = value.splice(selectedItemIndex, 1)[0];
|
|
323
|
-
|
|
324
|
-
value.unshift(movedItem);
|
|
325
|
-
} else {
|
|
326
|
-
break;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
this.reorderDirection = 'top';
|
|
331
|
-
this.$emit('update:modelValue', value);
|
|
332
|
-
this.$emit('reorder', {
|
|
333
|
-
originalEvent: event,
|
|
334
|
-
value: value,
|
|
335
|
-
direction: this.reorderDirection
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
moveDown(event) {
|
|
340
|
-
if (this.d_selection) {
|
|
341
|
-
let value = [...this.modelValue];
|
|
342
|
-
|
|
343
|
-
for (let i = this.d_selection.length - 1; i >= 0; i--) {
|
|
344
|
-
let selectedItem = this.d_selection[i];
|
|
345
|
-
let selectedItemIndex = utils.ObjectUtils.findIndexInList(selectedItem, value);
|
|
346
|
-
|
|
347
|
-
if (selectedItemIndex !== value.length - 1) {
|
|
348
|
-
let movedItem = value[selectedItemIndex];
|
|
349
|
-
let temp = value[selectedItemIndex + 1];
|
|
350
|
-
|
|
351
|
-
value[selectedItemIndex + 1] = movedItem;
|
|
352
|
-
value[selectedItemIndex] = temp;
|
|
353
|
-
} else {
|
|
354
|
-
break;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
this.reorderDirection = 'down';
|
|
359
|
-
this.$emit('update:modelValue', value);
|
|
360
|
-
this.$emit('reorder', {
|
|
361
|
-
originalEvent: event,
|
|
362
|
-
value: value,
|
|
363
|
-
direction: this.reorderDirection
|
|
364
|
-
});
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
moveBottom(event) {
|
|
368
|
-
if (this.d_selection) {
|
|
369
|
-
let value = [...this.modelValue];
|
|
370
|
-
|
|
371
|
-
for (let i = this.d_selection.length - 1; i >= 0; i--) {
|
|
372
|
-
let selectedItem = this.d_selection[i];
|
|
373
|
-
let selectedItemIndex = utils.ObjectUtils.findIndexInList(selectedItem, value);
|
|
374
|
-
|
|
375
|
-
if (selectedItemIndex !== value.length - 1) {
|
|
376
|
-
let movedItem = value.splice(selectedItemIndex, 1)[0];
|
|
377
|
-
|
|
378
|
-
value.push(movedItem);
|
|
379
|
-
} else {
|
|
380
|
-
break;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
this.reorderDirection = 'bottom';
|
|
385
|
-
this.$emit('update:modelValue', value);
|
|
386
|
-
this.$emit('reorder', {
|
|
387
|
-
originalEvent: event,
|
|
388
|
-
value: value,
|
|
389
|
-
direction: this.reorderDirection
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
onItemClick(event, item, index) {
|
|
394
|
-
this.itemTouched = false;
|
|
395
|
-
const selectedIndex = utils.ObjectUtils.findIndexInList(item, this.d_selection);
|
|
396
|
-
const selected = selectedIndex != -1;
|
|
397
|
-
const metaSelection = this.itemTouched ? false : this.metaKeySelection;
|
|
398
|
-
const selectedId = utils.DomHandler.find(this.list, '.p-orderlist-item')[index].getAttribute('id');
|
|
399
|
-
|
|
400
|
-
this.focusedOptionIndex = selectedId;
|
|
401
|
-
|
|
402
|
-
if (metaSelection) {
|
|
403
|
-
const metaKey = event.metaKey || event.ctrlKey;
|
|
404
|
-
|
|
405
|
-
if (selected && metaKey) {
|
|
406
|
-
this.d_selection = this.d_selection.filter((val, index) => index !== selectedIndex);
|
|
407
|
-
} else {
|
|
408
|
-
this.d_selection = metaKey ? (this.d_selection ? [...this.d_selection] : []) : [];
|
|
409
|
-
utils.ObjectUtils.insertIntoOrderedArray(item, index, this.d_selection, this.modelValue);
|
|
410
|
-
}
|
|
411
|
-
} else {
|
|
412
|
-
if (selected) {
|
|
413
|
-
this.d_selection = this.d_selection.filter((val, index) => index !== selectedIndex);
|
|
414
|
-
} else {
|
|
415
|
-
this.d_selection = this.d_selection ? [...this.d_selection] : [];
|
|
416
|
-
utils.ObjectUtils.insertIntoOrderedArray(item, index, this.d_selection, this.modelValue);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
this.$emit('update:selection', this.d_selection);
|
|
421
|
-
this.$emit('selection-change', {
|
|
422
|
-
originalEvent: event,
|
|
423
|
-
value: this.d_selection
|
|
424
|
-
});
|
|
425
|
-
},
|
|
426
|
-
onItemTouchEnd() {
|
|
427
|
-
this.itemTouched = true;
|
|
428
|
-
},
|
|
429
|
-
findNextItem(item) {
|
|
430
|
-
let nextItem = item.nextElementSibling;
|
|
431
|
-
|
|
432
|
-
if (nextItem) return !utils.DomHandler.hasClass(nextItem, 'p-orderlist-item') ? this.findNextItem(nextItem) : nextItem;
|
|
433
|
-
else return null;
|
|
434
|
-
},
|
|
435
|
-
findPrevItem(item) {
|
|
436
|
-
let prevItem = item.previousElementSibling;
|
|
437
|
-
|
|
438
|
-
if (prevItem) return !utils.DomHandler.hasClass(prevItem, 'p-orderlist-item') ? this.findPrevItem(prevItem) : prevItem;
|
|
439
|
-
else return null;
|
|
440
|
-
},
|
|
441
|
-
findFirstItem() {
|
|
442
|
-
return utils.DomHandler.findSingle(this.list, '.p-orderlist-item');
|
|
443
|
-
},
|
|
444
|
-
findLastItem() {
|
|
445
|
-
const items = utils.DomHandler.find(this.list, '.p-orderlist-item');
|
|
446
|
-
|
|
447
|
-
return items[items.length - 1];
|
|
448
|
-
},
|
|
449
|
-
itemClass(item, id) {
|
|
450
|
-
return ['p-orderlist-item', { 'p-highlight': this.isSelected(item), 'p-focus': id === this.focusedOptionId }];
|
|
451
|
-
},
|
|
452
|
-
updateListScroll() {
|
|
453
|
-
const listItems = utils.DomHandler.find(this.list, '.p-orderlist-item.p-highlight');
|
|
454
|
-
|
|
455
|
-
if (listItems && listItems.length) {
|
|
456
|
-
switch (this.reorderDirection) {
|
|
457
|
-
case 'up':
|
|
458
|
-
utils.DomHandler.scrollInView(this.list, listItems[0]);
|
|
459
|
-
break;
|
|
460
|
-
|
|
461
|
-
case 'top':
|
|
462
|
-
this.list.scrollTop = 0;
|
|
463
|
-
break;
|
|
464
|
-
|
|
465
|
-
case 'down':
|
|
466
|
-
utils.DomHandler.scrollInView(this.list, listItems[listItems.length - 1]);
|
|
467
|
-
break;
|
|
468
|
-
|
|
469
|
-
case 'bottom':
|
|
470
|
-
this.list.scrollTop = this.list.scrollHeight;
|
|
471
|
-
break;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
},
|
|
475
|
-
createStyle() {
|
|
476
|
-
if (!this.styleElement) {
|
|
477
|
-
this.$el.setAttribute(this.attributeSelector, '');
|
|
478
|
-
this.styleElement = document.createElement('style');
|
|
479
|
-
this.styleElement.type = 'text/css';
|
|
480
|
-
document.head.appendChild(this.styleElement);
|
|
481
|
-
|
|
482
|
-
let innerHTML = `
|
|
483
|
-
@media screen and (max-width: ${this.breakpoint}) {
|
|
484
|
-
.p-orderlist[${this.attributeSelector}] {
|
|
485
|
-
flex-direction: column;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.p-orderlist[${this.attributeSelector}] .p-orderlist-controls {
|
|
489
|
-
padding: var(--content-padding);
|
|
490
|
-
flex-direction: row;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button {
|
|
494
|
-
margin-right: var(--inline-spacing);
|
|
495
|
-
margin-bottom: 0;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
.p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button:last-child {
|
|
499
|
-
margin-right: 0;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
`;
|
|
503
|
-
|
|
504
|
-
this.styleElement.innerHTML = innerHTML;
|
|
505
|
-
}
|
|
506
|
-
},
|
|
507
|
-
destroyStyle() {
|
|
508
|
-
if (this.styleElement) {
|
|
509
|
-
document.head.removeChild(this.styleElement);
|
|
510
|
-
this.styleElement = null;
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
moveDisabled() {
|
|
514
|
-
if (!this.d_selection || !this.d_selection.length) {
|
|
515
|
-
return true;
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
listRef(el) {
|
|
519
|
-
this.list = el ? el.$el : undefined;
|
|
411
|
+
onItemClick: function onItemClick(event, item, index) {
|
|
412
|
+
this.itemTouched = false;
|
|
413
|
+
var selectedIndex = utils.ObjectUtils.findIndexInList(item, this.d_selection);
|
|
414
|
+
var selected = selectedIndex != -1;
|
|
415
|
+
var metaSelection = this.itemTouched ? false : this.metaKeySelection;
|
|
416
|
+
var selectedId = utils.DomHandler.find(this.list, '[data-pc-section="item"]')[index].getAttribute('id');
|
|
417
|
+
this.focusedOptionIndex = selectedId;
|
|
418
|
+
if (metaSelection) {
|
|
419
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
420
|
+
if (selected && metaKey) {
|
|
421
|
+
this.d_selection = this.d_selection.filter(function (val, index) {
|
|
422
|
+
return index !== selectedIndex;
|
|
423
|
+
});
|
|
424
|
+
} else {
|
|
425
|
+
this.d_selection = metaKey ? this.d_selection ? _toConsumableArray(this.d_selection) : [] : [];
|
|
426
|
+
utils.ObjectUtils.insertIntoOrderedArray(item, index, this.d_selection, this.modelValue);
|
|
427
|
+
}
|
|
428
|
+
} else {
|
|
429
|
+
if (selected) {
|
|
430
|
+
this.d_selection = this.d_selection.filter(function (val, index) {
|
|
431
|
+
return index !== selectedIndex;
|
|
432
|
+
});
|
|
433
|
+
} else {
|
|
434
|
+
this.d_selection = this.d_selection ? _toConsumableArray(this.d_selection) : [];
|
|
435
|
+
utils.ObjectUtils.insertIntoOrderedArray(item, index, this.d_selection, this.modelValue);
|
|
520
436
|
}
|
|
437
|
+
}
|
|
438
|
+
this.$emit('update:selection', this.d_selection);
|
|
439
|
+
this.$emit('selection-change', {
|
|
440
|
+
originalEvent: event,
|
|
441
|
+
value: this.d_selection
|
|
442
|
+
});
|
|
521
443
|
},
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
444
|
+
onItemTouchEnd: function onItemTouchEnd() {
|
|
445
|
+
this.itemTouched = true;
|
|
446
|
+
},
|
|
447
|
+
findNextItem: function findNextItem(item) {
|
|
448
|
+
var nextItem = item.nextElementSibling;
|
|
449
|
+
if (nextItem) return !(utils.DomHandler.getAttribute(nextItem, 'data-pc-section') === 'item') ? this.findNextItem(nextItem) : nextItem;else return null;
|
|
450
|
+
},
|
|
451
|
+
findPrevItem: function findPrevItem(item) {
|
|
452
|
+
var prevItem = item.previousElementSibling;
|
|
453
|
+
if (prevItem) return !(utils.DomHandler.getAttribute(nextItem, 'data-pc-section') === 'item') ? this.findPrevItem(prevItem) : prevItem;else return null;
|
|
454
|
+
},
|
|
455
|
+
updateListScroll: function updateListScroll() {
|
|
456
|
+
var listItems = utils.DomHandler.find(this.list, '[data-pc-section="item"][data-p-highlight="true"]');
|
|
457
|
+
if (listItems && listItems.length) {
|
|
458
|
+
switch (this.reorderDirection) {
|
|
459
|
+
case 'up':
|
|
460
|
+
utils.DomHandler.scrollInView(this.list, listItems[0]);
|
|
461
|
+
break;
|
|
462
|
+
case 'top':
|
|
463
|
+
this.list.scrollTop = 0;
|
|
464
|
+
break;
|
|
465
|
+
case 'down':
|
|
466
|
+
utils.DomHandler.scrollInView(this.list, listItems[listItems.length - 1]);
|
|
467
|
+
break;
|
|
468
|
+
case 'bottom':
|
|
469
|
+
this.list.scrollTop = this.list.scrollHeight;
|
|
470
|
+
break;
|
|
548
471
|
}
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
createStyle: function createStyle() {
|
|
475
|
+
if (!this.styleElement && !this.isUnstyled) {
|
|
476
|
+
this.$el.setAttribute(this.attributeSelector, '');
|
|
477
|
+
this.styleElement = document.createElement('style');
|
|
478
|
+
this.styleElement.type = 'text/css';
|
|
479
|
+
document.head.appendChild(this.styleElement);
|
|
480
|
+
var innerHTML = "\n@media screen and (max-width: ".concat(this.breakpoint, ") {\n .p-orderlist[").concat(this.attributeSelector, "] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector, "] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector, "] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector, "] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");
|
|
481
|
+
this.styleElement.innerHTML = innerHTML;
|
|
482
|
+
}
|
|
549
483
|
},
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
AngleDoubleDownIcon: AngleDoubleDownIcon__default["default"]
|
|
484
|
+
destroyStyle: function destroyStyle() {
|
|
485
|
+
if (this.styleElement) {
|
|
486
|
+
document.head.removeChild(this.styleElement);
|
|
487
|
+
this.styleElement = null;
|
|
488
|
+
}
|
|
556
489
|
},
|
|
557
|
-
|
|
558
|
-
|
|
490
|
+
moveDisabled: function moveDisabled() {
|
|
491
|
+
if (!this.d_selection || !this.d_selection.length) {
|
|
492
|
+
return true;
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
listRef: function listRef(el) {
|
|
496
|
+
this.list = el ? el.$el : undefined;
|
|
559
497
|
}
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
disabled: $options.moveDisabled()
|
|
580
|
-
}, $props.moveUpButtonProps, {
|
|
581
|
-
pt: _ctx.ptm('moveUpButton')
|
|
582
|
-
}), {
|
|
583
|
-
icon: vue.withCtx(() => [
|
|
584
|
-
vue.renderSlot(_ctx.$slots, "moveupicon", {}, () => [
|
|
585
|
-
vue.createVNode(_component_AngleUpIcon, vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('moveUpButton')['icon'])), null, 16)
|
|
586
|
-
])
|
|
587
|
-
]),
|
|
588
|
-
_: 3
|
|
589
|
-
}, 16, ["onClick", "aria-label", "disabled", "pt"]),
|
|
590
|
-
vue.createVNode(_component_OLButton, vue.mergeProps({
|
|
591
|
-
type: "button",
|
|
592
|
-
onClick: $options.moveTop,
|
|
593
|
-
"aria-label": $options.moveTopAriaLabel,
|
|
594
|
-
disabled: $options.moveDisabled()
|
|
595
|
-
}, $props.moveTopButtonProps, {
|
|
596
|
-
pt: _ctx.ptm('moveTopButton')
|
|
597
|
-
}), {
|
|
598
|
-
icon: vue.withCtx(() => [
|
|
599
|
-
vue.renderSlot(_ctx.$slots, "movetopicon", {}, () => [
|
|
600
|
-
vue.createVNode(_component_AngleDoubleUpIcon, vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('moveTopButton')['icon'])), null, 16)
|
|
601
|
-
])
|
|
602
|
-
]),
|
|
603
|
-
_: 3
|
|
604
|
-
}, 16, ["onClick", "aria-label", "disabled", "pt"]),
|
|
605
|
-
vue.createVNode(_component_OLButton, vue.mergeProps({
|
|
606
|
-
type: "button",
|
|
607
|
-
onClick: $options.moveDown,
|
|
608
|
-
"aria-label": $options.moveDownAriaLabel,
|
|
609
|
-
disabled: $options.moveDisabled()
|
|
610
|
-
}, $props.moveDownButtonProps, {
|
|
611
|
-
pt: _ctx.ptm('moveDownButton')
|
|
612
|
-
}), {
|
|
613
|
-
icon: vue.withCtx(() => [
|
|
614
|
-
vue.renderSlot(_ctx.$slots, "movedownicon", {}, () => [
|
|
615
|
-
vue.createVNode(_component_AngleDownIcon, vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('moveDownButton')['icon'])), null, 16)
|
|
616
|
-
])
|
|
617
|
-
]),
|
|
618
|
-
_: 3
|
|
619
|
-
}, 16, ["onClick", "aria-label", "disabled", "pt"]),
|
|
620
|
-
vue.createVNode(_component_OLButton, vue.mergeProps({
|
|
621
|
-
type: "button",
|
|
622
|
-
onClick: $options.moveBottom,
|
|
623
|
-
"aria-label": $options.moveBottomAriaLabel,
|
|
624
|
-
disabled: $options.moveDisabled()
|
|
625
|
-
}, $props.moveBottomButtonProps, {
|
|
626
|
-
pt: _ctx.ptm('moveBottomButton')
|
|
627
|
-
}), {
|
|
628
|
-
icon: vue.withCtx(() => [
|
|
629
|
-
vue.renderSlot(_ctx.$slots, "movebottomicon", {}, () => [
|
|
630
|
-
vue.createVNode(_component_AngleDoubleDownIcon, vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('moveBottomButton')['icon'])), null, 16)
|
|
631
|
-
])
|
|
632
|
-
]),
|
|
633
|
-
_: 3
|
|
634
|
-
}, 16, ["onClick", "aria-label", "disabled", "pt"]),
|
|
635
|
-
vue.renderSlot(_ctx.$slots, "controlsend")
|
|
636
|
-
], 16),
|
|
637
|
-
vue.createElementVNode("div", vue.mergeProps({ class: "p-orderlist-list-container" }, _ctx.ptm('container')), [
|
|
638
|
-
(_ctx.$slots.header)
|
|
639
|
-
? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
640
|
-
key: 0,
|
|
641
|
-
class: "p-orderlist-header"
|
|
642
|
-
}, _ctx.ptm('header')), [
|
|
643
|
-
vue.renderSlot(_ctx.$slots, "header")
|
|
644
|
-
], 16))
|
|
645
|
-
: vue.createCommentVNode("", true),
|
|
646
|
-
vue.createVNode(vue.TransitionGroup, vue.mergeProps({
|
|
647
|
-
ref: $options.listRef,
|
|
648
|
-
id: $data.id + '_list',
|
|
649
|
-
name: "p-orderlist-flip",
|
|
650
|
-
tag: "ul",
|
|
651
|
-
class: "p-orderlist-list",
|
|
652
|
-
style: $props.listStyle,
|
|
653
|
-
role: "listbox",
|
|
654
|
-
"aria-multiselectable": "true",
|
|
655
|
-
tabindex: $props.tabindex,
|
|
656
|
-
"aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
|
|
657
|
-
"aria-label": _ctx.ariaLabel,
|
|
658
|
-
"aria-labelledby": _ctx.ariaLabelledby,
|
|
659
|
-
onFocus: $options.onListFocus,
|
|
660
|
-
onBlur: $options.onListBlur,
|
|
661
|
-
onKeydown: $options.onListKeyDown
|
|
662
|
-
}, { ...$props.listProps, ..._ctx.ptm('list') }), {
|
|
663
|
-
default: vue.withCtx(() => [
|
|
664
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.modelValue, (item, i) => {
|
|
665
|
-
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
666
|
-
key: $options.getItemKey(item, i),
|
|
667
|
-
id: $data.id + '_' + i,
|
|
668
|
-
role: "option",
|
|
669
|
-
class: $options.itemClass(item, `${$data.id}_${i}`),
|
|
670
|
-
onClick: $event => ($options.onItemClick($event, item, i)),
|
|
671
|
-
onTouchend: _cache[0] || (_cache[0] = (...args) => ($options.onItemTouchEnd && $options.onItemTouchEnd(...args))),
|
|
672
|
-
"aria-selected": $options.isSelected(item),
|
|
673
|
-
onMousedown: $event => ($options.onOptionMouseDown(i))
|
|
674
|
-
}, $options.getPTOptions(item, 'item')), [
|
|
675
|
-
vue.renderSlot(_ctx.$slots, "item", {
|
|
676
|
-
item: item,
|
|
677
|
-
index: i
|
|
678
|
-
})
|
|
679
|
-
], 16, _hoisted_1)), [
|
|
680
|
-
[_directive_ripple]
|
|
681
|
-
])
|
|
682
|
-
}), 128))
|
|
683
|
-
]),
|
|
684
|
-
_: 3
|
|
685
|
-
}, 16, ["id", "style", "tabindex", "aria-activedescendant", "aria-label", "aria-labelledby", "onFocus", "onBlur", "onKeydown"])
|
|
686
|
-
], 16)
|
|
687
|
-
], 16))
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
function styleInject(css, ref) {
|
|
691
|
-
if ( ref === void 0 ) ref = {};
|
|
692
|
-
var insertAt = ref.insertAt;
|
|
693
|
-
|
|
694
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
695
|
-
|
|
696
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
697
|
-
var style = document.createElement('style');
|
|
698
|
-
style.type = 'text/css';
|
|
699
|
-
|
|
700
|
-
if (insertAt === 'top') {
|
|
701
|
-
if (head.firstChild) {
|
|
702
|
-
head.insertBefore(style, head.firstChild);
|
|
703
|
-
} else {
|
|
704
|
-
head.appendChild(style);
|
|
498
|
+
},
|
|
499
|
+
computed: {
|
|
500
|
+
attributeSelector: function attributeSelector() {
|
|
501
|
+
return utils.UniqueComponentId();
|
|
502
|
+
},
|
|
503
|
+
focusedOptionId: function focusedOptionId() {
|
|
504
|
+
return this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : null;
|
|
505
|
+
},
|
|
506
|
+
moveUpAriaLabel: function moveUpAriaLabel() {
|
|
507
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveUp : undefined;
|
|
508
|
+
},
|
|
509
|
+
moveTopAriaLabel: function moveTopAriaLabel() {
|
|
510
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveTop : undefined;
|
|
511
|
+
},
|
|
512
|
+
moveDownAriaLabel: function moveDownAriaLabel() {
|
|
513
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveDown : undefined;
|
|
514
|
+
},
|
|
515
|
+
moveBottomAriaLabel: function moveBottomAriaLabel() {
|
|
516
|
+
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.moveBottom : undefined;
|
|
705
517
|
}
|
|
706
|
-
}
|
|
707
|
-
|
|
518
|
+
},
|
|
519
|
+
components: {
|
|
520
|
+
OLButton: Button__default["default"],
|
|
521
|
+
AngleUpIcon: AngleUpIcon__default["default"],
|
|
522
|
+
AngleDownIcon: AngleDownIcon__default["default"],
|
|
523
|
+
AngleDoubleUpIcon: AngleDoubleUpIcon__default["default"],
|
|
524
|
+
AngleDoubleDownIcon: AngleDoubleDownIcon__default["default"]
|
|
525
|
+
},
|
|
526
|
+
directives: {
|
|
527
|
+
ripple: Ripple__default["default"]
|
|
708
528
|
}
|
|
529
|
+
};
|
|
709
530
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
531
|
+
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); }
|
|
532
|
+
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; }
|
|
533
|
+
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; }
|
|
534
|
+
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; }
|
|
535
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
536
|
+
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); }
|
|
537
|
+
var _hoisted_1 = ["id", "onClick", "aria-selected", "onMousedown", "data-p-highlight", "data-p-focused"];
|
|
538
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
539
|
+
var _component_AngleUpIcon = vue.resolveComponent("AngleUpIcon");
|
|
540
|
+
var _component_OLButton = vue.resolveComponent("OLButton");
|
|
541
|
+
var _component_AngleDoubleUpIcon = vue.resolveComponent("AngleDoubleUpIcon");
|
|
542
|
+
var _component_AngleDownIcon = vue.resolveComponent("AngleDownIcon");
|
|
543
|
+
var _component_AngleDoubleDownIcon = vue.resolveComponent("AngleDoubleDownIcon");
|
|
544
|
+
var _directive_ripple = vue.resolveDirective("ripple");
|
|
545
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
546
|
+
"class": _ctx.cx('root')
|
|
547
|
+
}, _ctx.ptm('root')), [vue.createElementVNode("div", vue.mergeProps({
|
|
548
|
+
"class": _ctx.cx('controls')
|
|
549
|
+
}, _ctx.ptm('controls')), [vue.renderSlot(_ctx.$slots, "controlsstart"), vue.createVNode(_component_OLButton, vue.mergeProps({
|
|
550
|
+
type: "button",
|
|
551
|
+
onClick: $options.moveUp,
|
|
552
|
+
"aria-label": $options.moveUpAriaLabel,
|
|
553
|
+
disabled: $options.moveDisabled()
|
|
554
|
+
}, _objectSpread(_objectSpread({}, _ctx.moveUpButtonProps), _ctx.ptm('moveUpButton')), {
|
|
555
|
+
unstyled: _ctx.unstyled
|
|
556
|
+
}), {
|
|
557
|
+
icon: vue.withCtx(function () {
|
|
558
|
+
return [vue.renderSlot(_ctx.$slots, "moveupicon", {}, function () {
|
|
559
|
+
return [vue.createVNode(_component_AngleUpIcon, vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('moveUpButton')['icon'])), null, 16)];
|
|
560
|
+
})];
|
|
561
|
+
}),
|
|
562
|
+
_: 3
|
|
563
|
+
}, 16, ["onClick", "aria-label", "disabled", "unstyled"]), vue.createVNode(_component_OLButton, vue.mergeProps({
|
|
564
|
+
type: "button",
|
|
565
|
+
onClick: $options.moveTop,
|
|
566
|
+
"aria-label": $options.moveTopAriaLabel,
|
|
567
|
+
disabled: $options.moveDisabled()
|
|
568
|
+
}, _objectSpread(_objectSpread({}, _ctx.moveTopButtonProps), _ctx.ptm('moveTopButton')), {
|
|
569
|
+
unstyled: _ctx.unstyled
|
|
570
|
+
}), {
|
|
571
|
+
icon: vue.withCtx(function () {
|
|
572
|
+
return [vue.renderSlot(_ctx.$slots, "movetopicon", {}, function () {
|
|
573
|
+
return [vue.createVNode(_component_AngleDoubleUpIcon, vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('moveTopButton')['icon'])), null, 16)];
|
|
574
|
+
})];
|
|
575
|
+
}),
|
|
576
|
+
_: 3
|
|
577
|
+
}, 16, ["onClick", "aria-label", "disabled", "unstyled"]), vue.createVNode(_component_OLButton, vue.mergeProps({
|
|
578
|
+
type: "button",
|
|
579
|
+
onClick: $options.moveDown,
|
|
580
|
+
"aria-label": $options.moveDownAriaLabel,
|
|
581
|
+
disabled: $options.moveDisabled()
|
|
582
|
+
}, _objectSpread(_objectSpread({}, _ctx.moveDownButtonProps), _ctx.ptm('moveDownButton')), {
|
|
583
|
+
unstyled: _ctx.unstyled
|
|
584
|
+
}), {
|
|
585
|
+
icon: vue.withCtx(function () {
|
|
586
|
+
return [vue.renderSlot(_ctx.$slots, "movedownicon", {}, function () {
|
|
587
|
+
return [vue.createVNode(_component_AngleDownIcon, vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('moveDownButton')['icon'])), null, 16)];
|
|
588
|
+
})];
|
|
589
|
+
}),
|
|
590
|
+
_: 3
|
|
591
|
+
}, 16, ["onClick", "aria-label", "disabled", "unstyled"]), vue.createVNode(_component_OLButton, vue.mergeProps({
|
|
592
|
+
type: "button",
|
|
593
|
+
onClick: $options.moveBottom,
|
|
594
|
+
"aria-label": $options.moveBottomAriaLabel,
|
|
595
|
+
disabled: $options.moveDisabled()
|
|
596
|
+
}, _objectSpread(_objectSpread({}, _ctx.moveBottomButtonProps), _ctx.ptm('moveBottomButton')), {
|
|
597
|
+
unstyled: _ctx.unstyled
|
|
598
|
+
}), {
|
|
599
|
+
icon: vue.withCtx(function () {
|
|
600
|
+
return [vue.renderSlot(_ctx.$slots, "movebottomicon", {}, function () {
|
|
601
|
+
return [vue.createVNode(_component_AngleDoubleDownIcon, vue.normalizeProps(vue.guardReactiveProps(_ctx.ptm('moveBottomButton')['icon'])), null, 16)];
|
|
602
|
+
})];
|
|
603
|
+
}),
|
|
604
|
+
_: 3
|
|
605
|
+
}, 16, ["onClick", "aria-label", "disabled", "unstyled"]), vue.renderSlot(_ctx.$slots, "controlsend")], 16), vue.createElementVNode("div", vue.mergeProps({
|
|
606
|
+
"class": _ctx.cx('container')
|
|
607
|
+
}, _ctx.ptm('container')), [_ctx.$slots.header ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
608
|
+
key: 0,
|
|
609
|
+
"class": _ctx.cx('header')
|
|
610
|
+
}, _ctx.ptm('header')), [vue.renderSlot(_ctx.$slots, "header")], 16)) : vue.createCommentVNode("", true), vue.createVNode(vue.TransitionGroup, vue.mergeProps({
|
|
611
|
+
ref: $options.listRef,
|
|
612
|
+
id: $data.id + '_list',
|
|
613
|
+
name: "p-orderlist-flip",
|
|
614
|
+
tag: "ul",
|
|
615
|
+
"class": _ctx.cx('list'),
|
|
616
|
+
style: _ctx.listStyle,
|
|
617
|
+
role: "listbox",
|
|
618
|
+
"aria-multiselectable": "true",
|
|
619
|
+
tabindex: _ctx.tabindex,
|
|
620
|
+
"aria-activedescendant": $data.focused ? $options.focusedOptionId : undefined,
|
|
621
|
+
"aria-label": _ctx.ariaLabel,
|
|
622
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
623
|
+
onFocus: $options.onListFocus,
|
|
624
|
+
onBlur: $options.onListBlur,
|
|
625
|
+
onKeydown: $options.onListKeyDown
|
|
626
|
+
}, _objectSpread(_objectSpread({}, _ctx.listProps), _ctx.ptm('list'))), {
|
|
627
|
+
"default": vue.withCtx(function () {
|
|
628
|
+
return [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.modelValue, function (item, i) {
|
|
629
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
|
|
630
|
+
key: $options.getItemKey(item, i),
|
|
631
|
+
id: $data.id + '_' + i,
|
|
632
|
+
role: "option",
|
|
633
|
+
"class": _ctx.cx('item', {
|
|
634
|
+
item: item,
|
|
635
|
+
id: "".concat($data.id, "_").concat(i)
|
|
636
|
+
}),
|
|
637
|
+
onClick: function onClick($event) {
|
|
638
|
+
return $options.onItemClick($event, item, i);
|
|
639
|
+
},
|
|
640
|
+
onTouchend: _cache[0] || (_cache[0] = function () {
|
|
641
|
+
return $options.onItemTouchEnd && $options.onItemTouchEnd.apply($options, arguments);
|
|
642
|
+
}),
|
|
643
|
+
"aria-selected": $options.isSelected(item),
|
|
644
|
+
onMousedown: function onMousedown($event) {
|
|
645
|
+
return $options.onOptionMouseDown(i);
|
|
646
|
+
}
|
|
647
|
+
}, $options.getPTOptions(item, 'item'), {
|
|
648
|
+
"data-p-highlight": $options.isSelected(item),
|
|
649
|
+
"data-p-focused": "".concat($data.id, "_").concat(i) === $options.focusedOptionId
|
|
650
|
+
}), [vue.renderSlot(_ctx.$slots, "item", {
|
|
651
|
+
item: item,
|
|
652
|
+
index: i
|
|
653
|
+
})], 16, _hoisted_1)), [[_directive_ripple]]);
|
|
654
|
+
}), 128))];
|
|
655
|
+
}),
|
|
656
|
+
_: 3
|
|
657
|
+
}, 16, ["id", "class", "style", "tabindex", "aria-activedescendant", "aria-label", "aria-labelledby", "onFocus", "onBlur", "onKeydown"])], 16)], 16);
|
|
715
658
|
}
|
|
716
659
|
|
|
717
|
-
var css_248z = "\n.p-orderlist {\n display: flex;\n}\n.p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n.p-orderlist-list-container {\n flex: 1 1 auto;\n}\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n";
|
|
718
|
-
styleInject(css_248z);
|
|
719
|
-
|
|
720
660
|
script.render = render;
|
|
721
661
|
|
|
722
662
|
return script;
|
|
723
663
|
|
|
724
|
-
})(primevue.
|
|
664
|
+
})(primevue.button, primevue.icons.angledoubledown, primevue.icons.angledoubleup, primevue.icons.angledown, primevue.icons.angleup, primevue.ripple, primevue.utils, primevue.basecomponent, primevue.usestyle, Vue);
|