@indielayer/ui 1.2.0 → 1.3.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/exports/tailwind.preset.js +30 -45
- package/lib/{composables/colors-utils.d.ts → common/colors.d.ts} +1 -1
- package/lib/common/icons.js +7 -8
- package/lib/common/utils.d.ts +6 -4
- package/lib/components/alert/Alert.vue.d.ts +10 -6
- package/lib/components/alert/Alert.vue2.js +13 -14
- package/lib/components/alert/index.d.ts +1 -2
- package/lib/components/alert/theme/Alert.base.theme.d.ts +3 -0
- package/lib/components/alert/theme/Alert.carbon.theme.d.ts +3 -0
- package/lib/components/alert/theme/Alert.carbon.theme.js +5 -0
- package/lib/components/avatar/Avatar.vue.d.ts +13 -6
- package/lib/components/avatar/Avatar.vue2.js +16 -17
- package/lib/components/avatar/index.d.ts +1 -2
- package/lib/components/avatar/theme/Avatar.base.theme.d.ts +3 -0
- package/lib/components/avatar/theme/Avatar.carbon.theme.d.ts +3 -0
- package/lib/components/avatar/theme/Avatar.carbon.theme.js +5 -0
- package/lib/components/badge/Badge.vue.d.ts +10 -6
- package/lib/components/badge/Badge.vue.js +18 -19
- package/lib/components/badge/index.d.ts +1 -2
- package/lib/components/badge/theme/Badge.base.theme.d.ts +3 -0
- package/lib/components/badge/theme/Badge.base.theme.js +12 -0
- package/lib/components/badge/theme/Badge.carbon.theme.d.ts +3 -0
- package/lib/components/badge/theme/Badge.carbon.theme.js +5 -0
- package/lib/components/breadcrumbs/Breadcrumbs.vue.d.ts +11 -4
- package/lib/components/breadcrumbs/Breadcrumbs.vue.js +55 -65
- package/lib/components/breadcrumbs/index.d.ts +1 -2
- package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.d.ts +3 -0
- package/lib/components/breadcrumbs/{Breadcrumbs.theme.js → theme/Breadcrumbs.base.theme.js} +2 -2
- package/lib/components/breadcrumbs/theme/Breadcrumbs.carbon.theme.d.ts +3 -0
- package/lib/components/breadcrumbs/theme/Breadcrumbs.carbon.theme.js +10 -0
- package/lib/components/button/Button.vue.d.ts +33 -10
- package/lib/components/button/Button.vue.js +2 -2
- package/lib/components/button/Button.vue2.js +60 -58
- package/lib/components/button/ButtonGroup.vue.d.ts +31 -8
- package/lib/components/button/ButtonGroup.vue2.js +13 -14
- package/lib/components/button/index.d.ts +2 -4
- package/lib/components/button/theme/Button.base.theme.d.ts +3 -0
- package/lib/components/button/theme/Button.carbon.theme.d.ts +3 -0
- package/lib/components/button/theme/Button.carbon.theme.js +138 -0
- package/lib/components/button/theme/ButtonGroup.base.theme.d.ts +3 -0
- package/lib/components/button/theme/ButtonGroup.carbon.theme.d.ts +3 -0
- package/lib/components/button/theme/ButtonGroup.carbon.theme.js +8 -0
- package/lib/components/card/Card.vue.d.ts +4 -0
- package/lib/components/card/Card.vue.js +12 -13
- package/lib/components/card/index.d.ts +1 -2
- package/lib/components/card/theme/Card.base.theme.d.ts +3 -0
- package/lib/components/card/{Card.theme.js → theme/Card.base.theme.js} +2 -2
- package/lib/components/card/theme/Card.carbon.theme.d.ts +3 -0
- package/lib/components/card/theme/Card.carbon.theme.js +5 -0
- package/lib/components/carousel/Carousel.vue.d.ts +85 -0
- package/lib/components/carousel/Carousel.vue.js +94 -0
- package/lib/components/carousel/Carousel.vue2.js +4 -0
- package/lib/components/carousel/CarouselSlide.vue.d.ts +22 -0
- package/lib/components/carousel/CarouselSlide.vue.js +9 -0
- package/lib/components/carousel/CarouselSlide.vue2.js +25 -0
- package/lib/components/carousel/CarouselSlide.vue3.js +6 -0
- package/lib/components/carousel/__tests__/Carousel.spec.d.ts +1 -0
- package/lib/components/carousel/index.d.ts +4 -0
- package/lib/components/carousel/theme/Carousel.base.theme.d.ts +3 -0
- package/lib/components/carousel/theme/Carousel.base.theme.js +16 -0
- package/lib/components/carousel/theme/Carousel.carbon.theme.d.ts +3 -0
- package/lib/components/carousel/theme/Carousel.carbon.theme.js +5 -0
- package/lib/components/carousel/theme/CarouselSlide.base.theme.d.ts +3 -0
- package/lib/components/carousel/theme/CarouselSlide.base.theme.js +8 -0
- package/lib/components/carousel/theme/CarouselSlide.carbon.theme.d.ts +3 -0
- package/lib/components/carousel/theme/CarouselSlide.carbon.theme.js +5 -0
- package/lib/components/checkbox/Checkbox.vue.d.ts +35 -8
- package/lib/components/checkbox/Checkbox.vue2.js +53 -53
- package/lib/components/checkbox/index.d.ts +1 -2
- package/lib/components/checkbox/theme/Checkbox.base.theme.d.ts +3 -0
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.d.ts +3 -0
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +52 -0
- package/lib/components/collapse/Collapse.vue.d.ts +5 -1
- package/lib/components/collapse/Collapse.vue.js +34 -35
- package/lib/components/collapse/index.d.ts +1 -2
- package/lib/components/collapse/theme/Collapse.base.theme.d.ts +3 -0
- package/lib/components/collapse/theme/Collapse.carbon.theme.d.ts +3 -0
- package/lib/components/collapse/theme/Collapse.carbon.theme.js +5 -0
- package/lib/components/container/Container.vue.d.ts +4 -0
- package/lib/components/container/Container.vue.js +13 -14
- package/lib/components/container/index.d.ts +1 -2
- package/lib/components/container/theme/Container.base.theme.d.ts +3 -0
- package/lib/components/container/theme/Container.carbon.theme.d.ts +3 -0
- package/lib/components/container/theme/Container.carbon.theme.js +5 -0
- package/lib/components/divider/Divider.vue.d.ts +4 -0
- package/lib/components/divider/Divider.vue.js +12 -13
- package/lib/components/divider/index.d.ts +1 -2
- package/lib/components/divider/theme/Divider.base.theme.d.ts +3 -0
- package/lib/components/divider/theme/Divider.carbon.theme.d.ts +3 -0
- package/lib/components/divider/theme/Divider.carbon.theme.js +5 -0
- package/lib/components/drawer/Drawer.vue.d.ts +10 -6
- package/lib/components/drawer/Drawer.vue.js +34 -35
- package/lib/components/drawer/index.d.ts +1 -2
- package/lib/components/drawer/theme/Drawer.base.theme.d.ts +3 -0
- package/lib/components/drawer/theme/Drawer.carbon.theme.d.ts +3 -0
- package/lib/components/drawer/theme/Drawer.carbon.theme.js +5 -0
- package/lib/components/form/Form.vue.d.ts +5 -1
- package/lib/components/form/Form.vue.js +23 -24
- package/lib/components/form/index.d.ts +1 -2
- package/lib/components/form/theme/Form.base.theme.d.ts +3 -0
- package/lib/components/form/theme/Form.carbon.theme.d.ts +3 -0
- package/lib/components/form/theme/Form.carbon.theme.js +5 -0
- package/lib/components/icon/Icon.vue.d.ts +15 -5
- package/lib/components/icon/Icon.vue.js +16 -17
- package/lib/components/icon/index.d.ts +1 -2
- package/lib/components/icon/theme/Icon.base.theme.d.ts +3 -0
- package/lib/components/icon/theme/Icon.carbon.theme.d.ts +3 -0
- package/lib/components/icon/theme/Icon.carbon.theme.js +11 -0
- package/lib/components/image/Image.vue.d.ts +4 -0
- package/lib/components/image/Image.vue.js +13 -14
- package/lib/components/image/index.d.ts +1 -2
- package/lib/components/image/theme/Image.base.theme.d.ts +3 -0
- package/lib/components/image/theme/Image.carbon.theme.d.ts +3 -0
- package/lib/components/image/theme/Image.carbon.theme.js +5 -0
- package/lib/components/index.d.ts +5 -0
- package/lib/components/index.js +101 -88
- package/lib/components/input/Input.vue.d.ts +47 -12
- package/lib/components/input/Input.vue.js +101 -94
- package/lib/components/input/index.d.ts +1 -2
- package/lib/components/input/theme/Input.base.theme.d.ts +3 -0
- package/lib/components/input/theme/Input.base.theme.js +17 -0
- package/lib/components/input/theme/Input.carbon.theme.d.ts +3 -0
- package/lib/components/input/theme/Input.carbon.theme.js +17 -0
- package/lib/components/inputFooter/InputFooter.vue.d.ts +18 -0
- package/lib/components/inputFooter/InputFooter.vue.js +27 -0
- package/lib/components/inputFooter/InputFooter.vue2.js +4 -0
- package/lib/components/inputFooter/__tests__/InputFooter.spec.d.ts +1 -0
- package/lib/components/inputFooter/index.d.ts +2 -0
- package/lib/components/inputFooter/theme/InputFooter.base.theme.d.ts +3 -0
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +10 -0
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.d.ts +3 -0
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +10 -0
- package/lib/components/label/Label.vue.d.ts +68 -0
- package/lib/components/label/Label.vue.js +48 -0
- package/lib/components/label/Label.vue2.js +4 -0
- package/lib/components/label/__tests__/Label.spec.d.ts +1 -0
- package/lib/components/label/index.d.ts +2 -0
- package/lib/components/label/theme/Label.base.theme.d.ts +3 -0
- package/lib/components/label/theme/Label.base.theme.js +15 -0
- package/lib/components/label/theme/Label.carbon.theme.d.ts +3 -0
- package/lib/components/label/theme/Label.carbon.theme.js +11 -0
- package/lib/components/link/Link.vue.d.ts +6 -2
- package/lib/components/link/Link.vue.js +1 -1
- package/lib/components/link/Link.vue2.js +15 -16
- package/lib/components/link/index.d.ts +1 -2
- package/lib/components/link/theme/Link.base.theme.d.ts +3 -0
- package/lib/components/link/{Link.theme.js → theme/Link.base.theme.js} +4 -4
- package/lib/components/link/theme/Link.carbon.theme.d.ts +3 -0
- package/lib/components/link/theme/Link.carbon.theme.js +5 -0
- package/lib/components/loader/Loader.vue.d.ts +49 -0
- package/lib/components/loader/Loader.vue.js +54 -0
- package/lib/components/loader/Loader.vue2.js +4 -0
- package/lib/components/loader/__tests__/Loader.spec.d.ts +1 -0
- package/lib/components/loader/index.d.ts +2 -0
- package/lib/components/loader/theme/Loader.base.theme.d.ts +3 -0
- package/lib/components/loader/theme/Loader.base.theme.js +11 -0
- package/lib/components/loader/theme/Loader.carbon.theme.d.ts +3 -0
- package/lib/components/loader/theme/Loader.carbon.theme.js +11 -0
- package/lib/components/menu/Menu.vue.d.ts +8 -4
- package/lib/components/menu/Menu.vue.js +21 -22
- package/lib/components/menu/MenuItem.vue.d.ts +16 -9
- package/lib/components/menu/MenuItem.vue.js +2 -2
- package/lib/components/menu/MenuItem.vue2.js +35 -36
- package/lib/components/menu/index.d.ts +2 -4
- package/lib/components/menu/theme/Menu.base.theme.d.ts +3 -0
- package/lib/components/menu/theme/Menu.carbon.theme.d.ts +3 -0
- package/lib/components/menu/theme/Menu.carbon.theme.js +5 -0
- package/lib/components/menu/theme/MenuItem.base.theme.d.ts +3 -0
- package/lib/components/menu/theme/MenuItem.carbon.theme.d.ts +3 -0
- package/lib/components/menu/theme/MenuItem.carbon.theme.js +5 -0
- package/lib/components/modal/Modal.vue.d.ts +4 -0
- package/lib/components/modal/Modal.vue.js +39 -40
- package/lib/components/modal/index.d.ts +1 -2
- package/lib/components/modal/theme/Modal.base.theme.d.ts +3 -0
- package/lib/components/modal/{Modal.theme.js → theme/Modal.base.theme.js} +2 -2
- package/lib/components/modal/theme/Modal.carbon.theme.d.ts +3 -0
- package/lib/components/modal/theme/Modal.carbon.theme.js +5 -0
- package/lib/components/notifications/Notifications.vue.d.ts +17 -5
- package/lib/components/notifications/Notifications.vue.js +34 -35
- package/lib/components/notifications/index.d.ts +1 -2
- package/lib/components/notifications/theme/Notifications.base.theme.d.ts +3 -0
- package/lib/components/notifications/theme/Notifications.carbon.theme.d.ts +3 -0
- package/lib/components/notifications/theme/Notifications.carbon.theme.js +5 -0
- package/lib/components/pagination/Pagination.vue.d.ts +9 -5
- package/lib/components/pagination/Pagination.vue.js +34 -34
- package/lib/components/pagination/PaginationItem.vue.d.ts +8 -4
- package/lib/components/pagination/PaginationItem.vue.js +13 -14
- package/lib/components/pagination/index.d.ts +2 -4
- package/lib/components/pagination/theme/Pagination.base.theme.d.ts +3 -0
- package/lib/components/pagination/{Pagination.theme.js → theme/Pagination.base.theme.js} +6 -6
- package/lib/components/pagination/theme/Pagination.carbon.theme.d.ts +3 -0
- package/lib/components/pagination/theme/Pagination.carbon.theme.js +5 -0
- package/lib/components/pagination/theme/PaginationItem.base.theme.d.ts +3 -0
- package/lib/components/pagination/theme/PaginationItem.carbon.theme.d.ts +3 -0
- package/lib/components/pagination/theme/PaginationItem.carbon.theme.js +5 -0
- package/lib/components/popover/Popover.vue.d.ts +163 -54
- package/lib/components/popover/Popover.vue.js +127 -7
- package/lib/components/popover/Popover.vue2.js +2 -104
- package/lib/components/popover/Popover.vue3.js +3 -13
- package/lib/components/popover/PopoverContainer.vue.d.ts +4 -0
- package/lib/components/popover/PopoverContainer.vue.js +10 -11
- package/lib/components/popover/index.d.ts +2 -4
- package/lib/components/popover/theme/Popover.base.theme.d.ts +3 -0
- package/lib/components/popover/theme/Popover.base.theme.js +9 -0
- package/lib/components/popover/theme/Popover.carbon.theme.d.ts +3 -0
- package/lib/components/popover/theme/Popover.carbon.theme.js +5 -0
- package/lib/components/popover/theme/PopoverContainer.base.theme.d.ts +3 -0
- package/lib/components/popover/theme/PopoverContainer.carbon.theme.d.ts +3 -0
- package/lib/components/popover/theme/PopoverContainer.carbon.theme.js +8 -0
- package/lib/components/progress/Progress.vue.d.ts +6 -2
- package/lib/components/progress/Progress.vue.js +14 -15
- package/lib/components/progress/index.d.ts +1 -2
- package/lib/components/progress/theme/Progress.base.theme.d.ts +3 -0
- package/lib/components/progress/theme/Progress.carbon.theme.d.ts +3 -0
- package/lib/components/progress/theme/Progress.carbon.theme.js +5 -0
- package/lib/components/radio/Radio.vue.d.ts +38 -11
- package/lib/components/radio/Radio.vue2.js +62 -62
- package/lib/components/radio/index.d.ts +1 -2
- package/lib/components/radio/theme/Radio.base.theme.d.ts +3 -0
- package/lib/components/radio/{Radio.theme.js → theme/Radio.base.theme.js} +16 -16
- package/lib/components/radio/theme/Radio.carbon.theme.d.ts +3 -0
- package/lib/components/radio/theme/Radio.carbon.theme.js +61 -0
- package/lib/components/scroll/Scroll.vue.d.ts +8 -2
- package/lib/components/scroll/Scroll.vue2.js +20 -21
- package/lib/components/scroll/index.d.ts +1 -2
- package/lib/components/scroll/theme/Scroll.base.theme.d.ts +3 -0
- package/lib/components/scroll/theme/Scroll.carbon.theme.d.ts +3 -0
- package/lib/components/scroll/theme/Scroll.carbon.theme.js +5 -0
- package/lib/components/select/Select.vue.d.ts +38 -7
- package/lib/components/select/Select.vue.js +283 -206
- package/lib/components/select/index.d.ts +1 -2
- package/lib/components/select/theme/Select.base.theme.d.ts +3 -0
- package/lib/components/select/theme/Select.base.theme.js +22 -0
- package/lib/components/select/theme/Select.carbon.theme.d.ts +3 -0
- package/lib/components/select/theme/Select.carbon.theme.js +22 -0
- package/lib/components/skeleton/Skeleton.vue.d.ts +4 -0
- package/lib/components/skeleton/Skeleton.vue.js +10 -11
- package/lib/components/skeleton/index.d.ts +1 -2
- package/lib/components/skeleton/theme/Skeleton.base.theme.d.ts +3 -0
- package/lib/components/skeleton/theme/Skeleton.carbon.theme.d.ts +3 -0
- package/lib/components/skeleton/theme/Skeleton.carbon.theme.js +5 -0
- package/lib/components/slider/Slider.vue.d.ts +31 -7
- package/lib/components/slider/Slider.vue.js +97 -96
- package/lib/components/slider/index.d.ts +1 -1
- package/lib/components/slider/theme/Slider.base.theme.d.ts +3 -0
- package/lib/components/slider/theme/Slider.base.theme.js +16 -0
- package/lib/components/slider/theme/Slider.carbon.theme.d.ts +3 -0
- package/lib/components/slider/theme/Slider.carbon.theme.js +16 -0
- package/lib/components/spinner/Spinner.vue.d.ts +4 -4
- package/lib/components/spinner/Spinner.vue.js +2 -2
- package/lib/components/tab/Tab.vue.d.ts +11 -3
- package/lib/components/tab/Tab.vue.js +61 -57
- package/lib/components/tab/TabGroup.vue.d.ts +24 -7
- package/lib/components/tab/TabGroup.vue.js +78 -76
- package/lib/components/tab/index.d.ts +2 -2
- package/lib/components/tab/theme/Tab.base.theme.d.ts +3 -0
- package/lib/components/tab/{Tab.theme.js → theme/Tab.base.theme.js} +4 -3
- package/lib/components/tab/theme/Tab.carbon.theme.d.ts +3 -0
- package/lib/components/tab/theme/Tab.carbon.theme.js +17 -0
- package/lib/components/tab/theme/TabGroup.base.theme.d.ts +3 -0
- package/lib/components/tab/{TabGroup.theme.js → theme/TabGroup.base.theme.js} +5 -1
- package/lib/components/tab/theme/TabGroup.carbon.theme.d.ts +3 -0
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +5 -0
- package/lib/components/table/Table.vue.d.ts +213 -225
- package/lib/components/table/Table.vue.js +27 -28
- package/lib/components/table/TableCell.vue.d.ts +5 -1
- package/lib/components/table/TableCell.vue.js +19 -20
- package/lib/components/table/TableHeader.vue.d.ts +1 -1
- package/lib/components/table/TableRow.vue.d.ts +1 -1
- package/lib/components/table/index.d.ts +2 -2
- package/lib/components/table/theme/Table.base.theme.d.ts +3 -0
- package/lib/components/table/{Table.theme.js → theme/Table.base.theme.js} +3 -3
- package/lib/components/table/theme/Table.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/Table.carbon.theme.js +5 -0
- package/lib/components/table/theme/TableCell.base.theme.d.ts +3 -0
- package/lib/components/table/theme/TableCell.carbon.theme.d.ts +3 -0
- package/lib/components/table/theme/TableCell.carbon.theme.js +5 -0
- package/lib/components/tag/Tag.vue.d.ts +10 -6
- package/lib/components/tag/Tag.vue.js +16 -17
- package/lib/components/tag/index.d.ts +1 -1
- package/lib/components/tag/theme/Tag.base.theme.d.ts +3 -0
- package/lib/components/tag/{Tag.theme.js → theme/Tag.base.theme.js} +8 -8
- package/lib/components/tag/theme/Tag.carbon.theme.d.ts +3 -0
- package/lib/components/tag/theme/Tag.carbon.theme.js +24 -0
- package/lib/components/textarea/Textarea.vue.d.ts +51 -23
- package/lib/components/textarea/Textarea.vue.js +81 -78
- package/lib/components/textarea/index.d.ts +1 -1
- package/lib/components/textarea/theme/Textarea.base.theme.d.ts +3 -0
- package/lib/components/textarea/theme/Textarea.base.theme.js +12 -0
- package/lib/components/textarea/theme/Textarea.carbon.theme.d.ts +3 -0
- package/lib/components/textarea/theme/Textarea.carbon.theme.js +12 -0
- package/lib/components/themeProvider/ThemeProvider.vue.d.ts +15 -0
- package/lib/components/themeProvider/ThemeProvider.vue.js +18 -0
- package/lib/components/themeProvider/ThemeProvider.vue2.js +4 -0
- package/lib/components/themeProvider/index.d.ts +1 -0
- package/lib/components/toggle/Toggle.vue.d.ts +31 -7
- package/lib/components/toggle/Toggle.vue.js +44 -44
- package/lib/components/toggle/index.d.ts +1 -1
- package/lib/components/toggle/theme/Toggle.base.theme.d.ts +3 -0
- package/lib/components/toggle/theme/Toggle.carbon.theme.d.ts +3 -0
- package/lib/components/toggle/theme/Toggle.carbon.theme.js +5 -0
- package/lib/components/tooltip/Tooltip.vue.js +13 -9
- package/lib/composables/index.d.ts +6 -6
- package/lib/composables/keys.d.ts +9 -5
- package/lib/composables/keys.js +6 -6
- package/lib/composables/useColors.js +52 -0
- package/lib/composables/{inputtable.d.ts → useInputtable.d.ts} +9 -2
- package/lib/composables/useInputtable.js +93 -0
- package/lib/composables/{interactive.d.ts → useInteractive.d.ts} +9 -1
- package/lib/composables/useInteractive.js +22 -0
- package/lib/composables/useNotifications.d.ts +2 -0
- package/lib/composables/{theme.d.ts → useTheme.d.ts} +9 -6
- package/lib/composables/useTheme.js +59 -0
- package/lib/create.d.ts +7 -8
- package/lib/create.js +14 -12
- package/lib/index.d.ts +4 -2
- package/lib/index.js +118 -102
- package/lib/index.umd.js +166 -1
- package/lib/install.d.ts +1 -1
- package/lib/node_modules/.pnpm/@floating-ui_core@1.5.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +497 -0
- package/lib/node_modules/.pnpm/@floating-ui_dom@1.1.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.js +217 -0
- package/lib/node_modules/.pnpm/@floating-ui_utils@0.2.1/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +116 -0
- package/lib/node_modules/.pnpm/{@vueuse_core@10.2.0_vue@3.3.4 → @vueuse_core@10.2.0_vue@3.3.9}/node_modules/@vueuse/core/index.js +2 -2
- package/lib/node_modules/.pnpm/floating-vue@5.2.0_vue@3.3.9/node_modules/floating-vue/dist/floating-vue.js +1346 -0
- package/lib/theme.d.ts +56 -0
- package/lib/theme.js +14 -0
- package/lib/themes/base/components.d.ts +43 -0
- package/lib/themes/base/components.js +88 -0
- package/lib/themes/base/index.d.ts +3 -0
- package/lib/themes/base/index.js +14 -0
- package/lib/themes/base/styles.css.js +87 -0
- package/lib/themes/carbon/components.d.ts +43 -0
- package/lib/themes/carbon/components.js +88 -0
- package/lib/themes/carbon/index.d.ts +3 -0
- package/lib/themes/carbon/index.js +14 -0
- package/lib/themes/carbon/styles.css.js +86 -0
- package/lib/themes/index.d.ts +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -9
- package/src/{composables/colors-utils.ts → common/colors.ts} +1 -1
- package/src/common/utils.ts +7 -5
- package/src/components/alert/Alert.vue +6 -6
- package/src/components/alert/__tests__/Alert.spec.ts +0 -3
- package/src/components/alert/index.ts +1 -2
- package/src/components/alert/{Alert.theme.ts → theme/Alert.base.theme.ts} +2 -10
- package/src/components/alert/theme/Alert.carbon.theme.ts +7 -0
- package/src/components/avatar/Avatar.vue +9 -7
- package/src/components/avatar/index.ts +1 -2
- package/src/components/avatar/{Avatar.theme.ts → theme/Avatar.base.theme.ts} +2 -12
- package/src/components/avatar/theme/Avatar.carbon.theme.ts +7 -0
- package/src/components/badge/Badge.vue +7 -6
- package/src/components/badge/index.ts +1 -2
- package/src/components/badge/theme/Badge.base.theme.ts +15 -0
- package/src/components/badge/theme/Badge.carbon.theme.ts +7 -0
- package/src/components/breadcrumbs/Breadcrumbs.vue +19 -17
- package/src/components/breadcrumbs/index.ts +1 -2
- package/src/components/breadcrumbs/theme/Breadcrumbs.base.theme.ts +11 -0
- package/src/components/breadcrumbs/theme/Breadcrumbs.carbon.theme.ts +12 -0
- package/src/components/button/Button.vue +28 -19
- package/src/components/button/ButtonGroup.vue +9 -7
- package/src/components/button/index.ts +2 -4
- package/src/components/button/{Button.theme.ts → theme/Button.base.theme.ts} +2 -11
- package/src/components/button/theme/Button.carbon.theme.ts +237 -0
- package/src/components/button/theme/ButtonGroup.base.theme.ts +9 -0
- package/src/components/button/theme/ButtonGroup.carbon.theme.ts +9 -0
- package/src/components/card/Card.vue +5 -4
- package/src/components/card/index.ts +1 -2
- package/src/components/card/theme/Card.base.theme.ts +9 -0
- package/src/components/card/theme/Card.carbon.theme.ts +7 -0
- package/src/components/carousel/Carousel.vue +138 -0
- package/src/components/carousel/CarouselSlide.vue +45 -0
- package/src/components/carousel/__tests__/Carousel.spec.ts +11 -0
- package/src/components/carousel/index.ts +4 -0
- package/src/components/carousel/theme/Carousel.base.theme.ts +25 -0
- package/src/components/carousel/theme/Carousel.carbon.theme.ts +7 -0
- package/src/components/carousel/theme/CarouselSlide.base.theme.ts +9 -0
- package/src/components/carousel/theme/CarouselSlide.carbon.theme.ts +7 -0
- package/src/components/checkbox/Checkbox.vue +14 -12
- package/src/components/checkbox/index.ts +1 -2
- package/src/components/checkbox/{Checkbox.theme.ts → theme/Checkbox.base.theme.ts} +2 -12
- package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +94 -0
- package/src/components/collapse/Collapse.vue +6 -5
- package/src/components/collapse/index.ts +1 -2
- package/src/components/collapse/theme/Collapse.base.theme.ts +13 -0
- package/src/components/collapse/theme/Collapse.carbon.theme.ts +7 -0
- package/src/components/container/Container.vue +5 -4
- package/src/components/container/index.ts +1 -2
- package/src/components/container/theme/Container.base.theme.ts +9 -0
- package/src/components/container/theme/Container.carbon.theme.ts +7 -0
- package/src/components/divider/Divider.vue +5 -4
- package/src/components/divider/index.ts +1 -2
- package/src/components/divider/theme/Divider.base.theme.ts +13 -0
- package/src/components/divider/theme/Divider.carbon.theme.ts +7 -0
- package/src/components/drawer/Drawer.vue +5 -4
- package/src/components/drawer/index.ts +1 -2
- package/src/components/drawer/theme/Drawer.base.theme.ts +11 -0
- package/src/components/drawer/theme/Drawer.carbon.theme.ts +7 -0
- package/src/components/form/Form.vue +5 -4
- package/src/components/form/index.ts +1 -2
- package/src/components/form/theme/Form.base.theme.ts +9 -0
- package/src/components/form/theme/Form.carbon.theme.ts +7 -0
- package/src/components/icon/Icon.vue +11 -8
- package/src/components/icon/index.ts +1 -2
- package/src/components/icon/{Icon.theme.ts → theme/Icon.base.theme.ts} +2 -10
- package/src/components/icon/theme/Icon.carbon.theme.ts +18 -0
- package/src/components/image/Image.vue +5 -4
- package/src/components/image/index.ts +1 -2
- package/src/components/image/theme/Image.base.theme.ts +9 -0
- package/src/components/image/theme/Image.carbon.theme.ts +7 -0
- package/src/components/index.ts +5 -0
- package/src/components/input/Input.vue +46 -43
- package/src/components/input/index.ts +1 -2
- package/src/components/input/{Input.theme.ts → theme/Input.base.theme.ts} +3 -23
- package/src/components/input/theme/Input.carbon.theme.ts +37 -0
- package/src/components/inputFooter/InputFooter.vue +29 -0
- package/src/components/inputFooter/__tests__/InputFooter.spec.ts +11 -0
- package/src/components/inputFooter/index.ts +2 -0
- package/src/components/inputFooter/theme/InputFooter.base.theme.ts +11 -0
- package/src/components/inputFooter/theme/InputFooter.carbon.theme.ts +11 -0
- package/src/components/label/Label.vue +54 -0
- package/src/components/label/__tests__/Label.spec.ts +11 -0
- package/src/components/label/index.ts +2 -0
- package/src/components/label/theme/Label.base.theme.ts +27 -0
- package/src/components/label/theme/Label.carbon.theme.ts +13 -0
- package/src/components/link/Link.vue +6 -5
- package/src/components/link/index.ts +1 -2
- package/src/components/link/{Link.theme.ts → theme/Link.base.theme.ts} +2 -10
- package/src/components/link/theme/Link.carbon.theme.ts +7 -0
- package/src/components/loader/Loader.vue +59 -0
- package/src/components/loader/__tests__/Loader.spec.ts +11 -0
- package/src/components/loader/index.ts +2 -0
- package/src/components/loader/theme/Loader.base.theme.ts +12 -0
- package/src/components/loader/theme/Loader.carbon.theme.ts +12 -0
- package/src/components/menu/Menu.vue +8 -7
- package/src/components/menu/MenuItem.vue +9 -6
- package/src/components/menu/index.ts +2 -4
- package/src/components/menu/theme/Menu.base.theme.ts +9 -0
- package/src/components/menu/theme/Menu.carbon.theme.ts +7 -0
- package/src/components/menu/{MenuItem.theme.ts → theme/MenuItem.base.theme.ts} +2 -12
- package/src/components/menu/theme/MenuItem.carbon.theme.ts +7 -0
- package/src/components/modal/Modal.vue +5 -4
- package/src/components/modal/index.ts +1 -2
- package/src/components/modal/{Modal.theme.ts → theme/Modal.base.theme.ts} +2 -10
- package/src/components/modal/theme/Modal.carbon.theme.ts +7 -0
- package/src/components/notifications/Notifications.vue +17 -7
- package/src/components/notifications/index.ts +1 -1
- package/src/components/notifications/theme/Notifications.base.theme.ts +13 -0
- package/src/components/notifications/theme/Notifications.carbon.theme.ts +7 -0
- package/src/components/pagination/Pagination.vue +13 -6
- package/src/components/pagination/PaginationItem.vue +7 -5
- package/src/components/pagination/index.ts +2 -4
- package/src/components/pagination/{Pagination.theme.ts → theme/Pagination.base.theme.ts} +3 -11
- package/src/components/pagination/theme/Pagination.carbon.theme.ts +7 -0
- package/src/components/pagination/{PaginationItem.theme.ts → theme/PaginationItem.base.theme.ts} +2 -10
- package/src/components/pagination/theme/PaginationItem.carbon.theme.ts +7 -0
- package/src/components/popover/Popover.vue +149 -200
- package/src/components/popover/PopoverContainer.vue +5 -4
- package/src/components/popover/index.ts +2 -4
- package/src/components/popover/theme/Popover.base.theme.ts +11 -0
- package/src/components/popover/theme/Popover.carbon.theme.ts +7 -0
- package/src/components/popover/theme/PopoverContainer.base.theme.ts +9 -0
- package/src/components/popover/theme/PopoverContainer.carbon.theme.ts +9 -0
- package/src/components/progress/Progress.vue +6 -5
- package/src/components/progress/index.ts +1 -2
- package/src/components/progress/{Progress.theme.ts → theme/Progress.base.theme.ts} +2 -10
- package/src/components/progress/theme/Progress.carbon.theme.ts +7 -0
- package/src/components/radio/Radio.vue +13 -11
- package/src/components/radio/index.ts +1 -2
- package/src/components/radio/{Radio.theme.ts → theme/Radio.base.theme.ts} +3 -13
- package/src/components/radio/theme/Radio.carbon.theme.ts +104 -0
- package/src/components/scroll/Scroll.vue +9 -6
- package/src/components/scroll/index.ts +1 -2
- package/src/components/scroll/theme/Scroll.base.theme.ts +9 -0
- package/src/components/scroll/theme/Scroll.carbon.theme.ts +7 -0
- package/src/components/select/Select.vue +183 -93
- package/src/components/select/index.ts +1 -2
- package/src/components/select/theme/Select.base.theme.ts +56 -0
- package/src/components/select/theme/Select.carbon.theme.ts +54 -0
- package/src/components/skeleton/Skeleton.vue +5 -4
- package/src/components/skeleton/index.ts +1 -2
- package/src/components/skeleton/theme/Skeleton.base.theme.ts +9 -0
- package/src/components/skeleton/theme/Skeleton.carbon.theme.ts +7 -0
- package/src/components/slider/Slider.vue +20 -20
- package/src/components/slider/index.ts +1 -1
- package/src/components/slider/theme/Slider.base.theme.ts +21 -0
- package/src/components/slider/theme/Slider.carbon.theme.ts +21 -0
- package/src/components/spinner/Spinner.vue +2 -2
- package/src/components/tab/Tab.vue +18 -10
- package/src/components/tab/TabGroup.vue +16 -12
- package/src/components/tab/index.ts +8 -2
- package/src/components/tab/theme/Tab.base.theme.ts +26 -0
- package/src/components/tab/theme/Tab.carbon.theme.ts +32 -0
- package/src/components/tab/{TabGroup.theme.ts → theme/TabGroup.base.theme.ts} +14 -12
- package/src/components/tab/theme/TabGroup.carbon.theme.ts +7 -0
- package/src/components/table/Table.vue +5 -4
- package/src/components/table/TableCell.vue +5 -4
- package/src/components/table/index.ts +2 -2
- package/src/components/table/theme/Table.base.theme.ts +21 -0
- package/src/components/table/theme/Table.carbon.theme.ts +7 -0
- package/src/components/table/{TableCell.theme.ts → theme/TableCell.base.theme.ts} +2 -10
- package/src/components/table/theme/TableCell.carbon.theme.ts +7 -0
- package/src/components/tag/Tag.vue +7 -6
- package/src/components/tag/index.ts +1 -1
- package/src/components/tag/{Tag.theme.ts → theme/Tag.base.theme.ts} +3 -11
- package/src/components/tag/theme/Tag.carbon.theme.ts +34 -0
- package/src/components/textarea/Textarea.vue +28 -27
- package/src/components/textarea/index.ts +1 -1
- package/src/components/textarea/theme/Textarea.base.theme.ts +27 -0
- package/src/components/textarea/theme/Textarea.carbon.theme.ts +29 -0
- package/src/components/themeProvider/ThemeProvider.vue +28 -0
- package/src/components/themeProvider/index.ts +1 -0
- package/src/components/toggle/Toggle.vue +12 -11
- package/src/components/toggle/index.ts +1 -1
- package/src/components/toggle/{Toggle.theme.ts → theme/Toggle.base.theme.ts} +2 -10
- package/src/components/toggle/theme/Toggle.carbon.theme.ts +7 -0
- package/src/components/tooltip/Tooltip.vue +1 -1
- package/src/composables/index.ts +6 -6
- package/src/composables/keys.ts +9 -5
- package/src/composables/{colors.ts → useColors.ts} +5 -5
- package/src/composables/{inputtable.ts → useInputtable.ts} +21 -5
- package/src/composables/{interactive.ts → useInteractive.ts} +9 -1
- package/src/composables/{notifications.ts → useNotifications.ts} +2 -1
- package/src/composables/{theme.ts → useTheme.ts} +17 -11
- package/src/create.ts +13 -12
- package/src/index.ts +4 -2
- package/src/theme.ts +119 -0
- package/src/themes/base/components.ts +43 -0
- package/src/themes/base/index.ts +15 -0
- package/src/themes/base/styles.css +83 -0
- package/src/themes/carbon/components.ts +43 -0
- package/src/themes/carbon/index.ts +15 -0
- package/src/themes/carbon/styles.css +82 -0
- package/src/themes/index.ts +2 -0
- package/src/version.ts +1 -1
- package/volar.d.ts +5 -0
- package/lib/components/alert/Alert.theme.d.ts +0 -10
- package/lib/components/avatar/Avatar.theme.d.ts +0 -14
- package/lib/components/badge/Badge.theme.d.ts +0 -10
- package/lib/components/badge/Badge.theme.js +0 -12
- package/lib/components/breadcrumbs/Breadcrumbs.theme.d.ts +0 -10
- package/lib/components/button/Button.theme.d.ts +0 -13
- package/lib/components/button/ButtonGroup.theme.d.ts +0 -13
- package/lib/components/card/Card.theme.d.ts +0 -10
- package/lib/components/checkbox/Checkbox.theme.d.ts +0 -14
- package/lib/components/collapse/Collapse.theme.d.ts +0 -10
- package/lib/components/container/Container.theme.d.ts +0 -10
- package/lib/components/divider/Divider.theme.d.ts +0 -10
- package/lib/components/drawer/Drawer.theme.d.ts +0 -10
- package/lib/components/form/Form.theme.d.ts +0 -10
- package/lib/components/helpers/InputError.d.ts +0 -8
- package/lib/components/helpers/InputError.js +0 -18
- package/lib/components/icon/Icon.theme.d.ts +0 -10
- package/lib/components/image/Image.theme.d.ts +0 -10
- package/lib/components/input/Input.theme.d.ts +0 -13
- package/lib/components/input/Input.theme.js +0 -21
- package/lib/components/link/Link.theme.d.ts +0 -10
- package/lib/components/menu/Menu.theme.d.ts +0 -10
- package/lib/components/menu/MenuItem.theme.d.ts +0 -14
- package/lib/components/modal/Modal.theme.d.ts +0 -10
- package/lib/components/notifications/Notifications.theme.d.ts +0 -10
- package/lib/components/pagination/Pagination.theme.d.ts +0 -10
- package/lib/components/pagination/PaginationItem.theme.d.ts +0 -10
- package/lib/components/popover/Popover.theme.d.ts +0 -10
- package/lib/components/popover/Popover.theme.js +0 -9
- package/lib/components/popover/PopoverContainer.theme.d.ts +0 -10
- package/lib/components/progress/Progress.theme.d.ts +0 -10
- package/lib/components/radio/Radio.theme.d.ts +0 -14
- package/lib/components/scroll/Scroll.theme.d.ts +0 -10
- package/lib/components/select/Select.theme.d.ts +0 -14
- package/lib/components/select/Select.theme.js +0 -23
- package/lib/components/skeleton/Skeleton.theme.d.ts +0 -10
- package/lib/components/slider/Slider.theme.d.ts +0 -10
- package/lib/components/slider/Slider.theme.js +0 -20
- package/lib/components/tab/Tab.theme.d.ts +0 -12
- package/lib/components/tab/TabGroup.theme.d.ts +0 -10
- package/lib/components/table/Table.theme.d.ts +0 -10
- package/lib/components/table/TableCell.theme.d.ts +0 -10
- package/lib/components/tag/Tag.theme.d.ts +0 -10
- package/lib/components/textarea/Textarea.theme.d.ts +0 -14
- package/lib/components/textarea/Textarea.theme.js +0 -16
- package/lib/components/toggle/Toggle.theme.d.ts +0 -10
- package/lib/composables/colors.js +0 -52
- package/lib/composables/inputtable.js +0 -78
- package/lib/composables/interactive.js +0 -17
- package/lib/composables/notifications.d.ts +0 -1
- package/lib/composables/theme.js +0 -59
- package/src/components/badge/Badge.theme.ts +0 -23
- package/src/components/breadcrumbs/Breadcrumbs.theme.ts +0 -19
- package/src/components/button/ButtonGroup.theme.ts +0 -18
- package/src/components/card/Card.theme.ts +0 -17
- package/src/components/collapse/Collapse.theme.ts +0 -21
- package/src/components/container/Container.theme.ts +0 -17
- package/src/components/divider/Divider.theme.ts +0 -21
- package/src/components/drawer/Drawer.theme.ts +0 -19
- package/src/components/form/Form.theme.ts +0 -17
- package/src/components/helpers/InputError.tsx +0 -14
- package/src/components/image/Image.theme.ts +0 -17
- package/src/components/menu/Menu.theme.ts +0 -17
- package/src/components/notifications/Notifications.theme.ts +0 -21
- package/src/components/popover/Popover.theme.ts +0 -19
- package/src/components/popover/PopoverContainer.theme.ts +0 -17
- package/src/components/scroll/Scroll.theme.ts +0 -17
- package/src/components/select/Select.theme.ts +0 -68
- package/src/components/skeleton/Skeleton.theme.ts +0 -17
- package/src/components/slider/Slider.theme.ts +0 -40
- package/src/components/tab/Tab.theme.ts +0 -34
- package/src/components/table/Table.theme.ts +0 -29
- package/src/components/textarea/Textarea.theme.ts +0 -50
- /package/lib/{composables/colors-utils.js → common/colors.js} +0 -0
- /package/lib/components/alert/{Alert.theme.js → theme/Alert.base.theme.js} +0 -0
- /package/lib/components/avatar/{Avatar.theme.js → theme/Avatar.base.theme.js} +0 -0
- /package/lib/components/button/{Button.theme.js → theme/Button.base.theme.js} +0 -0
- /package/lib/components/button/{ButtonGroup.theme.js → theme/ButtonGroup.base.theme.js} +0 -0
- /package/lib/components/checkbox/{Checkbox.theme.js → theme/Checkbox.base.theme.js} +0 -0
- /package/lib/components/collapse/{Collapse.theme.js → theme/Collapse.base.theme.js} +0 -0
- /package/lib/components/container/{Container.theme.js → theme/Container.base.theme.js} +0 -0
- /package/lib/components/divider/{Divider.theme.js → theme/Divider.base.theme.js} +0 -0
- /package/lib/components/drawer/{Drawer.theme.js → theme/Drawer.base.theme.js} +0 -0
- /package/lib/components/form/{Form.theme.js → theme/Form.base.theme.js} +0 -0
- /package/lib/components/icon/{Icon.theme.js → theme/Icon.base.theme.js} +0 -0
- /package/lib/components/image/{Image.theme.js → theme/Image.base.theme.js} +0 -0
- /package/lib/components/menu/{Menu.theme.js → theme/Menu.base.theme.js} +0 -0
- /package/lib/components/menu/{MenuItem.theme.js → theme/MenuItem.base.theme.js} +0 -0
- /package/lib/components/notifications/{Notifications.theme.js → theme/Notifications.base.theme.js} +0 -0
- /package/lib/components/pagination/{PaginationItem.theme.js → theme/PaginationItem.base.theme.js} +0 -0
- /package/lib/components/popover/{PopoverContainer.theme.js → theme/PopoverContainer.base.theme.js} +0 -0
- /package/lib/components/progress/{Progress.theme.js → theme/Progress.base.theme.js} +0 -0
- /package/lib/components/scroll/{Scroll.theme.js → theme/Scroll.base.theme.js} +0 -0
- /package/lib/components/skeleton/{Skeleton.theme.js → theme/Skeleton.base.theme.js} +0 -0
- /package/lib/components/table/{TableCell.theme.js → theme/TableCell.base.theme.js} +0 -0
- /package/lib/components/toggle/{Toggle.theme.js → theme/Toggle.base.theme.js} +0 -0
- /package/lib/composables/{css.d.ts → useCSS.d.ts} +0 -0
- /package/lib/composables/{css.js → useCSS.js} +0 -0
- /package/lib/composables/{colors.d.ts → useColors.d.ts} +0 -0
- /package/lib/composables/{common.d.ts → useCommon.d.ts} +0 -0
- /package/lib/composables/{common.js → useCommon.js} +0 -0
- /package/lib/composables/{notifications.js → useNotifications.js} +0 -0
- /package/lib/node_modules/.pnpm/{@vueuse_shared@10.2.0_vue@3.3.4 → @vueuse_shared@10.2.0_vue@3.3.9}/node_modules/@vueuse/shared/index.js +0 -0
- /package/src/composables/{css.ts → useCSS.ts} +0 -0
- /package/src/composables/{common.ts → useCommon.ts} +0 -0
|
@@ -0,0 +1,1346 @@
|
|
|
1
|
+
import { pushScopeId as he, popScopeId as le, defineComponent as b, nextTick as ue, openBlock as w, createBlock as E, createElementBlock as A, normalizeClass as Q, renderSlot as T, normalizeProps as ce, guardReactiveProps as fe, withScopeId as me, resolveComponent as B, normalizeStyle as C, withKeys as ge, createElementVNode as m, Fragment as we, createCommentVNode as I, mergeProps as ye, withCtx as R, createVNode as ve } from "vue";
|
|
2
|
+
import { computePosition as $e, getOverflowAncestors as L } from "../../../../@floating-ui_dom@1.1.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.js";
|
|
3
|
+
import { offset as _e, autoPlacement as Se, shift as Te, flip as be, arrow as Pe, size as ze } from "../../../../@floating-ui_core@1.5.3/node_modules/@floating-ui/core/dist/floating-ui.core.js";
|
|
4
|
+
const g = {
|
|
5
|
+
// Disable popper components
|
|
6
|
+
disabled: !1,
|
|
7
|
+
// Default position offset along main axis (px)
|
|
8
|
+
distance: 5,
|
|
9
|
+
// Default position offset along cross axis (px)
|
|
10
|
+
skidding: 0,
|
|
11
|
+
// Default container where the tooltip will be appended
|
|
12
|
+
container: "body",
|
|
13
|
+
// Element used to compute position and size boundaries
|
|
14
|
+
boundary: void 0,
|
|
15
|
+
// Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
|
|
16
|
+
instantMove: !1,
|
|
17
|
+
// Auto destroy tooltip DOM nodes (ms)
|
|
18
|
+
disposeTimeout: 150,
|
|
19
|
+
// Triggers on the popper itself
|
|
20
|
+
popperTriggers: [],
|
|
21
|
+
// Positioning strategy
|
|
22
|
+
strategy: "absolute",
|
|
23
|
+
// Prevent overflow
|
|
24
|
+
preventOverflow: !0,
|
|
25
|
+
// Flip to the opposite placement if needed
|
|
26
|
+
flip: !0,
|
|
27
|
+
// Shift on the cross axis to prevent the popper from overflowing
|
|
28
|
+
shift: !0,
|
|
29
|
+
// Overflow padding (px)
|
|
30
|
+
overflowPadding: 0,
|
|
31
|
+
// Arrow padding (px)
|
|
32
|
+
arrowPadding: 0,
|
|
33
|
+
// Compute arrow overflow (useful to hide it)
|
|
34
|
+
arrowOverflow: !0,
|
|
35
|
+
// Themes
|
|
36
|
+
themes: {
|
|
37
|
+
tooltip: {
|
|
38
|
+
// Default tooltip placement relative to target element
|
|
39
|
+
placement: "top",
|
|
40
|
+
// Default events that trigger the tooltip
|
|
41
|
+
triggers: ["hover", "focus", "touch"],
|
|
42
|
+
// Close tooltip on click on tooltip target
|
|
43
|
+
hideTriggers: (e) => [...e, "click"],
|
|
44
|
+
// Delay (ms)
|
|
45
|
+
delay: {
|
|
46
|
+
show: 200,
|
|
47
|
+
hide: 0
|
|
48
|
+
},
|
|
49
|
+
// Update popper on content resize
|
|
50
|
+
handleResize: !1,
|
|
51
|
+
// Enable HTML content in directive
|
|
52
|
+
html: !1,
|
|
53
|
+
// Displayed when tooltip content is loading
|
|
54
|
+
loadingContent: "..."
|
|
55
|
+
},
|
|
56
|
+
dropdown: {
|
|
57
|
+
// Default dropdown placement relative to target element
|
|
58
|
+
placement: "bottom",
|
|
59
|
+
// Default events that trigger the dropdown
|
|
60
|
+
triggers: ["click"],
|
|
61
|
+
// Delay (ms)
|
|
62
|
+
delay: 0,
|
|
63
|
+
// Update popper on content resize
|
|
64
|
+
handleResize: !0,
|
|
65
|
+
// Hide on clock outside
|
|
66
|
+
autoHide: !0
|
|
67
|
+
},
|
|
68
|
+
menu: {
|
|
69
|
+
$extend: "dropdown",
|
|
70
|
+
triggers: ["hover", "focus"],
|
|
71
|
+
popperTriggers: ["hover"],
|
|
72
|
+
delay: {
|
|
73
|
+
show: 0,
|
|
74
|
+
hide: 400
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
function H(e, t) {
|
|
80
|
+
let i = g.themes[e] || {}, o;
|
|
81
|
+
do
|
|
82
|
+
o = i[t], typeof o > "u" ? i.$extend ? i = g.themes[i.$extend] || {} : (i = null, o = g[t]) : i = null;
|
|
83
|
+
while (i);
|
|
84
|
+
return o;
|
|
85
|
+
}
|
|
86
|
+
function Ce(e) {
|
|
87
|
+
const t = [e];
|
|
88
|
+
let i = g.themes[e] || {};
|
|
89
|
+
do
|
|
90
|
+
i.$extend && !i.$resetCss ? (t.push(i.$extend), i = g.themes[i.$extend] || {}) : i = null;
|
|
91
|
+
while (i);
|
|
92
|
+
return t.map((o) => `v-popper--theme-${o}`);
|
|
93
|
+
}
|
|
94
|
+
function j(e) {
|
|
95
|
+
const t = [e];
|
|
96
|
+
let i = g.themes[e] || {};
|
|
97
|
+
do
|
|
98
|
+
i.$extend ? (t.push(i.$extend), i = g.themes[i.$extend] || {}) : i = null;
|
|
99
|
+
while (i);
|
|
100
|
+
return t;
|
|
101
|
+
}
|
|
102
|
+
let $ = !1;
|
|
103
|
+
if (typeof window < "u") {
|
|
104
|
+
$ = !1;
|
|
105
|
+
try {
|
|
106
|
+
const e = Object.defineProperty({}, "passive", {
|
|
107
|
+
get() {
|
|
108
|
+
$ = !0;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
window.addEventListener("test", null, e);
|
|
112
|
+
} catch {
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
let X = !1;
|
|
116
|
+
typeof window < "u" && typeof navigator < "u" && (X = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
|
|
117
|
+
const Ne = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
|
|
118
|
+
t,
|
|
119
|
+
`${t}-start`,
|
|
120
|
+
`${t}-end`
|
|
121
|
+
]), []), W = {
|
|
122
|
+
hover: "mouseenter",
|
|
123
|
+
focus: "focus",
|
|
124
|
+
click: "click",
|
|
125
|
+
touch: "touchstart",
|
|
126
|
+
pointer: "pointerdown"
|
|
127
|
+
}, V = {
|
|
128
|
+
hover: "mouseleave",
|
|
129
|
+
focus: "blur",
|
|
130
|
+
click: "click",
|
|
131
|
+
touch: "touchend",
|
|
132
|
+
pointer: "pointerup"
|
|
133
|
+
};
|
|
134
|
+
function q(e, t) {
|
|
135
|
+
const i = e.indexOf(t);
|
|
136
|
+
i !== -1 && e.splice(i, 1);
|
|
137
|
+
}
|
|
138
|
+
function N() {
|
|
139
|
+
return new Promise((e) => requestAnimationFrame(() => {
|
|
140
|
+
requestAnimationFrame(e);
|
|
141
|
+
}));
|
|
142
|
+
}
|
|
143
|
+
const l = [];
|
|
144
|
+
let f = null;
|
|
145
|
+
const G = {};
|
|
146
|
+
function U(e) {
|
|
147
|
+
let t = G[e];
|
|
148
|
+
return t || (t = G[e] = []), t;
|
|
149
|
+
}
|
|
150
|
+
let O = function() {
|
|
151
|
+
};
|
|
152
|
+
typeof window < "u" && (O = window.Element);
|
|
153
|
+
function r(e) {
|
|
154
|
+
return function(t) {
|
|
155
|
+
return H(t.theme, e);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
const x = "__floating-vue__popper", Y = () => b({
|
|
159
|
+
name: "VPopper",
|
|
160
|
+
provide() {
|
|
161
|
+
return {
|
|
162
|
+
[x]: {
|
|
163
|
+
parentPopper: this
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
},
|
|
167
|
+
inject: {
|
|
168
|
+
[x]: { default: null }
|
|
169
|
+
},
|
|
170
|
+
props: {
|
|
171
|
+
theme: {
|
|
172
|
+
type: String,
|
|
173
|
+
required: !0
|
|
174
|
+
},
|
|
175
|
+
targetNodes: {
|
|
176
|
+
type: Function,
|
|
177
|
+
required: !0
|
|
178
|
+
},
|
|
179
|
+
referenceNode: {
|
|
180
|
+
type: Function,
|
|
181
|
+
default: null
|
|
182
|
+
},
|
|
183
|
+
popperNode: {
|
|
184
|
+
type: Function,
|
|
185
|
+
required: !0
|
|
186
|
+
},
|
|
187
|
+
shown: {
|
|
188
|
+
type: Boolean,
|
|
189
|
+
default: !1
|
|
190
|
+
},
|
|
191
|
+
showGroup: {
|
|
192
|
+
type: String,
|
|
193
|
+
default: null
|
|
194
|
+
},
|
|
195
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
196
|
+
ariaId: {
|
|
197
|
+
default: null
|
|
198
|
+
},
|
|
199
|
+
disabled: {
|
|
200
|
+
type: Boolean,
|
|
201
|
+
default: r("disabled")
|
|
202
|
+
},
|
|
203
|
+
positioningDisabled: {
|
|
204
|
+
type: Boolean,
|
|
205
|
+
default: r("positioningDisabled")
|
|
206
|
+
},
|
|
207
|
+
placement: {
|
|
208
|
+
type: String,
|
|
209
|
+
default: r("placement"),
|
|
210
|
+
validator: (e) => Ne.includes(e)
|
|
211
|
+
},
|
|
212
|
+
delay: {
|
|
213
|
+
type: [String, Number, Object],
|
|
214
|
+
default: r("delay")
|
|
215
|
+
},
|
|
216
|
+
distance: {
|
|
217
|
+
type: [Number, String],
|
|
218
|
+
default: r("distance")
|
|
219
|
+
},
|
|
220
|
+
skidding: {
|
|
221
|
+
type: [Number, String],
|
|
222
|
+
default: r("skidding")
|
|
223
|
+
},
|
|
224
|
+
triggers: {
|
|
225
|
+
type: Array,
|
|
226
|
+
default: r("triggers")
|
|
227
|
+
},
|
|
228
|
+
showTriggers: {
|
|
229
|
+
type: [Array, Function],
|
|
230
|
+
default: r("showTriggers")
|
|
231
|
+
},
|
|
232
|
+
hideTriggers: {
|
|
233
|
+
type: [Array, Function],
|
|
234
|
+
default: r("hideTriggers")
|
|
235
|
+
},
|
|
236
|
+
popperTriggers: {
|
|
237
|
+
type: Array,
|
|
238
|
+
default: r("popperTriggers")
|
|
239
|
+
},
|
|
240
|
+
popperShowTriggers: {
|
|
241
|
+
type: [Array, Function],
|
|
242
|
+
default: r("popperShowTriggers")
|
|
243
|
+
},
|
|
244
|
+
popperHideTriggers: {
|
|
245
|
+
type: [Array, Function],
|
|
246
|
+
default: r("popperHideTriggers")
|
|
247
|
+
},
|
|
248
|
+
container: {
|
|
249
|
+
type: [String, Object, O, Boolean],
|
|
250
|
+
default: r("container")
|
|
251
|
+
},
|
|
252
|
+
boundary: {
|
|
253
|
+
type: [String, O],
|
|
254
|
+
default: r("boundary")
|
|
255
|
+
},
|
|
256
|
+
strategy: {
|
|
257
|
+
type: String,
|
|
258
|
+
validator: (e) => ["absolute", "fixed"].includes(e),
|
|
259
|
+
default: r("strategy")
|
|
260
|
+
},
|
|
261
|
+
autoHide: {
|
|
262
|
+
type: [Boolean, Function],
|
|
263
|
+
default: r("autoHide")
|
|
264
|
+
},
|
|
265
|
+
handleResize: {
|
|
266
|
+
type: Boolean,
|
|
267
|
+
default: r("handleResize")
|
|
268
|
+
},
|
|
269
|
+
instantMove: {
|
|
270
|
+
type: Boolean,
|
|
271
|
+
default: r("instantMove")
|
|
272
|
+
},
|
|
273
|
+
eagerMount: {
|
|
274
|
+
type: Boolean,
|
|
275
|
+
default: r("eagerMount")
|
|
276
|
+
},
|
|
277
|
+
popperClass: {
|
|
278
|
+
type: [String, Array, Object],
|
|
279
|
+
default: r("popperClass")
|
|
280
|
+
},
|
|
281
|
+
computeTransformOrigin: {
|
|
282
|
+
type: Boolean,
|
|
283
|
+
default: r("computeTransformOrigin")
|
|
284
|
+
},
|
|
285
|
+
/**
|
|
286
|
+
* @deprecated
|
|
287
|
+
*/
|
|
288
|
+
autoMinSize: {
|
|
289
|
+
type: Boolean,
|
|
290
|
+
default: r("autoMinSize")
|
|
291
|
+
},
|
|
292
|
+
autoSize: {
|
|
293
|
+
type: [Boolean, String],
|
|
294
|
+
default: r("autoSize")
|
|
295
|
+
},
|
|
296
|
+
/**
|
|
297
|
+
* @deprecated
|
|
298
|
+
*/
|
|
299
|
+
autoMaxSize: {
|
|
300
|
+
type: Boolean,
|
|
301
|
+
default: r("autoMaxSize")
|
|
302
|
+
},
|
|
303
|
+
autoBoundaryMaxSize: {
|
|
304
|
+
type: Boolean,
|
|
305
|
+
default: r("autoBoundaryMaxSize")
|
|
306
|
+
},
|
|
307
|
+
preventOverflow: {
|
|
308
|
+
type: Boolean,
|
|
309
|
+
default: r("preventOverflow")
|
|
310
|
+
},
|
|
311
|
+
overflowPadding: {
|
|
312
|
+
type: [Number, String],
|
|
313
|
+
default: r("overflowPadding")
|
|
314
|
+
},
|
|
315
|
+
arrowPadding: {
|
|
316
|
+
type: [Number, String],
|
|
317
|
+
default: r("arrowPadding")
|
|
318
|
+
},
|
|
319
|
+
arrowOverflow: {
|
|
320
|
+
type: Boolean,
|
|
321
|
+
default: r("arrowOverflow")
|
|
322
|
+
},
|
|
323
|
+
flip: {
|
|
324
|
+
type: Boolean,
|
|
325
|
+
default: r("flip")
|
|
326
|
+
},
|
|
327
|
+
shift: {
|
|
328
|
+
type: Boolean,
|
|
329
|
+
default: r("shift")
|
|
330
|
+
},
|
|
331
|
+
shiftCrossAxis: {
|
|
332
|
+
type: Boolean,
|
|
333
|
+
default: r("shiftCrossAxis")
|
|
334
|
+
},
|
|
335
|
+
noAutoFocus: {
|
|
336
|
+
type: Boolean,
|
|
337
|
+
default: r("noAutoFocus")
|
|
338
|
+
},
|
|
339
|
+
disposeTimeout: {
|
|
340
|
+
type: Number,
|
|
341
|
+
default: r("disposeTimeout")
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
emits: {
|
|
345
|
+
show: () => !0,
|
|
346
|
+
hide: () => !0,
|
|
347
|
+
"update:shown": (e) => !0,
|
|
348
|
+
"apply-show": () => !0,
|
|
349
|
+
"apply-hide": () => !0,
|
|
350
|
+
"close-group": () => !0,
|
|
351
|
+
"close-directive": () => !0,
|
|
352
|
+
"auto-hide": () => !0,
|
|
353
|
+
resize: () => !0
|
|
354
|
+
},
|
|
355
|
+
data() {
|
|
356
|
+
return {
|
|
357
|
+
isShown: !1,
|
|
358
|
+
isMounted: !1,
|
|
359
|
+
skipTransition: !1,
|
|
360
|
+
classes: {
|
|
361
|
+
showFrom: !1,
|
|
362
|
+
showTo: !1,
|
|
363
|
+
hideFrom: !1,
|
|
364
|
+
hideTo: !0
|
|
365
|
+
},
|
|
366
|
+
result: {
|
|
367
|
+
x: 0,
|
|
368
|
+
y: 0,
|
|
369
|
+
placement: "",
|
|
370
|
+
strategy: this.strategy,
|
|
371
|
+
arrow: {
|
|
372
|
+
x: 0,
|
|
373
|
+
y: 0,
|
|
374
|
+
centerOffset: 0
|
|
375
|
+
},
|
|
376
|
+
transformOrigin: null
|
|
377
|
+
},
|
|
378
|
+
randomId: `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`,
|
|
379
|
+
shownChildren: /* @__PURE__ */ new Set(),
|
|
380
|
+
lastAutoHide: !0,
|
|
381
|
+
pendingHide: !1,
|
|
382
|
+
containsGlobalTarget: !1,
|
|
383
|
+
isDisposed: !0
|
|
384
|
+
};
|
|
385
|
+
},
|
|
386
|
+
computed: {
|
|
387
|
+
popperId() {
|
|
388
|
+
return this.ariaId != null ? this.ariaId : this.randomId;
|
|
389
|
+
},
|
|
390
|
+
shouldMountContent() {
|
|
391
|
+
return this.eagerMount || this.isMounted;
|
|
392
|
+
},
|
|
393
|
+
slotData() {
|
|
394
|
+
return {
|
|
395
|
+
popperId: this.popperId,
|
|
396
|
+
isShown: this.isShown,
|
|
397
|
+
shouldMountContent: this.shouldMountContent,
|
|
398
|
+
skipTransition: this.skipTransition,
|
|
399
|
+
autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
|
|
400
|
+
show: this.show,
|
|
401
|
+
hide: this.hide,
|
|
402
|
+
handleResize: this.handleResize,
|
|
403
|
+
onResize: this.onResize,
|
|
404
|
+
classes: {
|
|
405
|
+
...this.classes,
|
|
406
|
+
popperClass: this.popperClass
|
|
407
|
+
},
|
|
408
|
+
result: this.positioningDisabled ? null : this.result,
|
|
409
|
+
attrs: this.$attrs
|
|
410
|
+
};
|
|
411
|
+
},
|
|
412
|
+
parentPopper() {
|
|
413
|
+
var e;
|
|
414
|
+
return (e = this[x]) == null ? void 0 : e.parentPopper;
|
|
415
|
+
},
|
|
416
|
+
hasPopperShowTriggerHover() {
|
|
417
|
+
var e, t;
|
|
418
|
+
return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
watch: {
|
|
422
|
+
shown: "$_autoShowHide",
|
|
423
|
+
disabled(e) {
|
|
424
|
+
e ? this.dispose() : this.init();
|
|
425
|
+
},
|
|
426
|
+
async container() {
|
|
427
|
+
this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
|
|
428
|
+
},
|
|
429
|
+
...[
|
|
430
|
+
"triggers",
|
|
431
|
+
"positioningDisabled"
|
|
432
|
+
].reduce((e, t) => (e[t] = "$_refreshListeners", e), {}),
|
|
433
|
+
...[
|
|
434
|
+
"placement",
|
|
435
|
+
"distance",
|
|
436
|
+
"skidding",
|
|
437
|
+
"boundary",
|
|
438
|
+
"strategy",
|
|
439
|
+
"overflowPadding",
|
|
440
|
+
"arrowPadding",
|
|
441
|
+
"preventOverflow",
|
|
442
|
+
"shift",
|
|
443
|
+
"shiftCrossAxis",
|
|
444
|
+
"flip"
|
|
445
|
+
].reduce((e, t) => (e[t] = "$_computePosition", e), {})
|
|
446
|
+
},
|
|
447
|
+
created() {
|
|
448
|
+
this.autoMinSize && console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'), this.autoMaxSize && console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
|
|
449
|
+
},
|
|
450
|
+
mounted() {
|
|
451
|
+
this.init(), this.$_detachPopperNode();
|
|
452
|
+
},
|
|
453
|
+
activated() {
|
|
454
|
+
this.$_autoShowHide();
|
|
455
|
+
},
|
|
456
|
+
deactivated() {
|
|
457
|
+
this.hide();
|
|
458
|
+
},
|
|
459
|
+
beforeUnmount() {
|
|
460
|
+
this.dispose();
|
|
461
|
+
},
|
|
462
|
+
methods: {
|
|
463
|
+
show({ event: e = null, skipDelay: t = !1, force: i = !1 } = {}) {
|
|
464
|
+
var o, s;
|
|
465
|
+
(o = this.parentPopper) != null && o.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = !1, (i || !this.disabled) && (((s = this.parentPopper) == null ? void 0 : s.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
|
|
466
|
+
this.$_showFrameLocked = !1;
|
|
467
|
+
})), this.$emit("update:shown", !0));
|
|
468
|
+
},
|
|
469
|
+
hide({ event: e = null, skipDelay: t = !1 } = {}) {
|
|
470
|
+
var i;
|
|
471
|
+
if (!this.$_hideInProgress) {
|
|
472
|
+
if (this.shownChildren.size > 0) {
|
|
473
|
+
this.pendingHide = !0;
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
|
|
477
|
+
this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
|
|
478
|
+
this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
|
|
479
|
+
}, 1e3));
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
((i = this.parentPopper) == null ? void 0 : i.lockedChild) === this && (this.parentPopper.lockedChild = null), this.pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
init() {
|
|
486
|
+
var e;
|
|
487
|
+
this.isDisposed && (this.isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
|
|
488
|
+
},
|
|
489
|
+
dispose() {
|
|
490
|
+
this.isDisposed || (this.isDisposed = !0, this.$_removeEventListeners(), this.hide({ skipDelay: !0 }), this.$_detachPopperNode(), this.isMounted = !1, this.isShown = !1, this.$_updateParentShownChildren(!1), this.$_swapTargetAttrs("data-original-title", "title"));
|
|
491
|
+
},
|
|
492
|
+
async onResize() {
|
|
493
|
+
this.isShown && (await this.$_computePosition(), this.$emit("resize"));
|
|
494
|
+
},
|
|
495
|
+
async $_computePosition() {
|
|
496
|
+
if (this.isDisposed || this.positioningDisabled)
|
|
497
|
+
return;
|
|
498
|
+
const e = {
|
|
499
|
+
strategy: this.strategy,
|
|
500
|
+
middleware: []
|
|
501
|
+
};
|
|
502
|
+
(this.distance || this.skidding) && e.middleware.push(_e({
|
|
503
|
+
mainAxis: this.distance,
|
|
504
|
+
crossAxis: this.skidding
|
|
505
|
+
}));
|
|
506
|
+
const t = this.placement.startsWith("auto");
|
|
507
|
+
if (t ? e.middleware.push(Se({
|
|
508
|
+
alignment: this.placement.split("-")[1] ?? ""
|
|
509
|
+
})) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Te({
|
|
510
|
+
padding: this.overflowPadding,
|
|
511
|
+
boundary: this.boundary,
|
|
512
|
+
crossAxis: this.shiftCrossAxis
|
|
513
|
+
})), !t && this.flip && e.middleware.push(be({
|
|
514
|
+
padding: this.overflowPadding,
|
|
515
|
+
boundary: this.boundary
|
|
516
|
+
}))), e.middleware.push(Pe({
|
|
517
|
+
element: this.$_arrowNode,
|
|
518
|
+
padding: this.arrowPadding
|
|
519
|
+
})), this.arrowOverflow && e.middleware.push({
|
|
520
|
+
name: "arrowOverflow",
|
|
521
|
+
fn: ({ placement: o, rects: s, middlewareData: n }) => {
|
|
522
|
+
let a;
|
|
523
|
+
const { centerOffset: p } = n.arrow;
|
|
524
|
+
return o.startsWith("top") || o.startsWith("bottom") ? a = Math.abs(p) > s.reference.width / 2 : a = Math.abs(p) > s.reference.height / 2, {
|
|
525
|
+
data: {
|
|
526
|
+
overflow: a
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
}), this.autoMinSize || this.autoSize) {
|
|
531
|
+
const o = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
|
|
532
|
+
e.middleware.push({
|
|
533
|
+
name: "autoSize",
|
|
534
|
+
fn: ({ rects: s, placement: n, middlewareData: a }) => {
|
|
535
|
+
var p;
|
|
536
|
+
if ((p = a.autoSize) != null && p.skip)
|
|
537
|
+
return {};
|
|
538
|
+
let d, h;
|
|
539
|
+
return n.startsWith("top") || n.startsWith("bottom") ? d = s.reference.width : h = s.reference.height, this.$_innerNode.style[o === "min" ? "minWidth" : o === "max" ? "maxWidth" : "width"] = d != null ? `${d}px` : null, this.$_innerNode.style[o === "min" ? "minHeight" : o === "max" ? "maxHeight" : "height"] = h != null ? `${h}px` : null, {
|
|
540
|
+
data: {
|
|
541
|
+
skip: !0
|
|
542
|
+
},
|
|
543
|
+
reset: {
|
|
544
|
+
rects: !0
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
(this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(ze({
|
|
551
|
+
boundary: this.boundary,
|
|
552
|
+
padding: this.overflowPadding,
|
|
553
|
+
apply: ({ availableWidth: o, availableHeight: s }) => {
|
|
554
|
+
this.$_innerNode.style.maxWidth = o != null ? `${o}px` : null, this.$_innerNode.style.maxHeight = s != null ? `${s}px` : null;
|
|
555
|
+
}
|
|
556
|
+
})));
|
|
557
|
+
const i = await $e(this.$_referenceNode, this.$_popperNode, e);
|
|
558
|
+
Object.assign(this.result, {
|
|
559
|
+
x: i.x,
|
|
560
|
+
y: i.y,
|
|
561
|
+
placement: i.placement,
|
|
562
|
+
strategy: i.strategy,
|
|
563
|
+
arrow: {
|
|
564
|
+
...i.middlewareData.arrow,
|
|
565
|
+
...i.middlewareData.arrowOverflow
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
},
|
|
569
|
+
$_scheduleShow(e, t = !1) {
|
|
570
|
+
if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), f && this.instantMove && f.instantMove && f !== this.parentPopper) {
|
|
571
|
+
f.$_applyHide(!0), this.$_applyShow(!0);
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
574
|
+
t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
|
|
575
|
+
},
|
|
576
|
+
$_scheduleHide(e, t = !1) {
|
|
577
|
+
if (this.shownChildren.size > 0) {
|
|
578
|
+
this.pendingHide = !0;
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
581
|
+
this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (f = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
|
|
582
|
+
},
|
|
583
|
+
$_computeDelay(e) {
|
|
584
|
+
const t = this.delay;
|
|
585
|
+
return parseInt(t && t[e] || t || 0);
|
|
586
|
+
},
|
|
587
|
+
async $_applyShow(e = !1) {
|
|
588
|
+
clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await N(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
|
|
589
|
+
...L(this.$_referenceNode),
|
|
590
|
+
...L(this.$_popperNode)
|
|
591
|
+
], "scroll", () => {
|
|
592
|
+
this.$_computePosition();
|
|
593
|
+
}));
|
|
594
|
+
},
|
|
595
|
+
async $_applyShowEffect() {
|
|
596
|
+
if (this.$_hideInProgress)
|
|
597
|
+
return;
|
|
598
|
+
if (this.computeTransformOrigin) {
|
|
599
|
+
const t = this.$_referenceNode.getBoundingClientRect(), i = this.$_popperNode.querySelector(".v-popper__wrapper"), o = i.parentNode.getBoundingClientRect(), s = t.x + t.width / 2 - (o.left + i.offsetLeft), n = t.y + t.height / 2 - (o.top + i.offsetTop);
|
|
600
|
+
this.result.transformOrigin = `${s}px ${n}px`;
|
|
601
|
+
}
|
|
602
|
+
this.isShown = !0, this.$_applyAttrsToTarget({
|
|
603
|
+
"aria-describedby": this.popperId,
|
|
604
|
+
"data-popper-shown": ""
|
|
605
|
+
});
|
|
606
|
+
const e = this.showGroup;
|
|
607
|
+
if (e) {
|
|
608
|
+
let t;
|
|
609
|
+
for (let i = 0; i < l.length; i++)
|
|
610
|
+
t = l[i], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
|
|
611
|
+
}
|
|
612
|
+
l.push(this), document.body.classList.add("v-popper--some-open");
|
|
613
|
+
for (const t of j(this.theme))
|
|
614
|
+
U(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
|
|
615
|
+
this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await N(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
|
|
616
|
+
},
|
|
617
|
+
async $_applyHide(e = !1) {
|
|
618
|
+
if (this.shownChildren.size > 0) {
|
|
619
|
+
this.pendingHide = !0, this.$_hideInProgress = !1;
|
|
620
|
+
return;
|
|
621
|
+
}
|
|
622
|
+
if (clearTimeout(this.$_scheduleTimer), !this.isShown)
|
|
623
|
+
return;
|
|
624
|
+
this.skipTransition = e, q(l, this), l.length === 0 && document.body.classList.remove("v-popper--some-open");
|
|
625
|
+
for (const i of j(this.theme)) {
|
|
626
|
+
const o = U(i);
|
|
627
|
+
q(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${i}`);
|
|
628
|
+
}
|
|
629
|
+
f === this && (f = null), this.isShown = !1, this.$_applyAttrsToTarget({
|
|
630
|
+
"aria-describedby": void 0,
|
|
631
|
+
"data-popper-shown": void 0
|
|
632
|
+
}), clearTimeout(this.$_disposeTimer);
|
|
633
|
+
const t = this.disposeTimeout;
|
|
634
|
+
t !== null && (this.$_disposeTimer = setTimeout(() => {
|
|
635
|
+
this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
|
|
636
|
+
}, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await N(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
|
|
637
|
+
},
|
|
638
|
+
$_autoShowHide() {
|
|
639
|
+
this.shown ? this.show() : this.hide();
|
|
640
|
+
},
|
|
641
|
+
$_ensureTeleport() {
|
|
642
|
+
if (this.isDisposed)
|
|
643
|
+
return;
|
|
644
|
+
let e = this.container;
|
|
645
|
+
if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e)
|
|
646
|
+
throw new Error("No container for popover: " + this.container);
|
|
647
|
+
e.appendChild(this.$_popperNode), this.isMounted = !0;
|
|
648
|
+
},
|
|
649
|
+
$_addEventListeners() {
|
|
650
|
+
const e = (i) => {
|
|
651
|
+
this.isShown && !this.$_hideInProgress || (i.usedByTooltip = !0, !this.$_preventShow && this.show({ event: i }));
|
|
652
|
+
};
|
|
653
|
+
this.$_registerTriggerListeners(this.$_targetNodes, W, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], W, this.popperTriggers, this.popperShowTriggers, e);
|
|
654
|
+
const t = (i) => {
|
|
655
|
+
i.usedByTooltip || this.hide({ event: i });
|
|
656
|
+
};
|
|
657
|
+
this.$_registerTriggerListeners(this.$_targetNodes, V, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], V, this.popperTriggers, this.popperHideTriggers, t);
|
|
658
|
+
},
|
|
659
|
+
$_registerEventListeners(e, t, i) {
|
|
660
|
+
this.$_events.push({ targetNodes: e, eventType: t, handler: i }), e.forEach((o) => o.addEventListener(t, i, $ ? {
|
|
661
|
+
passive: !0
|
|
662
|
+
} : void 0));
|
|
663
|
+
},
|
|
664
|
+
$_registerTriggerListeners(e, t, i, o, s) {
|
|
665
|
+
let n = i;
|
|
666
|
+
o != null && (n = typeof o == "function" ? o(n) : o), n.forEach((a) => {
|
|
667
|
+
const p = t[a];
|
|
668
|
+
p && this.$_registerEventListeners(e, p, s);
|
|
669
|
+
});
|
|
670
|
+
},
|
|
671
|
+
$_removeEventListeners(e) {
|
|
672
|
+
const t = [];
|
|
673
|
+
this.$_events.forEach((i) => {
|
|
674
|
+
const { targetNodes: o, eventType: s, handler: n } = i;
|
|
675
|
+
!e || e === s ? o.forEach((a) => a.removeEventListener(s, n)) : t.push(i);
|
|
676
|
+
}), this.$_events = t;
|
|
677
|
+
},
|
|
678
|
+
$_refreshListeners() {
|
|
679
|
+
this.isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
|
|
680
|
+
},
|
|
681
|
+
$_handleGlobalClose(e, t = !1) {
|
|
682
|
+
this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
|
|
683
|
+
this.$_preventShow = !1;
|
|
684
|
+
}, 300)));
|
|
685
|
+
},
|
|
686
|
+
$_detachPopperNode() {
|
|
687
|
+
this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
|
|
688
|
+
},
|
|
689
|
+
$_swapTargetAttrs(e, t) {
|
|
690
|
+
for (const i of this.$_targetNodes) {
|
|
691
|
+
const o = i.getAttribute(e);
|
|
692
|
+
o && (i.removeAttribute(e), i.setAttribute(t, o));
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
$_applyAttrsToTarget(e) {
|
|
696
|
+
for (const t of this.$_targetNodes)
|
|
697
|
+
for (const i in e) {
|
|
698
|
+
const o = e[i];
|
|
699
|
+
o == null ? t.removeAttribute(i) : t.setAttribute(i, o);
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
$_updateParentShownChildren(e) {
|
|
703
|
+
let t = this.parentPopper;
|
|
704
|
+
for (; t; )
|
|
705
|
+
e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.pendingHide && t.hide()), t = t.parentPopper;
|
|
706
|
+
},
|
|
707
|
+
$_isAimingPopper() {
|
|
708
|
+
const e = this.$_referenceNode.getBoundingClientRect();
|
|
709
|
+
if (y >= e.left && y <= e.right && v >= e.top && v <= e.bottom) {
|
|
710
|
+
const t = this.$_popperNode.getBoundingClientRect(), i = y - u, o = v - c, s = t.left + t.width / 2 - u + (t.top + t.height / 2) - c + t.width + t.height, n = u + i * s, a = c + o * s;
|
|
711
|
+
return _(u, c, n, a, t.left, t.top, t.left, t.bottom) || // Left edge
|
|
712
|
+
_(u, c, n, a, t.left, t.top, t.right, t.top) || // Top edge
|
|
713
|
+
_(u, c, n, a, t.right, t.top, t.right, t.bottom) || // Right edge
|
|
714
|
+
_(u, c, n, a, t.left, t.bottom, t.right, t.bottom);
|
|
715
|
+
}
|
|
716
|
+
return !1;
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
render() {
|
|
720
|
+
return this.$slots.default(this.slotData);
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
typeof document < "u" && typeof window < "u" && (X ? document.addEventListener("touchstart", J, $ ? {
|
|
724
|
+
passive: !0,
|
|
725
|
+
capture: !0
|
|
726
|
+
} : !0) : window.addEventListener("mousedown", J, !0), window.addEventListener("resize", Ae));
|
|
727
|
+
function J(e, t = !1) {
|
|
728
|
+
const i = {};
|
|
729
|
+
for (let o = l.length - 1; o >= 0; o--) {
|
|
730
|
+
const s = l[o];
|
|
731
|
+
try {
|
|
732
|
+
const n = s.containsGlobalTarget = s.popperNode().contains(e.target);
|
|
733
|
+
s.pendingHide = !1, requestAnimationFrame(() => {
|
|
734
|
+
if (s.pendingHide = !1, !i[s.randomId] && K(s, n, e)) {
|
|
735
|
+
if (s.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && n) {
|
|
736
|
+
let p = s.parentPopper;
|
|
737
|
+
for (; p; )
|
|
738
|
+
i[p.randomId] = !0, p = p.parentPopper;
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
let a = s.parentPopper;
|
|
742
|
+
for (; a && K(a, a.containsGlobalTarget, e); )
|
|
743
|
+
a.$_handleGlobalClose(e, t), a = a.parentPopper;
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
} catch {
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
function K(e, t, i) {
|
|
751
|
+
return i.closeAllPopover || i.closePopover && t || xe(e, i) && !t;
|
|
752
|
+
}
|
|
753
|
+
function xe(e, t) {
|
|
754
|
+
if (typeof e.autoHide == "function") {
|
|
755
|
+
const i = e.autoHide(t);
|
|
756
|
+
return e.lastAutoHide = i, i;
|
|
757
|
+
}
|
|
758
|
+
return e.autoHide;
|
|
759
|
+
}
|
|
760
|
+
function Ae() {
|
|
761
|
+
for (let e = 0; e < l.length; e++)
|
|
762
|
+
l[e].$_computePosition();
|
|
763
|
+
}
|
|
764
|
+
let u = 0, c = 0, y = 0, v = 0;
|
|
765
|
+
typeof window < "u" && window.addEventListener("mousemove", (e) => {
|
|
766
|
+
u = y, c = v, y = e.clientX, v = e.clientY;
|
|
767
|
+
}, $ ? {
|
|
768
|
+
passive: !0
|
|
769
|
+
} : void 0);
|
|
770
|
+
function _(e, t, i, o, s, n, a, p) {
|
|
771
|
+
const d = ((a - s) * (t - n) - (p - n) * (e - s)) / ((p - n) * (i - e) - (a - s) * (o - t)), h = ((i - e) * (t - n) - (o - t) * (e - s)) / ((p - n) * (i - e) - (a - s) * (o - t));
|
|
772
|
+
return d >= 0 && d <= 1 && h >= 0 && h <= 1;
|
|
773
|
+
}
|
|
774
|
+
const Be = {
|
|
775
|
+
extends: Y()
|
|
776
|
+
}, D = (e, t) => {
|
|
777
|
+
const i = e.__vccOpts || e;
|
|
778
|
+
for (const [o, s] of t)
|
|
779
|
+
i[o] = s;
|
|
780
|
+
return i;
|
|
781
|
+
};
|
|
782
|
+
function He(e, t, i, o, s, n) {
|
|
783
|
+
return w(), A("div", {
|
|
784
|
+
ref: "reference",
|
|
785
|
+
class: Q(["v-popper", {
|
|
786
|
+
"v-popper--shown": e.slotData.isShown
|
|
787
|
+
}])
|
|
788
|
+
}, [
|
|
789
|
+
T(e.$slots, "default", ce(fe(e.slotData)))
|
|
790
|
+
], 2);
|
|
791
|
+
}
|
|
792
|
+
const Oe = /* @__PURE__ */ D(Be, [["render", He]]);
|
|
793
|
+
function ke() {
|
|
794
|
+
var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
|
|
795
|
+
if (t > 0)
|
|
796
|
+
return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
|
|
797
|
+
var i = e.indexOf("Trident/");
|
|
798
|
+
if (i > 0) {
|
|
799
|
+
var o = e.indexOf("rv:");
|
|
800
|
+
return parseInt(e.substring(o + 3, e.indexOf(".", o)), 10);
|
|
801
|
+
}
|
|
802
|
+
var s = e.indexOf("Edge/");
|
|
803
|
+
return s > 0 ? parseInt(e.substring(s + 5, e.indexOf(".", s)), 10) : -1;
|
|
804
|
+
}
|
|
805
|
+
let S;
|
|
806
|
+
function k() {
|
|
807
|
+
k.init || (k.init = !0, S = ke() !== -1);
|
|
808
|
+
}
|
|
809
|
+
var P = {
|
|
810
|
+
name: "ResizeObserver",
|
|
811
|
+
props: {
|
|
812
|
+
emitOnMount: {
|
|
813
|
+
type: Boolean,
|
|
814
|
+
default: !1
|
|
815
|
+
},
|
|
816
|
+
ignoreWidth: {
|
|
817
|
+
type: Boolean,
|
|
818
|
+
default: !1
|
|
819
|
+
},
|
|
820
|
+
ignoreHeight: {
|
|
821
|
+
type: Boolean,
|
|
822
|
+
default: !1
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
emits: [
|
|
826
|
+
"notify"
|
|
827
|
+
],
|
|
828
|
+
mounted() {
|
|
829
|
+
k(), ue(() => {
|
|
830
|
+
this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
|
|
831
|
+
});
|
|
832
|
+
const e = document.createElement("object");
|
|
833
|
+
this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", S && this.$el.appendChild(e), e.data = "about:blank", S || this.$el.appendChild(e);
|
|
834
|
+
},
|
|
835
|
+
beforeUnmount() {
|
|
836
|
+
this.removeResizeHandlers();
|
|
837
|
+
},
|
|
838
|
+
methods: {
|
|
839
|
+
compareAndNotify() {
|
|
840
|
+
(!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
|
|
841
|
+
},
|
|
842
|
+
emitSize() {
|
|
843
|
+
this.$emit("notify", {
|
|
844
|
+
width: this._w,
|
|
845
|
+
height: this._h
|
|
846
|
+
});
|
|
847
|
+
},
|
|
848
|
+
addResizeHandlers() {
|
|
849
|
+
this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
|
|
850
|
+
},
|
|
851
|
+
removeResizeHandlers() {
|
|
852
|
+
this._resizeObject && this._resizeObject.onload && (!S && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
const Me = /* @__PURE__ */ me("data-v-b329ee4c");
|
|
857
|
+
he("data-v-b329ee4c");
|
|
858
|
+
const Ee = {
|
|
859
|
+
class: "resize-observer",
|
|
860
|
+
tabindex: "-1"
|
|
861
|
+
};
|
|
862
|
+
le();
|
|
863
|
+
const De = /* @__PURE__ */ Me((e, t, i, o, s, n) => (w(), E("div", Ee)));
|
|
864
|
+
P.render = De;
|
|
865
|
+
P.__scopeId = "data-v-b329ee4c";
|
|
866
|
+
P.__file = "src/components/ResizeObserver.vue";
|
|
867
|
+
const Z = (e = "theme") => ({
|
|
868
|
+
computed: {
|
|
869
|
+
themeClass() {
|
|
870
|
+
return Ce(this[e]);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}), Fe = b({
|
|
874
|
+
name: "VPopperContent",
|
|
875
|
+
components: {
|
|
876
|
+
ResizeObserver: P
|
|
877
|
+
},
|
|
878
|
+
mixins: [
|
|
879
|
+
Z()
|
|
880
|
+
],
|
|
881
|
+
props: {
|
|
882
|
+
popperId: String,
|
|
883
|
+
theme: String,
|
|
884
|
+
shown: Boolean,
|
|
885
|
+
mounted: Boolean,
|
|
886
|
+
skipTransition: Boolean,
|
|
887
|
+
autoHide: Boolean,
|
|
888
|
+
handleResize: Boolean,
|
|
889
|
+
classes: Object,
|
|
890
|
+
result: Object
|
|
891
|
+
},
|
|
892
|
+
emits: [
|
|
893
|
+
"hide",
|
|
894
|
+
"resize"
|
|
895
|
+
],
|
|
896
|
+
methods: {
|
|
897
|
+
toPx(e) {
|
|
898
|
+
return e != null && !isNaN(e) ? `${e}px` : null;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}), Ie = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Re = {
|
|
902
|
+
ref: "inner",
|
|
903
|
+
class: "v-popper__inner"
|
|
904
|
+
}, Le = /* @__PURE__ */ m("div", { class: "v-popper__arrow-outer" }, null, -1), je = /* @__PURE__ */ m("div", { class: "v-popper__arrow-inner" }, null, -1), We = [
|
|
905
|
+
Le,
|
|
906
|
+
je
|
|
907
|
+
];
|
|
908
|
+
function Ve(e, t, i, o, s, n) {
|
|
909
|
+
const a = B("ResizeObserver");
|
|
910
|
+
return w(), A("div", {
|
|
911
|
+
id: e.popperId,
|
|
912
|
+
ref: "popover",
|
|
913
|
+
class: Q(["v-popper__popper", [
|
|
914
|
+
e.themeClass,
|
|
915
|
+
e.classes.popperClass,
|
|
916
|
+
{
|
|
917
|
+
"v-popper__popper--shown": e.shown,
|
|
918
|
+
"v-popper__popper--hidden": !e.shown,
|
|
919
|
+
"v-popper__popper--show-from": e.classes.showFrom,
|
|
920
|
+
"v-popper__popper--show-to": e.classes.showTo,
|
|
921
|
+
"v-popper__popper--hide-from": e.classes.hideFrom,
|
|
922
|
+
"v-popper__popper--hide-to": e.classes.hideTo,
|
|
923
|
+
"v-popper__popper--skip-transition": e.skipTransition,
|
|
924
|
+
"v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
|
|
925
|
+
"v-popper__popper--no-positioning": !e.result
|
|
926
|
+
}
|
|
927
|
+
]]),
|
|
928
|
+
style: C(e.result ? {
|
|
929
|
+
position: e.result.strategy,
|
|
930
|
+
transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
|
|
931
|
+
} : void 0),
|
|
932
|
+
"aria-hidden": e.shown ? "false" : "true",
|
|
933
|
+
tabindex: e.autoHide ? 0 : void 0,
|
|
934
|
+
"data-popper-placement": e.result ? e.result.placement : void 0,
|
|
935
|
+
onKeyup: t[2] || (t[2] = ge((p) => e.autoHide && e.$emit("hide"), ["esc"]))
|
|
936
|
+
}, [
|
|
937
|
+
m("div", {
|
|
938
|
+
class: "v-popper__backdrop",
|
|
939
|
+
onClick: t[0] || (t[0] = (p) => e.autoHide && e.$emit("hide"))
|
|
940
|
+
}),
|
|
941
|
+
m("div", {
|
|
942
|
+
class: "v-popper__wrapper",
|
|
943
|
+
style: C(e.result ? {
|
|
944
|
+
transformOrigin: e.result.transformOrigin
|
|
945
|
+
} : void 0)
|
|
946
|
+
}, [
|
|
947
|
+
m("div", Re, [
|
|
948
|
+
e.mounted ? (w(), A(we, { key: 0 }, [
|
|
949
|
+
m("div", null, [
|
|
950
|
+
T(e.$slots, "default")
|
|
951
|
+
]),
|
|
952
|
+
e.handleResize ? (w(), E(a, {
|
|
953
|
+
key: 0,
|
|
954
|
+
onNotify: t[1] || (t[1] = (p) => e.$emit("resize", p))
|
|
955
|
+
})) : I("", !0)
|
|
956
|
+
], 64)) : I("", !0)
|
|
957
|
+
], 512),
|
|
958
|
+
m("div", {
|
|
959
|
+
ref: "arrow",
|
|
960
|
+
class: "v-popper__arrow-container",
|
|
961
|
+
style: C(e.result ? {
|
|
962
|
+
left: e.toPx(e.result.arrow.x),
|
|
963
|
+
top: e.toPx(e.result.arrow.y)
|
|
964
|
+
} : void 0)
|
|
965
|
+
}, We, 4)
|
|
966
|
+
], 4)
|
|
967
|
+
], 46, Ie);
|
|
968
|
+
}
|
|
969
|
+
const ee = /* @__PURE__ */ D(Fe, [["render", Ve]]), te = {
|
|
970
|
+
methods: {
|
|
971
|
+
show(...e) {
|
|
972
|
+
return this.$refs.popper.show(...e);
|
|
973
|
+
},
|
|
974
|
+
hide(...e) {
|
|
975
|
+
return this.$refs.popper.hide(...e);
|
|
976
|
+
},
|
|
977
|
+
dispose(...e) {
|
|
978
|
+
return this.$refs.popper.dispose(...e);
|
|
979
|
+
},
|
|
980
|
+
onResize(...e) {
|
|
981
|
+
return this.$refs.popper.onResize(...e);
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
};
|
|
985
|
+
let M = function() {
|
|
986
|
+
};
|
|
987
|
+
typeof window < "u" && (M = window.Element);
|
|
988
|
+
const qe = b({
|
|
989
|
+
name: "VPopperWrapper",
|
|
990
|
+
components: {
|
|
991
|
+
Popper: Oe,
|
|
992
|
+
PopperContent: ee
|
|
993
|
+
},
|
|
994
|
+
mixins: [
|
|
995
|
+
te,
|
|
996
|
+
Z("finalTheme")
|
|
997
|
+
],
|
|
998
|
+
props: {
|
|
999
|
+
theme: {
|
|
1000
|
+
type: String,
|
|
1001
|
+
default: null
|
|
1002
|
+
},
|
|
1003
|
+
referenceNode: {
|
|
1004
|
+
type: Function,
|
|
1005
|
+
default: null
|
|
1006
|
+
},
|
|
1007
|
+
shown: {
|
|
1008
|
+
type: Boolean,
|
|
1009
|
+
default: !1
|
|
1010
|
+
},
|
|
1011
|
+
showGroup: {
|
|
1012
|
+
type: String,
|
|
1013
|
+
default: null
|
|
1014
|
+
},
|
|
1015
|
+
// eslint-disable-next-line vue/require-prop-types
|
|
1016
|
+
ariaId: {
|
|
1017
|
+
default: null
|
|
1018
|
+
},
|
|
1019
|
+
disabled: {
|
|
1020
|
+
type: Boolean,
|
|
1021
|
+
default: void 0
|
|
1022
|
+
},
|
|
1023
|
+
positioningDisabled: {
|
|
1024
|
+
type: Boolean,
|
|
1025
|
+
default: void 0
|
|
1026
|
+
},
|
|
1027
|
+
placement: {
|
|
1028
|
+
type: String,
|
|
1029
|
+
default: void 0
|
|
1030
|
+
},
|
|
1031
|
+
delay: {
|
|
1032
|
+
type: [String, Number, Object],
|
|
1033
|
+
default: void 0
|
|
1034
|
+
},
|
|
1035
|
+
distance: {
|
|
1036
|
+
type: [Number, String],
|
|
1037
|
+
default: void 0
|
|
1038
|
+
},
|
|
1039
|
+
skidding: {
|
|
1040
|
+
type: [Number, String],
|
|
1041
|
+
default: void 0
|
|
1042
|
+
},
|
|
1043
|
+
triggers: {
|
|
1044
|
+
type: Array,
|
|
1045
|
+
default: void 0
|
|
1046
|
+
},
|
|
1047
|
+
showTriggers: {
|
|
1048
|
+
type: [Array, Function],
|
|
1049
|
+
default: void 0
|
|
1050
|
+
},
|
|
1051
|
+
hideTriggers: {
|
|
1052
|
+
type: [Array, Function],
|
|
1053
|
+
default: void 0
|
|
1054
|
+
},
|
|
1055
|
+
popperTriggers: {
|
|
1056
|
+
type: Array,
|
|
1057
|
+
default: void 0
|
|
1058
|
+
},
|
|
1059
|
+
popperShowTriggers: {
|
|
1060
|
+
type: [Array, Function],
|
|
1061
|
+
default: void 0
|
|
1062
|
+
},
|
|
1063
|
+
popperHideTriggers: {
|
|
1064
|
+
type: [Array, Function],
|
|
1065
|
+
default: void 0
|
|
1066
|
+
},
|
|
1067
|
+
container: {
|
|
1068
|
+
type: [String, Object, M, Boolean],
|
|
1069
|
+
default: void 0
|
|
1070
|
+
},
|
|
1071
|
+
boundary: {
|
|
1072
|
+
type: [String, M],
|
|
1073
|
+
default: void 0
|
|
1074
|
+
},
|
|
1075
|
+
strategy: {
|
|
1076
|
+
type: String,
|
|
1077
|
+
default: void 0
|
|
1078
|
+
},
|
|
1079
|
+
autoHide: {
|
|
1080
|
+
type: [Boolean, Function],
|
|
1081
|
+
default: void 0
|
|
1082
|
+
},
|
|
1083
|
+
handleResize: {
|
|
1084
|
+
type: Boolean,
|
|
1085
|
+
default: void 0
|
|
1086
|
+
},
|
|
1087
|
+
instantMove: {
|
|
1088
|
+
type: Boolean,
|
|
1089
|
+
default: void 0
|
|
1090
|
+
},
|
|
1091
|
+
eagerMount: {
|
|
1092
|
+
type: Boolean,
|
|
1093
|
+
default: void 0
|
|
1094
|
+
},
|
|
1095
|
+
popperClass: {
|
|
1096
|
+
type: [String, Array, Object],
|
|
1097
|
+
default: void 0
|
|
1098
|
+
},
|
|
1099
|
+
computeTransformOrigin: {
|
|
1100
|
+
type: Boolean,
|
|
1101
|
+
default: void 0
|
|
1102
|
+
},
|
|
1103
|
+
/**
|
|
1104
|
+
* @deprecated
|
|
1105
|
+
*/
|
|
1106
|
+
autoMinSize: {
|
|
1107
|
+
type: Boolean,
|
|
1108
|
+
default: void 0
|
|
1109
|
+
},
|
|
1110
|
+
autoSize: {
|
|
1111
|
+
type: [Boolean, String],
|
|
1112
|
+
default: void 0
|
|
1113
|
+
},
|
|
1114
|
+
/**
|
|
1115
|
+
* @deprecated
|
|
1116
|
+
*/
|
|
1117
|
+
autoMaxSize: {
|
|
1118
|
+
type: Boolean,
|
|
1119
|
+
default: void 0
|
|
1120
|
+
},
|
|
1121
|
+
autoBoundaryMaxSize: {
|
|
1122
|
+
type: Boolean,
|
|
1123
|
+
default: void 0
|
|
1124
|
+
},
|
|
1125
|
+
preventOverflow: {
|
|
1126
|
+
type: Boolean,
|
|
1127
|
+
default: void 0
|
|
1128
|
+
},
|
|
1129
|
+
overflowPadding: {
|
|
1130
|
+
type: [Number, String],
|
|
1131
|
+
default: void 0
|
|
1132
|
+
},
|
|
1133
|
+
arrowPadding: {
|
|
1134
|
+
type: [Number, String],
|
|
1135
|
+
default: void 0
|
|
1136
|
+
},
|
|
1137
|
+
arrowOverflow: {
|
|
1138
|
+
type: Boolean,
|
|
1139
|
+
default: void 0
|
|
1140
|
+
},
|
|
1141
|
+
flip: {
|
|
1142
|
+
type: Boolean,
|
|
1143
|
+
default: void 0
|
|
1144
|
+
},
|
|
1145
|
+
shift: {
|
|
1146
|
+
type: Boolean,
|
|
1147
|
+
default: void 0
|
|
1148
|
+
},
|
|
1149
|
+
shiftCrossAxis: {
|
|
1150
|
+
type: Boolean,
|
|
1151
|
+
default: void 0
|
|
1152
|
+
},
|
|
1153
|
+
noAutoFocus: {
|
|
1154
|
+
type: Boolean,
|
|
1155
|
+
default: void 0
|
|
1156
|
+
},
|
|
1157
|
+
disposeTimeout: {
|
|
1158
|
+
type: Number,
|
|
1159
|
+
default: void 0
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
emits: {
|
|
1163
|
+
show: () => !0,
|
|
1164
|
+
hide: () => !0,
|
|
1165
|
+
"update:shown": (e) => !0,
|
|
1166
|
+
"apply-show": () => !0,
|
|
1167
|
+
"apply-hide": () => !0,
|
|
1168
|
+
"close-group": () => !0,
|
|
1169
|
+
"close-directive": () => !0,
|
|
1170
|
+
"auto-hide": () => !0,
|
|
1171
|
+
resize: () => !0
|
|
1172
|
+
},
|
|
1173
|
+
computed: {
|
|
1174
|
+
finalTheme() {
|
|
1175
|
+
return this.theme ?? this.$options.vPopperTheme;
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
methods: {
|
|
1179
|
+
getTargetNodes() {
|
|
1180
|
+
return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
function Ge(e, t, i, o, s, n) {
|
|
1185
|
+
const a = B("PopperContent"), p = B("Popper");
|
|
1186
|
+
return w(), E(p, ye({ ref: "popper" }, e.$props, {
|
|
1187
|
+
theme: e.finalTheme,
|
|
1188
|
+
"target-nodes": e.getTargetNodes,
|
|
1189
|
+
"popper-node": () => e.$refs.popperContent.$el,
|
|
1190
|
+
class: [
|
|
1191
|
+
e.themeClass
|
|
1192
|
+
],
|
|
1193
|
+
onShow: t[0] || (t[0] = () => e.$emit("show")),
|
|
1194
|
+
onHide: t[1] || (t[1] = () => e.$emit("hide")),
|
|
1195
|
+
"onUpdate:shown": t[2] || (t[2] = (d) => e.$emit("update:shown", d)),
|
|
1196
|
+
onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
|
|
1197
|
+
onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
|
|
1198
|
+
onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
|
|
1199
|
+
onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
|
|
1200
|
+
onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
|
|
1201
|
+
onResize: t[8] || (t[8] = () => e.$emit("resize"))
|
|
1202
|
+
}), {
|
|
1203
|
+
default: R(({
|
|
1204
|
+
popperId: d,
|
|
1205
|
+
isShown: h,
|
|
1206
|
+
shouldMountContent: ie,
|
|
1207
|
+
skipTransition: oe,
|
|
1208
|
+
autoHide: se,
|
|
1209
|
+
show: re,
|
|
1210
|
+
hide: z,
|
|
1211
|
+
handleResize: ne,
|
|
1212
|
+
onResize: ae,
|
|
1213
|
+
classes: pe,
|
|
1214
|
+
result: de
|
|
1215
|
+
}) => [
|
|
1216
|
+
T(e.$slots, "default", {
|
|
1217
|
+
shown: h,
|
|
1218
|
+
show: re,
|
|
1219
|
+
hide: z
|
|
1220
|
+
}),
|
|
1221
|
+
ve(a, {
|
|
1222
|
+
ref: "popperContent",
|
|
1223
|
+
"popper-id": d,
|
|
1224
|
+
theme: e.finalTheme,
|
|
1225
|
+
shown: h,
|
|
1226
|
+
mounted: ie,
|
|
1227
|
+
"skip-transition": oe,
|
|
1228
|
+
"auto-hide": se,
|
|
1229
|
+
"handle-resize": ne,
|
|
1230
|
+
classes: pe,
|
|
1231
|
+
result: de,
|
|
1232
|
+
onHide: z,
|
|
1233
|
+
onResize: ae
|
|
1234
|
+
}, {
|
|
1235
|
+
default: R(() => [
|
|
1236
|
+
T(e.$slots, "popper", {
|
|
1237
|
+
shown: h,
|
|
1238
|
+
hide: z
|
|
1239
|
+
})
|
|
1240
|
+
]),
|
|
1241
|
+
_: 2
|
|
1242
|
+
}, 1032, ["popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
|
|
1243
|
+
]),
|
|
1244
|
+
_: 3
|
|
1245
|
+
}, 16, ["theme", "target-nodes", "popper-node", "class"]);
|
|
1246
|
+
}
|
|
1247
|
+
const F = /* @__PURE__ */ D(qe, [["render", Ge]]), Ue = {
|
|
1248
|
+
...F,
|
|
1249
|
+
name: "VDropdown",
|
|
1250
|
+
vPopperTheme: "dropdown"
|
|
1251
|
+
};
|
|
1252
|
+
({
|
|
1253
|
+
...F
|
|
1254
|
+
});
|
|
1255
|
+
({
|
|
1256
|
+
...F
|
|
1257
|
+
});
|
|
1258
|
+
b({
|
|
1259
|
+
name: "VTooltipDirective",
|
|
1260
|
+
components: {
|
|
1261
|
+
Popper: Y(),
|
|
1262
|
+
PopperContent: ee
|
|
1263
|
+
},
|
|
1264
|
+
mixins: [
|
|
1265
|
+
te
|
|
1266
|
+
],
|
|
1267
|
+
inheritAttrs: !1,
|
|
1268
|
+
props: {
|
|
1269
|
+
theme: {
|
|
1270
|
+
type: String,
|
|
1271
|
+
default: "tooltip"
|
|
1272
|
+
},
|
|
1273
|
+
html: {
|
|
1274
|
+
type: Boolean,
|
|
1275
|
+
default: (e) => H(e.theme, "html")
|
|
1276
|
+
},
|
|
1277
|
+
content: {
|
|
1278
|
+
type: [String, Number, Function],
|
|
1279
|
+
default: null
|
|
1280
|
+
},
|
|
1281
|
+
loadingContent: {
|
|
1282
|
+
type: String,
|
|
1283
|
+
default: (e) => H(e.theme, "loadingContent")
|
|
1284
|
+
},
|
|
1285
|
+
targetNodes: {
|
|
1286
|
+
type: Function,
|
|
1287
|
+
required: !0
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
data() {
|
|
1291
|
+
return {
|
|
1292
|
+
asyncContent: null
|
|
1293
|
+
};
|
|
1294
|
+
},
|
|
1295
|
+
computed: {
|
|
1296
|
+
isContentAsync() {
|
|
1297
|
+
return typeof this.content == "function";
|
|
1298
|
+
},
|
|
1299
|
+
loading() {
|
|
1300
|
+
return this.isContentAsync && this.asyncContent == null;
|
|
1301
|
+
},
|
|
1302
|
+
finalContent() {
|
|
1303
|
+
return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
watch: {
|
|
1307
|
+
content: {
|
|
1308
|
+
handler() {
|
|
1309
|
+
this.fetchContent(!0);
|
|
1310
|
+
},
|
|
1311
|
+
immediate: !0
|
|
1312
|
+
},
|
|
1313
|
+
async finalContent() {
|
|
1314
|
+
await this.$nextTick(), this.$refs.popper.onResize();
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
created() {
|
|
1318
|
+
this.$_fetchId = 0;
|
|
1319
|
+
},
|
|
1320
|
+
methods: {
|
|
1321
|
+
fetchContent(e) {
|
|
1322
|
+
if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
|
|
1323
|
+
this.asyncContent = null, this.$_loading = !0;
|
|
1324
|
+
const t = ++this.$_fetchId, i = this.content(this);
|
|
1325
|
+
i.then ? i.then((o) => this.onResult(t, o)) : this.onResult(t, i);
|
|
1326
|
+
}
|
|
1327
|
+
},
|
|
1328
|
+
onResult(e, t) {
|
|
1329
|
+
e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
|
|
1330
|
+
},
|
|
1331
|
+
onShow() {
|
|
1332
|
+
this.$_isShown = !0, this.fetchContent();
|
|
1333
|
+
},
|
|
1334
|
+
onHide() {
|
|
1335
|
+
this.$_isShown = !1;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
});
|
|
1339
|
+
const Xe = Ue;
|
|
1340
|
+
export {
|
|
1341
|
+
Xe as Dropdown,
|
|
1342
|
+
V as HIDE_EVENT_MAP,
|
|
1343
|
+
W as SHOW_EVENT_MAP,
|
|
1344
|
+
Ne as placements,
|
|
1345
|
+
Ae as recomputeAllPoppers
|
|
1346
|
+
};
|