@indielayer/ui 0.0.0-dev-20240129122517 → 0.0.0-dev-20240205224808
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/App.vue +25 -0
- package/docs/assets/css/hljs.css +302 -0
- package/docs/assets/css/tailwind.css +46 -0
- package/docs/assets/images/error.svg +1 -0
- package/docs/assets/images/logo.png +0 -0
- package/docs/assets/images/logo_mini.svg +10 -0
- package/docs/assets/images/logo_white.png +0 -0
- package/docs/assets/images/logo_word.svg +12 -0
- package/docs/assets/images/logo_word_dark.svg +12 -0
- package/docs/assets/images/photo1.jpeg +0 -0
- package/docs/assets/images/photo2.jpeg +0 -0
- package/docs/components/Cookies.vue +42 -0
- package/docs/components/common/CodePreview.vue +80 -0
- package/docs/components/common/CodeSnippet.vue +47 -0
- package/docs/components/common/CopyButton.vue +50 -0
- package/docs/components/common/DocumentPage.vue +285 -0
- package/docs/components/common/Indielayer-theme.json +702 -0
- package/docs/components/common/MultiSnippet.vue +26 -0
- package/docs/components/menu/DocsMenu.vue +96 -0
- package/docs/components/toolbar/PreToolbar.vue +16 -0
- package/docs/components/toolbar/Toolbar.vue +76 -0
- package/docs/components/toolbar/ToolbarColorToggle.vue +49 -0
- package/docs/icons.ts +61 -0
- package/docs/layouts/default.vue +33 -0
- package/docs/layouts/simple.vue +3 -0
- package/docs/main.ts +33 -0
- package/docs/pages/colors.vue +120 -0
- package/docs/pages/component/accordion/index.vue +29 -0
- package/docs/pages/component/accordion/usage.vue +30 -0
- package/docs/pages/component/alert/index.vue +29 -0
- package/docs/pages/component/alert/usage.vue +18 -0
- package/docs/pages/component/avatar/index.vue +43 -0
- package/docs/pages/component/avatar/size.vue +9 -0
- package/docs/pages/component/avatar/usage.vue +9 -0
- package/docs/pages/component/avatar/variants.vue +8 -0
- package/docs/pages/component/badge/index.vue +29 -0
- package/docs/pages/component/badge/usage.vue +50 -0
- package/docs/pages/component/breadcrumbs/index.vue +29 -0
- package/docs/pages/component/breadcrumbs/usage.vue +19 -0
- package/docs/pages/component/button/button-group.vue +22 -0
- package/docs/pages/component/button/icons.vue +9 -0
- package/docs/pages/component/button/index.vue +64 -0
- package/docs/pages/component/button/size.vue +9 -0
- package/docs/pages/component/button/states.vue +6 -0
- package/docs/pages/component/button/usage.vue +12 -0
- package/docs/pages/component/button/variants.vue +7 -0
- package/docs/pages/component/card/index.vue +29 -0
- package/docs/pages/component/card/usage.vue +6 -0
- package/docs/pages/component/carousel/index.vue +29 -0
- package/docs/pages/component/carousel/usage.vue +10 -0
- package/docs/pages/component/checkbox/index.vue +50 -0
- package/docs/pages/component/checkbox/size.vue +9 -0
- package/docs/pages/component/checkbox/states.vue +9 -0
- package/docs/pages/component/checkbox/usage.vue +15 -0
- package/docs/pages/component/checkbox/variants.vue +8 -0
- package/docs/pages/component/container/index.vue +29 -0
- package/docs/pages/component/container/usage.vue +3 -0
- package/docs/pages/component/divider/index.vue +43 -0
- package/docs/pages/component/divider/label.vue +12 -0
- package/docs/pages/component/divider/usage.vue +7 -0
- package/docs/pages/component/divider/vertical.vue +7 -0
- package/docs/pages/component/drawer/index.vue +29 -0
- package/docs/pages/component/drawer/usage.vue +56 -0
- package/docs/pages/component/form/index.vue +29 -0
- package/docs/pages/component/form/usage.vue +96 -0
- package/docs/pages/component/formGroup/index.vue +29 -0
- package/docs/pages/component/formGroup/usage.vue +47 -0
- package/docs/pages/component/icon/index.vue +36 -0
- package/docs/pages/component/icon/usage.vue +6 -0
- package/docs/pages/component/icon/variants.vue +14 -0
- package/docs/pages/component/image/index.vue +29 -0
- package/docs/pages/component/image/usage.vue +8 -0
- package/docs/pages/component/input/index.vue +50 -0
- package/docs/pages/component/input/size.vue +13 -0
- package/docs/pages/component/input/states.vue +12 -0
- package/docs/pages/component/input/usage.vue +14 -0
- package/docs/pages/component/input/variants.vue +18 -0
- package/docs/pages/component/link/index.vue +29 -0
- package/docs/pages/component/link/usage.vue +12 -0
- package/docs/pages/component/loader/index.vue +29 -0
- package/docs/pages/component/loader/usage.vue +7 -0
- package/docs/pages/component/menu/index.vue +29 -0
- package/docs/pages/component/menu/usage.vue +69 -0
- package/docs/pages/component/modal/composed.vue +78 -0
- package/docs/pages/component/modal/index.vue +36 -0
- package/docs/pages/component/modal/usage.vue +66 -0
- package/docs/pages/component/notifications/index.vue +29 -0
- package/docs/pages/component/notifications/usage.vue +56 -0
- package/docs/pages/component/pagination/index.vue +29 -0
- package/docs/pages/component/pagination/usage.vue +17 -0
- package/docs/pages/component/popover/index.vue +29 -0
- package/docs/pages/component/popover/usage.vue +21 -0
- package/docs/pages/component/progress/index.vue +36 -0
- package/docs/pages/component/progress/usage.vue +7 -0
- package/docs/pages/component/progress/variants.vue +18 -0
- package/docs/pages/component/radio/index.vue +50 -0
- package/docs/pages/component/radio/size.vue +15 -0
- package/docs/pages/component/radio/states.vue +13 -0
- package/docs/pages/component/radio/usage.vue +14 -0
- package/docs/pages/component/radio/variants.vue +39 -0
- package/docs/pages/component/scroll/horizontal.vue +14 -0
- package/docs/pages/component/scroll/index.vue +36 -0
- package/docs/pages/component/scroll/usage.vue +5 -0
- package/docs/pages/component/select/index.vue +43 -0
- package/docs/pages/component/select/states.vue +22 -0
- package/docs/pages/component/select/usage.vue +46 -0
- package/docs/pages/component/select/variants.vue +23 -0
- package/docs/pages/component/skeleton/index.vue +29 -0
- package/docs/pages/component/skeleton/usage.vue +10 -0
- package/docs/pages/component/slider/index.vue +29 -0
- package/docs/pages/component/slider/usage.vue +15 -0
- package/docs/pages/component/spacer/index.vue +29 -0
- package/docs/pages/component/spacer/usage.vue +8 -0
- package/docs/pages/component/spinner/index.vue +36 -0
- package/docs/pages/component/spinner/usage.vue +3 -0
- package/docs/pages/component/spinner/variants.vue +9 -0
- package/docs/pages/component/stepper/index.vue +29 -0
- package/docs/pages/component/stepper/usage.vue +21 -0
- package/docs/pages/component/table/index.vue +36 -0
- package/docs/pages/component/table/states.vue +28 -0
- package/docs/pages/component/table/usage.vue +107 -0
- package/docs/pages/component/tabs/index.vue +29 -0
- package/docs/pages/component/tabs/usage.vue +142 -0
- package/docs/pages/component/tag/index.vue +29 -0
- package/docs/pages/component/tag/usage.vue +27 -0
- package/docs/pages/component/textarea/index.vue +43 -0
- package/docs/pages/component/textarea/states.vue +13 -0
- package/docs/pages/component/textarea/usage.vue +19 -0
- package/docs/pages/component/textarea/variants.vue +15 -0
- package/docs/pages/component/toggle/index.vue +43 -0
- package/docs/pages/component/toggle/states.vue +13 -0
- package/docs/pages/component/toggle/usage.vue +12 -0
- package/docs/pages/component/toggle/variants.vue +15 -0
- package/docs/pages/component/tooltip/index.vue +29 -0
- package/docs/pages/component/tooltip/usage.vue +12 -0
- package/docs/pages/error.vue +6 -0
- package/docs/pages/icons.vue +101 -0
- package/docs/pages/index.vue +153 -0
- package/docs/pages/play.vue +7 -0
- package/docs/pages/typography.vue +91 -0
- package/docs/router/index.ts +77 -0
- package/exports/tailwind.preset.js +0 -1
- package/lib/components/accordion/Accordion.vue.d.ts +3 -0
- package/lib/components/accordion/Accordion.vue.js +7 -7
- package/lib/components/accordion/AccordionItem.vue.d.ts +1 -0
- package/lib/components/accordion/AccordionItem.vue.js +49 -47
- package/lib/components/accordion/index.d.ts +1 -1
- package/lib/components/accordion/theme/Accordion.carbon.theme.js +3 -6
- package/lib/components/accordion/theme/AccordionItem.base.theme.js +9 -9
- package/lib/components/accordion/theme/AccordionItem.carbon.theme.js +3 -14
- package/lib/components/badge/Badge.vue.js +7 -7
- package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.js +1 -1
- package/lib/components/button/Button.vue.js +2 -2
- package/lib/components/button/Button.vue2.js +26 -26
- package/lib/components/button/theme/Button.base.theme.js +7 -7
- package/lib/components/card/theme/Card.base.theme.js +1 -1
- package/lib/components/carousel/CarouselSlide.vue.d.ts +19 -8
- package/lib/components/carousel/CarouselSlide.vue.js +2 -2
- package/lib/components/carousel/CarouselSlide.vue2.js +25 -18
- package/lib/components/checkbox/Checkbox.vue.d.ts +3 -0
- package/lib/components/checkbox/Checkbox.vue2.js +23 -23
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +10 -10
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +2 -2
- package/lib/components/container/Container.vue.d.ts +13 -0
- package/lib/components/container/Container.vue.js +15 -11
- package/lib/components/container/theme/Container.base.theme.js +7 -4
- package/lib/components/divider/Divider.vue.js +14 -14
- package/lib/components/divider/theme/Divider.base.theme.js +2 -2
- package/lib/components/drawer/Drawer.vue.js +2 -2
- package/lib/components/drawer/theme/Drawer.base.theme.js +1 -1
- package/lib/components/form/Form.vue.js +1 -1
- package/lib/components/form/theme/Form.base.theme.js +5 -5
- package/lib/components/form/theme/Form.carbon.theme.js +4 -4
- package/lib/components/formGroup/FormGroup.vue.d.ts +3 -0
- package/lib/components/formGroup/FormGroup.vue.js +16 -15
- package/lib/components/formGroup/theme/FormGroup.base.theme.js +1 -1
- package/lib/components/icon/theme/Icon.base.theme.js +1 -1
- package/lib/components/index.js +108 -107
- package/lib/components/input/Input.vue.d.ts +3 -0
- package/lib/components/input/Input.vue.js +4 -3
- package/lib/components/input/theme/Input.base.theme.js +10 -10
- package/lib/components/input/theme/Input.carbon.theme.js +10 -10
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +3 -3
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +2 -2
- package/lib/components/label/Label.vue.d.ts +3 -0
- package/lib/components/label/Label.vue.js +26 -20
- package/lib/components/label/theme/Label.base.theme.js +2 -2
- package/lib/components/label/theme/Label.carbon.theme.js +3 -3
- package/lib/components/link/Link.vue.js +2 -2
- package/lib/components/link/Link.vue2.js +4 -4
- package/lib/components/loader/theme/Loader.base.theme.js +1 -1
- package/lib/components/loader/theme/Loader.carbon.theme.js +1 -1
- package/lib/components/menu/Menu.vue.js +22 -22
- package/lib/components/menu/theme/MenuItem.base.theme.js +22 -32
- package/lib/components/modal/Modal.vue.d.ts +5 -1
- package/lib/components/modal/Modal.vue.js +80 -74
- package/lib/components/modal/theme/Modal.base.theme.js +10 -10
- package/lib/components/modal/theme/Modal.carbon.theme.js +3 -3
- package/lib/components/notifications/Notifications.vue.js +1 -1
- package/lib/components/notifications/theme/Notifications.base.theme.js +1 -1
- package/lib/components/notifications/theme/Notifications.carbon.theme.js +3 -3
- package/lib/components/pagination/Pagination.vue.js +27 -27
- package/lib/components/popover/Popover.vue.d.ts +13 -0
- package/lib/components/popover/Popover.vue.js +13 -8
- package/lib/components/popover/Popover.vue2.js +3 -2
- package/lib/components/popover/Popover.vue3.js +2 -3
- package/lib/components/popover/theme/PopoverContainer.base.theme.js +4 -4
- package/lib/components/popover/theme/PopoverContainer.carbon.theme.js +4 -4
- package/lib/components/progress/Progress.vue.js +11 -11
- package/lib/components/progress/theme/Progress.base.theme.js +10 -10
- package/lib/components/radio/Radio.vue.d.ts +3 -0
- package/lib/components/radio/theme/Radio.base.theme.js +31 -31
- package/lib/components/radio/theme/Radio.carbon.theme.js +8 -8
- package/lib/components/select/Select.vue.d.ts +16 -0
- package/lib/components/select/Select.vue.js +93 -93
- package/lib/components/select/theme/Select.base.theme.js +11 -11
- package/lib/components/select/theme/Select.carbon.theme.js +10 -10
- package/lib/components/skeleton/theme/Skeleton.base.theme.js +1 -1
- package/lib/components/slider/Slider.vue.d.ts +3 -0
- package/lib/components/slider/Slider.vue.js +1 -1
- package/lib/components/slider/theme/Slider.carbon.theme.js +8 -8
- package/lib/components/stepper/Stepper.vue.js +14 -14
- package/lib/components/tab/Tab.vue.js +55 -54
- package/lib/components/tab/theme/TabGroup.base.theme.js +15 -15
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +8 -8
- package/lib/components/table/Table.vue.js +192 -194
- package/lib/components/table/theme/Table.base.theme.js +3 -3
- package/lib/components/table/theme/Table.carbon.theme.js +7 -7
- package/lib/components/table/theme/TableHead.base.theme.js +1 -1
- package/lib/components/table/theme/TableHead.carbon.theme.js +1 -1
- package/lib/components/table/theme/TableHeader.base.theme.js +1 -1
- package/lib/components/table/theme/TableHeader.carbon.theme.js +2 -2
- package/lib/components/table/theme/TableRow.base.theme.js +3 -3
- package/lib/components/table/theme/TableRow.carbon.theme.js +3 -3
- package/lib/components/tag/Tag.vue.js +4 -4
- package/lib/components/textarea/Textarea.vue.d.ts +7 -0
- package/lib/components/textarea/Textarea.vue.js +23 -21
- package/lib/components/textarea/theme/Textarea.base.theme.js +6 -6
- package/lib/components/textarea/theme/Textarea.carbon.theme.js +6 -6
- package/lib/components/toggle/Toggle.vue.d.ts +3 -0
- package/lib/components/toggle/Toggle.vue.js +26 -26
- package/lib/components/toggle/theme/Toggle.base.theme.js +1 -1
- package/lib/components/tooltip/ToggleTip.vue.d.ts +14 -0
- package/lib/components/tooltip/ToggleTip.vue.js +29 -0
- package/lib/components/tooltip/ToggleTip.vue2.js +4 -0
- package/lib/components/tooltip/Tooltip.vue.d.ts +22 -3
- package/lib/components/tooltip/Tooltip.vue.js +26 -17
- package/lib/components/tooltip/__tests__/ToggleTip.spec.d.ts +1 -0
- package/lib/components/tooltip/index.d.ts +2 -0
- package/lib/composables/keys.d.ts +2 -2
- package/lib/composables/useColors.js +9 -9
- package/lib/composables/useInputtable.d.ts +1 -0
- package/lib/composables/useInputtable.js +20 -19
- package/lib/index.js +37 -35
- package/lib/index.umd.js +7 -3
- package/lib/tailwind.preset.js +0 -1
- package/lib/themes/base/index.js +3 -6
- package/lib/themes/base/styles.css.js +4 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -2
- package/src/components/accordion/Accordion.vue +5 -1
- package/src/components/accordion/AccordionItem.vue +5 -2
- package/src/components/accordion/index.ts +1 -1
- package/src/components/accordion/theme/Accordion.carbon.theme.ts +3 -5
- package/src/components/accordion/theme/AccordionItem.base.theme.ts +11 -8
- package/src/components/accordion/theme/AccordionItem.carbon.theme.ts +2 -30
- package/src/components/badge/Badge.vue +1 -1
- package/src/components/breadcrumbs/theme/Breadcrumbs.base.theme.ts +1 -1
- package/src/components/button/Button.vue +1 -1
- package/src/components/button/theme/Button.base.theme.ts +2 -2
- package/src/components/card/theme/Card.base.theme.ts +1 -1
- package/src/components/carousel/CarouselSlide.vue +9 -4
- package/src/components/checkbox/Checkbox.vue +1 -1
- package/src/components/checkbox/theme/Checkbox.base.theme.ts +9 -9
- package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +2 -2
- package/src/components/container/Container.vue +4 -0
- package/src/components/container/theme/Container.base.theme.ts +7 -1
- package/src/components/divider/Divider.vue +1 -1
- package/src/components/divider/theme/Divider.base.theme.ts +2 -2
- package/src/components/drawer/Drawer.vue +2 -2
- package/src/components/drawer/theme/Drawer.base.theme.ts +1 -1
- package/src/components/form/Form.vue +1 -1
- package/src/components/form/theme/Form.base.theme.ts +2 -2
- package/src/components/form/theme/Form.carbon.theme.ts +1 -1
- package/src/components/formGroup/FormGroup.vue +1 -0
- package/src/components/formGroup/theme/FormGroup.base.theme.ts +1 -1
- package/src/components/icon/theme/Icon.base.theme.ts +2 -2
- package/src/components/input/Input.vue +2 -1
- package/src/components/input/theme/Input.base.theme.ts +5 -5
- package/src/components/input/theme/Input.carbon.theme.ts +6 -6
- package/src/components/inputFooter/theme/InputFooter.base.theme.ts +3 -3
- package/src/components/inputFooter/theme/InputFooter.carbon.theme.ts +2 -2
- package/src/components/label/Label.vue +4 -1
- package/src/components/label/theme/Label.base.theme.ts +2 -2
- package/src/components/label/theme/Label.carbon.theme.ts +1 -3
- package/src/components/link/Link.vue +1 -1
- package/src/components/loader/theme/Loader.base.theme.ts +1 -1
- package/src/components/loader/theme/Loader.carbon.theme.ts +1 -1
- package/src/components/menu/Menu.vue +4 -4
- package/src/components/menu/theme/MenuItem.base.theme.ts +30 -34
- package/src/components/modal/Modal.vue +11 -4
- package/src/components/modal/theme/Modal.base.theme.ts +9 -6
- package/src/components/modal/theme/Modal.carbon.theme.ts +3 -3
- package/src/components/notifications/Notifications.vue +1 -1
- package/src/components/notifications/theme/Notifications.base.theme.ts +1 -1
- package/src/components/notifications/theme/Notifications.carbon.theme.ts +1 -1
- package/src/components/pagination/Pagination.vue +3 -3
- package/src/components/popover/Popover.vue +77 -2
- package/src/components/popover/theme/PopoverContainer.base.theme.ts +1 -1
- package/src/components/popover/theme/PopoverContainer.carbon.theme.ts +1 -1
- package/src/components/progress/Progress.vue +1 -1
- package/src/components/progress/theme/Progress.base.theme.ts +2 -2
- package/src/components/radio/theme/Radio.base.theme.ts +9 -9
- package/src/components/radio/theme/Radio.carbon.theme.ts +1 -1
- package/src/components/select/Select.vue +7 -7
- package/src/components/select/theme/Select.base.theme.ts +8 -8
- package/src/components/select/theme/Select.carbon.theme.ts +8 -8
- package/src/components/skeleton/theme/Skeleton.base.theme.ts +1 -1
- package/src/components/slider/Slider.vue +1 -1
- package/src/components/slider/theme/Slider.carbon.theme.ts +1 -1
- package/src/components/stepper/Stepper.vue +3 -3
- package/src/components/tab/Tab.vue +3 -3
- package/src/components/tab/theme/TabGroup.base.theme.ts +4 -4
- package/src/components/tab/theme/TabGroup.carbon.theme.ts +3 -3
- package/src/components/table/Table.vue +2 -0
- package/src/components/table/theme/Table.base.theme.ts +1 -1
- package/src/components/table/theme/Table.carbon.theme.ts +2 -2
- package/src/components/table/theme/TableHead.base.theme.ts +1 -1
- package/src/components/table/theme/TableHead.carbon.theme.ts +1 -1
- package/src/components/table/theme/TableHeader.base.theme.ts +1 -1
- package/src/components/table/theme/TableHeader.carbon.theme.ts +2 -2
- package/src/components/table/theme/TableRow.base.theme.ts +3 -3
- package/src/components/table/theme/TableRow.carbon.theme.ts +3 -3
- package/src/components/tag/Tag.vue +1 -1
- package/src/components/textarea/Textarea.vue +3 -1
- package/src/components/textarea/theme/Textarea.base.theme.ts +5 -4
- package/src/components/textarea/theme/Textarea.carbon.theme.ts +5 -5
- package/src/components/toggle/Toggle.vue +3 -3
- package/src/components/toggle/theme/Toggle.base.theme.ts +1 -1
- package/src/components/tooltip/ToggleTip.vue +31 -0
- package/src/components/tooltip/Tooltip.vue +14 -4
- package/src/components/tooltip/__tests__/ToggleTip.spec.ts +11 -0
- package/src/components/tooltip/index.ts +3 -0
- package/src/composables/keys.ts +2 -2
- package/src/composables/useColors.ts +1 -1
- package/src/composables/useInputtable.ts +1 -0
- package/src/themes/base/index.ts +0 -3
- package/src/themes/base/styles.css +4 -0
- package/src/version.ts +1 -1
- package/volar.d.ts +1 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { onClickOutside as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { useFocusTrap as
|
|
5
|
-
import { closeIcon as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as H, ref as f, watch as g, nextTick as B, useSlots as I, computed as M, openBlock as t, createBlock as p, Teleport as P, createElementBlock as i, normalizeStyle as W, unref as o, normalizeClass as s, createCommentVNode as a, createElementVNode as S, resolveDynamicComponent as K, withCtx as w, renderSlot as r, toDisplayString as v } from "vue";
|
|
2
|
+
import { onClickOutside as L, useEventListener as q } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
|
|
3
|
+
import { useTheme as G } from "../../composables/useTheme.js";
|
|
4
|
+
import { useFocusTrap as J } from "../../composables/useFocusTrap.js";
|
|
5
|
+
import { closeIcon as Q } from "../../common/icons.js";
|
|
6
|
+
import U from "../button/Button.vue.js";
|
|
7
|
+
import Y from "../scroll/Scroll.vue.js";
|
|
8
|
+
import Z from "../form/Form.vue.js";
|
|
9
|
+
const _ = { class: "flex items-end sm:items-center justify-center p-4 sm:p-6 h-screen" }, x = { key: 0 }, ee = ["xs", "sm", "md", "lg", "xl", "full"], oe = {
|
|
10
10
|
size: {
|
|
11
11
|
type: String,
|
|
12
12
|
default: "xl"
|
|
@@ -40,61 +40,67 @@ const Y = { class: "flex items-end sm:items-center justify-center p-4 sm:p-6 h-s
|
|
|
40
40
|
formErrors: {
|
|
41
41
|
type: [Array, Object],
|
|
42
42
|
default: () => []
|
|
43
|
-
}
|
|
44
|
-
|
|
43
|
+
},
|
|
44
|
+
persistent: Boolean
|
|
45
|
+
}, te = {
|
|
45
46
|
name: "XModal",
|
|
46
47
|
validators: {
|
|
47
|
-
size:
|
|
48
|
+
size: ee
|
|
48
49
|
}
|
|
49
|
-
},
|
|
50
|
-
...
|
|
51
|
-
props:
|
|
50
|
+
}, ce = /* @__PURE__ */ H({
|
|
51
|
+
...te,
|
|
52
|
+
props: oe,
|
|
52
53
|
emits: ["update:modelValue", "submit"],
|
|
53
|
-
setup(V, { expose:
|
|
54
|
-
const
|
|
55
|
-
let
|
|
56
|
-
g(
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
setup(V, { expose: C, emit: T }) {
|
|
55
|
+
const n = V, b = T, u = f(n.modelValue), d = f(!1), y = f(null), $ = f(null), { initFocusTrap: D, clearFocusTrap: z } = J();
|
|
56
|
+
let c;
|
|
57
|
+
g(u, (e) => {
|
|
58
|
+
c && (c(), c = void 0), e && setTimeout(() => {
|
|
59
|
+
c = L(y, F, {
|
|
60
|
+
ignore: [".v-popper__popper"]
|
|
61
|
+
});
|
|
59
62
|
});
|
|
60
|
-
}), g(() =>
|
|
63
|
+
}), g(() => n.modelValue, E, { immediate: !0 });
|
|
61
64
|
async function E() {
|
|
62
|
-
const e =
|
|
63
|
-
e ? (
|
|
65
|
+
const e = n.modelValue;
|
|
66
|
+
e ? (u.value = e, await B(), d.value = e, await B(), D(y), document.body.style.overflow = "hidden") : (d.value = e, u.value = e, z(), document.body.style.overflow = "auto");
|
|
64
67
|
}
|
|
65
|
-
typeof window < "u" &&
|
|
68
|
+
typeof window < "u" && q(document, "keydown", A);
|
|
66
69
|
function A(e) {
|
|
67
|
-
e.key === "Escape" &&
|
|
70
|
+
e.key === "Escape" && u.value && !n.persistent && m();
|
|
68
71
|
}
|
|
69
|
-
function
|
|
70
|
-
n.
|
|
72
|
+
function F() {
|
|
73
|
+
n.persistent || m();
|
|
74
|
+
}
|
|
75
|
+
function m() {
|
|
76
|
+
d.value = !1, setTimeout(() => {
|
|
71
77
|
b("update:modelValue", !1);
|
|
72
78
|
}, 150);
|
|
73
79
|
}
|
|
74
|
-
function
|
|
75
|
-
b("update:modelValue", !0),
|
|
80
|
+
function O() {
|
|
81
|
+
b("update:modelValue", !0), d.value = !0;
|
|
76
82
|
}
|
|
77
|
-
const k =
|
|
78
|
-
visible:
|
|
83
|
+
const k = I(), R = M(() => !!(k["tertiary-action"] || k["cancel-action"])), { styles: N, classes: l, className: X } = G("Modal", {}, n, {
|
|
84
|
+
visible: d
|
|
79
85
|
});
|
|
80
|
-
return
|
|
81
|
-
|
|
86
|
+
return C({ open: O, close: m }), (e, h) => (t(), p(P, { to: "body" }, [
|
|
87
|
+
u.value ? (t(), i("div", {
|
|
82
88
|
key: 0,
|
|
83
89
|
ref_key: "modalWrapperRef",
|
|
84
|
-
ref:
|
|
85
|
-
style:
|
|
86
|
-
class:
|
|
87
|
-
o(
|
|
88
|
-
o(
|
|
89
|
-
|
|
90
|
+
ref: $,
|
|
91
|
+
style: W(o(N)),
|
|
92
|
+
class: s([
|
|
93
|
+
o(X),
|
|
94
|
+
o(l).wrapper,
|
|
95
|
+
d.value ? "visible" : "invisible ease-in duration-100"
|
|
90
96
|
])
|
|
91
97
|
}, [
|
|
92
|
-
e.backdrop ? (
|
|
98
|
+
e.backdrop ? (t(), i("div", {
|
|
93
99
|
key: 0,
|
|
94
|
-
class:
|
|
95
|
-
}, null, 2)) :
|
|
96
|
-
S("div",
|
|
97
|
-
(
|
|
100
|
+
class: s(o(l).backdrop)
|
|
101
|
+
}, null, 2)) : a("", !0),
|
|
102
|
+
S("div", _, [
|
|
103
|
+
(t(), p(K(e.isForm ? Z : "div"), {
|
|
98
104
|
ref_key: "modalRef",
|
|
99
105
|
ref: y,
|
|
100
106
|
disabled: e.formDisabled,
|
|
@@ -102,78 +108,78 @@ const Y = { class: "flex items-end sm:items-center justify-center p-4 sm:p-6 h-s
|
|
|
102
108
|
title: e.formTitle,
|
|
103
109
|
description: e.formDescription,
|
|
104
110
|
errors: e.formErrors,
|
|
105
|
-
class:
|
|
111
|
+
class: s(o(l).modal),
|
|
106
112
|
"auto-focus": "",
|
|
107
113
|
"has-footer": !1,
|
|
108
114
|
role: "dialog",
|
|
109
115
|
"aria-modal": "true",
|
|
110
116
|
"aria-labelledby": "modal-headline",
|
|
111
|
-
onSubmit: h[0] || (h[0] = (
|
|
117
|
+
onSubmit: h[0] || (h[0] = (j) => e.$emit("submit", j))
|
|
112
118
|
}, {
|
|
113
119
|
default: w(() => [
|
|
114
120
|
r(e.$slots, "image"),
|
|
115
|
-
e.hasHeader ? (
|
|
121
|
+
e.hasHeader ? (t(), i("div", {
|
|
116
122
|
key: 0,
|
|
117
|
-
class:
|
|
123
|
+
class: s(o(l).header)
|
|
118
124
|
}, [
|
|
119
125
|
r(e.$slots, "header", {}, () => [
|
|
120
|
-
e.label ? (
|
|
126
|
+
e.label ? (t(), i("div", {
|
|
121
127
|
key: 0,
|
|
122
|
-
class:
|
|
123
|
-
}, v(e.label), 3)) :
|
|
124
|
-
e.title ? (
|
|
128
|
+
class: s(o(l).label)
|
|
129
|
+
}, v(e.label), 3)) : a("", !0),
|
|
130
|
+
e.title ? (t(), i("div", {
|
|
125
131
|
key: 1,
|
|
126
|
-
class:
|
|
127
|
-
}, v(e.title), 3)) :
|
|
132
|
+
class: s(o(l).title)
|
|
133
|
+
}, v(e.title), 3)) : a("", !0)
|
|
128
134
|
])
|
|
129
|
-
], 2)) :
|
|
130
|
-
e.$slots.default ? (
|
|
135
|
+
], 2)) : a("", !0),
|
|
136
|
+
e.$slots.default ? (t(), p(Y, {
|
|
131
137
|
key: 1,
|
|
132
138
|
scrollbar: !1,
|
|
133
139
|
vertical: ""
|
|
134
140
|
}, {
|
|
135
141
|
default: w(() => [
|
|
136
142
|
S("div", {
|
|
137
|
-
class:
|
|
143
|
+
class: s(o(l).content)
|
|
138
144
|
}, [
|
|
139
|
-
e.description ? (
|
|
145
|
+
e.description ? (t(), i("div", {
|
|
140
146
|
key: 0,
|
|
141
|
-
class:
|
|
142
|
-
}, v(e.description), 3)) :
|
|
147
|
+
class: s(o(l).description)
|
|
148
|
+
}, v(e.description), 3)) : a("", !0),
|
|
143
149
|
r(e.$slots, "default")
|
|
144
150
|
], 2)
|
|
145
151
|
]),
|
|
146
152
|
_: 3
|
|
147
|
-
})) :
|
|
148
|
-
e.showClose ? (
|
|
153
|
+
})) : a("", !0),
|
|
154
|
+
e.showClose ? (t(), p(U, {
|
|
149
155
|
key: 2,
|
|
150
156
|
ghost: "",
|
|
151
|
-
size: "
|
|
157
|
+
size: "sm",
|
|
152
158
|
tabindex: "-1",
|
|
153
|
-
icon: o(
|
|
154
|
-
class:
|
|
155
|
-
onClick:
|
|
156
|
-
}, null, 8, ["icon", "class"])) :
|
|
157
|
-
e.hasActions ? (
|
|
159
|
+
icon: o(Q),
|
|
160
|
+
class: s(o(l).closeIcon),
|
|
161
|
+
onClick: m
|
|
162
|
+
}, null, 8, ["icon", "class"])) : a("", !0),
|
|
163
|
+
e.hasActions ? (t(), i("div", {
|
|
158
164
|
key: 3,
|
|
159
|
-
class:
|
|
165
|
+
class: s(o(l).actions)
|
|
160
166
|
}, [
|
|
161
167
|
r(e.$slots, "actions", {}, () => [
|
|
162
168
|
r(e.$slots, "cancel-action"),
|
|
163
|
-
R.value ? (
|
|
169
|
+
R.value ? (t(), i("div", x)) : a("", !0),
|
|
164
170
|
r(e.$slots, "tertiary-action"),
|
|
165
171
|
r(e.$slots, "secondary-action"),
|
|
166
172
|
r(e.$slots, "primary-action")
|
|
167
173
|
])
|
|
168
|
-
], 2)) :
|
|
174
|
+
], 2)) : a("", !0)
|
|
169
175
|
]),
|
|
170
176
|
_: 3
|
|
171
177
|
}, 40, ["disabled", "auto-validate", "title", "description", "errors", "class"]))
|
|
172
178
|
])
|
|
173
|
-
], 6)) :
|
|
179
|
+
], 6)) : a("", !0)
|
|
174
180
|
]));
|
|
175
181
|
}
|
|
176
182
|
});
|
|
177
183
|
export {
|
|
178
|
-
|
|
184
|
+
ce as default
|
|
179
185
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
const a = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "fixed z-40 inset-0 overflow-y-auto transition-all",
|
|
4
|
-
backdrop: ({ data:
|
|
5
|
-
const t = ["fixed inset-0 bg-
|
|
6
|
-
return
|
|
4
|
+
backdrop: ({ data: e }) => {
|
|
5
|
+
const t = ["fixed inset-0 bg-secondary-500 dark:bg-black transition-opacity"];
|
|
6
|
+
return e.visible ? t.push("ease-out duration-200 opacity-30 dark:opacity-70") : t.push("ease-in duration-100 opacity-0"), t;
|
|
7
7
|
},
|
|
8
|
-
modal: ({ props:
|
|
9
|
-
const
|
|
10
|
-
return t.visible ?
|
|
8
|
+
modal: ({ props: e, data: t }) => {
|
|
9
|
+
const s = ["relative flex flex-col z-10 bg-white dark:bg-secondary-900 rounded-md shadow-lg transform transition-all overflow-hidden max-h-full w-full"];
|
|
10
|
+
return t.visible ? s.push("ease-out duration-200 opacity-100 translate-y-0 sm:scale-100") : s.push("ease-in duration-200 opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"), e.size === "xs" ? s.push("sm:max-w-xs") : e.size === "sm" ? s.push("sm:max-w-sm") : e.size === "lg" ? s.push("sm:max-w-xl") : e.size === "xl" ? s.push("sm:max-w-3xl") : s.push("sm:max-w-lg"), s;
|
|
11
11
|
},
|
|
12
12
|
closeIcon: "!absolute top-2 z-10 right-2",
|
|
13
13
|
header: "text-lg pl-6 py-4 border-b pr-12",
|
|
14
14
|
content: "px-6 py-4",
|
|
15
|
-
actions: "bg-
|
|
16
|
-
label: "text-xs text-
|
|
17
|
-
title: "text-xl font-semibold
|
|
18
|
-
description: "text-sm"
|
|
15
|
+
actions: ({ props: e, slots: t }) => ["flex gap-4 bg-secondary-50 dark:bg-secondary-800 p-4 justify-end"],
|
|
16
|
+
label: "text-xs text-secondary-500 mb-1",
|
|
17
|
+
title: "text-xl font-semibold",
|
|
18
|
+
description: "text-sm mb-8"
|
|
19
19
|
}
|
|
20
20
|
}, l = a;
|
|
21
21
|
export {
|
|
@@ -2,11 +2,11 @@ const a = {
|
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "fixed z-40 inset-0 overflow-y-auto transition-all",
|
|
4
4
|
backdrop: ({ data: t }) => {
|
|
5
|
-
const e = ["fixed inset-0 bg-
|
|
5
|
+
const e = ["fixed inset-0 bg-secondary-500 dark:bg-black transition-opacity"];
|
|
6
6
|
return t.visible ? e.push("ease-out duration-200 opacity-70 dark:opacity-70") : e.push("ease-in duration-100 opacity-0"), e;
|
|
7
7
|
},
|
|
8
8
|
modal: ({ props: t, data: e }) => {
|
|
9
|
-
const s = ["relative flex flex-col z-10 bg-
|
|
9
|
+
const s = ["relative flex flex-col z-10 bg-secondary-200 dark:bg-secondary-900 shadow-lg transform transition-all overflow-hidden max-h-full w-full"];
|
|
10
10
|
return e.visible ? s.push("ease-out duration-200 opacity-100 translate-y-0 sm:scale-100") : s.push("ease-in duration-200 opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"), t.size === "xs" ? s.push("sm:max-w-xs") : t.size === "sm" ? s.push("sm:max-w-sm") : t.size === "lg" ? s.push("sm:max-w-xl") : t.size === "xl" ? s.push("sm:max-w-3xl") : s.push("sm:max-w-lg"), s;
|
|
11
11
|
},
|
|
12
12
|
closeIcon: "!absolute top-0 z-10 right-0",
|
|
@@ -19,7 +19,7 @@ const a = {
|
|
|
19
19
|
const s = ["grid grid-flow-col gap-[1px]"];
|
|
20
20
|
return e["tertiary-action"] || e["cancel-action"] ? s.push("grid-cols-4") : s.push("grid-cols-2"), s;
|
|
21
21
|
},
|
|
22
|
-
label: "text-xs text-
|
|
22
|
+
label: "text-xs text-secondary-500 mb-1",
|
|
23
23
|
title: "text-xl mb-4",
|
|
24
24
|
description: "text-sm mb-4"
|
|
25
25
|
}
|
|
@@ -217,7 +217,7 @@ const se = { class: "flex items-center flex-wrap" }, re = {
|
|
|
217
217
|
e.removable ? (a(), k(E, {
|
|
218
218
|
key: 2,
|
|
219
219
|
icon: l(oe),
|
|
220
|
-
class: "text-
|
|
220
|
+
class: "text-secondary-400 hover:text-secondary-500 ml-3 cursor-pointer",
|
|
221
221
|
onClick: () => {
|
|
222
222
|
y(e);
|
|
223
223
|
}
|
|
@@ -2,7 +2,7 @@ const e = {
|
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "fixed z-50 w-full sm:w-auto overflow-y-auto max-h-screen",
|
|
4
4
|
list: "flex flex-col items-end w-full sm:w-[520px] px-4",
|
|
5
|
-
item: "w-full flex items-center rounded-md px-4 py-3 bg-
|
|
5
|
+
item: "w-full flex items-center rounded-md px-4 py-3 bg-secondary-800 dark:bg-secondary-50 text-white dark:text-secondary-900 border border-secondary-700 dark:border-secondary-100"
|
|
6
6
|
}
|
|
7
7
|
}, r = e;
|
|
8
8
|
export {
|
|
@@ -2,9 +2,9 @@ const e = {
|
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "fixed z-50 w-full sm:w-auto overflow-y-auto max-h-screen",
|
|
4
4
|
list: "flex flex-col items-end w-full sm:w-[520px] px-4",
|
|
5
|
-
item: () => ["w-full flex items-center px-4 py-3 bg-
|
|
5
|
+
item: () => ["w-full flex items-center px-4 py-3 bg-secondary-800 dark:bg-secondary-50 text-white dark:text-secondary-900 border-l-2 border-[color:var(--x-notification-icon)]"]
|
|
6
6
|
}
|
|
7
|
-
},
|
|
7
|
+
}, t = e;
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
t as default
|
|
10
10
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, computed as
|
|
1
|
+
import { defineComponent as E, computed as z, ref as X, watch as D, openBlock as o, createElementBlock as n, normalizeStyle as F, unref as t, normalizeClass as v, Fragment as u, createVNode as r, createElementVNode as V, withKeys as L, toDisplayString as Q, createBlock as m, createCommentVNode as d, renderList as P } from "vue";
|
|
2
2
|
import { useTheme as T } from "../../composables/useTheme.js";
|
|
3
3
|
import { useCommon as C } from "../../composables/useCommon.js";
|
|
4
4
|
import { prevIcon as U, nextIcon as j, dotsIcon as y } from "../../common/icons.js";
|
|
@@ -6,7 +6,7 @@ import b from "../icon/Icon.vue.js";
|
|
|
6
6
|
import A from "../input/Input.vue.js";
|
|
7
7
|
import I from "../button/Button.vue.js";
|
|
8
8
|
import f from "./PaginationItem.vue.js";
|
|
9
|
-
const G = { class: "mx-9 flex items-center" }, H = /* @__PURE__ */
|
|
9
|
+
const G = { class: "mx-9 flex items-center" }, H = /* @__PURE__ */ V("span", { class: "text-secondary-600 mr-2" }, "Page", -1), J = { class: "text-secondary-600 ml-2" }, M = ["onClick"], O = ["simple", "quick", "dots"], R = {
|
|
10
10
|
...C.props(),
|
|
11
11
|
links: Boolean,
|
|
12
12
|
totalPages: {
|
|
@@ -27,12 +27,12 @@ const G = { class: "mx-9 flex items-center" }, H = /* @__PURE__ */ g("span", { c
|
|
|
27
27
|
...C.validators(),
|
|
28
28
|
variant: O
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, se = /* @__PURE__ */ E({
|
|
31
31
|
...W,
|
|
32
32
|
props: R,
|
|
33
33
|
emits: ["update:modelValue"],
|
|
34
34
|
setup($, { emit: w }) {
|
|
35
|
-
const l = $, p = w, B =
|
|
35
|
+
const l = $, p = w, B = z(() => l.totalPages === 3 ? [2] : l.totalPages > 2 ? l.modelValue === 1 || l.modelValue === 2 ? [2, 3] : l.modelValue === l.totalPages || l.modelValue === l.totalPages - 1 ? [l.totalPages - 2, l.totalPages - 1] : [l.modelValue - 1, l.modelValue, l.modelValue + 1] : []), i = X(l.modelValue + "");
|
|
36
36
|
function N() {
|
|
37
37
|
const e = parseInt(i.value);
|
|
38
38
|
e >= 0 && e <= l.totalPages ? p("update:modelValue", e) : i.value = l.modelValue + "";
|
|
@@ -46,36 +46,36 @@ const G = { class: "mx-9 flex items-center" }, H = /* @__PURE__ */ g("span", { c
|
|
|
46
46
|
function S() {
|
|
47
47
|
l.modelValue < l.totalPages && p("update:modelValue", l.modelValue + 1);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
return (e,
|
|
51
|
-
style: F(
|
|
52
|
-
class:
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
const g = z(() => l.size === "xs" ? "xs" : l.size === "sm" ? "sm" : l.size === "lg" ? "md" : l.size === "xl" ? "lg" : "sm"), { styles: K, classes: c, className: h } = T("Pagination", {}, l);
|
|
50
|
+
return (e, s) => (o(), n("ul", {
|
|
51
|
+
style: F(t(K)),
|
|
52
|
+
class: v([
|
|
53
|
+
t(h),
|
|
54
|
+
t(c).wrapper
|
|
55
55
|
])
|
|
56
56
|
}, [
|
|
57
57
|
e.variant === "quick" ? (o(), n(u, { key: 0 }, [
|
|
58
58
|
r(I, {
|
|
59
|
-
"icon-left":
|
|
60
|
-
size:
|
|
59
|
+
"icon-left": t(U),
|
|
60
|
+
size: g.value,
|
|
61
61
|
disabled: e.modelValue <= 1,
|
|
62
62
|
onClick: q
|
|
63
63
|
}, null, 8, ["icon-left", "size", "disabled"]),
|
|
64
|
-
|
|
64
|
+
V("div", G, [
|
|
65
65
|
H,
|
|
66
66
|
r(A, {
|
|
67
67
|
modelValue: i.value,
|
|
68
|
-
"onUpdate:modelValue":
|
|
68
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => i.value = a),
|
|
69
69
|
size: e.size,
|
|
70
70
|
class: "text-center w-16",
|
|
71
71
|
"hide-footer": "",
|
|
72
72
|
onKeydown: L(N, ["enter"])
|
|
73
73
|
}, null, 8, ["modelValue", "size", "onKeydown"]),
|
|
74
|
-
|
|
74
|
+
V("span", J, "of " + Q(e.totalPages), 1)
|
|
75
75
|
]),
|
|
76
76
|
r(I, {
|
|
77
|
-
"icon-left":
|
|
78
|
-
size:
|
|
77
|
+
"icon-left": t(j),
|
|
78
|
+
size: g.value,
|
|
79
79
|
disabled: e.modelValue >= e.totalPages,
|
|
80
80
|
onClick: S
|
|
81
81
|
}, null, 8, ["icon-left", "size", "disabled"])
|
|
@@ -85,12 +85,12 @@ const G = { class: "mx-9 flex items-center" }, H = /* @__PURE__ */ g("span", { c
|
|
|
85
85
|
links: e.links,
|
|
86
86
|
size: e.size,
|
|
87
87
|
selected: e.modelValue === 1,
|
|
88
|
-
onInput:
|
|
88
|
+
onInput: s[1] || (s[1] = (a) => e.$emit("update:modelValue", a))
|
|
89
89
|
}, null, 8, ["links", "size", "selected"]),
|
|
90
90
|
e.totalPages > 3 && e.modelValue > 3 ? (o(), m(b, {
|
|
91
91
|
key: 0,
|
|
92
92
|
class: "mx-1",
|
|
93
|
-
icon:
|
|
93
|
+
icon: t(y),
|
|
94
94
|
size: e.size
|
|
95
95
|
}, null, 8, ["icon", "size"])) : d("", !0),
|
|
96
96
|
(o(!0), n(u, null, P(B.value, (a) => (o(), m(f, {
|
|
@@ -99,12 +99,12 @@ const G = { class: "mx-9 flex items-center" }, H = /* @__PURE__ */ g("span", { c
|
|
|
99
99
|
links: e.links,
|
|
100
100
|
size: e.size,
|
|
101
101
|
selected: e.modelValue === a,
|
|
102
|
-
onInput:
|
|
102
|
+
onInput: s[2] || (s[2] = (k) => e.$emit("update:modelValue", k))
|
|
103
103
|
}, null, 8, ["value", "links", "size", "selected"]))), 128)),
|
|
104
104
|
e.totalPages > 3 && e.modelValue < e.totalPages - 2 ? (o(), m(b, {
|
|
105
105
|
key: 1,
|
|
106
106
|
class: "mx-1",
|
|
107
|
-
icon:
|
|
107
|
+
icon: t(y),
|
|
108
108
|
size: e.size
|
|
109
109
|
}, null, 8, ["icon", "size"])) : d("", !0),
|
|
110
110
|
e.totalPages > 1 ? (o(), m(f, {
|
|
@@ -113,19 +113,19 @@ const G = { class: "mx-9 flex items-center" }, H = /* @__PURE__ */ g("span", { c
|
|
|
113
113
|
links: e.links,
|
|
114
114
|
size: e.size,
|
|
115
115
|
selected: e.modelValue === e.totalPages,
|
|
116
|
-
onInput:
|
|
116
|
+
onInput: s[3] || (s[3] = (a) => e.$emit("update:modelValue", a))
|
|
117
117
|
}, null, 8, ["value", "links", "size", "selected"])) : d("", !0)
|
|
118
118
|
], 64)) : e.variant === "dots" ? (o(!0), n(u, { key: 2 }, P(e.totalPages, (a) => (o(), n("li", {
|
|
119
119
|
key: a,
|
|
120
|
-
class:
|
|
121
|
-
|
|
122
|
-
a === e.modelValue ? "bg-[color:var(--x-pagination-bg)]" : "bg-
|
|
120
|
+
class: v(["rounded-full cursor-pointer", [
|
|
121
|
+
t(c).dots,
|
|
122
|
+
a === e.modelValue ? "bg-[color:var(--x-pagination-bg)]" : "bg-secondary-100 hover:bg-secondary-200"
|
|
123
123
|
]]),
|
|
124
|
-
onClick: (
|
|
124
|
+
onClick: (k) => e.$emit("update:modelValue", a)
|
|
125
125
|
}, null, 10, M))), 128)) : d("", !0)
|
|
126
126
|
], 6));
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
export {
|
|
130
|
-
|
|
130
|
+
se as default
|
|
131
131
|
};
|
|
@@ -23,6 +23,10 @@ declare const popoverProps: {
|
|
|
23
23
|
type: PropType<TriggerEvent[]>;
|
|
24
24
|
default: () => string[];
|
|
25
25
|
};
|
|
26
|
+
hideArrow: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
26
30
|
showTriggers: PropType<TriggerEvent[] | ((triggers: Array<PopoverTriggerEvent>) => Array<PopoverTriggerEvent>)>;
|
|
27
31
|
hideTriggers: PropType<TriggerEvent[] | ((triggers: Array<PopoverTriggerEvent>) => Array<PopoverTriggerEvent>)>;
|
|
28
32
|
popperTriggers: PropType<TriggerEvent[]>;
|
|
@@ -81,6 +85,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
81
85
|
type: PropType<TriggerEvent[]>;
|
|
82
86
|
default: () => string[];
|
|
83
87
|
};
|
|
88
|
+
hideArrow: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
84
92
|
showTriggers: PropType<TriggerEvent[] | ((triggers: TriggerEvent[]) => TriggerEvent[])>;
|
|
85
93
|
hideTriggers: PropType<TriggerEvent[] | ((triggers: TriggerEvent[]) => TriggerEvent[])>;
|
|
86
94
|
popperTriggers: PropType<TriggerEvent[]>;
|
|
@@ -139,6 +147,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
139
147
|
type: PropType<TriggerEvent[]>;
|
|
140
148
|
default: () => string[];
|
|
141
149
|
};
|
|
150
|
+
hideArrow: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
142
154
|
showTriggers: PropType<TriggerEvent[] | ((triggers: TriggerEvent[]) => TriggerEvent[])>;
|
|
143
155
|
hideTriggers: PropType<TriggerEvent[] | ((triggers: TriggerEvent[]) => TriggerEvent[])>;
|
|
144
156
|
popperTriggers: PropType<TriggerEvent[]>;
|
|
@@ -191,6 +203,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
191
203
|
positioningDisabled: boolean;
|
|
192
204
|
placement: Placement;
|
|
193
205
|
triggers: TriggerEvent[];
|
|
206
|
+
hideArrow: boolean;
|
|
194
207
|
container: string | boolean | Element | Record<string, any>;
|
|
195
208
|
strategy: "absolute" | "fixed";
|
|
196
209
|
autoHide: boolean | ((event: Event) => boolean);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as b, ref as a, openBlock as v, createBlock as S, unref as r, normalizeStyle as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import { Dropdown as
|
|
1
|
+
import { defineComponent as b, ref as a, openBlock as v, createBlock as S, unref as r, normalizeStyle as B, normalizeClass as T, withCtx as l, renderSlot as d } from "vue";
|
|
2
|
+
import { useTheme as A } from "../../composables/useTheme.js";
|
|
3
|
+
import { Dropdown as $ } from "../../node_modules/.pnpm/floating-vue@5.2.0_vue@3.3.9/node_modules/floating-vue/dist/floating-vue.js";
|
|
4
4
|
const z = {
|
|
5
5
|
placement: ["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end"]
|
|
6
6
|
}, k = {
|
|
@@ -20,6 +20,10 @@ const z = {
|
|
|
20
20
|
type: Array,
|
|
21
21
|
default: () => ["click"]
|
|
22
22
|
},
|
|
23
|
+
hideArrow: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
},
|
|
23
27
|
showTriggers: [Array, Function],
|
|
24
28
|
hideTriggers: [Array, Function],
|
|
25
29
|
popperTriggers: Array,
|
|
@@ -69,12 +73,12 @@ const z = {
|
|
|
69
73
|
}
|
|
70
74
|
const t = a(!1);
|
|
71
75
|
u({ show: s, hide: n, toggle: y, isOpen: t });
|
|
72
|
-
const { styles: f, classes: p, className: h } =
|
|
73
|
-
return (e, o) => (v(), S(r(
|
|
76
|
+
const { styles: f, classes: p, className: h } = A("Popover", {}, m);
|
|
77
|
+
return (e, o) => (v(), S(r($), {
|
|
74
78
|
ref_key: "elRef",
|
|
75
79
|
ref: i,
|
|
76
|
-
style:
|
|
77
|
-
class:
|
|
80
|
+
style: B(r(f)),
|
|
81
|
+
class: T([r(h), r(p).wrapper]),
|
|
78
82
|
"positioning-disabled": e.positioningDisabled,
|
|
79
83
|
placement: e.placement,
|
|
80
84
|
disabled: e.disabled,
|
|
@@ -97,7 +101,8 @@ const z = {
|
|
|
97
101
|
"eager-mount": e.eagerMount,
|
|
98
102
|
"popper-class": [
|
|
99
103
|
r(p).content,
|
|
100
|
-
e.popperClass
|
|
104
|
+
e.popperClass,
|
|
105
|
+
e.hideArrow ? "v-popper__popper--no-arrow" : ""
|
|
101
106
|
],
|
|
102
107
|
"compute-transform-origin": e.computeTransformOrigin,
|
|
103
108
|
onShow: o[0] || (o[0] = () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
classes: {
|
|
3
|
-
wrapper: "block w-full bg-white dark:bg-
|
|
3
|
+
wrapper: "block w-full bg-white dark:bg-secondary-700 shadow-lg rounded-md border border-secondary-200 dark:border-secondary-800"
|
|
4
4
|
}
|
|
5
|
-
},
|
|
5
|
+
}, r = e;
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
r as default
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
classes: {
|
|
3
|
-
wrapper: "block w-full bg-
|
|
3
|
+
wrapper: "block w-full bg-secondary-100 dark:bg-secondary-700 shadow-lg border border-secondary-200 dark:border-secondary-800 text-sm"
|
|
4
4
|
}
|
|
5
|
-
},
|
|
5
|
+
}, r = e;
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
r as default
|
|
8
8
|
};
|