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/utils/utils.esm.js
CHANGED
|
@@ -1,1027 +1,989 @@
|
|
|
1
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
2
|
+
function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2(); }
|
|
3
|
+
function _nonIterableSpread$2() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
|
|
6
|
+
function _typeof$2(obj) { "@babel/helpers - typeof"; return _typeof$2 = "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$2(obj); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(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$2(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray$2(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; }
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1
13
|
var DomHandler = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
if (
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
findSingle(element, selector) {
|
|
175
|
-
return this.isElement(element) ? element.querySelector(selector) : null;
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
getHeight(el) {
|
|
179
|
-
if (el) {
|
|
180
|
-
let height = el.offsetHeight;
|
|
181
|
-
let style = getComputedStyle(el);
|
|
182
|
-
|
|
183
|
-
height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
|
|
184
|
-
|
|
185
|
-
return height;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
return 0;
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
getWidth(el) {
|
|
192
|
-
if (el) {
|
|
193
|
-
let width = el.offsetWidth;
|
|
194
|
-
let style = getComputedStyle(el);
|
|
195
|
-
|
|
196
|
-
width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
|
|
197
|
-
|
|
198
|
-
return width;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
return 0;
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
absolutePosition(element, target) {
|
|
205
|
-
if (element) {
|
|
206
|
-
let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
|
|
207
|
-
let elementOuterHeight = elementDimensions.height;
|
|
208
|
-
let elementOuterWidth = elementDimensions.width;
|
|
209
|
-
let targetOuterHeight = target.offsetHeight;
|
|
210
|
-
let targetOuterWidth = target.offsetWidth;
|
|
211
|
-
let targetOffset = target.getBoundingClientRect();
|
|
212
|
-
let windowScrollTop = this.getWindowScrollTop();
|
|
213
|
-
let windowScrollLeft = this.getWindowScrollLeft();
|
|
214
|
-
let viewport = this.getViewport();
|
|
215
|
-
let top, left;
|
|
216
|
-
|
|
217
|
-
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
218
|
-
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
219
|
-
element.style.transformOrigin = 'bottom';
|
|
220
|
-
|
|
221
|
-
if (top < 0) {
|
|
222
|
-
top = windowScrollTop;
|
|
223
|
-
}
|
|
224
|
-
} else {
|
|
225
|
-
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
226
|
-
element.style.transformOrigin = 'top';
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);
|
|
230
|
-
else left = targetOffset.left + windowScrollLeft;
|
|
231
|
-
|
|
232
|
-
element.style.top = top + 'px';
|
|
233
|
-
element.style.left = left + 'px';
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
relativePosition(element, target) {
|
|
238
|
-
if (element) {
|
|
239
|
-
let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
|
|
240
|
-
const targetHeight = target.offsetHeight;
|
|
241
|
-
const targetOffset = target.getBoundingClientRect();
|
|
242
|
-
const viewport = this.getViewport();
|
|
243
|
-
let top, left;
|
|
244
|
-
|
|
245
|
-
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
246
|
-
top = -1 * elementDimensions.height;
|
|
247
|
-
element.style.transformOrigin = 'bottom';
|
|
248
|
-
|
|
249
|
-
if (targetOffset.top + top < 0) {
|
|
250
|
-
top = -1 * targetOffset.top;
|
|
251
|
-
}
|
|
252
|
-
} else {
|
|
253
|
-
top = targetHeight;
|
|
254
|
-
element.style.transformOrigin = 'top';
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
if (elementDimensions.width > viewport.width) {
|
|
258
|
-
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
259
|
-
left = targetOffset.left * -1;
|
|
260
|
-
} else if (targetOffset.left + elementDimensions.width > viewport.width) {
|
|
261
|
-
// element wider then viewport but can be fit on screen (align at right side of viewport)
|
|
262
|
-
left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
|
|
263
|
-
} else {
|
|
264
|
-
// element fits on screen (align with target)
|
|
265
|
-
left = 0;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
element.style.top = top + 'px';
|
|
269
|
-
element.style.left = left + 'px';
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
getParents(element, parents = []) {
|
|
274
|
-
return element['parentNode'] === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));
|
|
275
|
-
},
|
|
276
|
-
|
|
277
|
-
getScrollableParents(element) {
|
|
278
|
-
let scrollableParents = [];
|
|
279
|
-
|
|
280
|
-
if (element) {
|
|
281
|
-
let parents = this.getParents(element);
|
|
282
|
-
const overflowRegex = /(auto|scroll)/;
|
|
283
|
-
|
|
284
|
-
const overflowCheck = (node) => {
|
|
285
|
-
let styleDeclaration = window['getComputedStyle'](node, null);
|
|
286
|
-
|
|
287
|
-
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
for (let parent of parents) {
|
|
291
|
-
let scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
292
|
-
|
|
293
|
-
if (scrollSelectors) {
|
|
294
|
-
let selectors = scrollSelectors.split(',');
|
|
295
|
-
|
|
296
|
-
for (let selector of selectors) {
|
|
297
|
-
let el = this.findSingle(parent, selector);
|
|
298
|
-
|
|
299
|
-
if (el && overflowCheck(el)) {
|
|
300
|
-
scrollableParents.push(el);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
if (parent.nodeType !== 9 && overflowCheck(parent)) {
|
|
306
|
-
scrollableParents.push(parent);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
return scrollableParents;
|
|
312
|
-
},
|
|
313
|
-
|
|
314
|
-
getHiddenElementOuterHeight(element) {
|
|
315
|
-
if (element) {
|
|
316
|
-
element.style.visibility = 'hidden';
|
|
317
|
-
element.style.display = 'block';
|
|
318
|
-
let elementHeight = element.offsetHeight;
|
|
319
|
-
|
|
320
|
-
element.style.display = 'none';
|
|
321
|
-
element.style.visibility = 'visible';
|
|
322
|
-
|
|
323
|
-
return elementHeight;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
return 0;
|
|
327
|
-
},
|
|
328
|
-
|
|
329
|
-
getHiddenElementOuterWidth(element) {
|
|
330
|
-
if (element) {
|
|
331
|
-
element.style.visibility = 'hidden';
|
|
332
|
-
element.style.display = 'block';
|
|
333
|
-
let elementWidth = element.offsetWidth;
|
|
334
|
-
|
|
335
|
-
element.style.display = 'none';
|
|
336
|
-
element.style.visibility = 'visible';
|
|
337
|
-
|
|
338
|
-
return elementWidth;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
return 0;
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
getHiddenElementDimensions(element) {
|
|
345
|
-
if (element) {
|
|
346
|
-
let dimensions = {};
|
|
347
|
-
|
|
348
|
-
element.style.visibility = 'hidden';
|
|
349
|
-
element.style.display = 'block';
|
|
350
|
-
dimensions.width = element.offsetWidth;
|
|
351
|
-
dimensions.height = element.offsetHeight;
|
|
352
|
-
element.style.display = 'none';
|
|
353
|
-
element.style.visibility = 'visible';
|
|
354
|
-
|
|
355
|
-
return dimensions;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
return 0;
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
fadeIn(element, duration) {
|
|
362
|
-
if (element) {
|
|
363
|
-
element.style.opacity = 0;
|
|
364
|
-
|
|
365
|
-
let last = +new Date();
|
|
366
|
-
let opacity = 0;
|
|
367
|
-
|
|
368
|
-
let tick = function () {
|
|
369
|
-
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
370
|
-
element.style.opacity = opacity;
|
|
371
|
-
last = +new Date();
|
|
372
|
-
|
|
373
|
-
if (+opacity < 1) {
|
|
374
|
-
(window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16);
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
tick();
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
|
|
382
|
-
fadeOut(element, ms) {
|
|
383
|
-
if (element) {
|
|
384
|
-
let opacity = 1,
|
|
385
|
-
interval = 50,
|
|
386
|
-
duration = ms,
|
|
387
|
-
gap = interval / duration;
|
|
388
|
-
|
|
389
|
-
let fading = setInterval(() => {
|
|
390
|
-
opacity -= gap;
|
|
391
|
-
|
|
392
|
-
if (opacity <= 0) {
|
|
393
|
-
opacity = 0;
|
|
394
|
-
clearInterval(fading);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
element.style.opacity = opacity;
|
|
398
|
-
}, interval);
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
getUserAgent() {
|
|
403
|
-
return navigator.userAgent;
|
|
404
|
-
},
|
|
405
|
-
|
|
406
|
-
appendChild(element, target) {
|
|
407
|
-
if (this.isElement(target)) target.appendChild(element);
|
|
408
|
-
else if (target.el && target.elElement) target.elElement.appendChild(element);
|
|
409
|
-
else throw new Error('Cannot append ' + target + ' to ' + element);
|
|
410
|
-
},
|
|
411
|
-
|
|
412
|
-
isElement(obj) {
|
|
413
|
-
return typeof HTMLElement === 'object' ? obj instanceof HTMLElement : obj && typeof obj === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
|
|
414
|
-
},
|
|
415
|
-
|
|
416
|
-
scrollInView(container, item) {
|
|
417
|
-
let borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');
|
|
418
|
-
let borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
|
|
419
|
-
let paddingTopValue = getComputedStyle(container).getPropertyValue('paddingTop');
|
|
420
|
-
let paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;
|
|
421
|
-
let containerRect = container.getBoundingClientRect();
|
|
422
|
-
let itemRect = item.getBoundingClientRect();
|
|
423
|
-
let offset = itemRect.top + document.body.scrollTop - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;
|
|
424
|
-
let scroll = container.scrollTop;
|
|
425
|
-
let elementHeight = container.clientHeight;
|
|
426
|
-
let itemHeight = this.getOuterHeight(item);
|
|
427
|
-
|
|
428
|
-
if (offset < 0) {
|
|
429
|
-
container.scrollTop = scroll + offset;
|
|
430
|
-
} else if (offset + itemHeight > elementHeight) {
|
|
431
|
-
container.scrollTop = scroll + offset - elementHeight + itemHeight;
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
|
|
435
|
-
clearSelection() {
|
|
436
|
-
if (window.getSelection) {
|
|
437
|
-
if (window.getSelection().empty) {
|
|
438
|
-
window.getSelection().empty();
|
|
439
|
-
} else if (window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {
|
|
440
|
-
window.getSelection().removeAllRanges();
|
|
14
|
+
innerWidth: function innerWidth(el) {
|
|
15
|
+
if (el) {
|
|
16
|
+
var width = el.offsetWidth;
|
|
17
|
+
var style = getComputedStyle(el);
|
|
18
|
+
width += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
|
|
19
|
+
return width;
|
|
20
|
+
}
|
|
21
|
+
return 0;
|
|
22
|
+
},
|
|
23
|
+
width: function width(el) {
|
|
24
|
+
if (el) {
|
|
25
|
+
var width = el.offsetWidth;
|
|
26
|
+
var style = getComputedStyle(el);
|
|
27
|
+
width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
|
|
28
|
+
return width;
|
|
29
|
+
}
|
|
30
|
+
return 0;
|
|
31
|
+
},
|
|
32
|
+
getWindowScrollTop: function getWindowScrollTop() {
|
|
33
|
+
var doc = document.documentElement;
|
|
34
|
+
return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
|
|
35
|
+
},
|
|
36
|
+
getWindowScrollLeft: function getWindowScrollLeft() {
|
|
37
|
+
var doc = document.documentElement;
|
|
38
|
+
return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
|
|
39
|
+
},
|
|
40
|
+
getOuterWidth: function getOuterWidth(el, margin) {
|
|
41
|
+
if (el) {
|
|
42
|
+
var width = el.offsetWidth;
|
|
43
|
+
if (margin) {
|
|
44
|
+
var style = getComputedStyle(el);
|
|
45
|
+
width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
46
|
+
}
|
|
47
|
+
return width;
|
|
48
|
+
}
|
|
49
|
+
return 0;
|
|
50
|
+
},
|
|
51
|
+
getOuterHeight: function getOuterHeight(el, margin) {
|
|
52
|
+
if (el) {
|
|
53
|
+
var height = el.offsetHeight;
|
|
54
|
+
if (margin) {
|
|
55
|
+
var style = getComputedStyle(el);
|
|
56
|
+
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
57
|
+
}
|
|
58
|
+
return height;
|
|
59
|
+
}
|
|
60
|
+
return 0;
|
|
61
|
+
},
|
|
62
|
+
getClientHeight: function getClientHeight(el, margin) {
|
|
63
|
+
if (el) {
|
|
64
|
+
var height = el.clientHeight;
|
|
65
|
+
if (margin) {
|
|
66
|
+
var style = getComputedStyle(el);
|
|
67
|
+
height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
68
|
+
}
|
|
69
|
+
return height;
|
|
70
|
+
}
|
|
71
|
+
return 0;
|
|
72
|
+
},
|
|
73
|
+
getViewport: function getViewport() {
|
|
74
|
+
var win = window,
|
|
75
|
+
d = document,
|
|
76
|
+
e = d.documentElement,
|
|
77
|
+
g = d.getElementsByTagName('body')[0],
|
|
78
|
+
w = win.innerWidth || e.clientWidth || g.clientWidth,
|
|
79
|
+
h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
80
|
+
return {
|
|
81
|
+
width: w,
|
|
82
|
+
height: h
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
getOffset: function getOffset(el) {
|
|
86
|
+
if (el) {
|
|
87
|
+
var rect = el.getBoundingClientRect();
|
|
88
|
+
return {
|
|
89
|
+
top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
|
|
90
|
+
left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0)
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
top: 'auto',
|
|
95
|
+
left: 'auto'
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
index: function index(element) {
|
|
99
|
+
if (element) {
|
|
100
|
+
var children = element.parentNode.childNodes;
|
|
101
|
+
var num = 0;
|
|
102
|
+
for (var i = 0; i < children.length; i++) {
|
|
103
|
+
if (children[i] === element) return num;
|
|
104
|
+
if (children[i].nodeType === 1) num++;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return -1;
|
|
108
|
+
},
|
|
109
|
+
addMultipleClasses: function addMultipleClasses(element, className) {
|
|
110
|
+
var _this = this;
|
|
111
|
+
if (element && className) {
|
|
112
|
+
className.split(' ').forEach(function (style) {
|
|
113
|
+
return _this.addClass(element, style);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
addClass: function addClass(element, className) {
|
|
118
|
+
if (element && className && !this.hasClass(element, className)) {
|
|
119
|
+
if (element.classList) element.classList.add(className);else element.className += ' ' + className;
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
removeClass: function removeClass(element, className) {
|
|
123
|
+
if (element && className) {
|
|
124
|
+
if (element.classList) element.classList.remove(className);else element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
hasClass: function hasClass(element, className) {
|
|
128
|
+
if (element) {
|
|
129
|
+
if (element.classList) return element.classList.contains(className);else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
130
|
+
}
|
|
131
|
+
return false;
|
|
132
|
+
},
|
|
133
|
+
addStyles: function addStyles(element) {
|
|
134
|
+
var styles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
135
|
+
if (element) {
|
|
136
|
+
Object.entries(styles).forEach(function (_ref) {
|
|
137
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
138
|
+
key = _ref2[0],
|
|
139
|
+
value = _ref2[1];
|
|
140
|
+
return element.style[key] = value;
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
find: function find(element, selector) {
|
|
145
|
+
return this.isElement(element) ? element.querySelectorAll(selector) : [];
|
|
146
|
+
},
|
|
147
|
+
findSingle: function findSingle(element, selector) {
|
|
148
|
+
return this.isElement(element) ? element.querySelector(selector) : null;
|
|
149
|
+
},
|
|
150
|
+
createElement: function createElement(type) {
|
|
151
|
+
var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
152
|
+
if (type) {
|
|
153
|
+
var element = document.createElement(type);
|
|
154
|
+
this.setAttributes(element, attributes);
|
|
155
|
+
for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
156
|
+
children[_key - 2] = arguments[_key];
|
|
157
|
+
}
|
|
158
|
+
element.append.apply(element, children);
|
|
159
|
+
return element;
|
|
160
|
+
}
|
|
161
|
+
return undefined;
|
|
162
|
+
},
|
|
163
|
+
setAttributes: function setAttributes(element) {
|
|
164
|
+
var _this2 = this;
|
|
165
|
+
var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
166
|
+
if (element) {
|
|
167
|
+
var computedStyles = function computedStyles(rule, value) {
|
|
168
|
+
var _element$$attrs, _element$$attrs2;
|
|
169
|
+
var styles = element !== null && element !== void 0 && (_element$$attrs = element.$attrs) !== null && _element$$attrs !== void 0 && _element$$attrs[rule] ? [element === null || element === void 0 || (_element$$attrs2 = element.$attrs) === null || _element$$attrs2 === void 0 ? void 0 : _element$$attrs2[rule]] : [];
|
|
170
|
+
return [value].flat().reduce(function (cv, v) {
|
|
171
|
+
if (v !== null && v !== undefined) {
|
|
172
|
+
var type = _typeof$2(v);
|
|
173
|
+
if (type === 'string' || type === 'number') {
|
|
174
|
+
cv.push(v);
|
|
175
|
+
} else if (type === 'object') {
|
|
176
|
+
var _cv = Array.isArray(v) ? computedStyles(rule, v) : Object.entries(v).map(function (_ref3) {
|
|
177
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
178
|
+
_k = _ref4[0],
|
|
179
|
+
_v = _ref4[1];
|
|
180
|
+
return rule === 'style' && (!!_v || _v === 0) ? "".concat(_k.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(), ":").concat(_v) : !!_v ? _k : undefined;
|
|
181
|
+
});
|
|
182
|
+
cv = _cv.length ? cv.concat(_cv.filter(function (c) {
|
|
183
|
+
return !!c;
|
|
184
|
+
})) : cv;
|
|
441
185
|
}
|
|
442
|
-
|
|
186
|
+
}
|
|
187
|
+
return cv;
|
|
188
|
+
}, styles);
|
|
189
|
+
};
|
|
190
|
+
Object.entries(attributes).forEach(function (_ref5) {
|
|
191
|
+
var _ref6 = _slicedToArray(_ref5, 2),
|
|
192
|
+
key = _ref6[0],
|
|
193
|
+
value = _ref6[1];
|
|
194
|
+
if (value !== undefined && value !== null) {
|
|
195
|
+
var matchedEvent = key.match(/^on(.+)/);
|
|
196
|
+
if (matchedEvent) {
|
|
197
|
+
element.addEventListener(matchedEvent[1].toLowerCase(), value);
|
|
198
|
+
} else if (key === 'p-bind') {
|
|
199
|
+
_this2.setAttributes(element, value);
|
|
200
|
+
} else {
|
|
201
|
+
value = key === 'class' ? _toConsumableArray$2(new Set(computedStyles('class', value))).join(' ').trim() : key === 'style' ? computedStyles('style', value).join(';').trim() : value;
|
|
202
|
+
(element.$attrs = element.$attrs || {}) && (element.$attrs[key] = value);
|
|
203
|
+
element.setAttribute(key, value);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
getAttribute: function getAttribute(element, name) {
|
|
210
|
+
if (element) {
|
|
211
|
+
var value = element.getAttribute(name);
|
|
212
|
+
if (!isNaN(value)) {
|
|
213
|
+
return +value;
|
|
214
|
+
}
|
|
215
|
+
if (value === 'true' || value === 'false') {
|
|
216
|
+
return value === 'true';
|
|
217
|
+
}
|
|
218
|
+
return value;
|
|
219
|
+
}
|
|
220
|
+
return undefined;
|
|
221
|
+
},
|
|
222
|
+
isAttributeEquals: function isAttributeEquals(element, name, value) {
|
|
223
|
+
return element ? this.getAttribute(element, name) === value : false;
|
|
224
|
+
},
|
|
225
|
+
isAttributeNotEquals: function isAttributeNotEquals(element, name, value) {
|
|
226
|
+
return !this.isAttributeEquals(element, name, value);
|
|
227
|
+
},
|
|
228
|
+
getHeight: function getHeight(el) {
|
|
229
|
+
if (el) {
|
|
230
|
+
var height = el.offsetHeight;
|
|
231
|
+
var style = getComputedStyle(el);
|
|
232
|
+
height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
|
|
233
|
+
return height;
|
|
234
|
+
}
|
|
235
|
+
return 0;
|
|
236
|
+
},
|
|
237
|
+
getWidth: function getWidth(el) {
|
|
238
|
+
if (el) {
|
|
239
|
+
var width = el.offsetWidth;
|
|
240
|
+
var style = getComputedStyle(el);
|
|
241
|
+
width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
|
|
242
|
+
return width;
|
|
243
|
+
}
|
|
244
|
+
return 0;
|
|
245
|
+
},
|
|
246
|
+
absolutePosition: function absolutePosition(element, target) {
|
|
247
|
+
if (element) {
|
|
248
|
+
var elementDimensions = element.offsetParent ? {
|
|
249
|
+
width: element.offsetWidth,
|
|
250
|
+
height: element.offsetHeight
|
|
251
|
+
} : this.getHiddenElementDimensions(element);
|
|
252
|
+
var elementOuterHeight = elementDimensions.height;
|
|
253
|
+
var elementOuterWidth = elementDimensions.width;
|
|
254
|
+
var targetOuterHeight = target.offsetHeight;
|
|
255
|
+
var targetOuterWidth = target.offsetWidth;
|
|
256
|
+
var targetOffset = target.getBoundingClientRect();
|
|
257
|
+
var windowScrollTop = this.getWindowScrollTop();
|
|
258
|
+
var windowScrollLeft = this.getWindowScrollLeft();
|
|
259
|
+
var viewport = this.getViewport();
|
|
260
|
+
var top, left;
|
|
261
|
+
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
262
|
+
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
263
|
+
element.style.transformOrigin = 'bottom';
|
|
264
|
+
if (top < 0) {
|
|
265
|
+
top = windowScrollTop;
|
|
266
|
+
}
|
|
267
|
+
} else {
|
|
268
|
+
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
269
|
+
element.style.transformOrigin = 'top';
|
|
270
|
+
}
|
|
271
|
+
if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);else left = targetOffset.left + windowScrollLeft;
|
|
272
|
+
element.style.top = top + 'px';
|
|
273
|
+
element.style.left = left + 'px';
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
relativePosition: function relativePosition(element, target) {
|
|
277
|
+
if (element) {
|
|
278
|
+
var elementDimensions = element.offsetParent ? {
|
|
279
|
+
width: element.offsetWidth,
|
|
280
|
+
height: element.offsetHeight
|
|
281
|
+
} : this.getHiddenElementDimensions(element);
|
|
282
|
+
var targetHeight = target.offsetHeight;
|
|
283
|
+
var targetOffset = target.getBoundingClientRect();
|
|
284
|
+
var viewport = this.getViewport();
|
|
285
|
+
var top, left;
|
|
286
|
+
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
287
|
+
top = -1 * elementDimensions.height;
|
|
288
|
+
element.style.transformOrigin = 'bottom';
|
|
289
|
+
if (targetOffset.top + top < 0) {
|
|
290
|
+
top = -1 * targetOffset.top;
|
|
291
|
+
}
|
|
292
|
+
} else {
|
|
293
|
+
top = targetHeight;
|
|
294
|
+
element.style.transformOrigin = 'top';
|
|
295
|
+
}
|
|
296
|
+
if (elementDimensions.width > viewport.width) {
|
|
297
|
+
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
298
|
+
left = targetOffset.left * -1;
|
|
299
|
+
} else if (targetOffset.left + elementDimensions.width > viewport.width) {
|
|
300
|
+
// element wider then viewport but can be fit on screen (align at right side of viewport)
|
|
301
|
+
left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
|
|
302
|
+
} else {
|
|
303
|
+
// element fits on screen (align with target)
|
|
304
|
+
left = 0;
|
|
305
|
+
}
|
|
306
|
+
element.style.top = top + 'px';
|
|
307
|
+
element.style.left = left + 'px';
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
getParents: function getParents(element) {
|
|
311
|
+
var parents = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
312
|
+
return element['parentNode'] === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));
|
|
313
|
+
},
|
|
314
|
+
getScrollableParents: function getScrollableParents(element) {
|
|
315
|
+
var scrollableParents = [];
|
|
316
|
+
if (element) {
|
|
317
|
+
var parents = this.getParents(element);
|
|
318
|
+
var overflowRegex = /(auto|scroll)/;
|
|
319
|
+
var overflowCheck = function overflowCheck(node) {
|
|
320
|
+
try {
|
|
321
|
+
var styleDeclaration = window['getComputedStyle'](node, null);
|
|
322
|
+
return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
|
|
323
|
+
} catch (err) {
|
|
324
|
+
return false;
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
var _iterator = _createForOfIteratorHelper$1(parents),
|
|
328
|
+
_step;
|
|
329
|
+
try {
|
|
330
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
331
|
+
var parent = _step.value;
|
|
332
|
+
var scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
|
|
333
|
+
if (scrollSelectors) {
|
|
334
|
+
var selectors = scrollSelectors.split(',');
|
|
335
|
+
var _iterator2 = _createForOfIteratorHelper$1(selectors),
|
|
336
|
+
_step2;
|
|
443
337
|
try {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
return null;
|
|
457
|
-
},
|
|
458
|
-
|
|
459
|
-
calculateScrollbarWidth() {
|
|
460
|
-
if (this.calculatedScrollbarWidth != null) return this.calculatedScrollbarWidth;
|
|
461
|
-
|
|
462
|
-
let scrollDiv = document.createElement('div');
|
|
463
|
-
|
|
464
|
-
scrollDiv.className = 'p-scrollbar-measure';
|
|
465
|
-
document.body.appendChild(scrollDiv);
|
|
466
|
-
|
|
467
|
-
let scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
|
|
468
|
-
|
|
469
|
-
document.body.removeChild(scrollDiv);
|
|
470
|
-
|
|
471
|
-
this.calculatedScrollbarWidth = scrollbarWidth;
|
|
472
|
-
|
|
473
|
-
return scrollbarWidth;
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
getBrowser() {
|
|
477
|
-
if (!this.browser) {
|
|
478
|
-
let matched = this.resolveUserAgent();
|
|
479
|
-
|
|
480
|
-
this.browser = {};
|
|
481
|
-
|
|
482
|
-
if (matched.browser) {
|
|
483
|
-
this.browser[matched.browser] = true;
|
|
484
|
-
this.browser['version'] = matched.version;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
if (this.browser['chrome']) {
|
|
488
|
-
this.browser['webkit'] = true;
|
|
489
|
-
} else if (this.browser['webkit']) {
|
|
490
|
-
this.browser['safari'] = true;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
return this.browser;
|
|
495
|
-
},
|
|
496
|
-
|
|
497
|
-
resolveUserAgent() {
|
|
498
|
-
let ua = navigator.userAgent.toLowerCase();
|
|
499
|
-
let match = /(chrome)[ ]([\w.]+)/.exec(ua) || /(webkit)[ ]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || (ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)) || [];
|
|
500
|
-
|
|
501
|
-
return {
|
|
502
|
-
browser: match[1] || '',
|
|
503
|
-
version: match[2] || '0'
|
|
504
|
-
};
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
isVisible(element) {
|
|
508
|
-
return element && element.offsetParent != null;
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
invokeElementMethod(element, methodName, args) {
|
|
512
|
-
element[methodName].apply(element, args);
|
|
513
|
-
},
|
|
514
|
-
|
|
515
|
-
isExist(element) {
|
|
516
|
-
return !!(element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode);
|
|
517
|
-
},
|
|
518
|
-
|
|
519
|
-
isClient() {
|
|
520
|
-
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
521
|
-
},
|
|
522
|
-
|
|
523
|
-
focus(el, options) {
|
|
524
|
-
el && document.activeElement !== el && el.focus(options);
|
|
525
|
-
},
|
|
526
|
-
|
|
527
|
-
isFocusableElement(element, selector = '') {
|
|
528
|
-
return this.isElement(element)
|
|
529
|
-
? element.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
530
|
-
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
531
|
-
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
532
|
-
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
533
|
-
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
534
|
-
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
535
|
-
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector}`)
|
|
536
|
-
: false;
|
|
537
|
-
},
|
|
538
|
-
|
|
539
|
-
getFocusableElements(element, selector = '') {
|
|
540
|
-
let focusableElements = this.find(
|
|
541
|
-
element,
|
|
542
|
-
`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
543
|
-
[href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
544
|
-
input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
545
|
-
select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
546
|
-
textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
547
|
-
[tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector},
|
|
548
|
-
[contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${selector}`
|
|
549
|
-
);
|
|
550
|
-
|
|
551
|
-
let visibleFocusableElements = [];
|
|
552
|
-
|
|
553
|
-
for (let focusableElement of focusableElements) {
|
|
554
|
-
if (getComputedStyle(focusableElement).display != 'none' && getComputedStyle(focusableElement).visibility != 'hidden') visibleFocusableElements.push(focusableElement);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
return visibleFocusableElements;
|
|
558
|
-
},
|
|
559
|
-
|
|
560
|
-
getFirstFocusableElement(element, selector) {
|
|
561
|
-
const focusableElements = this.getFocusableElements(element, selector);
|
|
562
|
-
|
|
563
|
-
return focusableElements.length > 0 ? focusableElements[0] : null;
|
|
564
|
-
},
|
|
565
|
-
|
|
566
|
-
getLastFocusableElement(element, selector) {
|
|
567
|
-
const focusableElements = this.getFocusableElements(element, selector);
|
|
568
|
-
|
|
569
|
-
return focusableElements.length > 0 ? focusableElements[focusableElements.length - 1] : null;
|
|
570
|
-
},
|
|
571
|
-
|
|
572
|
-
getNextFocusableElement(container, element, selector) {
|
|
573
|
-
const focusableElements = this.getFocusableElements(container, selector);
|
|
574
|
-
const index = focusableElements.length > 0 ? focusableElements.findIndex((el) => el === element) : -1;
|
|
575
|
-
const nextIndex = index > -1 && focusableElements.length >= index + 1 ? index + 1 : -1;
|
|
576
|
-
|
|
577
|
-
return nextIndex > -1 ? focusableElements[nextIndex] : null;
|
|
578
|
-
},
|
|
579
|
-
|
|
580
|
-
isClickable(element) {
|
|
581
|
-
if (element) {
|
|
582
|
-
const targetNode = element.nodeName;
|
|
583
|
-
const parentNode = element.parentElement && element.parentElement.nodeName;
|
|
584
|
-
|
|
585
|
-
return (
|
|
586
|
-
targetNode === 'INPUT' ||
|
|
587
|
-
targetNode === 'TEXTAREA' ||
|
|
588
|
-
targetNode === 'BUTTON' ||
|
|
589
|
-
targetNode === 'A' ||
|
|
590
|
-
parentNode === 'INPUT' ||
|
|
591
|
-
parentNode === 'TEXTAREA' ||
|
|
592
|
-
parentNode === 'BUTTON' ||
|
|
593
|
-
parentNode === 'A' ||
|
|
594
|
-
!!element.closest('.p-button, .p-checkbox, .p-radiobutton')
|
|
595
|
-
);
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
return false;
|
|
599
|
-
},
|
|
600
|
-
|
|
601
|
-
applyStyle(element, style) {
|
|
602
|
-
if (typeof style === 'string') {
|
|
603
|
-
element.style.cssText = style;
|
|
604
|
-
} else {
|
|
605
|
-
for (let prop in style) {
|
|
606
|
-
element.style[prop] = style[prop];
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
},
|
|
610
|
-
|
|
611
|
-
isIOS() {
|
|
612
|
-
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream'];
|
|
613
|
-
},
|
|
614
|
-
|
|
615
|
-
isAndroid() {
|
|
616
|
-
return /(android)/i.test(navigator.userAgent);
|
|
617
|
-
},
|
|
618
|
-
|
|
619
|
-
isTouchDevice() {
|
|
620
|
-
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
621
|
-
},
|
|
622
|
-
|
|
623
|
-
exportCSV(csv, filename) {
|
|
624
|
-
let blob = new Blob([csv], {
|
|
625
|
-
type: 'application/csv;charset=utf-8;'
|
|
626
|
-
});
|
|
627
|
-
|
|
628
|
-
if (window.navigator.msSaveOrOpenBlob) {
|
|
629
|
-
navigator.msSaveOrOpenBlob(blob, filename + '.csv');
|
|
630
|
-
} else {
|
|
631
|
-
let link = document.createElement('a');
|
|
632
|
-
|
|
633
|
-
if (link.download !== undefined) {
|
|
634
|
-
link.setAttribute('href', URL.createObjectURL(blob));
|
|
635
|
-
link.setAttribute('download', filename + '.csv');
|
|
636
|
-
link.style.display = 'none';
|
|
637
|
-
document.body.appendChild(link);
|
|
638
|
-
link.click();
|
|
639
|
-
document.body.removeChild(link);
|
|
640
|
-
} else {
|
|
641
|
-
csv = 'data:text/csv;charset=utf-8,' + csv;
|
|
642
|
-
window.open(encodeURI(csv));
|
|
338
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
339
|
+
var selector = _step2.value;
|
|
340
|
+
var el = this.findSingle(parent, selector);
|
|
341
|
+
if (el && overflowCheck(el)) {
|
|
342
|
+
scrollableParents.push(el);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
} catch (err) {
|
|
346
|
+
_iterator2.e(err);
|
|
347
|
+
} finally {
|
|
348
|
+
_iterator2.f();
|
|
643
349
|
}
|
|
644
|
-
|
|
350
|
+
}
|
|
351
|
+
if (parent.nodeType !== 9 && overflowCheck(parent)) {
|
|
352
|
+
scrollableParents.push(parent);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
} catch (err) {
|
|
356
|
+
_iterator.e(err);
|
|
357
|
+
} finally {
|
|
358
|
+
_iterator.f();
|
|
359
|
+
}
|
|
645
360
|
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
361
|
+
return scrollableParents;
|
|
362
|
+
},
|
|
363
|
+
getHiddenElementOuterHeight: function getHiddenElementOuterHeight(element) {
|
|
364
|
+
if (element) {
|
|
365
|
+
element.style.visibility = 'hidden';
|
|
366
|
+
element.style.display = 'block';
|
|
367
|
+
var elementHeight = element.offsetHeight;
|
|
368
|
+
element.style.display = 'none';
|
|
369
|
+
element.style.visibility = 'visible';
|
|
370
|
+
return elementHeight;
|
|
652
371
|
}
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
372
|
+
return 0;
|
|
373
|
+
},
|
|
374
|
+
getHiddenElementOuterWidth: function getHiddenElementOuterWidth(element) {
|
|
375
|
+
if (element) {
|
|
376
|
+
element.style.visibility = 'hidden';
|
|
377
|
+
element.style.display = 'block';
|
|
378
|
+
var elementWidth = element.offsetWidth;
|
|
379
|
+
element.style.display = 'none';
|
|
380
|
+
element.style.visibility = 'visible';
|
|
381
|
+
return elementWidth;
|
|
660
382
|
}
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
383
|
+
return 0;
|
|
384
|
+
},
|
|
385
|
+
getHiddenElementDimensions: function getHiddenElementDimensions(element) {
|
|
386
|
+
if (element) {
|
|
387
|
+
var dimensions = {};
|
|
388
|
+
element.style.visibility = 'hidden';
|
|
389
|
+
element.style.display = 'block';
|
|
390
|
+
dimensions.width = element.offsetWidth;
|
|
391
|
+
dimensions.height = element.offsetHeight;
|
|
392
|
+
element.style.display = 'none';
|
|
393
|
+
element.style.visibility = 'visible';
|
|
394
|
+
return dimensions;
|
|
668
395
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
396
|
+
return 0;
|
|
397
|
+
},
|
|
398
|
+
fadeIn: function fadeIn(element, duration) {
|
|
399
|
+
if (element) {
|
|
400
|
+
element.style.opacity = 0;
|
|
401
|
+
var last = +new Date();
|
|
402
|
+
var opacity = 0;
|
|
403
|
+
var tick = function tick() {
|
|
404
|
+
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
405
|
+
element.style.opacity = opacity;
|
|
406
|
+
last = +new Date();
|
|
407
|
+
if (+opacity < 1) {
|
|
408
|
+
window.requestAnimationFrame && requestAnimationFrame(tick) || setTimeout(tick, 16);
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
tick();
|
|
675
412
|
}
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
413
|
+
},
|
|
414
|
+
fadeOut: function fadeOut(element, ms) {
|
|
415
|
+
if (element) {
|
|
416
|
+
var opacity = 1,
|
|
417
|
+
interval = 50,
|
|
418
|
+
duration = ms,
|
|
419
|
+
gap = interval / duration;
|
|
420
|
+
var fading = setInterval(function () {
|
|
421
|
+
opacity -= gap;
|
|
422
|
+
if (opacity <= 0) {
|
|
423
|
+
opacity = 0;
|
|
424
|
+
clearInterval(fading);
|
|
425
|
+
}
|
|
426
|
+
element.style.opacity = opacity;
|
|
427
|
+
}, interval);
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
getUserAgent: function getUserAgent() {
|
|
431
|
+
return navigator.userAgent;
|
|
432
|
+
},
|
|
433
|
+
appendChild: function appendChild(element, target) {
|
|
434
|
+
if (this.isElement(target)) target.appendChild(element);else if (target.el && target.elElement) target.elElement.appendChild(element);else throw new Error('Cannot append ' + target + ' to ' + element);
|
|
435
|
+
},
|
|
436
|
+
isElement: function isElement(obj) {
|
|
437
|
+
return (typeof HTMLElement === "undefined" ? "undefined" : _typeof$2(HTMLElement)) === 'object' ? obj instanceof HTMLElement : obj && _typeof$2(obj) === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
|
|
438
|
+
},
|
|
439
|
+
scrollInView: function scrollInView(container, item) {
|
|
440
|
+
var borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');
|
|
441
|
+
var borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
|
|
442
|
+
var paddingTopValue = getComputedStyle(container).getPropertyValue('paddingTop');
|
|
443
|
+
var paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;
|
|
444
|
+
var containerRect = container.getBoundingClientRect();
|
|
445
|
+
var itemRect = item.getBoundingClientRect();
|
|
446
|
+
var offset = itemRect.top + document.body.scrollTop - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;
|
|
447
|
+
var scroll = container.scrollTop;
|
|
448
|
+
var elementHeight = container.clientHeight;
|
|
449
|
+
var itemHeight = this.getOuterHeight(item);
|
|
450
|
+
if (offset < 0) {
|
|
451
|
+
container.scrollTop = scroll + offset;
|
|
452
|
+
} else if (offset + itemHeight > elementHeight) {
|
|
453
|
+
container.scrollTop = scroll + offset - elementHeight + itemHeight;
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
clearSelection: function clearSelection() {
|
|
457
|
+
if (window.getSelection) {
|
|
458
|
+
if (window.getSelection().empty) {
|
|
459
|
+
window.getSelection().empty();
|
|
460
|
+
} else if (window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {
|
|
461
|
+
window.getSelection().removeAllRanges();
|
|
462
|
+
}
|
|
463
|
+
} else if (document['selection'] && document['selection'].empty) {
|
|
464
|
+
try {
|
|
465
|
+
document['selection'].empty();
|
|
466
|
+
} catch (error) {
|
|
467
|
+
//ignore IE bug
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
getSelection: function getSelection() {
|
|
472
|
+
if (window.getSelection) return window.getSelection().toString();else if (document.getSelection) return document.getSelection().toString();else if (document['selection']) return document['selection'].createRange().text;
|
|
473
|
+
return null;
|
|
474
|
+
},
|
|
475
|
+
calculateScrollbarWidth: function calculateScrollbarWidth() {
|
|
476
|
+
if (this.calculatedScrollbarWidth != null) return this.calculatedScrollbarWidth;
|
|
477
|
+
var scrollDiv = document.createElement('div');
|
|
478
|
+
this.addStyles(scrollDiv, {
|
|
479
|
+
width: '100px',
|
|
480
|
+
height: '100px',
|
|
481
|
+
overflow: 'scroll',
|
|
482
|
+
position: 'absolute',
|
|
483
|
+
top: '-9999px'
|
|
484
|
+
});
|
|
485
|
+
document.body.appendChild(scrollDiv);
|
|
486
|
+
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
|
|
487
|
+
document.body.removeChild(scrollDiv);
|
|
488
|
+
this.calculatedScrollbarWidth = scrollbarWidth;
|
|
489
|
+
return scrollbarWidth;
|
|
490
|
+
},
|
|
491
|
+
getBrowser: function getBrowser() {
|
|
492
|
+
if (!this.browser) {
|
|
493
|
+
var matched = this.resolveUserAgent();
|
|
494
|
+
this.browser = {};
|
|
495
|
+
if (matched.browser) {
|
|
496
|
+
this.browser[matched.browser] = true;
|
|
497
|
+
this.browser['version'] = matched.version;
|
|
498
|
+
}
|
|
499
|
+
if (this.browser['chrome']) {
|
|
500
|
+
this.browser['webkit'] = true;
|
|
501
|
+
} else if (this.browser['webkit']) {
|
|
502
|
+
this.browser['safari'] = true;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
return this.browser;
|
|
506
|
+
},
|
|
507
|
+
resolveUserAgent: function resolveUserAgent() {
|
|
508
|
+
var ua = navigator.userAgent.toLowerCase();
|
|
509
|
+
var match = /(chrome)[ ]([\w.]+)/.exec(ua) || /(webkit)[ ]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [];
|
|
681
510
|
return {
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
511
|
+
browser: match[1] || '',
|
|
512
|
+
version: match[2] || '0'
|
|
513
|
+
};
|
|
514
|
+
},
|
|
515
|
+
isVisible: function isVisible(element) {
|
|
516
|
+
return element && element.offsetParent != null;
|
|
517
|
+
},
|
|
518
|
+
invokeElementMethod: function invokeElementMethod(element, methodName, args) {
|
|
519
|
+
element[methodName].apply(element, args);
|
|
520
|
+
},
|
|
521
|
+
isExist: function isExist(element) {
|
|
522
|
+
return !!(element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode);
|
|
523
|
+
},
|
|
524
|
+
isClient: function isClient() {
|
|
525
|
+
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
526
|
+
},
|
|
527
|
+
focus: function focus(el, options) {
|
|
528
|
+
el && document.activeElement !== el && el.focus(options);
|
|
529
|
+
},
|
|
530
|
+
isFocusableElement: function isFocusableElement(element) {
|
|
531
|
+
var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
532
|
+
return this.isElement(element) ? element.matches("button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])".concat(selector, ",\n [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector)) : false;
|
|
533
|
+
},
|
|
534
|
+
getFocusableElements: function getFocusableElements(element) {
|
|
535
|
+
var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
536
|
+
var focusableElements = this.find(element, "button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])".concat(selector, ",\n [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector));
|
|
537
|
+
var visibleFocusableElements = [];
|
|
538
|
+
var _iterator3 = _createForOfIteratorHelper$1(focusableElements),
|
|
539
|
+
_step3;
|
|
540
|
+
try {
|
|
541
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
542
|
+
var focusableElement = _step3.value;
|
|
543
|
+
if (getComputedStyle(focusableElement).display != 'none' && getComputedStyle(focusableElement).visibility != 'hidden') visibleFocusableElements.push(focusableElement);
|
|
544
|
+
}
|
|
545
|
+
} catch (err) {
|
|
546
|
+
_iterator3.e(err);
|
|
547
|
+
} finally {
|
|
548
|
+
_iterator3.f();
|
|
549
|
+
}
|
|
550
|
+
return visibleFocusableElements;
|
|
551
|
+
},
|
|
552
|
+
getFirstFocusableElement: function getFirstFocusableElement(element, selector) {
|
|
553
|
+
var focusableElements = this.getFocusableElements(element, selector);
|
|
554
|
+
return focusableElements.length > 0 ? focusableElements[0] : null;
|
|
555
|
+
},
|
|
556
|
+
getLastFocusableElement: function getLastFocusableElement(element, selector) {
|
|
557
|
+
var focusableElements = this.getFocusableElements(element, selector);
|
|
558
|
+
return focusableElements.length > 0 ? focusableElements[focusableElements.length - 1] : null;
|
|
559
|
+
},
|
|
560
|
+
getNextFocusableElement: function getNextFocusableElement(container, element, selector) {
|
|
561
|
+
var focusableElements = this.getFocusableElements(container, selector);
|
|
562
|
+
var index = focusableElements.length > 0 ? focusableElements.findIndex(function (el) {
|
|
563
|
+
return el === element;
|
|
564
|
+
}) : -1;
|
|
565
|
+
var nextIndex = index > -1 && focusableElements.length >= index + 1 ? index + 1 : -1;
|
|
566
|
+
return nextIndex > -1 ? focusableElements[nextIndex] : null;
|
|
567
|
+
},
|
|
568
|
+
isClickable: function isClickable(element) {
|
|
569
|
+
if (element) {
|
|
570
|
+
var targetNode = element.nodeName;
|
|
571
|
+
var parentNode = element.parentElement && element.parentElement.nodeName;
|
|
572
|
+
return targetNode === 'INPUT' || targetNode === 'TEXTAREA' || targetNode === 'BUTTON' || targetNode === 'A' || parentNode === 'INPUT' || parentNode === 'TEXTAREA' || parentNode === 'BUTTON' || parentNode === 'A' || !!element.closest('.p-button, .p-checkbox, .p-radiobutton') // @todo Add [data-pc-section="button"]
|
|
573
|
+
;
|
|
574
|
+
}
|
|
693
575
|
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
576
|
+
return false;
|
|
577
|
+
},
|
|
578
|
+
applyStyle: function applyStyle(element, style) {
|
|
579
|
+
if (typeof style === 'string') {
|
|
580
|
+
element.style.cssText = style;
|
|
581
|
+
} else {
|
|
582
|
+
for (var prop in style) {
|
|
583
|
+
element.style[prop] = style[prop];
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
isIOS: function isIOS() {
|
|
588
|
+
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream'];
|
|
589
|
+
},
|
|
590
|
+
isAndroid: function isAndroid() {
|
|
591
|
+
return /(android)/i.test(navigator.userAgent);
|
|
592
|
+
},
|
|
593
|
+
isTouchDevice: function isTouchDevice() {
|
|
594
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
595
|
+
},
|
|
596
|
+
exportCSV: function exportCSV(csv, filename) {
|
|
597
|
+
var blob = new Blob([csv], {
|
|
598
|
+
type: 'application/csv;charset=utf-8;'
|
|
599
|
+
});
|
|
600
|
+
if (window.navigator.msSaveOrOpenBlob) {
|
|
601
|
+
navigator.msSaveOrOpenBlob(blob, filename + '.csv');
|
|
602
|
+
} else {
|
|
603
|
+
var link = document.createElement('a');
|
|
604
|
+
if (link.download !== undefined) {
|
|
605
|
+
link.setAttribute('href', URL.createObjectURL(blob));
|
|
606
|
+
link.setAttribute('download', filename + '.csv');
|
|
607
|
+
link.style.display = 'none';
|
|
608
|
+
document.body.appendChild(link);
|
|
609
|
+
link.click();
|
|
610
|
+
document.body.removeChild(link);
|
|
611
|
+
} else {
|
|
612
|
+
csv = 'data:text/csv;charset=utf-8,' + csv;
|
|
613
|
+
window.open(encodeURI(csv));
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
};
|
|
698
618
|
|
|
699
|
-
|
|
700
|
-
|
|
619
|
+
function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
|
|
620
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
621
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
622
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
623
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
|
|
624
|
+
function _toPrimitive(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
625
|
+
var ConnectedOverlayScrollHandler = /*#__PURE__*/function () {
|
|
626
|
+
function ConnectedOverlayScrollHandler(element) {
|
|
627
|
+
var listener = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
628
|
+
_classCallCheck(this, ConnectedOverlayScrollHandler);
|
|
629
|
+
this.element = element;
|
|
630
|
+
this.listener = listener;
|
|
631
|
+
}
|
|
632
|
+
_createClass(ConnectedOverlayScrollHandler, [{
|
|
633
|
+
key: "bindScrollListener",
|
|
634
|
+
value: function bindScrollListener() {
|
|
635
|
+
this.scrollableParents = DomHandler.getScrollableParents(this.element);
|
|
636
|
+
for (var i = 0; i < this.scrollableParents.length; i++) {
|
|
637
|
+
this.scrollableParents[i].addEventListener('scroll', this.listener);
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
}, {
|
|
641
|
+
key: "unbindScrollListener",
|
|
642
|
+
value: function unbindScrollListener() {
|
|
643
|
+
if (this.scrollableParents) {
|
|
644
|
+
for (var i = 0; i < this.scrollableParents.length; i++) {
|
|
645
|
+
this.scrollableParents[i].removeEventListener('scroll', this.listener);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}, {
|
|
650
|
+
key: "destroy",
|
|
651
|
+
value: function destroy() {
|
|
652
|
+
this.unbindScrollListener();
|
|
653
|
+
this.element = null;
|
|
654
|
+
this.listener = null;
|
|
655
|
+
this.scrollableParents = null;
|
|
656
|
+
}
|
|
657
|
+
}]);
|
|
658
|
+
return ConnectedOverlayScrollHandler;
|
|
659
|
+
}();
|
|
701
660
|
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
661
|
+
function primebus() {
|
|
662
|
+
var allHandlers = new Map();
|
|
663
|
+
return {
|
|
664
|
+
on: function on(type, handler) {
|
|
665
|
+
var handlers = allHandlers.get(type);
|
|
666
|
+
if (!handlers) handlers = [handler];else handlers.push(handler);
|
|
667
|
+
allHandlers.set(type, handlers);
|
|
668
|
+
},
|
|
669
|
+
off: function off(type, handler) {
|
|
670
|
+
var handlers = allHandlers.get(type);
|
|
671
|
+
if (handlers) {
|
|
672
|
+
handlers.splice(handlers.indexOf(handler) >>> 0, 1);
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
emit: function emit(type, evt) {
|
|
676
|
+
var handlers = allHandlers.get(type);
|
|
677
|
+
if (handlers) {
|
|
678
|
+
handlers.slice().map(function (handler) {
|
|
679
|
+
handler(evt);
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
};
|
|
709
684
|
}
|
|
710
685
|
|
|
686
|
+
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1(); }
|
|
687
|
+
function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
688
|
+
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
689
|
+
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$1(arr); }
|
|
690
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
691
|
+
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(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$1(o, minLen); }
|
|
692
|
+
function _arrayLikeToArray$1(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; }
|
|
693
|
+
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); }
|
|
711
694
|
var ObjectUtils = {
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
return true;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
return a !== a && b !== b;
|
|
766
|
-
},
|
|
767
|
-
|
|
768
|
-
resolveFieldData(data, field) {
|
|
769
|
-
if (data && Object.keys(data).length && field) {
|
|
770
|
-
if (this.isFunction(field)) {
|
|
771
|
-
return field(data);
|
|
772
|
-
} else if (field.indexOf('.') === -1) {
|
|
773
|
-
return data[field];
|
|
774
|
-
} else {
|
|
775
|
-
let fields = field.split('.');
|
|
776
|
-
let value = data;
|
|
777
|
-
|
|
778
|
-
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
779
|
-
if (value == null) {
|
|
780
|
-
return null;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
value = value[fields[i]];
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
return value;
|
|
787
|
-
}
|
|
788
|
-
} else {
|
|
695
|
+
equals: function equals(obj1, obj2, field) {
|
|
696
|
+
if (field) return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);else return this.deepEquals(obj1, obj2);
|
|
697
|
+
},
|
|
698
|
+
deepEquals: function deepEquals(a, b) {
|
|
699
|
+
if (a === b) return true;
|
|
700
|
+
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
|
701
|
+
var arrA = Array.isArray(a),
|
|
702
|
+
arrB = Array.isArray(b),
|
|
703
|
+
i,
|
|
704
|
+
length,
|
|
705
|
+
key;
|
|
706
|
+
if (arrA && arrB) {
|
|
707
|
+
length = a.length;
|
|
708
|
+
if (length != b.length) return false;
|
|
709
|
+
for (i = length; i-- !== 0;) if (!this.deepEquals(a[i], b[i])) return false;
|
|
710
|
+
return true;
|
|
711
|
+
}
|
|
712
|
+
if (arrA != arrB) return false;
|
|
713
|
+
var dateA = a instanceof Date,
|
|
714
|
+
dateB = b instanceof Date;
|
|
715
|
+
if (dateA != dateB) return false;
|
|
716
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
717
|
+
var regexpA = a instanceof RegExp,
|
|
718
|
+
regexpB = b instanceof RegExp;
|
|
719
|
+
if (regexpA != regexpB) return false;
|
|
720
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
721
|
+
var keys = Object.keys(a);
|
|
722
|
+
length = keys.length;
|
|
723
|
+
if (length !== Object.keys(b).length) return false;
|
|
724
|
+
for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
725
|
+
for (i = length; i-- !== 0;) {
|
|
726
|
+
key = keys[i];
|
|
727
|
+
if (!this.deepEquals(a[key], b[key])) return false;
|
|
728
|
+
}
|
|
729
|
+
return true;
|
|
730
|
+
}
|
|
731
|
+
return a !== a && b !== b;
|
|
732
|
+
},
|
|
733
|
+
resolveFieldData: function resolveFieldData(data, field) {
|
|
734
|
+
if (data && Object.keys(data).length && field) {
|
|
735
|
+
if (this.isFunction(field)) {
|
|
736
|
+
return field(data);
|
|
737
|
+
} else if (field.indexOf('.') === -1) {
|
|
738
|
+
return data[field];
|
|
739
|
+
} else {
|
|
740
|
+
var fields = field.split('.');
|
|
741
|
+
var value = data;
|
|
742
|
+
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
743
|
+
if (value == null) {
|
|
789
744
|
return null;
|
|
745
|
+
}
|
|
746
|
+
value = value[fields[i]];
|
|
790
747
|
}
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
if (to >= value.length) {
|
|
821
|
-
to %= value.length;
|
|
822
|
-
from %= value.length;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
826
|
-
}
|
|
827
|
-
},
|
|
828
|
-
|
|
829
|
-
findIndexInList(value, list) {
|
|
830
|
-
let index = -1;
|
|
831
|
-
|
|
832
|
-
if (list) {
|
|
833
|
-
for (let i = 0; i < list.length; i++) {
|
|
834
|
-
if (list[i] === value) {
|
|
835
|
-
index = i;
|
|
836
|
-
break;
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
return index;
|
|
842
|
-
},
|
|
843
|
-
|
|
844
|
-
contains(value, list) {
|
|
845
|
-
if (value != null && list && list.length) {
|
|
846
|
-
for (let val of list) {
|
|
847
|
-
if (this.equals(value, val)) return true;
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
return false;
|
|
852
|
-
},
|
|
853
|
-
|
|
854
|
-
insertIntoOrderedArray(item, index, arr, sourceArr) {
|
|
855
|
-
if (arr.length > 0) {
|
|
856
|
-
let injected = false;
|
|
857
|
-
|
|
858
|
-
for (let i = 0; i < arr.length; i++) {
|
|
859
|
-
let currentItemIndex = this.findIndexInList(arr[i], sourceArr);
|
|
860
|
-
|
|
861
|
-
if (currentItemIndex > index) {
|
|
862
|
-
arr.splice(i, 0, item);
|
|
863
|
-
injected = true;
|
|
864
|
-
break;
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
if (!injected) {
|
|
869
|
-
arr.push(item);
|
|
870
|
-
}
|
|
871
|
-
} else {
|
|
872
|
-
arr.push(item);
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
|
|
876
|
-
removeAccents(str) {
|
|
877
|
-
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
878
|
-
str = str
|
|
879
|
-
.replace(/[\xC0-\xC5]/g, 'A')
|
|
880
|
-
.replace(/[\xC6]/g, 'AE')
|
|
881
|
-
.replace(/[\xC7]/g, 'C')
|
|
882
|
-
.replace(/[\xC8-\xCB]/g, 'E')
|
|
883
|
-
.replace(/[\xCC-\xCF]/g, 'I')
|
|
884
|
-
.replace(/[\xD0]/g, 'D')
|
|
885
|
-
.replace(/[\xD1]/g, 'N')
|
|
886
|
-
.replace(/[\xD2-\xD6\xD8]/g, 'O')
|
|
887
|
-
.replace(/[\xD9-\xDC]/g, 'U')
|
|
888
|
-
.replace(/[\xDD]/g, 'Y')
|
|
889
|
-
.replace(/[\xDE]/g, 'P')
|
|
890
|
-
.replace(/[\xE0-\xE5]/g, 'a')
|
|
891
|
-
.replace(/[\xE6]/g, 'ae')
|
|
892
|
-
.replace(/[\xE7]/g, 'c')
|
|
893
|
-
.replace(/[\xE8-\xEB]/g, 'e')
|
|
894
|
-
.replace(/[\xEC-\xEF]/g, 'i')
|
|
895
|
-
.replace(/[\xF1]/g, 'n')
|
|
896
|
-
.replace(/[\xF2-\xF6\xF8]/g, 'o')
|
|
897
|
-
.replace(/[\xF9-\xFC]/g, 'u')
|
|
898
|
-
.replace(/[\xFE]/g, 'p')
|
|
899
|
-
.replace(/[\xFD\xFF]/g, 'y');
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
return str;
|
|
903
|
-
},
|
|
904
|
-
|
|
905
|
-
getVNodeProp(vnode, prop) {
|
|
906
|
-
let props = vnode.props;
|
|
907
|
-
|
|
908
|
-
if (props) {
|
|
909
|
-
let kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
910
|
-
let propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
|
|
911
|
-
|
|
912
|
-
return vnode.type.props[prop].type === Boolean && props[propName] === '' ? true : props[propName];
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
return null;
|
|
916
|
-
},
|
|
917
|
-
|
|
918
|
-
convertToFlatCase(str) {
|
|
919
|
-
// convert snake, kebab, camel and pascal cases to flat case
|
|
920
|
-
return this.isNotEmpty(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
|
|
921
|
-
},
|
|
922
|
-
|
|
923
|
-
isEmpty(value) {
|
|
924
|
-
return value === null || value === undefined || value === '' || (Array.isArray(value) && value.length === 0) || (!(value instanceof Date) && typeof value === 'object' && Object.keys(value).length === 0);
|
|
925
|
-
},
|
|
926
|
-
|
|
927
|
-
isNotEmpty(value) {
|
|
928
|
-
return !this.isEmpty(value);
|
|
929
|
-
},
|
|
930
|
-
|
|
931
|
-
isPrintableCharacter(char = '') {
|
|
932
|
-
return this.isNotEmpty(char) && char.length === 1 && char.match(/\S| /);
|
|
933
|
-
},
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
|
|
937
|
-
* https://caniuse.com/mdn-javascript_builtins_array_findlast
|
|
938
|
-
*/
|
|
939
|
-
findLast(arr, callback) {
|
|
940
|
-
let item;
|
|
941
|
-
|
|
942
|
-
if (this.isNotEmpty(arr)) {
|
|
943
|
-
try {
|
|
944
|
-
item = arr.findLast(callback);
|
|
945
|
-
} catch {
|
|
946
|
-
item = [...arr].reverse().find(callback);
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
return item;
|
|
951
|
-
},
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
* Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
|
|
955
|
-
* https://caniuse.com/mdn-javascript_builtins_array_findlastindex
|
|
956
|
-
*/
|
|
957
|
-
findLastIndex(arr, callback) {
|
|
958
|
-
let index = -1;
|
|
959
|
-
|
|
960
|
-
if (this.isNotEmpty(arr)) {
|
|
961
|
-
try {
|
|
962
|
-
index = arr.findLastIndex(callback);
|
|
963
|
-
} catch {
|
|
964
|
-
index = arr.lastIndexOf([...arr].reverse().find(callback));
|
|
748
|
+
return value;
|
|
749
|
+
}
|
|
750
|
+
} else {
|
|
751
|
+
return null;
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
getItemValue: function getItemValue(obj) {
|
|
755
|
+
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
756
|
+
params[_key - 1] = arguments[_key];
|
|
757
|
+
}
|
|
758
|
+
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
759
|
+
},
|
|
760
|
+
filter: function filter(value, fields, filterValue) {
|
|
761
|
+
var filteredItems = [];
|
|
762
|
+
if (value) {
|
|
763
|
+
var _iterator = _createForOfIteratorHelper(value),
|
|
764
|
+
_step;
|
|
765
|
+
try {
|
|
766
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
767
|
+
var item = _step.value;
|
|
768
|
+
var _iterator2 = _createForOfIteratorHelper(fields),
|
|
769
|
+
_step2;
|
|
770
|
+
try {
|
|
771
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
772
|
+
var field = _step2.value;
|
|
773
|
+
if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
|
|
774
|
+
filteredItems.push(item);
|
|
775
|
+
break;
|
|
776
|
+
}
|
|
965
777
|
}
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
778
|
+
} catch (err) {
|
|
779
|
+
_iterator2.e(err);
|
|
780
|
+
} finally {
|
|
781
|
+
_iterator2.f();
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
} catch (err) {
|
|
785
|
+
_iterator.e(err);
|
|
786
|
+
} finally {
|
|
787
|
+
_iterator.f();
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
return filteredItems;
|
|
791
|
+
},
|
|
792
|
+
reorderArray: function reorderArray(value, from, to) {
|
|
793
|
+
if (value && from !== to) {
|
|
794
|
+
if (to >= value.length) {
|
|
795
|
+
to %= value.length;
|
|
796
|
+
from %= value.length;
|
|
797
|
+
}
|
|
798
|
+
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
findIndexInList: function findIndexInList(value, list) {
|
|
802
|
+
var index = -1;
|
|
803
|
+
if (list) {
|
|
804
|
+
for (var i = 0; i < list.length; i++) {
|
|
805
|
+
if (list[i] === value) {
|
|
806
|
+
index = i;
|
|
807
|
+
break;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
969
810
|
}
|
|
811
|
+
return index;
|
|
812
|
+
},
|
|
813
|
+
contains: function contains(value, list) {
|
|
814
|
+
if (value != null && list && list.length) {
|
|
815
|
+
var _iterator3 = _createForOfIteratorHelper(list),
|
|
816
|
+
_step3;
|
|
817
|
+
try {
|
|
818
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
819
|
+
var val = _step3.value;
|
|
820
|
+
if (this.equals(value, val)) return true;
|
|
821
|
+
}
|
|
822
|
+
} catch (err) {
|
|
823
|
+
_iterator3.e(err);
|
|
824
|
+
} finally {
|
|
825
|
+
_iterator3.f();
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
return false;
|
|
829
|
+
},
|
|
830
|
+
insertIntoOrderedArray: function insertIntoOrderedArray(item, index, arr, sourceArr) {
|
|
831
|
+
if (arr.length > 0) {
|
|
832
|
+
var injected = false;
|
|
833
|
+
for (var i = 0; i < arr.length; i++) {
|
|
834
|
+
var currentItemIndex = this.findIndexInList(arr[i], sourceArr);
|
|
835
|
+
if (currentItemIndex > index) {
|
|
836
|
+
arr.splice(i, 0, item);
|
|
837
|
+
injected = true;
|
|
838
|
+
break;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
if (!injected) {
|
|
842
|
+
arr.push(item);
|
|
843
|
+
}
|
|
844
|
+
} else {
|
|
845
|
+
arr.push(item);
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
removeAccents: function removeAccents(str) {
|
|
849
|
+
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
850
|
+
str = str.replace(/[\xC0-\xC5]/g, 'A').replace(/[\xC6]/g, 'AE').replace(/[\xC7]/g, 'C').replace(/[\xC8-\xCB]/g, 'E').replace(/[\xCC-\xCF]/g, 'I').replace(/[\xD0]/g, 'D').replace(/[\xD1]/g, 'N').replace(/[\xD2-\xD6\xD8]/g, 'O').replace(/[\xD9-\xDC]/g, 'U').replace(/[\xDD]/g, 'Y').replace(/[\xDE]/g, 'P').replace(/[\xE0-\xE5]/g, 'a').replace(/[\xE6]/g, 'ae').replace(/[\xE7]/g, 'c').replace(/[\xE8-\xEB]/g, 'e').replace(/[\xEC-\xEF]/g, 'i').replace(/[\xF1]/g, 'n').replace(/[\xF2-\xF6\xF8]/g, 'o').replace(/[\xF9-\xFC]/g, 'u').replace(/[\xFE]/g, 'p').replace(/[\xFD\xFF]/g, 'y');
|
|
851
|
+
}
|
|
852
|
+
return str;
|
|
853
|
+
},
|
|
854
|
+
getVNodeProp: function getVNodeProp(vnode, prop) {
|
|
855
|
+
var props = vnode.props;
|
|
856
|
+
if (props) {
|
|
857
|
+
var kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
858
|
+
var propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
|
|
859
|
+
return vnode.type["extends"].props[prop].type === Boolean && props[propName] === '' ? true : props[propName];
|
|
860
|
+
}
|
|
861
|
+
return null;
|
|
862
|
+
},
|
|
863
|
+
toFlatCase: function toFlatCase(str) {
|
|
864
|
+
// convert snake, kebab, camel and pascal cases to flat case
|
|
865
|
+
return this.isNotEmpty(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
|
|
866
|
+
},
|
|
867
|
+
toCapitalCase: function toCapitalCase(str) {
|
|
868
|
+
return this.isNotEmpty(str) ? str[0].toUpperCase() + str.slice(1) : str;
|
|
869
|
+
},
|
|
870
|
+
isEmpty: function isEmpty(value) {
|
|
871
|
+
return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof(value) === 'object' && Object.keys(value).length === 0;
|
|
872
|
+
},
|
|
873
|
+
isNotEmpty: function isNotEmpty(value) {
|
|
874
|
+
return !this.isEmpty(value);
|
|
875
|
+
},
|
|
876
|
+
isFunction: function isFunction(value) {
|
|
877
|
+
return !!(value && value.constructor && value.call && value.apply);
|
|
878
|
+
},
|
|
879
|
+
isObject: function isObject(value) {
|
|
880
|
+
return value !== null && value instanceof Object && value.constructor === Object;
|
|
881
|
+
},
|
|
882
|
+
isDate: function isDate(value) {
|
|
883
|
+
return value !== null && value instanceof Date && value.constructor === Date;
|
|
884
|
+
},
|
|
885
|
+
isArray: function isArray(value) {
|
|
886
|
+
return value !== null && Array.isArray(value);
|
|
887
|
+
},
|
|
888
|
+
isPrintableCharacter: function isPrintableCharacter() {
|
|
889
|
+
var _char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
890
|
+
return this.isNotEmpty(_char) && _char.length === 1 && _char.match(/\S| /);
|
|
891
|
+
},
|
|
892
|
+
/**
|
|
893
|
+
* Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
|
|
894
|
+
* https://caniuse.com/mdn-javascript_builtins_array_findlast
|
|
895
|
+
*/
|
|
896
|
+
findLast: function findLast(arr, callback) {
|
|
897
|
+
var item;
|
|
898
|
+
if (this.isNotEmpty(arr)) {
|
|
899
|
+
try {
|
|
900
|
+
item = arr.findLast(callback);
|
|
901
|
+
} catch (_unused) {
|
|
902
|
+
item = _toConsumableArray$1(arr).reverse().find(callback);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
return item;
|
|
906
|
+
},
|
|
907
|
+
/**
|
|
908
|
+
* Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
|
|
909
|
+
* https://caniuse.com/mdn-javascript_builtins_array_findlastindex
|
|
910
|
+
*/
|
|
911
|
+
findLastIndex: function findLastIndex(arr, callback) {
|
|
912
|
+
var index = -1;
|
|
913
|
+
if (this.isNotEmpty(arr)) {
|
|
914
|
+
try {
|
|
915
|
+
index = arr.findLastIndex(callback);
|
|
916
|
+
} catch (_unused2) {
|
|
917
|
+
index = arr.lastIndexOf(_toConsumableArray$1(arr).reverse().find(callback));
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
return index;
|
|
921
|
+
}
|
|
970
922
|
};
|
|
971
923
|
|
|
972
924
|
var lastId = 0;
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
return `${prefix}${lastId}`;
|
|
925
|
+
function UniqueComponentId () {
|
|
926
|
+
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pv_id_';
|
|
927
|
+
lastId++;
|
|
928
|
+
return "".concat(prefix).concat(lastId);
|
|
978
929
|
}
|
|
979
930
|
|
|
931
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
932
|
+
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."); }
|
|
933
|
+
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); }
|
|
934
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
935
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
936
|
+
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; }
|
|
980
937
|
function handler() {
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
return {
|
|
1009
|
-
get: getZIndex,
|
|
1010
|
-
set: (key, el, baseZIndex) => {
|
|
1011
|
-
if (el) {
|
|
1012
|
-
el.style.zIndex = String(generateZIndex(key, true, baseZIndex));
|
|
1013
|
-
}
|
|
1014
|
-
},
|
|
1015
|
-
clear: (el) => {
|
|
1016
|
-
if (el) {
|
|
1017
|
-
revertZIndex(getZIndex(el));
|
|
1018
|
-
el.style.zIndex = '';
|
|
1019
|
-
}
|
|
1020
|
-
},
|
|
1021
|
-
getCurrent: (key) => getCurrentZIndex(key, true)
|
|
938
|
+
var zIndexes = [];
|
|
939
|
+
var generateZIndex = function generateZIndex(key, autoZIndex) {
|
|
940
|
+
var baseZIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 999;
|
|
941
|
+
var lastZIndex = getLastZIndex(key, autoZIndex, baseZIndex);
|
|
942
|
+
var newZIndex = lastZIndex.value + (lastZIndex.key === key ? 0 : baseZIndex) + 1;
|
|
943
|
+
zIndexes.push({
|
|
944
|
+
key: key,
|
|
945
|
+
value: newZIndex
|
|
946
|
+
});
|
|
947
|
+
return newZIndex;
|
|
948
|
+
};
|
|
949
|
+
var revertZIndex = function revertZIndex(zIndex) {
|
|
950
|
+
zIndexes = zIndexes.filter(function (obj) {
|
|
951
|
+
return obj.value !== zIndex;
|
|
952
|
+
});
|
|
953
|
+
};
|
|
954
|
+
var getCurrentZIndex = function getCurrentZIndex(key, autoZIndex) {
|
|
955
|
+
return getLastZIndex(key, autoZIndex).value;
|
|
956
|
+
};
|
|
957
|
+
var getLastZIndex = function getLastZIndex(key, autoZIndex) {
|
|
958
|
+
var baseZIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
959
|
+
return _toConsumableArray(zIndexes).reverse().find(function (obj) {
|
|
960
|
+
return autoZIndex ? true : obj.key === key;
|
|
961
|
+
}) || {
|
|
962
|
+
key: key,
|
|
963
|
+
value: baseZIndex
|
|
1022
964
|
};
|
|
965
|
+
};
|
|
966
|
+
var getZIndex = function getZIndex(el) {
|
|
967
|
+
return el ? parseInt(el.style.zIndex, 10) || 0 : 0;
|
|
968
|
+
};
|
|
969
|
+
return {
|
|
970
|
+
get: getZIndex,
|
|
971
|
+
set: function set(key, el, baseZIndex) {
|
|
972
|
+
if (el) {
|
|
973
|
+
el.style.zIndex = String(generateZIndex(key, true, baseZIndex));
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
clear: function clear(el) {
|
|
977
|
+
if (el) {
|
|
978
|
+
revertZIndex(getZIndex(el));
|
|
979
|
+
el.style.zIndex = '';
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
getCurrent: function getCurrent(key) {
|
|
983
|
+
return getCurrentZIndex(key, true);
|
|
984
|
+
}
|
|
985
|
+
};
|
|
1023
986
|
}
|
|
1024
|
-
|
|
1025
987
|
var ZIndexUtils = handler();
|
|
1026
988
|
|
|
1027
989
|
export { ConnectedOverlayScrollHandler, DomHandler, primebus as EventBus, ObjectUtils, UniqueComponentId, ZIndexUtils };
|