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