sard 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/all-components.js +2 -1
- package/components/accordion/accordion-item.js +0 -1
- package/components/accordion/accordion.js +0 -1
- package/components/accordion/index.js +0 -1
- package/components/action-sheet/action-sheet-item.js +1 -6
- package/components/action-sheet/action-sheet.js +0 -1
- package/components/action-sheet/common.d.ts +0 -1
- package/components/action-sheet/context.js +0 -1
- package/components/action-sheet/index.css +1 -1
- package/components/action-sheet/index.js +0 -1
- package/components/alert/alert.js +0 -1
- package/components/alert/index.css +1 -1
- package/components/alert/index.js +0 -1
- package/components/avatar/avatar-group.js +0 -1
- package/components/avatar/avatar.js +0 -1
- package/components/avatar/index.js +0 -1
- package/components/back-top/back-top.js +0 -1
- package/components/back-top/index.js +0 -1
- package/components/back-top/useElementBackTop.js +0 -1
- package/components/back-top/usePageBackTop.js +0 -1
- package/components/badge/badge.js +0 -1
- package/components/badge/index.js +0 -1
- package/components/barcode/barcode.js +0 -1
- package/components/barcode/index.js +0 -1
- package/components/button/button.js +0 -1
- package/components/button/index.js +0 -1
- package/components/calendar/calendar-month.js +2 -3
- package/components/calendar/calendar.js +0 -2
- package/components/calendar/index.css +1 -1
- package/components/calendar/index.js +0 -1
- package/components/calendar-input/calendar-input.js +0 -1
- package/components/calendar-input/index.js +0 -1
- package/components/calendar-popout/index.js +0 -1
- package/components/card/card.js +0 -1
- package/components/card/index.css +1 -1
- package/components/card/index.js +0 -1
- package/components/cascader/cascader.js +4 -6
- package/components/cascader/common.js +0 -1
- package/components/cascader/index.css +1 -1
- package/components/cascader/index.js +0 -1
- package/components/cascader/useCascaderTree.js +0 -1
- package/components/cascader-input/cascader-input.js +0 -2
- package/components/cascader-input/index.js +0 -1
- package/components/cascader-popout/cascader-popout.js +0 -1
- package/components/cascader-popout/index.js +0 -1
- package/components/check-icon/check-icon.js +0 -1
- package/components/checkbox/checkbox-group.js +0 -2
- package/components/checkbox/checkbox.js +0 -1
- package/components/checkbox/index.css +1 -1
- package/components/checkbox/index.js +0 -1
- package/components/checkbox-input/checkbox-input.js +0 -2
- package/components/checkbox-input/index.js +0 -1
- package/components/checkbox-popout/checkbox-popout.js +0 -2
- package/components/checkbox-popout/index.css +1 -1
- package/components/checkbox-popout/index.js +0 -1
- package/components/collapse/collapse.js +0 -1
- package/components/collapse/index.js +0 -1
- package/components/color-picker/color-picker.js +0 -2
- package/components/color-picker/index.js +0 -1
- package/components/color-picker-input/color-picker-input.js +0 -1
- package/components/color-picker-input/index.js +0 -1
- package/components/color-picker-popout/color-picker-popout.js +0 -1
- package/components/color-picker-popout/index.js +0 -1
- package/components/compact/compact.js +0 -1
- package/components/compact/index.js +0 -1
- package/components/cool-icon/cool-icon.js +0 -1
- package/components/cool-icon/index.js +0 -1
- package/components/count-down/index.js +0 -1
- package/components/count-to/count-to.js +0 -1
- package/components/count-to/index.js +0 -1
- package/components/crop-image/crop-image.js +0 -2
- package/components/crop-image/index.js +0 -1
- package/components/date-strip/date-strip.js +0 -1
- package/components/date-strip/index.css +1 -1
- package/components/date-strip/index.js +0 -1
- package/components/datetime-picker/common.js +0 -1
- package/components/datetime-picker/datetime-picker.js +0 -1
- package/components/datetime-picker/index.js +0 -1
- package/components/datetime-picker-input/datetime-picker-input.js +0 -1
- package/components/datetime-picker-input/index.js +0 -1
- package/components/datetime-picker-popout/datetime-picker-popout.js +0 -1
- package/components/datetime-picker-popout/index.js +0 -1
- package/components/datetime-range-picker/datetime-range-picker.js +0 -1
- package/components/datetime-range-picker/index.js +0 -1
- package/components/datetime-range-picker-input/datetime-range-picker-input.js +0 -1
- package/components/datetime-range-picker-input/index.js +0 -1
- package/components/datetime-range-picker-popout/datetime-range-picker-popout.js +0 -1
- package/components/datetime-range-picker-popout/index.js +0 -1
- package/components/descriptions/descriptions-item.js +0 -1
- package/components/descriptions/descriptions.js +0 -1
- package/components/descriptions/index.js +0 -1
- package/components/dialog/dialog.js +0 -1
- package/components/dialog/index.js +0 -1
- package/components/divider/divider.js +0 -1
- package/components/divider/index.js +0 -1
- package/components/dnd/dnd-handle.js +0 -2
- package/components/dnd/dnd-item.js +0 -1
- package/components/dnd/dnd.js +0 -1
- package/components/dnd/index.js +0 -1
- package/components/dropdown/dropdown-item.js +0 -2
- package/components/dropdown/dropdown.js +0 -1
- package/components/dropdown/index.js +0 -1
- package/components/ellipsis/ellipsis.js +0 -2
- package/components/ellipsis/index.js +0 -1
- package/components/empty/empty.js +0 -1
- package/components/empty/index.js +0 -1
- package/components/fab/common.d.ts +2 -2
- package/components/fab/common.js +2 -2
- package/components/fab/fab-item.js +0 -1
- package/components/fab/fab.d.ts +2 -2
- package/components/fab/fab.js +2 -4
- package/components/fab/index.js +0 -1
- package/components/floating-bubble/common.d.ts +2 -2
- package/components/floating-bubble/common.js +2 -2
- package/components/floating-bubble/floating-bubble.d.ts +2 -2
- package/components/floating-bubble/floating-bubble.js +2 -3
- package/components/floating-bubble/index.js +0 -1
- package/components/floating-bubble/useFloatingBubble.d.ts +2 -2
- package/components/floating-bubble/useFloatingBubble.js +4 -6
- package/components/floating-panel/floating-panel.js +0 -2
- package/components/floating-panel/index.js +0 -1
- package/components/form/Validator.js +0 -1
- package/components/form/form-item.js +0 -1
- package/components/form/form.js +0 -1
- package/components/form/index.css +1 -1
- package/components/form/index.js +0 -1
- package/components/form/useForm.js +0 -1
- package/components/form/useFormItem.js +0 -1
- package/components/form-plain/index.js +0 -1
- package/components/grid/grid-item.js +0 -1
- package/components/grid/grid.js +0 -1
- package/components/grid/index.css +1 -1
- package/components/grid/index.js +0 -1
- package/components/image/image.js +0 -2
- package/components/image/index.js +0 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +3 -3
- package/components/indexes/index.js +0 -1
- package/components/indexes/indexes-anchor.js +0 -1
- package/components/indexes/indexes-nav.js +0 -2
- package/components/indexes/indexes.js +0 -2
- package/components/infinite-list/common.d.ts +24 -0
- package/components/infinite-list/common.js +4 -0
- package/components/infinite-list/index.css +1 -0
- package/components/infinite-list/index.d.ts +5 -0
- package/components/infinite-list/index.js +6 -0
- package/components/infinite-list/infinite-list.d.ts +23 -0
- package/components/infinite-list/infinite-list.js +126 -0
- package/components/input/index.css +1 -1
- package/components/input/index.js +0 -1
- package/components/input/input.js +0 -2
- package/components/input/utils.js +0 -1
- package/components/keyboard/common.js +0 -1
- package/components/keyboard/index.css +1 -1
- package/components/keyboard/index.js +0 -1
- package/components/keyboard/keyboard.js +0 -1
- package/components/keyboard-popout/index.js +0 -1
- package/components/keyboard-popout/keyboard-popout.js +0 -1
- package/components/layout/col.js +0 -1
- package/components/layout/index.js +0 -1
- package/components/layout/row.js +0 -1
- package/components/list/index.js +0 -1
- package/components/list/list-item.js +0 -1
- package/components/list/list.js +0 -1
- package/components/load-more/index.js +0 -1
- package/components/load-more/load-more.js +0 -1
- package/components/load-more/useLoadMore.js +9 -6
- package/components/loading/index.js +0 -1
- package/components/loading/loading.js +0 -1
- package/components/marquee/index.js +0 -1
- package/components/marquee/marquee.js +0 -2
- package/components/menu/context.js +0 -1
- package/components/menu/index.js +0 -1
- package/components/menu/menu-item.js +0 -1
- package/components/menu/menu.js +0 -1
- package/components/motion/index.js +0 -1
- package/components/motion/motion.js +0 -1
- package/components/navbar/index.css +1 -1
- package/components/navbar/index.js +0 -1
- package/components/navbar/navbar-item.js +0 -1
- package/components/navbar/navbar.js +18 -27
- package/components/navbar-pit/index.js +0 -1
- package/components/navbar-pit/navbar-pit.js +0 -1
- package/components/notice-bar/index.js +0 -1
- package/components/notice-bar/notice-bar.js +0 -2
- package/components/notify/index.js +0 -1
- package/components/notify/notify.js +0 -2
- package/components/overlay/index.js +0 -1
- package/components/overlay/overlay.js +0 -1
- package/components/pagination/index.js +0 -1
- package/components/pagination/pagination.js +0 -1
- package/components/password-input/index.css +1 -1
- package/components/password-input/index.js +0 -1
- package/components/password-input/password-input.js +0 -1
- package/components/picker/index.css +1 -1
- package/components/picker/index.js +0 -1
- package/components/picker/picker.js +0 -2
- package/components/picker-input/index.js +0 -1
- package/components/picker-input/picker-input.js +0 -2
- package/components/picker-popout/index.js +0 -1
- package/components/picker-popout/picker-popout.js +0 -2
- package/components/picker-view/index.css +1 -1
- package/components/picker-view/index.js +0 -1
- package/components/picker-view/picker-view-column.js +0 -2
- package/components/picker-view/picker-view.js +0 -2
- package/components/popout/index.css +1 -1
- package/components/popout/index.js +0 -1
- package/components/popout/popout.js +0 -1
- package/components/popout/useFormPopout.js +0 -1
- package/components/popout-input/index.js +0 -1
- package/components/popout-input/popout-input.js +0 -2
- package/components/popout-input/usePopoutInput.js +0 -1
- package/components/popover/index.js +0 -1
- package/components/popover/popover.js +0 -2
- package/components/popup/index.js +0 -1
- package/components/popup/popup.js +0 -2
- package/components/preview-image/index.js +0 -1
- package/components/preview-image/preview-image-item.js +0 -2
- package/components/preview-image/preview-image.js +0 -2
- package/components/progress-bar/index.js +0 -1
- package/components/progress-bar/progress-bar.js +0 -1
- package/components/progress-circle/index.css +1 -1
- package/components/progress-circle/index.js +0 -1
- package/components/progress-circle/progress-circle.js +0 -1
- package/components/pull-down-refresh/index.js +0 -1
- package/components/pull-down-refresh/pull-down-refresh.js +0 -2
- package/components/puzzle-verify/index.js +0 -1
- package/components/puzzle-verify/puzzle-verify.js +0 -1
- package/components/qrcode/index.js +0 -1
- package/components/qrcode/qrcode.js +0 -2
- package/components/radio/index.css +1 -1
- package/components/radio/index.js +0 -1
- package/components/radio/radio-group.js +0 -2
- package/components/radio/radio.js +0 -1
- package/components/radio-input/index.js +0 -1
- package/components/radio-input/radio-input.js +0 -2
- package/components/radio-popout/index.css +1 -1
- package/components/radio-popout/index.js +0 -1
- package/components/radio-popout/radio-popout.js +0 -2
- package/components/rate/index.css +1 -1
- package/components/rate/index.js +0 -1
- package/components/rate/rate.js +1 -3
- package/components/read-more/index.js +0 -1
- package/components/read-more/read-more.js +0 -2
- package/components/result/index.js +0 -1
- package/components/result/result.js +0 -1
- package/components/rotate-verify/index.js +0 -1
- package/components/rotate-verify/rotate-verify.js +0 -1
- package/components/scroll-list/index.js +0 -1
- package/components/scroll-list/scroll-list.js +0 -2
- package/components/scroll-spy/index.js +0 -1
- package/components/scroll-spy/scroll-spy.js +0 -2
- package/components/search/index.js +0 -1
- package/components/search/search.js +0 -1
- package/components/segmented/index.js +0 -1
- package/components/segmented/segmented-item.js +0 -2
- package/components/segmented/segmented.js +0 -3
- package/components/select/index.js +0 -1
- package/components/select/select-option-group.js +0 -1
- package/components/select/select-option.js +0 -1
- package/components/select/select.js +0 -3
- package/components/select-input/index.js +0 -1
- package/components/select-input/select-input.js +0 -2
- package/components/select-popout/index.js +0 -1
- package/components/share-sheet/context.js +0 -1
- package/components/share-sheet/index.js +0 -1
- package/components/share-sheet/share-sheet-icon.js +0 -1
- package/components/share-sheet/share-sheet-item.js +0 -1
- package/components/share-sheet/share-sheet-row.js +0 -1
- package/components/share-sheet/share-sheet.js +0 -1
- package/components/sidebar/index.css +1 -1
- package/components/sidebar/index.js +0 -1
- package/components/sidebar/sidebar-item.js +0 -1
- package/components/sidebar/sidebar.js +0 -1
- package/components/signature/index.js +0 -1
- package/components/signature/signature.js +0 -2
- package/components/skeleton/index.css +1 -1
- package/components/skeleton/index.js +0 -1
- package/components/skeleton/skeleton-avatar.js +0 -1
- package/components/skeleton/skeleton-block.js +0 -1
- package/components/skeleton/skeleton-paragraph.js +0 -1
- package/components/skeleton/skeleton-title.js +0 -1
- package/components/skeleton/skeleton.js +0 -1
- package/components/slide-verify/index.css +1 -1
- package/components/slide-verify/index.js +0 -1
- package/components/slide-verify/slide-verify.js +0 -2
- package/components/slider/index.js +0 -1
- package/components/slider/slider.js +0 -2
- package/components/space/index.css +1 -1
- package/components/space/index.js +0 -1
- package/components/space/space.js +0 -1
- package/components/status-bar/index.js +0 -1
- package/components/status-bar/status-bar.js +0 -1
- package/components/stepper/index.js +0 -1
- package/components/stepper/stepper.js +0 -2
- package/components/steps/index.css +1 -1
- package/components/steps/index.js +0 -1
- package/components/steps/step.js +0 -1
- package/components/steps/steps.js +0 -1
- package/components/sticky/index.js +0 -1
- package/components/sticky/sticky-box.js +0 -1
- package/components/sticky/sticky.js +0 -2
- package/components/style/index.css +1 -1
- package/components/swipe-action/index.js +0 -1
- package/components/swipe-action/swipe-action-group.js +0 -1
- package/components/swipe-action/swipe-action.js +0 -2
- package/components/swiper/index.js +0 -1
- package/components/swiper/swiper-item.js +0 -1
- package/components/swiper/swiper.js +0 -1
- package/components/swiper/useSwiper.js +0 -2
- package/components/swiper/useSwiperAnimation.js +0 -1
- package/components/swiper/useSwiperAutoHeight.js +0 -1
- package/components/swiper/useSwiperAutoPlay.js +0 -1
- package/components/swiper/useSwiperData.js +0 -1
- package/components/switch/index.js +0 -1
- package/components/switch/switch.js +0 -1
- package/components/tabbar/index.js +0 -1
- package/components/tabbar/tabbar-item.js +0 -1
- package/components/tabbar/tabbar.js +0 -1
- package/components/tabbar-pit/index.js +0 -1
- package/components/tabbar-pit/tabbar-pit.js +0 -1
- package/components/table/index.css +1 -1
- package/components/table/index.js +0 -1
- package/components/table/table-col.js +0 -2
- package/components/table/table.js +0 -2
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.js +0 -1
- package/components/tabs/tab.js +0 -1
- package/components/tabs/tabs.js +0 -2
- package/components/tag/index.css +1 -1
- package/components/tag/index.js +0 -1
- package/components/tag/tag.js +0 -1
- package/components/text/index.js +0 -1
- package/components/text/text.js +0 -1
- package/components/timeline/index.js +0 -1
- package/components/timeline/timeline-item.js +0 -1
- package/components/timeline/timeline.js +0 -1
- package/components/toast/index.css +1 -1
- package/components/toast/index.js +0 -1
- package/components/toast/toast.js +0 -2
- package/components/tree/index.css +1 -1
- package/components/tree/index.js +0 -1
- package/components/tree/tree-node.js +0 -2
- package/components/tree/tree.js +1 -3
- package/components/upload/index.js +0 -1
- package/components/upload/upload-preview.js +0 -1
- package/components/upload/upload.js +0 -1
- package/components/waterfall/index.js +0 -1
- package/components/waterfall/test/SimulatedImage.js +0 -2
- package/components/waterfall/waterfall-item.js +0 -2
- package/components/waterfall/waterfall-load.js +0 -2
- package/components/waterfall/waterfall.js +0 -2
- package/components/watermark/index.js +0 -1
- package/components/watermark/watermark.js +0 -1
- package/global.d.ts +1 -0
- package/index.css +1 -1
- package/index.d.ts +2 -1
- package/index.js +3 -6
- package/locale/index.js +0 -1
- package/locale/lang/ar-SA.d.ts +7 -0
- package/locale/lang/ar-SA.js +7 -0
- package/locale/lang/bn-BD.d.ts +7 -0
- package/locale/lang/bn-BD.js +7 -0
- package/locale/lang/en-US.d.ts +7 -0
- package/locale/lang/en-US.js +7 -0
- package/locale/lang/es-ES.d.ts +7 -0
- package/locale/lang/es-ES.js +7 -0
- package/locale/lang/hi-IN.d.ts +7 -0
- package/locale/lang/hi-IN.js +7 -0
- package/locale/lang/id-ID.d.ts +7 -0
- package/locale/lang/id-ID.js +7 -0
- package/locale/lang/pt-BR.d.ts +7 -0
- package/locale/lang/pt-BR.js +7 -0
- package/locale/lang/tr-TR.d.ts +7 -0
- package/locale/lang/tr-TR.js +7 -0
- package/locale/lang/ur-PK.d.ts +7 -0
- package/locale/lang/ur-PK.js +7 -0
- package/locale/lang/vi-VN.d.ts +7 -0
- package/locale/lang/vi-VN.js +7 -0
- package/locale/lang/zh-CN.d.ts +7 -0
- package/locale/lang/zh-CN.js +7 -0
- package/package.json +2 -1
- package/use/useComposition.js +0 -1
- package/use/useDragPinch.js +0 -1
- package/use/useKeyList.js +0 -1
- package/use/useLuckyDraw.js +0 -1
- package/use/useOptionKeys.js +0 -1
- package/use/usePointerDown.js +0 -1
- package/use/usePopper.js +0 -1
- package/use/useRtl.js +0 -1
- package/use/useScrollSpy.js +0 -1
- package/use/useSimulatedClick.js +0 -1
- package/use/useSimulatedDblClick.js +0 -1
- package/use/useSimulatedPress.js +0 -1
- package/utils/index.js +0 -1
- package/utils/scroller/useScrollBinding.js +0 -1
|
@@ -3,8 +3,6 @@ import { clamp } from "../../utils/number.js";
|
|
|
3
3
|
import { getTouchPoint } from "../../utils/geometry.js";
|
|
4
4
|
import { formatColor, getPreviewColor, hslToHsv, hslToRgb, hsvToHsl, normalizeHsva, parseColor } from "../../utils/color.js";
|
|
5
5
|
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
6
|
-
import "../../use/index.js";
|
|
7
|
-
import "../../utils/index.js";
|
|
8
6
|
import { useFormContext, useFormItemContext } from "../form/common.js";
|
|
9
7
|
import { defaultColorPickerProps } from "./common.js";
|
|
10
8
|
import popover_default from "../popover/popover.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { isEmptyBinding } from "../../utils/utils.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import popout_input_default from "../popout-input/popout-input.js";
|
|
5
4
|
import { partitionPopoutInputProps, usePopoutInput } from "../popout-input/usePopoutInput.js";
|
|
6
5
|
import color_picker_popout_default from "../color-picker-popout/color-picker-popout.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import color_picker_input_default from "./color-picker-input.js";
|
|
4
3
|
//#region packages/sard/components/color-picker-input/index.ts
|
|
5
4
|
const ColorPickerInput = enhanceComponent(color_picker_input_default);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { isEmptyBinding } from "../../utils/utils.js";
|
|
3
3
|
import { defaultColorPickerValue } from "../../utils/color.js";
|
|
4
|
-
import "../../utils/index.js";
|
|
5
4
|
import popout_default from "../popout/popout.js";
|
|
6
5
|
import { omitFormPopoutProps, useFormPopout } from "../popout/useFormPopout.js";
|
|
7
6
|
import color_picker_default from "../color-picker/color-picker.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import color_picker_popout_default from "./color-picker-popout.js";
|
|
4
3
|
//#region packages/sard/components/color-picker-popout/index.ts
|
|
5
4
|
const ColorPickerPopout = enhanceComponent(color_picker_popout_default);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { compactContextKey, defaultCompactProps } from "./common.js";
|
|
4
3
|
import { computed, createElementBlock, defineComponent, mergeDefaults, normalizeClass, openBlock, provide, reactive, renderSlot, shallowRef, toRef } from "vue";
|
|
5
4
|
//#region packages/sard/components/compact/compact.vue
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { defaultCoolIconProps } from "./common.js";
|
|
4
3
|
import { Fragment, computed, createElementBlock, createElementVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, unref } from "vue";
|
|
5
4
|
//#region packages/sard/components/cool-icon/cool-icon.vue
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { formatTime, getCurrentTime, useCountDown } from "./useCountDown.js";
|
|
4
3
|
import count_down_default from "./count-down.js";
|
|
5
4
|
//#region packages/sard/components/count-down/index.ts
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { addSeparator } from "../../utils/string.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { defaultCountToProps } from "./common.js";
|
|
4
3
|
import { computed, createElementBlock, defineComponent, mergeDefaults, onUnmounted, openBlock, ref, toDisplayString, watch } from "vue";
|
|
5
4
|
import { createAnimation } from "lwa";
|
|
@@ -6,8 +6,6 @@ import { logError } from "../../utils/log.js";
|
|
|
6
6
|
import { useTimeout } from "../../use/useTimeout.js";
|
|
7
7
|
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
8
8
|
import { useDragPinch } from "../../use/useDragPinch.js";
|
|
9
|
-
import "../../use/index.js";
|
|
10
|
-
import "../../utils/index.js";
|
|
11
9
|
import popup_default from "../popup/popup.js";
|
|
12
10
|
import loading_default from "../loading/loading.js";
|
|
13
11
|
import { useTranslateWithPrefix } from "../../locale/index.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { formatDate, getLunarDayName, getLunarMonthName, minmaxDate, parseDate, solarToLunar, toDateNumber } from "../../utils/date.js";
|
|
3
3
|
import { scrollToTarget } from "../../utils/geometry.js";
|
|
4
|
-
import "../../utils/index.js";
|
|
5
4
|
import { useTranslateWithPrefix } from "../../locale/index.js";
|
|
6
5
|
import { defaultDateStripProps, getMaxDate, getMinDate, sortDates } from "./common.js";
|
|
7
6
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeDefaults, nextTick, normalizeClass, normalizeStyle, openBlock, renderList, shallowRef, toDisplayString, toRaw, unref, useTemplateRef, watch } from "vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--s-date-strip-gap
|
|
1
|
+
:root{--s-date-strip-column-gap:8px;--s-date-strip-item-width:64px;--s-date-strip-item-padding-y:9px;--s-date-strip-item-padding-x:6px;--s-date-strip-item-radius:var(--s-border-radius);--s-date-strip-item-border-color:rgba(0,0,0,0);--s-date-strip-item-bg:rgba(0,0,0,0);--s-date-strip-item-week-font-size:var(--s-font-size-sm);--s-date-strip-item-week-color:var(--s-text-color-secondary);--s-date-strip-item-week-order:1;--s-date-strip-item-day-font-size:var(--s-font-size);--s-date-strip-item-day-color:inherit;--s-date-strip-item-day-order:2;--s-date-strip-item-info-font-size:var(--s-font-size-xs);--s-date-strip-item-info-color:var(--s-text-color-tertiary);--s-date-strip-item-info-order:3;--s-date-strip-item-color-selected:var(--s-white);--s-date-strip-item-bg-selected:var(--s-color-primary);--s-date-strip-item-bg-middle:rgba(var(--s-color-primary-rgb), 0.1);--s-date-strip-item-color-today:var(--s-color-primary)}.s-date-strip{overflow-x:auto;overflow-y:hidden}.s-date-strip__content{display:inline-flex;flex-direction:row;column-gap:var(--s-date-strip-column-gap)}.s-date-strip__item{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;flex:none;width:var(--s-date-strip-item-width);padding:var(--s-date-strip-item-padding-y) var(--s-date-strip-item-padding-x);text-align:center;border-radius:var(--s-date-strip-item-radius);border:1px solid var(--s-date-strip-item-border-color);background:var(--s-date-strip-item-bg);cursor:pointer}.s-date-strip__item-week{font-size:var(--s-date-strip-item-week-font-size);color:var(--s-date-strip-item-week-color);order:var(--s-date-strip-item-week-order)}.s-date-strip__item-day{font-size:var(--s-date-strip-item-day-font-size);color:var(--s-date-strip-item-day-color);order:var(--s-date-strip-item-day-order)}.s-date-strip__item-info{font-size:var(--s-date-strip-item-info-font-size);color:var(--s-date-strip-item-info-color);order:var(--s-date-strip-item-info-order)}.s-date-strip__item--today{color:var(--s-date-strip-item-color-today)}.s-date-strip__item--selected,.s-date-strip__item--start,.s-date-strip__item--end,.s-date-strip__item--same{color:var(--s-date-strip-item-color-selected);border-color:rgba(0,0,0,0);background:var(--s-date-strip-item-bg-selected)}.s-date-strip__item--middle{border-color:rgba(0,0,0,0);background:var(--s-date-strip-item-bg-middle)}.s-date-strip__item--disabled{color:var(--s-text-color-disabled);cursor:var(--s-cursor-disabled)}.s-date-strip__item--selected .s-date-strip__item-week,.s-date-strip__item--selected .s-date-strip__item-info,.s-date-strip__item--selected .s-date-strip__item-day,.s-date-strip__item--start .s-date-strip__item-week,.s-date-strip__item--start .s-date-strip__item-info,.s-date-strip__item--start .s-date-strip__item-day,.s-date-strip__item--end .s-date-strip__item-week,.s-date-strip__item--end .s-date-strip__item-info,.s-date-strip__item--end .s-date-strip__item-day,.s-date-strip__item--same .s-date-strip__item-week,.s-date-strip__item--same .s-date-strip__item-info,.s-date-strip__item--same .s-date-strip__item-day,.s-date-strip__item--disabled .s-date-strip__item-week,.s-date-strip__item--disabled .s-date-strip__item-info,.s-date-strip__item--disabled .s-date-strip__item-day,.s-date-strip__item--today .s-date-strip__item-week,.s-date-strip__item--today .s-date-strip__item-info,.s-date-strip__item--today .s-date-strip__item-day{color:inherit}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { clamp } from "../../utils/number.js";
|
|
2
2
|
import { formatDate, getDaysInMonth, getLunarDayName, getLunarLeapMonth, getLunarLeapMonthDays, getLunarMonthDays, getLunarMonthName, solarToLunar, toDate } from "../../utils/date.js";
|
|
3
3
|
import { isDate } from "../../utils/is.js";
|
|
4
|
-
import "../../utils/index.js";
|
|
5
4
|
//#region packages/sard/components/datetime-picker/common.ts
|
|
6
5
|
const defaultDatetimePickerProps = {
|
|
7
6
|
type: "yMd",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { formatDate, lunarToSolar, solarToLunar, toDate } from "../../utils/date.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { useTranslateWithPrefix } from "../../locale/index.js";
|
|
4
3
|
import picker_default from "../picker/picker.js";
|
|
5
4
|
import { correctDate, defaultDatetimePickerProps, getBoundaryValue, getColumnData, getMaxDate, getMinDate, letterArray, strategies } from "./common.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import datetime_picker_default from "./datetime-picker.js";
|
|
4
3
|
//#region packages/sard/components/datetime-picker/index.ts
|
|
5
4
|
const DatetimePicker = enhanceComponent(datetime_picker_default);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { formatDate, parseDate } from "../../utils/date.js";
|
|
2
2
|
import { isString } from "../../utils/is.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import popout_input_default from "../popout-input/popout-input.js";
|
|
5
4
|
import { partitionPopoutInputProps, usePopoutInput } from "../popout-input/usePopoutInput.js";
|
|
6
5
|
import datetime_picker_popout_default from "../datetime-picker-popout/datetime-picker-popout.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import datetime_picker_input_default from "./datetime-picker-input.js";
|
|
4
3
|
//#region packages/sard/components/datetime-picker-input/index.ts
|
|
5
4
|
const DatetimePickerInput = enhanceComponent(datetime_picker_input_default);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { formatDate, toDate } from "../../utils/date.js";
|
|
2
2
|
import { isEmptyBinding } from "../../utils/utils.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import popout_default from "../popout/popout.js";
|
|
5
4
|
import { getInitialValue, getMaxDate, getMinDate } from "../datetime-picker/common.js";
|
|
6
5
|
import datetime_picker_default from "../datetime-picker/datetime-picker.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import datetime_picker_popout_default from "./datetime-picker-popout.js";
|
|
4
3
|
//#region packages/sard/components/datetime-picker-popout/index.ts
|
|
5
4
|
const DatetimePickerPopout = enhanceComponent(datetime_picker_popout_default);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { toDate } from "../../utils/date.js";
|
|
3
3
|
import { omit } from "../../utils/object.js";
|
|
4
|
-
import "../../utils/index.js";
|
|
5
4
|
import { getMaxDate, getMinDate, normalizeRangeValue } from "../datetime-picker/common.js";
|
|
6
5
|
import datetime_picker_default from "../datetime-picker/datetime-picker.js";
|
|
7
6
|
import tabs_default from "../tabs/tabs.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import datetime_range_picker_default from "./datetime-range-picker.js";
|
|
4
3
|
//#region packages/sard/components/datetime-range-picker/index.ts
|
|
5
4
|
const DatetimeRangePicker = enhanceComponent(datetime_range_picker_default);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { formatDate, parseDate } from "../../utils/date.js";
|
|
2
2
|
import { isString } from "../../utils/is.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import { useTranslateWithPrefix } from "../../locale/index.js";
|
|
5
4
|
import popout_input_default from "../popout-input/popout-input.js";
|
|
6
5
|
import { partitionPopoutInputProps, usePopoutInput } from "../popout-input/usePopoutInput.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import datetime_range_picker_input_default from "./datetime-range-picker-input.js";
|
|
4
3
|
//#region packages/sard/components/datetime-range-picker-input/index.ts
|
|
5
4
|
const DatetimeRangePickerInput = enhanceComponent(datetime_range_picker_input_default);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { toDate } from "../../utils/date.js";
|
|
2
2
|
import { isEmptyBinding } from "../../utils/utils.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import popout_default from "../popout/popout.js";
|
|
5
4
|
import { getMaxDate, getMinDate, normalizeRangeValue } from "../datetime-picker/common.js";
|
|
6
5
|
import { omitFormPopoutProps, useFormPopout } from "../popout/useFormPopout.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import datetime_range_picker_popout_default from "./datetime-range-picker-popout.js";
|
|
4
3
|
//#region packages/sard/components/datetime-range-picker-popout/index.ts
|
|
5
4
|
const DatetimeRangePickerPopout = enhanceComponent(datetime_range_picker_popout_default);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { defaultDescriptionsItemProps, descriptionsContextKey } from "./common.js";
|
|
4
3
|
import { Fragment, computed, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderSlot, toDisplayString } from "vue";
|
|
5
4
|
//#region packages/sard/components/descriptions/descriptions-item.vue
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { flatVNode } from "../../utils/vnode.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import { defaultDescriptionsProps, descriptionsContextKey } from "./common.js";
|
|
5
4
|
import { Fragment, cloneVNode, computed, createBlock, createElementBlock, createElementVNode, defineComponent, mergeDefaults, normalizeClass, openBlock, provide, reactive, renderList, resolveDynamicComponent, toRef, useSlots } from "vue";
|
|
6
5
|
//#region packages/sard/components/descriptions/descriptions.vue
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import descriptions_default from "./descriptions.js";
|
|
4
3
|
import descriptions_item_default from "./descriptions-item.js";
|
|
5
4
|
//#region packages/sard/components/descriptions/index.ts
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { isFunction } from "../../utils/is.js";
|
|
3
3
|
import { noop } from "../../utils/utils.js";
|
|
4
|
-
import "../../utils/index.js";
|
|
5
4
|
import popup_default from "../popup/popup.js";
|
|
6
5
|
import { useTranslateWithPrefix } from "../../locale/index.js";
|
|
7
6
|
import button_default from "../button/button.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { defaultDividerProps } from "./common.js";
|
|
4
3
|
import { computed, createElementBlock, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderSlot, useSlots } from "vue";
|
|
5
4
|
//#region packages/sard/components/divider/divider.vue
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
3
3
|
import { useSimulatedPress } from "../../use/useSimulatedPress.js";
|
|
4
|
-
import "../../use/index.js";
|
|
5
|
-
import "../../utils/index.js";
|
|
6
4
|
import { dndItemContextKey } from "./common.js";
|
|
7
5
|
import { computed, createElementBlock, defineComponent, inject, normalizeClass, openBlock, ref, renderSlot, unref, withModifiers } from "vue";
|
|
8
6
|
//#region packages/sard/components/dnd/dnd-handle.vue
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { OnlyChild } from "../../utils/vnode.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import { dndContextKey, dndItemContextKey } from "./common.js";
|
|
5
4
|
import { computed, createBlock, defineComponent, inject, normalizeClass, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, unref, watchPostEffect, withCtx } from "vue";
|
|
6
5
|
//#region packages/sard/components/dnd/dnd-item.vue
|
package/components/dnd/dnd.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { arrayMove } from "../../utils/array.js";
|
|
2
2
|
import { uniqid } from "../../utils/string.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import { dndContextKey } from "./common.js";
|
|
5
4
|
import { computed, defineComponent, provide, reactive, ref, renderSlot, unref, watch } from "vue";
|
|
6
5
|
//#region packages/sard/components/dnd/dnd.vue
|
package/components/dnd/index.js
CHANGED
|
@@ -3,8 +3,6 @@ import { isFunction, isNullish } from "../../utils/is.js";
|
|
|
3
3
|
import { noop } from "../../utils/utils.js";
|
|
4
4
|
import { useLockScroll } from "../../use/useLockScroll.js";
|
|
5
5
|
import { useClickOutside } from "../../use/useClickOutside.js";
|
|
6
|
-
import "../../use/index.js";
|
|
7
|
-
import "../../utils/index.js";
|
|
8
6
|
import motion_default from "../motion/motion.js";
|
|
9
7
|
import overlay_default from "../overlay/overlay.js";
|
|
10
8
|
import list_default from "../list/list.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { defaultDropdownProps, dropdownContextKey } from "./common.js";
|
|
4
3
|
import { computed, createCommentVNode, createElementBlock, defineComponent, mergeDefaults, normalizeClass, openBlock, provide, reactive, ref, renderSlot, toRef, unref } from "vue";
|
|
5
4
|
//#region packages/sard/components/dropdown/dropdown.vue
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { useResizeObserver } from "../../use/useResizeObserver.js";
|
|
3
|
-
import "../../use/index.js";
|
|
4
|
-
import "../../utils/index.js";
|
|
5
3
|
import { defaultEllipsisProps } from "./common.js";
|
|
6
4
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeDefaults, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, toDisplayString, unref, useModel, useTemplateRef, watch } from "vue";
|
|
7
5
|
//#region packages/sard/components/ellipsis/ellipsis.vue
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { addUnit } from "../../utils/utils.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import { useTranslateWithPrefix } from "../../locale/index.js";
|
|
5
4
|
import { defaultEmptyProps } from "./common.js";
|
|
6
5
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderSlot, toDisplayString, unref, useSlots } from "vue";
|
package/components/fab/common.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { isVisibleEmpty } from "../../utils/utils.js";
|
|
3
|
-
import "../../utils/index.js";
|
|
4
3
|
import { defaultFabItemProps, fabContextKey } from "./common.js";
|
|
5
4
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderSlot, toDisplayString, unref } from "vue";
|
|
6
5
|
//#region packages/sard/components/fab/fab-item.vue
|
package/components/fab/fab.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ declare const __VLS_base: import("vue").DefineComponent<FabProps, {}, {}, {}, {}
|
|
|
31
31
|
draggable: boolean;
|
|
32
32
|
axis: "x" | "y" | "both" | "none";
|
|
33
33
|
magnet: "x" | "y";
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
marginX: number;
|
|
35
|
+
marginY: number;
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
37
37
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
38
|
declare const _default: typeof __VLS_export;
|
package/components/fab/fab.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { isNullish } from "../../utils/is.js";
|
|
3
3
|
import { useZIndex } from "../../use/useZIndex.js";
|
|
4
|
-
import "../../use/index.js";
|
|
5
|
-
import "../../utils/index.js";
|
|
6
4
|
import motion_default from "../motion/motion.js";
|
|
7
5
|
import overlay_default from "../overlay/overlay.js";
|
|
8
6
|
import { defaultFabProps, fabContextKey } from "./common.js";
|
|
@@ -63,11 +61,11 @@ var fab_default = /*@__PURE__*/ defineComponent({
|
|
|
63
61
|
type: String,
|
|
64
62
|
required: false
|
|
65
63
|
},
|
|
66
|
-
|
|
64
|
+
marginX: {
|
|
67
65
|
type: Number,
|
|
68
66
|
required: false
|
|
69
67
|
},
|
|
70
|
-
|
|
68
|
+
marginY: {
|
|
71
69
|
type: Number,
|
|
72
70
|
required: false
|
|
73
71
|
},
|
package/components/fab/index.js
CHANGED
|
@@ -20,8 +20,8 @@ declare const __VLS_base: import("vue").DefineComponent<FloatingBubbleProps, {},
|
|
|
20
20
|
draggable: boolean;
|
|
21
21
|
axis: "x" | "y" | "both" | "none";
|
|
22
22
|
magnet: "x" | "y";
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
marginX: number;
|
|
24
|
+
marginY: number;
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import { useFloatingBubble } from "./useFloatingBubble.js";
|
|
4
3
|
import { defaultFloatingBubbleProps } from "./common.js";
|
|
5
4
|
import { computed, createElementBlock, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, renderSlot, unref, withModifiers } from "vue";
|
|
@@ -19,11 +18,11 @@ var floating_bubble_default = /*@__PURE__*/ defineComponent({
|
|
|
19
18
|
type: String,
|
|
20
19
|
required: false
|
|
21
20
|
},
|
|
22
|
-
|
|
21
|
+
marginX: {
|
|
23
22
|
type: Number,
|
|
24
23
|
required: false
|
|
25
24
|
},
|
|
26
|
-
|
|
25
|
+
marginY: {
|
|
27
26
|
type: Number,
|
|
28
27
|
required: false
|
|
29
28
|
},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import floating_bubble_default from "./floating-bubble.js";
|
|
4
3
|
//#region packages/sard/components/floating-bubble/index.ts
|
|
5
4
|
const FloatingBubble = enhanceComponent(floating_bubble_default);
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { clamp } from "../../utils/number.js";
|
|
2
2
|
import { useTimeout } from "../../use/useTimeout.js";
|
|
3
3
|
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
4
|
-
import "../../use/index.js";
|
|
5
|
-
import "../../utils/index.js";
|
|
6
4
|
import { windowInfo } from "../config/windowInfo.js";
|
|
7
5
|
import { computed, onMounted, ref, unref, useTemplateRef, watch } from "vue";
|
|
8
6
|
//#region packages/sard/components/floating-bubble/useFloatingBubble.ts
|
|
@@ -25,16 +23,16 @@ function useFloatingBubble(props, emit, options = {}) {
|
|
|
25
23
|
const stopBubbling = ref(false);
|
|
26
24
|
const animatedTimer = useTimeout();
|
|
27
25
|
function getMinX() {
|
|
28
|
-
return props.
|
|
26
|
+
return props.marginX;
|
|
29
27
|
}
|
|
30
28
|
function getMaxX() {
|
|
31
|
-
return windowWidth - props.
|
|
29
|
+
return windowWidth - props.marginX - bubbleRect.width;
|
|
32
30
|
}
|
|
33
31
|
function getMinY() {
|
|
34
|
-
return props.
|
|
32
|
+
return props.marginY + (windowInfo.navBarHeight + windowInfo.statusBarHeight);
|
|
35
33
|
}
|
|
36
34
|
function getMaxY() {
|
|
37
|
-
return windowHeight - windowInfo.tabBarHeight - props.
|
|
35
|
+
return windowHeight - windowInfo.tabBarHeight - props.marginY - bubbleRect.height;
|
|
38
36
|
}
|
|
39
37
|
const onTouchStart = async (event) => {
|
|
40
38
|
stopBubbling.value = false;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { createBem } from "../../utils/bem.js";
|
|
2
2
|
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
3
3
|
import { useInitialVelocity } from "../../use/useInitialVelocity.js";
|
|
4
|
-
import "../../use/index.js";
|
|
5
|
-
import "../../utils/index.js";
|
|
6
4
|
import { defaultFloatingPanelProps } from "./common.js";
|
|
7
5
|
import { computed, createElementBlock, createElementVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, unref, useTemplateRef, watch } from "vue";
|
|
8
6
|
//#region packages/sard/components/floating-panel/floating-panel.vue
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
-
import "../../utils/index.js";
|
|
3
2
|
import floating_panel_default from "./floating-panel.js";
|
|
4
3
|
//#region packages/sard/components/floating-panel/index.ts
|
|
5
4
|
const FloatingPanel = enhanceComponent(floating_panel_default);
|